create-ssnode-cli 0.2.0 → 0.2.2
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/index.js +10 -3
- package/package.json +1 -1
- package/secrets.js +10 -7
- package/templates/backend/Dockerfile +4 -0
- package/templates/backend/config/config.develop.yaml +10 -0
- package/templates/backend/config/config.prod.yaml +10 -0
- package/templates/backend/dist/config/configuration.js +1 -1
- package/templates/backend/dist/config/configuration.js.map +1 -1
- package/templates/backend/dist/modules/auth/auth.service.js +1 -1
- package/templates/backend/dist/modules/auth/auth.service.js.map +1 -1
- package/templates/backend/dist/modules/page-data/page-data.controller.js +1 -1
- package/templates/backend/dist/modules/page-data/page-data.controller.js.map +1 -1
- package/templates/backend/dist/modules/screen-config/screen-config.controller.js +1 -1
- package/templates/backend/dist/modules/screen-config/screen-config.controller.js.map +1 -1
- package/templates/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/templates/backend/node_modules/.bin/js-yaml +2 -2
- package/templates/backend/node_modules/.bin/typeorm +2 -2
- package/templates/backend/node_modules/.bin/typeorm-ts-node-commonjs +2 -2
- package/templates/backend/node_modules/.bin/typeorm-ts-node-esm +2 -2
- package/templates/backend/ops/docker/.env.example +4 -0
- package/templates/backend/ops/docker/config.sh +2 -0
- package/templates/backend/ops/docker/install.sh +35 -0
- package/templates/backend/ops/install.sh +17 -3
- package/templates/backend/ops/pm2/config.sh +2 -0
- package/templates/backend/ops/systemd/config.sh +2 -0
- package/templates/backend/package.json +13 -6
- package/templates/backend/src/config/config.interface.ts +9 -0
- package/templates/backend/src/config/configuration.ts +11 -0
- package/templates/backend/src/modules/auth/auth.service.ts +57 -12
- package/templates/backend/src/modules/page-data/page-data.controller.ts +33 -10
- package/templates/backend/src/modules/screen-config/screen-config.controller.ts +33 -5
- package/templates/root/README.md +3 -0
- package/templates/root/package.json +9 -1
- package/templates/web/dist/assets/{404-63aa5037.js → 404-e6edada0.js} +1 -1
- package/templates/web/dist/assets/{404-legacy-494c4093.js → 404-legacy-f6ca5b91.js} +1 -1
- package/templates/web/dist/assets/AuthLayout-bcf98efb.js +1 -0
- package/templates/web/dist/assets/AuthLayout-legacy-6e7a8ae1.js +1 -0
- package/templates/web/dist/assets/{Background-13406ae6.js → Background-eb77ef54.js} +1 -1
- package/templates/web/dist/assets/{Background-legacy-35ca5eef.js → Background-legacy-50457007.js} +1 -1
- package/templates/web/dist/assets/{Screen-4310b270.js → Screen-318c3fc2.js} +1 -1
- package/templates/web/dist/assets/{Screen-legacy-d5f1a31f.js → Screen-legacy-af123b0f.js} +1 -1
- package/templates/web/dist/assets/{ScreenChartOption-a6927065.js → ScreenChartOption-953b9157.js} +1 -1
- package/templates/web/dist/assets/{ScreenChartOption-legacy-b4c04ce9.js → ScreenChartOption-legacy-2e8fcfd8.js} +1 -1
- package/templates/web/dist/assets/api-beff4a3e.js +1 -0
- package/templates/web/dist/assets/api-legacy-9fe41d4b.js +1 -0
- package/templates/web/dist/assets/{base-5bf689c3.js → base-a14309c8.js} +1 -1
- package/templates/web/dist/assets/{base-legacy-d3323277.js → base-legacy-2bc6e427.js} +1 -1
- package/templates/web/dist/assets/{child-87a05c88.js → child-2a48ca65.js} +1 -1
- package/templates/web/dist/assets/{child-legacy-d4d0277d.js → child-legacy-7665b5f8.js} +1 -1
- package/templates/web/dist/assets/{component-1fcd971d.js → component-89b5253e.js} +1 -1
- package/templates/web/dist/assets/{component-legacy-943364e8.js → component-legacy-8c5a28ef.js} +1 -1
- package/templates/web/dist/assets/{demo-14e7532b.js → demo-d7272cf4.js} +1 -1
- package/templates/web/dist/assets/{demo-legacy-da0d2bfa.js → demo-legacy-f7bbfe55.js} +1 -1
- package/templates/web/dist/assets/echarts-vendor-50090982.js +9 -0
- package/templates/web/dist/assets/echarts-vendor-legacy-50b58722.js +10 -0
- package/templates/web/dist/assets/{grandson-4f840b4d.js → grandson-05f8bb58.js} +1 -1
- package/templates/web/dist/assets/{grandson-legacy-527ae016.js → grandson-legacy-3e10990b.js} +1 -1
- package/templates/web/dist/assets/{index-268d1ac1.js → index-466a1ec1.js} +1 -1
- package/templates/web/dist/assets/{index-c1ee2fb3.js → index-5b5a8146.js} +1 -1
- package/templates/web/dist/assets/{index-3a2983ce.js → index-7277cbfb.js} +1 -1
- package/templates/web/dist/assets/{index-e03d0352.js → index-777ef781.js} +1 -1
- package/templates/web/dist/assets/{index-e4c9d42a.js → index-86214b19.js} +1 -1
- package/templates/web/dist/assets/{index-f57c9694.js → index-9cd5622a.js} +1 -1
- package/templates/web/dist/assets/{index-71f600d4.js → index-a79e448b.js} +1 -1
- package/templates/web/dist/assets/{index-af61b79b.js → index-b60badf7.js} +1 -1
- package/templates/web/dist/assets/{index-b75948c0.js → index-bd4ed808.js} +1 -1
- package/templates/web/dist/assets/{index-9120f091.js → index-cba19800.js} +1 -1
- package/templates/web/dist/assets/{index-3448ef35.js → index-d70eb540.js} +1 -1
- package/templates/web/dist/assets/{index-5e7dfdb5.js → index-e6071630.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-081b881d.js → index-legacy-028ed5d5.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-aebba3cb.js → index-legacy-06483318.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-548904e6.js → index-legacy-0da8de82.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-376a4633.js → index-legacy-3965dcaf.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-5f22daba.js → index-legacy-4a13dddc.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-0983aa0f.js → index-legacy-783129a7.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-06643c96.js → index-legacy-8a2cfb9d.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-8bba1715.js → index-legacy-993ef005.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-19a8ac10.js → index-legacy-b075295d.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-b03d819e.js → index-legacy-b3bd40c1.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-35c1de97.js → index-legacy-d510e318.js} +1 -1
- package/templates/web/dist/assets/{index-legacy-3a393896.js → index-legacy-feb54578.js} +1 -1
- package/templates/web/dist/assets/{parent-ad02830b.js → parent-bba709aa.js} +1 -1
- package/templates/web/dist/assets/{parent-legacy-163f567f.js → parent-legacy-48111978.js} +1 -1
- package/templates/web/dist/assets/vendor-affac96c.js +124 -0
- package/templates/web/dist/assets/vendor-legacy-55fa76eb.js +122 -0
- package/templates/web/dist/index.html +3 -3
- package/templates/web/package.json +7 -7
- package/templates/web/src/js/xlsl.ts +110 -59
- package/templates/web/src/layouts/AuthLayout.tsx +16 -11
- package/templates/web/src/services/api/admin/user.ts +9 -2
- package/templates/web/dist/assets/AuthLayout-07e9f5d2.js +0 -1
- package/templates/web/dist/assets/AuthLayout-legacy-1b94749f.js +0 -1
- package/templates/web/dist/assets/api-83561db2.js +0 -1
- package/templates/web/dist/assets/api-legacy-8e15c853.js +0 -1
- package/templates/web/dist/assets/echarts-vendor-d6ce4b9c.js +0 -9
- package/templates/web/dist/assets/echarts-vendor-legacy-79597af6.js +0 -10
- package/templates/web/dist/assets/vendor-2663c204.js +0 -96
- package/templates/web/dist/assets/vendor-legacy-2df23db3.js +0 -87
- package/templates/web/node_modules/.bin/xlsx +0 -17
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
System.register([],(function(e,t){"use strict";return{execute:function(){function t(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"}))}e({B:
|
|
2
|
-
/**
|
|
3
|
-
* React Router DOM v6.4.5
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Remix Software Inc.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
9
|
-
*
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/
|
|
12
|
-
function(e){let{basename:t,children:n,window:r}=e,o=H.useRef();null==o.current&&(o.current=function(e){function t(e,t){let{pathname:n,search:r,hash:o}=e.location;return Sy("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}function n(e,t){return"string"==typeof t?t:xy(t)}return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=gy.Pop,c=null;function s(){l=gy.Pop,c&&c({action:l,location:f.location})}function u(e,t){l=gy.Push;let r=Sy(f.location,e,t);n&&n(r,e);let s=wy(r),u=f.createHref(r);try{a.pushState(s,"",u)}catch(d){o.location.assign(u)}i&&c&&c({action:l,location:f.location})}function d(e,t){l=gy.Replace;let r=Sy(f.location,e,t);n&&n(r,e);let o=wy(r),s=f.createHref(r);a.replaceState(o,"",s),i&&c&&c({action:l,location:f.location})}let f={get action(){return l},get location(){return e(o,a)},listen(e){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(by,s),c=e,()=>{o.removeEventListener(by,s),c=null}},createHref:e=>t(o,e),encodeLocation(e){let t=Ey("string"==typeof e?e:xy(e));return{pathname:t.pathname,search:t.search,hash:t.hash}},push:u,replace:d,go:e=>a.go(e)};return f}(t,n,null,e)}({window:r,v5Compat:!0}));let i=o.current,[a,l]=H.useState({action:i.action,location:i.location});return H.useLayoutEffect((()=>i.listen(l)),[i]),H.createElement(Sw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})},N:function(e){let{to:t,replace:n,state:r,relative:o}=e;lw()||yy(!1);let i=H.useContext(nw),a=sw();return H.useEffect((()=>{i&&"idle"!==i.navigation.state||a(t,{replace:n,state:r,relative:o})})),null},O:function(e){return function(e){let t=H.useContext(iw).outlet;return t?H.createElement(uw.Provider,{value:e},t):t}(e.context)},_:function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Vee(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},a:ww,c:function(e){let{children:t,location:n}=e,r=H.useContext(tw);return function(e,t){lw()||yy(!1);let{navigator:n}=H.useContext(rw),r=H.useContext(nw),{matches:o}=H.useContext(iw),i=o[o.length-1],a=i?i.params:{};!i||i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c,s=cw();if(t){var u;let e="string"==typeof t?Cy(t):t;"/"===l||(null==(u=e.pathname)?void 0:u.startsWith(l))||yy(!1),c=e}else c=s;let d=c.pathname||"/",f="/"===l?d:d.slice(l.length)||"/",p=function(e,t,n){void 0===n&&(n="/");let r="string"==typeof t?Cy(t):t,o=Dy(r.pathname||"/",n);if(null==o)return null;let i=$y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let l=0;null==a&&l<i.length;++l)a=jy(i[l],zy(o));return a}(e,{pathname:f}),m=function(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let r=e,o=null==n?void 0:n.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&(null==o?void 0:o[e.route.id])));e>=0||yy(!1),r=r.slice(0,Math.min(r.length,e+1))}return r.reduceRight(((e,i,a)=>{let l=i.route.id?null==o?void 0:o[i.route.id]:null,c=n?i.route.errorElement||H.createElement(dw,null):null,s=()=>H.createElement(pw,{match:i,routeContext:{outlet:e,matches:t.concat(r.slice(0,a+1))}},l?c:void 0!==i.route.element?i.route.element:e);return n&&(i.route.errorElement||0===a)?H.createElement(fw,{location:n.location,component:c,error:l,children:s()}):s()}),null)}(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Hy([l,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Hy([l,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,r||void 0);return t&&m?H.createElement(ow.Provider,{value:{location:Gy({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:gy.Pop}},m):m}(r&&!t?r.router.routes:xw(t),n)},e:cw,u:sw});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var i={exports:{}},a={},l={exports:{}},c={},s=Symbol.for("react.element"),u=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator,S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function E(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||S}function k(){}function $(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||S}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): 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")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=E.prototype;var O=$.prototype=new k;O.constructor=$,x(O,E.prototype),O.isPureReactComponent=!0;var N=Array.isArray,_=Object.prototype.hasOwnProperty,I={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,r)&&!R.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:s,type:e,key:i,ref:a,props:o,_owner:I.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var T=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case s:case u:a=!0}}if(a)return o=o(a=e),e=""===r?"."+j(a,0):r,N(o)?(n="",null!=e&&(n=e.replace(T,"$&/")+"/"),A(o,t,n,"",(function(e){return e}))):null!=o&&(P(o)&&(o=function(e,t){return{$$typeof:s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(T,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",N(e))for(var l=0;l<e.length;l++){var c=r+j(i=e[l],l);a+=A(i,t,n,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(i=e.next()).done;)a+=A(i=i.value,t,n,c=r+j(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function z(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function D(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 L={current:null},B={transition:null},F={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:B,ReactCurrentOwner:I};c.Children={map:z,forEach:function(e,t,n){z(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return z(e,(function(){t++})),t},toArray:function(e){return z(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},c.Component=E,c.Fragment=d,c.Profiler=p,c.PureComponent=$,c.StrictMode=f,c.Suspense=v,c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,c.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=x({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=I.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!R.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:s,type:e.type,key:o,ref:i,props:r,_owner:a}},c.createContext=function(e){return(e={$$typeof:h,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:m,_context:e},e.Consumer=e},c.createElement=M,c.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},c.createRef=function(){return{current:null}},c.forwardRef=function(e){return{$$typeof:g,render:e}},c.isValidElement=P,c.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:D}},c.memo=function(e,t){return{$$typeof:b,type:e,compare:void 0===t?null:t}},c.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},c.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},c.useCallback=function(e,t){return L.current.useCallback(e,t)},c.useContext=function(e){return L.current.useContext(e)},c.useDebugValue=function(){},c.useDeferredValue=function(e){return L.current.useDeferredValue(e)},c.useEffect=function(e,t){return L.current.useEffect(e,t)},c.useId=function(){return L.current.useId()},c.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},c.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},c.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},c.useMemo=function(e,t){return L.current.useMemo(e,t)},c.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},c.useRef=function(e){return L.current.useRef(e)},c.useState=function(e){return L.current.useState(e)},c.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},c.useTransition=function(){return L.current.useTransition()},c.version="18.2.0",l.exports=c;var H=e("r",l.exports);const W=e("R",r(H)),V=t({__proto__:null,default:W},[H]);
|
|
13
|
-
/**
|
|
14
|
-
* @license React
|
|
15
|
-
* react-jsx-runtime.production.min.js
|
|
16
|
-
*
|
|
17
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the MIT license found in the
|
|
20
|
-
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/
|
|
22
|
-
var U=H,K=Symbol.for("react.element"),q=Symbol.for("react.fragment"),X=Object.prototype.hasOwnProperty,G=U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Y={key:!0,ref:!0,__self:!0,__source:!0};function Q(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)X.call(t,r)&&!Y.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:K,type:e,key:i,ref:a,props:o,_owner:G.current}}function Z(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function J(e,t){for(var n,r="",o=0,i=-1,a=0,l=0;l<=e.length;++l){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(i===l-1||1===a);else if(i!==l-1&&2===a){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",o=0):o=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),i=l,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=l,a=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,l):r=e.slice(i+1,l),o=l-i-1;i=l,a=0}else 46===n&&-1!==a?++a:a=-1}return r}a.Fragment=q,a.jsx=Q,a.jsxs=Q,i.exports=a,e("j",i.exports);var ee={resolve:function(){for(var e,t="",n=!1,r=arguments.length-1;r>=-1&&!n;r--){var o;r>=0?o=arguments[r]:(void 0===e&&(e=process.cwd()),o=e),Z(o),0!==o.length&&(t=o+"/"+t,n=47===o.charCodeAt(0))}return t=J(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Z(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=J(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Z(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];Z(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ee.normalize(e)},relative:function(e,t){if(Z(e),Z(t),e===t)return"";if((e=ee.resolve(e))===(t=ee.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,o=r-n,i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var a=t.length-i,l=o<a?o:a,c=-1,s=0;s<=l;++s){if(s===l){if(a>l){if(47===t.charCodeAt(i+s))return t.slice(i+s+1);if(0===s)return t.slice(i+s)}else o>l&&(47===e.charCodeAt(n+s)?c=s:0===s&&(c=0));break}var u=e.charCodeAt(n+s);if(u!==t.charCodeAt(i+s))break;47===u&&(c=s)}var d="";for(s=n+c+1;s<=r;++s)s!==r&&47!==e.charCodeAt(s)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(i+c):(i+=c,47===t.charCodeAt(i)&&++i,t.slice(i))},_makeLong:function(e){return e},dirname:function(e){if(Z(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Z(e);var n,r=0,o=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!i){r=n+1;break}}else-1===l&&(i=!1,l=n+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(o=n):(a=-1,o=l))}return r===o?o=l:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){Z(e);for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(o=!1,r=a+1),46===l?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){Z(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var i=-1,a=0,l=-1,c=!0,s=e.length-1,u=0;s>=n;--s)if(47!==(r=e.charCodeAt(s)))-1===l&&(c=!1,l=s+1),46===r?-1===i?i=s:1!==u&&(u=1):-1!==i&&(u=-1);else if(!c){a=s+1;break}return-1===i||-1===l||0===u||1===u&&i===l-1&&i===a+1?-1!==l&&(t.base=t.name=0===a&&o?e.slice(1,l):e.slice(a,l)):(0===a&&o?(t.name=e.slice(1,i),t.base=e.slice(1,l)):(t.name=e.slice(a,i),t.base=e.slice(a,l)),t.ext=e.slice(i,l)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,e("p",r(ee));var te={exports:{}},ne={},re={exports:{}},oe={};
|
|
23
|
-
/**
|
|
24
|
-
* @license React
|
|
25
|
-
* scheduler.production.min.js
|
|
26
|
-
*
|
|
27
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the MIT license found in the
|
|
30
|
-
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/
|
|
32
|
-
!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,c=e[l],s=l+1,u=e[s];if(0>o(c,n))s<i&&0>o(u,c)?(e[r]=u,e[s]=n,r=s):(e[r]=c,e[l]=n,r=l);else{if(!(s<i&&0>o(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],s=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(s);null!==o;){if(null===o.callback)r(s);else{if(!(o.startTime<=e))break;r(s),o.sortIndex=o.expirationTime,t(c,o)}o=n(s)}}function w(e){if(h=!1,y(e),!m)if(null!==n(c))m=!0,M(S);else{var t=n(s);null!==t&&P(w,t.startTime-e)}}function S(t,o){m=!1,h&&(h=!1,v(k),k=-1),p=!0;var i=f;try{for(y(o),d=n(c);null!==d&&(!(d.expirationTime>o)||t&&!N());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(c)&&r(c),y(o)}else r(c);d=n(c)}if(null!==d)var u=!0;else{var g=n(s);null!==g&&P(w,g.startTime-o),u=!1}return u}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,E=null,k=-1,$=5,O=-1;function N(){return!(e.unstable_now()-O<$)}function _(){if(null!==E){var t=e.unstable_now();O=t;var n=!0;try{n=E(!0,t)}finally{n?x():(C=!1,E=null)}}else C=!1}if("function"==typeof b)x=function(){b(_)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,R=I.port2;I.port1.onmessage=_,x=function(){R.postMessage(null)}}else x=function(){g(_,0)};function M(e){E=e,C||(C=!0,x())}function P(t,n){k=g((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_continueExecution=function(){m||p||(m=!0,M(S))},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 f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,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:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(s,r),null===n(c)&&r===n(s)&&(h?(v(k),k=-1):h=!0,P(w,i-a))):(r.sortIndex=l,t(c,r),m||p||(m=!0,M(S))),r},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(oe),re.exports=oe;var ie=re.exports,ae=H,le=ie;
|
|
33
|
-
/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom.production.min.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var se=new Set,ue={};function de(e,t){fe(e,t),fe(e+"Capture",t)}function fe(e,t){for(ue[e]=t,e=0;e<t.length;e++)se.add(t[e])}var pe=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),me=Object.prototype.hasOwnProperty,he=/^[: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]*$/,ge={},ve={};function be(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ye[e]=new be(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ye[t]=new be(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ye[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ye[e]=new be(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ye[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ye[e]=new be(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ye[e]=new be(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ye[e]=new be(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ye[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)}));var we=/[\-:]([a-z])/g;function Se(e){return e[1].toUpperCase()}function xe(e,t,n,r){var o=ye.hasOwnProperty(t)?ye[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!me.call(ve,e)||!me.call(ge,e)&&(he.test(e)?ve[e]=!0:(ge[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(we,Se);ye[t]=new be(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(we,Se);ye[t]=new be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(we,Se);ye[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ye[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)})),ye.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ye[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Ce=ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ee=Symbol.for("react.element"),ke=Symbol.for("react.portal"),$e=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),_e=Symbol.for("react.provider"),Ie=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),Te=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),Ae=Symbol.for("react.offscreen"),ze=Symbol.iterator;function De(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ze&&e[ze]||e["@@iterator"])?e:null}var Le,Be=Object.assign;function Fe(e){if(void 0===Le)try{throw Error()}catch(zE){var t=zE.stack.trim().match(/\n( *(at )?)/);Le=t&&t[1]||""}return"\n"+Le+e}var He=!1;function We(e,t){if(!e||He)return"";He=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(Oj){var r=Oj}Reflect.construct(e,[],t)}else{try{t.call()}catch(Oj){r=Oj}e.call(t.prototype)}else{try{throw Error()}catch(Oj){r=Oj}e()}}catch(Oj){if(Oj&&r&&"string"==typeof Oj.stack){for(var o=Oj.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var c="\n"+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=l);break}}}finally{He=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fe(e):""}function Ve(e){switch(e.tag){case 5:return Fe(e.type);case 16:return Fe("Lazy");case 13:return Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 2:case 15:return e=We(e.type,!1);case 11:return e=We(e.type.render,!1);case 1:return e=We(e.type,!0);default:return""}}function Ue(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case $e:return"Fragment";case ke:return"Portal";case Ne:return"Profiler";case Oe:return"StrictMode";case Me:return"Suspense";case Pe:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ie:return(e.displayName||"Context")+".Consumer";case _e:return(e._context.displayName||"Context")+".Provider";case Re:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Te:return null!==(t=e.displayName||null)?t:Ue(e.type)||"Memo";case je:t=e._payload,e=e._init;try{return Ue(e(t))}catch(zE){}}return null}function Ke(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ue(t);case 8:return t===Oe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function qe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Xe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ge(e){e._valueTracker||(e._valueTracker=function(e){var t=Xe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ye(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Qe(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(AE){return e.body}}function Ze(e,t){var n=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Je(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=qe(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function et(e,t){null!=(t=t.checked)&&xe(e,"checked",t,!1)}function tt(e,t){et(e,t);var n=qe(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?rt(e,t.type,n):t.hasOwnProperty("defaultValue")&&rt(e,t.type,qe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function nt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function rt(e,t,n){"number"===t&&Qe(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ot=Array.isArray;function it(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=""+qe(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 at(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ce(91));return Be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lt(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(ce(92));if(ot(n)){if(1<n.length)throw Error(ce(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:qe(n)}}function ct(e,t){var n=qe(t.value),r=qe(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function st(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ut(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function dt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ut(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ft,pt,mt=(pt=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ft=ft||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ft.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return pt(e,t)}))}:pt);function ht(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 gt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vt=["Webkit","ms","Moz","O"];function bt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||gt.hasOwnProperty(e)&>[e]?(""+t).trim():t+"px"}function yt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=bt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(gt).forEach((function(e){vt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gt[t]=gt[e]}))}));var wt=Be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function St(e,t){if(t){if(wt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ce(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ce(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ce(62))}}function xt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 Ct=null;function Et(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var kt=null,$t=null,Ot=null;function Nt(e){if(e=Ci(e)){if("function"!=typeof kt)throw Error(ce(280));var t=e.stateNode;t&&(t=ki(t),kt(e.stateNode,e.type,t))}}function _t(e){$t?Ot?Ot.push(e):Ot=[e]:$t=e}function It(){if($t){var e=$t,t=Ot;if(Ot=$t=null,Nt(e),t)for(e=0;e<t.length;e++)Nt(t[e])}}function Rt(e,t){return e(t)}function Mt(){}var Pt=!1;function Tt(e,t,n){if(Pt)return e(t,n);Pt=!0;try{return Rt(e,t,n)}finally{Pt=!1,(null!==$t||null!==Ot)&&(Mt(),It())}}function jt(e,t){var n=e.stateNode;if(null===n)return null;var r=ki(n);if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(ce(231,t,typeof n));return n}var At=!1;if(pe)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){At=!0}}),window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch(pt){At=!1}function Dt(e,t,n,r,o,i,a,l,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(UE){this.onError(UE)}}var Lt=!1,Bt=null,Ft=!1,Ht=null,Wt={onError:function(e){Lt=!0,Bt=e}};function Vt(e,t,n,r,o,i,a,l,c){Lt=!1,Bt=null,Dt.apply(Wt,arguments)}function Ut(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Kt(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 qt(e){if(Ut(e)!==e)throw Error(ce(188))}function Xt(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Ut(e)))throw Error(ce(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return qt(o),e;if(i===r)return qt(o),t;i=i.sibling}throw Error(ce(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(ce(189))}}if(n.alternate!==r)throw Error(ce(190))}if(3!==n.tag)throw Error(ce(188));return n.stateNode.current===n?e:t}(e),null!==e?Gt(e):null}function Gt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Gt(e);if(null!==t)return t;e=e.sibling}return null}var Yt=le.unstable_scheduleCallback,Qt=le.unstable_cancelCallback,Zt=le.unstable_shouldYield,Jt=le.unstable_requestPaint,en=le.unstable_now,tn=le.unstable_getCurrentPriorityLevel,nn=le.unstable_ImmediatePriority,rn=le.unstable_UserBlockingPriority,on=le.unstable_NormalPriority,an=le.unstable_LowPriority,ln=le.unstable_IdlePriority,cn=null,sn=null,un=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(dn(e)/fn|0)|0},dn=Math.log,fn=Math.LN2,pn=64,mn=4194304;function hn(e){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: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=hn(l):0!=(i&=a)&&(r=hn(i))}else 0!=(a=n&~o)?r=hn(a):0!==i&&(r=hn(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-un(t)),r|=e[n],t&=~o;return r}function vn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 bn(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yn(){var e=pn;return 0==(4194240&(pn<<=1))&&(pn=64),e}function wn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Sn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-un(t)]=n}function xn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-un(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Cn=0;function En(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var kn,$n,On,Nn,_n,In=!1,Rn=[],Mn=null,Pn=null,Tn=null,jn=new Map,An=new Map,zn=[],Dn="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 submit".split(" ");function Ln(e,t){switch(e){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":An.delete(t.pointerId)}}function Bn(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=Ci(t))&&$n(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Fn(e){var t=xi(e.target);if(null!==t){var n=Ut(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Kt(n)))return e.blockedOn=t,void _n(e.priority,(function(){On(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 Hn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ci(n))&&$n(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ct=r,n.target.dispatchEvent(r),Ct=null,t.shift()}return!0}function Wn(e,t,n){Hn(e)&&n.delete(t)}function Vn(){In=!1,null!==Mn&&Hn(Mn)&&(Mn=null),null!==Pn&&Hn(Pn)&&(Pn=null),null!==Tn&&Hn(Tn)&&(Tn=null),jn.forEach(Wn),An.forEach(Wn)}function Un(e,t){e.blockedOn===t&&(e.blockedOn=null,In||(In=!0,le.unstable_scheduleCallback(le.unstable_NormalPriority,Vn)))}function Kn(e){function t(t){return Un(t,e)}if(0<Rn.length){Un(Rn[0],e);for(var n=1;n<Rn.length;n++){var r=Rn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Mn&&Un(Mn,e),null!==Pn&&Un(Pn,e),null!==Tn&&Un(Tn,e),jn.forEach(t),An.forEach(t),n=0;n<zn.length;n++)(r=zn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<zn.length&&null===(n=zn[0]).blockedOn;)Fn(n),null===n.blockedOn&&zn.shift()}var qn=Ce.ReactCurrentBatchConfig,Xn=!0;function Gn(e,t,n,r){var o=Cn,i=qn.transition;qn.transition=null;try{Cn=1,Qn(e,t,n,r)}finally{Cn=o,qn.transition=i}}function Yn(e,t,n,r){var o=Cn,i=qn.transition;qn.transition=null;try{Cn=4,Qn(e,t,n,r)}finally{Cn=o,qn.transition=i}}function Qn(e,t,n,r){if(Xn){var o=Jn(e,t,n,r);if(null===o)Xo(e,t,r,Zn,n),Ln(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Mn=Bn(Mn,e,t,n,r,o),!0;case"dragenter":return Pn=Bn(Pn,e,t,n,r,o),!0;case"mouseover":return Tn=Bn(Tn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jn.set(i,Bn(jn.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,An.set(i,Bn(An.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ln(e,r),4&t&&-1<Dn.indexOf(e)){for(;null!==o;){var i=Ci(o);if(null!==i&&kn(i),null===(i=Jn(e,t,n,r))&&Xo(e,t,r,Zn,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Xo(e,t,r,null,n)}}var Zn=null;function Jn(e,t,n,r){if(Zn=null,null!==(e=xi(e=Et(r))))if(null===(t=Ut(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Kt(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 Zn=e,null}function er(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(tn()){case nn:return 1;case rn:return 4;case on:case an:return 16;case ln:return 536870912;default:return 16}default:return 16}}var tr=null,nr=null,rr=null;function or(){if(rr)return rr;var e,t,n=nr,r=n.length,o="value"in tr?tr.value:tr.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 rr=o.slice(e,1<t?1-t:void 0)}function ir(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 ar(){return!0}function lr(){return!1}function cr(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)?ar:lr,this.isPropagationStopped=lr,this}return Be(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=ar)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ar)},persist:function(){},isPersistent:ar}),t}var sr,ur,dr,fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pr=cr(fr),mr=Be({},fr,{view:0,detail:0}),hr=cr(mr),gr=Be({},mr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nr,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!==dr&&(dr&&"mousemove"===e.type?(sr=e.screenX-dr.screenX,ur=e.screenY-dr.screenY):ur=sr=0,dr=e),sr)},movementY:function(e){return"movementY"in e?e.movementY:ur}}),vr=cr(gr),br=cr(Be({},gr,{dataTransfer:0})),yr=cr(Be({},mr,{relatedTarget:0})),wr=cr(Be({},fr,{animationName:0,elapsedTime:0,pseudoElement:0})),Sr=Be({},fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xr=cr(Sr),Cr=cr(Be({},fr,{data:0})),Er={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kr={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"},$r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Or(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=$r[e])&&!!t[e]}function Nr(){return Or}var _r=Be({},mr,{key:function(e){if(e.key){var t=Er[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ir(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nr,charCode:function(e){return"keypress"===e.type?ir(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ir(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ir=cr(_r),Rr=cr(Be({},gr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mr=cr(Be({},mr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nr})),Pr=cr(Be({},fr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tr=Be({},gr,{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}),jr=cr(Tr),Ar=[9,13,27,32],zr=pe&&"CompositionEvent"in window,Dr=null;pe&&"documentMode"in document&&(Dr=document.documentMode);var Lr=pe&&"TextEvent"in window&&!Dr,Br=pe&&(!zr||Dr&&8<Dr&&11>=Dr),Fr=String.fromCharCode(32),Hr=!1;function Wr(e,t){switch(e){case"keyup":return-1!==Ar.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ur=!1,Kr={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 qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kr[e.type]:"textarea"===t}function Xr(e,t,n,r){_t(r),0<(t=Yo(t,"onChange")).length&&(n=new pr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gr=null,Yr=null;function Qr(e){Ho(e,0)}function Zr(e){if(Ye(Ei(e)))return e}function Jr(e,t){if("change"===e)return t}var eo=!1;if(pe){var to;if(pe){var no="oninput"in document;if(!no){var ro=document.createElement("div");ro.setAttribute("oninput","return;"),no="function"==typeof ro.oninput}to=no}else to=!1;eo=to&&(!document.documentMode||9<document.documentMode)}function oo(){Gr&&(Gr.detachEvent("onpropertychange",io),Yr=Gr=null)}function io(e){if("value"===e.propertyName&&Zr(Yr)){var t=[];Xr(t,Yr,e,Et(e)),Tt(Qr,t)}}function ao(e,t,n){"focusin"===e?(oo(),Yr=n,(Gr=t).attachEvent("onpropertychange",io)):"focusout"===e&&oo()}function lo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zr(Yr)}function co(e,t){if("click"===e)return Zr(t)}function so(e,t){if("input"===e||"change"===e)return Zr(t)}var uo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function fo(e,t){if(uo(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(!me.call(t,o)||!uo(e[o],t[o]))return!1}return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mo(e,t){var n,r=po(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=po(r)}}function ho(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ho(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function go(){for(var e=window,t=Qe();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(DE){n=!1}if(!n)break;t=Qe((e=t.contentWindow).document)}return t}function vo(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)}function bo(e){var t=go(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ho(n.ownerDocument.documentElement,n)){if(null!==r&&vo(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=mo(n,i);var a=mo(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var yo=pe&&"documentMode"in document&&11>=document.documentMode,wo=null,So=null,xo=null,Co=!1;function Eo(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Co||null==wo||wo!==Qe(r)||(r="selectionStart"in(r=wo)&&vo(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xo&&fo(xo,r)||(xo=r,0<(r=Yo(So,"onSelect")).length&&(t=new pr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wo)))}function ko(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $o={animationend:ko("Animation","AnimationEnd"),animationiteration:ko("Animation","AnimationIteration"),animationstart:ko("Animation","AnimationStart"),transitionend:ko("Transition","TransitionEnd")},Oo={},No={};function _o(e){if(Oo[e])return Oo[e];if(!$o[e])return e;var t,n=$o[e];for(t in n)if(n.hasOwnProperty(t)&&t in No)return Oo[e]=n[t];return e}pe&&(No=document.createElement("div").style,"AnimationEvent"in window||(delete $o.animationend.animation,delete $o.animationiteration.animation,delete $o.animationstart.animation),"TransitionEvent"in window||delete $o.transitionend.transition);var Io=_o("animationend"),Ro=_o("animationiteration"),Mo=_o("animationstart"),Po=_o("transitionend"),To=new Map,jo="abort auxClick 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 Ao(e,t){To.set(e,t),de(t,[e])}for(var zo=0;zo<jo.length;zo++){var Do=jo[zo];Ao(Do.toLowerCase(),"on"+(Do[0].toUpperCase()+Do.slice(1)))}Ao(Io,"onAnimationEnd"),Ao(Ro,"onAnimationIteration"),Ao(Mo,"onAnimationStart"),Ao("dblclick","onDoubleClick"),Ao("focusin","onFocus"),Ao("focusout","onBlur"),Ao(Po,"onTransitionEnd"),fe("onMouseEnter",["mouseout","mouseover"]),fe("onMouseLeave",["mouseout","mouseover"]),fe("onPointerEnter",["pointerout","pointerover"]),fe("onPointerLeave",["pointerout","pointerover"]),de("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),de("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),de("onBeforeInput",["compositionend","keypress","textInput","paste"]),de("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),de("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),de("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lo="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(" "),Bo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lo));function Fo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,c){if(Vt.apply(this,arguments),Lt){if(!Lt)throw Error(ce(198));var s=Bt;Lt=!1,Bt=null,Ft||(Ft=!0,Ht=s)}}(r,t,void 0,e),e.currentTarget=null}function Ho(e,t){t=0!=(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],c=l.instance,s=l.currentTarget;if(l=l.listener,c!==i&&o.isPropagationStopped())break e;Fo(o,l,s),i=c}else for(a=0;a<r.length;a++){if(c=(l=r[a]).instance,s=l.currentTarget,l=l.listener,c!==i&&o.isPropagationStopped())break e;Fo(o,l,s),i=c}}}if(Ft)throw e=Ht,Ft=!1,Ht=null,e}function Wo(e,t){var n=t[yi];void 0===n&&(n=t[yi]=new Set);var r=e+"__bubble";n.has(r)||(qo(t,e,2,!1),n.add(r))}function Vo(e,t,n){var r=0;t&&(r|=4),qo(n,e,r,t)}var Uo="_reactListening"+Math.random().toString(36).slice(2);function Ko(e){if(!e[Uo]){e[Uo]=!0,se.forEach((function(t){"selectionchange"!==t&&(Bo.has(t)||Vo(t,!1,e),Vo(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Uo]||(t[Uo]=!0,Vo("selectionchange",!1,t))}}function qo(e,t,n,r){switch(er(t)){case 1:var o=Gn;break;case 4:o=Yn;break;default:o=Qn}n=o.bind(null,t,n,e),o=void 0,!At||"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 Xo(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=xi(l)))return;if(5===(c=a.tag)||6===c){r=i=a;continue e}l=l.parentNode}}r=r.return}Tt((function(){var r=i,o=Et(n),a=[];e:{var l=To.get(e);if(void 0!==l){var c=pr,s=e;switch(e){case"keypress":if(0===ir(n))break e;case"keydown":case"keyup":c=Ir;break;case"focusin":s="focus",c=yr;break;case"focusout":s="blur",c=yr;break;case"beforeblur":case"afterblur":c=yr;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=vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=br;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Mr;break;case Io:case Ro:case Mo:c=wr;break;case Po:c=Pr;break;case"scroll":c=hr;break;case"wheel":c=jr;break;case"copy":case"cut":case"paste":c=xr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Rr}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&null!=(h=jt(m,f))&&u.push(Go(m,h,p))),d)break;m=m.return}0<u.length&&(l=new c(l,s,null,n,o),a.push({event:l,listeners:u}))}}if(0==(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Ct||!(s=n.relatedTarget||n.fromElement)||!xi(s)&&!s[bi])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(s=(s=n.relatedTarget||n.toElement)?xi(s):null)&&(s!==(d=Ut(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(c=null,s=r),c!==s)){if(u=vr,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Rr,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==c?l:Ei(c),p=null==s?l:Ei(s),(l=new u(h,m+"leave",c,n,o)).target=d,l.relatedTarget=p,h=null,xi(o)===r&&((u=new u(f,m+"enter",s,n,o)).target=p,u.relatedTarget=d,h=u),d=h,c&&s)e:{for(f=s,m=0,p=u=c;p;p=Qo(p))m++;for(p=0,h=f;h;h=Qo(h))p++;for(;0<m-p;)u=Qo(u),m--;for(;0<p-m;)f=Qo(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=Qo(u),f=Qo(f)}u=null}else u=null;null!==c&&Zo(a,l,c,u,!1),null!==s&&null!==d&&Zo(a,d,s,u,!0)}if("select"===(c=(l=r?Ei(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var g=Jr;else if(qr(l))if(eo)g=so;else{g=lo;var v=ao}else(c=l.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=co);switch(g&&(g=g(e,r))?Xr(a,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&rt(l,"number",l.value)),v=r?Ei(r):window,e){case"focusin":(qr(v)||"true"===v.contentEditable)&&(wo=v,So=r,xo=null);break;case"focusout":xo=So=wo=null;break;case"mousedown":Co=!0;break;case"contextmenu":case"mouseup":case"dragend":Co=!1,Eo(a,n,o);break;case"selectionchange":if(yo)break;case"keydown":case"keyup":Eo(a,n,o)}var b;if(zr)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Ur?Wr(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Br&&"ko"!==n.locale&&(Ur||"onCompositionStart"!==y?"onCompositionEnd"===y&&Ur&&(b=or()):(nr="value"in(tr=o)?tr.value:tr.textContent,Ur=!0)),0<(v=Yo(r,y)).length&&(y=new Cr(y,e,null,n,o),a.push({event:y,listeners:v}),(b||null!==(b=Vr(n)))&&(y.data=b))),(b=Lr?function(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return 32!==t.which?null:(Hr=!0,Fr);case"textInput":return(e=t.data)===Fr&&Hr?null:e;default:return null}}(e,n):function(e,t){if(Ur)return"compositionend"===e||!zr&&Wr(e,t)?(e=or(),rr=nr=tr=null,Ur=!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 Br&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Yo(r,"onBeforeInput")).length&&(o=new Cr("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b)}Ho(a,t)}))}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yo(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=jt(e,n))&&r.unshift(Go(e,i,o)),null!=(i=jt(e,t))&&r.push(Go(e,i,o))),e=e.return}return r}function Qo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zo(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,c=l.alternate,s=l.stateNode;if(null!==c&&c===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(c=jt(n,i))&&a.unshift(Go(n,c,l)):o||null!=(c=jt(n,i))&&a.push(Go(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Jo=/\r\n?/g,ei=/\u0000|\uFFFD/g;function ti(e){return("string"==typeof e?e:""+e).replace(Jo,"\n").replace(ei,"")}function ni(e,t,n){if(t=ti(t),ti(e)!==t&&n)throw Error(ce(425))}function ri(){}var oi=null,ii=null;function ai(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var li="function"==typeof setTimeout?setTimeout:void 0,ci="function"==typeof clearTimeout?clearTimeout:void 0,si="function"==typeof Promise?Promise:void 0,ui="function"==typeof queueMicrotask?queueMicrotask:void 0!==si?function(e){return si.resolve(null).then(e).catch(di)}:li;function di(e){setTimeout((function(){throw e}))}function fi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Kn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Kn(t)}function pi(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)break;if("/$"===t)return null}}return e}function mi(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var hi=Math.random().toString(36).slice(2),gi="__reactFiber$"+hi,vi="__reactProps$"+hi,bi="__reactContainer$"+hi,yi="__reactEvents$"+hi,wi="__reactListeners$"+hi,Si="__reactHandles$"+hi;function xi(e){var t=e[gi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bi]||n[gi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=mi(e);null!==e;){if(n=e[gi])return n;e=mi(e)}return t}n=(e=n).parentNode}return null}function Ci(e){return!(e=e[gi]||e[bi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ei(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ce(33))}function ki(e){return e[vi]||null}var $i=[],Oi=-1;function Ni(e){return{current:e}}function _i(e){0>Oi||(e.current=$i[Oi],$i[Oi]=null,Oi--)}function Ii(e,t){Oi++,$i[Oi]=e.current,e.current=t}var Ri={},Mi=Ni(Ri),Pi=Ni(!1),Ti=Ri;function ji(e,t){var n=e.type.contextTypes;if(!n)return Ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ai(e){return null!=(e=e.childContextTypes)}function zi(){_i(Pi),_i(Mi)}function Di(e,t,n){if(Mi.current!==Ri)throw Error(ce(168));Ii(Mi,t),Ii(Pi,n)}function Li(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(ce(108,Ke(e)||"Unknown",o));return Be({},n,r)}function Bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ri,Ti=Mi.current,Ii(Mi,e),Ii(Pi,Pi.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=Li(e,t,Ti),r.__reactInternalMemoizedMergedChildContext=e,_i(Pi),_i(Mi),Ii(Mi,e)):_i(Pi),Ii(Pi,n)}var Hi=null,Wi=!1,Vi=!1;function Ui(e){null===Hi?Hi=[e]:Hi.push(e)}function Ki(){if(!Vi&&null!==Hi){Vi=!0;var e=0,t=Cn;try{var n=Hi;for(Cn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Hi=null,Wi=!1}catch(Ij){throw null!==Hi&&(Hi=Hi.slice(e+1)),Yt(nn,Ki),Ij}finally{Cn=t,Vi=!1}}return null}var qi=[],Xi=0,Gi=null,Yi=0,Qi=[],Zi=0,Ji=null,ea=1,ta="";function na(e,t){qi[Xi++]=Yi,qi[Xi++]=Gi,Gi=e,Yi=t}function ra(e,t,n){Qi[Zi++]=ea,Qi[Zi++]=ta,Qi[Zi++]=Ji,Ji=e;var r=ea;e=ta;var o=32-un(r)-1;r&=~(1<<o),n+=1;var i=32-un(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,ea=1<<32-un(t)+o|n<<o|r,ta=i+e}else ea=1<<i|n<<o|r,ta=e}function oa(e){null!==e.return&&(na(e,1),ra(e,1,0))}function ia(e){for(;e===Gi;)Gi=qi[--Xi],qi[Xi]=null,Yi=qi[--Xi],qi[Xi]=null;for(;e===Ji;)Ji=Qi[--Zi],Qi[Zi]=null,ta=Qi[--Zi],Qi[Zi]=null,ea=Qi[--Zi],Qi[Zi]=null}var aa=null,la=null,ca=!1,sa=null;function ua(e,t){var n=ju(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function da(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,aa=e,la=pi(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,aa=e,la=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ji?{id:ea,overflow:ta}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=ju(18,null,null,0)).stateNode=t,n.return=e,e.child=n,aa=e,la=null,!0);default:return!1}}function fa(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function pa(e){if(ca){var t=la;if(t){var n=t;if(!da(e,t)){if(fa(e))throw Error(ce(418));t=pi(n.nextSibling);var r=aa;t&&da(e,t)?ua(r,n):(e.flags=-4097&e.flags|2,ca=!1,aa=e)}}else{if(fa(e))throw Error(ce(418));e.flags=-4097&e.flags|2,ca=!1,aa=e}}}function ma(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;aa=e}function ha(e){if(e!==aa)return!1;if(!ca)return ma(e),ca=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ai(e.type,e.memoizedProps)),t&&(t=la)){if(fa(e))throw ga(),Error(ce(418));for(;t;)ua(e,t),t=pi(t.nextSibling)}if(ma(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ce(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){la=pi(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}la=null}}else la=aa?pi(e.stateNode.nextSibling):null;return!0}function ga(){for(var e=la;e;)e=pi(e.nextSibling)}function va(){la=aa=null,ca=!1}function ba(e){null===sa?sa=[e]:sa.push(e)}var ya=Ce.ReactCurrentBatchConfig;function wa(e,t){if(e&&e.defaultProps){for(var n in t=Be({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Sa=Ni(null),xa=null,Ca=null,Ea=null;function ka(){Ea=Ca=xa=null}function $a(e){var t=Sa.current;_i(Sa),e._currentValue=t}function Oa(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 Na(e,t){xa=e,Ea=Ca=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Cc=!0),e.firstContext=null)}function _a(e){var t=e._currentValue;if(Ea!==e)if(e={context:e,memoizedValue:t,next:null},null===Ca){if(null===xa)throw Error(ce(308));Ca=e,xa.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var Ia=null;function Ra(e){null===Ia?Ia=[e]:Ia.push(e)}function Ma(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ra(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pa(e,r)}function Pa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ta=!1;function ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Aa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function za(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ms)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pa(e,n)}return null===(o=r.interleaved)?(t.next=t,Ra(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pa(e,n)}function La(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,xn(e,n)}}function Ba(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={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,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,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var o=e.updateQueue;Ta=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,s=c.next;c.next=null,null===a?i=s:a.next=s,a=c;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=s:l.next=s,u.lastBaseUpdate=c)}if(null!==i){var d=o.baseState;for(a=0,u=s=c=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=Be({},d,f);break e;case 2:Ta=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(s=u=p,c=d):u=u.next=p,a|=f;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}}if(null===u&&(c=d),o.baseState=c,o.firstBaseUpdate=s,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Bs|=a,e.lanes=a,e.memoizedState=d}}function Ha(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(ce(191,o));o.call(r)}}}var Wa=(new ae.Component).refs;function Va(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Be({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ua={isMounted:function(e){return!!(e=e._reactInternals)&&Ut(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ou(),o=iu(e),i=za(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Da(e,i,o))&&(au(t,e,o,r),La(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ou(),o=iu(e),i=za(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Da(e,i,o))&&(au(t,e,o,r),La(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ou(),r=iu(e),o=za(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Da(e,o,r))&&(au(t,e,r,n),La(t,e,r))}};function Ka(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&fo(n,r)&&fo(o,i))}function qa(e,t,n){var r=!1,o=Ri,i=t.contextType;return"object"==typeof i&&null!==i?i=_a(i):(o=Ai(t)?Ti:Mi.current,i=(r=null!=(r=t.contextTypes))?ji(e,o):Ri),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ua,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Xa(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&&Ua.enqueueReplaceState(t,t.state,null)}function Ga(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Wa,ja(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=_a(i):(i=Ai(t)?Ti:Mi.current,o.context=ji(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Va(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ua.enqueueReplaceState(o,o.state,null),Fa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ya(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(ce(309));var r=n.stateNode}if(!r)throw Error(ce(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Wa&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(ce(284));if(!n._owner)throw Error(ce(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(ce(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Za(e){return(0,e._init)(e._payload)}function Ja(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 r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===$e?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===je&&Za(i)===t.type)?((r=o(t,n.props)).ref=Ya(e,t,n),r.return=e,r):((r=Du(n.type,n.key,n.props,null,e.mode,r)).ref=Ya(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ee:return(n=Du(t.type,t.key,t.props,null,e.mode,n)).ref=Ya(e,null,t),n.return=e,n;case ke:return(t=Hu(t,e.mode,n)).return=e,t;case je:return d(e,(0,t._init)(t._payload),n)}if(ot(t)||De(t))return(t=Lu(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ee:return n.key===o?c(e,t,n,r):null;case ke:return n.key===o?s(e,t,n,r):null;case je:return f(e,t,(o=n._init)(n._payload),r)}if(ot(n)||De(n))return null!==o?null:u(e,t,n,r,null);Qa(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ee:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case ke:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case je:return p(e,t,n,(0,r._init)(r._payload),o)}if(ot(r)||De(r))return u(t,e=e.get(n)||null,r,o,null);Qa(t,r)}return null}function m(o,a,l,c){for(var s=null,u=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=f(o,m,l[h],c);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===u?s=v:u.sibling=v,u=v,m=g}if(h===l.length)return n(o,m),ca&&na(o,h),s;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],c))&&(a=i(m,a,h),null===u?s=m:u.sibling=m,u=m);return ca&&na(o,h),s}for(m=r(o,m);h<l.length;h++)null!==(g=p(m,o,h,l[h],c))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===u?s=g:u.sibling=g,u=g);return e&&m.forEach((function(e){return t(o,e)})),ca&&na(o,h),s}function h(o,a,l,c){var s=De(l);if("function"!=typeof s)throw Error(ce(150));if(null==(l=s.call(l)))throw Error(ce(151));for(var u=s=null,m=a,h=a=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var b=f(o,m,v.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===u?s=b:u.sibling=b,u=b,m=g}if(v.done)return n(o,m),ca&&na(o,h),s;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,c))&&(a=i(v,a,h),null===u?s=v:u.sibling=v,u=v);return ca&&na(o,h),s}for(m=r(o,m);!v.done;h++,v=l.next())null!==(v=p(m,o,h,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=i(v,a,h),null===u?s=v:u.sibling=v,u=v);return e&&m.forEach((function(e){return t(o,e)})),ca&&na(o,h),s}return function e(r,i,l,c){if("object"==typeof l&&null!==l&&l.type===$e&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Ee:e:{for(var s=l.key,u=i;null!==u;){if(u.key===s){if((s=l.type)===$e){if(7===u.tag){n(r,u.sibling),(i=o(u,l.props.children)).return=r,r=i;break e}}else if(u.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===je&&Za(s)===u.type){n(r,u.sibling),(i=o(u,l.props)).ref=Ya(r,u,l),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===$e?((i=Lu(l.props.children,r.mode,c,l.key)).return=r,r=i):((c=Du(l.type,l.key,l.props,null,r.mode,c)).ref=Ya(r,i,l),c.return=r,r=c)}return a(r);case ke:e:{for(u=l.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Hu(l,r.mode,c)).return=r,r=i}return a(r);case je:return e(r,i,(u=l._init)(l._payload),c)}if(ot(l))return m(r,i,l,c);if(De(l))return h(r,i,l,c);Qa(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=Fu(l,r.mode,c)).return=r,r=i),a(r)):n(r,i)}}var el=Ja(!0),tl=Ja(!1),nl={},rl=Ni(nl),ol=Ni(nl),il=Ni(nl);function al(e){if(e===nl)throw Error(ce(174));return e}function ll(e,t){switch(Ii(il,t),Ii(ol,e),Ii(rl,nl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dt(null,"");break;default:t=dt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_i(rl),Ii(rl,t)}function cl(){_i(rl),_i(ol),_i(il)}function sl(e){al(il.current);var t=al(rl.current),n=dt(t,e.type);t!==n&&(Ii(ol,e),Ii(rl,n))}function ul(e){ol.current===e&&(_i(rl),_i(ol))}var dl=Ni(0);function fl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}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 pl=[];function ml(){for(var e=0;e<pl.length;e++)pl[e]._workInProgressVersionPrimary=null;pl.length=0}var hl=Ce.ReactCurrentDispatcher,gl=Ce.ReactCurrentBatchConfig,vl=0,bl=null,yl=null,wl=null,Sl=!1,xl=!1,Cl=0,El=0;function kl(){throw Error(ce(321))}function $l(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!uo(e[n],t[n]))return!1;return!0}function Ol(e,t,n,r,o,i){if(vl=i,bl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hl.current=null===e||null===e.memoizedState?uc:dc,e=n(r,o),xl){i=0;do{if(xl=!1,Cl=0,25<=i)throw Error(ce(301));i+=1,wl=yl=null,t.updateQueue=null,hl.current=fc,e=n(r,o)}while(xl)}if(hl.current=sc,t=null!==yl&&null!==yl.next,vl=0,wl=yl=bl=null,Sl=!1,t)throw Error(ce(300));return e}function Nl(){var e=0!==Cl;return Cl=0,e}function _l(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===wl?bl.memoizedState=wl=e:wl=wl.next=e,wl}function Il(){if(null===yl){var e=bl.alternate;e=null!==e?e.memoizedState:null}else e=yl.next;var t=null===wl?bl.memoizedState:wl.next;if(null!==t)wl=t,yl=e;else{if(null===e)throw Error(ce(310));e={memoizedState:(yl=e).memoizedState,baseState:yl.baseState,baseQueue:yl.baseQueue,queue:yl.queue,next:null},null===wl?bl.memoizedState=wl=e:wl=wl.next=e}return wl}function Rl(e,t){return"function"==typeof t?t(e):t}function Ml(e){var t=Il(),n=t.queue;if(null===n)throw Error(ce(311));n.lastRenderedReducer=e;var r=yl,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,c=null,s=i;do{var u=s.lane;if((vl&u)===u)null!==c&&(c=c.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var d={lane:u,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};null===c?(l=c=d,a=r):c=c.next=d,bl.lanes|=u,Bs|=u}s=s.next}while(null!==s&&s!==i);null===c?a=r:c.next=l,uo(r,t.memoizedState)||(Cc=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,bl.lanes|=i,Bs|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pl(e){var t=Il(),n=t.queue;if(null===n)throw Error(ce(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);uo(i,t.memoizedState)||(Cc=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Tl(){}function jl(e,t){var n=bl,r=Il(),o=t(),i=!uo(r.memoizedState,o);if(i&&(r.memoizedState=o,Cc=!0),r=r.queue,ql(Dl.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==wl&&1&wl.memoizedState.tag){if(n.flags|=2048,Hl(9,zl.bind(null,n,r,o,t),void 0,null),null===Ps)throw Error(ce(349));0!=(30&vl)||Al(n,t,o)}return o}function Al(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=bl.updateQueue)?(t={lastEffect:null,stores:null},bl.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function zl(e,t,n,r){t.value=n,t.getSnapshot=r,Ll(t)&&Bl(e)}function Dl(e,t,n){return n((function(){Ll(t)&&Bl(e)}))}function Ll(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!uo(e,n)}catch(DE){return!0}}function Bl(e){var t=Pa(e,1);null!==t&&au(t,e,1,-1)}function Fl(e){var t=_l();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:e},t.queue=e,e=e.dispatch=ic.bind(null,bl,e),[t.memoizedState,e]}function Hl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=bl.updateQueue)?(t={lastEffect:null,stores:null},bl.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Wl(){return Il().memoizedState}function Vl(e,t,n,r){var o=_l();bl.flags|=e,o.memoizedState=Hl(1|t,n,void 0,void 0===r?null:r)}function Ul(e,t,n,r){var o=Il();r=void 0===r?null:r;var i=void 0;if(null!==yl){var a=yl.memoizedState;if(i=a.destroy,null!==r&&$l(r,a.deps))return void(o.memoizedState=Hl(t,n,i,r))}bl.flags|=e,o.memoizedState=Hl(1|t,n,i,r)}function Kl(e,t){return Vl(8390656,8,e,t)}function ql(e,t){return Ul(2048,8,e,t)}function Xl(e,t){return Ul(4,2,e,t)}function Gl(e,t){return Ul(4,4,e,t)}function Yl(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ql(e,t,n){return n=null!=n?n.concat([e]):null,Ul(4,4,Yl.bind(null,t,e),n)}function Zl(){}function Jl(e,t){var n=Il();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$l(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ec(e,t){var n=Il();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$l(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tc(e,t,n){return 0==(21&vl)?(e.baseState&&(e.baseState=!1,Cc=!0),e.memoizedState=n):(uo(n,t)||(n=yn(),bl.lanes|=n,Bs|=n,e.baseState=!0),t)}function nc(e,t){var n=Cn;Cn=0!==n&&4>n?n:4,e(!0);var r=gl.transition;gl.transition={};try{e(!1),t()}finally{Cn=n,gl.transition=r}}function rc(){return Il().memoizedState}function oc(e,t,n){var r=iu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e)?lc(t,n):null!==(n=Ma(e,t,n,r))&&(au(n,e,r,ou()),cc(n,t,r))}function ic(e,t,n){var r=iu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ac(e))lc(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,uo(l,a)){var c=t.interleaved;return null===c?(o.next=o,Ra(t)):(o.next=c.next,c.next=o),void(t.interleaved=o)}}catch(Oj){}null!==(n=Ma(e,t,o,r))&&(au(n,e,r,o=ou()),cc(n,t,r))}}function ac(e){var t=e.alternate;return e===bl||null!==t&&t===bl}function lc(e,t){xl=Sl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,xn(e,n)}}var sc={readContext:_a,useCallback:kl,useContext:kl,useEffect:kl,useImperativeHandle:kl,useInsertionEffect:kl,useLayoutEffect:kl,useMemo:kl,useReducer:kl,useRef:kl,useState:kl,useDebugValue:kl,useDeferredValue:kl,useTransition:kl,useMutableSource:kl,useSyncExternalStore:kl,useId:kl,unstable_isNewReconciler:!1},uc={readContext:_a,useCallback:function(e,t){return _l().memoizedState=[e,void 0===t?null:t],e},useContext:_a,useEffect:Kl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Vl(4194308,4,Yl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vl(4,2,e,t)},useMemo:function(e,t){var n=_l();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_l();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=oc.bind(null,bl,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_l().memoizedState=e},useState:Fl,useDebugValue:Zl,useDeferredValue:function(e){return _l().memoizedState=e},useTransition:function(){var e=Fl(!1),t=e[0];return e=nc.bind(null,e[1]),_l().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=bl,o=_l();if(ca){if(void 0===n)throw Error(ce(407));n=n()}else{if(n=t(),null===Ps)throw Error(ce(349));0!=(30&vl)||Al(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Kl(Dl.bind(null,r,i,e),[e]),r.flags|=2048,Hl(9,zl.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_l(),t=Ps.identifierPrefix;if(ca){var n=ta;t=":"+t+"R"+(n=(ea&~(1<<32-un(ea)-1)).toString(32)+n),0<(n=Cl++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=El++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},dc={readContext:_a,useCallback:Jl,useContext:_a,useEffect:ql,useImperativeHandle:Ql,useInsertionEffect:Xl,useLayoutEffect:Gl,useMemo:ec,useReducer:Ml,useRef:Wl,useState:function(){return Ml(Rl)},useDebugValue:Zl,useDeferredValue:function(e){return tc(Il(),yl.memoizedState,e)},useTransition:function(){return[Ml(Rl)[0],Il().memoizedState]},useMutableSource:Tl,useSyncExternalStore:jl,useId:rc,unstable_isNewReconciler:!1},fc={readContext:_a,useCallback:Jl,useContext:_a,useEffect:ql,useImperativeHandle:Ql,useInsertionEffect:Xl,useLayoutEffect:Gl,useMemo:ec,useReducer:Pl,useRef:Wl,useState:function(){return Pl(Rl)},useDebugValue:Zl,useDeferredValue:function(e){var t=Il();return null===yl?t.memoizedState=e:tc(t,yl.memoizedState,e)},useTransition:function(){return[Pl(Rl)[0],Il().memoizedState]},useMutableSource:Tl,useSyncExternalStore:jl,useId:rc,unstable_isNewReconciler:!1};function pc(e,t){try{var n="",r=t;do{n+=Ve(r),r=r.return}while(r);var o=n}catch(BE){o="\nError generating stack: "+BE.message+"\n"+BE.stack}return{value:e,source:t,stack:o,digest:null}}function mc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hc(e,t){try{console.error(t.value)}catch(zE){setTimeout((function(){throw zE}))}}var gc="function"==typeof WeakMap?WeakMap:Map;function vc(e,t,n){(n=za(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,Gs=r),hc(0,t)},n}function bc(e,t,n){(n=za(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){hc(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){hc(0,t),"function"!=typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new gc;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)||(o.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function wc(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Sc(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=za(-1,1)).tag=2,Da(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var xc=Ce.ReactCurrentOwner,Cc=!1;function Ec(e,t,n,r){t.child=null===e?tl(t,null,n,r):el(t,e.child,n,r)}function kc(e,t,n,r,o){n=n.render;var i=t.ref;return Na(t,o),r=Ol(e,t,n,r,i,o),n=Nl(),null===e||Cc?(ca&&n&&oa(t),t.flags|=1,Ec(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xc(e,t,o))}function $c(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Au(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Oc(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:fo)(a,r)&&e.ref===t.ref)return Xc(e,t,o)}return t.flags|=1,(e=zu(i,r)).ref=t.ref,e.return=t,t.child=e}function Oc(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(fo(i,r)&&e.ref===t.ref){if(Cc=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Xc(e,t,o);0!=(131072&e.flags)&&(Cc=!0)}}return Ic(e,t,n,r,o)}function Nc(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ii(zs,As),As|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ii(zs,As),As|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ii(zs,As),As|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ii(zs,As),As|=r;return Ec(e,t,o,n),t.child}function _c(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ic(e,t,n,r,o){var i=Ai(n)?Ti:Mi.current;return i=ji(t,i),Na(t,o),n=Ol(e,t,n,r,i,o),r=Nl(),null===e||Cc?(ca&&r&&oa(t),t.flags|=1,Ec(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xc(e,t,o))}function Rc(e,t,n,r,o){if(Ai(n)){var i=!0;Bi(t)}else i=!1;if(Na(t,o),null===t.stateNode)qc(e,t),qa(t,n,r),Ga(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,s=n.contextType;s="object"==typeof s&&null!==s?_a(s):ji(t,s=Ai(n)?Ti:Mi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||c!==s)&&Xa(t,a,r,s),Ta=!1;var f=t.memoizedState;a.state=f,Fa(t,r,a,o),c=t.memoizedState,l!==r||f!==c||Pi.current||Ta?("function"==typeof u&&(Va(t,n,u,r),c=t.memoizedState),(l=Ta||Ka(t,n,l,r,f,c,s))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Aa(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:wa(t.type,l),a.props=s,d=t.pendingProps,f=a.context,c="object"==typeof(c=n.contextType)&&null!==c?_a(c):ji(t,c=Ai(n)?Ti:Mi.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==c)&&Xa(t,a,r,c),Ta=!1,f=t.memoizedState,a.state=f,Fa(t,r,a,o);var m=t.memoizedState;l!==d||f!==m||Pi.current||Ta?("function"==typeof p&&(Va(t,n,p,r),m=t.memoizedState),(s=Ta||Ka(t,n,s,r,f,m,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Mc(e,t,n,r,i,o)}function Mc(e,t,n,r,o,i){_c(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Fi(t,n,!1),Xc(e,t,i);r=t.stateNode,xc.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=el(t,e.child,null,i),t.child=el(t,null,l,i)):Ec(e,t,l,i),t.memoizedState=r.state,o&&Fi(t,n,!0),t.child}function Pc(e){var t=e.stateNode;t.pendingContext?Di(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Di(0,t.context,!1),ll(e,t.containerInfo)}function Tc(e,t,n,r,o){return va(),ba(o),t.flags|=256,Ec(e,t,n,r),t.child}var jc,Ac,zc,Dc,Lc={dehydrated:null,treeContext:null,retryLane:0};function Bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fc(e,t,n){var r,o=t.pendingProps,i=dl.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ii(dl,1&i),null===e)return pa(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Bu(l,o,0,null),e=Lu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Bc(n),t.memoizedState=Lc,e):Hc(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Wc(e,t,a,r=mc(Error(ce(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Bu({mode:"visible",children:r.children},o,0,null),(i=Lu(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&el(t,e.child,null,a),t.child.memoizedState=Bc(a),t.memoizedState=Lc,i);if(0==(1&t.mode))return Wc(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Wc(e,t,a,r=mc(i=Error(ce(419)),r,void 0))}if(l=0!=(a&e.childLanes),Cc||l){if(null!==(r=Ps)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Pa(e,o),au(r,e,o,-1))}return yu(),Wc(e,t,a,r=mc(Error(ce(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ru.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,la=pi(o.nextSibling),aa=t,ca=!0,sa=null,null!==e&&(Qi[Zi++]=ea,Qi[Zi++]=ta,Qi[Zi++]=Ji,ea=e.id,ta=e.overflow,Ji=t),(t=Hc(t,r.children)).flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=zu(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=zu(r,a):(a=Lu(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Bc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Lc,o}return e=(a=e.child).sibling,o=zu(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Hc(e,t){return(t=Bu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Wc(e,t,n,r){return null!==r&&ba(r),el(t,e.child,null,n),(e=Hc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vc(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oa(e.return,t,n)}function Uc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Kc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ec(e,t,r.children,n),0!=(2&(r=dl.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vc(e,n,t);else if(19===e.tag)Vc(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}r&=1}if(Ii(dl,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===fl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Uc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===fl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Uc(t,!0,n,null,i);break;case"together":Uc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qc(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ce(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gc(e,t){if(!ca)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 Yc(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|=14680064&o.subtreeFlags,r|=14680064&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 Qc(e,t,n){var r=t.pendingProps;switch(ia(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yc(t),null;case 1:case 17:return Ai(t.type)&&zi(),Yc(t),null;case 3:return r=t.stateNode,cl(),_i(Pi),_i(Mi),ml(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ha(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==sa&&(uu(sa),sa=null))),Ac(e,t),Yc(t),null;case 5:ul(t);var o=al(il.current);if(n=t.type,null!==e&&null!=t.stateNode)zc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ce(166));return Yc(t),null}if(e=al(rl.current),ha(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[gi]=t,r[vi]=i,e=0!=(1&t.mode),n){case"dialog":Wo("cancel",r),Wo("close",r);break;case"iframe":case"object":case"embed":Wo("load",r);break;case"video":case"audio":for(o=0;o<Lo.length;o++)Wo(Lo[o],r);break;case"source":Wo("error",r);break;case"img":case"image":case"link":Wo("error",r),Wo("load",r);break;case"details":Wo("toggle",r);break;case"input":Je(r,i),Wo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Wo("invalid",r);break;case"textarea":lt(r,i),Wo("invalid",r)}for(var a in St(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&ni(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&ni(r.textContent,l,e),o=["children",""+l]):ue.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Wo("scroll",r)}switch(n){case"input":Ge(r),nt(r,i,!0);break;case"textarea":Ge(r),st(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=ri)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ut(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[gi]=t,e[vi]=r,jc(e,t,!1,!1),t.stateNode=e;e:{switch(a=xt(n,r),n){case"dialog":Wo("cancel",e),Wo("close",e),o=r;break;case"iframe":case"object":case"embed":Wo("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lo.length;o++)Wo(Lo[o],e);o=r;break;case"source":Wo("error",e),o=r;break;case"img":case"image":case"link":Wo("error",e),Wo("load",e),o=r;break;case"details":Wo("toggle",e),o=r;break;case"input":Je(e,r),o=Ze(e,r),Wo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Be({},r,{value:void 0}),Wo("invalid",e);break;case"textarea":lt(e,r),o=at(e,r),Wo("invalid",e)}for(i in St(n,o),l=o)if(l.hasOwnProperty(i)){var c=l[i];"style"===i?yt(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&mt(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&ht(e,c):"number"==typeof c&&ht(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(ue.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Wo("scroll",e):null!=c&&xe(e,i,c,a))}switch(n){case"input":Ge(e),nt(e,r,!1);break;case"textarea":Ge(e),st(e);break;case"option":null!=r.value&&e.setAttribute("value",""+qe(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?it(e,!!r.multiple,i,!1):null!=r.defaultValue&&it(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ri)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Yc(t),null;case 6:if(e&&null!=t.stateNode)Dc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(ce(166));if(n=al(il.current),al(rl.current),ha(t)){if(r=t.stateNode,n=t.memoizedProps,r[gi]=t,(i=r.nodeValue!==n)&&null!==(e=aa))switch(e.tag){case 3:ni(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ni(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[gi]=t,t.stateNode=r}return Yc(t),null;case 13:if(_i(dl),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ca&&null!==la&&0!=(1&t.mode)&&0==(128&t.flags))ga(),va(),t.flags|=98560,i=!1;else if(i=ha(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(ce(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(ce(317));i[gi]=t}else va(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Yc(t),i=!1}else null!==sa&&(uu(sa),sa=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&dl.current)?0===Ds&&(Ds=3):yu())),null!==t.updateQueue&&(t.flags|=4),Yc(t),null);case 4:return cl(),Ac(e,t),null===e&&Ko(t.stateNode.containerInfo),Yc(t),null;case 10:return $a(t.type._context),Yc(t),null;case 19:if(_i(dl),null===(i=t.memoizedState))return Yc(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)Gc(i,!1);else{if(0!==Ds||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=fl(e))){for(t.flags|=128,Gc(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ii(dl,1&dl.current|2),t.child}e=e.sibling}null!==i.tail&&en()>Ks&&(t.flags|=128,r=!0,Gc(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=fl(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gc(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!ca)return Yc(t),null}else 2*en()-i.renderingStartTime>Ks&&1073741824!==n&&(t.flags|=128,r=!0,Gc(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=en(),t.sibling=null,n=dl.current,Ii(dl,r?1&n|2:1&n),t):(Yc(t),null);case 22:case 23:return hu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&As)&&(Yc(t),6&t.subtreeFlags&&(t.flags|=8192)):Yc(t),null;case 24:case 25:return null}throw Error(ce(156,t.tag))}function Zc(e,t){switch(ia(t),t.tag){case 1:return Ai(t.type)&&zi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return cl(),_i(Pi),_i(Mi),ml(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ul(t),null;case 13:if(_i(dl),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ce(340));va()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _i(dl),null;case 4:return cl(),null;case 10:return $a(t.type._context),null;case 22:case 23:return hu(),null;default:return null}}jc=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ac=function(){},zc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,al(rl.current);var i,a=null;switch(n){case"input":o=Ze(e,o),r=Ze(e,r),a=[];break;case"select":o=Be({},o,{value:void 0}),r=Be({},r,{value:void 0}),a=[];break;case"textarea":o=at(e,o),r=at(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ri)}for(s in St(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s){var l=o[s];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(ue.hasOwnProperty(s)?a||(a=[]):(a=a||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(s,c)):"children"===s?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(ue.hasOwnProperty(s)?(null!=c&&"onScroll"===s&&Wo("scroll",e),a||l===c||(a=[])):(a=a||[]).push(s,c))}n&&(a=a||[]).push("style",n);var s=a;(t.updateQueue=s)&&(t.flags|=4)}},Dc=function(e,t,n,r){n!==r&&(t.flags|=4)};var Jc=!1,es=!1,ts="function"==typeof WeakSet?WeakSet:Set,ns=null;function rs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(DE){Nu(e,t,DE)}else n.current=null}function os(e,t,n){try{n()}catch(DE){Nu(e,t,DE)}}var is=!1;function as(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&os(t,n,i)}o=o.next}while(o!==r)}}function ls(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cs(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ss(e){var t=e.alternate;null!==t&&(e.alternate=null,ss(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[gi],delete t[vi],delete t[yi],delete t[wi],delete t[Si]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function us(e){return 5===e.tag||3===e.tag||4===e.tag}function ds(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||us(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(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 fs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ri));else if(4!==r&&null!==(e=e.child))for(fs(e,t,n),e=e.sibling;null!==e;)fs(e,t,n),e=e.sibling}function ps(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&&null!==(e=e.child))for(ps(e,t,n),e=e.sibling;null!==e;)ps(e,t,n),e=e.sibling}var ms=null,hs=!1;function gs(e,t,n){for(n=n.child;null!==n;)vs(e,t,n),n=n.sibling}function vs(e,t,n){if(sn&&"function"==typeof sn.onCommitFiberUnmount)try{sn.onCommitFiberUnmount(cn,n)}catch(HE){}switch(n.tag){case 5:es||rs(n,t);case 6:var r=ms,o=hs;ms=null,gs(e,t,n),hs=o,null!==(ms=r)&&(hs?(e=ms,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ms.removeChild(n.stateNode));break;case 18:null!==ms&&(hs?(e=ms,n=n.stateNode,8===e.nodeType?fi(e.parentNode,n):1===e.nodeType&&fi(e,n),Kn(e)):fi(ms,n.stateNode));break;case 4:r=ms,o=hs,ms=n.stateNode.containerInfo,hs=!0,gs(e,t,n),ms=r,hs=o;break;case 0:case 11:case 14:case 15:if(!es&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&os(n,t,a),o=o.next}while(o!==r)}gs(e,t,n);break;case 1:if(!es&&(rs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(HE){Nu(n,t,HE)}gs(e,t,n);break;case 21:gs(e,t,n);break;case 22:1&n.mode?(es=(r=es)||null!==n.memoizedState,gs(e,t,n),es=r):gs(e,t,n);break;default:gs(e,t,n)}}function bs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ts),t.forEach((function(t){var r=Mu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ys(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ms=l.stateNode,hs=!1;break e;case 3:case 4:ms=l.stateNode.containerInfo,hs=!0;break e}l=l.return}if(null===ms)throw Error(ce(160));vs(i,a,o),ms=null,hs=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(Oj){Nu(o,t,Oj)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ws(t,e),t=t.sibling}function ws(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ys(t,e),Ss(e),4&r){try{as(3,e,e.return),ls(3,e)}catch(Cj){Nu(e,e.return,Cj)}try{as(5,e,e.return)}catch(Cj){Nu(e,e.return,Cj)}}break;case 1:ys(t,e),Ss(e),512&r&&null!==n&&rs(n,n.return);break;case 5:if(ys(t,e),Ss(e),512&r&&null!==n&&rs(n,n.return),32&e.flags){var o=e.stateNode;try{ht(o,"")}catch(Cj){Nu(e,e.return,Cj)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&et(o,i),xt(l,a);var s=xt(l,i);for(a=0;a<c.length;a+=2){var u=c[a],d=c[a+1];"style"===u?yt(o,d):"dangerouslySetInnerHTML"===u?mt(o,d):"children"===u?ht(o,d):xe(o,u,d,s)}switch(l){case"input":tt(o,i);break;case"textarea":ct(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?it(o,!!i.multiple,p,!1):f!==!!i.multiple&&(null!=i.defaultValue?it(o,!!i.multiple,i.defaultValue,!0):it(o,!!i.multiple,i.multiple?[]:"",!1))}o[vi]=i}catch(Cj){Nu(e,e.return,Cj)}}break;case 6:if(ys(t,e),Ss(e),4&r){if(null===e.stateNode)throw Error(ce(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(Cj){Nu(e,e.return,Cj)}}break;case 3:if(ys(t,e),Ss(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Kn(t.containerInfo)}catch(Cj){Nu(e,e.return,Cj)}break;case 4:default:ys(t,e),Ss(e);break;case 13:ys(t,e),Ss(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Us=en())),4&r&&bs(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(es=(s=es)||u,ys(t,e),es=s):ys(t,e),Ss(e),8192&r){if(s=null!==e.memoizedState,(e.stateNode.isHidden=s)&&!u&&0!=(1&e.mode))for(ns=e,u=e.child;null!==u;){for(d=ns=u;null!==ns;){switch(p=(f=ns).child,f.tag){case 0:case 11:case 14:case 15:as(4,f,f.return);break;case 1:rs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(Cj){Nu(r,n,Cj)}}break;case 5:rs(f,f.return);break;case 22:if(null!==f.memoizedState){ks(d);continue}}null!==p?(p.return=f,ns=p):ks(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,s?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(c=d.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=bt("display",a))}catch(Cj){Nu(e,e.return,Cj)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=s?"":d.memoizedProps}catch(Cj){Nu(e,e.return,Cj)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ys(t,e),Ss(e),4&r&&bs(e);case 21:}}function Ss(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(us(n)){var r=n;break e}n=n.return}throw Error(ce(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ht(o,""),r.flags&=-33),ps(e,ds(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;fs(e,ds(e),i);break;default:throw Error(ce(161))}}catch(WE){Nu(e,e.return,WE)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function xs(e,t,n){ns=e,Cs(e)}function Cs(e,t,n){for(var r=0!=(1&e.mode);null!==ns;){var o=ns,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Jc;if(!a){var l=o.alternate,c=null!==l&&null!==l.memoizedState||es;l=Jc;var s=es;if(Jc=a,(es=c)&&!s)for(ns=o;null!==ns;)c=(a=ns).child,22===a.tag&&null!==a.memoizedState?$s(o):null!==c?(c.return=a,ns=c):$s(o);for(;null!==i;)ns=i,Cs(i),i=i.sibling;ns=o,Jc=l,es=s}Es(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,ns=i):Es(e)}}function Es(e){for(;null!==ns;){var t=ns;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:es||ls(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!es)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:wa(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ha(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ha(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var s=t.alternate;if(null!==s){var u=s.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&Kn(d)}}}break;default:throw Error(ce(163))}es||512&t.flags&&cs(t)}catch(Nj){Nu(t,t.return,Nj)}}if(t===e){ns=null;break}if(null!==(n=t.sibling)){n.return=t.return,ns=n;break}ns=t.return}}function ks(e){for(;null!==ns;){var t=ns;if(t===e){ns=null;break}var n=t.sibling;if(null!==n){n.return=t.return,ns=n;break}ns=t.return}}function $s(e){for(;null!==ns;){var t=ns;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ls(4,t)}catch(WE){Nu(t,n,WE)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(WE){Nu(t,o,WE)}}var i=t.return;try{cs(t)}catch(WE){Nu(t,i,WE)}break;case 5:var a=t.return;try{cs(t)}catch(WE){Nu(t,a,WE)}}}catch(WE){Nu(t,t.return,WE)}if(t===e){ns=null;break}var l=t.sibling;if(null!==l){l.return=t.return,ns=l;break}ns=t.return}}var Os,Ns=Math.ceil,_s=Ce.ReactCurrentDispatcher,Is=Ce.ReactCurrentOwner,Rs=Ce.ReactCurrentBatchConfig,Ms=0,Ps=null,Ts=null,js=0,As=0,zs=Ni(0),Ds=0,Ls=null,Bs=0,Fs=0,Hs=0,Ws=null,Vs=null,Us=0,Ks=1/0,qs=null,Xs=!1,Gs=null,Ys=null,Qs=!1,Zs=null,Js=0,eu=0,tu=null,nu=-1,ru=0;function ou(){return 0!=(6&Ms)?en():-1!==nu?nu:nu=en()}function iu(e){return 0==(1&e.mode)?1:0!=(2&Ms)&&0!==js?js&-js:null!==ya.transition?(0===ru&&(ru=yn()),ru):0!==(e=Cn)?e:e=void 0===(e=window.event)?16:er(e.type)}function au(e,t,n,r){if(50<eu)throw eu=0,tu=null,Error(ce(185));Sn(e,n,r),0!=(2&Ms)&&e===Ps||(e===Ps&&(0==(2&Ms)&&(Fs|=n),4===Ds&&du(e,js)),lu(e,r),1===n&&0===Ms&&0==(1&t.mode)&&(Ks=en()+500,Wi&&Ki()))}function lu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-un(i),l=1<<a,c=o[a];-1===c?0!=(l&n)&&0==(l&r)||(o[a]=vn(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=gn(e,e===Ps?js:0);if(0===r)null!==n&&Qt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qt(n),1===t)0===e.tag?function(e){Wi=!0,Ui(e)}(fu.bind(null,e)):Ui(fu.bind(null,e)),ui((function(){0==(6&Ms)&&Ki()})),n=null;else{switch(En(r)){case 1:n=nn;break;case 4:n=rn;break;case 16:default:n=on;break;case 536870912:n=ln}n=Pu(n,cu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cu(e,t){if(nu=-1,ru=0,0!=(6&Ms))throw Error(ce(327));var n=e.callbackNode;if($u()&&e.callbackNode!==n)return null;var r=gn(e,e===Ps?js:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=wu(e,r);else{t=r;var o=Ms;Ms|=2;var i=bu();for(Ps===e&&js===t||(qs=null,Ks=en()+500,gu(e,t));;)try{xu();break}catch(HE){vu(e,HE)}ka(),_s.current=i,Ms=o,null!==Ts?t=0:(Ps=null,js=0,t=Ds)}if(0!==t){if(2===t&&0!==(o=bn(e))&&(r=o,t=su(e,o)),1===t)throw n=Ls,gu(e,0),du(e,r),lu(e,en()),n;if(6===t)du(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!uo(i(),o))return!1}catch(a){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}(o)&&(2===(t=wu(e,r))&&0!==(i=bn(e))&&(r=i,t=su(e,i)),1===t))throw n=Ls,gu(e,0),du(e,r),lu(e,en()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ce(345));case 2:case 5:ku(e,Vs,qs);break;case 3:if(du(e,r),(130023424&r)===r&&10<(t=Us+500-en())){if(0!==gn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ou(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=li(ku.bind(null,e,Vs,qs),t);break}ku(e,Vs,qs);break;case 4:if(du(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-un(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=en()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ns(r/1960))-r)){e.timeoutHandle=li(ku.bind(null,e,Vs,qs),r);break}ku(e,Vs,qs);break;default:throw Error(ce(329))}}}return lu(e,en()),e.callbackNode===n?cu.bind(null,e):null}function su(e,t){var n=Ws;return e.current.memoizedState.isDehydrated&&(gu(e,t).flags|=256),2!==(e=wu(e,t))&&(t=Vs,Vs=n,null!==t&&uu(t)),e}function uu(e){null===Vs?Vs=e:Vs.push.apply(Vs,e)}function du(e,t){for(t&=~Hs,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-un(t),r=1<<n;e[n]=-1,t&=~r}}function fu(e){if(0!=(6&Ms))throw Error(ce(327));$u();var t=gn(e,0);if(0==(1&t))return lu(e,en()),null;var n=wu(e,t);if(0!==e.tag&&2===n){var r=bn(e);0!==r&&(t=r,n=su(e,r))}if(1===n)throw n=Ls,gu(e,0),du(e,t),lu(e,en()),n;if(6===n)throw Error(ce(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Vs,qs),lu(e,en()),null}function pu(e,t){var n=Ms;Ms|=1;try{return e(t)}finally{0===(Ms=n)&&(Ks=en()+500,Wi&&Ki())}}function mu(e){null!==Zs&&0===Zs.tag&&0==(6&Ms)&&$u();var t=Ms;Ms|=1;var n=Rs.transition,r=Cn;try{if(Rs.transition=null,Cn=1,e)return e()}finally{Cn=r,Rs.transition=n,0==(6&(Ms=t))&&Ki()}}function hu(){As=zs.current,_i(zs)}function gu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ci(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(ia(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&zi();break;case 3:cl(),_i(Pi),_i(Mi),ml();break;case 5:ul(r);break;case 4:cl();break;case 13:case 19:_i(dl);break;case 10:$a(r.type._context);break;case 22:case 23:hu()}n=n.return}if(Ps=e,Ts=e=zu(e.current,null),js=As=t,Ds=0,Ls=null,Hs=Fs=Bs=0,Vs=Ws=null,null!==Ia){for(t=0;t<Ia.length;t++)if(null!==(r=(n=Ia[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ia=null}return e}function vu(e,t){for(;;){var n=Ts;try{if(ka(),hl.current=sc,Sl){for(var r=bl.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Sl=!1}if(vl=0,wl=yl=bl=null,xl=!1,Cl=0,Is.current=null,null===n||null===n.return){Ds=1,Ls=t,Ts=null;break}e:{var i=e,a=n.return,l=n,c=t;if(t=js,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var s=c,u=l,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=wc(a);if(null!==p){p.flags&=-257,Sc(p,a,l,0,t),1&p.mode&&yc(i,s,t),c=s;var m=(t=p).updateQueue;if(null===m){var h=new Set;h.add(c),t.updateQueue=h}else m.add(c);break e}if(0==(1&t)){yc(i,s,t),yu();break e}c=Error(ce(426))}else if(ca&&1&l.mode){var g=wc(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Sc(g,a,l,0,t),ba(pc(c,l));break e}}i=c=pc(c,l),4!==Ds&&(Ds=2),null===Ws?Ws=[i]:Ws.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,vc(0,c,t));break e;case 1:l=c;var v=i.type,b=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ys||!Ys.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,bc(i,l,t));break e}}i=i.return}while(null!==i)}Eu(n)}catch(y){t=y,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function bu(){var e=_s.current;return _s.current=sc,null===e?sc:e}function yu(){0!==Ds&&3!==Ds&&2!==Ds||(Ds=4),null===Ps||0==(268435455&Bs)&&0==(268435455&Fs)||du(Ps,js)}function wu(e,t){var n=Ms;Ms|=2;var r=bu();for(Ps===e&&js===t||(qs=null,gu(e,t));;)try{Su();break}catch(Ij){vu(e,Ij)}if(ka(),Ms=n,_s.current=r,null!==Ts)throw Error(ce(261));return Ps=null,js=0,Ds}function Su(){for(;null!==Ts;)Cu(Ts)}function xu(){for(;null!==Ts&&!Zt();)Cu(Ts)}function Cu(e){var t=Os(e.alternate,e,As);e.memoizedProps=e.pendingProps,null===t?Eu(e):Ts=t,Is.current=null}function Eu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Qc(n,t,As)))return void(Ts=n)}else{if(null!==(n=Zc(n,t)))return n.flags&=32767,void(Ts=n);if(null===e)return Ds=6,void(Ts=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Ds&&(Ds=5)}function ku(e,t,n){var r=Cn,o=Rs.transition;try{Rs.transition=null,Cn=1,function(e,t,n,r){do{$u()}while(null!==Zs);if(0!=(6&Ms))throw Error(ce(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ce(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-un(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Ps&&(Ts=Ps=null,js=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Qs||(Qs=!0,Pu(on,(function(){return $u(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Rs.transition,Rs.transition=null;var a=Cn;Cn=1;var l=Ms;Ms|=4,Is.current=null,function(e,t){if(oi=Xn,vo(e=go())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(k){n=null;break e}var a=0,l=-1,c=-1,s=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(c=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++s===o&&(l=a),f===i&&++u===r&&(c=a),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ii={focusedElem:e,selectionRange:n},Xn=!1,ns=t;null!==ns;)if(e=(t=ns).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ns=e;else for(;null!==ns;){t=ns;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:wa(t.type,h),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(ce(163))}}catch(k){Nu(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,ns=e;break}ns=t.return}m=is,is=!1}(e,n),ws(n,e),bo(ii),Xn=!!oi,ii=oi=null,e.current=n,xs(n),Jt(),Ms=l,Cn=a,Rs.transition=i}else e.current=n;if(Qs&&(Qs=!1,Zs=e,Js=o),0===(i=e.pendingLanes)&&(Ys=null),function(e){if(sn&&"function"==typeof sn.onCommitFiberRoot)try{sn.onCommitFiberRoot(cn,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),lu(e,en()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Xs)throw Xs=!1,e=Gs,Gs=null,e;0!=(1&Js)&&0!==e.tag&&$u(),0!=(1&(i=e.pendingLanes))?e===tu?eu++:(eu=0,tu=e):eu=0,Ki()}(e,t,n,r)}finally{Rs.transition=o,Cn=r}return null}function $u(){if(null!==Zs){var e=En(Js),t=Rs.transition,n=Cn;try{if(Rs.transition=null,Cn=16>e?16:e,null===Zs)var r=!1;else{if(e=Zs,Zs=null,Js=0,0!=(6&Ms))throw Error(ce(331));var o=Ms;for(Ms|=4,ns=e.current;null!==ns;){var i=ns,a=i.child;if(0!=(16&ns.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var s=l[c];for(ns=s;null!==ns;){var u=ns;switch(u.tag){case 0:case 11:case 15:as(8,u,i)}var d=u.child;if(null!==d)d.return=u,ns=d;else for(;null!==ns;){var f=(u=ns).sibling,p=u.return;if(ss(u),u===s){ns=null;break}if(null!==f){f.return=p,ns=f;break}ns=p}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}ns=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,ns=a;else e:for(;null!==ns;){if(0!=(2048&(i=ns).flags))switch(i.tag){case 0:case 11:case 15:as(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,ns=v;break e}ns=i.return}}var b=e.current;for(ns=b;null!==ns;){var y=(a=ns).child;if(0!=(2064&a.subtreeFlags)&&null!==y)y.return=a,ns=y;else e:for(a=b;null!==ns;){if(0!=(2048&(l=ns).flags))try{switch(l.tag){case 0:case 11:case 15:ls(9,l)}}catch(S){Nu(l,l.return,S)}if(l===a){ns=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,ns=w;break e}ns=l.return}}if(Ms=o,Ki(),sn&&"function"==typeof sn.onPostCommitFiberRoot)try{sn.onPostCommitFiberRoot(cn,e)}catch(S){}r=!0}return r}finally{Cn=n,Rs.transition=t}}return!1}function Ou(e,t,n){e=Da(e,t=vc(0,t=pc(n,t),1),1),t=ou(),null!==e&&(Sn(e,1,t),lu(e,t))}function Nu(e,t,n){if(3===e.tag)Ou(e,e,n);else for(;null!==t;){if(3===t.tag){Ou(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){t=Da(t,e=bc(t,e=pc(n,e),1),1),e=ou(),null!==t&&(Sn(t,1,e),lu(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ou(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(js&n)===n&&(4===Ds||3===Ds&&(130023424&js)===js&&500>en()-Us?gu(e,0):Hs|=n),lu(e,t)}function Iu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=mn,0==(130023424&(mn<<=1))&&(mn=4194304)));var n=ou();null!==(e=Pa(e,t))&&(Sn(e,t,n),lu(e,n))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Iu(e,n)}function Mu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}null!==r&&r.delete(t),Iu(e,n)}function Pu(e,t){return Yt(e,t)}function Tu(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.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 ju(e,t,n,r){return new Tu(e,t,n,r)}function Au(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=ju(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=14680064&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}function Du(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Au(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case $e:return Lu(n.children,o,i,t);case Oe:a=8,o|=8;break;case Ne:return(e=ju(12,n,t,2|o)).elementType=Ne,e.lanes=i,e;case Me:return(e=ju(13,n,t,o)).elementType=Me,e.lanes=i,e;case Pe:return(e=ju(19,n,t,o)).elementType=Pe,e.lanes=i,e;case Ae:return Bu(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _e:a=10;break e;case Ie:a=9;break e;case Re:a=11;break e;case Te:a=14;break e;case je:a=16,r=null;break e}throw Error(ce(130,null==e?e:typeof e,""))}return(t=ju(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Lu(e,t,n,r){return(e=ju(7,e,r,t)).lanes=n,e}function Bu(e,t,n,r){return(e=ju(22,e,r,t)).elementType=Ae,e.lanes=n,e.stateNode={isHidden:!1},e}function Fu(e,t,n){return(e=ju(6,e,null,t)).lanes=n,e}function Hu(e,t,n){return(t=ju(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wn(0),this.expirationTimes=wn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vu(e,t,n,r,o,i,a,l,c){return e=new Wu(e,t,n,l,c),1===t?(t=1,!0===i&&(t|=8)):t=0,i=ju(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ja(i),e}function Uu(e){if(!e)return Ri;e:{if(Ut(e=e._reactInternals)!==e||1!==e.tag)throw Error(ce(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ai(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ce(171))}if(1===e.tag){var n=e.type;if(Ai(n))return Li(e,n,t)}return t}function Ku(e,t,n,r,o,i,a,l,c){return(e=Vu(n,r,!0,e,0,i,0,l,c)).context=Uu(null),n=e.current,(i=za(r=ou(),o=iu(n))).callback=null!=t?t:null,Da(n,i,o),e.current.lanes=o,Sn(e,o,r),lu(e,r),e}function qu(e,t,n,r){var o=t.current,i=ou(),a=iu(o);return n=Uu(n),null===t.context?t.context=n:t.pendingContext=n,(t=za(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Da(o,t,a))&&(au(e,o,a,i),La(e,o,a)),a}function Xu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yu(e,t){Gu(e,t),(e=e.alternate)&&Gu(e,t)}Os=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pi.current)Cc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Cc=!1,function(e,t,n){switch(t.tag){case 3:Pc(t),va();break;case 5:sl(t);break;case 1:Ai(t.type)&&Bi(t);break;case 4:ll(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ii(Sa,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ii(dl,1&dl.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Fc(e,t,n):(Ii(dl,1&dl.current),null!==(e=Xc(e,t,n))?e.sibling:null);Ii(dl,1&dl.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Kc(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ii(dl,dl.current),r)break;return null;case 22:case 23:return t.lanes=0,Nc(e,t,n)}return Xc(e,t,n)}(e,t,n);Cc=0!=(131072&e.flags)}else Cc=!1,ca&&0!=(1048576&t.flags)&&ra(t,Yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qc(e,t),e=t.pendingProps;var o=ji(t,Mi.current);Na(t,n),o=Ol(null,t,r,e,o,n);var i=Nl();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ai(r)?(i=!0,Bi(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ja(t),o.updater=Ua,t.stateNode=o,o._reactInternals=t,Ga(t,r,e,n),t=Mc(null,t,r,!0,i,n)):(t.tag=0,ca&&i&&oa(t),Ec(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qc(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Au(e)?1:0;if(null!=e){if((e=e.$$typeof)===Re)return 11;if(e===Te)return 14}return 2}(r),e=wa(r,e),o){case 0:t=Ic(null,t,r,e,n);break e;case 1:t=Rc(null,t,r,e,n);break e;case 11:t=kc(null,t,r,e,n);break e;case 14:t=$c(null,t,r,wa(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ic(e,t,r,o=t.elementType===r?o:wa(r,o),n);case 1:return r=t.type,o=t.pendingProps,Rc(e,t,r,o=t.elementType===r?o:wa(r,o),n);case 3:e:{if(Pc(t),null===e)throw Error(ce(387));r=t.pendingProps,o=(i=t.memoizedState).element,Aa(e,t),Fa(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Tc(e,t,r,n,o=pc(Error(ce(423)),t));break e}if(r!==o){t=Tc(e,t,r,n,o=pc(Error(ce(424)),t));break e}for(la=pi(t.stateNode.containerInfo.firstChild),aa=t,ca=!0,sa=null,n=tl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(va(),r===o){t=Xc(e,t,n);break e}Ec(e,t,r,n)}t=t.child}return t;case 5:return sl(t),null===e&&pa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,ai(r,o)?a=null:null!==i&&ai(r,i)&&(t.flags|=32),_c(e,t),Ec(e,t,a,n),t.child;case 6:return null===e&&pa(t),null;case 13:return Fc(e,t,n);case 4:return ll(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=el(t,null,r,n):Ec(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,kc(e,t,r,o=t.elementType===r?o:wa(r,o),n);case 7:return Ec(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ec(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ii(Sa,r._currentValue),r._currentValue=a,null!==i)if(uo(i.value,a)){if(i.children===o.children&&!Pi.current){t=Xc(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=za(-1,n&-n)).tag=2;var s=i.updateQueue;if(null!==s){var u=(s=s.shared).pending;null===u?c.next=c:(c.next=u.next,u.next=c),s.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Oa(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(ce(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Oa(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Ec(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Na(t,n),r=r(o=_a(o)),t.flags|=1,Ec(e,t,r,n),t.child;case 14:return o=wa(r=t.type,t.pendingProps),$c(e,t,r,o=wa(r.type,o),n);case 15:return Oc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wa(r,o),qc(e,t),t.tag=1,Ai(r)?(e=!0,Bi(t)):e=!1,Na(t,n),qa(t,r,o),Ga(t,r,o,n),Mc(null,t,r,!0,e,n);case 19:return Kc(e,t,n);case 22:return Nc(e,t,n)}throw Error(ce(156,t.tag))};var Qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Zu(e){this._internalRoot=e}function Ju(e){this._internalRoot=e}function ed(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function td(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nd(){}function rd(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Xu(a);l.call(e)}}qu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Xu(a);i.call(e)}}var a=Ku(t,r,e,0,null,!1,0,"",nd);return e._reactRootContainer=a,e[bi]=a.current,Ko(8===e.nodeType?e.parentNode:e),mu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Xu(c);l.call(e)}}var c=Vu(e,0,!1,null,0,!1,0,"",nd);return e._reactRootContainer=c,e[bi]=c.current,Ko(8===e.nodeType?e.parentNode:e),mu((function(){qu(t,c,n,r)})),c}(n,t,e,o,r);return Xu(a)}Ju.prototype.render=Zu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ce(409));qu(e,t,null,null)},Ju.prototype.unmount=Zu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;mu((function(){qu(null,e,null,null)})),t[bi]=null}},Ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zn.length&&0!==t&&t<zn[n].priority;n++);zn.splice(n,0,e),0===n&&Fn(e)}},kn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hn(t.pendingLanes);0!==n&&(xn(t,1|n),lu(t,en()),0==(6&Ms)&&(Ks=en()+500,Ki()))}break;case 13:mu((function(){var t=Pa(e,1);if(null!==t){var n=ou();au(t,e,1,n)}})),Yu(e,1)}},$n=function(e){if(13===e.tag){var t=Pa(e,134217728);null!==t&&au(t,e,134217728,ou()),Yu(e,134217728)}},On=function(e){if(13===e.tag){var t=iu(e),n=Pa(e,t);null!==n&&au(n,e,t,ou()),Yu(e,t)}},Nn=function(){return Cn},_n=function(e,t){var n=Cn;try{return Cn=e,t()}finally{Cn=n}},kt=function(e,t,n){switch(t){case"input":if(tt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ki(r);if(!o)throw Error(ce(90));Ye(r),tt(r,o)}}}break;case"textarea":ct(e,n);break;case"select":null!=(t=n.value)&&it(e,!!n.multiple,t,!1)}},Rt=pu,Mt=mu;var od={usingClientEntryPoint:!1,Events:[Ci,Ei,ki,_t,It,pu]},id={findFiberByHostInstance:xi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ad={bundleType:id.bundleType,version:id.version,rendererPackageName:id.rendererPackageName,rendererConfig:id.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ce.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xt(e))?null:e.stateNode},findFiberByHostInstance:id.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ld=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ld.isDisabled&&ld.supportsFiber)try{cn=ld.inject(ad),sn=ld}catch(pt){}}ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=od,ne.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ed(t))throw Error(ce(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ke,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ne.createRoot=function(e,t){if(!ed(e))throw Error(ce(299));var n=!1,r="",o=Qu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Vu(e,1,!1,null,0,n,0,r,o),e[bi]=t.current,Ko(8===e.nodeType?e.parentNode:e),new Zu(t)},ne.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(ce(188));throw e=Object.keys(e).join(","),Error(ce(268,e))}return e=null===(e=Xt(t))?null:e.stateNode},ne.flushSync=function(e){return mu(e)},ne.hydrate=function(e,t,n){if(!td(t))throw Error(ce(200));return rd(null,e,t,!0,n)},ne.hydrateRoot=function(e,t,n){if(!ed(e))throw Error(ce(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=Qu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Ku(t,null,e,1,null!=n?n:null,o,0,i,a),e[bi]=t.current,Ko(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ju(t)},ne.render=function(e,t,n){if(!td(t))throw Error(ce(200));return rd(null,e,t,!1,n)},ne.unmountComponentAtNode=function(e){if(!td(e))throw Error(ce(40));return!!e._reactRootContainer&&(mu((function(){rd(null,null,e,!1,(function(){e._reactRootContainer=null,e[bi]=null}))})),!0)},ne.unstable_batchedUpdates=pu,ne.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!td(n))throw Error(ce(200));if(null==e||void 0===e._reactInternals)throw Error(ce(38));return rd(e,t,n,!1,r)},ne.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),te.exports=ne;var cd=e("a9",te.exports);const sd=r(cd),ud=t({__proto__:null,default:sd},[cd]);var dd=function(e){const t=new Error(e);if(void 0===t.stack)try{throw t}catch(n){}return t},fd=dd,pd=function(e){return!!e&&"function"==typeof e.then},md=function(e,t){if(null!=e)return e;throw fd(null!=t?t:"Got unexpected null or undefined")};function hd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class gd{getValue(){throw fd("BaseLoadable")}toPromise(){throw fd("BaseLoadable")}valueMaybe(){throw fd("BaseLoadable")}valueOrThrow(){throw fd(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw fd("BaseLoadable")}promiseOrThrow(){throw fd(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw fd("BaseLoadable")}errorOrThrow(){throw fd(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw fd("BaseLoadable")}}class vd extends gd{constructor(e){super(),hd(this,"state","hasValue"),hd(this,"contents",void 0),this.contents=e}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(e){try{const t=e(this.contents);return pd(t)?xd(t):kd(t)?t:wd(t)}catch(Ij){return pd(Ij)?xd(Ij.next((()=>this.map(e)))):Sd(Ij)}}}class bd extends gd{constructor(e){super(),hd(this,"state","hasError"),hd(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class yd extends gd{constructor(e){super(),hd(this,"state","loading"),hd(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return xd(this.contents.then((t=>{const n=e(t);if(kd(n)){const e=n;switch(e.state){case"hasValue":case"loading":return e.contents;case"hasError":throw e.contents}}return n})).catch((t=>{if(pd(t))return t.then((()=>this.map(e).contents));throw t})))}}function wd(e){return Object.freeze(new vd(e))}function Sd(e){return Object.freeze(new bd(e))}function xd(e){return Object.freeze(new yd(e))}function Cd(){return Object.freeze(new yd(new Promise((()=>{}))))}function Ed(e){const t=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))).map((e=>kd(e)?e:pd(e)?xd(e):wd(e))),n=function(e){return e.every((e=>"hasValue"===e.state))?wd(e.map((e=>e.contents))):e.some((e=>"hasError"===e.state))?Sd(md(e.find((e=>"hasError"===e.state)),"Invalid loadable passed to loadableAll").contents):xd(Promise.all(e.map((e=>e.contents))))}(t);return Array.isArray(e)?n:n.map((t=>Object.getOwnPropertyNames(e).reduce(((e,n,r)=>({...e,[n]:t[r]})),{})))}function kd(e){return e instanceof gd}const $d={of:e=>pd(e)?xd(e):kd(e)?e:wd(e),error:e=>Sd(e),loading:()=>Cd(),all:Ed,isLoadable:kd};var Od={loadableWithValue:wd,loadableWithError:Sd,loadableWithPromise:xd,loadableLoading:Cd,loadableAll:Ed,isLoadable:kd,RecoilLoadable:$d},Nd=Od.loadableWithValue,_d=Od.loadableWithError,Id=Od.loadableWithPromise,Rd=Od.loadableLoading,Md=Od.loadableAll,Pd=Od.isLoadable,Td=Od.RecoilLoadable,jd=Object.freeze({__proto__:null,loadableWithValue:Nd,loadableWithError:_d,loadableWithPromise:Id,loadableLoading:Rd,loadableAll:Md,isLoadable:Pd,RecoilLoadable:Td});const Ad={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};var zd;"undefined"!=typeof process&&null!=(null===(zd=process)||void 0===zd?void 0:zd.env)&&(function(e,t){var n,r;const o=null===(n=process.env[e])||void 0===n||null===(r=n.toLowerCase())||void 0===r?void 0:r.trim();if(null!=o&&""!==o){if(!["true","false"].includes(o))throw fd(`({}).${e} value must be 'true', 'false', or empty: ${o}`);t("true"===o)}}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",(e=>{Ad.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=e})),function(e,t){var n;const r=null===(n=process.env[e])||void 0===n?void 0:n.trim();null!=r&&""!==r&&t(r.split(/\s*,\s*|\s+/))}("RECOIL_GKS_ENABLED",(e=>{e.forEach((e=>{Ad.RECOIL_GKS_ENABLED.add(e)}))})));var Dd=Ad;function Ld(e){return Dd.RECOIL_GKS_ENABLED.has(e)}Ld.setPass=e=>{Dd.RECOIL_GKS_ENABLED.add(e)},Ld.setFail=e=>{Dd.RECOIL_GKS_ENABLED.delete(e)},Ld.clear=()=>{Dd.RECOIL_GKS_ENABLED.clear()};var Bd,Fd,Hd,Wd=Ld,Vd=function(e,t,{error:n}={}){return null};const Ud=null!==(Bd=W.createMutableSource)&&void 0!==Bd?Bd:W.unstable_createMutableSource,Kd=null!==(Fd=W.useMutableSource)&&void 0!==Fd?Fd:W.unstable_useMutableSource,qd=null!==(Hd=W.useSyncExternalStore)&&void 0!==Hd?Hd:W.unstable_useSyncExternalStore;var Xd={createMutableSource:Ud,useMutableSource:Kd,useSyncExternalStore:qd,currentRendererSupportsUseSyncExternalStore:function(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return null!=(null!==(e=null==t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore},reactMode:function(){return Wd("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Wd("recoil_sync_external_store")&&null!=qd?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Wd("recoil_mutable_source")&&null!=Kd&&"undefined"!=typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Wd("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Wd("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class Gd{constructor(e){hd(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class Yd extends Gd{}class Qd extends Gd{}var Zd={AbstractRecoilValue:Gd,RecoilState:Yd,RecoilValueReadOnly:Qd,isRecoilValue:function(e){return e instanceof Yd||e instanceof Qd}},Jd=Zd.AbstractRecoilValue,ef=Zd.RecoilState,tf=Zd.RecoilValueReadOnly,nf=Zd.isRecoilValue,rf=Object.freeze({__proto__:null,AbstractRecoilValue:Jd,RecoilState:ef,RecoilValueReadOnly:tf,isRecoilValue:nf}),of=function(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()};class af{}const lf=new af,cf=new Map,sf=new Map;class uf extends Error{}const df=new Map;function ff(e){return df.get(e)}var pf={nodes:cf,recoilValues:sf,registerNode:function(e){Dd.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&function(e){if(cf.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;console.warn(t)}}(e.key),cf.set(e.key,e);const t=null==e.set?new rf.RecoilValueReadOnly(e.key):new rf.RecoilState(e.key);return sf.set(e.key,t),t},getNode:function(e){const t=cf.get(e);if(null==t)throw new uf(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return cf.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!Wd("recoil_memory_managament_2020"))return;const n=cf.get(e);var r;null!=n&&null!==(t=n.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(n)&&(cf.delete(e),null===(r=ff(e))||void 0===r||r(),df.delete(e))},setConfigDeletionHandler:function(e,t){Wd("recoil_memory_managament_2020")&&(void 0===t?df.delete(e):df.set(e,t))},getConfigDeletionHandler:ff,recoilValuesForKeys:function(e){return of(e,(e=>md(sf.get(e))))},NodeMissingError:uf,DefaultValue:af,DEFAULT_VALUE:lf},mf={enqueueExecution:function(e,t){t()}},hf=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t="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},n={},r=Math.pow(2,5),o=r-1,i=r/2,a=r/4,l={},c=function(e){return function(){return e}},s=n.hash=function(e){var n=void 0===e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,i=e.length;o<i;++o)r=(r<<5)-r+e.charCodeAt(o)|0;return r},u=function(e,t){return t>>>e&o},d=function(e){return 1<<e},f=function(e,t){return function(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}(e&t-1)},p=function(e,t,n,r){var o=r;if(!e){var i=r.length;o=new Array(i);for(var a=0;a<i;++a)o[a]=r[a]}return o[t]=n,o},m=function(e,t,n){var r=n.length-1,o=0,i=0,a=n;if(e)o=i=t;else for(a=new Array(r);o<t;)a[i++]=n[o++];for(++o;o<=r;)a[i++]=n[o++];return e&&(a.length=r),a},h={__hamt_isEmpty:!0},g=function(e){return e===h||e&&e.__hamt_isEmpty},v=function(e,t,n,r){return{type:1,edit:e,hash:t,key:n,value:r,_modify:C}},b=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:E}},y=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:k}},w=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:$}},S=function e(t,n,r,o,i,a){if(r===i)return b(t,r,[a,o]);var l=u(n,r),c=u(n,i);return y(t,d(l)|d(c),l===c?[e(t,n+5,r,o,i,a)]:l<c?[o,a]:[a,o])},x=function(e,t){return e===t.edit},C=function(e,t,n,r,o,i,a){if(t(i,this.key)){var c=r(this.value);return c===this.value?this:c===l?(--a.value,h):x(e,this)?(this.value=c,this):v(e,o,i,c)}var s=r();return s===l?this:(++a.value,S(e,n,this.hash,this,o,v(e,o,i,s)))},E=function(e,t,n,r,o,i,a){if(o===this.hash){var c=function(e,t,n,r,o,i,a,c){for(var s=o.length,u=0;u<s;++u){var d=o[u];if(n(a,d.key)){var f=d.value,h=i(f);return h===f?o:h===l?(--c.value,m(e,u,o)):p(e,u,v(t,r,a,h),o)}}var g=i();return g===l?o:(++c.value,p(e,s,v(t,r,a,g),o))}(x(e,this),e,t,this.hash,this.children,r,i,a);return c===this.children?this:c.length>1?b(e,this.hash,c):c[0]}var s=r();return s===l?this:(++a.value,S(e,n,this.hash,this,o,v(e,o,i,s)))},k=function(e,t,n,r,o,a,l){var c=this.mask,s=this.children,v=u(n,o),b=d(v),S=f(c,b),C=c&b,E=C?s[S]:h,k=E._modify(e,t,n+5,r,o,a,l);if(E===k)return this;var $=x(e,this),O=c,N=void 0;if(C&&g(k)){if(!(O&=~b))return h;if(s.length<=2&&function(e){return e===h||1===e.type||2===e.type}(s[1^S]))return s[1^S];N=m($,S,s)}else if(C||g(k))N=p($,S,k,s);else{if(s.length>=i)return function(e,t,n,r,o){for(var i=[],a=r,l=0,c=0;a;++c)1&a&&(i[c]=o[l++]),a>>>=1;return i[t]=n,w(e,l+1,i)}(e,v,k,c,s);O|=b,N=function(e,t,n,r){var o=r.length;if(e){for(var i=o;i>=t;)r[i--]=r[i];return r[t]=n,r}for(var a=0,l=0,c=new Array(o+1);a<t;)c[l++]=r[a++];for(c[t]=n;a<o;)c[++l]=r[a++];return c}($,S,k,s)}return $?(this.mask=O,this.children=N,this):y(e,O,N)},$=function(e,t,n,r,o,i,l){var c=this.size,s=this.children,d=u(n,o),f=s[d],m=(f||h)._modify(e,t,n+5,r,o,i,l);if(f===m)return this;var v=x(e,this),b=void 0;if(g(f)&&!g(m))++c,b=p(v,d,m,s);else if(!g(f)&&g(m)){if(--c<=a)return function(e,t,n,r){for(var o=new Array(t-1),i=0,a=0,l=0,c=r.length;l<c;++l)if(l!==n){var s=r[l];s&&!g(s)&&(o[i++]=s,a|=1<<l)}return y(e,a,o)}(e,c,d,s);b=p(v,d,h,s)}else b=p(v,d,m,s);return v?(this.size=c,this.children=b,this):w(e,c,b)};function O(e,t,n,r,o){this._editable=e,this._edit=t,this._config=n,this._root=r,this._size=o}h._modify=function(e,t,n,r,o,i,a){var c=r();return c===l?h:(++a.value,v(e,o,i,c))},O.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new O(this._editable,this._edit,this._config,e,t)};var N=n.tryGetHash=function(e,t,n,r){for(var o=r._root,i=0,a=r._config.keyEq;;)switch(o.type){case 1:return a(n,o.key)?o.value:e;case 2:if(t===o.hash)for(var l=o.children,c=0,s=l.length;c<s;++c){var p=l[c];if(a(n,p.key))return p.value}return e;case 3:var m=u(i,t),h=d(m);if(o.mask&h){o=o.children[f(o.mask,h)],i+=5;break}return e;case 4:if(o=o.children[u(i,t)]){i+=5;break}return e;default:return e}};O.prototype.tryGetHash=function(e,t,n){return N(e,t,n,this)};var _=n.tryGet=function(e,t,n){return N(e,n._config.hash(t),t,n)};O.prototype.tryGet=function(e,t){return _(e,t,this)};var I=n.getHash=function(e,t,n){return N(void 0,e,t,n)};O.prototype.getHash=function(e,t){return I(e,t,this)},n.get=function(e,t){return N(void 0,t._config.hash(e),e,t)},O.prototype.get=function(e,t){return _(t,e,this)};var R=n.has=function(e,t,n){return N(l,e,t,n)!==l};O.prototype.hasHash=function(e,t){return R(e,t,this)};var M=n.has=function(e,t){return R(t._config.hash(e),e,t)};O.prototype.has=function(e){return M(e,this)};var P=function(e,t){return e===t};n.make=function(e){return new O(0,0,{keyEq:e&&e.keyEq||P,hash:e&&e.hash||s},h,0)},n.empty=n.make();var T=n.isEmpty=function(e){return e&&!!g(e._root)};O.prototype.isEmpty=function(){return T(this)};var j=n.modifyHash=function(e,t,n,r){var o={value:r._size},i=r._root._modify(r._editable?r._edit:NaN,r._config.keyEq,0,e,t,n,o);return r.setTree(i,o.value)};O.prototype.modifyHash=function(e,t,n){return j(n,e,t,this)};var A=n.modify=function(e,t,n){return j(e,n._config.hash(t),t,n)};O.prototype.modify=function(e,t){return A(t,e,this)};var z=n.setHash=function(e,t,n,r){return j(c(n),e,t,r)};O.prototype.setHash=function(e,t,n){return z(e,t,n,this)};var D=n.set=function(e,t,n){return z(n._config.hash(e),e,t,n)};O.prototype.set=function(e,t){return D(e,t,this)};var L=c(l),B=n.removeHash=function(e,t,n){return j(L,e,t,n)};O.prototype.removeHash=O.prototype.deleteHash=function(e,t){return B(e,t,this)};var F=n.remove=function(e,t){return B(t._config.hash(e),e,t)};O.prototype.remove=O.prototype.delete=function(e){return F(e,this)};var H=n.beginMutation=function(e){return new O(e._editable+1,e._edit+1,e._config,e._root,e._size)};O.prototype.beginMutation=function(){return H(this)};var W=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};O.prototype.endMutation=function(){return W(this)};var V=n.mutate=function(e,t){var n=H(t);return e(n),W(n)};O.prototype.mutate=function(e){return V(e,this)};var U=function(e){return e&&K(e[0],e[1],e[2],e[3],e[4])},K=function(e,t,n,r,o){for(;n<e;){var i=t[n++];if(i&&!g(i))return q(i,r,[e,t,n,r,o])}return U(o)},q=function(e,t,n){switch(e.type){case 1:return{value:t(e),rest:n};case 2:case 4:case 3:var r=e.children;return K(r.length,r,0,t,n);default:return U(n)}},X={done:!0};function G(e){this.v=e}G.prototype.next=function(){if(!this.v)return X;var e=this.v;return this.v=U(e.rest),e},G.prototype[Symbol.iterator]=function(){return this};var Y=function(e,t){return new G(q(e._root,t))},Q=function(e){return[e.key,e.value]},Z=n.entries=function(e){return Y(e,Q)};O.prototype.entries=O.prototype[Symbol.iterator]=function(){return Z(this)};var J=function(e){return e.key},ee=n.keys=function(e){return Y(e,J)};O.prototype.keys=function(){return ee(this)};var te=function(e){return e.value},ne=n.values=O.prototype.values=function(e){return Y(e,te)};O.prototype.values=function(){return ne(this)};var re=n.fold=function(e,t,n){var r=n._root;if(1===r.type)return e(t,r.value,r.key);for(var o=[r.children],i=void 0;i=o.pop();)for(var a=0,l=i.length;a<l;){var c=i[a++];c&&c.type&&(1===c.type?t=e(t,c.value,c.key):o.push(c.children))}return t};O.prototype.fold=function(e,t){return re(e,t,this)};var oe=n.forEach=function(e,t){return re((function(n,r,o){return e(r,o,t)}),null,t)};O.prototype.forEach=function(e){return oe(e,this)};var ie=n.count=function(e){return e._size};O.prototype.count=function(){return ie(this)},Object.defineProperty(O.prototype,"size",{get:O.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n}));class gf{constructor(e){hd(this,"_map",void 0),this._map=new Map(null==e?void 0:e.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(e){return this._map.get(e)}has(e){return this._map.has(e)}set(e,t){return this._map.set(e,t),this}delete(e){return this._map.delete(e),this}clone(){return bf(this)}toMap(){return new Map(this._map)}}class vf{constructor(e){if(hd(this,"_hamt",hf.empty.beginMutation()),e instanceof vf){const t=e._hamt.endMutation();e._hamt=t.beginMutation(),this._hamt=t.beginMutation()}else if(e)for(const[t,n]of e.entries())this._hamt.set(t,n)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(e){return this._hamt.get(e)}has(e){return this._hamt.has(e)}set(e,t){return this._hamt.set(e,t),this}delete(e){return this._hamt.delete(e),this}clone(){return bf(this)}toMap(){return new Map(this._hamt)}}function bf(e){return Wd("recoil_hamt_2020")?new vf(e):new gf(e)}var yf=bf,wf=Object.freeze({__proto__:null,persistentMap:yf}),Sf=function(e,...t){const n=new Set;e:for(const r of e){for(const e of t)if(e.has(r))continue e;n.add(r)}return n},xf=function(e,t){const n=new Map;return e.forEach(((e,r)=>{n.set(r,t(e,r))})),n};function Cf(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:i}=n,a=o.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;o.set(e,t);const l=null==a?t:Sf(t,a);for(const c of l)i.has(c)||i.set(c,new Set),md(i.get(c)).add(e);if(a){const n=Sf(a,t);for(const t of n){if(!i.has(t))return;const n=md(i.get(t));n.delete(e),0===n.size&&i.delete(t)}}}var Ef={cloneGraph:function(e){return{nodeDeps:xf(e.nodeDeps,(e=>new Set(e))),nodeToNodeSubscriptions:xf(e.nodeToNodeSubscriptions,(e=>new Set(e)))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,r){var o,i,a,l;const c=n.getState();r!==c.currentTree.version&&r!==(null===(o=c.nextTree)||void 0===o?void 0:o.version)&&(null===(i=c.previousTree)||void 0===i||i.version);const s=n.getGraph(r);if(Cf(e,t,s),r===(null===(a=c.previousTree)||void 0===a?void 0:a.version)&&Cf(e,t,n.getGraph(c.currentTree.version),s),r===(null===(l=c.previousTree)||void 0===l?void 0:l.version)||r===c.currentTree.version){var u;const r=null===(u=c.nextTree)||void 0===u?void 0:u.version;void 0!==r&&Cf(e,t,n.getGraph(r),s)}}};let kf=0,$f=0,Of=0;var Nf={getNextTreeStateVersion:()=>kf++,getNextStoreID:()=>$f++,getNextComponentID:()=>Of++};const{persistentMap:_f}=wf,{graph:If}=Ef,{getNextTreeStateVersion:Rf}=Nf;function Mf(){const e=Rf();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:_f(),nonvalidatedAtoms:_f()}}var Pf={makeEmptyTreeState:Mf,makeEmptyStoreState:function(){const e=Mf();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(e.version,If()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:Rf};class Tf{}var jf={RetentionZone:Tf,retentionZone:function(){return new Tf}},Af={setByAddingToSet:function(e,t){const n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){const n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n),r},mapByUpdatingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r},mapByDeletingFromMap:function(e,t){const n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){const n=new Map(e);return t.forEach((e=>n.delete(e))),n}},zf=function*(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)},Df=function(e,t){return new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)})};const{getNode:Lf,getNodeMaybe:Bf,recoilValuesForKeys:Ff}=pf,{RetentionZone:Hf}=jf,{setByAddingToSet:Wf}=Af,Vf=Object.freeze(new Set);class Uf extends Error{}function Kf(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const i=Lf(n),a=function(e,t,n){if(!Wd("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(e){let n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof Hf)o(n);else if(Array.isArray(n))for(const i of n)o(i);return()=>{if(!Wd("recoil_memory_managament_2020"))return;const{retention:r}=e.getState();function o(e){const n=r.nodesRetainedByZone.get(e);null==n||n.delete(t),n&&0===n.size&&r.nodesRetainedByZone.delete(e)}if(n instanceof Hf)o(n);else if(Array.isArray(n))for(const e of n)o(e)}}(e,n,i.retainedBy),l=i.init(e,t,r);o.nodeCleanupFunctions.set(n,(()=>{l(),a()}))}function qf(e,t,n){return Lf(n).peek(e,t)}function Xf(e,t,n){const r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let l=o.pop();l;l=o.pop()){var a;r.add(l);const e=null!==(a=i.nodeToNodeSubscriptions.get(l))&&void 0!==a?a:Vf;for(const t of e)r.has(t)||o.push(t)}return r}var Gf={getNodeLoadable:function(e,t,n){return Kf(e,t,n,"get"),Lf(n).get(e,t)},peekNodeLoadable:qf,setNodeValue:function(e,t,n,r){const o=Lf(n);if(null==o.set)throw new Uf(`Attempt to set read-only RecoilValue: ${n}`);const i=o.set;return Kf(e,t,n,"set"),i(e,t,r)},initializeNode:function(e,t,n){Kf(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;const r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var r;const o=Bf(t);return null==o||null===(r=o.invalidate)||void 0===r||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Wf(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){const r=e.getState(),o=e.getGraph(t.version),i=Lf(n).nodeType;return Df({type:i},{loadable:()=>qf(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>"selector"!==i&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return Ff(null!==(e=o.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var o,i;return{nodes:Ff(zf(Xf(e,t,new Set([n])),(e=>e!==n))),components:of(null!==(o=null===(i=r.nodeToComponentSubscriptions.get(n))||void 0===i?void 0:i.values())&&void 0!==o?o:[],(([e])=>({name:e})))}}})},getDownstreamNodes:Xf};let Yf=null;var Qf={setInvalidateMemoizedSnapshot:function(e){Yf=e},invalidateMemoizedSnapshot:function(){var e;null===(e=Yf)||void 0===e||e()}};const{getDownstreamNodes:Zf,getNodeLoadable:Jf,setNodeValue:ep}=Gf,{getNextComponentID:tp}=Nf,{getNode:np,getNodeMaybe:rp}=pf,{DefaultValue:op}=pf,{reactMode:ip}=Xd,{AbstractRecoilValue:ap,RecoilState:lp,RecoilValueReadOnly:cp,isRecoilValue:sp}=rf,{invalidateMemoizedSnapshot:up}=Qf;function dp(e,t,n){if("set"===n.type){const{recoilValue:r,valueOrUpdater:o}=n,i=function(e,t,{key:n},r){if("function"==typeof r){const o=Jf(e,t,n);if("loading"===o.state)throw fd(`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`);if("hasError"===o.state)throw o.contents;return r(o.contents)}return r}(e,t,r,o),a=ep(e,t,r.key,i);for(const[e,n]of a.entries())fp(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:r}=n;fp(t,e,r)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var r;const{recoilValue:{key:e},unvalidatedValue:o}=n,i=rp(e);null==i||null===(r=i.invalidate)||void 0===r||r.call(i,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,o),t.dirtyAtoms.add(e)}else Vd(`Unknown action ${n.type}`)}function fp(e,t,n){"hasValue"===n.state&&n.contents instanceof op?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function pp(e,t){e.replaceState((n=>{const r=gp(n);for(const o of t)dp(e,r,o);return vp(e,r),up(),r}))}function mp(e,t){if(hp.length){const n=hp[hp.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else pp(e,[t])}const hp=[];function gp(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function vp(e,t){const n=Zf(e,t,t.dirtyAtoms);for(const i of n){var r,o;null===(r=rp(i))||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,t)}}function bp(e,t,n){mp(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var yp={RecoilValueReadOnly:cp,AbstractRecoilValue:ap,RecoilState:lp,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var r,o;const i=e.getState();n.version!==i.currentTree.version&&n.version!==(null===(r=i.nextTree)||void 0===r?void 0:r.version)&&(n.version,null===(o=i.previousTree)||void 0===o||o.version);const a=Jf(e,n,t);return"loading"===a.state&&a.contents.catch((()=>{})),a},setRecoilValue:bp,setRecoilValueLoadable:function(e,t,n){if(n instanceof op)return bp(e,t,n);mp(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){mp(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){mp(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,r=null){const o=tp(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),md(i.nodeToComponentSubscriptions.get(t)).set(o,[null!=r?r:"<not captured>",n]);const a=ip();if(a.early&&("LEGACY"===a.mode||"MUTABLE_SOURCE"===a.mode)){const r=e.getState().nextTree;r&&r.dirtyAtoms.has(t)&&n(r)}return{release:()=>{const n=e.getState(),r=n.nodeToComponentSubscriptions.get(t);void 0!==r&&r.has(o)&&(r.delete(o),0===r.size&&n.nodeToComponentSubscriptions.delete(t))}}},isRecoilValue:sp,applyAtomValueWrites:function(e,t){const n=e.clone();return t.forEach(((e,t)=>{"hasValue"===e.state&&e.contents instanceof op?n.delete(t):n.set(t,e)})),n},batchStart:function(){const e=new Map;return hp.push(e),()=>{for(const[t,n]of e)pp(t,n);hp.pop()}},writeLoadableToTreeState:fp,invalidateDownstreams:vp,copyTreeState:gp,refreshRecoilValue:function(e,t){var n;const{currentTree:r}=e.getState(),o=np(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)}},wp=function(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1};const{cleanUpNode:Sp}=Gf,{deleteNodeConfigIfPossible:xp,getNode:Cp}=pf,{RetentionZone:Ep}=jf,kp=new Set;function $p(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const a of t)if(a instanceof Ep)for(const e of Np(n,a))o.add(e);else o.add(a);const i=function(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return l(t),i;function l(t){const c=new Set,s=function(e,t,n,r,o){const i=e.getGraph(t.version),a=[],l=new Set;for(;n.size>0;)c(md(n.values().next().value));return a;function c(e){if(r.has(e)||o.has(e))return void n.delete(e);if(l.has(e))return;const t=i.nodeToNodeSubscriptions.get(e);if(t)for(const n of t)c(n);l.add(e),n.delete(e),a.push(e)}}(e,r,t,i,a);for(const e of s){var u;if("recoilRoot"===Cp(e).retainedBy){a.add(e);continue}if((null!==(u=n.retention.referenceCounts.get(e))&&void 0!==u?u:0)>0){a.add(e);continue}if(_p(e).some((e=>n.retention.referenceCounts.get(e)))){a.add(e);continue}const t=o.nodeToNodeSubscriptions.get(e);t&&wp(t,(e=>a.has(e)))?a.add(e):(i.add(e),c.add(e))}const d=new Set;for(const e of c)for(const t of null!==(f=o.nodeDeps.get(e))&&void 0!==f?f:kp){var f;i.has(t)||d.add(t)}d.size&&l(d)}}(e,o);for(const a of i)Op(e,r,a)}function Op(e,t,n){if(!Wd("recoil_memory_managament_2020"))return;Sp(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=_p(n);for(const c of o){var i;null===(i=r.retention.nodesRetainedByZone.get(c))||void 0===i||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const e=a.nodeDeps.get(n);if(void 0!==e){a.nodeDeps.delete(n);for(const t of e){var l;null===(l=a.nodeToNodeSubscriptions.get(t))||void 0===l||l.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}xp(n)}function Np(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:kp}function _p(e){const t=Cp(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof Ep?[t]:t}function Ip(e,t){Wd("recoil_memory_managament_2020")&&(e.getState().retention.referenceCounts.delete(t),function(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):$p(e,new Set([t]))}(e,t))}var Rp={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var r;if(!Wd("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,i=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===i?Ip(e,t):o.set(t,i)},updateRetainCountToZero:Ip,releaseScheduledRetainablesNow:function(e){if(!Wd("recoil_memory_managament_2020"))return;const t=e.getState();$p(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};const{unstable_batchedUpdates:Mp}=sd;var Pp={unstable_batchedUpdates:Mp};const{unstable_batchedUpdates:Tp}=Pp;var jp={unstable_batchedUpdates:Tp};const{batchStart:Ap}=yp,{unstable_batchedUpdates:zp}=jp;let Dp=zp||(e=>e());var Lp={getBatcher:()=>Dp,setBatcher:e=>{Dp=e},batchUpdates:e=>{Dp((()=>{let t=()=>{};try{t=Ap(),e()}finally{t()}}))}},Bp=function*(e){for(const t of e)for(const e of t)yield e};const Fp="undefined"==typeof Window||"undefined"==typeof window,Hp="undefined"!=typeof navigator&&"ReactNative"===navigator.product;var Wp={isSSR:Fp,isReactNative:Hp,isWindow:e=>!Fp&&(e===window||e instanceof Window)},Vp={memoizeWithArgsHash:function(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}},memoizeOneWithArgsHash:function(e,t){let n,r;return(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,r;return[(...o)=>{const i=t(...o);return n===i||(n=i,r=e(...o)),r},()=>{n=null}]}};const{batchUpdates:Up}=Lp,{initializeNode:Kp,peekNodeInfo:qp}=Gf,{graph:Xp}=Ef,{getNextStoreID:Gp}=Nf,{DEFAULT_VALUE:Yp,recoilValues:Qp,recoilValuesForKeys:Zp}=pf,{AbstractRecoilValue:Jp,getRecoilValueAsLoadable:em,setRecoilValue:tm,setUnvalidatedRecoilValue:nm}=yp,{updateRetainCount:rm}=Rp,{setInvalidateMemoizedSnapshot:om}=Qf,{getNextTreeStateVersion:im,makeEmptyStoreState:am}=Pf,{isSSR:lm}=Wp,{memoizeOneWithArgsHashAndInvalidation:cm}=Vp;class sm{constructor(e,t){hd(this,"_store",void 0),hd(this,"_refCount",1),hd(this,"getLoadable",(e=>(this.checkRefCount_INTERNAL(),em(this._store,e)))),hd(this,"getPromise",(e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise()))),hd(this,"getNodes_UNSTABLE",(e=>{if(this.checkRefCount_INTERNAL(),!0===(null==e?void 0:e.isModified)){if(!1===(null==e?void 0:e.isInitialized))return[];const t=this._store.getState().currentTree;return Zp(t.dirtyAtoms)}const t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null==e?void 0:e.isInitialized)?Qp.values():!0===e.isInitialized?Zp(Bp([t,n])):zf(Qp.values(),(({key:e})=>!t.has(e)&&!n.has(e)))})),hd(this,"getInfo_UNSTABLE",(({key:e})=>(this.checkRefCount_INTERNAL(),qp(this._store,this._store.getState().currentTree,e)))),hd(this,"map",(e=>{this.checkRefCount_INTERNAL();const t=new pm(this,Up);return e(t),t})),hd(this,"asyncMap",(async e=>{this.checkRefCount_INTERNAL();const t=new pm(this,Up);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t})),this._store={storeID:Gp(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{const n=e.graphsByVersion;if(n.has(t))return md(n.get(t));const r=Xp();return n.set(t,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw fd("Cannot subscribe to Snapshots")}};for(const n of this._store.getState().knownAtoms)Kp(this._store,n,"get"),rm(this._store,n,1);this.autoRelease_INTERNAL()}retain(){this._refCount,this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){lm||window.setTimeout((()=>this._release()),10)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach((e=>e())),this._store.getState().nodeCleanupFunctions.clear(),!Wd("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Wd("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function um(e,t,n=!1){const r=e.getState(),o=n?im():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(of(r.nodeCleanupFunctions.entries(),(([e])=>[e,()=>{}])))}}const[dm,fm]=cm(((e,t)=>{var n;const r=e.getState(),o="latest"===t?null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree:md(r.previousTree);return new sm(um(e,o),e.storeID)}),((e,t)=>{var n,r;return String(t)+String(e.storeID)+String(null===(n=e.getState().nextTree)||void 0===n?void 0:n.version)+String(e.getState().currentTree.version)+String(null===(r=e.getState().previousTree)||void 0===r?void 0:r.version)}));om(fm);class pm extends sm{constructor(e,t){super(um(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),hd(this,"_batch",void 0),hd(this,"set",((e,t)=>{this.checkRefCount_INTERNAL();const n=this.getStore_INTERNAL();this._batch((()=>{rm(n,e.key,1),tm(this.getStore_INTERNAL(),e,t)}))})),hd(this,"reset",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();this._batch((()=>{rm(t,e.key,1),tm(this.getStore_INTERNAL(),e,Yp)}))})),hd(this,"setUnvalidatedAtomValues_DEPRECATED",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();Up((()=>{for(const[n,r]of e.entries())rm(t,n,1),nm(t,new Jp(n),r)}))})),this._batch=t}}var mm={Snapshot:sm,MutableSnapshot:pm,freshSnapshot:function(e){const t=new sm(am());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){const n=dm(e,t);return n.isRetained()?n:(fm(),dm(e,t))}},hm=mm.Snapshot,gm=mm.MutableSnapshot,vm=mm.freshSnapshot,bm=mm.cloneSnapshot,ym=Object.freeze({__proto__:null,Snapshot:hm,MutableSnapshot:gm,freshSnapshot:vm,cloneSnapshot:bm}),wm=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};const{useRef:Sm}=W;var xm=function(e){const t=Sm(e);return t.current===e&&"function"==typeof e&&(t.current=e()),t};const{getNextTreeStateVersion:Cm,makeEmptyStoreState:Em}=Pf,{cleanUpNode:km,getDownstreamNodes:$m,initializeNode:Om,setNodeValue:Nm,setUnvalidatedAtomValue_DEPRECATED:_m}=Gf,{graph:Im}=Ef,{cloneGraph:Rm}=Ef,{getNextStoreID:Mm}=Nf,{createMutableSource:Pm,reactMode:Tm}=Xd,{applyAtomValueWrites:jm}=yp,{releaseScheduledRetainablesNow:Am}=Rp,{freshSnapshot:zm}=ym,{useCallback:Dm,useContext:Lm,useEffect:Bm,useMemo:Fm,useRef:Hm,useState:Wm}=W;function Vm(){throw fd("This component must be used inside a <RecoilRoot> component.")}const Um=Object.freeze({storeID:Mm(),getState:Vm,replaceState:Vm,getGraph:Vm,subscribeToTransactions:Vm,addTransactionMetadata:Vm});let Km=!1;function qm(e){if(Km)throw fd("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(null===t.nextTree){Wd("recoil_memory_managament_2020")&&Wd("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Am(e);const n=t.currentTree.version,r=Cm();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Rm(md(t.graphsByVersion.get(n))))}}const Xm=W.createContext({current:Um}),Gm=()=>Lm(Xm),Ym=W.createContext(null);function Qm(e,t,n){const r=$m(e,n,n.dirtyAtoms);for(const o of r){const e=t.nodeToComponentSubscriptions.get(o);if(e)for(const[t,[r,o]]of e)o(n)}}function Zm(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[n,o]of t.nodeTransactionSubscriptions)if(r.has(n))for(const[t,r]of o)r(e);for(const[n,r]of t.transactionSubscriptions)r(e);(!Tm().early||t.suspendedComponentResolvers.size>0)&&(Qm(e,t,n),t.suspendedComponentResolvers.forEach((e=>e())),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach((e=>e(n))),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Jm({setNotifyBatcherOfChange:e}){const t=Gm(),[,n]=Wm([]);return e((()=>n({}))),Bm((()=>(e((()=>n({}))),()=>{e((()=>{}))})),[e]),Bm((()=>{mf.enqueueExecution("Batcher",(()=>{!function(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Zm(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):Vd("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Wd("recoil_memory_managament_2020")&&null==n&&Am(e)}finally{t.commitDepth--}}(t.current)}))})),null}let eh=0;function th({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const i=e=>{const t=o.current.graphsByVersion;if(t.has(e))return md(t.get(e));const n=Im();return t.set(e,n),n},a=(e,t)=>{if(null==t){const{transactionSubscriptions:t}=d.current.getState(),n=eh++;return t.set(n,e),{release:()=>{t.delete(n)}}}{const{nodeTransactionSubscriptions:n}=d.current.getState();n.has(t)||n.set(t,new Map);const r=eh++;return md(n.get(t)).set(r,e),{release:()=>{const e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}}},l=e=>{qm(d.current);for(const t of Object.keys(e))md(d.current.getState().nextTree).transactionMetadata[t]=e[t]},c=e=>{qm(d.current);const t=md(o.current.nextTree);let n;try{Km=!0,n=e(t)}finally{Km=!1}n!==t&&(o.current.nextTree=n,Tm().early&&Qm(d.current,o.current,n),md(s.current)())},s=Hm(null),u=Dm((e=>{s.current=e}),[s]),d=xm((()=>null!=n?n:{storeID:Mm(),getState:()=>o.current,replaceState:c,getGraph:i,subscribeToTransactions:a,addTransactionMetadata:l}));null!=n&&(d.current=n),o=xm((()=>null!=e?function(e,t){const n=Em();return t({set:(t,r)=>{const o=n.currentTree,i=Nm(e,o,t.key,r),a=new Set(i.keys()),l=o.nonvalidatedAtoms.clone();for(const e of a)l.delete(e);n.currentTree={...o,dirtyAtoms:wm(o.dirtyAtoms,a),atomValues:jm(o.atomValues,i),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:e=>{e.forEach(((e,t)=>{n.currentTree=_m(n.currentTree,t,e)}))}}),n}(d.current,e):null!=t?function(e){const t=zm(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach((e=>e())),n.nodeCleanupFunctions.clear(),n}(t):Em()));const f=Fm((()=>null==Pm?void 0:Pm(o,(()=>o.current.currentTree.version))),[o]);return Bm((()=>{const e=d.current;for(const t of new Set(e.getState().knownAtoms))Om(e,t,"get");return()=>{for(const t of e.getState().knownAtoms)km(e,t)}}),[d]),W.createElement(Xm.Provider,{value:d},W.createElement(Ym.Provider,{value:f},W.createElement(Jm,{setNotifyBatcherOfChange:u}),r))}var nh={RecoilRoot:function(e){const{override:t,...n}=e,r=Gm();return!1===t&&r.current!==Um?e.children:W.createElement(th,n)},useStoreRef:Gm,useRecoilMutableSource:function(){return Lm(Ym)},useRecoilStoreID:function(){return Gm().current.storeID},notifyComponents_FOR_TESTING:Qm,sendEndOfBatchNotifications_FOR_TESTING:Zm},rh=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0};const{useEffect:oh,useRef:ih}=W;var ah=function(e){const t=ih();return oh((()=>{t.current=e})),t.current};const{useStoreRef:lh}=nh,{SUSPENSE_TIMEOUT_MS:ch}=Rp,{updateRetainCount:sh}=Rp,{RetentionZone:uh}=jf,{useEffect:dh,useRef:fh}=W,{isSSR:ph}=Wp;var mh=function(e){if(Wd("recoil_memory_managament_2020"))return function(e){const t=Array.isArray(e)?e:[e],n=t.map((e=>e instanceof uh?e:e.key)),r=lh();dh((()=>{if(!Wd("recoil_memory_managament_2020"))return;const e=r.current;if(o.current&&!ph)window.clearTimeout(o.current),o.current=null;else for(const t of n)sh(e,t,1);return()=>{for(const t of n)sh(e,t,-1)}}),[r,...n]);const o=fh(),i=ah(n);if(!(ph||void 0!==i&&rh(i,n))){const e=r.current;for(const t of n)sh(e,t,1);if(i)for(const t of i)sh(e,t,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout((()=>{o.current=null;for(const t of n)sh(e,t,-1)}),ch)}}(e)},hh=function(){return"<component name not available>"};const{batchUpdates:gh}=Lp,{DEFAULT_VALUE:vh}=pf,{currentRendererSupportsUseSyncExternalStore:bh,reactMode:yh,useMutableSource:wh,useSyncExternalStore:Sh}=Xd,{useRecoilMutableSource:xh,useStoreRef:Ch}=nh,{AbstractRecoilValue:Eh,getRecoilValueAsLoadable:kh,setRecoilValue:$h,setUnvalidatedRecoilValue:Oh,subscribeToRecoilValue:Nh}=yp,{useCallback:_h,useEffect:Ih,useMemo:Rh,useRef:Mh,useState:Ph}=W,{setByAddingToSet:Th}=Af,{isSSR:jh}=Wp;function Ah(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state)throw new Promise((t=>{const r=n.current.getState().suspendedComponentResolvers;r.add(t),jh&&pd(e.contents)&&e.contents.finally((()=>{r.delete(t)}))}));throw"hasError"===e.state?e.contents:fd(`Invalid value of loadable atom "${t.key}"`)}function zh(e){const t=Ch(),n=hh(),r=_h((()=>{var n;const r=t.current,o=r.getState(),i=yh().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:kh(r,e,i),key:e.key}}),[t,e]),o=_h((e=>{let t;return()=>{var n,r;const o=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(o.loadable)&&(null===(r=t)||void 0===r?void 0:r.key)===o.key?t:(t=o,o)}}),[]),i=Rh((()=>o(r)),[r,o]),a=_h((r=>{const o=t.current;return Nh(o,e,r,n).release}),[t,e,n]);return Sh(a,i,i).loadable}function Dh(e){const t=Ch(),n=_h((()=>{var n;const r=t.current,o=r.getState(),i=yh().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return kh(r,e,i)}),[t,e]),r=_h((()=>n()),[n]),o=hh(),i=_h(((r,i)=>{const a=t.current;return Nh(a,e,(()=>{if(!Wd("recoil_suppress_rerender_in_callback"))return i();const e=n();c.current.is(e)||i(),c.current=e}),o).release}),[t,e,o,n]),a=xh();if(null==a)throw fd("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const l=wh(a,r,i),c=Mh(l);return Ih((()=>{c.current=l})),l}function Lh(e){const t=Ch(),n=hh(),r=_h((()=>{var n;const r=t.current,o=r.getState(),i=yh().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return kh(r,e,i)}),[t,e]),o=_h((()=>({loadable:r(),key:e.key})),[r,e.key]),i=_h((e=>{const t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[o]);Ih((()=>{const r=Nh(t.current,e,(e=>{l(i)}),n);return l(i),r.release}),[n,e,t,i]);const[a,l]=Ph(o);return a.key!==e.key?o().loadable:a.loadable}function Bh(e){const t=Ch(),[,n]=Ph([]),r=hh(),o=_h((()=>{var n;const r=t.current,o=r.getState(),i=yh().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return kh(r,e,i)}),[t,e]),i=o(),a=Mh(i);return Ih((()=>{a.current=i})),Ih((()=>{const i=t.current,l=i.getState(),c=Nh(i,e,(e=>{var t;if(!Wd("recoil_suppress_rerender_in_callback"))return n([]);const r=o();null!==(t=a.current)&&void 0!==t&&t.is(r)||n(r),a.current=r}),r);if(l.nextTree)i.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{a.current=null,n([])}));else{var s;if(!Wd("recoil_suppress_rerender_in_callback"))return n([]);const e=o();null!==(s=a.current)&&void 0!==s&&s.is(e)||n(e),a.current=e}return c.release}),[r,o,e,t]),i}function Fh(e){return Wd("recoil_memory_managament_2020")&&mh(e),{TRANSITION_SUPPORT:Lh,SYNC_EXTERNAL_STORE:bh()?zh:Lh,MUTABLE_SOURCE:Dh,LEGACY:Bh}[yh().mode](e)}function Hh(e){const t=Ch();return Ah(Fh(e),e,t)}function Wh(e){const t=Ch();return _h((n=>{$h(t.current,e,n)}),[t,e])}function Vh(e){return Wd("recoil_memory_managament_2020")&&mh(e),Lh(e)}function Uh(e){const t=Ch();return Ah(Vh(e),e,t)}var Kh={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const e=hh(),t=Ch(),[,n]=Ph([]),r=Mh(new Set);r.current=new Set;const o=Mh(new Set),i=Mh(new Map),a=_h((e=>{const t=i.current.get(e);t&&(t.release(),i.current.delete(e))}),[i]),l=_h(((e,t)=>{i.current.has(t)&&n([])}),[]);return Ih((()=>{const n=t.current;Sf(r.current,o.current).forEach((t=>{if(i.current.has(t))return;const r=Nh(n,new Eh(t),(e=>l(e,t)),e);i.current.set(t,r),n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{l(n.getState(),t)})):l(n.getState(),t)})),Sf(o.current,r.current).forEach((e=>{a(e)})),o.current=r.current})),Ih((()=>{const n=i.current;return Sf(r.current,new Set(n.keys())).forEach((r=>{const o=Nh(t.current,new Eh(r),(e=>l(e,r)),e);n.set(r,o)})),()=>n.forEach(((e,t)=>a(t)))}),[e,t,a,l]),Rh((()=>{function e(e){return n=>{$h(t.current,e,n)}}function n(e){var n;r.current.has(e.key)||(r.current=Th(r.current,e.key));const o=t.current.getState();return kh(t.current,e,yh().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree)}function o(e){return Ah(n(e),e,t)}return{getRecoilValue:o,getRecoilValueLoadable:n,getRecoilState:function(t){return[o(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>$h(t.current,e,vh)}}}),[r,t])},useRecoilState:function(e){return[Hh(e),Wh(e)]},useRecoilStateLoadable:function(e){return[Fh(e),Wh(e)]},useRecoilValue:Hh,useRecoilValueLoadable:Fh,useResetRecoilState:function(e){const t=Ch();return _h((()=>{$h(t.current,e,vh)}),[t,e])},useSetRecoilState:Wh,useSetUnvalidatedAtomValues:function(){const e=Ch();return(t,n={})=>{gh((()=>{e.current.addTransactionMetadata(n),t.forEach(((t,n)=>Oh(e.current,new Eh(n),t)))}))}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Vh,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Uh,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[Uh(e),Wh(e)]}},qh=function(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n},Xh=function(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n},Gh=function(...e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].keys();let o;for(;!(o=r.next()).done;)t.set(o.value,e[n].get(o.value))}return t};const{batchUpdates:Yh}=Lp,{DEFAULT_VALUE:Qh,getNode:Zh,nodes:Jh}=pf,{useStoreRef:eg}=nh,{AbstractRecoilValue:tg,setRecoilValueLoadable:ng}=yp,{SUSPENSE_TIMEOUT_MS:rg}=Rp,{cloneSnapshot:og}=ym,{useCallback:ig,useEffect:ag,useRef:lg,useState:cg}=W,{isSSR:sg}=Wp;function ug(e){const t=eg();ag((()=>t.current.subscribeToTransactions(e).release),[e,t])}function dg(e){const t=e.atomValues.toMap(),n=xf(qh(t,((e,t)=>{const n=Zh(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state})),(e=>e.contents));return Gh(e.nonvalidatedAtoms.toMap(),n)}function fg(e,t){var n;const r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;Yh((()=>{const n=new Set;for(const e of[o.atomValues.keys(),i.atomValues.keys()])for(const t of e){var r,a;(null===(r=o.atomValues.get(t))||void 0===r?void 0:r.contents)!==(null===(a=i.atomValues.get(t))||void 0===a?void 0:a.contents)&&Zh(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach((t=>{ng(e,new tg(t),i.atomValues.has(t)?md(i.atomValues.get(t)):Qh)})),e.replaceState((e=>({...e,stateID:t.getID()})))}))}var pg={useRecoilSnapshot:function(){const e=eg(),[t,n]=cg((()=>og(e.current))),r=ah(t),o=lg(),i=lg();var a;(ug(ig((e=>n(og(e))),[])),ag((()=>{const e=t.retain();var n;return o.current&&!sg&&(window.clearTimeout(o.current),o.current=null,null===(n=i.current)||void 0===n||n.call(i),i.current=null),()=>{window.setTimeout(e,10)}}),[t]),r===t||sg)||(o.current&&(window.clearTimeout(o.current),o.current=null,null===(a=i.current)||void 0===a||a.call(i),i.current=null),i.current=t.retain(),o.current=window.setTimeout((()=>{var e;o.current=null,null===(e=i.current)||void 0===e||e.call(i),i.current=null}),rg));return t},gotoSnapshot:fg,useGotoRecoilSnapshot:function(){const e=eg();return ig((t=>fg(e.current,t)),[e])},useRecoilTransactionObserver:function(e){ug(ig((t=>{const n=og(t,"latest"),r=og(t,"previous");e({snapshot:n,previousSnapshot:r})}),[e]))},useTransactionObservation_DEPRECATED:function(e){ug(ig((t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=dg(r),i=dg(n),a=xf(Jh,(e=>{var t,n,r,o;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(o=e.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}})),l=Xh(r.dirtyAtoms,(e=>o.has(e)||i.has(e)));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:l,transactionMetadata:{...r.transactionMetadata}})}),[e]))},useTransactionSubscription_DEPRECATED:ug};const{peekNodeInfo:mg}=Gf,{useStoreRef:hg}=nh;var gg=function(){const e=hg();return({key:t})=>mg(e.current,e.current.getState().currentTree,t)};const{reactMode:vg}=Xd,{RecoilRoot:bg,useStoreRef:yg}=nh,{useMemo:wg}=W;var Sg=function(){"MUTABLE_SOURCE"===vg().mode&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=yg().current;return wg((()=>function({children:t}){return W.createElement(bg,{store_INTERNAL:e},t)}),[e])};const{loadableWithValue:xg}=jd,{initializeNode:Cg}=Gf,{DEFAULT_VALUE:Eg,getNode:kg}=pf,{copyTreeState:$g,getRecoilValueAsLoadable:Og,invalidateDownstreams:Ng,writeLoadableToTreeState:_g}=yp;function Ig(e){return"atom"===kg(e.key).nodeType}class Rg{constructor(e,t){hd(this,"_store",void 0),hd(this,"_treeState",void 0),hd(this,"_changes",void 0),hd(this,"get",(e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!Ig(e))throw fd("Reading selectors within atomicUpdate is not supported");const t=Og(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:fd(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)})),hd(this,"set",((e,t)=>{if(!Ig(e))throw fd("Setting selectors within atomicUpdate is not supported");if("function"==typeof t){const n=this.get(e);this._changes.set(e.key,t(n))}else Cg(this._store,e.key,"set"),this._changes.set(e.key,t)})),hd(this,"reset",(e=>{this.set(e,Eg)})),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const e=$g(this._treeState);for(const[t,n]of this._changes)_g(e,t,xg(n));return Ng(this._store,e),e}}var Mg=function(e){return t=>{e.replaceState((n=>{const r=new Rg(e,n);return t(r),r.newTreeState_INTERNAL()}))}},Pg=Object.freeze({__proto__:null,atomicUpdater:Mg}),Tg=function(e,t){if(!e)throw new Error(t)},jg=Tg;const{atomicUpdater:Ag}=Pg,{batchUpdates:zg}=Lp,{DEFAULT_VALUE:Dg}=pf,{useStoreRef:Lg}=nh,{refreshRecoilValue:Bg,setRecoilValue:Fg}=yp,{cloneSnapshot:Hg}=ym,{gotoSnapshot:Wg}=pg,{useCallback:Vg}=W;class Ug{}const Kg=new Ug;function qg(e,t,n,r){let o,i=Kg;var a;return zg((()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if("function"!=typeof t)throw fd(a);const l=Df({...null!=r?r:{},set:(t,n)=>Fg(e,t,n),reset:t=>Fg(e,t,Dg),refresh:t=>Bg(e,t),gotoSnapshot:t=>Wg(e,t),transact_UNSTABLE:t=>Ag(e)(t)},{snapshot:()=>{const t=Hg(e);return o=t.retain(),t}}),c=t(l);if("function"!=typeof c)throw fd(a);i=c(...n)})),i instanceof Ug&&jg(!1),pd(i)?i=i.finally((()=>{var e;null===(e=o)||void 0===e||e()})):null===(a=o)||void 0===a||a(),i}var Xg={recoilCallback:qg,useRecoilCallback:function(e,t){const n=Lg();return Vg(((...t)=>qg(n.current,e,t)),null!=t?[...t,n]:void 0)}};const{useStoreRef:Gg}=nh,{refreshRecoilValue:Yg}=yp,{useCallback:Qg}=W;var Zg=function(e){const t=Gg();return Qg((()=>{const n=t.current;Yg(n,e)}),[e,t])};const{atomicUpdater:Jg}=Pg,{useStoreRef:ev}=nh,{useMemo:tv}=W;var nv=function(e,t){const n=ev();return tv((()=>(...t)=>{Jg(n.current)((n=>{e(n)(...t)}))}),null!=t?[...t,n]:void 0)},rv=class{constructor(e){hd(this,"value",void 0),this.value=e}},ov=Object.freeze({__proto__:null,WrappedValue:rv});const{isFastRefreshEnabled:iv}=Xd;class av extends Error{}var lv=class{constructor(e){var t,n,r;hd(this,"_name",void 0),hd(this,"_numLeafs",void 0),hd(this,"_root",void 0),hd(this,"_onHit",void 0),hd(this,"_onSet",void 0),hd(this,"_mapNodeValue",void 0),this._name=null==e?void 0:e.name,this._numLeafs=0,this._root=null,this._onHit=null!==(t=null==e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null==e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null==e?void 0:e.mapNodeValue)&&void 0!==r?r:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){if(null==this._root)return;let n=this._root;for(;n;){if(null==t||t.onNodeVisit(n),"leaf"===n.type)return this._onHit(n),n;const r=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(r)}}set(e,t,n){const r=()=>{var r,o,i,a;let l,c;for(const[t,m]of e){var s,u,d;const e=this._root;if("leaf"===(null==e?void 0:e.type))throw this.invalidCacheError();const r=l;if(l=r?r.branches.get(c):e,l=null!==(s=l)&&void 0!==s?s:{type:"branch",nodeKey:t,parent:r,branches:new Map,branchKey:c},"branch"!==l.type||l.nodeKey!==t)throw this.invalidCacheError();null==r||r.branches.set(c,l),null==n||null===(u=n.onNodeVisit)||void 0===u||u.call(n,l),c=this._mapNodeValue(m),this._root=null!==(d=this._root)&&void 0!==d?d:l}const f=l?null===(r=l)||void 0===r?void 0:r.branches.get(c):this._root;if(null!=f&&("leaf"!==f.type||f.branchKey!==c))throw this.invalidCacheError();const p={type:"leaf",value:t,parent:l,branchKey:c};null===(o=l)||void 0===o||o.branches.set(c,p),this._root=null!==(i=this._root)&&void 0!==i?i:p,this._numLeafs++,this._onSet(p),null==n||null===(a=n.onNodeVisit)||void 0===a||a.call(n,p)};try{r()}catch(o){if(!(o instanceof av))throw o;this.clear(),r()}}delete(e){const t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,r=e.branchKey;for(;n;){var o;if(n.branches.delete(r),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;r=null===(o=n)||void 0===o?void 0:o.branchKey,n=n.parent}for(;n!==t;n=n.parent)if(null==n)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const e=iv()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw Vd(e+(null!=this._name?` - ${this._name}`:"")),new av}},cv=lv,sv=Object.freeze({__proto__:null,TreeCache:cv}),uv=class{constructor(e){var t;hd(this,"_maxSize",void 0),hd(this,"_size",void 0),hd(this,"_head",void 0),hd(this,"_tail",void 0),hd(this,"_map",void 0),hd(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){const t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){const n=this._keyMapper(e);this._map.get(n)&&this.delete(e);const r=this.head(),o={key:e,right:r,left:null,value:t};r?r.left=o:this._tail=o,this._map.set(n,o),this._head=o,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const e=this.tail();e&&this.delete(e.key)}delete(e){const t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;const n=md(this._map.get(t)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},dv=uv,fv=Object.freeze({__proto__:null,LRUCache:dv});const{LRUCache:pv}=fv,{TreeCache:mv}=sv;var hv=function({name:e,maxSize:t,mapNodeValue:n=(e=>e)}){const r=new pv({maxSize:t}),o=new mv({name:e,mapNodeValue:n,onHit:e=>{r.set(e,!0)},onSet:e=>{const n=r.tail();r.set(e,!0),n&&o.size()>t&&o.delete(n.key)}});return o};function gv(e,t,n){if("string"==typeof e&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if(!0!==(null==t?void 0:t.allowFunctions))throw fd("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(null===e)return"null";var r;if("object"!=typeof e)return null!==(r=JSON.stringify(e))&&void 0!==r?r:"";if(pd(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map(((e,n)=>gv(e,t,n.toString())))}]`;if("function"==typeof e.toJSON)return gv(e.toJSON(n),t,n);if(e instanceof Map){const r={};for(const[n,o]of e)r["string"==typeof n?n:gv(n,t)]=o;return gv(r,t,n)}return e instanceof Set?gv(Array.from(e).sort(((e,n)=>gv(e,t).localeCompare(gv(n,t)))),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"==typeof e[Symbol.iterator]?gv(Array.from(e),t,n):`{${Object.keys(e).filter((t=>void 0!==e[t])).sort().map((n=>`${gv(n,t)}:${gv(e[n],t,n)}`)).join(",")}}`}var vv=function(e,t={allowFunctions:!1}){return gv(e,t)};const{TreeCache:bv}=sv,yv={equality:"reference",eviction:"keep-all",maxSize:1/0};var wv=function({equality:e=yv.equality,eviction:t=yv.eviction,maxSize:n=yv.maxSize}=yv,r){const o=function(e){switch(e){case"reference":return e=>e;case"value":return e=>vv(e)}throw fd(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n,r){switch(e){case"keep-all":return new bv({name:r,mapNodeValue:n});case"lru":return hv({name:r,maxSize:md(t),mapNodeValue:n});case"most-recent":return hv({name:r,maxSize:1,mapNodeValue:n})}throw fd(`Unrecognized eviction policy ${e}`)}(t,n,o,r)},Sv={startPerfBlock:function(e){return()=>null}};const{isLoadable:xv,loadableWithError:Cv,loadableWithPromise:Ev,loadableWithValue:kv}=jd,{WrappedValue:$v}=ov,{getNodeLoadable:Ov,peekNodeLoadable:Nv,setNodeValue:_v}=Gf,{saveDepsToStore:Iv}=Ef,{DEFAULT_VALUE:Rv,getConfigDeletionHandler:Mv,getNode:Pv,registerNode:Tv}=pf,{isRecoilValue:jv}=rf,{markRecoilValueModified:Av}=yp,{retainedByOptionWithDefault:zv}=Rp,{recoilCallback:Dv}=Xg,{startPerfBlock:Lv}=Sv;class Bv{}const Fv=new Bv,Hv=[],Wv=new Map,Vv=(()=>{let e=0;return()=>e++})();function Uv(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,i=null!=e.set?e.set:void 0,a=new Set,l=wv(null!=o?o:{equality:"reference",eviction:"keep-all"},n),c=zv(e.retainedBy_UNSTABLE),s=new Map;let u=0;function d(){return!Wd("recoil_memory_managament_2020")||u>0}function f(e){return e.getState().knownSelectors.add(n),u++,()=>{u--}}function p(){return void 0!==Mv(n)&&!d()}function m(e,t,n,r,o){O(t,r,o),h(e,n)}function h(e,t){$(e,t)&&k(e),g(t,!0)}function g(e,n){const r=Wv.get(e);if(null!=r){for(const e of r)Av(e,md(t));n&&Wv.delete(e)}}function v(e,t){let n=Wv.get(t);null==n&&Wv.set(t,n=new Set),n.add(e)}function b(e,t,n,r,o,i){return t.then((r=>{if(!d())throw k(e),Fv;null!=i.loadingDepKey&&i.loadingDepPromise===t?n.atomValues.set(i.loadingDepKey,kv(r)):e.getState().knownSelectors.forEach((e=>{n.atomValues.delete(e)}));const a=S(e,n);if(a&&"loading"!==a.state){if(($(e,o)||null==E(e))&&h(e,o),"hasValue"===a.state)return a.contents;throw a.contents}if(!$(e,o)){const t=C(e,n);if(null!=t)return t.loadingLoadable.contents}const[l,c]=w(e,n,o);if("loading"!==l.state&&m(e,n,o,l,c),"hasError"===l.state)throw l.contents;return l.contents})).catch((t=>{if(t instanceof Bv)throw Fv;if(!d())throw k(e),Fv;const i=Cv(t);throw m(e,n,o,i,r),t}))}function y(e,t,r,o){var i,l,c,s,u,d,f;($(e,o)||t.version===(null===(i=e.getState())||void 0===i||null===(l=i.currentTree)||void 0===l?void 0:l.version)||t.version===(null===(c=e.getState())||void 0===c||null===(s=c.nextTree)||void 0===s?void 0:s.version))&&Iv(n,r,e,null!==(u=null===(d=e.getState())||void 0===d||null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==u?u:e.getState().currentTree.version);for(const n of r)a.add(n)}function w(e,o,i){const a=Lv(n);let l=!0,c=!0;const s=()=>{a(),c=!1};let u,f,p=!1;const h={loadingDepKey:null,loadingDepPromise:null},v=new Map;function w({key:t}){const n=Ov(e,o,t);switch(v.set(t,n),l||(y(e,o,new Set(v.keys()),i),function(e,t){$(e,t)&&(md(E(e)).stateVersions.clear(),g(t,!1))}(e,i)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw h.loadingDepKey=t,h.loadingDepPromise=n.contents,n.contents}throw fd("Invalid Loadable state")}const S=n=>(...r)=>{if(c)throw fd("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return null==t&&jg(!1),Dv(e,n,r,{node:t})};try{u=r({get:w,getCallback:S}),u=jv(u)?w(u):u,xv(u)&&("hasError"===u.state&&(p=!0),u=u.contents),pd(u)?u=function(e,t,n,r,o,i){return t.then((t=>{if(!d())throw k(e),Fv;const i=kv(t);return m(e,n,o,i,r),t})).catch((t=>{if(!d())throw k(e),Fv;if(pd(t))return b(e,t,n,r,o,i);const a=Cv(t);throw m(e,n,o,a,r),t}))}(e,u,o,v,i,h).finally(s):s(),u=u instanceof $v?u.value:u}catch(x){u=x,pd(u)?u=b(e,u,o,v,i,h).finally(s):(p=!0,s())}return f=p?Cv(u):pd(u)?Ev(u):kv(u),l=!1,function(e,t,n){if($(e,t)){const t=E(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,i,v),y(e,o,new Set(v.keys()),i),[f,v]}function S(e,t){let r=t.atomValues.get(n);if(null!=r)return r;const o=new Set;try{r=l.get((n=>("string"!=typeof n&&jg(!1),Ov(e,t,n).contents)),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&o.add(e.nodeKey)}})}catch(a){throw fd(`Problem with cache lookup for selector "${n}": ${a.message}`)}var i;return r&&(t.atomValues.set(n,r),y(e,t,o,null===(i=E(e))||void 0===i?void 0:i.executionID)),r}function x(e,t){const n=S(e,t);if(null!=n)return k(e),n;const r=C(e,t);var o;if(null!=r)return"loading"===(null===(o=r.loadingLoadable)||void 0===o?void 0:o.state)&&v(e,r.executionID),r.loadingLoadable;const i=Vv(),[a,l]=w(e,t,i);return"loading"===a.state?(function(e,t,n,r,o){s.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:r,executionID:t,loadingLoadable:n,stateVersions:new Map([[o.version,!0]])})}(e,i,a,l,t),v(e,i)):(k(e),O(t,a,l)),a}function C(e,t){const n=Bp([s.has(e)?[md(s.get(e))]:[],of(zf(s,(([t])=>t!==e)),(([,e])=>e))]);function r(n){for(const[r,o]of n)if(!Ov(e,t,r).is(o))return!0;return!1}for(const o of n){if(o.stateVersions.get(t.version)||!r(o.depValuesDiscoveredSoFarDuringAsyncWork))return o.stateVersions.set(t.version,!0),o;o.stateVersions.set(t.version,!1)}}function E(e){return s.get(e)}function k(e){s.delete(e)}function $(e,t){var n;return t===(null===(n=E(e))||void 0===n?void 0:n.executionID)}function O(e,t,r){e.atomValues.set(n,t);try{l.set(function(e){return Array.from(e.entries()).map((([e,t])=>[e,t.contents]))}(r),t)}catch(o){throw fd(`Problem with setting cache for selector "${n}": ${o.message}`)}}function N(e,t){const r=t.atomValues.get(n);return null!=r?r:l.get((n=>{var r;return"string"!=typeof n&&jg(!1),null===(r=Nv(e,t,n))||void 0===r?void 0:r.contents}))}function _(e,t){return function(e){if(Hv.includes(n)){const e=`Recoil selector has circular dependencies: ${Hv.slice(Hv.indexOf(n)).join(" → ")}`;return Cv(fd(e))}Hv.push(n);try{return e()}finally{Hv.pop()}}((()=>x(e,t)))}function I(e){e.atomValues.delete(n)}function R(e,n){null==t&&jg(!1);for(const t of a){var r;const o=Pv(t);null===(r=o.clearCache)||void 0===r||r.call(o,e,n)}a.clear(),I(n),l.clear(),Av(e,t)}if(null!=i){const r=(e,t,r)=>{let o=!1;const a=new Map;function l({key:r}){if(o)throw fd("Recoil: Async selector sets are not currently supported.");const i=Ov(e,t,r);if("hasValue"===i.state)return i.contents;if("loading"===i.state)throw fd(`Getting value of asynchronous atom or selector "${r}" in a pending state while setting selector "${n}" is not yet supported.`);throw i.contents}function c(n,r){if(o)throw fd("Recoil: Async selector sets are not currently supported.");const i="function"==typeof r?r(l(n)):r;_v(e,t,n.key,i).forEach(((e,t)=>a.set(t,e)))}const s=i({set:c,get:l,reset:function(e){c(e,Rv)}},r);if(void 0!==s)throw pd(s)?fd("Recoil: Async selector sets are not currently supported."):fd("Recoil: selector set should be a void function.");return o=!0,a};return t=Tv({key:n,nodeType:"selector",peek:N,get:_,set:r,init:f,invalidate:I,clearCache:R,shouldDeleteConfigOnRelease:p,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}return t=Tv({key:n,nodeType:"selector",peek:N,get:_,init:f,invalidate:I,clearCache:R,shouldDeleteConfigOnRelease:p,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:c})}Uv.value=e=>new $v(e);var Kv=Uv;const{isLoadable:qv,loadableWithError:Xv,loadableWithPromise:Gv,loadableWithValue:Yv}=jd,{WrappedValue:Qv}=ov,{peekNodeInfo:Zv}=Gf,{DEFAULT_VALUE:Jv,DefaultValue:eb,getConfigDeletionHandler:tb,registerNode:nb,setConfigDeletionHandler:rb}=pf,{isRecoilValue:ob}=rf,{getRecoilValueAsLoadable:ib,markRecoilValueModified:ab,setRecoilValue:lb,setRecoilValueLoadable:cb}=yp,{retainedByOptionWithDefault:sb}=Rp,ub=e=>e instanceof Qv?e.value:e;function db(e){const{key:t,persistence_UNSTABLE:n}=e,r=sb(e.retainedBy_UNSTABLE);let o=0;function i(e){return Gv(e.then((e=>(l=Yv(e),e))).catch((e=>{throw l=Xv(e),e})))}let a,l=pd(e.default)?i(e.default):qv(e.default)?"loading"===e.default.state?i(e.default.contents):e.default:Yv(ub(e.default));l.contents;const c=new Map;function s(e,n){var r,o;return null!==(r=null!==(o=n.atomValues.get(t))&&void 0!==o?o:a)&&void 0!==r?r:l}const u=nb({key:t,nodeType:"atom",peek:s,get:function(e,r){if(r.atomValues.has(t))return md(r.atomValues.get(t));if(r.nonvalidatedAtoms.has(t)){if(null!=a)return a;if(null==n)return l;const e=r.nonvalidatedAtoms.get(t),o=n.validator(e,Jv),i=o instanceof eb?l:Yv(o);return a=i,a}return l},set:function(e,n,r){if(n.atomValues.has(t)){const e=md(n.atomValues.get(t));if("hasValue"===e.state&&r===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&r instanceof eb)return new Map;return a=void 0,(new Map).set(t,Yv(r))},init:function(n,r,i){var a;if(o++,n.getState().knownAtoms.add(t),"loading"===l.state){const h=()=>{var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||ab(n,u)};l.contents.finally(h)}const d=null!==(a=e.effects)&&void 0!==a?a:e.effects_UNSTABLE;if(null!=d){let g=Jv,v=!0,b=!1,y=null;function w(e){if(v&&e.key===t){const e=g;return e instanceof eb?s(0,r):pd(e)?Gv(e.then((e=>e instanceof eb?l.toPromise():e))):Yv(e)}return ib(n,e)}function S(e){return w(e).toPromise()}function x(e){var r;const o=Zv(n,null!==(r=n.getState().nextTree)&&void 0!==r?r:n.getState().currentTree,e.key);return!v||e.key!==t||g instanceof eb?o:{...o,isSet:!0,loadable:w(e)}}const C=e=>t=>{if(v){const n=w(u),r="hasValue"===n.state?n.contents:Jv;g="function"==typeof t?t(r):t,pd(g)&&(g=g.then((t=>(y={effect:e,value:t},t))))}else{if(pd(t))throw fd("Setting atoms to async values is not implemented.");"function"!=typeof t&&(y={effect:e,value:ub(t)}),lb(n,u,"function"==typeof t?n=>{const r=ub(t(n));return y={effect:e,value:r},r}:ub(t))}},E=e=>()=>C(e)(Jv),k=e=>r=>{var o;const{release:i}=n.subscribeToTransactions((n=>{var o;let{currentTree:i,previousTree:a}=n.getState();a||(a=i);const c=null!==(o=i.atomValues.get(t))&&void 0!==o?o:l;if("hasValue"===c.state){var s,u,d,f;const n=c.contents,o=null!==(s=a.atomValues.get(t))&&void 0!==s?s:l,p="hasValue"===o.state?o.contents:Jv;(null===(u=y)||void 0===u?void 0:u.effect)!==e||(null===(d=y)||void 0===d?void 0:d.value)!==n?r(n,p,!i.atomValues.has(t)):(null===(f=y)||void 0===f?void 0:f.effect)===e&&(y=null)}}),t);c.set(n,[...null!==(o=c.get(n))&&void 0!==o?o:[],i])};for(const $ of d)try{const O=$({node:u,storeID:n.storeID,parentStoreID_UNSTABLE:n.parentStoreID,trigger:i,setSelf:C($),resetSelf:E($),onSet:k($),getPromise:S,getLoadable:w,getInfo_UNSTABLE:x});var f;null!=O&&c.set(n,[...null!==(f=c.get(n))&&void 0!==f?f:[],O])}catch(m){g=m,b=!0}if(v=!1,!(g instanceof eb)){var p;const N=b?Xv(g):pd(g)?Gv(function(e,n){const r=n.then((n=>{var o,i;return(null===(i=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===i?void 0:i.contents)===r&&lb(e,u,n),n})).catch((n=>{var o,i;throw(null===(i=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===i?void 0:i.contents)===r&&cb(e,u,Xv(n)),n}));return r}(n,g)):Yv(ub(g));N.contents,r.atomValues.set(t,N),null===(p=n.getState().nextTree)||void 0===p||p.atomValues.set(t,N)}}return()=>{var e;o--,null===(e=c.get(n))||void 0===e||e.forEach((e=>e())),c.delete(n)}},invalidate:function(){a=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==tb(t)&&o<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return u}function fb(e){const{...t}=e,n="default"in e?e.default:new Promise((()=>{}));return ob(n)?function(e){const t=fb({...e,default:Jv,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof eb?t:md(e.persistence_UNSTABLE).validator(t,Jv)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Kv({key:`${e.key}__withFallback`,get:({get:n})=>{const r=n(t);return r instanceof eb?e.default:r},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return rb(n.key,tb(e.key)),n}({...t,default:n}):db({...t,default:n})}fb.value=e=>new Qv(e);var pb=fb,mb=class{constructor(e){var t;hd(this,"_map",void 0),hd(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null==e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}},hb=mb,gb=Object.freeze({__proto__:null,MapCache:hb});const{LRUCache:vb}=fv,{MapCache:bb}=gb,yb={equality:"reference",eviction:"none",maxSize:1/0};var wb=function({equality:e=yb.equality,eviction:t=yb.eviction,maxSize:n=yb.maxSize}=yb){const r=function(e){switch(e){case"reference":return e=>e;case"value":return e=>vv(e)}throw fd(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n){switch(e){case"keep-all":return new bb({mapKey:n});case"lru":return new vb({mapKey:n,maxSize:md(t)});case"most-recent":return new vb({mapKey:n,maxSize:1})}throw fd(`Unrecognized eviction policy ${e}`)}(t,n,r)};const{setConfigDeletionHandler:Sb}=pf;var xb=function(e){var t,n;const r=wb({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n,o;const i=r.get(t);if(null!=i)return i;const{cachePolicyForParams_UNSTABLE:a,...l}=e,c="default"in e?e.default:new Promise((()=>{})),s=pb({...l,key:`${e.key}__${null!==(n=vv(t))&&void 0!==n?n:"void"}`,default:"function"==typeof c?c(t):c,retainedBy_UNSTABLE:"function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects:"function"==typeof e.effects?e.effects(t):"function"==typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):null!==(o=e.effects)&&void 0!==o?o:e.effects_UNSTABLE});return r.set(t,s),Sb(s.key,(()=>{r.delete(t)})),s}};const{setConfigDeletionHandler:Cb}=pf;let Eb=0;var kb=function(e){var t,n;const r=wb({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n;let o;try{o=r.get(t)}catch(u){throw fd(`Problem with cache lookup for selector ${e.key}: ${u.message}`)}if(null!=o)return o;const i=`${e.key}__selectorFamily/${null!==(n=vv(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${Eb++}`,a=n=>e.get(t)(n),l=e.cachePolicy_UNSTABLE,c="function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;let s;if(null!=e.set){const n=e.set;s=Kv({key:i,get:a,set:(e,r)=>n(t)(e,r),cachePolicy_UNSTABLE:l,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c})}else s=Kv({key:i,get:a,cachePolicy_UNSTABLE:l,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c});return r.set(t,s),Cb(s.key,(()=>{r.delete(t)})),s}};const $b=kb({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Ob=function(e){return $b(e)};const Nb=kb({key:"__error",get:e=>()=>{throw fd(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var _b=function(e){return Nb(e)},Ib=function(e){return e};const{loadableWithError:Rb,loadableWithPromise:Mb,loadableWithValue:Pb}=jd;function Tb(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,i]of t.entries())try{n[o]=e(i)}catch(Ij){r[o]=Ij}return[n,r]}function jb(e){return null!=e&&!pd(e)}function Ab(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))}function zb(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce(((e,n,r)=>({...e,[n]:t[r]})),{})}function Db(e,t,n){return zb(e,n.map(((e,n)=>null==e?Pb(t[n]):pd(e)?Mb(e):Rb(e))))}const Lb=kb({key:"__waitForNone",get:e=>({get:t})=>{const n=Ab(e),[r,o]=Tb(t,n);return Db(e,r,o)},dangerouslyAllowMutability:!0}),Bb=kb({key:"__waitForAny",get:e=>({get:t})=>{const n=Ab(e),[r,o]=Tb(t,n);return o.some((e=>!pd(e)))?Db(e,r,o):new Promise((t=>{for(const[n,i]of o.entries())pd(i)&&i.then((i=>{r[n]=i,o[n]=void 0,t(Db(e,r,o))})).catch((i=>{o[n]=i,t(Db(e,r,o))}))}))},dangerouslyAllowMutability:!0}),Fb=kb({key:"__waitForAll",get:e=>({get:t})=>{const n=Ab(e),[r,o]=Tb(t,n);if(o.every((e=>null==e)))return zb(e,r);const i=o.find(jb);if(null!=i)throw i;return Promise.all(o).then((t=>{return zb(e,(n=r,t.map(((e,t)=>void 0===e?n[t]:e))));var n}))},dangerouslyAllowMutability:!0}),Hb=kb({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Ab(e),[r,o]=Tb(t,n);return o.every((e=>!pd(e)))?Db(e,r,o):Promise.all(o.map(((e,t)=>pd(e)?e.then((e=>{r[t]=e,o[t]=void 0})).catch((e=>{r[t]=void 0,o[t]=e})):null))).then((()=>Db(e,r,o)))},dangerouslyAllowMutability:!0}),Wb=kb({key:"__noWait",get:e=>({get:t})=>{try{return Kv.value(Pb(t(e)))}catch(n){return Kv.value(pd(n)?Mb(n):Rb(n))}},dangerouslyAllowMutability:!0});var Vb={waitForNone:Lb,waitForAny:Bb,waitForAll:Fb,waitForAllSettled:Hb,noWait:Wb};const{RecoilLoadable:Ub}=jd,{DefaultValue:Kb}=pf,{RecoilRoot:qb,useRecoilStoreID:Xb}=nh,{isRecoilValue:Gb}=rf,{retentionZone:Yb}=jf,{freshSnapshot:Qb}=ym,{useRecoilState:Zb,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Jb,useRecoilStateLoadable:ey,useRecoilValue:ty,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:ny,useRecoilValueLoadable:ry,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:oy,useResetRecoilState:iy,useSetRecoilState:ay}=Kh,{useGotoRecoilSnapshot:ly,useRecoilSnapshot:cy,useRecoilTransactionObserver:sy}=pg,{useRecoilCallback:uy}=Xg,{noWait:dy,waitForAll:fy,waitForAllSettled:py,waitForAny:my,waitForNone:hy}=Vb;var gy;
|
|
42
|
-
/**
|
|
43
|
-
* @remix-run/router v1.0.5
|
|
44
|
-
*
|
|
45
|
-
* Copyright (c) Remix Software Inc.
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the MIT license found in the
|
|
48
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
49
|
-
*
|
|
50
|
-
* @license MIT
|
|
51
|
-
*/
|
|
52
|
-
function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vy.apply(this,arguments)}e("b",{DefaultValue:Kb,isRecoilValue:Gb,RecoilLoadable:Ub,RecoilEnv:Dd,RecoilRoot:qb,useRecoilStoreID:Xb,useRecoilBridgeAcrossReactRoots_UNSTABLE:Sg,atom:pb,selector:Kv,atomFamily:xb,selectorFamily:kb,constSelector:Ob,errorSelector:_b,readOnlySelector:Ib,noWait:dy,waitForNone:hy,waitForAny:my,waitForAll:fy,waitForAllSettled:py,useRecoilValue:ty,useRecoilValueLoadable:ry,useRecoilState:Zb,useRecoilStateLoadable:ey,useSetRecoilState:ay,useResetRecoilState:iy,useGetRecoilValueInfo_UNSTABLE:gg,useRecoilRefresher_UNSTABLE:Zg,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:oy,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:ny,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Jb,useRecoilCallback:uy,useRecoilTransaction_UNSTABLE:nv,useGotoRecoilSnapshot:ly,useRecoilSnapshot:cy,useRecoilTransactionObserver_UNSTABLE:sy,snapshot_UNSTABLE:Qb,useRetain:mh,retentionZone:Yb}.RecoilRoot),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(gy||(gy={}));const by="popstate";function yy(e,t){if(!1===e||null==e)throw new Error(t)}function wy(e){return{usr:e.state,key:e.key}}function Sy(e,t,n,r){return void 0===n&&(n=null),vy({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?Cy(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function xy(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function Cy(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ey(e){let t="undefined"!=typeof window&&void 0!==window.location&&"null"!==window.location.origin?window.location.origin:window.location.href,n="string"==typeof e?e:xy(e);return yy(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}var ky;function $y(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach(((e,o)=>{let i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(yy(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let a=Hy([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(yy(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),$y(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:Ty(a,e.index),routesMeta:l})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ky||(ky={}));const Oy=/^:\w+$/,Ny=3,_y=2,Iy=1,Ry=10,My=-2,Py=e=>"*"===e;function Ty(e,t){let n=e.split("/"),r=n.length;return n.some(Py)&&(r+=My),t&&(r+=_y),n.filter((e=>!Py(e))).reduce(((e,t)=>e+(Oy.test(t)?Ny:""===t?Iy:Ry)),r)}function jy(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let e=n[a],l=a===n.length-1,c="/"===o?t:t.slice(o.length)||"/",s=Ay({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c);if(!s)return null;Object.assign(r,s.params);let u=e.route;i.push({params:r,pathname:Hy([o,s.pathname]),pathnameBase:Wy(Hy([o,s.pathnameBase])),route:u}),"/"!==s.pathnameBase&&(o=Hy([o,s.pathnameBase]))}return i}function Ay(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),Ly("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(r.push(t),"([^\\/]+)")));e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1),c=r.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return Ly(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{});return{params:c,pathname:i,pathnameBase:a,pattern:e}}function zy(e){try{return decodeURI(e)}catch(t){return Ly(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Dy(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Ly(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(Ij){}}}function By(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Fy(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=Cy(e):(o=vy({},e),yy(!o.pathname||!o.pathname.includes("?"),By("?","pathname","search",o)),yy(!o.pathname||!o.pathname.includes("#"),By("#","pathname","hash",o)),yy(!o.search||!o.search.includes("#"),By("#","search","hash",o)));let i,a=""===e||""===o.pathname,l=a?"/":o.pathname;if(r||null==l)i=n;else{let e=t.length-1;if(l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?Cy(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:Vy(r),hash:Uy(o)}}(o,i),s=l&&"/"!==l&&l.endsWith("/"),u=(a||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!s&&!u||(c.pathname+="/"),c}const Hy=e=>e.join("/").replace(/\/\/+/g,"/"),Wy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vy=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Uy=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class Ky{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}const qy=["post","put","patch","delete"];new Set(qy);const Xy=["get",...qy];
|
|
53
|
-
/**
|
|
54
|
-
* React Router v6.4.5
|
|
55
|
-
*
|
|
56
|
-
* Copyright (c) Remix Software Inc.
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the MIT license found in the
|
|
59
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
60
|
-
*
|
|
61
|
-
* @license MIT
|
|
62
|
-
*/
|
|
63
|
-
function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gy.apply(this,arguments)}new Set(Xy);"function"==typeof Object.is&&Object.is;const{useState:Yy,useEffect:Qy,useLayoutEffect:Zy,useDebugValue:Jy}=V;"undefined"==typeof window||void 0===window.document||window.document.createElement,"useSyncExternalStore"in V&&(e=>{e.useSyncExternalStore})(V);const ew=H.createContext(null),tw=H.createContext(null),nw=H.createContext(null),rw=H.createContext(null),ow=H.createContext(null),iw=H.createContext({outlet:null,matches:[]}),aw=H.createContext(null);function lw(){return null!=H.useContext(ow)}function cw(){return lw()||yy(!1),H.useContext(ow).location}function sw(){lw()||yy(!1);let{basename:e,navigator:t}=H.useContext(rw),{matches:n}=H.useContext(iw),{pathname:r}=cw(),o=JSON.stringify(function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(n).map((e=>e.pathnameBase))),i=H.useRef(!1);H.useEffect((()=>{i.current=!0}));let a=H.useCallback((function(n,a){if(void 0===a&&(a={}),!i.current)return;if("number"==typeof n)return void t.go(n);let l=Fy(n,JSON.parse(o),r,"path"===a.relative);"/"!==e&&(l.pathname="/"===l.pathname?e:Hy([e,l.pathname])),(a.replace?t.replace:t.push)(l,a.state,a)}),[e,t,o,r]);return a}const uw=H.createContext(null);function dw(){let e=function(){var e;let t=H.useContext(aw),n=function(e){let t=H.useContext(nw);return t||yy(!1),t}(hw.UseRouteError),r=H.useContext(iw),o=r.matches[r.matches.length-1];return t||(r||yy(!1),!o.route.id&&yy(!1),null==(e=n.errors)?void 0:e[o.route.id])}(),t=function(e){return e instanceof Ky}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return H.createElement(H.Fragment,null,H.createElement("h2",null,"Unhandled Thrown Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},t),n?H.createElement("pre",{style:o},n):null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:i},"errorElement")," props on ",H.createElement("code",{style:i},"<Route>")))}class fw extends H.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?H.createElement(aw.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function pw(e){let{routeContext:t,match:n,children:r}=e,o=H.useContext(ew);return o&&n.route.errorElement&&(o._deepestRenderedBoundaryId=n.route.id),H.createElement(iw.Provider,{value:t},r)}var mw,hw,gw,vw,bw,yw;function ww(e){yy(!1)}function Sw(e){let{basename:t="/",children:n=null,location:r,navigationType:o=gy.Pop,navigator:i,static:a=!1}=e;lw()&&yy(!1);let l=t.replace(/^\/*/,"/"),c=H.useMemo((()=>({basename:l,navigator:i,static:a})),[l,i,a]);"string"==typeof r&&(r=Cy(r));let{pathname:s="/",search:u="",hash:d="",state:f=null,key:p="default"}=r,m=H.useMemo((()=>{let e=Dy(s,l);return null==e?null:{pathname:e,search:u,hash:d,state:f,key:p}}),[l,s,u,d,f,p]);return null==m?null:H.createElement(rw.Provider,{value:c},H.createElement(ow.Provider,{children:n,value:{location:m,navigationType:o}}))}function xw(e,t){void 0===t&&(t=[]);let n=[];return H.Children.forEach(e,((e,r)=>{if(!H.isValidElement(e))return;if(e.type===H.Fragment)return void n.push.apply(n,xw(e.props.children,t));e.type!==ww&&yy(!1),e.props.index&&e.props.children&&yy(!1);let o=[...t,r],i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,hasErrorBoundary:null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle};e.props.children&&(i.children=xw(e.props.children,o)),n.push(i)})),n}!function(e){e.UseRevalidator="useRevalidator"}(mw||(mw={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(hw||(hw={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(gw||(gw={})),new Promise((()=>{})),function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"}(vw||(vw={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(bw||(bw={})),e("d",yw);var Cw=cd;e("d",yw=Cw.createRoot),Cw.hydrateRoot;const Ew=H.createContext({});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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kw.apply(null,arguments)}function $w(e){if(Array.isArray(e))return e}function Ow(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 Nw(e,t){if(e){if("string"==typeof e)return Ow(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)?Ow(e,t):void 0}}function _w(){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 Iw(e,t){return $w(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=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Nw(e,t)||_w()}function Rw(e){return Rw="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},Rw(e)}function Mw(e){var t=function(e,t){if("object"!=Rw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Rw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rw(t)?t:t+""}function Pw(e,t,n){return(t=Mw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tw(e,t){if(null==e)return{};var n,r,o=function(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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jw={exports:{}};
|
|
64
|
-
/*!
|
|
65
|
-
Copyright (c) 2018 Jed Watson.
|
|
66
|
-
Licensed under the MIT License (MIT), see
|
|
67
|
-
http://jedwatson.github.io/classnames
|
|
68
|
-
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(jw);const Aw=e("a7",r(jw.exports)),zw=Math.round;function Dw(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Lw=(e,t,n)=>0===n?e:e/100;function Bw(e,t){const n=t||255;return e>n?n:e<0?0:e}class Fw{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Pw(this,"isValid",!0),Pw(this,"r",0),Pw(this,"g",0),Pw(this,"b",0),Pw(this,"a",1),Pw(this,"_h",void 0),Pw(this,"_s",void 0),Pw(this,"_l",void 0),Pw(this,"_v",void 0),Pw(this,"_max",void 0),Pw(this,"_min",void 0),Pw(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Fw)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Bw(e.r),this.g=Bw(e.g),this.b=Bw(e.b),this.a="number"==typeof e.a?Bw(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)}}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:zw(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(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._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:zw(o("r")),g:zw(o("g")),b:zw(o("b")),a:zw(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=>zw((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=zw(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=zw(100*this.getSaturation()),n=zw(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),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]=Bw(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}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=zw(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=s):l>=1&&l<2?(o=s,i=c):l>=2&&l<3?(i=c,a=s):l>=3&&l<4?(i=s,a=c):l>=4&&l<5?(o=s,a=c):l>=5&&l<6&&(o=c,a=s);const u=n-c/2;this.r=zw(255*(o+u)),this.g=zw(255*(i+u)),this.b=zw(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=zw(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,c=zw(n*(1-t)*255),s=zw(n*(1-t*l)*255),u=zw(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=Dw(e,Lw);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Dw(e,Lw);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Dw(e,((e,t)=>t.includes("%")?zw(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Hw=2,Ww=.16,Vw=.05,Uw=.05,Kw=.15,qw=5,Xw=4,Gw=[{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 Yw(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Hw*t:Math.round(e.h)+Hw*t:n?Math.round(e.h)+Hw*t:Math.round(e.h)-Hw*t)<0?r+=360:r>=360&&(r-=360),r}function Qw(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Ww*t:t===Xw?e.s+Ww:e.s+Vw*t)>1&&(r=1),n&&t===qw&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Zw(e,t,n){var r;return r=n?e.v+Uw*t:e.v-Kw*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Jw(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new Fw(e),o=r.toHsv(),i=qw;i>0;i-=1){var a=new Fw({h:Yw(o,i,!0),s:Qw(o,i,!0),v:Zw(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=Xw;l+=1){var c=new Fw({h:Yw(o,l),s:Qw(o,l),v:Zw(o,l)});n.push(c)}return"dark"===t.theme?Gw.map((function(e){var r=e.index,o=e.amount;return new Fw(t.backgroundColor||"#141414").mix(n[r],o).toHexString()})):n.map((function(e){return e.toHexString()}))}var eS={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},tS=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];function nS(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 rS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nS(Object(n),!0).forEach((function(t){Pw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oS(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function iS(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}tS.primary=tS[5];var aS="data-rc-order",lS="data-rc-priority",cS="rc-util-key",sS=new Map;function uS(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):cS}function dS(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function fS(e){return Array.from((sS.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function pS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!oS())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(aS,a),l&&i&&c.setAttribute(lS,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=dS(t),u=s.firstChild;if(r){if(l){var d=(t.styles||fS(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(aS)))return!1;var t=Number(e.getAttribute(lS)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function mS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=dS(t);return(t.styles||fS(n)).find((function(n){return n.getAttribute(uS(t))===e}))}function hS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=mS(e,t);n&&dS(t).removeChild(n)}function gS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=dS(n),o=fS(r),i=rS(rS({},n),{},{styles:o});!function(e,t){var n=sS.get(e);if(!n||!iS(document,n)){var r=pS("",t),o=r.parentNode;sS.set(e,o),e.removeChild(r)}}(r,i);var a,l,c,s=mS(t,i);if(s)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&s.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce)&&(s.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;var u=pS(e,i);return u.setAttribute(uS(i),t),u}function vS(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function bS(e){return function(e){return vS(e)instanceof ShadowRoot}(e)?vS(e):null}var yS={};function wS(e,t){}function SS(e,t){}function xS(e,t,n){t||yS[n]||(e(!1,n),yS[n]=!0)}function CS(e,t){xS(wS,e,t)}function ES(e,t){xS(SS,e,t)}function kS(e){return"object"===Rw(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Rw(e.icon)||"function"==typeof e.icon)}function $S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),t}),{})}function OS(e,t,n){return n?W.createElement(e.tag,rS(rS({key:t},$S(e.attrs)),n),(e.children||[]).map((function(n,r){return OS(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):W.createElement(e.tag,rS({key:t},$S(e.attrs)),(e.children||[]).map((function(n,r){return OS(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function NS(e){return Jw(e)[0]}function _S(e){return e?Array.isArray(e)?e:[e]:[]}CS.preMessage=function(e){},CS.resetWarned=function(){yS={}},CS.noteOnce=ES;var IS=["icon","className","onClick","style","primaryColor","secondaryColor"],RS={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},MS=function(e){var t,n,r,o,i,a=e.icon,l=e.className,c=e.onClick,s=e.style,u=e.primaryColor,d=e.secondaryColor,f=Tw(e,IS),p=H.useRef(),m=RS;if(u&&(m={primaryColor:u,secondaryColor:d||NS(u)}),t=p,n=H.useContext(Ew),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-block;\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}\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::before,\n.anticon-spin {\n display: inline-block;\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",o&&(i=i.replace(/anticon/g,o)),H.useEffect((function(){var e=bS(t.current);gS(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),function(e,t){CS(e,"[@ant-design/icons] ".concat(t))}(kS(a),"icon should be icon definiton, but got ".concat(a)),!kS(a))return null;var h=a;return h&&"function"==typeof h.icon&&(h=rS(rS({},h),{},{icon:h.icon(m.primaryColor,m.secondaryColor)})),OS(h.icon,"svg-".concat(h.name),rS(rS({className:l,onClick:c,style:s,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};MS.displayName="IconReact",MS.getTwoToneColors=function(){return rS({},RS)},MS.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;RS.primaryColor=t,RS.secondaryColor=n||NS(t),RS.calculated=!!n};const PS=MS;function TS(e){var t=Iw(_S(e),2),n=t[0],r=t[1];return PS.setTwoToneColors({primaryColor:n,secondaryColor:r})}var jS=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];TS(tS.primary);var AS=H.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,s=Tw(e,jS),u=H.useContext(Ew),d=u.prefixCls,f=void 0===d?"anticon":d,p=u.rootClassName,m=Aw(p,f,Pw(Pw({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!o||"loading"===r.name),n),h=a;void 0===h&&l&&(h=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=Iw(_S(c),2),b=v[0],y=v[1];return H.createElement("span",kw({role:"img","aria-label":r.name},s,{ref:t,tabIndex:h,onClick:l,className:m}),H.createElement(PS,{icon:r,primaryColor:b,secondaryColor:y,style:g}))}));AS.displayName="AntdIcon",AS.getTwoToneColor=function(){var e=PS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},AS.setTwoToneColor=TS;const zS=AS,DS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var LS=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:DS}))};const BS=e("aa",H.forwardRef(LS)),FS={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"};var HS=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:FS}))};const WS=H.forwardRef(HS),VS={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"};var US=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:VS}))};const KS=H.forwardRef(US),qS={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"};var XS=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:qS}))};const GS=H.forwardRef(XS),YS={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"};var QS=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:YS}))};const ZS=H.forwardRef(QS),JS={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"};var ex=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:JS}))};const tx=H.forwardRef(ex),nx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var rx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:nx}))};const ox=H.forwardRef(rx),ix={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"};var ax=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:ix}))};const lx=H.forwardRef(ax),cx={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"};var sx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:cx}))};const ux=H.forwardRef(sx),dx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var fx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:dx}))};const px=e("x",H.forwardRef(fx)),mx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};var hx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:mx}))};e("D",H.forwardRef(hx));const gx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var vx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:gx}))};const bx=H.forwardRef(vx),yx={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"};var wx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:yx}))};const Sx=H.forwardRef(wx),xx={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"};var Cx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:xx}))};const Ex=H.forwardRef(Cx),kx={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"};var $x=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:kx}))};const Ox=e("g",H.forwardRef($x)),Nx={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"};var _x=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Nx}))};const Ix=H.forwardRef(_x),Rx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var Mx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Rx}))};e("E",H.forwardRef(Mx));const Px={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"};var Tx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Px}))};const jx=H.forwardRef(Tx),Ax={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"};var zx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Ax}))};const Dx=H.forwardRef(zx),Lx={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"};var Bx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Lx}))};const Fx=H.forwardRef(Bx),Hx={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"};var Wx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Hx}))};const Vx=H.forwardRef(Wx),Ux={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"};var Kx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Ux}))};const qx=H.forwardRef(Kx),Xx={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};var Gx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Xx}))};e("F",H.forwardRef(Gx));const Yx={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var Qx=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Yx}))};const Zx=H.forwardRef(Qx),Jx={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"};var eC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:Jx}))};const tC=H.forwardRef(eC),nC={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"};var rC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:nC}))};const oC=H.forwardRef(rC),iC={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"};var aC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:iC}))};const lC=H.forwardRef(aC),cC={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"};var sC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:cC}))};const uC=H.forwardRef(sC),dC={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"};var fC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:dC}))};const pC=H.forwardRef(fC),mC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"};var hC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:mC}))};e("X",H.forwardRef(hC));const gC={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"};var vC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:gC}))};const bC=H.forwardRef(vC),yC={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"};var wC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:yC}))};const SC=H.forwardRef(wC),xC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};var CC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:xC}))};e("a1",H.forwardRef(CC));const EC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};var kC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:EC}))};e("L",H.forwardRef(kC));const $C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};var OC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:$C}))};e("i",H.forwardRef(OC));const NC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};var _C=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:NC}))};e("h",H.forwardRef(_C));const IC={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"};var RC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:IC}))};const MC=H.forwardRef(RC),PC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var TC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:PC}))};const jC=H.forwardRef(TC),AC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"};var zC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:AC}))};e("P",H.forwardRef(zC));const DC={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var LC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:DC}))};const BC=H.forwardRef(LC),FC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var HC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:FC}))};const WC=e("W",H.forwardRef(HC)),VC={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"};var UC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:VC}))};const KC=H.forwardRef(UC),qC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"};var XC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:qC}))};e("Y",H.forwardRef(XC));const 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"};var YC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:GC}))};const QC=H.forwardRef(YC),ZC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var JC=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:ZC}))};e("H",H.forwardRef(JC));const eE={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"};var tE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:eE}))};const nE=H.forwardRef(tE),rE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var oE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:rE}))};const iE=H.forwardRef(oE),aE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};var lE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:aE}))};const cE=H.forwardRef(lE),sE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"};var uE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:sE}))};e("a2",H.forwardRef(uE));const dE={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"};var fE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:dE}))};const pE=e("G",H.forwardRef(fE)),mE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};var hE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:mE}))};const gE=H.forwardRef(hE),vE={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var bE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:vE}))};const yE=H.forwardRef(bE),wE={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"};var SE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:wE}))};const xE=H.forwardRef(SE),CE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};var EE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:CE}))};e("t",H.forwardRef(EE));const kE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};var $E=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:kE}))};e("U",H.forwardRef($E));const OE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var NE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:OE}))};const _E=H.forwardRef(NE),IE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var RE=function(e,t){return H.createElement(zS,kw({},e,{ref:t,icon:IE}))};const ME=H.forwardRef(RE);var PE,TE={exports:{}},jE={},AE=Symbol.for("react.element"),zE=Symbol.for("react.portal"),DE=Symbol.for("react.fragment"),LE=Symbol.for("react.strict_mode"),BE=Symbol.for("react.profiler"),FE=Symbol.for("react.provider"),HE=Symbol.for("react.context"),WE=Symbol.for("react.server_context"),VE=Symbol.for("react.forward_ref"),UE=Symbol.for("react.suspense"),KE=Symbol.for("react.suspense_list"),qE=Symbol.for("react.memo"),XE=Symbol.for("react.lazy"),GE=Symbol.for("react.offscreen");function YE(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case AE:switch(e=e.type){case DE:case BE:case LE:case UE:case KE:return e;default:switch(e=e&&e.$$typeof){case WE:case HE:case VE:case XE:case qE:case FE:return e;default:return t}}case zE:return t}}}PE=Symbol.for("react.module.reference"),jE.ContextConsumer=HE,jE.ContextProvider=FE,jE.Element=AE,jE.ForwardRef=VE,jE.Fragment=DE,jE.Lazy=XE,jE.Memo=qE,jE.Portal=zE,jE.Profiler=BE,jE.StrictMode=LE,jE.Suspense=UE,jE.SuspenseList=KE,jE.isAsyncMode=function(){return!1},jE.isConcurrentMode=function(){return!1},jE.isContextConsumer=function(e){return YE(e)===HE},jE.isContextProvider=function(e){return YE(e)===FE},jE.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===AE},jE.isForwardRef=function(e){return YE(e)===VE},jE.isFragment=function(e){return YE(e)===DE},jE.isLazy=function(e){return YE(e)===XE},jE.isMemo=function(e){return YE(e)===qE},jE.isPortal=function(e){return YE(e)===zE},jE.isProfiler=function(e){return YE(e)===BE},jE.isStrictMode=function(e){return YE(e)===LE},jE.isSuspense=function(e){return YE(e)===UE},jE.isSuspenseList=function(e){return YE(e)===KE},jE.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===DE||e===BE||e===LE||e===UE||e===KE||e===GE||"object"==typeof e&&null!==e&&(e.$$typeof===XE||e.$$typeof===qE||e.$$typeof===FE||e.$$typeof===HE||e.$$typeof===VE||e.$$typeof===PE||void 0!==e.getModuleId)},jE.typeOf=YE,TE.exports=jE;var QE=TE.exports;function ZE(e,t,n){var r=H.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var JE=Symbol.for("react.element"),ek=Symbol.for("react.transitional.element"),tk=Symbol.for("react.fragment");function nk(e){return e&&"object"===Rw(e)&&(e.$$typeof===JE||e.$$typeof===ek)&&e.type===tk}var rk=Number(H.version.split(".")[0]),ok=function(e,t){"function"==typeof e?e(t):"object"===Rw(e)&&e&&"current"in e&&(e.current=t)},ik=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){ok(t,e)}))}},ak=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ZE((function(){return ik.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},lk=function(e){var t,n;if(!e)return!1;if(ck(e)&&rk>=19)return!0;var r=QE.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===QE.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===QE.ForwardRef)};function ck(e){return H.isValidElement(e)&&!nk(e)}var sk=function(e){if(e&&ck(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},uk=TypeError;const dk=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var fk="function"==typeof Map&&Map.prototype,pk=Object.getOwnPropertyDescriptor&&fk?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mk=fk&&pk&&"function"==typeof pk.get?pk.get:null,hk=fk&&Map.prototype.forEach,gk="function"==typeof Set&&Set.prototype,vk=Object.getOwnPropertyDescriptor&&gk?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,bk=gk&&vk&&"function"==typeof vk.get?vk.get:null,yk=gk&&Set.prototype.forEach,wk="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Sk="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,xk="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Ck=Boolean.prototype.valueOf,Ek=Object.prototype.toString,kk=Function.prototype.toString,$k=String.prototype.match,Ok=String.prototype.slice,Nk=String.prototype.replace,_k=String.prototype.toUpperCase,Ik=String.prototype.toLowerCase,Rk=RegExp.prototype.test,Mk=Array.prototype.concat,Pk=Array.prototype.join,Tk=Array.prototype.slice,jk=Math.floor,Ak="function"==typeof BigInt?BigInt.prototype.valueOf:null,zk=Object.getOwnPropertySymbols,Dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Lk="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Bk="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,Fk=Object.prototype.propertyIsEnumerable,Hk=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Wk(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Rk.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-jk(-e):jk(e);if(r!==e){var o=String(r),i=Ok.call(t,o.length+1);return Nk.call(o,n,"$&_")+"."+Nk.call(Nk.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Nk.call(t,n,"$&_")}var Vk=dk,Uk=Vk.custom,Kk=t$(Uk)?Uk:null,qk={__proto__:null,double:'"',single:"'"},Xk={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Gk=function e(t,r,o,i){var a=r||{};if(r$(a,"quoteStyle")&&!r$(qk,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(r$(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!r$(a,"customInspect")||a.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(r$(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(r$(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return a$(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var s=String(t);return c?Wk(t,s):s}if("bigint"==typeof t){var u=String(t)+"n";return c?Wk(t,u):u}var d=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=d&&d>0&&"object"==typeof t)return Jk(t)?"[Array]":"[Object]";var f=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Pk.call(Array(e.indent+1)," ")}return{base:n,prev:Pk.call(Array(t+1),n)}}(a,o);if(void 0===i)i=[];else if(i$(i,t)>=0)return"[Circular]";function p(t,n,r){if(n&&(i=Tk.call(i)).push(n),r){var l={depth:a.depth};return r$(a,"quoteStyle")&&(l.quoteStyle=a.quoteStyle),e(t,l,o+1,i)}return e(t,a,o+1,i)}if("function"==typeof t&&!e$(t)){var m=function(e){if(e.name)return e.name;var t=$k.call(kk.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),h=f$(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(h.length>0?" { "+Pk.call(h,", ")+" }":"")}if(t$(t)){var g=Lk?Nk.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Dk.call(t);return"object"!=typeof t||Lk?g:c$(g)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var v="<"+Ik.call(String(t.nodeName)),b=t.attributes||[],y=0;y<b.length;y++)v+=" "+b[y].name+"="+Yk(Qk(b[y].value),"double",a);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+Ik.call(String(t.nodeName))+">"}if(Jk(t)){if(0===t.length)return"[]";var w=f$(t,p);return f&&!function(e){for(var t=0;t<e.length;t++)if(i$(e[t],"\n")>=0)return!1;return!0}(w)?"["+d$(w,f)+"]":"[ "+Pk.call(w,", ")+" ]"}if(function(e){return"[object Error]"===o$(e)&&Zk(e)}(t)){var S=f$(t,p);return"cause"in Error.prototype||!("cause"in t)||Fk.call(t,"cause")?0===S.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Pk.call(S,", ")+" }":"{ ["+String(t)+"] "+Pk.call(Mk.call("[cause]: "+p(t.cause),S),", ")+" }"}if("object"==typeof t&&l){if(Kk&&"function"==typeof t[Kk]&&Vk)return Vk(t,{depth:d-o});if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!mk||!e||"object"!=typeof e)return!1;try{mk.call(e);try{bk.call(e)}catch(v){return!0}return e instanceof Map}catch(Ij){}return!1}(t)){var x=[];return hk&&hk.call(t,(function(e,n){x.push(p(n,t,!0)+" => "+p(e,t))})),u$("Map",mk.call(t),x,f)}if(function(e){if(!bk||!e||"object"!=typeof e)return!1;try{bk.call(e);try{mk.call(e)}catch(UE){return!0}return e instanceof Set}catch(Ij){}return!1}(t)){var C=[];return yk&&yk.call(t,(function(e){C.push(p(e,t))})),u$("Set",bk.call(t),C,f)}if(function(e){if(!wk||!e||"object"!=typeof e)return!1;try{wk.call(e,wk);try{Sk.call(e,Sk)}catch(v){return!0}return e instanceof WeakMap}catch(Ij){}return!1}(t))return s$("WeakMap");if(function(e){if(!Sk||!e||"object"!=typeof e)return!1;try{Sk.call(e,Sk);try{wk.call(e,wk)}catch(v){return!0}return e instanceof WeakSet}catch(Ij){}return!1}(t))return s$("WeakSet");if(function(e){if(!xk||!e||"object"!=typeof e)return!1;try{return xk.call(e),!0}catch(Ij){}return!1}(t))return s$("WeakRef");if(function(e){return"[object Number]"===o$(e)&&Zk(e)}(t))return c$(p(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Ak)return!1;try{return Ak.call(e),!0}catch(Ij){}return!1}(t))return c$(p(Ak.call(t)));if(function(e){return"[object Boolean]"===o$(e)&&Zk(e)}(t))return c$(Ck.call(t));if(function(e){return"[object String]"===o$(e)&&Zk(e)}(t))return c$(p(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n&&t===n)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===o$(e)&&Zk(e)}(t)&&!e$(t)){var E=f$(t,p),k=Hk?Hk(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",O=!k&&Bk&&Object(t)===t&&Bk in t?Ok.call(o$(t),8,-1):$?"Object":"",N=(k||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(O||$?"["+Pk.call(Mk.call([],O||[],$||[]),": ")+"] ":"");return 0===E.length?N+"{}":f?N+"{"+d$(E,f)+"}":N+"{ "+Pk.call(E,", ")+" }"}return String(t)};function Yk(e,t,n){var r=n.quoteStyle||t,o=qk[r];return o+e+o}function Qk(e){return Nk.call(String(e),/"/g,""")}function Zk(e){return!Bk||!("object"==typeof e&&(Bk in e||void 0!==e[Bk]))}function Jk(e){return"[object Array]"===o$(e)&&Zk(e)}function e$(e){return"[object RegExp]"===o$(e)&&Zk(e)}function t$(e){if(Lk)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Dk)return!1;try{return Dk.call(e),!0}catch(Ij){}return!1}var n$=Object.prototype.hasOwnProperty||function(e){return e in this};function r$(e,t){return n$.call(e,t)}function o$(e){return Ek.call(e)}function i$(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function a$(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return a$(Ok.call(e,0,t.maxStringLength),t)+r}var o=Xk[t.quoteStyle||"single"];return o.lastIndex=0,Yk(Nk.call(Nk.call(e,o,"\\$1"),/[\x00-\x1f]/g,l$),"single",t)}function l$(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+_k.call(t.toString(16))}function c$(e){return"Object("+e+")"}function s$(e){return e+" { ? }"}function u$(e,t,n,r){return e+" ("+t+") {"+(r?d$(n,r):Pk.call(n,", "))+"}"}function d$(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Pk.call(e,","+n)+"\n"+t.prev}function f$(e,t){var n=Jk(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=r$(e,o)?t(e[o],e):""}var i,a="function"==typeof zk?zk(e):[];if(Lk){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var c in e)r$(e,c)&&(n&&String(Number(c))===c&&c<e.length||Lk&&i["$"+c]instanceof Symbol||(Rk.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof zk)for(var s=0;s<a.length;s++)Fk.call(e,a[s])&&r.push("["+t(a[s])+"]: "+t(e[a[s]],e));return r}var p$=Gk,m$=uk,h$=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r},g$=Object,v$=Error,b$=EvalError,y$=RangeError,w$=ReferenceError,S$=SyntaxError,x$=URIError,C$=Math.abs,E$=Math.floor,k$=Math.max,$$=Math.min,O$=Math.pow,N$=Math.round,_$=Number.isNaN||function(e){return e!=e},I$=_$,R$=Object.getOwnPropertyDescriptor;if(R$)try{R$([],"length")}catch(Ij){R$=null}var M$=R$,P$=Object.defineProperty||!1;if(P$)try{P$({},"a",{value:1})}catch(Ij){P$=!1}var T$,j$,A$,z$,D$,L$,B$,F$,H$=P$;function W$(){return L$?D$:(L$=1,D$="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function V$(){return F$?B$:(F$=1,B$=g$.getPrototypeOf||null)}var U$,K$,q$=Object.prototype.toString,X$=Math.max,G$=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},Y$=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==q$.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,r=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),o=X$(0,t.length-r.length),i=[],a=0;a<o;a++)i[a]="$"+a;if(n=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var o=t.apply(this,G$(r,arguments));return Object(o)===o?o:this}return t.apply(e,G$(r,arguments))})),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n},Q$=Function.prototype.bind||Y$,Z$=Function.prototype.call;function J$(){return K$?U$:(K$=1,U$=Function.prototype.apply)}var eO,tO,nO,rO,oO,iO,aO,lO="undefined"!=typeof Reflect&&Reflect&&Reflect.apply,cO=Q$,sO=J$(),uO=Z$,dO=lO||cO.call(uO,sO),fO=Q$,pO=uk,mO=Z$,hO=dO,gO=function(e){if(e.length<1||"function"!=typeof e[0])throw new pO("a function is required");return hO(fO,mO,e)},vO=g$,bO=v$,yO=b$,wO=y$,SO=w$,xO=S$,CO=uk,EO=x$,kO=C$,$O=E$,OO=k$,NO=$$,_O=O$,IO=N$,RO=function(e){return I$(e)||0===e?e:e<0?-1:1},MO=Function,PO=function(e){try{return MO('"use strict"; return ('+e+").constructor;")()}catch(Ij){}},TO=M$,jO=H$,AO=function(){throw new CO},zO=TO?function(){try{return AO}catch(e){try{return TO(arguments,"callee").get}catch(t){return AO}}}():AO,DO=function(){if(z$)return A$;z$=1;var e="undefined"!=typeof Symbol&&Symbol,t=j$?T$:(j$=1,T$=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return A$=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}()(),LO=function(){if(rO)return nO;rO=1;var e=W$(),t=V$(),n=function(){if(tO)return eO;tO=1;var e,t=gO,n=M$;try{e=[].__proto__===Array.prototype}catch(Ij){if(!Ij||"object"!=typeof Ij||!("code"in Ij)||"ERR_PROTO_ACCESS"!==Ij.code)throw Ij}var r=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return eO=r&&"function"==typeof r.get?t([r.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}();return nO=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null,nO}(),BO=V$(),FO=W$(),HO=J$(),WO=Z$,VO={},UO="undefined"!=typeof Uint8Array&&LO?LO(Uint8Array):aO,KO={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?aO:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?aO:ArrayBuffer,"%ArrayIteratorPrototype%":DO&&LO?LO([][Symbol.iterator]()):aO,"%AsyncFromSyncIteratorPrototype%":aO,"%AsyncFunction%":VO,"%AsyncGenerator%":VO,"%AsyncGeneratorFunction%":VO,"%AsyncIteratorPrototype%":VO,"%Atomics%":"undefined"==typeof Atomics?aO:Atomics,"%BigInt%":"undefined"==typeof BigInt?aO:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?aO:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?aO:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?aO:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":bO,"%eval%":eval,"%EvalError%":yO,"%Float16Array%":"undefined"==typeof Float16Array?aO:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?aO:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?aO:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?aO:FinalizationRegistry,"%Function%":MO,"%GeneratorFunction%":VO,"%Int8Array%":"undefined"==typeof Int8Array?aO:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?aO:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?aO:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":DO&&LO?LO(LO([][Symbol.iterator]())):aO,"%JSON%":"object"==typeof JSON?JSON:aO,"%Map%":"undefined"==typeof Map?aO:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&DO&&LO?LO((new Map)[Symbol.iterator]()):aO,"%Math%":Math,"%Number%":Number,"%Object%":vO,"%Object.getOwnPropertyDescriptor%":TO,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?aO:Promise,"%Proxy%":"undefined"==typeof Proxy?aO:Proxy,"%RangeError%":wO,"%ReferenceError%":SO,"%Reflect%":"undefined"==typeof Reflect?aO:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?aO:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&DO&&LO?LO((new Set)[Symbol.iterator]()):aO,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?aO:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":DO&&LO?LO(""[Symbol.iterator]()):aO,"%Symbol%":DO?Symbol:aO,"%SyntaxError%":xO,"%ThrowTypeError%":zO,"%TypedArray%":UO,"%TypeError%":CO,"%Uint8Array%":"undefined"==typeof Uint8Array?aO:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?aO:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?aO:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?aO:Uint32Array,"%URIError%":EO,"%WeakMap%":"undefined"==typeof WeakMap?aO:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?aO:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?aO:WeakSet,"%Function.prototype.call%":WO,"%Function.prototype.apply%":HO,"%Object.defineProperty%":jO,"%Object.getPrototypeOf%":BO,"%Math.abs%":kO,"%Math.floor%":$O,"%Math.max%":OO,"%Math.min%":NO,"%Math.pow%":_O,"%Math.round%":IO,"%Math.sign%":RO,"%Reflect.getPrototypeOf%":FO};if(LO)try{null.error}catch(Ij){var qO=LO(LO(Ij));KO["%Error.prototype%"]=qO}var XO=function e(t){var n;if("%AsyncFunction%"===t)n=PO("async function () {}");else if("%GeneratorFunction%"===t)n=PO("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=PO("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&LO&&(n=LO(o.prototype))}return KO[t]=n,n},GO={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},YO=Q$,QO=function(){if(iO)return oO;iO=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty;return oO=Q$.call(e,t)}(),ZO=YO.call(WO,Array.prototype.concat),JO=YO.call(HO,Array.prototype.splice),eN=YO.call(WO,String.prototype.replace),tN=YO.call(WO,String.prototype.slice),nN=YO.call(WO,RegExp.prototype.exec),rN=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oN=/\\(\\)?/g,iN=function(e,t){var n,r=e;if(QO(GO,r)&&(r="%"+(n=GO[r])[0]+"%"),QO(KO,r)){var o=KO[r];if(o===VO&&(o=XO(r)),void 0===o&&!t)throw new CO("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new xO("intrinsic "+e+" does not exist!")},aN=function(e,t){if("string"!=typeof e||0===e.length)throw new CO("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new CO('"allowMissing" argument must be a boolean');if(null===nN(/^%?[^%]*%?$/,e))throw new xO("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=tN(e,0,1),n=tN(e,-1);if("%"===t&&"%"!==n)throw new xO("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new xO("invalid intrinsic syntax, expected opening `%`");var r=[];return eN(e,rN,(function(e,t,n,o){r[r.length]=n?eN(o,oN,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=iN("%"+r+"%",t),i=o.name,a=o.value,l=!1,c=o.alias;c&&(r=c[0],JO(n,ZO([0,1],c)));for(var s=1,u=!0;s<n.length;s+=1){var d=n[s],f=tN(d,0,1),p=tN(d,-1);if(('"'===f||"'"===f||"`"===f||'"'===p||"'"===p||"`"===p)&&f!==p)throw new xO("property names with quotes must have matching quotes");if("constructor"!==d&&u||(l=!0),QO(KO,i="%"+(r+="."+d)+"%"))a=KO[i];else if(null!=a){if(!(d in a)){if(!t)throw new CO("base intrinsic for "+e+" exists, but the property is not available.");return}if(TO&&s+1>=n.length){var m=TO(a,d);a=(u=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[d]}else u=QO(a,d),a=a[d];u&&!l&&(KO[i]=a)}}return a},lN=aN,cN=gO,sN=cN([lN("%String.prototype.indexOf%")]),uN=function(e,t){var n=lN(e,!!t);return"function"==typeof n&&sN(e,".prototype.")>-1?cN([n]):n},dN=uN,fN=Gk,pN=uk,mN=aN("%Map%",!0),hN=dN("Map.prototype.get",!0),gN=dN("Map.prototype.set",!0),vN=dN("Map.prototype.has",!0),bN=dN("Map.prototype.delete",!0),yN=dN("Map.prototype.size",!0),wN=!!mN&&function(){var e,t={assert:function(e){if(!t.has(e))throw new pN("Side channel does not contain "+fN(e))},delete:function(t){if(e){var n=bN(e,t);return 0===yN(e)&&(e=void 0),n}return!1},get:function(t){if(e)return hN(e,t)},has:function(t){return!!e&&vN(e,t)},set:function(t,n){e||(e=new mN),gN(e,t,n)}};return t},SN=uN,xN=Gk,CN=wN,EN=uk,kN=aN("%WeakMap%",!0),$N=SN("WeakMap.prototype.get",!0),ON=SN("WeakMap.prototype.set",!0),NN=SN("WeakMap.prototype.has",!0),_N=SN("WeakMap.prototype.delete",!0),IN=uk,RN=Gk,MN=function(){var e,t={assert:function(e){if(!t.has(e))throw new m$("Side channel does not contain "+p$(e))},delete:function(t){var n=function(e,t){if(e)return h$(e,t,!0)}(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var n=h$(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!h$(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=h$(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t},PN=(kN?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new EN("Side channel does not contain "+xN(e))},delete:function(n){if(kN&&n&&("object"==typeof n||"function"==typeof n)){if(e)return _N(e,n)}else if(CN&&t)return t.delete(n);return!1},get:function(n){return kN&&n&&("object"==typeof n||"function"==typeof n)&&e?$N(e,n):t&&t.get(n)},has:function(n){return kN&&n&&("object"==typeof n||"function"==typeof n)&&e?NN(e,n):!!t&&t.has(n)},set:function(n,r){kN&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new kN),ON(e,n,r)):CN&&(t||(t=CN()),t.set(n,r))}};return n}:CN)||wN||MN,TN=String.prototype.replace,jN=/%20/g,AN="RFC3986",zN={default:AN,formatters:{RFC1738:function(e){return TN.call(e,jN,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:AN},DN=zN,LN=Object.prototype.hasOwnProperty,BN=Array.isArray,FN=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),HN=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},WN={arrayToObject:HN,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],a=Object.keys(i),l=0;l<a.length;++l){var c=a[l],s=i[c];"object"==typeof s&&null!==s&&-1===n.indexOf(s)&&(t.push({obj:i,prop:c}),n.push(s))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(BN(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(Ij){return r}},encode:function(e,t,n,r,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",l=0;l<i.length;++l){var c=i.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===DN.RFC1738&&(40===c||41===c)?a+=i.charAt(l):c<128?a+=FN[c]:c<2048?a+=FN[192|c>>6]+FN[128|63&c]:c<55296||c>=57344?a+=FN[224|c>>12]+FN[128|c>>6&63]+FN[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&i.charCodeAt(l)),a+=FN[240|c>>18]+FN[128|c>>12&63]+FN[128|c>>6&63]+FN[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(BN(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(BN(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!LN.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return BN(t)&&!BN(n)&&(o=HN(t,r)),BN(t)&&BN(n)?(n.forEach((function(n,o){if(LN.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var i=n[o];return LN.call(t,o)?t[o]=e(t[o],i,r):t[o]=i,t}),o)}},VN=function(){var e,t={assert:function(e){if(!t.has(e)){var n=e&&Object(e)===e?"the given object key":RN(e);throw new IN("Side channel does not contain "+n)}},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=PN()),e.set(t,n)}};return t},UN=WN,KN=zN,qN=Object.prototype.hasOwnProperty,XN={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},GN=Array.isArray,YN=String.prototype.split,QN=Array.prototype.push,ZN=function(e,t){QN.apply(e,GN(t)?t:[t])},JN=Date.prototype.toISOString,e_=KN.default,t_={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:UN.encode,encodeValuesOnly:!1,format:e_,formatter:KN.formatters[e_],indices:!1,serializeDate:function(e){return JN.call(e)},skipNulls:!1,strictNullHandling:!1},n_={},r_=function e(t,n,r,o,i,a,l,c,s,u,d,f,p,m,h,g){for(var v=t,b=g,y=0,w=!1;void 0!==(b=b.get(n_))&&!w;){var S=b.get(t);if(y+=1,void 0!==S){if(S===y)throw new RangeError("Cyclic object value");w=!0}void 0===b.get(n_)&&(y=0)}if("function"==typeof c?v=c(n,v):v instanceof Date?v=d(v):"comma"===r&&GN(v)&&(v=UN.maybeMap(v,(function(e){return e instanceof Date?d(e):e}))),null===v){if(i)return l&&!m?l(n,t_.encoder,h,"key",f):n;v=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(v)||UN.isBuffer(v)){if(l){var x=m?n:l(n,t_.encoder,h,"key",f);if("comma"===r&&m){for(var C=YN.call(String(v),","),E="",k=0;k<C.length;++k)E+=(0===k?"":",")+p(l(C[k],t_.encoder,h,"value",f));return[p(x)+(o&&GN(v)&&1===C.length?"[]":"")+"="+E]}return[p(x)+"="+p(l(v,t_.encoder,h,"value",f))]}return[p(n)+"="+p(String(v))]}var $,O=[];if(void 0===v)return O;if("comma"===r&&GN(v))$=[{value:v.length>0?v.join(",")||null:void 0}];else if(GN(c))$=c;else{var N=Object.keys(v);$=s?N.sort(s):N}for(var _=o&&GN(v)&&1===v.length?n+"[]":n,I=0;I<$.length;++I){var R=$[I],M="object"==typeof R&&void 0!==R.value?R.value:v[R];if(!a||null!==M){var P=GN(v)?"function"==typeof r?r(_,R):_:_+(u?"."+R:"["+R+"]");g.set(t,y);var T=VN();T.set(n_,g),ZN(O,e(M,P,r,o,i,a,l,c,s,u,d,f,p,m,h,T))}}return O},o_=WN,i_=Object.prototype.hasOwnProperty,a_=Array.isArray,l_={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o_.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c_=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s_=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u_=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=a?o.slice(0,a.index):o,c=[];if(l){if(!n.plainObjects&&i_.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var s=0;n.depth>0&&null!==(a=i.exec(o))&&s<n.depth;){if(s+=1,!n.plainObjects&&i_.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+o.slice(a.index)+"]"),function(e,t,n,r){for(var o=r?t:s_(t,n),i=e.length-1;i>=0;--i){var a,l=e[i];if("[]"===l&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,s=parseInt(c,10);n.parseArrays||""!==c?!isNaN(s)&&l!==c&&String(s)===c&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(a=[])[s]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(c,t,n,r)}},d_=function(e,t){var n,r=e,o=function(e){if(!e)return t_;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||t_.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=KN.default;if(void 0!==e.format){if(!qN.call(KN.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=KN.formatters[n],o=t_.filter;return("function"==typeof e.filter||GN(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:t_.addQueryPrefix,allowDots:void 0===e.allowDots?t_.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:t_.charsetSentinel,delimiter:void 0===e.delimiter?t_.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:t_.encode,encoder:"function"==typeof e.encoder?e.encoder:t_.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:t_.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:t_.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:t_.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:t_.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):GN(o.filter)&&(n=o.filter);var i,a=[];if("object"!=typeof r||null===r)return"";i=t&&t.arrayFormat in XN?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var l=XN[i];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c="comma"===l&&t&&t.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var s=VN(),u=0;u<n.length;++u){var d=n[u];o.skipNulls&&null===r[d]||ZN(a,r_(r[d],d,l,c,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,s))}var f=a.join(o.delimiter),p=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""},f_=function(e,t){var n=function(e){if(!e)return l_;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?l_.charset:e.charset;return{allowDots:void 0===e.allowDots?l_.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:l_.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:l_.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:l_.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l_.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:l_.comma,decoder:"function"==typeof e.decoder?e.decoder:l_.decoder,delimiter:"string"==typeof e.delimiter||o_.isRegExp(e.delimiter)?e.delimiter:l_.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:l_.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:l_.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:l_.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:l_.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l_.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),l=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?c="utf-8":"utf8=%26%2310003%3B"===a[n]&&(c="iso-8859-1"),l=n,n=a.length);for(n=0;n<a.length;++n)if(n!==l){var s,u,d=a[n],f=d.indexOf("]="),p=-1===f?d.indexOf("="):f+1;-1===p?(s=t.decoder(d,l_.decoder,c,"key"),u=t.strictNullHandling?null:""):(s=t.decoder(d.slice(0,p),l_.decoder,c,"key"),u=o_.maybeMap(s_(d.slice(p+1),t),(function(e){return t.decoder(e,l_.decoder,c,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===c&&(u=c_(u)),d.indexOf("[]=")>-1&&(u=a_(u)?[u]:u),i_.call(r,s)?r[s]=o_.combine(r[s],u):r[s]=u}return r}(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],c=u_(l,r[l],n,"string"==typeof e);o=o_.merge(o,c,n)}return!0===n.allowSparse?o:o_.compact(o)};e("Q",r({formats:zN,parse:f_,stringify:d_}));var p_={exports:{}};
|
|
69
|
-
/*!
|
|
70
|
-
Copyright (c) 2018 Jed Watson.
|
|
71
|
-
Licensed under the MIT License (MIT), see
|
|
72
|
-
http://jedwatson.github.io/classnames
|
|
73
|
-
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(p_);const m_=r(p_.exports);function h_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return W.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(h_(e)):nk(e)&&e.props?n=n.concat(h_(e.props.children,t)):n.push(e))})),n}function g_(e){return e instanceof HTMLElement||e instanceof SVGElement}function v_(e){var t,n=function(e){return e&&"object"===Rw(e)&&g_(e.nativeElement)?e.nativeElement:g_(e)?e:null}(e);return n||(e instanceof W.Component?null===(t=sd.findDOMNode)||void 0===t?void 0:t.call(sd,e):null)}var b_=H.createContext(null),y_=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),w_="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,S_="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),x_="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(S_):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},C_=["top","right","bottom","left","width","height","size","weight"],E_="undefined"!=typeof MutationObserver,k_=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){x_(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){w_&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),E_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){w_&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;C_.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$_=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},O_=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||S_},N_=T_(0,0,0,0);function __(e){return parseFloat(e)||0}function I_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+__(e["border-"+n+"-width"])}),0)}function R_(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return N_;var r=O_(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=__(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=__(r.width),c=__(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=I_(r,"left","right")+i),Math.round(c+a)!==n&&(c-=I_(r,"top","bottom")+a)),!function(e){return e===O_(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return T_(o.left,o.top,l,c)}var M_="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof O_(e).SVGGraphicsElement}:function(e){return e instanceof O_(e).SVGElement&&"function"==typeof e.getBBox};function P_(e){return w_?M_(e)?function(e){var t=e.getBBox();return T_(0,0,t.width,t.height)}(e):R_(e):N_}function T_(e,t,n,r){return{x:e,y:t,width:n,height:r}}var j_=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T_(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=P_(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),A_=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return $_(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);$_(this,{target:e,contentRect:n})},z_=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new y_,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof O_(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new j_(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof O_(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new A_(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),D_="undefined"!=typeof WeakMap?new WeakMap:new y_,L_=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=k_.getInstance(),r=new z_(t,n,this);D_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){L_.prototype[e]=function(){var t;return(t=D_.get(this))[e].apply(t,arguments)}}));var B_=void 0!==S_.ResizeObserver?S_.ResizeObserver:L_,F_=new Map,H_=new B_((function(e){e.forEach((function(e){var t,n=e.target;null===(t=F_.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function W_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V_(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,Mw(r.key),r)}}function U_(e,t,n){return t&&V_(e.prototype,t),n&&V_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function K_(e,t){return K_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K_(e,t)}function q_(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&&K_(e,t)}function X_(e){return X_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X_(e)}function G_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(G_=function(){return!!e})()}function Y_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q_(e,t){if(t&&("object"==Rw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y_(e)}function Z_(e){var t=G_();return function(){var n,r=X_(e);if(t){var o=X_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q_(this,n)}}var J_=function(e){q_(n,e);var t=Z_(n);function n(){return W_(this,n),t.apply(this,arguments)}return U_(n,[{key:"render",value:function(){return this.props.children}}]),n}(H.Component);function eI(e,t){var n=e.children,r=e.disabled,o=H.useRef(null),i=H.useRef(null),a=H.useContext(b_),l="function"==typeof n,c=l?n(o):n,s=H.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&H.isValidElement(c)&&lk(c),d=u?sk(c):null,f=ak(d,o),p=function(){var e;return v_(o.current)||(o.current&&"object"===Rw(o.current)?v_(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||v_(i.current)};H.useImperativeHandle(t,(function(){return p()}));var m=H.useRef(e);m.current=e;var h=H.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,c=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),f=Math.floor(l);if(s.current.width!==d||s.current.height!==f||s.current.offsetWidth!==c||s.current.offsetHeight!==u){var p={width:d,height:f,offsetWidth:c,offsetHeight:u};s.current=p;var h=c===Math.round(i)?i:c,g=u===Math.round(l)?l:u,v=rS(rS({},p),{},{offsetWidth:h,offsetHeight:g});null==a||a(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return H.useEffect((function(){var e,t,n=p();return n&&!r&&(e=n,t=h,F_.has(e)||(F_.set(e,new Set),H_.observe(e)),F_.get(e).add(t)),function(){return function(e,t){F_.has(e)&&(F_.get(e).delete(t),F_.get(e).size||(H_.unobserve(e),F_.delete(e)))}(n,h)}}),[o.current,r]),H.createElement(J_,{ref:i},u?H.cloneElement(c,{ref:f}):c)}var tI=H.forwardRef(eI);function nI(e,t){var n=e.children;return("function"==typeof n?[n]:h_(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return H.createElement(tI,kw({},e,{key:o,ref:0===r?t:void 0}),n)}))}var rI=H.forwardRef(nI);function oI(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function iI(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function aI(e){return function(e){if(Array.isArray(e))return Ow(e)}(e)||iI(e)||Nw(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.")}()}rI.Collection=function(e){var t=e.children,n=e.onBatchResize,r=H.useRef(0),o=H.useRef([]),i=H.useContext(b_),a=H.useCallback((function(e,t,a){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){l===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return H.createElement(b_.Provider,{value:a},t)};var lI=function(e){return+setTimeout(e,16)},cI=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(lI=function(e){return window.requestAnimationFrame(e)},cI=function(e){return window.cancelAnimationFrame(e)});var sI=0,uI=new Map;function dI(e){uI.delete(e)}var fI=function(e){var t=sI+=1;return function n(r){if(0===r)dI(t),e();else{var o=lI((function(){n(r-1)}));uI.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};function pI(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 mI(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(CS(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===Rw(t)&&"object"===Rw(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}fI.cancel=function(e){var t=uI.get(e);return dI(e),cI(t)};var hI="%";function gI(e){return e.join(hI)}var vI=function(){function e(t){W_(this,e),Pw(this,"instanceId",void 0),Pw(this,"cache",new Map),Pw(this,"extracted",new Set),this.instanceId=t}return U_(e,[{key:"get",value:function(e){return this.opGet(gI(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(gI(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),bI="data-token-hash",yI="data-css-hash",wI="__cssinjs_instance__",SI=H.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(yI,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[wI]=t[wI]||e,t[wI]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(yI,"]"))).forEach((function(t){var n,o=t.getAttribute(yI);r[o]?t[wI]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new vI(e)}(),defaultCache:!0}),xI=function(){function e(){W_(this,e),Pw(this,"cache",void 0),Pw(this,"keys",void 0),Pw(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return U_(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=Iw(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Iw(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,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?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Pw(xI,"MAX_CACHE_SIZE",20),Pw(xI,"MAX_CACHE_OFFSET",5);var CI=0,EI=function(){function e(t){W_(this,e),Pw(this,"derivatives",void 0),Pw(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=CI,0===t.length&&t.length,CI+=1}return U_(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),kI=new xI;function $I(e){var t=Array.isArray(e)?e:[e];return kI.has(t)||kI.set(t,new EI(t)),kI.get(t)}var OI=new WeakMap,NI={},_I=new WeakMap;function II(e){var t=_I.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof EI?t+=r.id:r&&"object"===Rw(r)?t+=II(r):t+=r})),t=pI(t),_I.set(e,t)),t}function RI(e,t){return pI("".concat(t,"_").concat(II(e)))}var MI=oS();function PI(e){return"number"==typeof e?"".concat(e,"px"):e}function TI(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=rS(rS({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},Pw(Pw({},bI,t),yI,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var jI=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(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()},AI=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Iw(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},zI=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=Iw(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=jI(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,AI(r,t,{scope:null==n?void 0:n.scope})]},DI=oS()?H.useLayoutEffect:H.useEffect,LI=function(e,t){var n=H.useRef(!0);DI((function(){return e(n.current)}),t),DI((function(){return n.current=!1,function(){n.current=!0}}),[])},BI=function(e,t){LI((function(t){if(!t)return e()}),t)},FI=rS({},V).useInsertionEffect,HI=FI?function(e,t,n){return FI((function(){return e(),t()}),n)}:function(e,t,n){H.useMemo(e,n),LI((function(){return t(!0)}),n)},WI=void 0!==rS({},V).useInsertionEffect?function(e){var t=[],n=!1;return H.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function VI(e,t,n,r,o){var i=H.useContext(SI).cache,a=gI([e].concat(aI(t))),l=WI([a]),c=function(e){i.opUpdate(a,(function(t){var r=Iw(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};H.useMemo((function(){c()}),[a]);var s=i.opGet(a)[1];return HI((function(){null==o||o(s)}),(function(e){return c((function(t){var n=Iw(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(s)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=Iw(t||[],2),o=n[0],c=void 0===o?0:o,s=n[1];return 0==c-1?(l((function(){!e&&i.opGet(a)||null==r||r(s,!1)})),null):[c-1,s]}))}}),[a]),s}var UI={},KI="css",qI=new Map,XI=0;function GI(e,t){qI.set(e,(qI.get(e)||0)-1);var n=new Set;qI.forEach((function(e,t){e<=0&&n.add(t)})),qI.size-n.size>XI&&n.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(bI,'="').concat(e,'"]')).forEach((function(e){var n;e[wI]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),qI.delete(e)}))}var YI=function(e,t,n,r){var o=rS(rS({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},QI="token";function ZI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=H.useContext(SI),o=r.cache.instanceId,i=r.container,a=n.salt,l=void 0===a?"":a,c=n.override,s=void 0===c?UI:c,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=function(e,t){for(var n=OI,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(NI)||n.set(NI,e()),n.get(NI)}((function(){return Object.assign.apply(Object,[{}].concat(aI(t)))}),t),m=II(p),h=II(s),g=f?II(f):"",v=VI(QI,[l,e.id,m,h,g],(function(){var t,n=d?d(p,s,e):YI(p,s,e,u),r=rS({},n),o="";if(f){var i=Iw(zI(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],o=i[1]}var a=RI(n,l);n._tokenKey=a,r._tokenKey=RI(r,l);var c=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=c,function(e){qI.set(e,(qI.get(e)||0)+1)}(c);var m="".concat(KI,"-").concat(pI(a));return n._hashId=m,[n,m,r,o,(null==f?void 0:f.key)||""]}),(function(e){GI(e[0]._themeKey,o)}),(function(e){var t=Iw(e,4),n=t[0],r=t[3];if(f&&r){var a=gS(r,pI("css-variables-".concat(n._themeKey)),{mark:yI,prepend:"queue",attachTo:i,priority:-999});a[wI]=o,a.setAttribute(bI,n._themeKey)}}));return v}var JI={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eR="comm",tR="rule",nR="decl",rR="@import",oR="@namespace",iR="@keyframes",aR="@layer",lR=Math.abs,cR=String.fromCharCode;function sR(e){return e.trim()}function uR(e,t,n){return e.replace(t,n)}function dR(e,t){return 0|e.charCodeAt(t)}function fR(e,t,n){return e.slice(t,n)}function pR(e){return e.length}function mR(e,t){return t.push(e),e}var hR=1,gR=1,vR=0,bR=0,yR=0,wR="";function SR(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:hR,column:gR,length:a,return:"",siblings:l}}function xR(){return yR=bR>0?dR(wR,--bR):0,gR--,10===yR&&(gR=1,hR--),yR}function CR(){return yR=bR<vR?dR(wR,bR++):0,gR++,10===yR&&(gR=1,hR++),yR}function ER(){return dR(wR,bR)}function kR(){return bR}function $R(e,t){return fR(wR,e,t)}function OR(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 NR(e){return sR($R(bR-1,RR(91===e?e+2:40===e?e+1:e)))}function _R(e){for(;(yR=ER())&&yR<33;)CR();return OR(e)>2||OR(yR)>3?"":" "}function IR(e,t){for(;--t&&CR()&&!(yR<48||yR>102||yR>57&&yR<65||yR>70&&yR<97););return $R(e,kR()+(t<6&&32==ER()&&32==CR()))}function RR(e){for(;CR();)switch(yR){case e:return bR;case 34:case 39:34!==e&&39!==e&&RR(yR);break;case 40:41===e&&RR(e);break;case 92:CR()}return bR}function MR(e,t){for(;CR()&&e+yR!==57&&(e+yR!==84||47!==ER()););return"/*"+$R(t,bR-1)+"*"+cR(47===e?e:CR())}function PR(e){for(;!OR(ER());)CR();return $R(e,bR)}function TR(e){return function(e){return wR="",e}(jR("",null,null,null,[""],e=function(e){return hR=gR=1,vR=pR(wR=e),bR=0,[]}(e),0,[0],e))}function jR(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y=0,w="",S=o,x=i,C=r,E=w;g;)switch(m=y,y=CR()){case 40:108!=m&&58==dR(E,d-1)?(b++,E+="("):E+=NR(y);break;case 41:b--,E+=")";break;case 34:case 39:case 91:E+=NR(y);break;case 9:case 10:case 13:case 32:if(b>0){E+=cR(y);break}E+=_R(m);break;case 92:E+=IR(kR()-1,7);continue;case 47:switch(ER()){case 42:case 47:mR(zR(MR(CR(),kR()),t,n,c),c),5!=OR(m||1)&&5!=OR(ER()||1)||!pR(E)||" "===fR(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*h:l[s++]=pR(E)*v;case 125*h:case 59:case 0:if(b>0&&y){E+=cR(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(E=uR(E,/\f/g,"")),p>0&&(pR(E)-d||0===h)&&mR(p>32?DR(E+";",r,n,d-1,c):DR(uR(E," ","")+";",r,n,d-2,c),c);break;case 59:E+=";";default:if(mR(C=AR(E,t,n,s,u,o,l,w,S=[],x=[],d,i),i),123===y)if(0===u)jR(E,t,C,C,S,i,d,l,x);else{switch(f){case 99:if(110===dR(E,3))break;case 108:if(97===dR(E,2))break;default:u=0;case 100:case 109:case 115:}u?jR(e,C,C,r&&mR(AR(e,C,C,0,0,o,l,w,o,S=[],d,x),x),o,x,d,l,r?S:x):jR(E,C,C,C,[""],x,0,l,x)}}s=u=p=0,h=v=1,w=E="",d=a;break;case 58:d=1+pR(E),p=m;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==xR())continue;switch(E+=cR(y),y*h){case 38:v=u>0?1:(E+="\f",-1);break;case 44:if(b>0)break;l[s++]=(pR(E)-1)*v,v=1;break;case 64:45===ER()&&(E+=NR(CR())),f=ER(),u=d=pR(w=E+=PR(kR())),y++;break;case 45:45===m&&2==pR(E)&&(h=0)}}return i}function AR(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),h=0,g=0,v=0;h<r;++h)for(var b=0,y=fR(e,f+1,f=lR(g=a[h])),w=e;b<m;++b)(w=sR(g>0?p[b]+" "+y:uR(y,/&\f/g,p[b])))&&(c[v++]=w);return SR(e,t,n,0===o?tR:l,c,s,u,d)}function zR(e,t,n,r){return SR(e,t,n,eR,cR(yR),fR(e,2,-2),0,r)}function DR(e,t,n,r,o){return SR(e,t,n,nR,fR(e,0,r),fR(e,r+1,-1),r,o)}function LR(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function BR(e,t,n,r){switch(e.type){case aR:if(e.children.length)break;case rR:case oR:case nR:return e.return=e.return||e.value;case eR:return"";case iR:return e.return=e.value+"{"+LR(e.children,r)+"}";case tR:if(!pR(e.value=e.props.join(",")))return""}return pR(n=LR(e.children,r))?e.return=e.value+"{"+n+"}":""}var FR,HR="data-ant-cssinjs-cache-path",WR="_FILE_STYLE__",VR=!0;function UR(e){return function(){if(!FR&&(FR={},oS())){var e=document.createElement("div");e.className=HR,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Iw(e.split(":"),2),n=t[0],r=t[1];FR[n]=r}));var n,r=document.querySelector("style[".concat(HR,"]"));r&&(VR=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!FR[e]}var KR="_multi_value_";function qR(e){return LR(TR(e),BR).replace(/\{%%%\:[^;];}/g,";")}function XR(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(aI(n.slice(1))).join(" ")}));return i.join(",")}var GR=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var s=n.hashPriority,u=n.transformers,d=void 0===u?[]:u;n.linters;var f="",p={};function m(t){var r=t.getName(l);if(!p[r]){var o=Iw(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return h.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var c=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==Rw(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Rw(e)&&e&&("_skip_check_"in e||KR in e)}(r)){var u;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;JI[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===Rw(r)&&null!=r&&r[KR]&&Array.isArray(d)?d.forEach((function(e){S(t,e)})):S(t,d)}else{var h=!1,g=t.trim(),v=!1;(o||i)&&l?g.startsWith("@")?h=!0:g=XR("&"===g?"":t,l,s):!o||l||"&"!==g&&""!==g||(g="",v=!0);var b=Iw(e(r,n,{root:v,injectHash:h,parentSelectors:[].concat(aI(a),[g])}),2),y=b[0],w=b[1];p=rS(rS({},p),w),f+="".concat(g).concat(y)}}))}})),o?c&&(f&&(f="@layer ".concat(c.name," {").concat(f,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function YR(e,t){return pI("".concat(e.join("%")).concat(t))}function QR(){return null}var ZR="style";function JR(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,s=void 0===c?0:c,u=H.useContext(SI),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,m=u.container,h=u.ssrInline,g=u.transformers,v=u.linters,b=u.cache,y=u.layer,w=n._tokenKey,S=[w];y&&S.push("layer"),S.push.apply(S,aI(r));var x=MI,C=VI(ZR,S,(function(){var e=S.join("|");if(UR(e)){var n=function(e){var t=FR[e],n=null;if(t&&oS())if(VR)n=WR;else{var r=document.querySelector("style[".concat(yI,'="').concat(FR[e],'"]'));r?n=r.innerHTML:delete FR[e]}return[n,t]}(e),a=Iw(n,2),c=a[0],u=a[1];if(c)return[c,w,u,{},l,s]}var d=t(),f=Iw(GR(d,{hashId:o,hashPriority:p,layer:y?i:void 0,path:r.join("-"),transformers:g,linters:v}),2),m=f[0],h=f[1],b=qR(m),x=YR(S,b);return[b,w,x,h,l,s]}),(function(e,t){var n=Iw(e,3)[2];(t||d)&&MI&&hS(n,{mark:yI,attachTo:m})}),(function(e){var t=Iw(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(x&&n!==WR){var i={mark:yI,prepend:!y&&"queue",attachTo:m,priority:s},l="function"==typeof a?a():a;l&&(i.csp={nonce:l});var c=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):u.push(e)})),c.forEach((function(e){gS(qR(o[e]),"_layer-".concat(e),rS(rS({},i),{},{prepend:!0}))}));var d=gS(n,r,i);d[wI]=b.instanceId,d.setAttribute(bI,w),u.forEach((function(e){gS(qR(o[e]),"_effect-".concat(e),i)}))}})),E=Iw(C,3),k=E[0],$=E[1],O=E[2];return function(e){var t;return t=h&&!x&&f?H.createElement("style",kw({},Pw(Pw({},bI,$),yI,O),{dangerouslySetInnerHTML:{__html:k}})):H.createElement(QR,null),H.createElement(H.Fragment,null,t,e)}}var eM="cssVar";Pw(Pw(Pw({},ZR,(function(e,t,n){var r=Iw(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=TI(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=TI(qR(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),QI,(function(e,t,n){var r=Iw(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,TI(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),eM,(function(e,t,n){var r=Iw(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;return o?[-999,i,TI(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null}));var tM=function(){function e(t,n){W_(this,e),Pw(this,"name",void 0),Pw(this,"style",void 0),Pw(this,"_keyframe",!0),this.name=t,this.style=n}return U_(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function nM(e){return e.notSplit=!0,e}function rM(e){return $w(e)||iI(e)||Nw(e)||_w()}function oM(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function iM(e,t,n,r){if(!t.length)return n;var o,i=rM(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?aI(e):rS({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=iM(o[a],l,n,r),o}function aM(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!oM(e,t.slice(0,-1))?e:iM(e,t,n,r)}function lM(e){return Array.isArray(e)?[]:{}}nM(["borderTop","borderBottom"]),nM(["borderTop"]),nM(["borderBottom"]),nM(["borderLeft","borderRight"]),nM(["borderLeft"]),nM(["borderRight"]);var cM="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function sM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=lM(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=oM(e,n),c=Array.isArray(l);if(c||"object"===Rw(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=oM(r,n);c?r=aM(r,n,[]):s&&"object"===Rw(s)||(r=aM(r,n,lM(l))),cM(l).forEach((function(e){t([].concat(aI(n),[e]),a)}))}}else r=aM(r,n,l)}([])})),r}function uM(){}const dM=H.createContext({}),fM=()=>{const e=()=>{};return e.deprecated=uM,e},pM=H.createContext(void 0);var mM={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"};const hM={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},gM={lang:Object.assign({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"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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:Object.assign({},hM)},vM="${label} is not a valid ${type}",bM={locale:"en",Pagination:mM,DatePicker:gM,TimePicker:hM,Calendar:gM,global:{placeholder:"Please select"},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",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"},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:vM,method:vM,array:vM,object:vM,number:vM,date:vM,boolean:vM,integer:vM,float:vM,regexp:vM,email:vM,url:vM,hex:vM},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let yM=Object.assign({},bM.Modal),wM=[];const SM=()=>wM.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),bM.Modal);function xM(){return yM}const CM=H.createContext(void 0),EM=(e,t)=>{const n=H.useContext(CM),r=H.useMemo((()=>{var r;const o=t||bM[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]);return[r,H.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?bM.locale:e}),[n])]},kM=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;H.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return wM.push(t),yM=SM(),()=>{wM=wM.filter((e=>e!==t)),yM=SM()}}yM=Object.assign({},bM.Modal)}(t&&t.Modal);return e}),[t]);const o=H.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return H.createElement(CM.Provider,{value:o},n)},$M=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},OM={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"},NM=Object.assign(Object.assign({},OM),{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});function _M(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function IM(e){return Math.min(1,Math.max(0,e))}function RM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function MM(e){return e<=1?"".concat(100*Number(e),"%"):e}function PM(e){return 1===e.length?"0"+e:String(e)}function TM(e,t,n){e=_M(e,255),t=_M(t,255),n=_M(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function jM(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AM(e,t,n){e=_M(e,255),t=_M(t,255),n=_M(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function zM(e,t,n,r){var o=[PM(Math.round(e).toString(16)),PM(Math.round(t).toString(16)),PM(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function DM(e){return Math.round(255*parseFloat(e)).toString(16)}function LM(e){return BM(e)/255}function BM(e){return parseInt(e,16)}var FM={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function HM(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(FM[e])e=FM[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=KM.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=KM.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=KM.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=KM.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=KM.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=KM.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=KM.hex8.exec(e))?{r:BM(n[1]),g:BM(n[2]),b:BM(n[3]),a:LM(n[4]),format:t?"name":"hex8"}:(n=KM.hex6.exec(e))?{r:BM(n[1]),g:BM(n[2]),b:BM(n[3]),format:t?"name":"hex"}:(n=KM.hex4.exec(e))?{r:BM(n[1]+n[1]),g:BM(n[2]+n[2]),b:BM(n[3]+n[3]),a:LM(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=KM.hex3.exec(e))&&{r:BM(n[1]+n[1]),g:BM(n[2]+n[2]),b:BM(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(qM(e.r)&&qM(e.g)&&qM(e.b)?(t=function(e,t,n){return{r:255*_M(e,255),g:255*_M(t,255),b:255*_M(n,255)}}(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):qM(e.h)&&qM(e.s)&&qM(e.v)?(r=MM(e.s),o=MM(e.v),t=function(e,t,n){e=6*_M(e,360),t=_M(t,100),n=_M(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,r,o),a=!0,l="hsv"):qM(e.h)&&qM(e.s)&&qM(e.l)&&(r=MM(e.s),i=MM(e.l),t=function(e,t,n){var r,o,i;if(e=_M(e,360),t=_M(t,100),n=_M(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=jM(l,a,e+1/3),o=jM(l,a,e),i=jM(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=RM(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var WM="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),VM="[\\s|\\(]+(".concat(WM,")[,|\\s]+(").concat(WM,")[,|\\s]+(").concat(WM,")\\s*\\)?"),UM="[\\s|\\(]+(".concat(WM,")[,|\\s]+(").concat(WM,")[,|\\s]+(").concat(WM,")[,|\\s]+(").concat(WM,")\\s*\\)?"),KM={CSS_UNIT:new RegExp(WM),rgb:new RegExp("rgb"+VM),rgba:new RegExp("rgba"+UM),hsl:new RegExp("hsl"+VM),hsla:new RegExp("hsla"+UM),hsv:new RegExp("hsv"+VM),hsva:new RegExp("hsva"+UM),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function qM(e){return Boolean(KM.CSS_UNIT.exec(String(e)))}var XM=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=HM(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=RM(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=AM(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=AM(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=TM(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=TM(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),zM(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i=[PM(Math.round(e).toString(16)),PM(Math.round(t).toString(16)),PM(Math.round(n).toString(16)),PM(DM(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*_M(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*_M(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+zM(this.r,this.g,this.b,!1),t=0,n=Object.entries(FM);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=IM(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=IM(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=IM(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=IM(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const GM=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}},YM=(e,t)=>new XM(e).setAlpha(t).toRgbString(),QM=(e,t)=>new XM(e).darken(t).toHexString(),ZM=e=>{const t=Jw(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]}},JM=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:YM(r,.88),colorTextSecondary:YM(r,.65),colorTextTertiary:YM(r,.45),colorTextQuaternary:YM(r,.25),colorFill:YM(r,.15),colorFillSecondary:YM(r,.06),colorFillTertiary:YM(r,.04),colorFillQuaternary:YM(r,.02),colorBgLayout:QM(n,4),colorBgContainer:QM(n,0),colorBgElevated:QM(n,0),colorBgSpotlight:YM(r,.85),colorBgBlur:"transparent",colorBorder:QM(n,15),colorBorderSecondary:QM(n,6)}};function eP(e){return(e+8)/e}const tP=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,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:eP(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],c=r[0],s=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:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},nP=$I((function(e){const t=Object.keys(OM).map((t=>{const n=Jw(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),f=n(o),p=n(i),m=n(a),h=n(l),g=r(s,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new XM("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:ZM,generateNeutralColorPalettes:JM})),tP(e.fontSize)),function(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)}}(e)),$M(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},GM(r))}(e))})),rP={token:NM,override:{override:NM},hashed:!0},oP=W.createContext(rP),iP="anticon",aP=H.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:iP}),lP=`-ant-${Date.now()}-${Math.random()}`;function cP(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new XM(e),i=Jw(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new XM(t.primaryColor),i=Jw(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new XM(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);oS()&&gS(n,`${lP}-dynamic-theme`)}const sP=H.createContext(!1),uP=e=>{let{children:t,disabled:n}=e;const r=H.useContext(sP);return H.createElement(sP.Provider,{value:null!=n?n:r},t)},dP=sP,fP=H.createContext(void 0),pP=e=>{let{children:t,size:n}=e;const r=H.useContext(fP);return H.createElement(fP.Provider,{value:n||r},t)},mP=fP,hP=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],gP="5.14.2";function vP(e){return e>=0&&e<=255}function bP(e,t){const{r:n,g:r,b:o,a:i}=new XM(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new XM(t).toRgb();for(let s=.01;s<=1;s+=.01){const e=Math.round((n-a*(1-s))/s),t=Math.round((r-l*(1-s))/s),i=Math.round((o-c*(1-s))/s);if(vP(e)&&vP(t)&&vP(i))return new XM({r:e,g:t,b:i,a:Math.round(100*s)/100}).toRgbString()}return new XM({r:n,g:r,b:o,a:1}).toRgbString()}var yP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function wP(e){const{override:t}=e,n=yP(e,["override"]),r=Object.assign({},t);Object.keys(NM).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:bP(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:bP(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:bP(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*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:bP(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 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.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:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new XM("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new XM("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new XM("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var SP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xP={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},CP={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},EP={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},kP=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=SP(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=wP(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=SP(n,["theme"]);let i=o;r&&(i=kP(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function $P(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=W.useContext(oP),i=`${gP}-${t||""}`,a=n||nP,[l,c,s]=ZI(a,[NM,e],{salt:i,override:r,getComputedToken:kP,formatToken:wP,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:xP,ignore:CP,preserve:EP}});return[a,s,t?c:"",l,o]}function OP(e){var t=H.useRef();t.current=e;var n=H.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function NP(e){var t=H.useRef(!1),n=Iw(H.useState(e),2),r=n[0],o=n[1];return H.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function _P(e){return void 0!==e}function IP(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Iw(NP((function(){return _P(o)?o:_P(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,d=a?a(u):u,f=OP(i),p=Iw(NP([u]),2),m=p[0],h=p[1];return BI((function(){var e=m[0];c!==e&&f(c,e)}),[m]),BI((function(){_P(o)||s(o)}),[o]),[d,OP((function(e,t){s(e,t),h([u],t)}))]}const RP=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),MP={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},PP=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},TP=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),jP=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:i]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},AP=e=>({outline:`${PI(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zP=e=>({"&:focus-visible":Object.assign({},AP(e))}),DP=U_((function e(){W_(this,e)}));let LP=function(e){function t(e){var n;return W_(this,t),n=function(e,t,n){return t=X_(t),Q_(e,G_()?Reflect.construct(t,n||[],X_(e).constructor):t.apply(e,n))}(this,t),n.result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return q_(t,e),U_(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(DP);const BP="CALC_UNIT";function FP(e){return"number"==typeof e?`${e}${BP}`:e}let HP=function(e){function t(e){var n;return W_(this,t),n=function(e,t,n){return t=X_(t),Q_(e,G_()?Reflect.construct(t,n||[],X_(e).constructor):t.apply(e,n))}(this,t),n.result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=FP(e):"string"==typeof e&&(n.result=e),n}return q_(t,e),U_(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${FP(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${FP(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp(`${BP}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}]),t}(DP);const WP=e=>{const t="css"===e?HP:LP;return e=>new t(e)},VP="undefined"!=typeof CSSINJS_STATISTIC;let UP=!0;function KP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!VP)return Object.assign.apply(Object,[{}].concat(t));UP=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),UP=!0,r}const qP={};function XP(){}const GP=(e,t)=>{const[n,r]=$P();return JR({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}})}]))},YP=(e,t,n)=>{var r;return"function"==typeof n?n(KP(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},QP=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function ZP(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[l,c,s,u,d]=$P(),{getPrefixCls:f,iconPrefixCls:p,csp:m}=H.useContext(aP),h=f(),g=d?"css":"js",v=WP(g),{max:b,min:y}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>PI(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>PI(e))).join(",")})`}}}(g),w={theme:l,token:u,hashId:s,nonce:()=>null==m?void 0:m.nonce,clientOnly:r.clientOnly,order:r.order||-999};JR(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",h]}),(()=>[{"&":TP(u)}])),GP(p,m);const S=JR(Object.assign(Object.assign({},w),{path:[a,e,p]}),(()=>{if(!1===r.injectStyle)return[];const{token:a,flush:l}=(e=>{let t,n=e,r=XP;return VP&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(UP&&t.add(n),e[n])}),r=(e,n)=>{var r;qP[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=qP[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(u),f=YP(i,c,n),m=`.${e}`,g=QP(i,c,f,{deprecatedTokens:r.deprecatedTokens});d&&Object.keys(f).forEach((e=>{f[e]=`var(${jI(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(i,d.prefix))})`}));const w=KP(a,{componentCls:m,prefixCls:e,iconCls:`.${p}`,antCls:`.${h}`,calc:v,max:b,min:y},d?f:g),S=t(w,{hashId:s,prefixCls:e,rootPrefixCls:h,iconPrefixCls:p});return l(i,g),[!1===r.resetStyle?null:jP(w,e,o),S]}));return[S,s]}}const JP=(e,t,n,r)=>{const o=ZP(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},eT=(e,t,n)=>{function r(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=null!=n?n:{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach((e=>{a[r(e)]=o[e]}));const l=o=>{let{rootCls:i,cssVar:l}=o;const[,c]=$P();return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,l=e.scope,c=void 0===l?"":l,s=H.useContext(SI),u=s.cache.instanceId,d=s.container,f=a._tokenKey,p=[].concat(aI(e.path),[n,c,f]);VI(eM,p,(function(){var e=t(),a=Iw(zI(e,n,{prefix:r,unitless:o,ignore:i,scope:c}),2),l=a[0],s=a[1];return[l,s,YR(p,s),n]}),(function(e){var t=Iw(e,3)[2];MI&&hS(t,{mark:yI,attachTo:d})}),(function(e){var t=Iw(e,3),r=t[1],o=t[2];if(r){var i=gS(r,o,{mark:yI,prepend:"queue",attachTo:d,priority:-999});i[wI]=u,i.setAttribute(bI,n)}}))}({path:[e],prefix:l.prefix,key:null==l?void 0:l.key,unitless:Object.assign(Object.assign({},xP),a),ignore:CP,token:c,scope:i},(()=>{const o=YP(e,c,t),i=QP(e,c,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((e=>{i[r(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=$P();return[r=>i&&n?W.createElement(W.Fragment,null,W.createElement(l,{rootCls:t,cssVar:n,component:e}),r):r,null==n?void 0:n.key]}},tT=(e,t,n,r)=>{const o=ZP(e,t,n,r),i=eT(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=o(e,t),[r,a]=i(t);return[r,n,a]}};function nT(e,t){return hP.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const rT=Object.assign({},V),{useId:oT}=rT,iT=void 0===oT?()=>"":oT;var aT=["children"],lT=H.createContext({});function cT(e){var t=e.children,n=Tw(e,aT);return H.createElement(lT.Provider,{value:n},t)}var sT=function(e){q_(n,e);var t=Z_(n);function n(){return W_(this,n),t.apply(this,arguments)}return U_(n,[{key:"render",value:function(){return this.props.children}}]),n}(H.Component),uT="none",dT="appear",fT="enter",pT="leave",mT="none",hT="prepare",gT="start",vT="active",bT="end",yT="prepared";function wT(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var ST,xT,CT,ET=(ST=oS(),xT="undefined"!=typeof window?window:{},CT={animationend:wT("Animation","AnimationEnd"),transitionend:wT("Transition","TransitionEnd")},ST&&("AnimationEvent"in xT||delete CT.animationend.animation,"TransitionEvent"in xT||delete CT.transitionend.transition),CT),kT={};if(oS()){var $T=document.createElement("div");kT=$T.style}var OT={};function NT(e){if(OT[e])return OT[e];var t=ET[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in kT)return OT[e]=t[i],OT[e]}return""}var _T=NT("animationend"),IT=NT("transitionend"),RT=!(!_T||!IT),MT=_T||"animationend",PT=IT||"transitionend";function TT(e,t){if(!e)return null;if("object"===Rw(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const jT=function(e){var t=H.useRef();function n(t){t&&(t.removeEventListener(PT,e),t.removeEventListener(MT,e))}return H.useEffect((function(){return function(){n(t.current)}}),[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(PT,e),r.addEventListener(MT,e),t.current=r)},n]};var AT=oS()?H.useLayoutEffect:H.useEffect,zT=[hT,gT,vT,bT],DT=[hT,yT],LT=!1,BT=!0;function FT(e){return e===vT||e===bT}const HT=function(e,t,n){var r=Iw(NP(mT),2),o=r[0],i=r[1],a=function(){var e=H.useRef(null);function t(){fI.cancel(e.current)}return H.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=fI((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=Iw(a,2),c=l[0],s=l[1],u=t?DT:zT;return AT((function(){if(o!==mT&&o!==bT){var e=u.indexOf(o),t=u[e+1],r=n(o);r===LT?i(t,!0):t&&c((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),H.useEffect((function(){return function(){s()}}),[]),[function(){i(hT,!0)},o]};function WT(e,t,n,r){var o,i,a,l,c=r.motionEnter,s=void 0===c||c,u=r.motionAppear,d=void 0===u||u,f=r.motionLeave,p=void 0===f||f,m=r.motionDeadline,h=r.motionLeaveImmediately,g=r.onAppearPrepare,v=r.onEnterPrepare,b=r.onLeavePrepare,y=r.onAppearStart,w=r.onEnterStart,S=r.onLeaveStart,x=r.onAppearActive,C=r.onEnterActive,E=r.onLeaveActive,k=r.onAppearEnd,$=r.onEnterEnd,O=r.onLeaveEnd,N=r.onVisibleChanged,_=Iw(NP(),2),I=_[0],R=_[1],M=(o=uT,i=H.useReducer((function(e){return e+1}),0),a=Iw(i,2)[1],l=H.useRef(o),[OP((function(){return l.current})),OP((function(e){l.current="function"==typeof e?e(l.current):e,a()}))]),P=Iw(M,2),T=P[0],j=P[1],A=Iw(NP(null),2),z=A[0],D=A[1],L=T(),B=H.useRef(!1),F=H.useRef(null);function W(){return n()}var V=H.useRef(!1);function U(){j(uT),D(null,!0)}var K=OP((function(e){var t=T();if(t!==uT){var n=W();if(!e||e.deadline||e.target===n){var r,o=V.current;t===dT&&o?r=null==k?void 0:k(n,e):t===fT&&o?r=null==$?void 0:$(n,e):t===pT&&o&&(r=null==O?void 0:O(n,e)),o&&!1!==r&&U()}}})),q=Iw(jT(K),1)[0],X=function(e){switch(e){case dT:return Pw(Pw(Pw({},hT,g),gT,y),vT,x);case fT:return Pw(Pw(Pw({},hT,v),gT,w),vT,C);case pT:return Pw(Pw(Pw({},hT,b),gT,S),vT,E);default:return{}}},G=H.useMemo((function(){return X(L)}),[L]),Y=Iw(HT(L,!e,(function(e){if(e===hT){var t=G[hT];return t?t(W()):LT}var n;return Z in G&&D((null===(n=G[Z])||void 0===n?void 0:n.call(G,W(),null))||null),Z===vT&&L!==uT&&(q(W()),m>0&&(clearTimeout(F.current),F.current=setTimeout((function(){K({deadline:!0})}),m))),Z===yT&&U(),BT})),2),Q=Y[0],Z=Y[1],J=FT(Z);V.current=J;var ee=H.useRef(null);AT((function(){if(!B.current||ee.current!==t){R(t);var n,r=B.current;B.current=!0,!r&&t&&d&&(n=dT),r&&t&&s&&(n=fT),(r&&!t&&p||!r&&h&&!t&&p)&&(n=pT);var o=X(n);n&&(e||o[hT])?(j(n),Q()):j(uT),ee.current=t}}),[t]),H.useEffect((function(){(L===dT&&!d||L===fT&&!s||L===pT&&!p)&&j(uT)}),[d,s,p]),H.useEffect((function(){return function(){B.current=!1,clearTimeout(F.current)}}),[]);var te=H.useRef(!1);H.useEffect((function(){I&&(te.current=!0),void 0!==I&&L===uT&&((te.current||I)&&(null==N||N(I)),te.current=!0)}),[I,L]);var ne=z;return G[hT]&&Z===gT&&(ne=rS({transition:"none"},ne)),[L,Z,ne,null!=I?I:t]}const VT=function(e){var t=e;"object"===Rw(e)&&(t=e.transitionSupport);var n=H.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,l=e.forceRender,c=e.children,s=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,H.useContext(lT).motion),p=H.useRef(),m=H.useRef(),h=Iw(WT(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:v_(m.current)}catch(Ij){return null}}),e),4),g=h[0],v=h[1],b=h[2],y=h[3],w=H.useRef(y);y&&(w.current=!0);var S,x=H.useCallback((function(e){p.current=e,ok(n,e)}),[n]),C=rS(rS({},d),{},{visible:o});if(c)if(g===uT)S=y?c(rS({},C),x):!a&&w.current&&u?c(rS(rS({},C),{},{className:u}),x):l||!a&&!u?c(rS(rS({},C),{},{style:{display:"none"}}),x):null;else{var E;v===hT?E="prepare":FT(v)?E="active":v===gT&&(E="start");var k=TT(s,"".concat(g,"-").concat(E));S=c(rS(rS({},C),{},{className:Aw(TT(s,g),Pw(Pw({},k,k&&E),s,"string"==typeof s)),style:b}),x)}else S=null;return H.isValidElement(S)&&lk(S)&&(sk(S)||(S=H.cloneElement(S,{ref:x}))),H.createElement(sT,{ref:m},S)}));return n.displayName="CSSMotion",n}(RT);var UT="add",KT="keep",qT="remove",XT="removed";function GT(e){var t;return rS(rS({},t=e&&"object"===Rw(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function YT(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(GT)}var QT=["component","children","onVisibleChanged","onAllRemoved"],ZT=["status"],JT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const ej=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:VT,n=function(e){q_(r,e);var n=Z_(r);function r(){var e;W_(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Pw(Y_(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),Pw(Y_(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:rS(rS({},e),{},{status:XT})}))}}),(function(){0===e.state.keyEntities.filter((function(e){return e.status!==XT})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return U_(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged;r.onAllRemoved;var l=Tw(r,QT),c=o||H.Fragment,s={};return JT.forEach((function(e){s[e]=l[e],delete l[e]})),delete l.keys,H.createElement(c,l,n.map((function(n,r){var o=n.status,l=Tw(n,ZT),c=o===UT||o===KT;return H.createElement(t,kw({},s,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(t){null==a||a(t,{key:l.key}),t||e.removeKey(l.key)}}),(function(e,t){return i(rS(rS({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=YT(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=YT(e),a=YT(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return rS(rS({},e),{},{status:UT})}))),r=i),n.push(rS(rS({},l),{},{status:KT})),r+=1,t=!0;break}}t||n.push(rS(rS({},e),{},{status:qT}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return rS(rS({},e),{},{status:UT})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==qT}))).forEach((function(t){t.key===e&&(t.status=KT)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==XT||e.status!==qT}))}}}]),r}(H.Component);return Pw(n,"defaultProps",{component:"div"}),n}(RT);function tj(e){const{children:t}=e,[,n]=$P(),{motion:r}=n,o=H.useRef(!1);return o.current=o.current||!1===r,o.current?H.createElement(cT,{motion:r},t):t}const nj=()=>null;var rj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const oj=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ij,aj,lj,cj;function sj(){return ij||"ant"}function uj(){return aj||iP}const dj=()=>({getPrefixCls:(e,t)=>t||(e?`${sj()}-${e}`:sj()),getIconPrefixCls:uj,getRootPrefixCls:()=>ij||sj(),getTheme:()=>lj,holderRender:cj}),fj=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:s,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:m,legacyLocale:h,parentContext:g,iconPrefixCls:v,theme:b,componentDisabled:y,segmented:w,statistic:S,spin:x,calendar:C,carousel:E,cascader:k,collapse:$,typography:O,checkbox:N,descriptions:_,divider:I,drawer:R,skeleton:M,steps:P,image:T,layout:j,list:A,mentions:z,modal:D,progress:L,result:B,slider:F,breadcrumb:W,menu:V,pagination:U,input:K,empty:q,badge:X,radio:G,rate:Y,switch:Q,transfer:Z,avatar:J,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ie,timePicker:ae,upload:le,notification:ce,tree:se,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:me,dropdown:he,warning:ge,tour:ve}=e,be=H.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||g.getPrefixCls("");return t?`${o}-${t}`:o}),[g.getPrefixCls,e.prefixCls]),ye=v||g.iconPrefixCls||iP,we=n||g.csp;GP(ye,we);const Se=function(e,t){var n;fM();const r=e||{},o=!1!==r.inherit&&t?t:Object.assign(Object.assign({},rP),{hashed:null!==(n=null==t?void 0:t.hashed)&&void 0!==n?n:rP.hashed,cssVar:null==t?void 0:t.cssVar}),i=iT();return ZE((()=>{var n,a;if(!e)return t;const l=Object.assign({},o.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const c=`css-var-${i.replace(/:/g,"")}`,s=(null!==(n=r.cssVar)&&void 0!==n?n:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof o.cssVar?o.cssVar:{}),"object"==typeof r.cssVar?r.cssVar:{}),{key:"object"==typeof r.cssVar&&(null===(a=r.cssVar)||void 0===a?void 0:a.key)||c});return Object.assign(Object.assign(Object.assign({},o),r),{token:Object.assign(Object.assign({},o.token),r.token),components:l,cssVar:s})}),[r,o],((e,t)=>e.some(((e,n)=>!mI(e,t[n],!0)))))}(b,g.theme),xe={csp:we,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||h,direction:s,space:u,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:m,getPrefixCls:be,iconPrefixCls:ye,theme:Se,segmented:w,statistic:S,spin:x,calendar:C,carousel:E,cascader:k,collapse:$,typography:O,checkbox:N,descriptions:_,divider:I,drawer:R,skeleton:M,steps:P,image:T,input:K,layout:j,list:A,mentions:z,modal:D,progress:L,result:B,slider:F,breadcrumb:W,menu:V,pagination:U,empty:q,badge:X,radio:G,rate:Y,switch:Q,transfer:Z,avatar:J,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ie,timePicker:ae,upload:le,notification:ce,tree:se,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:me,dropdown:he,warning:ge,tour:ve},Ce=Object.assign({},g);Object.keys(xe).forEach((e=>{void 0!==xe[e]&&(Ce[e]=xe[e])})),oj.forEach((t=>{const n=e[t];n&&(Ce[t]=n)}));const Ee=ZE((()=>Ce),Ce,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),ke=H.useMemo((()=>({prefixCls:ye,csp:we})),[ye,we]);let $e=H.createElement(H.Fragment,null,H.createElement(nj,{dropdownMatchSelectWidth:f}),t);const Oe=H.useMemo((()=>{var e,t,n,r;return sM((null===(e=bM.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ee.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ee.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[Ee,null==a?void 0:a.validateMessages]);Object.keys(Oe).length>0&&($e=H.createElement(pM.Provider,{value:Oe},$e)),l&&($e=H.createElement(kM,{locale:l,_ANT_MARK__:"internalMark"},$e)),(ye||we)&&($e=H.createElement(Ew.Provider,{value:ke},$e)),c&&($e=H.createElement(pP,{size:c},$e)),$e=H.createElement(tj,null,$e);const Ne=H.useMemo((()=>{const e=Se||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=rj(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?$I(t):nP,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=$I(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},NM),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[Se]);return b&&($e=H.createElement(oP.Provider,{value:Ne},$e)),Ee.warning&&($e=H.createElement(dM.Provider,{value:Ee.warning},$e)),void 0!==y&&($e=H.createElement(uP,{disabled:y},$e)),H.createElement(aP.Provider,{value:Ee},$e)},pj=e=>{const t=H.useContext(aP),n=H.useContext(CM);return H.createElement(fj,Object.assign({parentContext:t,legacyLocale:n},e))};pj.ConfigContext=aP,pj.SizeContext=mP,pj.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(ij=t),void 0!==n&&(aj=n),"holderRender"in e&&(cj=o),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?cP(sj(),r):lj=r)},pj.useConfig=function(){return{componentDisabled:H.useContext(dP),componentSize:H.useContext(mP)}},Object.defineProperty(pj,"SizeContext",{get:()=>mP});const mj=e("C",pj);var hj="".concat("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"," ").concat("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]+/),gj="aria-",vj="data-";function bj(e,t){return 0===e.indexOf(t)}function yj(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:rS({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||bj(n,gj))||t.data&&bj(n,vj)||t.attr&&hj.includes(n))&&(r[n]=e[n])})),r}const{isValidElement:wj}=V;function Sj(e){return e&&wj(e)&&e.type===H.Fragment}function xj(e,t){return function(e,t,n){return wj(e)?H.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}const Cj=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Ej=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,kj=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ej(n.overflowY,t)||Ej(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},$j=(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,Oj=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},Nj=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!Cj(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;Cj(m)&&d(m);){if(m=Oj(m),m===f){p.push(m);break}null!=m&&m===document.body&&kj(m)&&!kj(document.documentElement)||null!=m&&kj(m,u)&&p.push(m)}const h=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:v,scrollY:b}=window,{height:y,width:w,top:S,right:x,bottom:C,left:E}=e.getBoundingClientRect(),{top:k,right:$,bottom:O,left: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);let _="start"===l||"nearest"===l?S-k:"end"===l?C+O:S+y/2-k+O,I="center"===c?E+w/2-N+$:"end"===c?x+$:E-N;const R=[];for(let M=0;M<p.length;M++){const e=p[M],{height:t,width:n,top:r,right:o,bottom:i,left:s}=e.getBoundingClientRect();if("if-needed"===a&&S>=0&&E>=0&&C<=g&&x<=h&&(e===f&&!kj(e)||S>=r&&C<=i&&E>=s&&x<=o))return R;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),k=parseInt(u.borderRightWidth,10),$=parseInt(u.borderBottomWidth,10);let O=0,N=0;const P="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-k:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-m-$:0,j="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,A="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)O="start"===l?_:"end"===l?_-g:"nearest"===l?$j(b,b+g,g,m,$,b+_,b+_+y,y):_-g/2,N="start"===c?I:"center"===c?I-h/2:"end"===c?I-h:$j(v,v+h,h,d,k,v+I,v+I+w,w),O=Math.max(0,O+b),N=Math.max(0,N+v);else{O="start"===l?_-r-m:"end"===l?_-i+$+T:"nearest"===l?$j(r,i,t,m,$+T,_,_+y,y):_-(r+t/2)+T/2,N="start"===c?I-s-d:"center"===c?I-(s+n/2)+P/2:"end"===c?I-o+k+P:$j(s,o,n,d,k+P,I,I+w,w);const{scrollLeft:a,scrollTop:u}=e;O=0===A?0:Math.max(0,Math.min(u+O/A,e.scrollHeight-t/A+T)),N=0===j?0:Math.max(0,Math.min(a+N/j,e.scrollWidth-n/j+P)),_+=u-O,I+=a-N}R.push({el:e,top:O,left:N})}return R},_j=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};function Ij(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((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(Nj(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of Nj(e,_j(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}function Rj(e){return null!=e&&e===e.window}function Mj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:r,duration:o=450}=t,i=n(),a=function(e,t){var n,r;if("undefined"==typeof window)return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return Rj(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!Rj(e)&&"number"!=typeof i&&(i=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),i}(i,!0),l=Date.now(),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);Rj(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<o?fI(c):"function"==typeof r&&r()};fI(c)}const Pj=e=>{const[,,,,t]=$P();return t?`${e}-css-var`:""};var Tj={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Tj.F1&&t<=Tj.F12)return!1;switch(t){case Tj.ALT:case Tj.CAPS_LOCK:case Tj.CONTEXT_MENU:case Tj.CTRL:case Tj.DOWN:case Tj.END:case Tj.ESC:case Tj.HOME:case Tj.INSERT:case Tj.LEFT:case Tj.MAC_FF_META:case Tj.META:case Tj.NUMLOCK:case Tj.NUM_CENTER:case Tj.PAGE_DOWN:case Tj.PAGE_UP:case Tj.PAUSE:case Tj.PRINT_SCREEN:case Tj.RIGHT:case Tj.SHIFT:case Tj.UP:case Tj.WIN_KEY:case Tj.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Tj.ZERO&&e<=Tj.NINE)return!0;if(e>=Tj.NUM_ZERO&&e<=Tj.NUM_MULTIPLY)return!0;if(e>=Tj.A&&e<=Tj.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Tj.SPACE:case Tj.QUESTION_MARK:case Tj.NUM_PLUS:case Tj.NUM_MINUS:case Tj.NUM_PERIOD:case Tj.NUM_DIVISION:case Tj.SEMICOLON:case Tj.DASH:case Tj.EQUALS:case Tj.COMMA:case Tj.PERIOD:case Tj.SLASH:case Tj.APOSTROPHE:case Tj.SINGLE_QUOTE:case Tj.OPEN_SQUARE_BRACKET:case Tj.BACKSLASH:case Tj.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jj=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,l=e.eventKey,c=e.content,s=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,p=e.onClick,m=e.onNoticeClose,h=e.times,g=e.hovering,v=Iw(H.useState(!1),2),b=v[0],y=v[1],w=g||b,S=function(){m(l)};H.useEffect((function(){if(!w&&a>0){var e=setTimeout((function(){S()}),1e3*a);return function(){clearTimeout(e)}}}),[a,w,h]);var x="".concat(n,"-notice");return H.createElement("div",kw({},f,{ref:t,className:Aw(x,o,Pw({},"".concat(x,"-closable"),s)),style:r,onMouseEnter:function(e){var t;y(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;y(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:p}),H.createElement("div",{className:"".concat(x,"-content")},c),s&&H.createElement("a",{tabIndex:0,className:"".concat(x,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Tj.ENTER||S()},onClick:function(e){e.preventDefault(),e.stopPropagation(),S()}},d))})),Aj=W.createContext({}),zj=function(e){var t=e.children,n=e.classNames;return W.createElement(Aj.Provider,{value:{classNames:n}},t)},Dj=["className","style","classNames","styles"],Lj=function(e){var t,n,r,o,i,a,l=e.configList,c=e.placement,s=e.prefixCls,u=e.className,d=e.style,f=e.motion,p=e.onAllNoticeRemoved,m=e.onNoticeClose,h=e.stack,g=H.useContext(Aj).classNames,v=H.useRef({}),b=Iw(H.useState(null),2),y=b[0],w=b[1],S=Iw(H.useState([]),2),x=S[0],C=S[1],E=l.map((function(e){return{config:e,key:String(e.key)}})),k=Iw((a={offset:8,threshold:3,gap:16},(n=h)&&"object"===Rw(n)&&(a.offset=null!==(r=n.offset)&&void 0!==r?r:8,a.threshold=null!==(o=n.threshold)&&void 0!==o?o:3,a.gap=null!==(i=n.gap)&&void 0!==i?i:16),[!!n,a]),2),$=k[0],O=k[1],N=O.offset,_=O.threshold,I=O.gap,R=$&&(x.length>0||E.length<=_),M="function"==typeof f?f(c):f;return H.useEffect((function(){$&&x.length>1&&C((function(e){return e.filter((function(e){return E.some((function(t){var n=t.key;return e===n}))}))}))}),[x,E,$]),H.useEffect((function(){var e,t;$&&v.current[null===(e=E[E.length-1])||void 0===e?void 0:e.key]&&w(v.current[null===(t=E[E.length-1])||void 0===t?void 0:t.key])}),[E,$]),W.createElement(ej,kw({key:c,className:Aw(s,"".concat(s,"-").concat(c),null==g?void 0:g.list,u,(t={},Pw(t,"".concat(s,"-stack"),!!$),Pw(t,"".concat(s,"-stack-expanded"),R),t)),style:d,keys:E,motionAppear:!0},M,{onAllRemoved:function(){p(c)}}),(function(e,t){var n=e.config,r=e.className,o=e.style,i=e.index,a=n,l=a.key,u=a.times,d=String(l),f=n,p=f.className,h=f.style,b=f.classNames,w=f.styles,S=Tw(f,Dj),k=E.findIndex((function(e){return e.key===d})),O={};if($){var _=E.length-1-(k>-1?k:i-1),M="top"===c||"bottom"===c?"-50%":"0";if(_>0){var P,T,j;O.height=R?null===(P=v.current[d])||void 0===P?void 0:P.offsetHeight:null==y?void 0:y.offsetHeight;for(var A=0,z=0;z<_;z++){var D;A+=(null===(D=v.current[E[E.length-1-z].key])||void 0===D?void 0:D.offsetHeight)+I}var L=(R?A:_*N)*(c.startsWith("top")?1:-1),B=!R&&null!=y&&y.offsetWidth&&null!==(T=v.current[d])&&void 0!==T&&T.offsetWidth?((null==y?void 0:y.offsetWidth)-2*N*(_<3?_:3))/(null===(j=v.current[d])||void 0===j?void 0:j.offsetWidth):1;O.transform="translate3d(".concat(M,", ").concat(L,"px, 0) scaleX(").concat(B,")")}else O.transform="translate3d(".concat(M,", 0, 0)")}return W.createElement("div",{ref:t,className:Aw("".concat(s,"-notice-wrapper"),r,null==b?void 0:b.wrapper),style:rS(rS(rS({},o),O),null==w?void 0:w.wrapper),onMouseEnter:function(){return C((function(e){return e.includes(d)?e:[].concat(aI(e),[d])}))},onMouseLeave:function(){return C((function(e){return e.filter((function(e){return e!==d}))}))}},W.createElement(jj,kw({},S,{ref:function(e){k>-1?v.current[d]=e:delete v.current[d]},prefixCls:s,classNames:b,styles:w,className:Aw(p,null==g?void 0:g.notice),style:h,times:u,key:l,eventKey:l,onNoticeClose:m,hovering:$&&x.length>0})))}))},Bj=H.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Iw(H.useState([]),2),p=f[0],m=f[1],h=function(e){var t,n=p.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),m((function(t){return t.filter((function(t){return t.key!==e}))}))};H.useImperativeHandle(t,(function(){return{open:function(e){m((function(t){var n,r=aI(t),o=r.findIndex((function(t){return t.key===e.key})),i=rS({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),a>0&&r.length>a&&(r=r.slice(-a)),r}))},close:function(e){h(e)},destroy:function(){m([])}}}));var g=Iw(H.useState({}),2),v=g[0],b=g[1];H.useEffect((function(){var e={};p.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(v).forEach((function(t){e[t]=e[t]||[]})),b(e)}),[p]);var y=function(e){b((function(t){var n=rS({},t);return(n[e]||[]).length||delete n[e],n}))},w=H.useRef(!1);if(H.useEffect((function(){Object.keys(v).length>0?w.current=!0:w.current&&(null==s||s(),w.current=!1)}),[v]),!o)return null;var S=Object.keys(v);return cd.createPortal(H.createElement(H.Fragment,null,S.map((function(e){var t=v[e],n=H.createElement(Lj,{key:e,configList:t,placement:e,prefixCls:r,className:null==l?void 0:l(e),style:null==c?void 0:c(e),motion:i,onNoticeClose:h,onAllNoticeRemoved:y,stack:u});return d?d(n,{prefixCls:r,key:e}):n}))),o)})),Fj=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Hj=function(){return document.body},Wj=0;function Vj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Hj:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,s=e.stack,u=e.renderNotifications,d=Tw(e,Fj),f=Iw(H.useState(),2),p=f[0],m=f[1],h=H.useRef(),g=H.createElement(Bj,{container:p,ref:h,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:c,stack:s,renderNotifications:u}),v=Iw(H.useState([]),2),b=v[0],y=v[1],w=H.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Wj),Wj+=1),y((function(e){return[].concat(aI(e),[{type:"open",config:t}])}))},close:function(e){y((function(t){return[].concat(aI(t),[{type:"close",key:e}])}))},destroy:function(){y((function(e){return[].concat(aI(e),[{type:"destroy"}])}))}}}),[]);return H.useEffect((function(){m(n())})),H.useEffect((function(){h.current&&b.length&&(b.forEach((function(e){switch(e.type){case"open":h.current.open(e.config);break;case"close":h.current.close(e.key);break;case"destroy":h.current.destroy()}})),y((function(e){return e.filter((function(e){return!b.includes(e)}))})))}),[b]),[w,g]}const Uj=W.createContext(void 0),Kj=100,qj=1e3,Xj={Modal:Kj,Drawer:Kj,Popover:Kj,Popconfirm:Kj,Tooltip:Kj,Tour:Kj},Gj={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Yj(e,t){const[,n]=$P(),r=W.useContext(Uj),o=function(e){return e in Xj}(e);if(void 0!==t)return[t,t];let i=null!=r?r:0;return o?(i+=(r?0:n.zIndexPopupBase)+Xj[e],i=Math.min(i,n.zIndexPopupBase+qj)):i+=Gj[e],[void 0===r?t:i,i]}const Qj=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:m,zIndexPopup:h,contentPadding:g,contentBg:v}=e,b=`${t}-notice`,y=new tM("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new tM("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:g,background:v,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},PP(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]},Zj=tT("Message",(e=>{const t=KP(e,{height:150});return[Qj(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+qj+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var Jj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const eA={info:H.createElement(pC,null),success:H.createElement(ZS,null),error:H.createElement(lx,null),warning:H.createElement(Dx,null),loading:H.createElement(SC,null)},tA=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return H.createElement("div",{className:m_(`${t}-custom-content`,`${t}-${n}`)},r||eA[n],H.createElement("span",null,o))},nA=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=Jj(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=H.useContext(aP),c=t||l("message"),s=Pj(c),[u,d,f]=Zj(c,s);return u(H.createElement(jj,Object.assign({},a,{prefixCls:c,className:m_(n,d,`${c}-notice-pure-panel`,f,s),eventKey:"pure",duration:null,content:H.createElement(tA,{prefixCls:c,type:r,icon:o},i)})))};function rA(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}var oA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const iA=3,aA=e=>{let{children:t,prefixCls:n}=e;const r=Pj(n),[o,i,a]=Zj(n,r);return o(H.createElement(zj,{classNames:{list:m_(i,a,r)}},t))},lA=(e,t)=>{let{prefixCls:n,key:r}=t;return H.createElement(aA,{prefixCls:n,key:r},e)},cA=H.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=iA,rtl:l,transitionName:c,onAllRemoved:s}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:p}=H.useContext(aP),m=r||u("message"),h=H.createElement("span",{className:`${m}-close-x`},H.createElement(ux,{className:`${m}-close-icon`})),[g,v]=Vj({prefixCls:m,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>m_({[`${m}-rtl`]:null!=l?l:"rtl"===p}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(m,c),closable:!1,closeIcon:h,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:s,renderNotifications:lA});return H.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:m,message:f}))),v}));let sA=0;function uA(e){const t=H.useRef(null);fM();const n=H.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:l,icon:c,type:s,key:u,className:d,style:f,onClose:p}=n,m=oA(n,["content","icon","type","key","className","style","onClose"]);let h=u;return null==h&&(sA+=1,h=`antd-message-${sA}`),rA((t=>(r(Object.assign(Object.assign({},m),{key:h,content:H.createElement(tA,{prefixCls:o,type:s,icon:c},l),placement:"top",className:m_(s&&`${a}-${s}`,d,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==p||p(),t()}})),()=>{e(h)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(a=r,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(c)}})),r}),[]);return[n,H.createElement(cA,Object.assign({key:"message-holder"},e,{ref:t}))]}function dA(e,t){this.v=e,this.k=t}function fA(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}fA=function(e,t,n,r){function i(t,n){fA(e,t,(function(e){return this._invoke(t,n,e)}))}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},fA(e,t,n,r)}function pA(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return fA(s,"_invoke",function(n,r,o){var i,l,c,s=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,r){for(l=n,c=r,t=0;!d&&s&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,m=i[2];n>3?(o=m===r)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,o,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(fA(t={},r,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,fA(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,fA(d,"constructor",s),fA(s,"constructor",c),c.displayName="GeneratorFunction",fA(s,o,"GeneratorFunction"),fA(d),fA(d,o,"Generator"),fA(d,r,(function(){return this})),fA(d,"toString",(function(){return"[object Generator]"})),(pA=function(){return{w:i,m:f}})()}function mA(e,t){function n(r,o,i,a){try{var l=e[r](o),c=l.value;return c instanceof dA?t.resolve(c.v).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):t.resolve(c).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(fA(mA.prototype),fA(mA.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),fA(this,"_invoke",(function(e,o,i){function a(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(a,a):a()}),!0)}function hA(e,t,n,r,o){return new mA(pA().w(e,t,n,r),o||Promise)}function gA(e,t,n,r,o){var i=hA(e,t,n,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function vA(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function bA(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Rw(e)+" is not iterable")}function yA(){var e=pA(),t=e.m(yA),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,bA(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(yA=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new dA(e,t)},AsyncIterator:mA,async:function(e,t,n,o,a){return(r(t)?hA:gA)(i(e),t,n,o,a)},keys:vA,values:bA}})()}function wA(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function SA(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){wA(i,r,o,a,l,"next",e)}function l(e){wA(i,r,o,a,l,"throw",e)}a(void 0)}))}}var xA,CA=rS({},ud),EA=CA.version,kA=CA.render,$A=CA.unmountComponentAtNode;try{Number((EA||"").split(".")[0])>=18&&(xA=CA.createRoot)}catch(Ij){}function OA(e){var t=CA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Rw(t)&&(t.usingClientEntryPoint=e)}var NA="__rc_react_root__";function _A(e,t){xA?function(e,t){OA(!0);var n=t[NA]||xA(t);OA(!1),n.render(e),t[NA]=n}(e,t):function(e,t){null==kA||kA(e,t)}(e,t)}function IA(e){return RA.apply(this,arguments)}function RA(){return(RA=SA(yA().mark((function e(t){return yA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[NA])||void 0===e||e.unmount(),delete t[NA]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function MA(e){$A(e)}function PA(e){return TA.apply(this,arguments)}function TA(){return(TA=SA(yA().mark((function e(t){return yA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===xA){e.next=2;break}return e.abrupt("return",IA(t));case 2:MA(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const jA=()=>({height:0,opacity:0}),AA=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},zA=e=>({height:e?e.offsetHeight:0}),DA=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,LA=(e,t,n)=>void 0!==n?n:`${e}-${t}`,BA=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:jA,onEnterStart:jA,onAppearActive:AA,onEnterActive:AA,onLeaveStart:zA,onLeaveActive:jA,onAppearEnd:DA,onEnterEnd:DA,onLeaveEnd:DA,motionDeadline:500}},FA=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},HA=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},WA=ZP("Wave",(e=>[HA(e)]));function VA(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const UA="ant-wave-target";function KA(e){return Number.isNaN(e)?0:e}const qA=e=>{const{className:t,target:n,component:r}=e,o=H.useRef(null),[i,a]=H.useState(null),[l,c]=H.useState([]),[s,u]=H.useState(0),[d,f]=H.useState(0),[p,m]=H.useState(0),[h,g]=H.useState(0),[v,b]=H.useState(!1),y={left:s,top:d,width:p,height:h,borderRadius:l.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return VA(t)?t:VA(n)?n:VA(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:KA(-parseFloat(r))),f(t?n.offsetTop:KA(-parseFloat(o))),m(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:d}=e;c([i,l,d,s].map((e=>KA(parseFloat(e)))))}if(i&&(y["--wave-color"]=i),H.useEffect((()=>{if(n){const e=fI((()=>{w(),b(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{fI.cancel(e),null==t||t.disconnect()}}}),[]),!v)return null;const S=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(UA));return H.createElement(VT,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;PA(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return H.createElement("div",{ref:o,className:m_(t,{"wave-quick":S},n),style:y})}))},XA=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?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),_A(H.createElement(qA,Object.assign({},t,{target:e})),o)},GA=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=H.useContext(aP),i=H.useRef(null),a=o("wave"),[,l]=WA(a),c=function(e,t,n){const{wave:r}=H.useContext(aP),[,o,i]=$P(),a=OP((a=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const c=l.querySelector(`.${UA}`)||l,{showEffect:s}=r||{};(s||XA)(c,{className:t,token:o,component:n,event:a,hashId:i})})),l=H.useRef();return e=>{fI.cancel(l.current),l.current=fI((()=>{a(e)}))}}(i,m_(a,l),r);return W.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!FA(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),W.isValidElement(t)?xj(t,{ref:lk(t)?ik(t.ref,i):i}):null!=t?t:null},YA=e=>{const t=W.useContext(mP);return W.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},QA=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},ZA=e=>{const{componentCls:t}=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"}}}},JA=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},ez=tT("Space",(e=>{const t=KP(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[ZA(t),JA(t),QA(t)]}),(()=>({})),{resetStyle:!1});var tz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nz=H.createContext(null),rz=(e,t)=>{const n=H.useContext(nz),r=H.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return m_(`${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}},oz=e=>{let{children:t}=e;return H.createElement(nz.Provider,{value:null},t)},iz=e=>{var{children:t}=e,n=tz(e,["children"]);return H.createElement(nz.Provider,{value:n},t)},az=e=>{const{getPrefixCls:t,direction:n}=H.useContext(aP),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:c,children:s}=e,u=tz(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=YA((e=>null!=r?r:e)),f=t("space-compact",a),[p,m]=ez(f),h=m_(f,m,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:i,[`${f}-vertical`]:"vertical"===o},l,c),g=H.useContext(nz),v=h_(s),b=H.useMemo((()=>v.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return H.createElement(iz,{key:n,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!g||(null==g?void 0:g.isFirstItem)),isLastItem:t===v.length-1&&(!g||(null==g?void 0:g.isLastItem))},e)}))),[r,v,g]);return 0===v.length?null:p(H.createElement("div",Object.assign({className:h},u),b))};var lz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const cz=H.createContext(void 0),sz=e=>{const{getPrefixCls:t,direction:n}=H.useContext(aP),{prefixCls:r,size:o,className:i}=e,a=lz(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=$P();let s="";switch(o){case"large":s="lg";break;case"small":s="sm"}const u=m_(l,{[`${l}-${s}`]:s,[`${l}-rtl`]:"rtl"===n},i,c);return H.createElement(cz.Provider,{value:o},H.createElement("div",Object.assign({},a,{className:u})))},uz=/^[\u4e00-\u9fa5]{2}$/,dz=uz.test.bind(uz);function fz(e){return"danger"===e?{danger:!0}:{type:e}}function pz(e){return"string"==typeof e}function mz(e){return"text"===e||"link"===e}function hz(e,t){let n=!1;const r=[];return W.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),W.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&pz(e.type)&&dz(e.props.children)?xj(e,{children:e.props.children.split("").join(n)}):pz(e)?dz(e)?W.createElement("span",null,e.split("").join(n)):W.createElement("span",null,e):Sj(e)?W.createElement("span",null,e):e}(e,t)))}const gz=H.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=m_(`${i}-icon`,n);return W.createElement("span",{ref:t,className:a,style:r},o)})),vz=gz,bz=H.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=m_(`${n}-loading-icon`,r);return W.createElement(vz,{prefixCls:n,className:a,style:o,ref:t},W.createElement(SC,{className:i}))})),yz=()=>({width:0,opacity:0,transform:"scale(0)"}),wz=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Sz=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?W.createElement(bz,{prefixCls:t,className:o,style:i}):W.createElement(VT,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:yz,onAppearActive:wz,onEnterStart:yz,onEnterActive:wz,onLeaveStart:wz,onLeaveActive:yz},((e,n)=>{let{className:r,style:a}=e;return W.createElement(bz,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))},xz=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Cz=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,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},xz(`${t}-primary`,o),xz(`${t}-danger`,i)]}},Ez=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return KP(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},kz=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:eP(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:eP(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:eP(s);return{fontWeight:400,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.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,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,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},$z=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${PI(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},zP(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Oz=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Nz=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),_z=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Iz=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Rz=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Oz(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Mz=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Iz(e))}),Pz=e=>Object.assign({},Mz(e)),Tz=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),jz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pz(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Oz(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Rz(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Oz(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rz(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Mz(e))}),Az=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pz(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Oz(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Rz(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Oz(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Rz(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Mz(e))}),zz=e=>Object.assign(Object.assign({},jz(e)),{borderStyle:"dashed"}),Dz=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Oz(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Tz(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Oz(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Tz(e))}),Lz=e=>Object.assign(Object.assign(Object.assign({},Oz(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Tz(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Tz(e)),Oz(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),Bz=e=>{const{componentCls:t}=e;return{[`${t}-default`]:jz(e),[`${t}-primary`]:Az(e),[`${t}-dashed`]:zz(e),[`${t}-link`]:Dz(e),[`${t}-text`]:Lz(e),[`${t}-ghost`]:Rz(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Fz=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${PI(s)} ${PI(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Nz(e)},{[`${n}${n}-round${t}`]:_z(e)}]},Hz=e=>{const t=KP(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Fz(t,e.componentCls)},Wz=e=>{const t=KP(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Fz(t,`${e.componentCls}-sm`)},Vz=e=>{const t=KP(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Fz(t,`${e.componentCls}-lg`)},Uz=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Kz=tT("Button",(e=>{const t=Ez(e);return[$z(t),Hz(t),Wz(t),Vz(t),Uz(t),Bz(t),Cz(t)]}),kz,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function qz(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Xz(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 Gz(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},qz(e,r,t)),Xz(n,r,t))}}function Yz(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Qz(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Yz(e,t)),(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 Zz=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${PI(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${PI(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Jz=JP(["Button","compact"],(e=>{const t=Ez(e);return[Gz(t),Qz(t),Zz(t)]}),kz);var eD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tD=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:c="default",size:s,styles:u,disabled:d,className:f,rootClassName:p,children:m,icon:h,ghost:g=!1,block:v=!1,htmlType:b="button",classNames:y,style:w={}}=e,S=eD(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:x,autoInsertSpaceInButton:C,direction:E,button:k}=H.useContext(aP),$=x("btn",i),[O,N,_]=Kz($),I=H.useContext(dP),R=null!=d?d:I,M=H.useContext(cz),P=H.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o)),[o]),[T,j]=H.useState(P.loading),[A,z]=H.useState(!1),D=ik(t,H.createRef()),L=1===H.Children.count(m)&&!h&&!mz(a);H.useEffect((()=>{let e=null;return P.delay>0?e=setTimeout((()=>{e=null,j(!0)}),P.delay):j(P.loading),function(){e&&(clearTimeout(e),e=null)}}),[P]),H.useEffect((()=>{if(!D||!D.current||!1===C)return;const e=D.current.textContent;L&&dz(e)?A||z(!0):A&&z(!1)}),[D]);const B=t=>{const{onClick:n}=e;T||R?t.preventDefault():null==n||n(t)},F=!1!==C,{compactSize:V,compactItemClassnames:U}=rz($,E),K={large:"lg",small:"sm",middle:void 0},q=YA((e=>{var t,n;return null!==(n=null!==(t=null!=s?s:V)&&void 0!==t?t:M)&&void 0!==n?n:e})),X=q&&K[q]||"",G=T?"loading":h,Y=oI(S,["navigate"]),Q=m_($,N,_,{[`${$}-${c}`]:"default"!==c&&c,[`${$}-${a}`]:a,[`${$}-${X}`]:X,[`${$}-icon-only`]:!m&&0!==m&&!!G,[`${$}-background-ghost`]:g&&!mz(a),[`${$}-loading`]:T,[`${$}-two-chinese-chars`]:A&&F&&!T,[`${$}-block`]:v,[`${$}-dangerous`]:!!l,[`${$}-rtl`]:"rtl"===E},U,f,p,null==k?void 0:k.className),Z=Object.assign(Object.assign({},null==k?void 0:k.style),w),J=m_(null==y?void 0:y.icon,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.icon),ee=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==k?void 0:k.styles)||void 0===r?void 0:r.icon)||{}),te=h&&!T?W.createElement(vz,{prefixCls:$,className:J,style:ee},h):W.createElement(Sz,{existIcon:!!h,prefixCls:$,loading:!!T}),ne=m||0===m?hz(m,L&&F):null;if(void 0!==Y.href)return O(W.createElement("a",Object.assign({},Y,{className:m_(Q,{[`${$}-disabled`]:R}),href:R?void 0:Y.href,style:Z,onClick:B,ref:D,tabIndex:R?-1:0}),te,ne));let re=W.createElement("button",Object.assign({},S,{type:b,className:Q,style:Z,onClick:B,disabled:R,ref:D}),te,ne,!!U&&W.createElement(Jz,{key:"compact",prefixCls:$}));return mz(a)||(re=W.createElement(GA,{component:"Button",disabled:!!T},re)),O(re)},nD=H.forwardRef(tD);nD.Group=sz,nD.__ANT_BUTTON=!0;const rD=e("q",nD);function oD(e){return!(!e||!e.then)}const iD=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:s,actionFn:u}=e,d=H.useRef(!1),f=H.useRef(null),[p,m]=NP(!1),h=function(){null==i||i.apply(void 0,arguments)};return H.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),H.createElement(rD,Object.assign({},fz(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void h();let t;if(l){if(t=u(e),s&&!oD(t))return d.current=!1,void h(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void h();(e=>{oD(e)&&(m(!0),e.then((function(){m(!1,!0),h.apply(void 0,arguments),d.current=!1}),(e=>{if(m(!1,!0),d.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:p,prefixCls:r},o,{ref:f}),n)},aD=W.createContext({}),{Provider:lD}=aD,cD=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:c}=H.useContext(aD);return o?W.createElement(iD,{isSilent:r,actionFn:l,close:function(){null==a||a.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},sD=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:c}=H.useContext(aD);return W.createElement(iD,{isSilent:n,type:a||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};var uD,dD=H.createContext(null),fD=[];function pD(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";gS("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(Ij){console.error(Ij),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),hS(t),{width:f,height:p}}function mD(e){return"undefined"==typeof document?0:((e||void 0===uD)&&(uD=pD()),uD.width)}function hD(e){return"undefined"!=typeof document&&e&&e instanceof Element?pD(e):{width:0,height:0}}var gD="rc-util-locker-".concat(Date.now()),vD=0;function bD(e){var t=!!e,n=Iw(H.useState((function(){return vD+=1,"".concat(gD,"_").concat(vD)})),1)[0];LI((function(){if(t){var e=hD(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;gS("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else hS(n);return function(){hS(n)}}),[t,n])}var yD=!1,wD=function(e){return!1!==e&&(oS()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},SD=H.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=void 0===i||i,l=e.children,c=Iw(H.useState(n),2),s=c[0],u=c[1],d=s||n;H.useEffect((function(){(a||n)&&u(n)}),[n,a]);var f=Iw(H.useState((function(){return wD(o)})),2),p=f[0],m=f[1];H.useEffect((function(){var e=wD(o);m(null!=e?e:null)}));var h=function(e,t){var n=Iw(H.useState((function(){return oS()?document.createElement("div"):null})),1)[0],r=H.useRef(!1),o=H.useContext(dD),i=Iw(H.useState(fD),2),a=i[0],l=i[1],c=o||(r.current?void 0:function(e){l((function(t){return[e].concat(aI(t))}))});function s(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return LI((function(){return e?o?o(s):s():u(),u}),[e]),LI((function(){a.length&&(a.forEach((function(e){return e()})),l(fD))}),[a]),[n,c]}(d&&!p),g=Iw(h,2),v=g[0],b=g[1],y=null!=p?p:v;bD(r&&n&&oS()&&(y===v||y===document.body));var w=null;l&&lk(l)&&t&&(w=l.ref);var S=ak(w,t);if(!d||!oS()||void 0===p)return null;var x,C=!1===y||("boolean"==typeof x&&(yD=x),yD),E=l;return t&&(E=H.cloneElement(l,{ref:S})),H.createElement(dD.Provider,{value:b},C?E:cd.createPortal(E,y))})),xD=H.createContext({}),CD=0,ED=rS({},V).useId;const kD=ED?function(e){var t=ED();return e||t}:function(e){var t=Iw(H.useState("ssr-id"),2),n=t[0],r=t[1];return H.useEffect((function(){var e=CD;CD+=1,r("rc_unique_".concat(e))}),[]),e||n};function $D(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function OD(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const ND=H.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var _D={width:0,height:0,overflow:"hidden",outline:"none"},ID=W.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,c=e.closable,s=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,m=e.modalRender,h=e.onMouseDown,g=e.onMouseUp,v=e.holderRef,b=e.visible,y=e.forceRender,w=e.width,S=e.height,x=e.classNames,C=e.styles,E=W.useContext(xD).panel,k=ak(v,E),$=H.useRef(),O=H.useRef();W.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=$.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?$.current.focus():e||t!==$.current||O.current.focus()}}}));var N,_,I,R={};void 0!==w&&(R.width=w),void 0!==S&&(R.height=S),l&&(N=W.createElement("div",{className:Aw("".concat(n,"-footer"),null==x?void 0:x.footer),style:rS({},null==C?void 0:C.footer)},l)),i&&(_=W.createElement("div",{className:Aw("".concat(n,"-header"),null==x?void 0:x.header),style:rS({},null==C?void 0:C.header)},W.createElement("div",{className:"".concat(n,"-title"),id:a},i))),c&&(I=W.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},s||W.createElement("span",{className:"".concat(n,"-close-x")})));var M=W.createElement("div",{className:Aw("".concat(n,"-content"),null==x?void 0:x.content),style:null==C?void 0:C.content},I,_,W.createElement("div",kw({className:Aw("".concat(n,"-body"),null==x?void 0:x.body),style:rS(rS({},f),null==C?void 0:C.body)},p),d),N);return W.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:k,style:rS(rS({},o),R),className:Aw(n,r),onMouseDown:h,onMouseUp:g},W.createElement("div",{tabIndex:0,ref:$,style:_D,"aria-hidden":"true"}),W.createElement(ND,{shouldUpdate:b||y},m?m(M):M),W.createElement("div",{tabIndex:0,ref:O,style:_D,"aria-hidden":"true"}))})),RD=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,c=e.destroyOnClose,s=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=H.useRef(),m=Iw(H.useState(),2),h=m[0],g=m[1],v={};function b(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=OD(o),n.top+=OD(o,!0),n}(p.current);g(f?"".concat(f.x-e.left,"px ").concat(f.y-e.top,"px"):"")}return h&&(v.transformOrigin=h),H.createElement(VT,{visible:a,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:l,motionName:s,removeOnLeave:c,ref:p},(function(a,l){var c=a.className,s=a.style;return H.createElement(ID,kw({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:l,style:rS(rS(rS({},s),o),v),className:Aw(i,c)}))}))}));function MD(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return H.createElement(VT,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var i=e.className,l=e.style;return H.createElement("div",kw({ref:r,style:rS(rS({},l),n),className:Aw("".concat(t,"-mask"),i,a)},o))}))}function PD(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,a=e.keyboard,l=void 0===a||a,c=e.focusTriggerAfterClose,s=void 0===c||c,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,m=e.afterOpenChange,h=e.afterClose,g=e.transitionName,v=e.animation,b=e.closable,y=void 0===b||b,w=e.mask,S=void 0===w||w,x=e.maskTransitionName,C=e.maskAnimation,E=e.maskClosable,k=void 0===E||E,$=e.maskStyle,O=e.maskProps,N=e.rootClassName,_=e.classNames,I=e.styles,R=H.useRef(),M=H.useRef(),P=H.useRef(),T=Iw(H.useState(i),2),j=T[0],A=T[1],z=kD();function D(e){null==p||p(e)}var L=H.useRef(!1),B=H.useRef(),F=null;return k&&(F=function(e){L.current?L.current=!1:M.current===e.target&&D(e)}),H.useEffect((function(){i&&(A(!0),iS(M.current,document.activeElement)||(R.current=document.activeElement))}),[i]),H.useEffect((function(){return function(){clearTimeout(B.current)}}),[]),H.createElement("div",kw({className:Aw("".concat(n,"-root"),N)},yj(e,{data:!0})),H.createElement(MD,{prefixCls:n,visible:S&&i,motionName:$D(n,x,C),style:rS(rS({zIndex:r},$),null==I?void 0:I.mask),maskProps:O,className:null==_?void 0:_.mask}),H.createElement("div",kw({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===Tj.ESC)return e.stopPropagation(),void D(e);i&&e.keyCode===Tj.TAB&&P.current.changeActive(!e.shiftKey)},className:Aw("".concat(n,"-wrap"),d,null==_?void 0:_.wrapper),ref:M,onClick:F,style:rS(rS(rS({zIndex:r},u),null==I?void 0:I.wrapper),{},{display:j?null:"none"})},f),H.createElement(RD,kw({},e,{onMouseDown:function(){clearTimeout(B.current),L.current=!0},onMouseUp:function(){B.current=setTimeout((function(){L.current=!1}))},ref:P,closable:y,ariaId:z,prefixCls:n,visible:i&&j,onClose:D,onVisibleChanged:function(e){if(e)iS(M.current,document.activeElement)||null===(t=P.current)||void 0===t||t.focus();else{if(A(!1),S&&R.current&&s){try{R.current.focus({preventScroll:!0})}catch(Ij){}R.current=null}j&&(null==h||h())}var t;null==m||m(e)},motionName:$D(n,g,v)}))))}RD.displayName="Content";var TD=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,l=e.panelRef,c=Iw(H.useState(t),2),s=c[0],u=c[1],d=H.useMemo((function(){return{panel:l}}),[l]);return H.useEffect((function(){t&&u(!0)}),[t]),r||!i||s?H.createElement(xD.Provider,{value:d},H.createElement(SD,{open:t||r||s,autoDestroy:!1,getContainer:n,autoLock:t||s},H.createElement(PD,kw({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null};function jD(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:W.createElement(ux,null);const o=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]);if(!o)return[!1,null];const i="boolean"==typeof t||null==t?r:t;return[!0,n?n(i):i]}TD.displayName="Dialog";var AD=function(e){if(oS()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},zD=function(e,t){if(!AD(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},DD="RC_FORM_INTERNAL_HOOKS",LD=function(){CS(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},BD=H.createContext({getFieldValue:LD,getFieldsValue:LD,getFieldError:LD,getFieldWarning:LD,getFieldsError:LD,isFieldsTouched:LD,isFieldTouched:LD,isFieldValidating:LD,isFieldsValidating:LD,resetFields:LD,setFields:LD,setFieldValue:LD,setFieldsValue:LD,validateFields:LD,submit:LD,getInternalHooks:function(){return LD(),{dispatch:LD,initEntityValue:LD,registerField:LD,useSubscribe:LD,setInitialValues:LD,destroyForm:LD,setCallbacks:LD,registerWatch:LD,getFields:LD,setValidateMessages:LD,setPreserve:LD,getInitialValue:LD}}}),FD=H.createContext(null);function HD(e){return null==e?[]:Array.isArray(e)?e:[e]}function WD(){return WD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WD.apply(this,arguments)}function VD(e){return VD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VD(e)}function UD(e,t){return UD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UD(e,t)}function KD(e,t,n){return KD=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Ij){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&UD(o,n.prototype),o},KD.apply(null,arguments)}function qD(e){var t="function"==typeof Map?new Map:void 0;return qD=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,r)}function r(){return KD(e,arguments,VD(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),UD(r,e)},qD(e)}var XD=/%[sdj%]/g,GD=function(){};function YD(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 QD(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;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(XD,(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(t){return"[Circular]"}break;default:return e}}));return a}return e}function ZD(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}(t)||"string"!=typeof e||e)}function JD(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 eL=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,UD(t,n),r}(qD(Error));function tL(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,e[n]||[])})),t}(e);JD(a,n,(function(e){return r(e),e.length?i(new eL(e,YD(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),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new eL(u,YD(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?JD(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function nL(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 rL(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=WD({},e[n],r):e[n]=r}return e}var oL,iL=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!ZD(t,i||e.type)||r.push(QD(o.messages.required,e.fullField))},aL=/^(([^<>()\[\]\\.,;:\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,}))$/,lL=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,cL={integer:function(e){return cL.number(e)&&parseInt(e,10)===e},float:function(e){return cL.number(e)&&!cL.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Ij){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"==typeof e&&!cL.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(aL)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(oL)return oL;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),c=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};c.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+o+t(e),"g")};var s=c.v4().source,u=c.v6().source;return oL=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+s+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(lL)}},sL="enum",uL={required:iL,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(QD(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)iL(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?cL[i](t)||r.push(QD(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(QD(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,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(QD(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(QD(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(QD(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(QD(o.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[sL]=Array.isArray(e[sL])?e[sL]:[],-1===e[sL].indexOf(t)&&r.push(QD(o.messages[sL],e.fullField,e[sL].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(QD(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(QD(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},dL=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZD(t,i)&&!e.required)return n();uL.required(e,t,r,a,o,i),ZD(t,i)||uL.type(e,t,r,a,o)}n(a)},fL={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZD(t,"string")&&!e.required)return n();uL.required(e,t,r,i,o,"string"),ZD(t,"string")||(uL.type(e,t,r,i,o),uL.range(e,t,r,i,o),uL.pattern(e,t,r,i,o),!0===e.whitespace&&uL.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(ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o),void 0!==t&&uL.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),ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o),void 0!==t&&(uL.type(e,t,r,i,o),uL.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(ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o),void 0!==t&&uL.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(ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o),ZD(t)||uL.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(ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o),void 0!==t&&(uL.type(e,t,r,i,o),uL.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(ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o),void 0!==t&&(uL.type(e,t,r,i,o),uL.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();uL.required(e,t,r,i,o,"array"),null!=t&&(uL.type(e,t,r,i,o),uL.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(ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o),void 0!==t&&uL.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(ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o),void 0!==t&&uL.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(ZD(t,"string")&&!e.required)return n();uL.required(e,t,r,i,o),ZD(t,"string")||uL.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(ZD(t,"date")&&!e.required)return n();var a;uL.required(e,t,r,i,o),ZD(t,"date")||(a=t instanceof Date?t:new Date(t),uL.type(e,a,r,i,o),a&&uL.range(e,a.getTime(),r,i,o))}n(i)},url:dL,hex:dL,email:dL,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;uL.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(ZD(t)&&!e.required)return n();uL.required(e,t,r,i,o)}n(i)}};function pL(){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",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 mL=pL(),hL=function(){function e(e){this.rules=null,this._messages=mL,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof 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]}))},t.messages=function(e){return e&&(this._messages=rL(pL(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var c=this.messages();c===mL&&(c=pL()),rL(c,a.messages),a.messages=c}else a.messages=this.messages();var s={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=WD({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:WD({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),s[e]=s[e]||[],s[e].push({rule:a,value:r,source:i,field:e}))}))}));var u={};return tL(s,a,(function(t,n){var r,o=t.rule,l=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function c(e,t){return WD({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function s(r){void 0===r&&(r=[]);var s=Array.isArray(r)?r:[r];!a.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==o.message&&(s=[].concat(o.message));var d=s.map(nL(o,i));if(a.first&&d.length)return u[o.field]=1,n(d);if(l){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(nL(o,i)):a.error&&(d=[a.error(o,QD(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=WD({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))}));var m=new e(p);m.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),m.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,s,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,s,t.source,a)}catch(d){null==console.error||console.error(d),a.suppressValidatorError||setTimeout((function(){throw d}),0),s(d.message)}!0===r?s():!1===r?s("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?s(r):r instanceof Error&&s(r.message)}r&&r.then&&r.then((function(){return s()}),(function(e){return s(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o<e.length;o++)r(e[o]);t.length?(n=YD(t),l(t,n)):l(null,i)}(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!fL.hasOwnProperty(e.type))throw new Error(QD("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=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]?fL.required:fL[this.getType(e)]||void 0},e}();hL.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");fL[e]=t},hL.warning=GD,hL.messages=mL,hL.validators=fL;var gL="'${name}' is not a valid ${type}",vL={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:gL,method:gL,array:gL,object:gL,number:gL,date:gL,boolean:gL,integer:gL,float:gL,regexp:gL,email:gL,url:gL,hex:gL},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}"}},bL=hL;function yL(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var wL="CODE_LOGIC_ERROR";function SL(e,t,n,r,o){return xL.apply(this,arguments)}function xL(){return xL=SA(yA().mark((function e(t,n,r,o,i){var a,l,c,s,u,d,f,p,m;return yA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=rS({},r)).ruleIndex,bL.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(wL)}}),c=null,a&&"array"===a.type&&a.defaultField&&(c=a.defaultField,delete a.defaultField),s=new bL(Pw({},t,[a])),u=sM(vL,o.validateMessages),s.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(s.validate(Pw({},t,n),rS({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,r=n===wL?u.default:n;return H.isValidElement(r)?H.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(d.length||!c){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return SL("".concat(t,".").concat(n),e,c,o,i)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(aI(e),aI(t))}),[]));case 23:return p=rS(rS({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=d.map((function(e){return"string"==typeof e?yL(e,p):e})),e.abrupt("return",m);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),xL.apply(this,arguments)}function CL(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=rS(rS({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){CS(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));CS(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=SA(yA().mark((function e(n,o){var a,s,u;return yA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,SL(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map((function(e){return SL(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return kL.apply(this,arguments)}(s):function(e){return EL.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function EL(){return(EL=SA(yA().mark((function e(t){return yA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,aI(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kL(){return(kL=SA(yA().mark((function e(t){var n;return yA().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $L(e){return HD(e)}function OL(e,t){var n={};return t.forEach((function(t){var r=oM(e,t);n=aM(n,t,r)})),n}function NL(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return _L(t,e,n)}))}function _L(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function IL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Rw(t.target)&&e in t.target?t.target[e]:t}function RL(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(aI(e.slice(0,n)),[o],aI(e.slice(n,t)),aI(e.slice(t+1,r))):i<0?[].concat(aI(e.slice(0,t)),aI(e.slice(t+1,n+1)),[o],aI(e.slice(n+1,r))):e}var ML=["name"],PL=[];function TL(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var jL=function(e){q_(n,e);var t=Z_(n);function n(e){var r;return W_(this,n),Pw(Y_(r=t.call(this,e)),"state",{resetCount:0}),Pw(Y_(r),"cancelRegisterFunc",null),Pw(Y_(r),"mounted",!1),Pw(Y_(r),"touched",!1),Pw(Y_(r),"dirty",!1),Pw(Y_(r),"validatePromise",void 0),Pw(Y_(r),"prevValidating",void 0),Pw(Y_(r),"errors",PL),Pw(Y_(r),"warnings",PL),Pw(Y_(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,$L(o)),r.cancelRegisterFunc=null})),Pw(Y_(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(aI(void 0===n?[]:n),aI(t)):[]})),Pw(Y_(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),Pw(Y_(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Pw(Y_(r),"metaCache",null),Pw(Y_(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=rS(rS({},r.getMeta()),{},{destroy:e});mI(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Pw(Y_(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,c=o.onReset,s=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(s),p=t&&NL(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=PL,r.warnings=PL,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=PL,r.warnings=PL,r.triggerMetaEvent(),null==c||c(),void r.refresh();break;case"remove":if(i)return void r.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(r.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(r.errors=m.errors||PL),"warnings"in m&&(r.warnings=m.warnings||PL),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in m&&NL(t,u,!0))return void r.reRender();if(i&&!u.length&&TL(i,e,s,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map($L).some((function(e){return NL(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&TL(i,e,s,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),Pw(Y_(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(SA(yA().mark((function o(){var a,l,s,u,d,f,p;return yA().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||HD(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===c){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=CL(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:PL;if(r.validatePromise===c){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?PL:r;t?o.push.apply(o,aI(i)):n.push.apply(n,aI(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return l||(r.validatePromise=c,r.dirty=!0,r.errors=PL,r.warnings=PL,r.triggerMetaEvent(),r.reRender()),c})),Pw(Y_(r),"isFieldValidating",(function(){return!!r.validatePromise})),Pw(Y_(r),"isFieldTouched",(function(){return r.touched})),Pw(Y_(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(DD).getInitialValue)(r.getNamePath())})),Pw(Y_(r),"getErrors",(function(){return r.errors})),Pw(Y_(r),"getWarnings",(function(){return r.warnings})),Pw(Y_(r),"isListField",(function(){return r.props.isListField})),Pw(Y_(r),"isList",(function(){return r.props.isList})),Pw(Y_(r),"isPreserve",(function(){return r.props.preserve})),Pw(Y_(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Pw(Y_(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return rS(rS({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=h_(e);return 1===n.length&&H.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Pw(Y_(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return oM(e||t(!0),n)})),Pw(Y_(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,c=t.getValueProps,s=t.fieldContext,u=void 0!==o?o:s.validateTrigger,d=r.getNamePath(),f=s.getInternalHooks,p=s.getFieldsValue,m=f(DD).dispatch,h=r.getValue(),g=c||function(e){return Pw({},l,e)},v=e[n],b=rS(rS({},e),g(h));return b[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=i?i.apply(void 0,n):IL.apply(void 0,[l].concat(n)),a&&(e=a(e,h,p(!0))),m({type:"updateValue",namePath:d,value:e}),v&&v.apply(void 0,n)},HD(u||[]).forEach((function(e){var t=b[e];b[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&m({type:"validateField",namePath:d,triggerName:e})}})),b})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(DD).initEntityValue)(Y_(r)),r}return U_(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(DD).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:H.isValidElement(o)?e=H.cloneElement(o,this.getControlled(o.props)):(CS(!o,"`children` of Field is not validate ReactElement."),e=o),H.createElement(H.Fragment,{key:t},e)}}]),n}(H.Component);function AL(e){var t=e.name,n=Tw(e,ML),r=H.useContext(BD),o=H.useContext(FD),i=void 0!==t?$L(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),H.createElement(jL,kw({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function zL(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=H.useContext(BD),c=H.useContext(FD),s=H.useRef({keys:[],id:0}).current,u=H.useMemo((function(){var e=$L(l.prefixName)||[];return[].concat(aI(e),aI($L(t)))}),[l.prefixName,t]),d=H.useMemo((function(){return rS(rS({},l),{},{prefixName:u})}),[l,u]),f=H.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[s.keys[n],e.slice(t+1)]}}}),[u]);return"function"!=typeof r?(CS(!1,"Form.List only accepts function as children."),null):H.createElement(FD.Provider,{value:f},H.createElement(BD.Provider,{value:d},H.createElement(AL,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!c},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,c=function(){return a(u||[])||[]},d={add:function(e,t){var n=c();t>=0&&t<=n.length?(s.keys=[].concat(aI(s.keys.slice(0,t)),[s.id],aI(s.keys.slice(t))),i([].concat(aI(n.slice(0,t)),[e],aI(n.slice(t))))):(s.keys=[].concat(aI(s.keys),[s.id]),i([].concat(aI(n),[e]))),s.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(s.keys=RL(s.keys,e,t),i(RL(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var 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}})),d,t)}))))}Pw(jL,"contextType",BD),Pw(jL,"defaultProps",{trigger:"onChange",valuePropName:"value"});var DL="__@field_split__";function LL(e){return e.map((function(e){return"".concat(Rw(e),":").concat(e)})).join(DL)}var BL=function(){function e(){W_(this,e),Pw(this,"kvs",new Map)}return U_(e,[{key:"set",value:function(e,t){this.kvs.set(LL(e),t)}},{key:"get",value:function(e){return this.kvs.get(LL(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(LL(e))}},{key:"map",value:function(e){return aI(this.kvs.entries()).map((function(t){var n=Iw(t,2),r=n[0],o=n[1],i=r.split(DL);return e({key:i.map((function(e){var t=Iw(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),FL=["name"],HL=U_((function e(t){var n=this;W_(this,e),Pw(this,"formHooked",!1),Pw(this,"forceRootUpdate",void 0),Pw(this,"subscribable",!0),Pw(this,"store",{}),Pw(this,"fieldEntities",[]),Pw(this,"initialValues",{}),Pw(this,"callbacks",{}),Pw(this,"validateMessages",null),Pw(this,"preserve",null),Pw(this,"lastValidatePromise",null),Pw(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Pw(this,"getInternalHooks",(function(e){return e===DD?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(CS(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Pw(this,"useSubscribe",(function(e){n.subscribable=e})),Pw(this,"prevWithoutPreserves",null),Pw(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=sM(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=aM(o,n,oM(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Pw(this,"destroyForm",(function(){var e=new BL;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Pw(this,"getInitialValue",(function(e){var t=oM(n.initialValues,e);return e.length?sM(t):t})),Pw(this,"setCallbacks",(function(e){n.callbacks=e})),Pw(this,"setValidateMessages",(function(e){n.validateMessages=e})),Pw(this,"setPreserve",(function(e){n.preserve=e})),Pw(this,"watchList",[]),Pw(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Pw(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),Pw(this,"timeoutId",null),Pw(this,"warningUnhooked",(function(){})),Pw(this,"updateStore",(function(e){n.store=e})),Pw(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Pw(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new BL;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Pw(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=$L(e);return t.get(n)||{INVALIDATE_NAME_PATH:$L(e)}}))})),Pw(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Rw(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),OL(n.store,l.map($L))})),Pw(this,"getFieldValue",(function(e){n.warningUnhooked();var t=$L(e);return oM(n.store,t)})),Pw(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:$L(e[n]),errors:[],warnings:[]}}))})),Pw(this,"getFieldError",(function(e){n.warningUnhooked();var t=$L(e);return n.getFieldsError([t])[0].errors})),Pw(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=$L(e);return n.getFieldsError([t])[0].warnings})),Pw(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map($L),l=!1):(o=null,l=i):(o=i.map($L),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every(s):c.some(s);var u=new BL;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(aI(t),[e])}))}))}));var d=function(e){return e.some(s)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),Pw(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Pw(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map($L);return t.some((function(e){var t=e.getNamePath();return NL(r,t)&&e.isFieldValidating()}))})),Pw(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Pw(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new BL,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,aI(aI(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))CS(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)CS(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(aM(n.store,o,aI(i)[0].value))}}}}))})),Pw(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(sM(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map($L);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(aM(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Pw(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=Tw(e,FL),a=$L(o);r.push(a),"value"in i&&n.updateStore(aM(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Pw(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=rS(rS({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Pw(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===oM(n.store,r)&&n.updateStore(aM(n.store,r,t))}})),Pw(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Pw(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!_L(e.getNamePath(),t)}))){var l=n.store;n.updateStore(aM(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),Pw(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),Pw(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=rS(rS({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Pw(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(aI(r))}),r})),Pw(this,"updateValue",(function(e,t){var r=$L(e),o=n.store;n.updateStore(aM(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(OL(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(aI(i)))})),Pw(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=sM(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Pw(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Pw(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new BL;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=$L(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Pw(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new BL;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return NL(e,n)}));a.length&&r(a,o)}})),Pw(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map($L):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||NL(a,t,d)){var r=e.validateRules(rS({validateMessages:rS(rS({},vL),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,aI(n)):r.push.apply(r,aI(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var h=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(h),m})),Pw(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function WL(e){var t=H.useRef(),n=Iw(H.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new HL((function(){n({})}));t.current=r.getForm()}return[t.current]}var VL=H.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),UL=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=H.useContext(VL),a=H.useRef({});return H.createElement(VL.Provider,{value:rS(rS({},i),{},{validateMessages:rS(rS({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=rS(rS({},a.current),{},Pw({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=rS({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},KL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],qL=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,l=e.children,c=e.component,s=void 0===c?"form":c,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,m=e.onFieldsChange,h=e.onFinish,g=e.onFinishFailed,v=Tw(e,KL),b=H.useContext(VL),y=Iw(WL(i),1)[0],w=y.getInternalHooks(DD),S=w.useSubscribe,x=w.setInitialValues,C=w.setCallbacks,E=w.setValidateMessages,k=w.setPreserve,$=w.destroyForm;H.useImperativeHandle(t,(function(){return y})),H.useEffect((function(){return b.registerForm(n,y),function(){b.unregisterForm(n)}}),[b,y,n]),E(rS(rS({},b.validateMessages),u)),C({onValuesChange:p,onFieldsChange:function(e){if(b.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];m.apply(void 0,[e].concat(r))}},onFinish:function(e){b.triggerFormFinish(n,e),h&&h(e)},onFinishFailed:g}),k(a);var O,N=H.useRef(null);x(r,!N.current),N.current||(N.current=!0),H.useEffect((function(){return $}),[]);var _="function"==typeof l;O=_?l(y.getFieldsValue(!0),y):l,S(!_);var I=H.useRef();H.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Rw(e)||"object"!==Rw(t))return!1;var n=Object.keys(e),r=Object.keys(t);return aI(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(I.current||[],o||[])||y.setFields(o||[]),I.current=o}),[o,y]);var R=H.useMemo((function(){return rS(rS({},y),{},{validateTrigger:f})}),[y,f]),M=H.createElement(FD.Provider,{value:null},H.createElement(BD.Provider,{value:R},O));return!1===s?M:H.createElement(s,kw({},v,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),y.submit()},onReset:function(e){var t;e.preventDefault(),y.resetFields(),null===(t=v.onReset)||void 0===t||t.call(v,e)}}),M)};function XL(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function GL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,l=a.form,c=Iw(H.useState(),2),s=c[0],u=c[1],d=H.useMemo((function(){return XL(s)}),[s]),f=H.useRef(d);f.current=d;var p=H.useContext(BD),m=l||p,h=m&&m._init,g=$L(r),v=H.useRef(g);return v.current=g,H.useEffect((function(){if(h){var e=m.getFieldsValue,t=(0,m.getInternalHooks)(DD).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof r?r(n):oM(n,v.current)},o=t((function(e,t){var r=n(e,t),o=XL(r);f.current!==o&&(f.current=o,u(r))})),i=n(e(),e(!0));return s!==i&&u(i),o}}),[h]),s}var YL=H.forwardRef(qL);YL.FormProvider=UL,YL.Field=AL,YL.List=zL,YL.useForm=WL,YL.useWatch=GL;const QL=H.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),ZL=H.createContext(null),JL=e=>{const t=oI(e,["prefixCls"]);return H.createElement(UL,Object.assign({},t))},eB=H.createContext({prefixCls:""}),tB=H.createContext({}),nB=e=>{let{children:t,status:n,override:r}=e;const o=H.useContext(tB),i=H.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return H.createElement(tB.Provider,{value:i},t)},rB=H.createContext(void 0);function oB(){}const iB=H.createContext({add:oB,remove:oB}),aB=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=H.useContext(aD);return W.createElement(rD,Object.assign({onClick:n},e),t)},lB=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=H.useContext(aD);return W.createElement(rD,Object.assign({},fz(n),{loading:e,onClick:o},t),r)};function cB(e,t){return W.createElement("span",{className:`${e}-close-x`},t||W.createElement(ux,{className:`${e}-close-icon`}))}const sB=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:s}=e,[u]=EM("Modal",xM()),d={confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:r||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},f=W.useMemo((()=>d),aI(Object.values(d)));let p;return"function"==typeof s||void 0===s?(p=W.createElement(W.Fragment,null,W.createElement(aB,null),W.createElement(lB,null)),"function"==typeof s&&(p=s(p,{OkBtn:lB,CancelBtn:aB})),p=W.createElement(lD,{value:f},p)):p=s,W.createElement(uP,{disabled:!1},p)},uB=e=>({animationDuration:e,animationFillMode:"both"}),dB=e=>({animationDuration:e,animationFillMode:"both"}),fB=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},uB(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},dB(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pB=new tM("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),mB=new tM("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),hB=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[fB(r,pB,mB,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},gB=new tM("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vB=new tM("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),bB=new tM("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yB=new tM("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),wB=new tM("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),SB=new tM("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),xB={"move-up":{inKeyframes:new tM("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 tM("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:gB,outKeyframes:vB},"move-left":{inKeyframes:bB,outKeyframes:yB},"move-right":{inKeyframes:wB,outKeyframes:SB}},CB=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=xB[t];return[fB(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},EB=new tM("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),kB=new tM("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$B=new tM("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),OB=new tM("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),NB=new tM("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),_B=new tM("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),IB=new tM("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),RB=new tM("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),MB={"slide-up":{inKeyframes:EB,outKeyframes:kB},"slide-down":{inKeyframes:$B,outKeyframes:OB},"slide-left":{inKeyframes:NB,outKeyframes:_B},"slide-right":{inKeyframes:IB,outKeyframes:RB}},PB=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=MB[t];return[fB(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}}]},TB=new tM("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),jB=new tM("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),AB=new tM("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zB=new tM("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),DB=new tM("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),LB=new tM("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),BB=new tM("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),FB=new tM("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),HB=new tM("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),WB=new tM("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),VB=new tM("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),UB=new tM("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),KB={zoom:{inKeyframes:TB,outKeyframes:jB},"zoom-big":{inKeyframes:AB,outKeyframes:zB},"zoom-big-fast":{inKeyframes:AB,outKeyframes:zB},"zoom-left":{inKeyframes:BB,outKeyframes:FB},"zoom-right":{inKeyframes:HB,outKeyframes:WB},"zoom-up":{inKeyframes:DB,outKeyframes:LB},"zoom-down":{inKeyframes:VB,outKeyframes:UB}},qB=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=KB[t];return[fB(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}}]},XB=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});function GB(e){return{position:e,inset:0}}const YB=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}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},GB("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},GB("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:hB(e)}]},QB=e=>{const{componentCls:t}=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:`${PI(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},PP(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${PI(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({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 ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${PI(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},zP(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${PI(e.borderRadiusLG)} ${PI(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}-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}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ZB=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},JB=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return KP(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,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},eF=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${PI(e.paddingMD)} ${PI(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${PI(e.padding)} ${PI(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${PI(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${PI(e.paddingXS)} ${PI(e.padding)}`:0,footerBorderTop:e.wireframe?`${PI(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${PI(2*e.padding)} ${PI(2*e.padding)} ${PI(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),tF=tT("Modal",(e=>{const t=JB(e);return[QB(t),ZB(t),YB(t),qB(t,"zoom")]}),eF,{unitless:{titleLineHeight:!0}});var nF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let rF;const oF=e=>{rF={x:e.pageX,y:e.pageY},setTimeout((()=>{rF=null}),100)};oS()&&window.document.documentElement&&document.documentElement.addEventListener("click",oF,!0);const iF=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=H.useContext(aP),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:l,className:c,rootClassName:s,open:u,wrapClassName:d,centered:f,getContainer:p,closeIcon:m,closable:h,focusTriggerAfterClose:g=!0,style:v,visible:b,width:y=520,footer:w,classNames:S,styles:x}=e,C=nF(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),E=r("modal",l),k=r(),$=Pj(E),[O,N,_]=tF(E,$),I=m_(d,{[`${E}-centered`]:!!f,[`${E}-wrap-rtl`]:"rtl"===o}),R=null!==w&&H.createElement(sB,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[M,P]=jD(h,void 0!==m?m:null==i?void 0:i.closeIcon,(e=>cB(E,e)),H.createElement(ux,{className:`${E}-close-icon`}),!0),T=function(e){const t=H.useContext(iB),n=H.useRef();return OP((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}(`.${E}-content`),[j,A]=Yj("Modal",C.zIndex);return O(H.createElement(oz,null,H.createElement(nB,{status:!0,override:!0},H.createElement(Uj.Provider,{value:A},H.createElement(TD,Object.assign({width:y},C,{zIndex:j,getContainer:void 0===p?n:p,prefixCls:E,rootClassName:m_(N,s,_,$),footer:R,visible:null!=u?u:b,mousePosition:null!==(t=C.mousePosition)&&void 0!==t?t:rF,onClose:a,closable:M,closeIcon:P,focusTriggerAfterClose:g,transitionName:LA(k,"zoom",e.transitionName),maskTransitionName:LA(k,"fade",e.maskTransitionName),className:m_(N,c,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),v),classNames:Object.assign(Object.assign(Object.assign({},null==i?void 0:i.classNames),S),{wrapper:m_(I,null==S?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},null==i?void 0:i.styles),x),panelRef:T}))))))},aF=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).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% - ${PI(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{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}}},lF=JP(["Modal","confirm"],(e=>{const t=JB(e);return[aF(t)]}),eF,{order:-1e3});var cF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function sF(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:c,locale:s}=e,u=cF(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=H.createElement(pC,null);break;case"success":d=H.createElement(ZS,null);break;case"error":d=H.createElement(lx,null);break;default:d=H.createElement(Dx,null)}const f=null!=l?l:"confirm"===a,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[m]=EM("Modal"),h=s||m,g=r||(f?null==h?void 0:h.okText:null==h?void 0:h.justOkText),v=o||(null==h?void 0:h.cancelText),b=Object.assign({autoFocusButton:p,cancelTextLocale:v,okTextLocale:g,mergedOkCancel:f},u),y=H.useMemo((()=>b),aI(Object.values(b))),w=H.createElement(H.Fragment,null,H.createElement(cD,null),H.createElement(sD,null)),S=void 0!==e.title&&null!==e.title,x=`${i}-body`;return H.createElement("div",{className:`${i}-body-wrapper`},H.createElement("div",{className:m_(x,{[`${x}-has-title`]:S})},d,H.createElement("div",{className:`${i}-paragraph`},S&&H.createElement("span",{className:`${i}-title`},e.title),H.createElement("div",{className:`${i}-content`},e.content))),void 0===c||"function"==typeof c?H.createElement(lD,{value:y},H.createElement("div",{className:`${i}-btns`},"function"==typeof c?c(w,{OkBtn:sD,CancelBtn:cD}):w)):c,H.createElement(lF,{prefixCls:t}))}const uF=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:l,maskStyle:c,direction:s,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:m=!1,closeIcon:h,modalRender:g,focusTriggerAfterClose:v,onConfirm:b,styles:y}=e,w=`${u}-confirm`,S=e.width||416,x=e.style||{},C=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,k=m_(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===s},e.className),[,$]=$P(),O=H.useMemo((()=>void 0!==n?n:$.zIndexPopupBase+qj),[n,$]);return H.createElement(iF,{prefixCls:u,className:k,wrapClassName:m_({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==b||b(!1)},open:o,title:"",footer:null,transitionName:LA(f||"","zoom",e.transitionName),maskTransitionName:LA(f||"","fade",e.maskTransitionName),mask:C,maskClosable:E,style:x,styles:Object.assign({body:p,mask:c},y),width:S,zIndex:O,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:m,closeIcon:h,modalRender:g,focusTriggerAfterClose:v},H.createElement(sF,Object.assign({},e,{confirmPrefixCls:w})))},dF=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return H.createElement(mj,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},H.createElement(uF,Object.assign({},e)))},fF=[];let pF="";function mF(){return pF}const hF=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=xM(),l=H.useContext(aP),c=mF()||l.getPrefixCls(),s=r||`${c}-modal`;let u=o;return!1===u&&(u=void 0),W.createElement(dF,Object.assign({},e,{rootPrefixCls:c,prefixCls:s,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!=i?i:l.direction,locale:null!==(n=null===(t=l.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:a,getContainer:u}))};function gF(e){const t=dj(),n=document.createDocumentFragment();let r,o=Object.assign(Object.assign({},e),{close:l,open:!0});function i(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];const i=r.some((e=>e&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(aI(r.slice(1))));for(let e=0;e<fF.length;e++)if(fF[e]===l){fF.splice(e,1);break}PA(n)}function a(e){clearTimeout(r),r=setTimeout((()=>{const r=t.getPrefixCls(void 0,mF()),o=t.getIconPrefixCls(),i=t.getTheme(),a=W.createElement(hF,Object.assign({},e));_A(W.createElement(mj,{prefixCls:r,iconPrefixCls:o,theme:i},t.holderRender?t.holderRender(a):a),n)}))}function l(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];o=Object.assign(Object.assign({},o),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),i.apply(this,n)}}),o.visible&&delete o.visible,a(o)}return a(o),fF.push(l),{destroy:l,update:function(e){o="function"==typeof e?e(o):Object.assign(Object.assign({},o),e),a(o)}}}function vF(e){return Object.assign(Object.assign({},e),{type:"warning"})}function bF(e){return Object.assign(Object.assign({},e),{type:"info"})}function yF(e){return Object.assign(Object.assign({},e),{type:"success"})}function wF(e){return Object.assign(Object.assign({},e),{type:"error"})}function SF(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var xF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const CF=(e,t)=>{var n,{afterClose:r,config:o}=e,i=xF(e,["afterClose","config"]);const[a,l]=H.useState(!0),[c,s]=H.useState(o),{direction:u,getPrefixCls:d}=H.useContext(aP),f=d("modal"),p=d(),m=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.some((e=>e&&e.triggerCancel));c.onCancel&&r&&c.onCancel.apply(c,[()=>{}].concat(aI(t.slice(1))))};H.useImperativeHandle(t,(()=>({destroy:m,update:e=>{s((t=>Object.assign(Object.assign({},t),e)))}})));const h=null!==(n=c.okCancel)&&void 0!==n?n:"confirm"===c.type,[g]=EM("Modal",bM.Modal);return H.createElement(dF,Object.assign({prefixCls:f,rootPrefixCls:p},c,{close:m,open:a,afterClose:()=>{var e;r(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(h?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:c.direction||u,cancelText:c.cancelText||(null==g?void 0:g.cancelText)},i))},EF=H.forwardRef(CF);let kF=0;const $F=H.memo(H.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=H.useState([]);return[e,H.useCallback((e=>(t((t=>[].concat(aI(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return H.useImperativeHandle(t,(()=>({patchElement:r})),[]),H.createElement(H.Fragment,null,n)}))),OF=W.createContext({});function NF(e){return t=>H.createElement(mj,{theme:{token:{motion:!1,zIndexPopupBase:0}}},H.createElement(e,Object.assign({},t)))}const _F=(e,t,n,r)=>NF((o=>{const{prefixCls:i,style:a}=o,l=H.useRef(null),[c,s]=H.useState(0),[u,d]=H.useState(0),[f,p]=IP(!1,{value:o.open}),{getPrefixCls:m}=H.useContext(aP),h=m(t||"select",i);H.useEffect((()=>{if(p(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;s(t.offsetHeight+8),d(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(h)}`:`.${h}-dropdown`,i=null===(r=l.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let g=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},a),{margin:0}),open:f,visible:f,getPopupContainer:()=>l.current});r&&(g=r(g));const v={paddingBottom:c,position:"relative",minWidth:u};return H.createElement("div",{ref:l,style:v},H.createElement(e,Object.assign({},g)))})),IF=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|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|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var RF=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,l="function"==typeof n?n(r):n;return H.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:H.createElement("span",{className:Aw(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},o))},MF=H.createContext(null);function PF(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=H.useRef(null),n=H.useRef(null);return H.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var TF=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],jF=void 0;function AF(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,s=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,m=e.order,h=e.component,g=void 0===h?"div":h,v=Tw(e,TF),b=a&&!p;function y(e){c(s,e)}H.useEffect((function(){return function(){y(null)}}),[]);var w,S=i&&o!==jF?i(o,{index:m}):f;r||(w={opacity:b?0:1,height:b?0:jF,overflowY:b?"hidden":jF,order:a?m:jF,pointerEvents:b?"none":jF,position:b?"absolute":jF});var x={};b&&(x["aria-hidden"]=!0);var C=H.createElement(g,kw({className:Aw(!r&&n,u),style:rS(rS({},w),d)},x,v,{ref:t}),S);return a&&(C=H.createElement(rI,{onResize:function(e){y(e.offsetWidth)},disabled:l},C)),C}var zF=H.forwardRef(AF);function DF(){var e=H.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)fI(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){cd.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function LF(e,t){var n=Iw(H.useState(t),2),r=n[0],o=n[1];return[r,OP((function(t){e((function(){o(t)}))}))]}zF.displayName="Item";var BF=W.createContext(null),FF=["component"],HF=["className"],WF=["className"],VF=function(e,t){var n=H.useContext(BF);if(!n){var r=e.component,o=void 0===r?"div":r,i=Tw(e,FF);return H.createElement(o,kw({},i,{ref:t}))}var a=n.className,l=Tw(n,HF),c=e.className,s=Tw(e,WF);return H.createElement(BF.Provider,{value:null},H.createElement(zF,kw({ref:t,className:Aw(a,c)},l,s)))},UF=H.forwardRef(VF);UF.displayName="RawItem";var KF=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],qF="responsive",XF="invalidate";function GF(e){return"+ ".concat(e.length," ...")}function YF(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,o=e.data,i=void 0===o?[]:o,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,s=e.itemWidth,u=void 0===s?10:s,d=e.ssr,f=e.style,p=e.className,m=e.maxCount,h=e.renderRest,g=e.renderRawRest,v=e.prefix,b=e.suffix,y=e.component,w=void 0===y?"div":y,S=e.itemComponent,x=e.onVisibleChange,C=Tw(e,KF),E="full"===d,k=DF(),$=Iw(LF(k,null),2),O=$[0],N=$[1],_=O||0,I=Iw(LF(k,new Map),2),R=I[0],M=I[1],P=Iw(LF(k,0),2),T=P[0],j=P[1],A=Iw(LF(k,0),2),z=A[0],D=A[1],L=Iw(LF(k,0),2),B=L[0],F=L[1],W=Iw(LF(k,0),2),V=W[0],U=W[1],K=Iw(H.useState(null),2),q=K[0],X=K[1],G=Iw(H.useState(null),2),Y=G[0],Q=G[1],Z=H.useMemo((function(){return null===Y&&E?Number.MAX_SAFE_INTEGER:Y||0}),[Y,O]),J=Iw(H.useState(!1),2),ee=J[0],te=J[1],ne="".concat(r,"-item"),re=Math.max(T,z),oe=m===qF,ie=i.length&&oe,ae=m===XF,le=ie||"number"==typeof m&&i.length>m,ce=H.useMemo((function(){var e=i;return ie?e=null===O&&E?i:i.slice(0,Math.min(i.length,_/u)):"number"==typeof m&&(e=i.slice(0,m)),e}),[i,u,O,m,ie]),se=H.useMemo((function(){return ie?i.slice(Z+1):i.slice(ce.length)}),[i,ce,ie,Z]),ue=H.useCallback((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),de=H.useCallback(a||function(e){return e},[a]);function fe(e,t,n){(Y!==e||void 0!==t&&t!==q)&&(Q(e),n||(te(e<i.length-1),null==x||x(e)),void 0!==t&&X(t))}function pe(e,t){M((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function me(e){return R.get(ue(ce[e],e))}LI((function(){if(_&&"number"==typeof re&&ce){var e=B+V,t=ce.length,n=t-1;if(!t)return void fe(0,null);for(var r=0;r<t;r+=1){var o=me(r);if(E&&(o=o||0),void 0===o){fe(r-1,void 0,!0);break}if(e+=o,0===n&&e<=_||r===n-1&&e+me(n)<=_){fe(n,null);break}if(e+re>_){fe(r-1,e-o-V+z);break}}b&&me(0)+V>_&&X(null)}}),[_,R,z,B,V,ue,ce]);var he=ee&&!!se.length,ge={};null!==q&&ie&&(ge={position:"absolute",left:q,top:0});var ve={prefixCls:ne,responsive:ie,component:S,invalidate:ae},be=l?function(e,t){var n=ue(e,t);return H.createElement(BF.Provider,{key:n,value:rS(rS({},ve),{},{order:t,item:e,itemKey:n,registerSize:pe,display:t<=Z})},l(e,t))}:function(e,t){var n=ue(e,t);return H.createElement(zF,kw({},ve,{order:t,key:n,item:e,renderItem:de,itemKey:n,registerSize:pe,display:t<=Z}))},ye={order:he?Z:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){D(t),j(z)},display:he},we=h||GF,Se=g?H.createElement(BF.Provider,{value:rS(rS({},ve),ye)},g(se)):H.createElement(zF,kw({},ve,ye),"function"==typeof we?we(se):we),xe=H.createElement(w,kw({className:Aw(!ae&&r,p),style:f,ref:t},C),v&&H.createElement(zF,kw({},ve,{responsive:oe,responsiveDisabled:!ie,order:-1,className:"".concat(ne,"-prefix"),registerSize:function(e,t){F(t)},display:!0}),v),ce.map(be),le?Se:null,b&&H.createElement(zF,kw({},ve,{responsive:oe,responsiveDisabled:!ie,order:Z,className:"".concat(ne,"-suffix"),registerSize:function(e,t){U(t)},display:!0,style:ge}),b));return oe?H.createElement(rI,{onResize:function(e,t){N(t.clientWidth)},disabled:!ie},xe):xe}var QF=H.forwardRef(YF);QF.displayName="Overflow",QF.Item=UF,QF.RESPONSIVE=qF,QF.INVALIDATE=XF;var ZF=function(e,t){var n,r=e.prefixCls,o=e.id,i=e.inputElement,a=e.disabled,l=e.tabIndex,c=e.autoFocus,s=e.autoComplete,u=e.editable,d=e.activeDescendantId,f=e.value,p=e.maxLength,m=e.onKeyDown,h=e.onMouseDown,g=e.onChange,v=e.onPaste,b=e.onCompositionStart,y=e.onCompositionEnd,w=e.open,S=e.attrs,x=i||H.createElement("input",null),C=x,E=C.ref,k=C.props,$=k.onKeyDown,O=k.onChange,N=k.onMouseDown,_=k.onCompositionStart,I=k.onCompositionEnd,R=k.style;return x.props,x=H.cloneElement(x,rS(rS(rS({type:"search"},k),{},{id:o,ref:ik(t,E),disabled:a,tabIndex:l,autoComplete:s||"off",autoFocus:c,className:Aw("".concat(r,"-selection-search-input"),null===(n=x)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?d:void 0},S),{},{value:u?f:"",maxLength:p,readOnly:!u,unselectable:u?null:"on",style:rS(rS({},R),{},{opacity:u?null:0}),onKeyDown:function(e){m(e),$&&$(e)},onMouseDown:function(e){h(e),N&&N(e)},onChange:function(e){g(e),O&&O(e)},onCompositionStart:function(e){b(e),_&&_(e)},onCompositionEnd:function(e){y(e),I&&I(e)},onPaste:v}))},JF=H.forwardRef(ZF);function eH(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var tH="undefined"!=typeof window&&window.document&&window.document.documentElement;function nH(e){return["string","number"].includes(Rw(e))}function rH(e){var t=void 0;return e&&(nH(e.title)?t=e.title.toString():nH(e.label)&&(t=e.label.toString())),t}function oH(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var iH=function(e){e.preventDefault(),e.stopPropagation()},aH=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,a=e.open,l=e.searchValue,c=e.autoClearSearchValue,s=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,m=e.autoFocus,h=e.autoComplete,g=e.activeDescendantId,v=e.tabIndex,b=e.removeIcon,y=e.maxTagCount,w=e.maxTagTextLength,S=e.maxTagPlaceholder,x=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,C=e.tagRender,E=e.onToggleOpen,k=e.onRemove,$=e.onInputChange,O=e.onInputPaste,N=e.onInputKeyDown,_=e.onInputMouseDown,I=e.onInputCompositionStart,R=e.onInputCompositionEnd,M=H.useRef(null),P=Iw(H.useState(0),2),T=P[0],j=P[1],A=Iw(H.useState(!1),2),z=A[0],D=A[1],L="".concat(o,"-selection"),B=a||"multiple"===f&&!1===c||"tags"===f?l:"",F="tags"===f||"multiple"===f&&!1===c||p&&(a||z);t=function(){j(M.current.scrollWidth)},n=[B],tH?H.useLayoutEffect(t,n):H.useEffect(t,n);var W=function(e,t,n,r,o){return H.createElement("span",{title:rH(e),className:Aw("".concat(L,"-item"),Pw({},"".concat(L,"-item-disabled"),n))},H.createElement("span",{className:"".concat(L,"-item-content")},t),r&&H.createElement(RF,{className:"".concat(L,"-item-remove"),onMouseDown:iH,onClick:o,customizeIcon:b},"×"))},V=H.createElement("div",{className:"".concat(L,"-search"),style:{width:T},onFocus:function(){D(!0)},onBlur:function(){D(!1)}},H.createElement(JF,{ref:s,open:a,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:m,autoComplete:h,editable:F,activeDescendantId:g,value:B,onKeyDown:N,onMouseDown:_,onChange:$,onPaste:O,onCompositionStart:I,onCompositionEnd:R,tabIndex:v,attrs:yj(e,!0)}),H.createElement("span",{ref:M,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},B," ")),U=H.createElement(QF,{prefixCls:"".concat(L,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var l=String(i);l.length>w&&(i="".concat(l.slice(0,w),"..."))}var c=function(t){t&&t.stopPropagation(),k(e)};return"function"==typeof C?function(e,t,n,r,o){return H.createElement("span",{onMouseDown:function(e){iH(e),E(!a)}},C({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,c):W(e,i,t,o,c)},renderRest:function(e){var t="function"==typeof x?x(e):x;return W({title:t},t,!1)},suffix:V,itemKey:oH,maxCount:y});return H.createElement(H.Fragment,null,U,!i.length&&!B&&H.createElement("span",{className:"".concat(L,"-placeholder")},u))},lH=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,u=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,m=e.showSearch,h=e.searchValue,g=e.activeValue,v=e.maxLength,b=e.onInputKeyDown,y=e.onInputMouseDown,w=e.onInputChange,S=e.onInputPaste,x=e.onInputCompositionStart,C=e.onInputCompositionEnd,E=e.title,k=Iw(H.useState(!1),2),$=k[0],O=k[1],N="combobox"===s,_=N||m,I=d[0],R=h||"";N&&g&&!$&&(R=g),H.useEffect((function(){N&&O(!1)}),[N,g]);var M=!("combobox"!==s&&!u&&!m||!R),P=void 0===E?rH(I):E,T=H.useMemo((function(){return I?null:H.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},f)}),[I,M,f,n]);return H.createElement(H.Fragment,null,H.createElement("span",{className:"".concat(n,"-selection-search")},H.createElement(JF,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:_,activeDescendantId:c,value:R,onKeyDown:b,onMouseDown:y,onChange:function(e){O(!0),w(e)},onPaste:S,onCompositionStart:x,onCompositionEnd:C,tabIndex:p,attrs:yj(e,!0),maxLength:N?v:void 0})),!N&&I?H.createElement("span",{className:"".concat(n,"-selection-item"),title:P,style:M?{visibility:"hidden"}:void 0},I.label):null,T)},cH=function(e,t){var n=H.useRef(null),r=H.useRef(!1),o=e.prefixCls,i=e.open,a=e.mode,l=e.showSearch,c=e.tokenWithEnter,s=e.autoClearSearchValue,u=e.onSearch,d=e.onSearchSubmit,f=e.onToggleOpen,p=e.onInputKeyDown,m=e.domRef;H.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var h=Iw(PF(0),2),g=h[0],v=h[1],b=H.useRef(null),y=function(e){!1!==u(e,!0,r.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==Tj.UP&&n!==Tj.DOWN||e.preventDefault(),p&&p(e),n!==Tj.ENTER||"tags"!==a||r.current||i||null==d||d(e.target.value),t=n,[Tj.ESC,Tj.SHIFT,Tj.BACKSPACE,Tj.TAB,Tj.WIN_KEY,Tj.ALT,Tj.META,Tj.WIN_KEY_RIGHT,Tj.CTRL,Tj.SEMICOLON,Tj.EQUALS,Tj.CAPS_LOCK,Tj.CONTEXT_MENU,Tj.F1,Tj.F2,Tj.F3,Tj.F4,Tj.F5,Tj.F6,Tj.F7,Tj.F8,Tj.F9,Tj.F10,Tj.F11,Tj.F12].includes(t)||f(!0)},onInputMouseDown:function(){v(!0)},onInputChange:function(e){var t=e.target.value;if(c&&b.current&&/[\r\n]/.test(b.current)){var n=b.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,b.current)}b.current=null,y(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");b.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==a&&y(e.target.value)}},S="multiple"===a||"tags"===a?H.createElement(aH,kw({},e,w)):H.createElement(lH,kw({},e,w));return H.createElement("div",{ref:m,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=g();e.target===n.current||t||"combobox"===a||e.preventDefault(),("combobox"===a||l&&t)&&i||(i&&!1!==s&&u("",!0,!1),f())}},S)},sH=H.forwardRef(cH);function uH(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,s=void 0===c?0:c,u=o.y,d=void 0===u?0:u,f=H.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],h=n.points[1],g=m[0],v=m[1],b=h[0],y=h[1];g!==b&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=d,v!==y&&["l","r"].includes(v)?"l"===v?p.left=0:p.right=0:p.left=s}return H.createElement("div",{ref:f,className:Aw("".concat(t,"-arrow"),a),style:p},l)}function dH(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?H.createElement(VT,kw({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return H.createElement("div",{style:{zIndex:r},className:Aw("".concat(t,"-mask"),n)})})):null}var fH=H.memo((function(e){return e.children}),(function(e,t){return t.cache})),pH=H.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,s=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,m=e.arrowPos,h=e.align,g=e.motion,v=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,S=e.portal,x=e.zIndex,C=e.onMouseEnter,E=e.onMouseLeave,k=e.onPointerEnter,$=e.ready,O=e.offsetX,N=e.offsetY,_=e.offsetR,I=e.offsetB,R=e.onAlign,M=e.onPrepare,P=e.stretch,T=e.targetWidth,j=e.targetHeight,A="function"==typeof n?n():n,z=c||s,D=(null==y?void 0:y.length)>0,L=Iw(H.useState(!y||!D),2),B=L[0],F=L[1];if(LI((function(){!B&&D&&a&&F(!0)}),[B,D,a]),!B)return null;var W="auto",V={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if($||!c){var U,K=h.points,q=h.dynamicInset||(null===(U=h._experimental)||void 0===U?void 0:U.dynamicInset),X=q&&"r"===K[0][1],G=q&&"b"===K[0][0];X?(V.right=_,V.left=W):(V.left=O,V.right=W),G?(V.bottom=I,V.top=W):(V.top=N,V.bottom=W)}var Y={};return P&&(P.includes("height")&&j?Y.height=j:P.includes("minHeight")&&j&&(Y.minHeight=j),P.includes("width")&&T?Y.width=T:P.includes("minWidth")&&T&&(Y.minWidth=T)),c||(Y.pointerEvents="none"),H.createElement(S,{open:b||z,getContainer:y&&function(){return y(a)},autoDestroy:w},H.createElement(dH,{prefixCls:o,open:c,zIndex:x,mask:f,motion:v}),H.createElement(rI,{onResize:R,disabled:!c},(function(e){return H.createElement(VT,kw({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:M,onEnterPrepare:M,visible:c,onVisibleChanged:function(e){var t;null==g||null===(t=g.onVisibleChanged)||void 0===t||t.call(g,e),l(e)}}),(function(n,a){var l=n.className,s=n.style,f=Aw(o,l,r);return H.createElement("div",{ref:ik(e,t,a),className:f,style:rS(rS(rS(rS({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},V),Y),s),{},{boxSizing:"border-box",zIndex:x},i),onMouseEnter:C,onMouseLeave:E,onPointerEnter:k,onClick:d},p&&H.createElement(uH,{prefixCls:o,arrow:p,arrowPos:m,align:h}),H.createElement(fH,{cache:!c&&!u},A))}))})))})),mH=H.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=lk(n),i=H.useCallback((function(e){ok(t,r?r(e):e)}),[r]),a=ak(i,n.ref);return o?H.cloneElement(n,{ref:a}):n})),hH=H.createContext(null);function gH(e){return e?Array.isArray(e)?e:[e]:[]}function vH(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function bH(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function yH(e){return e.ownerDocument.defaultView}function wH(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=yH(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function SH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function xH(e){return SH(parseFloat(e),0)}function CH(e,t){var n=rS({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=yH(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=xH(i),h=xH(a),g=xH(l),v=xH(c),b=SH(Math.round(s.width/f*1e3)/1e3),y=SH(Math.round(s.height/u*1e3)/1e3),w=(f-p-g-v)*b,S=(u-d-m-h)*y,x=m*y,C=h*y,E=g*b,k=v*b,$=0,O=0;if("clip"===r){var N=xH(o);$=N*b,O=N*y}var _=s.x+E-$,I=s.y+x-O,R=_+s.width+2*$-E-k-w,M=I+s.height+2*O-x-C-S;n.left=Math.max(n.left,_),n.top=Math.max(n.top,I),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,M)}})),n}function EH(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function kH(e,t){var n=Iw(t||[],2),r=n[0],o=n[1];return[EH(e.width,r),EH(e.height,o)]}function $H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function OH(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function NH(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var _H=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const IH=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:SD,t=H.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,l=void 0===a?"hover":a,c=t.showAction,s=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,m=t.mouseEnterDelay,h=t.mouseLeaveDelay,g=void 0===h?.1:h,v=t.focusDelay,b=t.blurDelay,y=t.mask,w=t.maskClosable,S=void 0===w||w,x=t.getPopupContainer,C=t.forceRender,E=t.autoDestroy,k=t.destroyPopupOnHide,$=t.popup,O=t.popupClassName,N=t.popupStyle,_=t.popupPlacement,I=t.builtinPlacements,R=void 0===I?{}:I,M=t.popupAlign,P=t.zIndex,T=t.stretch,j=t.getPopupClassNameFromAlign,A=t.fresh,z=t.alignPoint,D=t.onPopupClick,L=t.onPopupAlign,B=t.arrow,F=t.popupMotion,W=t.maskMotion,V=t.popupTransitionName,U=t.popupAnimation,K=t.maskTransitionName,q=t.maskAnimation,X=t.className,G=t.getTriggerDOMNode,Y=Tw(t,_H),Q=E||k||!1,Z=Iw(H.useState(!1),2),J=Z[0],ee=Z[1];LI((function(){ee(IF())}),[]);var te=H.useRef({}),ne=H.useContext(hH),re=H.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=kD(),ie=Iw(H.useState(null),2),ae=ie[0],le=ie[1],ce=OP((function(e){g_(e)&&ae!==e&&le(e),null==ne||ne.registerSubPopup(oe,e)})),se=Iw(H.useState(null),2),ue=se[0],de=se[1],fe=H.useRef(null),pe=OP((function(e){g_(e)&&ue!==e&&(de(e),fe.current=e)})),me=H.Children.only(i),he=(null==me?void 0:me.props)||{},ge={},ve=OP((function(e){var t,n,r=ue;return(null==r?void 0:r.contains(e))||(null===(t=bS(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=bS(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),be=bH(o,F,U,V),ye=bH(o,W,q,K),we=Iw(H.useState(d||!1),2),Se=we[0],xe=we[1],Ce=null!=u?u:Se,Ee=OP((function(e){void 0===u&&xe(e)}));LI((function(){xe(u||!1)}),[u]);var ke=H.useRef(Ce);ke.current=Ce;var $e=H.useRef([]);$e.current=[];var Oe=OP((function(e){var t;Ee(e),(null!==(t=$e.current[$e.current.length-1])&&void 0!==t?t:Ce)!==e&&($e.current.push(e),null==f||f(e))})),Ne=H.useRef(),_e=function(){clearTimeout(Ne.current)},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_e(),0===t?Oe(e):Ne.current=setTimeout((function(){Oe(e)}),1e3*t)};H.useEffect((function(){return _e}),[]);var Re=Iw(H.useState(!1),2),Me=Re[0],Pe=Re[1];LI((function(e){e&&!Ce||Pe(!0)}),[Ce]);var Te=Iw(H.useState(null),2),je=Te[0],Ae=Te[1],ze=Iw(H.useState([0,0]),2),De=ze[0],Le=ze[1],Be=function(e){Le([e.clientX,e.clientY])},Fe=function(e,t,n,r,o,i,a){var l=Iw(H.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),c=l[0],s=l[1],u=H.useRef(0),d=H.useMemo((function(){return t?wH(t):[]}),[t]),f=H.useRef({});e||(f.current={});var p=OP((function(){if(t&&n&&e){var l,c,u,p=t,m=p.ownerDocument,h=yH(p).getComputedStyle(p),g=h.width,v=h.height,b=h.position,y=p.style.left,w=p.style.top,S=p.style.right,x=p.style.bottom,C=p.style.overflow,E=rS(rS({},o[r]),i),k=m.createElement("div");if(null===(l=p.parentElement)||void 0===l||l.appendChild(k),k.style.left="".concat(p.offsetLeft,"px"),k.style.top="".concat(p.offsetTop,"px"),k.style.position=b,k.style.height="".concat(p.offsetHeight,"px"),k.style.width="".concat(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))u={x:n[0],y:n[1],width:0,height:0};else{var $=n.getBoundingClientRect();u={x:$.x,y:$.y,width:$.width,height:$.height}}var O=p.getBoundingClientRect(),N=m.documentElement,_=N.clientWidth,I=N.clientHeight,R=N.scrollWidth,M=N.scrollHeight,P=N.scrollTop,T=N.scrollLeft,j=O.height,A=O.width,z=u.height,D=u.width,L={left:0,top:0,right:_,bottom:I},B={left:-T,top:-P,right:R-T,bottom:M-P},F=E.htmlRegion,H="visible",W="visibleFirst";"scroll"!==F&&F!==W&&(F=H);var V=F===W,U=CH(B,d),K=CH(L,d),q=F===H?K:U,X=V?K:q;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var G=p.getBoundingClientRect();p.style.left=y,p.style.top=w,p.style.right=S,p.style.bottom=x,p.style.overflow=C,null===(c=p.parentElement)||void 0===c||c.removeChild(k);var Y=SH(Math.round(A/parseFloat(g)*1e3)/1e3),Q=SH(Math.round(j/parseFloat(v)*1e3)/1e3);if(0===Y||0===Q||g_(n)&&!FA(n))return;var Z=E.offset,J=E.targetOffset,ee=Iw(kH(O,Z),2),te=ee[0],ne=ee[1],re=Iw(kH(u,J),2),oe=re[0],ie=re[1];u.x-=oe,u.y-=ie;var ae=Iw(E.points||[],2),le=ae[0],ce=$H(ae[1]),se=$H(le),ue=OH(u,ce),de=OH(O,se),fe=rS({},E),pe=ue.x-de.x+te,me=ue.y-de.y+ne;function lt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=O.x+e,o=O.y+t,i=r+A,a=o+j,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var he,ge,ve,be,ye=lt(pe,me),we=lt(pe,me,K),Se=OH(u,["t","l"]),xe=OH(O,["t","l"]),Ce=OH(u,["b","r"]),Ee=OH(O,["b","r"]),ke=E.overflow||{},$e=ke.adjustX,Oe=ke.adjustY,Ne=ke.shiftX,_e=ke.shiftY,Ie=function(e){return"boolean"==typeof e?e:e>=0};function ct(){he=O.y+me,ge=he+j,ve=O.x+pe,be=ve+A}ct();var Re=Ie(Oe),Me=se[0]===ce[0];if(Re&&"t"===se[0]&&(ge>X.bottom||f.current.bt)){var Pe=me;Me?Pe-=j-z:Pe=Se.y-Ee.y-ne;var Te=lt(pe,Pe),je=lt(pe,Pe,K);Te>ye||Te===ye&&(!V||je>=we)?(f.current.bt=!0,me=Pe,ne=-ne,fe.points=[NH(se,0),NH(ce,0)]):f.current.bt=!1}if(Re&&"b"===se[0]&&(he<X.top||f.current.tb)){var Ae=me;Me?Ae+=j-z:Ae=Ce.y-xe.y-ne;var ze=lt(pe,Ae),De=lt(pe,Ae,K);ze>ye||ze===ye&&(!V||De>=we)?(f.current.tb=!0,me=Ae,ne=-ne,fe.points=[NH(se,0),NH(ce,0)]):f.current.tb=!1}var Le=Ie($e),Be=se[1]===ce[1];if(Le&&"l"===se[1]&&(be>X.right||f.current.rl)){var Fe=pe;Be?Fe-=A-D:Fe=Se.x-Ee.x-te;var He=lt(Fe,me),We=lt(Fe,me,K);He>ye||He===ye&&(!V||We>=we)?(f.current.rl=!0,pe=Fe,te=-te,fe.points=[NH(se,1),NH(ce,1)]):f.current.rl=!1}if(Le&&"r"===se[1]&&(ve<X.left||f.current.lr)){var Ve=pe;Be?Ve+=A-D:Ve=Ce.x-xe.x-te;var Ue=lt(Ve,me),Ke=lt(Ve,me,K);Ue>ye||Ue===ye&&(!V||Ke>=we)?(f.current.lr=!0,pe=Ve,te=-te,fe.points=[NH(se,1),NH(ce,1)]):f.current.lr=!1}ct();var qe=!0===Ne?0:Ne;"number"==typeof qe&&(ve<K.left&&(pe-=ve-K.left-te,u.x+D<K.left+qe&&(pe+=u.x-K.left+D-qe)),be>K.right&&(pe-=be-K.right-te,u.x>K.right-qe&&(pe+=u.x-K.right+qe)));var Xe=!0===_e?0:_e;"number"==typeof Xe&&(he<K.top&&(me-=he-K.top-ne,u.y+z<K.top+Xe&&(me+=u.y-K.top+z-Xe)),ge>K.bottom&&(me-=ge-K.bottom-ne,u.y>K.bottom-Xe&&(me+=u.y-K.bottom+Xe)));var Ge=O.x+pe,Ye=Ge+A,Qe=O.y+me,Ze=Qe+j,Je=u.x,et=Je+D,tt=u.y,nt=tt+z,rt=(Math.max(Ge,Je)+Math.min(Ye,et))/2-Ge,ot=(Math.max(Qe,tt)+Math.min(Ze,nt))/2-Qe;null==a||a(t,fe);var it=G.right-O.x-(pe+O.width),at=G.bottom-O.y-(me+O.height);s({ready:!0,offsetX:pe/Y,offsetY:me/Q,offsetR:it/Y,offsetB:at/Q,arrowX:rt/Y,arrowY:ot/Q,scaleX:Y,scaleY:Q,align:fe})}})),m=function(){s((function(e){return rS(rS({},e),{},{ready:!1})}))};return LI(m,[r]),LI((function(){e||m()}),[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(Ce,ae,z?De:ue,_,R,M,L),He=Iw(Fe,11),We=He[0],Ve=He[1],Ue=He[2],Ke=He[3],qe=He[4],Xe=He[5],Ge=He[6],Ye=He[7],Qe=He[8],Ze=He[9],Je=He[10],et=function(e,t,n,r){return H.useMemo((function(){var o=gH(null!=n?n:t),i=gH(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}(J,l,c,s),tt=Iw(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),it=rt.has("click")||rt.has("contextMenu"),at=OP((function(){Me||Je()}));!function(e,t,n,r,o){LI((function(){if(e&&t&&n){var i=n,a=wH(t),l=wH(i),c=yH(i),s=new Set([c].concat(aI(a),aI(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ce,ue,ae,at,(function(){ke.current&&z&&it&&Ie(!1)})),LI((function(){at()}),[De,_]),LI((function(){!Ce||null!=R&&R[_]||at()}),[JSON.stringify(M)]);var lt=H.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(vH(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(R,o,Ze,z);return Aw(e,null==j?void 0:j(Ze))}),[Ze,j,R,o,z]);H.useImperativeHandle(n,(function(){return{nativeElement:fe.current,forceAlign:at}}));var ct=Iw(H.useState(0),2),st=ct[0],ut=ct[1],dt=Iw(H.useState(0),2),ft=dt[0],pt=dt[1],mt=function(){if(T&&ue){var e=ue.getBoundingClientRect();ut(e.width),pt(e.height)}};function ht(e,t,n,r){ge[e]=function(o){var i;null==r||r(o),Ie(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=he[e])||void 0===i||i.call.apply(i,[he,o].concat(l))}}LI((function(){je&&(Je(),je(),Ae(null))}),[je]),(ot||it)&&(ge.onClick=function(e){var t;ke.current&&it?Ie(!1):!ke.current&&ot&&(Be(e),Ie(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=he.onClick)||void 0===t||t.call.apply(t,[he,e].concat(r))}),function(e,t,n,r,o,i,a,l){var c=H.useRef(e),s=H.useRef(!1);c.current!==e&&(s.current=!0,c.current=e),H.useEffect((function(){var e=fI((function(){s.current=!1}));return function(){fI.cancel(e)}}),[e]),H.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){var e=!1;return[function(t){var n=t.target;e=a(n)},function(t){var n=t.target;s.current||!c.current||e||a(n)||l(!1)}]},u=Iw(e(),2),d=u[0],f=u[1],p=Iw(e(),2),m=p[0],h=p[1],g=yH(r);g.addEventListener("mousedown",d,!0),g.addEventListener("click",f,!0),g.addEventListener("contextmenu",f,!0);var v=bS(n);return v&&(v.addEventListener("mousedown",m,!0),v.addEventListener("click",h,!0),v.addEventListener("contextmenu",h,!0)),function(){g.removeEventListener("mousedown",d,!0),g.removeEventListener("click",f,!0),g.removeEventListener("contextmenu",f,!0),v&&(v.removeEventListener("mousedown",m,!0),v.removeEventListener("click",h,!0),v.removeEventListener("contextmenu",h,!0))}}}),[t,n,r,o,i])}(Ce,it,ue,ae,y,S,ve,Ie);var gt,vt,bt=nt.has("hover"),yt=rt.has("hover");bt&&(ht("onMouseEnter",!0,m,(function(e){Be(e)})),ht("onPointerEnter",!0,m,(function(e){Be(e)})),gt=function(e){(Ce||Me)&&null!=ae&&ae.contains(e.target)&&Ie(!0,m)},z&&(ge.onMouseMove=function(e){var t;null===(t=he.onMouseMove)||void 0===t||t.call(he,e)})),yt&&(ht("onMouseLeave",!1,g),ht("onPointerLeave",!1,g),vt=function(){Ie(!1,g)}),nt.has("focus")&&ht("onFocus",!0,v),rt.has("focus")&&ht("onBlur",!1,b),nt.has("contextMenu")&&(ge.onContextMenu=function(e){var t;ke.current&&rt.has("contextMenu")?Ie(!1):(Be(e),Ie(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=he.onContextMenu)||void 0===t||t.call.apply(t,[he,e].concat(r))}),X&&(ge.className=Aw(he.className,X));var wt=rS(rS({},he),ge),St={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(St[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=wt[e])||void 0===t||t.call.apply(t,[wt].concat(r)),Y[e].apply(Y,r)})}));var xt=H.cloneElement(me,rS(rS({},wt),St)),Ct={x:Xe,y:Ge},Et=B?rS({},!0!==B?B:{}):null;return H.createElement(H.Fragment,null,H.createElement(rI,{disabled:!Ce,ref:pe,onResize:function(){mt(),at()}},H.createElement(mH,{getTriggerDOMNode:G},xt)),H.createElement(hH.Provider,{value:re},H.createElement(pH,{portal:e,ref:ce,prefixCls:o,popup:$,className:Aw(O,lt),style:N,target:ue,onMouseEnter:gt,onMouseLeave:vt,onPointerEnter:gt,zIndex:P,open:Ce,keepDom:Me,fresh:A,onClick:D,mask:y,motion:be,maskMotion:ye,onVisibleChanged:function(e){Pe(!1),Je(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){mt(),Ae((function(){return e}))}))},forceRender:C,autoDestroy:Q,getPopupContainer:x,align:Ze,arrow:Et,arrowPos:Ct,ready:We,offsetX:Ve,offsetY:Ue,offsetR:Ke,offsetB:qe,onAlign:at,stretch:T,targetWidth:st/Ye,targetHeight:ft/Qe})))}));return t}(SD);var RH=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],MH=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,o=e.children,i=e.popupElement,a=e.animation,l=e.transitionName,c=e.dropdownStyle,s=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,f=e.placement,p=e.builtinPlacements,m=e.dropdownMatchSelectWidth,h=e.dropdownRender,g=e.dropdownAlign,v=e.getPopupContainer,b=e.empty,y=e.getTriggerDOMNode,w=e.onPopupVisibleChange,S=e.onPopupMouseEnter,x=Tw(e,RH),C="".concat(n,"-dropdown"),E=i;h&&(E=h(i));var k=H.useMemo((function(){return p||function(e){var 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"}}}(m)}),[p,m]),$=a?"".concat(C,"-").concat(a):l,O="number"==typeof m,N=H.useMemo((function(){return O?null:!1===m?"minWidth":"width"}),[m,O]),_=c;O&&(_=rS(rS({},_),{},{width:m}));var I=H.useRef(null);return H.useImperativeHandle(t,(function(){return{getPopupElement:function(){return I.current}}})),H.createElement(IH,kw({},x,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:C,popupTransitionName:$,popup:H.createElement("div",{ref:I,onMouseEnter:S},E),stretch:N,popupAlign:g,popupVisible:r,getPopupContainer:v,popupClassName:Aw(s,Pw({},"".concat(C,"-empty"),b)),popupStyle:_,getTriggerDOMNode:y,onPopupVisibleChange:w}),o)},PH=H.forwardRef(MH);function TH(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function jH(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function AH(e){var t=rS({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return CS(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var zH=H.createContext(null),DH=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],LH=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],BH=function(e){return"tags"===e||"multiple"===e},FH=H.forwardRef((function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,c=e.tagRender,s=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,m=e.notFoundContent,h=void 0===m?"Not Found":m,g=e.onClear,v=e.mode,b=e.disabled,y=e.loading,w=e.getInputElement,S=e.getRawInputElement,x=e.open,C=e.defaultOpen,E=e.onDropdownVisibleChange,k=e.activeValue,$=e.onActiveValueChange,O=e.activeDescendantId,N=e.searchValue,_=e.autoClearSearchValue,I=e.onSearch,R=e.onSearchSplit,M=e.tokenSeparators,P=e.allowClear,T=e.suffixIcon,j=e.clearIcon,A=e.OptionList,z=e.animation,D=e.transitionName,L=e.dropdownStyle,B=e.dropdownClassName,F=e.dropdownMatchSelectWidth,V=e.dropdownRender,U=e.dropdownAlign,K=e.placement,q=e.builtinPlacements,X=e.getPopupContainer,G=e.showAction,Y=void 0===G?[]:G,Q=e.onFocus,Z=e.onBlur,J=e.onKeyUp,ee=e.onKeyDown,te=e.onMouseDown,ne=Tw(e,DH),re=BH(v),oe=(void 0!==l?l:re)||"combobox"===v,ie=rS({},ne);LH.forEach((function(e){delete ie[e]})),null==u||u.forEach((function(e){delete ie[e]}));var ae=Iw(H.useState(!1),2),le=ae[0],ce=ae[1];H.useEffect((function(){ce(IF())}),[]);var se=H.useRef(null),ue=H.useRef(null),de=H.useRef(null),fe=H.useRef(null),pe=H.useRef(null),me=H.useRef(!1),he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Iw(H.useState(!1),2),n=t[0],r=t[1],o=H.useRef(null),i=function(){window.clearTimeout(o.current)};return H.useEffect((function(){return i}),[]),[n,function(t,n){i(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),ge=Iw(he,3),ve=ge[0],be=ge[1],ye=ge[2];H.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=fe.current)||void 0===e?void 0:e.focus,blur:null===(t=fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var we=H.useMemo((function(){var e;if("combobox"!==v)return N;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[N,v,d]),Se="combobox"===v&&"function"==typeof w&&w()||null,xe="function"==typeof S&&S(),Ce=ak(ue,null==xe||null===(n=xe.props)||void 0===n?void 0:n.ref),Ee=Iw(H.useState(!1),2),ke=Ee[0],$e=Ee[1];LI((function(){$e(!0)}),[]);var Oe=Iw(IP(!1,{defaultValue:C,value:x}),2),Ne=Oe[0],_e=Oe[1],Ie=!!ke&&Ne,Re=!h&&p;(b||Re&&Ie&&"combobox"===v)&&(Ie=!1);var Me=!Re&&Ie,Pe=H.useCallback((function(e){var t=void 0!==e?e:!Ie;b||(_e(t),Ie!==t&&(null==E||E(t)))}),[b,Ie,_e,E]),Te=H.useMemo((function(){return(M||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[M]),je=H.useContext(zH)||{},Ae=je.maxCount,ze=je.rawValues,De=function(e,t,n){if(!((null==ze?void 0:ze.size)>=Ae)){var r=!0,o=e;null==$||$(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=rM(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(aI(t),aI(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,M,Ae&&Ae-ze.size),a=n?null:i;return"combobox"!==v&&a&&(o="",null==R||R(a),Pe(!1),r=!1),I&&we!==o&&I(o,{source:t?"typing":"effect"}),r}};H.useEffect((function(){Ie||re||"combobox"===v||De("",!1,!1)}),[Ie]),H.useEffect((function(){Ne&&b&&_e(!1),b&&!me.current&&be(!1)}),[b]);var Le=Iw(PF(),2),Be=Le[0],Fe=Le[1],He=H.useRef(!1),We=[];H.useEffect((function(){return function(){We.forEach((function(e){return clearTimeout(e)})),We.splice(0,We.length)}}),[]);var Ve,Ue=Iw(H.useState({}),2)[1];xe&&(Ve=function(e){Pe(e)}),function(e,t,n,r){var o=H.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},H.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[se.current,null===(e=de.current)||void 0===e?void 0:e.getPopupElement()]}),Me,Pe,!!xe);var Ke,qe=H.useMemo((function(){return rS(rS({},e),{},{notFoundContent:h,open:Ie,triggerOpen:Me,id:o,showSearch:oe,multiple:re,toggleOpen:Pe})}),[e,h,Me,Ie,o,oe,re,Pe]),Xe=!!T||y;Xe&&(Ke=H.createElement(RF,{className:Aw("".concat(i,"-arrow"),Pw({},"".concat(i,"-arrow-loading"),y)),customizeIcon:T,customizeIconProps:{loading:y,searchValue:we,open:Ie,focused:ve,showSearch:oe}}));var Ge,Ye=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=W.useMemo((function(){return"object"===Rw(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:W.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===l&&""===a)}),[r,i,n.length,a,l]),clearIcon:W.createElement(RF,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(i,(function(){var e;null==g||g(),null===(e=fe.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),De("",!1,!1)}),d,P,j,b,we,v),Qe=Ye.allowClear,Ze=Ye.clearIcon,Je=H.createElement(A,{ref:pe}),et=Aw(i,a,(Pw(r={},"".concat(i,"-focused"),ve),Pw(r,"".concat(i,"-multiple"),re),Pw(r,"".concat(i,"-single"),!re),Pw(r,"".concat(i,"-allow-clear"),P),Pw(r,"".concat(i,"-show-arrow"),Xe),Pw(r,"".concat(i,"-disabled"),b),Pw(r,"".concat(i,"-loading"),y),Pw(r,"".concat(i,"-open"),Ie),Pw(r,"".concat(i,"-customize-input"),Se),Pw(r,"".concat(i,"-show-search"),oe),r)),tt=H.createElement(PH,{ref:de,disabled:b,prefixCls:i,visible:Me,popupElement:Je,animation:z,transitionName:D,dropdownStyle:L,dropdownClassName:B,direction:s,dropdownMatchSelectWidth:F,dropdownRender:V,dropdownAlign:U,placement:K,builtinPlacements:q,getPopupContainer:X,empty:p,getTriggerDOMNode:function(){return ue.current},onPopupVisibleChange:Ve,onPopupMouseEnter:function(){Ue({})}},xe?H.cloneElement(xe,{ref:Ce}):H.createElement(sH,kw({},e,{domRef:ue,prefixCls:i,inputElement:Se,ref:fe,id:o,showSearch:oe,autoClearSearchValue:_,mode:v,activeDescendantId:O,tagRender:c,values:d,open:Ie,onToggleOpen:Pe,activeValue:k,searchValue:we,onSearch:De,onSearchSubmit:function(e){e&&e.trim()&&I(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:Te})));return Ge=xe?tt:H.createElement("div",kw({className:et},ie,{ref:se,onMouseDown:function(e){var t,n=e.target,r=null===(t=de.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=We.indexOf(o);-1!==t&&We.splice(t,1),ye(),le||r.contains(document.activeElement)||null===(e=fe.current)||void 0===e||e.focus()}));We.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==te||te.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Be(),r=e.which;if(r===Tj.ENTER&&("combobox"!==v&&e.preventDefault(),Ie||Pe(!0)),Fe(!!we),r===Tj.BACKSPACE&&!n&&re&&!we&&d.length){for(var o=aI(d),i=null,a=o.length-1;a>=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&f(o,{type:"remove",values:[i]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),u=1;u<c;u++)s[u-1]=arguments[u];Ie&&(null===(t=pe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(s))),null==ee||ee.apply(void 0,[e].concat(s))},onKeyUp: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];var o;Ie&&(null===(o=pe.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),null==J||J.apply(void 0,[e].concat(n))},onFocus:function(){be(!0),b||(Q&&!He.current&&Q.apply(void 0,arguments),Y.includes("focus")&&Pe(!0)),He.current=!0},onBlur:function(){me.current=!0,be(!1,(function(){He.current=!1,me.current=!1,Pe(!1)})),b||(we&&("tags"===v?I(we,{source:"submit"}):"multiple"===v&&I("",{source:"blur"})),Z&&Z.apply(void 0,arguments))}}),ve&&!Ie&&H.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(d.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(Rw(t))?t:n})).join(", "))),tt,Ke,Qe&&Ze),H.createElement(MF.Provider,{value:qe},Ge)})),HH=function(){return null};HH.isSelectOptGroup=!0;var WH=function(){return null};WH.isSelectOption=!0;var VH=H.forwardRef((function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,c=e.innerProps,s=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:n,position:"relative",overflow:"hidden"},f=rS(rS({},f),{},Pw(Pw(Pw(Pw(Pw({transform:"translateY(".concat(r,"px)")},s?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),H.createElement("div",{style:d},H.createElement(rI,{onResize:function(e){e.offsetHeight&&l&&l()}},H.createElement("div",kw({style:f,className:Aw(Pw({},"".concat(a,"-holder-inner"),a)),ref:t},c),i,u)))}));function UH(e){var t=e.children,n=e.setRef,r=H.useCallback((function(e){n(e)}),[]);return H.cloneElement(t,{ref:r})}function KH(e,t,n){var r=Iw(H.useState(e),2),o=r[0],i=r[1],a=Iw(H.useState(null),2),l=a[0],c=a[1];return H.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=c(r[d]);if(f!==c(o[d])){s=d,u=u||f!==c(o[d+1]);break}}return null===s?null:{index:s,multiple:u}}(o||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),c(e[r.index])),i(e)}),[e]),[l]}VH.displayName="Filler";var qH="object"===("undefined"==typeof navigator?"undefined":Rw(navigator))&&/Firefox/i.test(navigator.userAgent);const XH=function(e,t,n,r){var o=H.useRef(!1),i=H.useRef(null),a=H.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,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],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((function(){o.current=!1}),50)),!o.current&&r}};function GH(e,t,n,r,o,i,a){var l=H.useRef(0),c=H.useRef(null),s=H.useRef(null),u=H.useRef(!1),d=XH(t,n,r,o),f=H.useRef(null),p=H.useRef(null);return[function(t){if(e){fI.cancel(p.current),p.current=fI((function(){f.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,m=n,h=r;("sx"===f.current||!f.current&&o&&r&&!n)&&(m=r,h=0,f.current="sx");var g=Math.abs(m),v=Math.abs(h);null===f.current&&(f.current=i&&g>v?"x":"y"),"y"===f.current?function(e,t){if(fI.cancel(c.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,s.current=t,qH||n.preventDefault(),c.current=fI((function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0})))}}(t,h):function(e,t){a(t,!0),qH||e.preventDefault()}(t,m)}},function(t){e&&(u.current=t.detail===s.current)}]}var YH=function(){function e(){W_(this,e),Pw(this,"maps",void 0),Pw(this,"id",0),Pw(this,"diffRecords",new Map),this.maps=Object.create(null)}return U_(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function QH(e){var t=parseFloat(e);return isNaN(t)?0:t}var ZH=14/15;function JH(e){return Math.floor(Math.pow(e,.5))}function eW(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var tW=10,nW=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,c=e.onScroll,s=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,m=e.showScrollBar,h=Iw(H.useState(!1),2),g=h[0],v=h[1],b=Iw(H.useState(null),2),y=b[0],w=b[1],S=Iw(H.useState(null),2),x=S[0],C=S[1],E=!r,k=H.useRef(),$=H.useRef(),O=Iw(H.useState(m),2),N=O[0],_=O[1],I=H.useRef(),R=function(){!0!==m&&!1!==m&&(clearTimeout(I.current),_(!0),I.current=setTimeout((function(){_(!1)}),3e3))},M=i-d||0,P=d-u||0,T=H.useMemo((function(){return 0===o||0===M?0:o/M*P}),[o,M,P]),j=H.useRef({top:T,dragging:g,pageY:y,startTop:x});j.current={top:T,dragging:g,pageY:y,startTop:x};var A=function(e){v(!0),w(eW(e,s)),C(j.current.top),a(),e.stopPropagation(),e.preventDefault()};H.useEffect((function(){var e=function(e){e.preventDefault()},t=k.current,n=$.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",A,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",A)}}),[]);var z=H.useRef();z.current=M;var D=H.useRef();D.current=P,H.useEffect((function(){if(g){var e,t=function(t){var n=j.current,r=n.dragging,o=n.pageY,i=n.startTop;fI.cancel(e);var a=k.current.getBoundingClientRect(),l=d/(s?a.width:a.height);if(r){var u=(eW(t,s)-o)*l,f=i;!E&&s?f-=u:f+=u;var p=z.current,m=D.current,h=m?f/m:0,g=Math.ceil(h*p);g=Math.max(g,0),g=Math.min(g,p),e=fI((function(){c(g,s)}))}},n=function(){v(!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}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),fI.cancel(e)}}}),[g]),H.useEffect((function(){return R(),function(){clearTimeout(I.current)}}),[o]),H.useImperativeHandle(t,(function(){return{delayHidden:R}}));var L="".concat(n,"-scrollbar"),B={position:"absolute",visibility:N?null:"hidden"},F={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return s?(Object.assign(B,{height:8,left:0,right:0,bottom:0}),Object.assign(F,Pw({height:"100%",width:u},E?"left":"right",T))):(Object.assign(B,Pw({width:8,top:0,bottom:0},E?"right":"left",0)),Object.assign(F,{width:"100%",height:u,top:T})),H.createElement("div",{ref:k,className:Aw(L,Pw(Pw(Pw({},"".concat(L,"-horizontal"),s),"".concat(L,"-vertical"),!s),"".concat(L,"-visible"),N)),style:rS(rS({},B),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:R},H.createElement("div",{ref:$,className:Aw("".concat(L,"-thumb"),Pw({},"".concat(L,"-thumb-moving"),g)),style:rS(rS({},F),p),onMouseDown:A}))})),rW=20;function oW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,rW),Math.floor(t)}var iW=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],aW=[],lW={overflowY:"auto",overflowAnchor:"none"};function cW(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,c=void 0===l||l,s=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,m=e.direction,h=e.scrollWidth,g=e.component,v=void 0===g?"div":g,b=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,S=e.innerProps,x=e.extraRender,C=e.styles,E=e.showScrollBar,k=void 0===E?"optional":E,$=Tw(e,iW),O=H.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),N=function(e,t,n){var r=Iw(H.useState(0),2),o=r[0],i=r[1],a=H.useRef(new Map),l=H.useRef(new YH),c=H.useRef(0);function s(){c.current+=1}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){var e=!1;a.current.forEach((function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,a=o.marginBottom,c=r+QH(i)+QH(a);l.current.get(n)!==c&&(l.current.set(n,c),e=!0)}})),e&&i((function(e){return e+1}))};if(e)t();else{c.current+=1;var n=c.current;Promise.resolve().then((function(){n===c.current&&t()}))}}return H.useEffect((function(){return s}),[]),[function(r,o){var i=e(r),l=a.current.get(i);o?(a.current.set(i,o),u()):a.current.delete(i),!l!=!o&&(o?null==t||t(r):null==n||n(r))},u,l.current,o]}(O,null,null),_=Iw(N,4),I=_[0],R=_[1],M=_[2],P=_[3],T=!(!1===p||!i||!a),j=H.useMemo((function(){return Object.values(M.maps).reduce((function(e,t){return e+t}),0)}),[M.id,M.maps]),A=T&&u&&(Math.max(a*u.length,j)>i||!!h),z="rtl"===m,D=Aw(r,Pw({},"".concat(r,"-rtl"),z),o),L=u||aW,B=H.useRef(),F=H.useRef(),W=H.useRef(),V=Iw(H.useState(0),2),U=V[0],K=V[1],q=Iw(H.useState(0),2),X=q[0],G=q[1],Y=Iw(H.useState(!1),2),Q=Y[0],Z=Y[1],J=function(){Z(!0)},ee=function(){Z(!1)},te={getKey:O};function ne(e){K((function(t){var n=function(e){var t=e;return Number.isNaN(ye.current)||(t=Math.min(t,ye.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return B.current.scrollTop=n,n}))}var re=H.useRef({start:0,end:L.length}),oe=H.useRef(),ie=Iw(KH(L,O),1)[0];oe.current=ie;var ae=H.useMemo((function(){if(!T)return{scrollHeight:void 0,start:0,end:L.length-1,offset:void 0};var e;if(!A)return{scrollHeight:(null===(e=F.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:L.length-1,offset:void 0};for(var t,n,r,o=0,l=L.length,c=0;c<l;c+=1){var s=L[c],u=O(s),d=M.get(u),f=o+(void 0===d?a:d);f>=U&&void 0===t&&(t=c,n=o),f>U+i&&void 0===r&&(r=c),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(i/a)),void 0===r&&(r=L.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,L.length-1),offset:n}}),[A,T,U,L,P,i]),le=ae.scrollHeight,ce=ae.start,se=ae.end,ue=ae.offset;re.current.start=ce,re.current.end=se,H.useLayoutEffect((function(){var e=M.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=L[ce];if(r&&void 0===n&&O(r)===t){var o=M.get(t)-a;ne((function(e){return e+o}))}}M.resetRecord()}),[le]);var de=Iw(H.useState({width:0,height:i}),2),fe=de[0],pe=de[1],me=H.useRef(),he=H.useRef(),ge=H.useMemo((function(){return oW(fe.width,h)}),[fe.width,h]),ve=H.useMemo((function(){return oW(fe.height,le)}),[fe.height,le]),be=le-i,ye=H.useRef(be);ye.current=be;var we=U<=0,Se=U>=be,xe=X<=0,Ce=X>=h,Ee=XH(we,Se,xe,Ce),ke=function(){return{x:z?-X:X,y:U}},$e=H.useRef(ke()),Oe=OP((function(e){if(y){var t=rS(rS({},ke()),e);$e.current.x===t.x&&$e.current.y===t.y||(y(t),$e.current=t)}}));function Ne(e,t){var n=e;t?(cd.flushSync((function(){G(n)})),Oe()):ne(n)}var _e=function(e){var t=e,n=h?h-fe.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Ie=OP((function(e,t){t?(cd.flushSync((function(){G((function(t){return _e(t+(z?-e:e))}))})),Oe()):ne((function(t){return t+e}))})),Re=Iw(GH(T,we,Se,xe,Ce,!!h,Ie),2),Me=Re[0],Pe=Re[1];!function(e,t,n){var r,o=H.useRef(!1),i=H.useRef(0),a=H.useRef(0),l=H.useRef(null),c=H.useRef(null),s=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),l=i.current-t,s=a.current-r,u=Math.abs(l)>Math.abs(s);u?i.current=t:a.current=r;var d=n(u,u?l:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval((function(){u?l*=ZH:s*=ZH;var e=Math.floor(u?l:s);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16))}},u=function(){o.current=!1,r()},d=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};r=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},LI((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(c.current)}}),[e])}(T,B,(function(e,t,n,r){var o=r;return!(Ee(e,t,n)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),Me({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),function(e,t,n){H.useEffect((function(){var r=t.current;if(e&&r){var o,i,a=!1,l=function(){fI.cancel(o)},c=function e(){l(),o=fI((function(){n(i),e()}))},s=function(){a=!1,l()},u=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},d=function(e){if(a){var t=eW(e,!1),n=r.getBoundingClientRect(),o=n.top,s=n.bottom;t<=o?(i=-JH(o-t),c()):t>=s?(i=JH(t-s),c()):l()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",s),r.ownerDocument.addEventListener("mousemove",d),r.ownerDocument.addEventListener("dragend",s),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",s),r.ownerDocument.removeEventListener("mousemove",d),r.ownerDocument.removeEventListener("dragend",s),l()}}}),[e])}(A,B,(function(e){ne((function(t){return t+e}))})),LI((function(){function e(e){var t=we&&e.detail<0,n=Se&&e.detail>0;!T||t||n||e.preventDefault()}var t=B.current;return t.addEventListener("wheel",Me,{passive:!1}),t.addEventListener("DOMMouseScroll",Pe,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Me),t.removeEventListener("DOMMouseScroll",Pe),t.removeEventListener("MozMousePixelScroll",e)}}),[T,we,Se]),LI((function(){if(h){var e=_e(X);G(e),Oe({x:e})}}),[fe.width,h]);var Te=function(){var e,t;null===(e=me.current)||void 0===e||e.delayHidden(),null===(t=he.current)||void 0===t||t.delayHidden()},je=function(e,t,n,r,o,i,a,l){var c=H.useRef(),s=Iw(H.useState(null),2),u=s[0],d=s[1];return LI((function(){if(u&&u.times<tW){if(!e.current)return void d((function(e){return rS({},e)}));i();var l=u.targetAlign,c=u.originAlign,s=u.index,f=u.offset,p=e.current.clientHeight,m=!1,h=l,g=null;if(p){for(var v=l||c,b=0,y=0,w=0,S=Math.min(t.length-1,s),x=0;x<=S;x+=1){var C=o(t[x]);y=b;var E=n.get(C);b=w=y+(void 0===E?r:E)}for(var k="top"===v?f:p-f,$=S;$>=0;$-=1){var O=o(t[$]),N=n.get(O);if(void 0===N){m=!0;break}if((k-=N)<=0)break}switch(v){case"top":g=y-f;break;case"bottom":g=w-p+f;break;default:var _=e.current.scrollTop;y<_?h="top":w>_+p&&(h="bottom")}null!==g&&a(g),g!==u.lastTop&&(m=!0)}m&&d(rS(rS({},u),{},{times:u.times+1,targetAlign:h,lastTop:g}))}}),[u,e.current]),function(e){if(null!=e){if(fI.cancel(c.current),"number"==typeof e)a(e);else if(e&&"object"===Rw(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var i=e.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else l()}}(B,L,M,a,O,(function(){return R(!0)}),ne,Te);H.useImperativeHandle(t,(function(){return{nativeElement:W.current,getScrollInfo:ke,scrollTo:function(e){var t;(t=e)&&"object"===Rw(t)&&("left"in t||"top"in t)?(void 0!==e.left&&G(_e(e.left)),je(e.top)):je(e)}}})),LI((function(){if(w){var e=L.slice(ce,se+1);w(e,L)}}),[ce,se,L]);var Ae=function(e,t,n,r){var o=Iw(H.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,c=i.get(o),s=i.get(l);if(void 0===c||void 0===s)for(var u=e.length,d=a.length;d<u;d+=1){var f,p=e[d],m=t(p);i.set(m,d);var h=null!==(f=n.get(m))&&void 0!==f?f:r;if(a[d]=(a[d-1]||0)+h,m===o&&(c=d),m===l&&(s=d),void 0!==c&&void 0!==s)break}return{top:a[c-1]||0,bottom:a[s]}}}(L,O,M,a),ze=null==x?void 0:x({start:ce,end:se,virtual:A,offsetX:X,offsetY:ue,rtl:z,getSize:Ae}),De=function(e,t,n,r,o,i,a,l){var c=l.getKey;return e.slice(t,n+1).map((function(e,n){var l=a(e,t+n,{style:{width:r},offsetX:o}),s=c(e);return H.createElement(UH,{key:s,setRef:function(t){return i(e,t)}},l)}))}(L,ce,se,h,X,I,d,te),Le=null;i&&(Le=rS(Pw({},c?"height":"maxHeight",i),lW),T&&(Le.overflowY="hidden",h&&(Le.overflowX="hidden"),Q&&(Le.pointerEvents="none")));var Be={};return z&&(Be.dir="rtl"),H.createElement("div",kw({ref:W,style:rS(rS({},s),{},{position:"relative"}),className:D},Be,$),H.createElement(rI,{onResize:function(e){pe({width:e.offsetWidth,height:e.offsetHeight})}},H.createElement(v,{className:"".concat(r,"-holder"),style:Le,ref:B,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==U&&ne(t),null==b||b(e),Oe()},onMouseEnter:Te},H.createElement(VH,{prefixCls:r,height:le,offsetX:X,offsetY:ue,scrollWidth:h,onInnerResize:R,ref:F,innerProps:S,rtl:z,extra:ze},De))),A&&le>i&&H.createElement(nW,{ref:me,prefixCls:r,scrollOffset:U,scrollRange:le,rtl:z,onScroll:Ne,onStartMove:J,onStopMove:ee,spinSize:ve,containerSize:fe.height,style:null==C?void 0:C.verticalScrollBar,thumbStyle:null==C?void 0:C.verticalScrollBarThumb,showScrollBar:k}),A&&h>fe.width&&H.createElement(nW,{ref:he,prefixCls:r,scrollOffset:X,scrollRange:h,rtl:z,onScroll:Ne,onStartMove:J,onStopMove:ee,spinSize:ge,containerSize:fe.width,horizontal:!0,style:null==C?void 0:C.horizontalScrollBar,thumbStyle:null==C?void 0:C.horizontalScrollBarThumb,showScrollBar:k}))}var sW=H.forwardRef(cW);sW.displayName="List";var uW=["disabled","title","children","style","className"];function dW(e){return"string"==typeof e||"number"==typeof e}var fW=function(e,t){var n=H.useContext(MF),r=n.prefixCls,o=n.id,i=n.open,a=n.multiple,l=n.mode,c=n.searchValue,s=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=H.useContext(zH),p=f.maxCount,m=f.flattenOptions,h=f.onActiveValue,g=f.defaultActiveFirstOption,v=f.onSelect,b=f.menuItemSelectedIcon,y=f.rawValues,w=f.fieldNames,S=f.virtual,x=f.direction,C=f.listHeight,E=f.listItemHeight,k=f.optionRender,$="".concat(r,"-item"),O=ZE((function(){return m}),[i,m],(function(e,t){return t[0]&&e[1]!==t[1]})),N=H.useRef(null),_=H.useMemo((function(){return a&&void 0!==p&&(null==y?void 0:y.size)>=p}),[a,p,null==y?void 0:y.size]),I=function(e){e.preventDefault()},R=function(e){var t;null===(t=N.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},M=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=O[o]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||_))return o}return-1},P=Iw(H.useState((function(){return M(0)})),2),T=P[0],j=P[1],A=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];j(e);var n={source:t?"keyboard":"mouse"},r=O[e];r?h(r.value,e,n):h(null,-1,n)};H.useEffect((function(){A(!1!==g?M(0):-1)}),[O.length,c]);var z=H.useCallback((function(e){return y.has(e)&&"combobox"!==l}),[l,aI(y).toString(),y.size]);H.useEffect((function(){var e,t=setTimeout((function(){if(!a&&i&&1===y.size){var e=Array.from(y)[0],t=O.findIndex((function(t){return t.data.value===e}));-1!==t&&(A(t),R(t))}}));return i&&(null===(e=N.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[i,c]);var D=function(e){void 0!==e&&v(e,{selected:!y.has(e)}),a||s(!1)};if(H.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Tj.N:case Tj.P:case Tj.UP:case Tj.DOWN:var r=0;if(t===Tj.UP?r=-1:t===Tj.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Tj.N?r=1:t===Tj.P&&(r=-1)),0!==r){var o=M(T+r,r);R(o),A(o,!0)}break;case Tj.ENTER:var a,l=O[T];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||_?D(void 0):D(l.value),i&&e.preventDefault();break;case Tj.ESC:s(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}})),0===O.length)return H.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:I},u);var L=Object.keys(w).map((function(e){return w[e]})),B=function(e){return e.label};function F(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var W=function(e){var t=O[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=yj(n,!0),a=B(t);return t?H.createElement("div",kw({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},F(t,e),{"aria-selected":z(r)}),r):null},V={role:"listbox",id:"".concat(o,"_list")};return H.createElement(H.Fragment,null,S&&H.createElement("div",kw({},V,{style:{height:0,width:0,overflow:"hidden"}}),W(T-1),W(T),W(T+1)),H.createElement(sW,{itemKey:"key",ref:N,data:O,height:C,itemHeight:E,fullHeight:!1,onMouseDown:I,onScroll:d,virtual:S,direction:x,innerProps:S?null:V},(function(e,t){var n,r=e.group,o=e.groupOption,i=e.data,a=e.label,l=e.value,c=i.key;if(r){var s,u=null!==(s=i.title)&&void 0!==s?s:dW(a)?a.toString():void 0;return H.createElement("div",{className:Aw($,"".concat($,"-group")),title:u},void 0!==a?a:c)}var d=i.disabled,f=i.title;i.children;var p=i.style,m=i.className,h=oI(Tw(i,uW),L),g=z(l),v=d||!g&&_,y="".concat($,"-option"),w=Aw($,y,m,(Pw(n={},"".concat(y,"-grouped"),o),Pw(n,"".concat(y,"-active"),T===t&&!v),Pw(n,"".concat(y,"-disabled"),v),Pw(n,"".concat(y,"-selected"),g),n)),x=B(e),C=!b||"function"==typeof b||g,E="number"==typeof x?x:x||l,O=dW(E)?E.toString():void 0;return void 0!==f&&(O=f),H.createElement("div",kw({},yj(h),S?{}:F(e,t),{"aria-selected":g,className:w,title:O,onMouseMove:function(){T===t||v||A(t)},onClick:function(){v||D(l)},style:p}),H.createElement("div",{className:"".concat(y,"-content")},"function"==typeof k?k(e,{index:t}):E),H.isValidElement(b)||g,C&&H.createElement(RF,{className:"".concat($,"-option-state"),customizeIcon:b,customizeIconProps:{value:l,disabled:v,isSelected:g}},g?"✓":null))})))},pW=H.forwardRef(fW);function mW(e,t){return eH(e).join("").toUpperCase().includes(t)}var hW=0,gW=oS();function vW(e){var t=Iw(H.useState(),2),n=t[0],r=t[1];return H.useEffect((function(){var e;r("rc_select_".concat((gW?(e=hW,hW+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var bW=["children","value"],yW=["children"];function wW(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return h_(e).map((function(e,n){if(!H.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,a=r.props,l=a.children,c=Tw(a,yW);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return rS({key:n,value:void 0!==i?i:n,children:o},Tw(r,bW))}(e):rS(rS({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},c),{},{options:wW(l)})})).filter((function(e){return e}))}function SW(e){var t=H.useRef();t.current=e;var n=H.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var xW=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],CW=["inputValue"],EW=H.forwardRef((function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=void 0===o?"rc-select":o,a=e.backfill,l=e.fieldNames,c=e.inputValue,s=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,p=e.onSelect,m=e.onDeselect,h=e.dropdownMatchSelectWidth,g=void 0===h||h,v=e.filterOption,b=e.filterSort,y=e.optionFilterProp,w=e.optionLabelProp,S=e.options,x=e.optionRender,C=e.children,E=e.defaultActiveFirstOption,k=e.menuItemSelectedIcon,$=e.virtual,O=e.direction,N=e.listHeight,_=void 0===N?200:N,I=e.listItemHeight,R=void 0===I?20:I,M=e.value,P=e.defaultValue,T=e.labelInValue,j=e.onChange,A=e.maxCount,z=Tw(e,xW),D=vW(n),L=BH(r),B=!(S||!C),F=H.useMemo((function(){return(void 0!==v||"combobox"!==r)&&v}),[v,r]),W=H.useMemo((function(){return jH(l,B)}),[JSON.stringify(l),B]),V=Iw(IP("",{value:void 0!==s?s:c,postState:function(e){return e||""}}),2),U=V[0],K=V[1],q=function(e,t,n,r,o){return H.useMemo((function(){var i=e;!e&&(i=wW(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[n.options]||i?(a.set(u[n.value],u),c(l,u,n.label),c(l,u,r),c(l,u,o)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}}),[e,t,n,r,o])}(S,C,W,y,w),X=q.valueOptions,G=q.labelOptions,Y=q.options,Q=H.useCallback((function(e){return eH(e).map((function(e){var t,n,r,o,i,a;!function(e){return!e||"object"!==Rw(e)}(e)?(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r):t=e;var l,c=X.get(t);return c&&(void 0===n&&(n=null==c?void 0:c[w||W.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),o=null==c?void 0:c.disabled,i=null==c?void 0:c.title),{label:n,value:t,key:r,disabled:o,title:i}}))}),[W,w,X]),Z=Iw(IP(P,{value:M}),2),J=Z[0],ee=Z[1],te=H.useMemo((function(){var e,t=Q(L&&null===J?[]:J);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[J,Q,r,L]),ne=function(e,t){var n=H.useRef({values:new Map,options:new Map});return[H.useMemo((function(){var r=n.current,o=r.values,i=r.options,a=e.map((function(e){var t;return void 0===e.label?rS(rS({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return a.forEach((function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=c,a}),[e,t]),H.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(te,X),re=Iw(ne,2),oe=re[0],ie=re[1],ae=H.useMemo((function(){if(!r&&1===oe.length){var e=oe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return oe.map((function(e){var t;return rS(rS({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[r,oe]),le=H.useMemo((function(){return new Set(oe.map((function(e){return e.value})))}),[oe]);H.useEffect((function(){if("combobox"===r){var e,t=null===(e=oe[0])||void 0===e?void 0:e.value;K(function(e){return null!=e}(t)?String(t):"")}}),[oe]);var ce=SW((function(e,t){var n,r=null!=t?t:e;return Pw(n={},W.value,e),Pw(n,W.label,r),n})),se=H.useMemo((function(){if("tags"!==r)return Y;var e=aI(Y);return aI(oe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return X.has(e)})(n)||e.push(ce(n,t.label))})),e}),[ce,Y,X,oe,r]),ue=function(e,t,n,r,o){return H.useMemo((function(){if(!n||!1===r)return e;var i=t.options,a=t.label,l=t.value,c=[],s="function"==typeof r,u=n.toUpperCase(),d=s?r:function(e,t){return o?mW(t[o],u):t[i]?mW(t["children"!==a?a:"label"],u):mW(t[l],u)},f=s?function(e){return AH(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,f(e)))c.push(e);else{var t=e[i].filter((function(e){return d(n,f(e))}));t.length&&c.push(rS(rS({},e),{},Pw({},i,t)))}else d(n,f(e))&&c.push(e)})),c}),[e,r,o,n,t])}(se,W,U,F,y),de=H.useMemo((function(){return"tags"!==r||!U||ue.some((function(e){return e[y||"value"]===U}))||ue.some((function(e){return e[W.value]===U}))?ue:[ce(U)].concat(aI(ue))}),[ce,y,r,ue,U,W]),fe=H.useMemo((function(){return b?aI(de).sort((function(e,t){return b(e,t)})):de}),[de,b]),pe=H.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=jH(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];o.push({key:TH(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:TH(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(fe,{fieldNames:W,childrenAsData:B})}),[fe,W,B]),me=function(e){var t=Q(e);if(ee(t),j&&(t.length!==oe.length||t.some((function(e,t){var n;return(null===(n=oe[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=T?t:t.map((function(e){return e.value})),r=t.map((function(e){return AH(ie(e.value))}));j(L?n:n[0],L?r:r[0])}},he=Iw(H.useState(null),2),ge=he[0],ve=he[1],be=Iw(H.useState(0),2),ye=be[0],we=be[1],Se=void 0!==E?E:"combobox"!==r,xe=H.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;we(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&ve(String(e))}),[a,r]),Ce=function(e,t,n){var r=function(){var t,n=ie(e);return[T?{label:null==n?void 0:n[W.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,AH(n)]};if(t&&p){var o=Iw(r(),2),i=o[0],a=o[1];p(i,a)}else if(!t&&m&&"clear"!==n){var l=Iw(r(),2),c=l[0],s=l[1];m(c,s)}},Ee=SW((function(e,t){var n,o=!L||t.selected;n=o?L?[].concat(aI(oe),[e]):[e]:oe.filter((function(t){return t.value!==e})),me(n),Ce(e,o),"combobox"===r?ve(""):BH&&!f||(K(""),ve(""))})),ke=H.useMemo((function(){var e=!1!==$&&!1!==g;return rS(rS({},q),{},{flattenOptions:pe,onActiveValue:xe,defaultActiveFirstOption:Se,onSelect:Ee,menuItemSelectedIcon:k,rawValues:le,fieldNames:W,virtual:e,direction:O,listHeight:_,listItemHeight:R,childrenAsData:B,maxCount:A,optionRender:x})}),[A,q,pe,xe,Se,Ee,k,le,W,$,g,O,_,R,B,x]);return H.createElement(zH.Provider,{value:ke},H.createElement(FH,kw({},z,{id:D,prefixCls:i,ref:t,omitDomProps:CW,mode:r,displayValues:ae,onDisplayValuesChange:function(e,t){me(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ce(e.value,!1,n)}))},direction:O,searchValue:U,onSearch:function(e,t){if(K(e),ve(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&me(e),null==u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(aI(le),[n])));me(o),Ce(n,!0),K("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=G.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(aI(le),aI(t))));me(n),n.forEach((function(e){Ce(e,!0)}))},dropdownMatchSelectWidth:g,OptionList:pW,emptyOptions:!pe.length,activeValue:ge,activeDescendantId:"".concat(D,"_list_").concat(ye)})))})),kW=EW;function $W(e,t,n){return m_({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}kW.Option=WH,kW.OptGroup=HH;const OW=(e,t)=>t||e,NW=()=>{const[,e]=$P(),t=new XM(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return H.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},H.createElement("g",{fill:"none",fillRule:"evenodd"},H.createElement("g",{transform:"translate(24 31.67)"},H.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),H.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),H.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),H.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),H.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),H.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),H.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},H.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),H.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},_W=()=>{const[,e]=$P(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=H.useMemo((()=>({borderColor:new XM(t).onBackground(o).toHexShortString(),shadowColor:new XM(n).onBackground(o).toHexShortString(),contentColor:new XM(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return H.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},H.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},H.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),H.createElement("g",{fillRule:"nonzero",stroke:i},H.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),H.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},IW=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.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},RW=tT("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=KP(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[IW(o)]}));var MW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const PW=H.createElement(NW,null),TW=H.createElement(_W,null),jW=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=PW,description:i,children:a,imageStyle:l,style:c}=e,s=MW(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=H.useContext(aP),p=u("empty",r),[m,h,g]=RW(p),[v]=EM("Empty"),b=void 0!==i?i:null==v?void 0:v.description,y="string"==typeof b?b:"empty";let w=null;return w="string"==typeof o?H.createElement("img",{alt:y,src:o}):o,m(H.createElement("div",Object.assign({className:m_(h,g,p,null==f?void 0:f.className,{[`${p}-normal`]:o===TW,[`${p}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),c)},s),H.createElement("div",{className:`${p}-image`,style:l},w),b&&H.createElement("div",{className:`${p}-description`},b),a&&H.createElement("div",{className:`${p}-footer`},a)))};jW.PRESENTED_IMAGE_DEFAULT=PW,jW.PRESENTED_IMAGE_SIMPLE=TW;const AW=e("K",jW),zW=e=>{const{componentName:t}=e,{getPrefixCls:n}=H.useContext(aP),r=n("empty");switch(t){case"Table":case"List":return W.createElement(AW,{image:AW.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return W.createElement(AW,{image:AW.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return W.createElement(AW,null)}},DW=["outlined","borderless","filled"],LW=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=H.useContext(rB);let r;return r=void 0!==e?e:!1===t?"borderless":null!=n?n:"outlined",[r,DW.includes(r)]};function BW(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const FW=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"}},HW=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-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},PP(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:EB},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:$B},[`${a}${l}bottomLeft`]:{animationName:kB},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:OB},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},FW(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},MP),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},FW(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},PB(e,"slide-up"),PB(e,"slide-down"),CB(e,"move-up"),CB(e,"move-down")]},WW=(e,t)=>{const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(a).sub(2).equal(),borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${PI(2)} 0`,lineHeight:PI(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:PI(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:PI(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function VW(e,t){const{componentCls:n}=e,r={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[WW(e,t),r]}const UW=e=>{const{componentCls:t}=e,n=KP(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=KP(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[VW(e),VW(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},VW(r,"lg")]};function KW(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},PP(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:PI(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${PI(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:PI(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${PI(r)}`,"&:after":{display:"none"}}}}}}}function qW(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[KW(e),KW(KP(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${PI(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},KW(KP(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const XW=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${PI(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${PI(o)} ${t.activeShadowColor}`,outline:0}}}},GW=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},XW(e,t))}),YW=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},XW(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),GW(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),GW(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${PI(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),QW=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${PI(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ZW=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},QW(e,t))}),JW=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},QW(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),ZW(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),ZW(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${PI(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),eV=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${PI(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),tV=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},YW(e)),JW(e)),eV(e))}),nV=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},rV=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},oV=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},PP(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},nV(e)),rV(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},MP),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},MP),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,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 ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},iV=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},oV(e),qW(e),UW(e),HW(e),{[`${t}-rtl`]:{direction:"rtl"}},Gz(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},aV=tT("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=KP(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[iV(r),tV(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:c,controlItemBgHover:s,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:m,colorTextDisabled:h}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:c,optionActiveBg:s,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:m,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function lV(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:s,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=null!=n?n:H.createElement(lx,null),m=e=>null!==t||l||d?H.createElement(H.Fragment,null,!1!==s&&e,l&&u):null;let h=null;if(void 0!==t)h=m(t);else if(i)h=m(H.createElement(SC,{spin:!0}));else{const e=`${c}-suffix`;h=t=>{let{open:n,showSearch:r}=t;return m(n&&r?H.createElement(pE,{className:e}):H.createElement(Ox,{className:e}))}}let g=null;g=void 0!==r?r:a?H.createElement(tx,null):null;let v=null;return v=void 0!==o?o:H.createElement(ux,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:v}}var cV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sV="SECRET_COMBOBOX_MODE_DO_NOT_USE",uV=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:l,popupClassName:c,dropdownClassName:s,listHeight:u=256,placement:d,listItemHeight:f,size:p,disabled:m,notFoundContent:h,status:g,builtinPlacements:v,dropdownMatchSelectWidth:b,popupMatchSelectWidth:y,direction:w,style:S,allowClear:x,variant:C,dropdownStyle:E,transitionName:k,tagRender:$,maxCount:O}=e,N=cV(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:_,getPrefixCls:I,renderEmpty:R,direction:M,virtual:P,popupMatchSelectWidth:T,popupOverflow:j,select:A}=H.useContext(aP),[,z]=$P(),D=null!=f?f:null==z?void 0:z.controlHeight,L=I("select",r),B=I(),F=null!=w?w:M,{compactSize:W,compactItemClassnames:V}=rz(L,F),[U,K]=LW(C,o),q=Pj(L),[X,G,Y]=aV(L,q),Q=H.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===sV?"combobox":t}),[e.mode]),Z="multiple"===Q||"tags"===Q,J=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ee=null!==(n=null!=y?y:b)&&void 0!==n?n:T,{status:te,hasFeedback:ne,isFormItemInput:re,feedbackIcon:oe}=H.useContext(tB),ie=OW(te,g);let ae;ae=void 0!==h?h:"combobox"===Q?null:(null==R?void 0:R("Select"))||H.createElement(zW,{componentName:"Select"});const{suffixIcon:le,itemIcon:ce,removeIcon:se,clearIcon:ue}=lV(Object.assign(Object.assign({},N),{multiple:Z,hasFeedback:ne,feedbackIcon:oe,showSuffixIcon:J,prefixCls:L,componentName:"Select"})),de=!0===x?{clearIcon:ue}:x,fe=oI(N,["suffixIcon","itemIcon"]),pe=m_(c||s,{[`${L}-dropdown-${F}`]:"rtl"===F},a,Y,q,G),me=YA((e=>{var t;return null!==(t=null!=p?p:W)&&void 0!==t?t:e})),he=H.useContext(dP),ge=null!=m?m:he,ve=m_({[`${L}-lg`]:"large"===me,[`${L}-sm`]:"small"===me,[`${L}-rtl`]:"rtl"===F,[`${L}-${U}`]:K,[`${L}-in-form-item`]:re},$W(L,ie,ne),V,null==A?void 0:A.className,i,a,Y,q,G),be=H.useMemo((()=>void 0!==d?d:"rtl"===F?"bottomRight":"bottomLeft"),[d,F]),[ye]=Yj("SelectLike",null==E?void 0:E.zIndex);return X(H.createElement(kW,Object.assign({ref:t,virtual:P,showSearch:null==A?void 0:A.showSearch},fe,{style:Object.assign(Object.assign({},null==A?void 0:A.style),S),dropdownMatchSelectWidth:ee,transitionName:LA(B,"slide-up",k),builtinPlacements:BW(v,j),listHeight:u,listItemHeight:D,mode:Q,prefixCls:L,placement:be,direction:F,suffixIcon:le,menuItemSelectedIcon:ce,removeIcon:se,allowClear:de,notFoundContent:ae,className:ve,getPopupContainer:l||_,dropdownClassName:pe,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:ye}),maxCount:Z?O:void 0,tagRender:Z?$:void 0})))},dV=H.forwardRef(uV),fV=_F(dV);dV.SECRET_COMBOBOX_MODE_DO_NOT_USE=sV,dV.Option=WH,dV.OptGroup=HH,dV._InternalPanelDoNotUseOrYouWillBeFired=fV;const pV=e("$",dV),mV=["xxl","xl","lg","md","sm","xs"],hV=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)`}),gV=e=>{const t=e,n=[].concat(mV).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};function vV(){const[,e]=$P(),t=hV(gV(e));return W.useMemo((()=>{const e=new Map;let n=-1,r={};return{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()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function bV(){const[,e]=H.useReducer((e=>e+1),0);return e}function yV(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=H.useRef({}),n=bV(),r=vV();return LI((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}const wV=H.createContext({}),SV=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:s,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:m,lineWidth:h,lineType:g}=e,v=(e,t,o)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},PP(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${PI(h)} ${g} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,s,f)),{"&-lg":Object.assign({},v(l,u,p)),"&-sm":Object.assign({},v(c,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},xV=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},CV=tT("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=KP(e,{avatarBg:n,avatarColor:t});return[SV(r),xV(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:s,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:s,groupOverlapping:-c,groupBorderColor:u}}));var EV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kV=(e,t)=>{const[n,r]=H.useState(1),[o,i]=H.useState(!1),[a,l]=H.useState(!0),c=H.useRef(null),s=H.useRef(null),u=ik(t,c),{getPrefixCls:d,avatar:f}=H.useContext(aP),p=H.useContext(wV),m=()=>{if(!s.current||!c.current)return;const t=s.current.offsetWidth,n=c.current.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&r(n-2*o<t?(n-2*o)/t:1)}};H.useEffect((()=>{i(!0)}),[]),H.useEffect((()=>{l(!0),r(1)}),[e.src]),H.useEffect(m,[e.gap]);const h=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&l(!1)},{prefixCls:g,shape:v,size:b,src:y,srcSet:w,icon:S,className:x,rootClassName:C,alt:E,draggable:k,children:$,crossOrigin:O}=e,N=EV(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),_=YA((e=>{var t,n;return null!==(n=null!==(t=null!=b?b:null==p?void 0:p.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),I=yV(Object.keys("object"==typeof _&&_||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),R=H.useMemo((()=>{if("object"!=typeof _)return{};const e=mV.find((e=>I[e])),t=_[e];return t?{width:t,height:t,fontSize:t&&(S||$)?t/2:18}:{}}),[I,_]),M=d("avatar",g),P=Pj(M),[T,j,A]=CV(M,P),z=m_({[`${M}-lg`]:"large"===_,[`${M}-sm`]:"small"===_}),D=H.isValidElement(y),L=v||(null==p?void 0:p.shape)||"circle",B=m_(M,z,null==f?void 0:f.className,`${M}-${L}`,{[`${M}-image`]:D||y&&a,[`${M}-icon`]:!!S},A,P,x,C,j),F="number"==typeof _?{width:_,height:_,fontSize:S?_/2:18}:{};let W;if("string"==typeof y&&a)W=H.createElement("img",{src:y,draggable:k,srcSet:w,onError:h,alt:E,crossOrigin:O});else if(D)W=y;else if(S)W=S;else if(o||1!==n){const e=`scale(${n})`,t={msTransform:e,WebkitTransform:e,transform:e};W=H.createElement(rI,{onResize:m},H.createElement("span",{className:`${M}-string`,ref:s,style:Object.assign({},t)},$))}else W=H.createElement("span",{className:`${M}-string`,style:{opacity:0},ref:s},$);return delete N.onError,delete N.gap,T(H.createElement("span",Object.assign({},N,{style:Object.assign(Object.assign(Object.assign(Object.assign({},F),R),null==f?void 0:f.style),N.style),className:B,ref:u}),W))},$V=H.forwardRef(kV),OV=e=>e?"function"==typeof e?e():e:null;function NV(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return H.createElement("div",{className:Aw("".concat(n,"-content"),i),style:a},H.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var _V={shiftX:64,adjustY:1},IV={adjustX:1,shiftY:!0},RV=[0,0],MV={left:{points:["cr","cl"],overflow:IV,offset:[-4,0],targetOffset:RV},right:{points:["cl","cr"],overflow:IV,offset:[4,0],targetOffset:RV},top:{points:["bc","tc"],overflow:_V,offset:[0,-4],targetOffset:RV},bottom:{points:["tc","bc"],overflow:_V,offset:[0,4],targetOffset:RV},topLeft:{points:["bl","tl"],overflow:_V,offset:[0,-4],targetOffset:RV},leftTop:{points:["tr","tl"],overflow:IV,offset:[-4,0],targetOffset:RV},topRight:{points:["br","tr"],overflow:_V,offset:[0,-4],targetOffset:RV},rightTop:{points:["tl","tr"],overflow:IV,offset:[4,0],targetOffset:RV},bottomRight:{points:["tr","br"],overflow:_V,offset:[0,4],targetOffset:RV},rightBottom:{points:["bl","br"],overflow:IV,offset:[4,0],targetOffset:RV},bottomLeft:{points:["tl","bl"],overflow:_V,offset:[0,4],targetOffset:RV},leftBottom:{points:["br","bl"],overflow:IV,offset:[-4,0],targetOffset:RV}},PV=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],TV=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,l=e.mouseLeaveDelay,c=void 0===l?.1:l,s=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,m=e.afterVisibleChange,h=e.transitionName,g=e.animation,v=e.motion,b=e.placement,y=void 0===b?"right":b,w=e.align,S=void 0===w?{}:w,x=e.destroyTooltipOnHide,C=void 0!==x&&x,E=e.defaultVisible,k=e.getTooltipContainer,$=e.overlayInnerStyle;e.arrowContent;var O=e.overlay,N=e.id,_=e.showArrow,I=void 0===_||_,R=Tw(e,PV),M=H.useRef(null);H.useImperativeHandle(t,(function(){return M.current}));var P=rS({},R);return"visible"in e&&(P.popupVisible=e.visible),H.createElement(IH,kw({popupClassName:n,prefixCls:d,popup:function(){return H.createElement(NV,{key:"content",prefixCls:d,id:N,overlayInnerStyle:$},O)},action:o,builtinPlacements:MV,popupPlacement:y,ref:M,popupAlign:S,getPopupContainer:k,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:h,popupAnimation:g,popupMotion:v,defaultPopupVisible:E,autoDestroy:C,mouseLeaveDelay:c,popupStyle:s,mouseEnterDelay:a,arrow:I},P),f)};const jV=H.forwardRef(TV);function AV(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)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,h=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const zV=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${PI(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},DV=8;function LV(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?DV:r}}function BV(e,t){return e?t:{}}function FV(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},zV(e,t,o)),{"&:before":{background:t}})]},BV(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),BV(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),BV(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),BV(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const HV={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"]}},WV={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"]}},VV=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function UV(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(HV).forEach((e=>{const s=r&&WV[e]||HV[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,VV.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=LV({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof 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=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const KV=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},PP(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${PI(e.calc(s).div(2).equal())} ${PI(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,DV)}},[`${t}-content`]:{position:"relative"}}),nT(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},FV(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qV=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},LV({contentRadius:e.borderRadius,limitVerticalRadius:!0})),AV(KP(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),XV=function(e){const t=tT("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=KP(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[KV(o),qB(e,"zoom-big-fast")]}),qV,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},GV=hP.map((e=>`${e}-inverse`)),YV=["success","processing","error","default","warning"];function QV(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?hP.includes(e):[].concat(aI(GV),aI(hP)).includes(e)}function ZV(e,t){const n=QV(t),r=m_({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const JV=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=H.useContext(aP),c=l("tooltip",t),[s,u,d]=XV(c),f=ZV(c,i),p=f.arrowStyle,m=Object.assign(Object.assign({},a),f.overlayStyle),h=m_(u,d,c,`${c}-pure`,`${c}-placement-${r}`,n,f.className);return s(H.createElement("div",{className:h,style:p},H.createElement("div",{className:`${c}-arrow`}),H.createElement(NV,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:m}),o)))};var eU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tU=H.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:c,overlayInnerStyle:s,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:m=!0,title:h,overlay:g,builtinPlacements:v,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0}=e,w=!!m,[,S]=$P(),{getPopupContainer:x,getPrefixCls:C,direction:E}=H.useContext(aP),k=fM(),$=H.useRef(null),O=()=>{var e;null===(e=$.current)||void 0===e||e.forceAlign()};H.useImperativeHandle(t,(()=>({forceAlign:O,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),O()}})));const[N,_]=IP(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),I=!h&&!g&&0!==h,R=H.useMemo((()=>{var e,t;let n=b;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:b),v||UV({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:w?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})}),[b,m,v,S]),M=H.useMemo((()=>0===h?h:g||h||""),[g,h]),P=H.createElement(oz,null,"function"==typeof M?M():M),{getPopupContainer:T,placement:j="top",mouseEnterDelay:A=.1,mouseLeaveDelay:z=.1,overlayStyle:D,rootClassName:L}=e,B=eU(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),F=C("tooltip",o),W=C(),V=e["data-popover-inject"];let U=N;"open"in e||"visible"in e||!I||(U=!1);const K=wj(u)&&!Sj(u)?u:H.createElement("span",null,u),q=K.props,X=q.className&&"string"!=typeof q.className?q.className:m_(q.className,i||`${F}-open`),[G,Y,Q]=XV(F,!V),Z=ZV(F,c),J=Z.arrowStyle,ee=Object.assign(Object.assign({},s),Z.overlayStyle),te=m_(l,{[`${F}-rtl`]:"rtl"===E},Z.className,L,Y,Q),[ne,re]=Yj("Tooltip",B.zIndex),oe=H.createElement(jV,Object.assign({},B,{zIndex:ne,showArrow:w,placement:j,mouseEnterDelay:A,mouseLeaveDelay:z,prefixCls:F,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},J),D),getTooltipContainer:T||a||x,ref:$,builtinPlacements:R,overlay:P,visible:U,onVisibleChange:t=>{var n,r;_(!I&&t),I||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:ee,arrowContent:H.createElement("span",{className:`${F}-arrow-content`}),motion:{motionName:LA(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),U?xj(K,{className:X}):K);return G(H.createElement(Uj.Provider,{value:re},oe))}));tU._InternalPanelDoNotUseOrYouWillBeFired=JV;const nU=e("V",tU),rU=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},PP(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:h},[`${t}-inner-content`]:{color:n,padding:m}})},FV(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},oU=e=>{const{componentCls:t}=e;return{[t]:hP.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},iU=tT("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=KP(e,{popoverBg:t,popoverColor:n});return[rU(r),oU(r),qB(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},AV(e)),LV({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${h}px ${m}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${h}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var aU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lU=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:c}=e;return H.createElement("div",{className:m_(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},H.createElement("div",{className:`${n}-arrow`}),H.createElement(NV,Object.assign({},e,{className:t,prefixCls:n}),c||((e,t,n)=>t||n?H.createElement(H.Fragment,null,t&&H.createElement("div",{className:`${e}-title`},OV(t)),H.createElement("div",{className:`${e}-inner-content`},OV(n))):null)(n,a,l)))},cU=e=>{const{prefixCls:t,className:n}=e,r=aU(e,["prefixCls","className"]),{getPrefixCls:o}=H.useContext(aP),i=o("popover",t),[a,l,c]=iU(i);return a(H.createElement(lU,Object.assign({},r,{prefixCls:i,hashId:l,className:m_(n,c)})))};var sU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uU=e=>{let{title:t,content:n,prefixCls:r}=e;return H.createElement(H.Fragment,null,t&&H.createElement("div",{className:`${r}-title`},OV(t)),H.createElement("div",{className:`${r}-inner-content`},OV(n)))},dU=H.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l="hover",mouseEnterDelay:c=.1,mouseLeaveDelay:s=.1,overlayStyle:u={}}=e,d=sU(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=H.useContext(aP),p=f("popover",n),[m,h,g]=iU(p),v=f(),b=m_(i,h,g);return m(H.createElement(nU,Object.assign({placement:a,trigger:l,mouseEnterDelay:c,mouseLeaveDelay:s,overlayStyle:u},d,{prefixCls:p,overlayClassName:b,ref:t,overlay:r||o?H.createElement(uU,{prefixCls:p,title:r,content:o}):null,transitionName:LA(v,"zoom-big",d.transitionName),"data-popover-inject":!0})))}));dU._InternalPanelDoNotUseOrYouWillBeFired=cU;const fU=dU,pU=e=>{const{size:t,shape:n}=H.useContext(wV),r=H.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return H.createElement(wV.Provider,{value:r},e.children)},mU=e=>{const{getPrefixCls:t,direction:n}=H.useContext(aP),{prefixCls:r,className:o,rootClassName:i,style:a,maxCount:l,maxStyle:c,size:s,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:f="hover",children:p}=e,m=t("avatar",r),h=`${m}-group`,g=Pj(m),[v,b,y]=CV(m,g),w=m_(h,{[`${h}-rtl`]:"rtl"===n},y,g,o,i,b),S=h_(p).map(((e,t)=>xj(e,{key:`avatar-key-${t}`}))),x=S.length;if(l&&l<x){const e=S.slice(0,l),t=S.slice(l,x);return e.push(H.createElement(fU,{key:"avatar-popover-key",content:t,trigger:f,placement:d,overlayClassName:`${h}-popover`,destroyTooltipOnHide:!0},H.createElement($V,{style:c},"+"+(x-l)))),v(H.createElement(pU,{shape:u,size:s},H.createElement("div",{className:w,style:a},e)))}return v(H.createElement(pU,{shape:u,size:s},H.createElement("div",{className:w,style:a},S)))},hU=$V;hU.Group=mU,e("A",hU);var gU=Tj.ESC,vU=Tj.TAB,bU=H.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=H.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=ik(t,null==i?void 0:i.ref);return W.createElement(W.Fragment,null,r&&W.createElement("div",{className:"".concat(o,"-arrow")}),W.cloneElement(i,{ref:lk(i)?a:void 0}))})),yU={adjustX:1,adjustY:1},wU=[0,0],SU={topLeft:{points:["bl","tl"],overflow:yU,offset:[0,-4],targetOffset:wU},top:{points:["bc","tc"],overflow:yU,offset:[0,-4],targetOffset:wU},topRight:{points:["br","tr"],overflow:yU,offset:[0,-4],targetOffset:wU},bottomLeft:{points:["tl","bl"],overflow:yU,offset:[0,4],targetOffset:wU},bottom:{points:["tc","bc"],overflow:yU,offset:[0,4],targetOffset:wU},bottomRight:{points:["tr","br"],overflow:yU,offset:[0,4],targetOffset:wU}},xU=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function CU(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,l=e.transitionName,c=e.animation,s=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,p=void 0===f?SU:f,m=e.getPopupContainer,h=e.showAction,g=e.hideAction,v=e.overlayClassName,b=e.overlayStyle,y=e.visible,w=e.trigger,S=void 0===w?["hover"]:w,x=e.autoFocus,C=e.overlay,E=e.children,k=e.onVisibleChange,$=Tw(e,xU),O=Iw(W.useState(),2),N=O[0],_=O[1],I="visible"in e?y:N,R=W.useRef(null),M=W.useRef(null),P=W.useRef(null);W.useImperativeHandle(t,(function(){return R.current}));var T=function(e){_(e),null==k||k(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=H.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},s=function(e){switch(e.keyCode){case gU:l();break;case vU:var t=!1;a.current||(t=c()),t?e.preventDefault():l()}};H.useEffect((function(){return t?(window.addEventListener("keydown",s),o&&fI(c,3),function(){window.removeEventListener("keydown",s),a.current=!1}):function(){a.current=!1}}),[t])}({visible:I,triggerRef:P,onVisibleChange:T,autoFocus:x,overlayRef:M});var j,A,z,D=function(){return W.createElement(bU,{ref:M,overlay:C,prefixCls:a,arrow:o})},L=W.cloneElement(E,{className:Aw(null===(n=E.props)||void 0===n?void 0:n.className,I&&(j=e.openClassName,void 0!==j?j:"".concat(a,"-open"))),ref:lk(E)?ik(P,E.ref):void 0}),B=g;return B||-1===S.indexOf("contextMenu")||(B=["click"]),W.createElement(IH,kw({builtinPlacements:p},$,{prefixCls:a,ref:R,popupClassName:Aw(v,Pw({},"".concat(a,"-show-arrow"),o)),popupStyle:b,action:S,showAction:h,hideAction:B,popupPlacement:d,popupAlign:s,popupTransitionName:l,popupAnimation:c,popupVisible:I,stretch:(A=e.minOverlayWidthMatchTrigger,z=e.alignPoint,("minOverlayWidthMatchTrigger"in e?A:!z)?"minWidth":""),popup:"function"==typeof C?D:D(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;_(!1),n&&n(t)},getPopupContainer:m}),L)}const EU=W.forwardRef(CU);var kU=H.createContext(null);function $U(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function OU(e){return $U(H.useContext(kU),e)}var NU=["children","locked"],_U=H.createContext(null);function IU(e){var t=e.children,n=e.locked,r=Tw(e,NU),o=H.useContext(_U),i=ZE((function(){return e=r,t=rS({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&mI(e[1],t[1],!0))}));return H.createElement(_U.Provider,{value:i},t)}var RU=[],MU=H.createContext(null);function PU(){return H.useContext(MU)}var TU=H.createContext(RU);function jU(e){var t=H.useContext(TU);return H.useMemo((function(){return void 0!==e?[].concat(aI(t),[e]):t}),[t,e])}var AU=H.createContext(null),zU=H.createContext({});function DU(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(FA(e)){var 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),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}var LU=Tj.LEFT,BU=Tj.RIGHT,FU=Tj.UP,HU=Tj.DOWN,WU=Tj.ENTER,VU=Tj.ESC,UU=Tj.HOME,KU=Tj.END,qU=[FU,HU,LU,BU];function XU(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=aI(e.querySelectorAll("*")).filter((function(e){return DU(e,t)}));return DU(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function GU(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=XU(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var YU=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat($U(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function QU(e,t,n,r,o,i,a,l,c,s){var u=H.useRef(),d=H.useRef();d.current=t;var f=function(){fI.cancel(u.current)};return H.useEffect((function(){return function(){f()}}),[]),function(p){var m=p.which;if([].concat(qU,[WU,VU,UU,KU]).includes(m)){var h=i(),g=YU(h,r),v=g,b=v.elements,y=v.key2element,w=v.element2key,S=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),x=w.get(S),C=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",d="parent";if("inline"===e&&r===WU)return{inlineTrigger:!0};var f=(Pw(o={},FU,c),Pw(o,HU,s),o),p=(Pw(i={},LU,n?s:c),Pw(i,BU,n?c:s),Pw(i,HU,u),Pw(i,WU,u),i),m=(Pw(a={},FU,c),Pw(a,HU,s),Pw(a,WU,u),Pw(a,VU,d),Pw(a,LU,n?u:d),Pw(a,BU,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===a(x,!0).length,n,m);if(!C&&m!==UU&&m!==KU)return;(qU.includes(m)||[UU,KU].includes(m))&&p.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);l(r),f(),u.current=fI((function(){d.current===r&&t.focus()}))}};if([UU,KU].includes(m)||C.sibling||!S){var k,$,O=XU(k=S&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(S):o.current,b);$=m===UU?O[0]:m===KU?O[O.length-1]:GU(k,b,S,C.offset),E($)}else if(C.inlineTrigger)c(x);else if(C.offset>0)c(x,!0),f(),u.current=fI((function(){g=YU(h,r);var e=S.getAttribute("aria-controls"),t=GU(document.getElementById(e),g.elements);E(t)}),5);else if(C.offset<0){var N=a(x,!0),_=N[N.length-2],I=y.get(_);c(_,!1),E(I)}}null==s||s(p)}}var ZU="__RC_UTIL_PATH_SPLIT__",JU=function(e){return e.join(ZU)},eK="rc-menu-more";function tK(){var e=Iw(H.useState({}),2)[1],t=H.useRef(new Map),n=H.useRef(new Map),r=Iw(H.useState([]),2),o=r[0],i=r[1],a=H.useRef(0),l=H.useRef(!1),c=H.useCallback((function(r,o){var i=JU(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var c,s=a.current;c=function(){s===a.current&&(l.current||e({}))},Promise.resolve().then(c)}),[]),s=H.useCallback((function(e,r){var o=JU(r);n.current.delete(o),t.current.delete(e)}),[]),u=H.useCallback((function(e){i(e)}),[]),d=H.useCallback((function(e,n){var r=t.current.get(e)||"",i=r.split(ZU);return n&&o.includes(i[0])&&i.unshift(eK),i}),[o]),f=H.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=H.useCallback((function(e){var r="".concat(t.current.get(e)).concat(ZU),o=new Set;return aI(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return H.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:c,unregisterPath:s,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=aI(t.current.keys());return o.length&&e.push(eK),e},getSubPathKeys:p}}function nK(e){var t=H.useRef(e);t.current=e;var n=H.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var rK=Math.random().toFixed(5).toString().slice(2),oK=0;function iK(e,t,n,r){var o=H.useContext(_U),i=o.activeKey,a=o.onActive,l=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),c}function aK(e){var t=H.useContext(_U),n=t.mode,r=t.rtl,o=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}function lK(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=H.createElement(n,rS({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var cK=["item"];function sK(e){var t=e.item,n=Tw(e,cK);return Object.defineProperty(n,"item",{get:function(){return CS(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var uK=["title","attribute","elementRef"],dK=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],fK=["active"],pK=function(e){q_(n,e);var t=Z_(n);function n(){return W_(this,n),t.apply(this,arguments)}return U_(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=oI(Tw(e,uK),["eventKey","popupClassName","popupOffset","onTitleClick"]);return CS(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),H.createElement(QF.Item,kw({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(H.Component),mK=H.forwardRef((function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.itemIcon,c=e.children,s=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,m=e.onFocus,h=Tw(e,dK),g=OU(i),v=H.useContext(_U),b=v.prefixCls,y=v.onItemClick,w=v.disabled,S=v.overflowDisabled,x=v.itemIcon,C=v.selectedKeys,E=v.onActive,k=H.useContext(zU)._internalRenderMenuItem,$="".concat(b,"-item"),O=H.useRef(),N=H.useRef(),_=w||a,I=ak(t,N),R=jU(i),M=function(e){return{key:i,keyPath:aI(R).reverse(),item:O.current,domEvent:e}},P=l||x,T=iK(i,_,u,d),j=T.active,A=Tw(T,fK),z=C.includes(i),D=aK(R.length),L={};"option"===e.role&&(L["aria-selected"]=z);var B=H.createElement(pK,kw({ref:O,elementRef:I,role:null===s?"none":s||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&g?null:g},h,A,L,{component:"li","aria-disabled":a,style:rS(rS({},D),r),className:Aw($,(n={},Pw(n,"".concat($,"-active"),j),Pw(n,"".concat($,"-selected"),z),Pw(n,"".concat($,"-disabled"),_),n),o),onClick:function(e){if(!_){var t=M(e);null==f||f(sK(t)),y(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===Tj.ENTER){var t=M(e);null==f||f(sK(t)),y(t)}},onFocus:function(e){E(i),null==m||m(e)}}),c,H.createElement(lK,{props:rS(rS({},e),{},{isSelected:z}),icon:P}));return k&&(B=k(B,e,{selected:z})),B}));function hK(e,t){var n=e.eventKey,r=PU(),o=jU(n);return H.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:H.createElement(mK,kw({},e,{ref:t}))}const gK=H.forwardRef(hK);var vK=["className","children"],bK=function(e,t){var n=e.className,r=e.children,o=Tw(e,vK),i=H.useContext(_U),a=i.prefixCls,l=i.mode,c=i.rtl;return H.createElement("ul",kw({className:Aw(a,c&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},yK=H.forwardRef(bK);function wK(e,t){return h_(e).map((function(e,n){if(H.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(aI(t),[n]).join("-")));var l={key:a,eventKey:a};return H.cloneElement(e,l)}return e}))}yK.displayName="SubMenuList";var SK={adjustX:1,adjustY:1},xK={topLeft:{points:["bl","tl"],overflow:SK},topRight:{points:["br","tr"],overflow:SK},bottomLeft:{points:["tl","bl"],overflow:SK},bottomRight:{points:["tr","br"],overflow:SK},leftTop:{points:["tr","tl"],overflow:SK},leftBottom:{points:["br","bl"],overflow:SK},rightTop:{points:["tl","tr"],overflow:SK},rightBottom:{points:["bl","br"],overflow:SK}},CK={topLeft:{points:["bl","tl"],overflow:SK},topRight:{points:["br","tr"],overflow:SK},bottomLeft:{points:["tl","bl"],overflow:SK},bottomRight:{points:["tr","br"],overflow:SK},rightTop:{points:["tr","tl"],overflow:SK},rightBottom:{points:["br","bl"],overflow:SK},leftTop:{points:["tl","tr"],overflow:SK},leftBottom:{points:["bl","br"],overflow:SK}};function EK(e,t,n){return t||(n?n[e]||n.other:void 0)}var kK={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function $K(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,c=e.disabled,s=e.mode,u=e.onVisibleChange,d=H.useContext(_U),f=d.getPopupContainer,p=d.rtl,m=d.subMenuOpenDelay,h=d.subMenuCloseDelay,g=d.builtinPlacements,v=d.triggerSubMenuAction,b=d.forceSubMenuRender,y=d.rootClassName,w=d.motion,S=d.defaultMotions,x=Iw(H.useState(!1),2),C=x[0],E=x[1],k=rS(rS({},p?CK:xK),g),$=kK[s],O=EK(s,w,S),N=H.useRef(O);"inline"!==s&&(N.current=O);var _=rS(rS({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=H.useRef();return H.useEffect((function(){return I.current=fI((function(){E(n)})),function(){fI.cancel(I.current)}}),[n]),H.createElement(IH,{prefixCls:t,popupClassName:Aw("".concat(t,"-popup"),Pw({},"".concat(t,"-rtl"),p),a,y),stretch:"horizontal"===s?"minWidth":null,getPopupContainer:f,builtinPlacements:k,popupPlacement:$,popupVisible:C,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:c?[]:[v],mouseEnterDelay:m,mouseLeaveDelay:h,onPopupVisibleChange:u,forceRender:b,popupMotion:_,fresh:!0},r)}function OK(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=H.useContext(_U),l=a.prefixCls,c=a.forceSubMenuRender,s=a.motion,u=a.defaultMotions,d=a.mode,f=H.useRef(!1);f.current=d===i;var p=Iw(H.useState(!f.current),2),m=p[0],h=p[1],g=!!f.current&&n;H.useEffect((function(){f.current&&h(!1)}),[d]);var v=rS({},EK(i,s,u));r.length>1&&(v.motionAppear=!1);var b=v.onVisibleChanged;return v.onVisibleChanged=function(e){return f.current||e||h(!0),null==b?void 0:b(e)},m?null:H.createElement(IU,{mode:i,locked:!f.current},H.createElement(VT,kw({visible:g},v,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return H.createElement(yK,{id:t,className:n,style:r},o)})))}var NK=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_K=["active"],IK=function(e){var t,n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.internalPopupClose,c=e.children,s=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.popupStyle,m=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,v=e.onTitleClick,b=e.onTitleMouseEnter,y=e.onTitleMouseLeave,w=Tw(e,NK),S=OU(i),x=H.useContext(_U),C=x.prefixCls,E=x.mode,k=x.openKeys,$=x.disabled,O=x.overflowDisabled,N=x.activeKey,_=x.selectedKeys,I=x.itemIcon,R=x.expandIcon,M=x.onItemClick,P=x.onOpenChange,T=x.onActive,j=H.useContext(zU)._internalRenderSubMenuItem,A=H.useContext(AU).isSubPathKey,z=jU(),D="".concat(C,"-submenu"),L=$||a,B=H.useRef(),F=H.useRef(),W=null!=s?s:I,V=null!=u?u:R,U=k.includes(i),K=!O&&U,q=A(_,i),X=iK(i,L,b,y),G=X.active,Y=Tw(X,_K),Q=Iw(H.useState(!1),2),Z=Q[0],J=Q[1],ee=function(e){L||J(e)},te=H.useMemo((function(){return G||"inline"!==E&&(Z||A([N],i))}),[E,G,N,Z,i,A]),ne=aK(z.length),re=nK((function(e){null==m||m(sK(e)),M(e)})),oe=S&&"".concat(S,"-popup"),ie=H.createElement("div",kw({role:"menuitem",style:ne,className:"".concat(D,"-title"),tabIndex:L?null:-1,ref:B,title:"string"==typeof o?o:null,"data-menu-id":O&&S?null:S,"aria-expanded":K,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":L,onClick:function(e){L||(null==v||v({key:i,domEvent:e}),"inline"===E&&P(i,!U))},onFocus:function(){T(i)}},Y),o,H.createElement(lK,{icon:"horizontal"!==E?V:void 0,props:rS(rS({},e),{},{isOpen:K,isSubMenu:!0})},H.createElement("i",{className:"".concat(D,"-arrow")}))),ae=H.useRef(E);if("inline"!==E&&z.length>1?ae.current="vertical":ae.current=E,!O){var le=ae.current;ie=H.createElement($K,{mode:le,prefixCls:D,visible:!l&&K&&"inline"!==E,popupClassName:d,popupOffset:f,popupStyle:p,popup:H.createElement(IU,{mode:"horizontal"===le?"vertical":le},H.createElement(yK,{id:oe,ref:F},c)),disabled:L,onVisibleChange:function(e){"inline"!==E&&P(i,e)}},ie)}var ce=H.createElement(QF.Item,kw({role:"none"},w,{component:"li",style:n,className:Aw(D,"".concat(D,"-").concat(E),r,(t={},Pw(t,"".concat(D,"-open"),K),Pw(t,"".concat(D,"-active"),te),Pw(t,"".concat(D,"-selected"),q),Pw(t,"".concat(D,"-disabled"),L),t)),onMouseEnter:function(e){ee(!0),null==h||h({key:i,domEvent:e})},onMouseLeave:function(e){ee(!1),null==g||g({key:i,domEvent:e})}}),ie,!O&&H.createElement(OK,{id:oe,open:K,keyPath:z},c));return j&&(ce=j(ce,e,{selected:q,active:te,open:K,disabled:L})),H.createElement(IU,{onItemClick:re,mode:"horizontal"===E?"vertical":E,itemIcon:W,expandIcon:V},ce)};function RK(e){var t,n=e.eventKey,r=e.children,o=jU(n),i=wK(r,o),a=PU();return H.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:H.createElement(IK,e,i),H.createElement(TU.Provider,{value:o},t)}var MK=["className","title","eventKey","children"],PK=["children"],TK=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=Tw(e,MK),i=H.useContext(_U).prefixCls,a="".concat(i,"-item-group");return H.createElement("li",kw({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:Aw(a,t)}),H.createElement("div",{role:"presentation",className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),H.createElement("ul",{role:"group",className:"".concat(a,"-list")},r))};function jK(e){var t=e.children,n=Tw(e,PK),r=wK(t,jU(n.eventKey));return PU()?r:H.createElement(TK,oI(n,["warnKey"]),r)}function AK(e){var t=e.className,n=e.style,r=H.useContext(_U).prefixCls;return PU()?null:H.createElement("li",{role:"separator",className:Aw("".concat(r,"-item-divider"),t),style:n})}var zK=["label","children","key","type"];function DK(e){return(e||[]).map((function(e,t){if(e&&"object"===Rw(e)){var n=e,r=n.label,o=n.children,i=n.key,a=n.type,l=Tw(n,zK),c=null!=i?i:"tmp-".concat(t);return o||"group"===a?"group"===a?H.createElement(jK,kw({key:c},l,{title:r}),DK(o)):H.createElement(RK,kw({key:c},l,{title:r}),DK(o)):"divider"===a?H.createElement(AK,kw({key:c},l)):H.createElement(gK,kw({key:c},l),r)}return null})).filter((function(e){return e}))}function LK(e,t,n){var r=e;return t&&(r=DK(t)),wK(r,n)}var BK=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],FK=[],HK=H.forwardRef((function(e,t){var n,r,o=e,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,c=o.style,s=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,m=o.direction,h=o.id,g=o.mode,v=void 0===g?"vertical":g,b=o.inlineCollapsed,y=o.disabled,w=o.disabledOverflow,S=o.subMenuOpenDelay,x=void 0===S?.1:S,C=o.subMenuCloseDelay,E=void 0===C?.1:C,k=o.forceSubMenuRender,$=o.defaultOpenKeys,O=o.openKeys,N=o.activeKey,_=o.defaultActiveFirst,I=o.selectable,R=void 0===I||I,M=o.multiple,P=void 0!==M&&M,T=o.defaultSelectedKeys,j=o.selectedKeys,A=o.onSelect,z=o.onDeselect,D=o.inlineIndent,L=void 0===D?24:D,B=o.motion,F=o.defaultMotions,W=o.triggerSubMenuAction,V=void 0===W?"hover":W,U=o.builtinPlacements,K=o.itemIcon,q=o.expandIcon,X=o.overflowedIndicator,G=void 0===X?"...":X,Y=o.overflowedIndicatorPopupClassName,Q=o.getPopupContainer,Z=o.onClick,J=o.onOpenChange,ee=o.onKeyDown;o.openAnimation,o.openTransitionName;var te=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,re=Tw(o,BK),oe=H.useMemo((function(){return LK(p,f,FK)}),[p,f]),ie=Iw(H.useState(!1),2),ae=ie[0],le=ie[1],ce=H.useRef(),se=function(e){var t=Iw(IP(e,{value:e}),2),n=t[0],r=t[1];return H.useEffect((function(){oK+=1;var e="".concat(rK,"-").concat(oK);r("rc-menu-uuid-".concat(e))}),[]),n}(h),ue="rtl"===m,de=IP($,{value:O,postState:function(e){return e||FK}}),fe=Iw(de,2),pe=fe[0],me=fe[1],he=function(e){function t(){me(e),null==J||J(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?cd.flushSync(t):t()},ge=Iw(H.useState(pe),2),ve=ge[0],be=ge[1],ye=H.useRef(!1),we=Iw(H.useMemo((function(){return"inline"!==v&&"vertical"!==v||!b?[v,!1]:["vertical",b]}),[v,b]),2),Se=we[0],xe=we[1],Ce="inline"===Se,Ee=Iw(H.useState(Se),2),ke=Ee[0],$e=Ee[1],Oe=Iw(H.useState(xe),2),Ne=Oe[0],_e=Oe[1];H.useEffect((function(){$e(Se),_e(xe),ye.current&&(Ce?me(ve):he(FK))}),[Se,xe]);var Ie=Iw(H.useState(0),2),Re=Ie[0],Me=Ie[1],Pe=Re>=oe.length-1||"horizontal"!==ke||w;H.useEffect((function(){Ce&&be(pe)}),[pe]),H.useEffect((function(){return ye.current=!0,function(){ye.current=!1}}),[]);var Te=tK(),je=Te.registerPath,Ae=Te.unregisterPath,ze=Te.refreshOverflowKeys,De=Te.isSubPathKey,Le=Te.getKeyPath,Be=Te.getKeys,Fe=Te.getSubPathKeys,He=H.useMemo((function(){return{registerPath:je,unregisterPath:Ae}}),[je,Ae]),We=H.useMemo((function(){return{isSubPathKey:De}}),[De]);H.useEffect((function(){ze(Pe?FK:oe.slice(Re+1).map((function(e){return e.key})))}),[Re,Pe]);var Ve=Iw(IP(N||_&&(null===(n=oe[0])||void 0===n?void 0:n.key),{value:N}),2),Ue=Ve[0],Ke=Ve[1],qe=nK((function(e){Ke(e)})),Xe=nK((function(){Ke(void 0)}));H.useImperativeHandle(t,(function(){return{list:ce.current,focus:function(e){var t,n,r=Be(),o=YU(r,se),i=o.elements,a=o.key2element,l=o.element2key,c=XU(ce.current,i),s=null!=Ue?Ue:c[0]?l.get(c[0]):null===(t=oe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Ge=IP(T||[],{value:j,postState:function(e){return Array.isArray(e)?e:null==e?FK:[e]}}),Ye=Iw(Ge,2),Qe=Ye[0],Ze=Ye[1],Je=nK((function(e){null==Z||Z(sK(e)),function(e){if(R){var t,n=e.key,r=Qe.includes(n);t=P?r?Qe.filter((function(e){return e!==n})):[].concat(aI(Qe),[n]):[n],Ze(t);var o=rS(rS({},e),{},{selectedKeys:t});r?null==z||z(o):null==A||A(o)}!P&&pe.length&&"inline"!==ke&&he(FK)}(e)})),et=nK((function(e,t){var n=pe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==ke){var r=Fe(e);n=n.filter((function(e){return!r.has(e)}))}mI(pe,n,!0)||he(n,!0)})),tt=QU(ke,Ue,ue,se,ce,Be,Le,Ke,(function(e,t){var n=null!=t?t:!pe.includes(e);et(e,n)}),ee);H.useEffect((function(){le(!0)}),[]);var nt=H.useMemo((function(){return{_internalRenderMenuItem:te,_internalRenderSubMenuItem:ne}}),[te,ne]),rt="horizontal"!==ke||w?oe:oe.map((function(e,t){return H.createElement(IU,{key:e.key,overflowDisabled:t>Re},e)})),ot=H.createElement(QF,kw({id:h,ref:ce,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:gK,className:Aw(a,"".concat(a,"-root"),"".concat(a,"-").concat(ke),s,(r={},Pw(r,"".concat(a,"-inline-collapsed"),Ne),Pw(r,"".concat(a,"-rtl"),ue),r),l),dir:m,style:c,role:"menu",tabIndex:d,data:rt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?oe.slice(-t):null;return H.createElement(RK,{eventKey:eK,title:G,disabled:Pe,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==ke||w?QF.INVALIDATE:QF.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Me(e)},onKeyDown:tt},re));return H.createElement(zU.Provider,{value:nt},H.createElement(kU.Provider,{value:se},H.createElement(IU,{prefixCls:a,rootClassName:l,mode:ke,openKeys:pe,rtl:ue,disabled:y,motion:ae?B:null,defaultMotions:ae?F:null,activeKey:Ue,onActive:qe,onInactive:Xe,selectedKeys:Qe,inlineIndent:L,subMenuOpenDelay:x,subMenuCloseDelay:E,forceSubMenuRender:k,builtinPlacements:U,triggerSubMenuAction:V,getPopupContainer:Q,itemIcon:K,expandIcon:q,onItemClick:Je,onOpenChange:et},H.createElement(AU.Provider,{value:We},ot),H.createElement("div",{style:{display:"none"},"aria-hidden":!0},H.createElement(MU.Provider,{value:He},oe)))))})),WK=HK;WK.Item=gK,WK.SubMenu=RK,WK.ItemGroup=jK,WK.Divider=AK,globalThis&&globalThis.__rest;const VK=H.createContext({});var UK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const KK=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=UK(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=H.useContext(aP),a=i("menu",t),l=m_({[`${a}-item-divider-dashed`]:!!r},n);return H.createElement(AK,Object.assign({className:l},o))},qK=H.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),XK=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:c,direction:s,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=H.useContext(qK),{siderCollapsed:f}=H.useContext(VK);let p=i;void 0===i?p=c?r:"":!1===i&&(p="");const m={title:p};f||d||(m.title=null,m.open=!1);const h=h_(r).length;let g=H.createElement(gK,Object.assign({},oI(e,["title","icon","danger"]),{className:m_({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:1===(o?h+1:h)},n),title:"string"==typeof i?i:void 0}),xj(o,{className:m_(wj(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=H.createElement("span",{className:`${l}-title-content`},r);return(!o||wj(r)&&"span"===r.type)&&r&&e&&c&&"string"==typeof r?H.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(g=H.createElement(nU,Object.assign({},m,{placement:"rtl"===s?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),g)),g},GK=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=H.useContext(qK),{prefixCls:l,inlineCollapsed:c,theme:s}=a,u=jU();let d;if(r){const e=wj(o)&&"span"===o.type;d=H.createElement(H.Fragment,null,xj(r,{className:m_(wj(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?o:H.createElement("span",{className:`${l}-title-content`},o))}else d=c&&!u.length&&o&&"string"==typeof o?H.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):H.createElement("span",{className:`${l}-title-content`},o);const f=H.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]),[p]=Yj("Menu");return H.createElement(qK.Provider,{value:f},H.createElement(RK,Object.assign({},oI(e,["icon"]),{title:d,popupClassName:m_(l,n,`${l}-${i||s}`),popupStyle:{zIndex:p}})))};var YK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function QK(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,l=YK(n,["label","children","key","type"]),c=null!=i?i:`tmp-${t}`;return o||"group"===a?"group"===a?H.createElement(jK,Object.assign({key:c},l,{title:r}),QK(o)):H.createElement(GK,Object.assign({key:c},l,{title:r}),QK(o)):"divider"===a?H.createElement(KK,Object.assign({key:c},l)):H.createElement(XK,Object.assign({key:c},l),r)}return null})).filter((e=>e))}function ZK(e){return H.useMemo((()=>e?QK(e):e),[e])}var JK=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const eq=H.createContext(null),tq=H.forwardRef(((e,t)=>{const{children:n}=e,r=JK(e,["children"]),o=H.useContext(eq),i=H.useMemo((()=>Object.assign(Object.assign({},o),r)),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=function(e){return ck(e)&&lk(e)}(n),l=ak(t,a?n.ref:null);return H.createElement(eq.Provider,{value:i},H.createElement(oz,null,a?H.cloneElement(n,{ref:l}):n))})),nq=eq,rq=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:`${PI(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 ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},oq=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${PI(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${PI(n)})`}}}}},iq=e=>Object.assign({},AP(e)),aq=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:h,motionDurationMid:g,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:w,dangerItemColor:S,dangerItemHoverColor:x,dangerItemSelectedColor:C,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:$,itemHoverBg:O,itemActiveBg:N,menuSubMenuBg:_,horizontalItemSelectedColor:I,horizontalItemSelectedBg:R,horizontalItemBorderRadius:M,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},iq(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},iq(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}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:$},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:$},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${PI(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:s,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:s,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${PI(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${PI(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(",")}}}}}},lq=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c}=e,s=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:PI(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:PI(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:s}}},cq=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:c,paddingXL:s,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,v={height:r,lineHeight:PI(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},lq(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},lq(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${PI(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 ${f}`,`background ${f}`,`padding ${l} ${c}`].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:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:h,[`&${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`]:{insetInlineStart:0,paddingInline:`calc(50% - ${PI(e.calc(d).div(2).equal())} - ${PI(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:PI(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},MP),{paddingInline:p})}}]},sq=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},uq=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 ${n} ${r}, opacity ${n}`},"&-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 ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${PI(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${PI(a)})`}}}}},dq=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},PP(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:`${PI(l)} ${PI(c)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),sq(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${PI(e.calc(r).mul(2).equal())} ${PI(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},sq(e)),uq(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),uq(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${PI(h)})`},"&::after":{transform:`rotate(45deg) translateX(${PI(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${PI(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${PI(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${PI(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},fq=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:h,colorBgTextHover:g,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:w,padding:S,fontSize:x,controlHeightSM:C,fontSizeLG:E,colorTextLightSolid:k,colorErrorHover:$}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,N=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,_=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new XM(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:h,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:N,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:_,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:w,itemPaddingInline:S,horizontalLineHeight:1.15*v+"px",iconSize:x,iconMarginInlineEnd:C-x,collapsedIconSize:E,groupTitleFontSize:x,darkItemDisabledColor:new XM(k).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:k,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${N}px)`:`calc(100% - ${2*_}px)`}};var pq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mq=H.forwardRef(((e,t)=>{var n,r;const o=H.useContext(nq),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:s}=H.useContext(aP),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:b,items:y,children:w,rootClassName:S,mode:x,selectable:C,onClick:E,overflowedIndicatorPopupClassName:k}=e,$=oI(pq(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),O=ZK(y)||w;null===(n=i.validator)||void 0===n||n.call(i,{mode:x});const N=OP((function(){var e;null==E||E.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),_=i.mode||x,I=null!=C?C:i.selectable,R=H.useMemo((()=>void 0!==b?b:v),[v,b]),M={horizontal:{motionName:`${u}-slide-up`},inline:BA(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||i.prefixCls),T=Pj(P),[j,A,z]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=tT("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),S=KP(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),x=KP(S,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[dq(S),rq(S),cq(S),aq(S,"light"),aq(x,"dark"),oq(S),XB(S),PB(S,"slide-up"),PB(S,"slide-down"),qB(S,"zoom-big")]}),fq,{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:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(P,T,!o),D=m_(`${P}-${m}`,null==s?void 0:s.className,f);let L;if("function"==typeof h)L=h;else if(null===h||!1===h)L=null;else if(null===i.expandIcon||!1===i.expandIcon)L=null;else{const e=null!=h?h:i.expandIcon;L=xj(e,{className:m_(`${P}-submenu-expand-icon`,wj(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const B=H.useMemo((()=>({prefixCls:P,inlineCollapsed:R||!1,direction:c,firstLevel:!0,theme:m,mode:_,disableMenuItemTitleTooltip:g})),[P,R,c,g,m]);return j(H.createElement(nq.Provider,{value:null},H.createElement(qK.Provider,{value:B},H.createElement(WK,Object.assign({getPopupContainer:l,overflowedIndicator:H.createElement(jx,null),overflowedIndicatorPopupClassName:m_(P,`${P}-${m}`,k),mode:_,selectable:I,onClick:N},$,{inlineCollapsed:R,style:Object.assign(Object.assign({},null==s?void 0:s.style),p),className:D,prefixCls:P,direction:c,defaultMotions:M,expandIcon:L,ref:t,rootClassName:m_(S,A,i.rootClassName,z,T)}),O))))})),hq=mq,gq=H.forwardRef(((e,t)=>{const n=H.useRef(null),r=H.useContext(VK);return H.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),H.createElement(hq,Object.assign({ref:n},e,r))}));gq.Item=XK,gq.SubMenu=GK,gq.Divider=KK,gq.ItemGroup=jK;const vq=e("M",gq),bq=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}}}}}},yq=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:Object.assign(Object.assign({},PP(e)),{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:'""'},[`&-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 ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{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:EB},[`&${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:$B},[`&${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:kB},[`&${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:OB}})},FV(e,h,{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`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},zP(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${PI(s)} ${PI(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${PI(s)} ${PI(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},zP(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${PI(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.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${PI(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[PB(e,"slide-up"),PB(e,"slide-down"),CB(e,"move-up"),CB(e,"move-down"),qB(e,"zoom-big")]]},wq=tT("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=KP(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[yq(i),bq(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},LV({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),AV(e)))),Sq=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:c,overlayClassName:s,rootClassName:u,overlayStyle:d,open:f,onOpenChange:p,visible:m,onVisibleChange:h,mouseEnterDelay:g=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:w,transitionName:S}=e,{getPopupContainer:x,getPrefixCls:C,direction:E,dropdown:k}=H.useContext(aP);fM();const $=H.useMemo((()=>{const e=C();return void 0!==S?S:y.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[C,y,S]),O=H.useMemo((()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:"rtl"===E?"bottomRight":"bottomLeft"),[y,E]),N=C("dropdown",r),_=Pj(N),[I,R,M]=wq(N,_),[,P]=$P(),T=H.Children.only(o),j=xj(T,{className:m_(`${N}-trigger`,{[`${N}-rtl`]:"rtl"===E},T.props.className),disabled:a}),A=a?[]:i;let z;A&&A.includes("contextMenu")&&(z=!0);const[D,L]=IP(!1,{value:null!=f?f:m}),B=OP((e=>{null==p||p(e,{source:"trigger"}),null==h||h(e),L(e)})),F=m_(s,u,R,M,_,null==k?void 0:k.className,{[`${N}-rtl`]:"rtl"===E}),W=UV({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:b,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),V=H.useCallback((()=>{(null==t?void 0:t.selectable)&&(null==t?void 0:t.multiple)||(null==p||p(!1,{source:"menu"}),L(!1))}),[null==t?void 0:t.selectable,null==t?void 0:t.multiple]),[U,K]=Yj("Dropdown",null==d?void 0:d.zIndex);let q=H.createElement(EU,Object.assign({alignPoint:z},oI(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:v,visible:D,builtinPlacements:W,arrow:!!n,overlayClassName:F,prefixCls:N,getPopupContainer:c||x,transitionName:$,trigger:A,overlay:()=>{let e;return e=(null==t?void 0:t.items)?H.createElement(vq,Object.assign({},t)):"function"==typeof w?w():w,l&&(e=l(e)),e=H.Children.only("string"==typeof e?H.createElement("span",null,e):e),H.createElement(tq,{prefixCls:`${N}-menu`,rootClassName:m_(M,_),expandIcon:H.createElement("span",{className:`${N}-menu-submenu-arrow`},H.createElement(nE,{className:`${N}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:V,validator:e=>{}},e)},placement:O,onVisibleChange:B,overlayStyle:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.style),d),{zIndex:U})}),j);return U&&(q=H.createElement(Uj.Provider,{value:K},q)),I(q)},xq=_F(Sq,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Sq._InternalPanelDoNotUseOrYouWillBeFired=e=>H.createElement(xq,Object.assign({},e),H.createElement("span",null));const Cq=Sq,Eq=e=>{let{children:t}=e;const{getPrefixCls:n}=H.useContext(aP),r=n("breadcrumb");return H.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};Eq.__ANT_BREADCRUMB_SEPARATOR=!0;const kq=Eq;var $q=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Oq(e,t,n,r){if(null==n)return null;const{className:o,onClick:i}=t,a=$q(t,["className","onClick"]),l=Object.assign(Object.assign({},yj(a,{data:!0,aria:!0})),{onClick:i});return void 0!==r?H.createElement("a",Object.assign({},l,{className:m_(`${e}-link`,o),href:r}),n):H.createElement("span",Object.assign({},l,{className:m_(`${e}-link`,o)}),n)}function Nq(e,t){return(n,r,o,i,a)=>{if(t)return t(n,r,o,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return Oq(e,n,l,a)}}var _q=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Iq=e=>{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:i,dropdownProps:a,href:l}=e,c=(e=>{if(o||i){const n=Object.assign({},a);if(o){const e=o||{},{items:t}=e,r=_q(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:o,path:i}=e,a=_q(e,["key","title","label","path"]);let c=null!=o?o:r;return i&&(c=H.createElement("a",{href:`${l}${i}`},c)),Object.assign(Object.assign({},a),{key:null!=n?n:t,label:c})}))})}else i&&(n.overlay=i);return H.createElement(Cq,Object.assign({placement:"bottom"},n),H.createElement("span",{className:`${t}-overlay-link`},e,H.createElement(Ox,null)))}return e})(r);return null!=c?H.createElement(H.Fragment,null,H.createElement("li",null,c),n&&H.createElement(kq,null,n)):null},Rq=e=>{const{prefixCls:t,children:n,href:r}=e,o=_q(e,["prefixCls","children","href"]),{getPrefixCls:i}=H.useContext(aP),a=i("breadcrumb",t);return H.createElement(Iq,Object.assign({},o,{prefixCls:a}),Oq(a,o,n,r))};Rq.__ANT_BREADCRUMB_ITEM=!0;const Mq=Rq,Pq=tT("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},PP(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${PI(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},zP(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${PI(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})(KP(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})));var Tq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function jq(e){const{breadcrumbName:t,children:n}=e,r=Tq(e,["breadcrumbName","children"]),o=Object.assign({title:t},r);return n&&(o.menu={items:n.map((e=>{var{breadcrumbName:t}=e,n=Tq(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var Aq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zq=e=>{const{prefixCls:t,separator:n="/",style:r,className:o,rootClassName:i,routes:a,items:l,children:c,itemRender:s,params:u={}}=e,d=Aq(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:f,direction:p,breadcrumb:m}=H.useContext(aP);let h;const g=f("breadcrumb",t),[v,b,y]=Pq(g),w=function(e,t){return H.useMemo((()=>e||(t?t.map(jq):null)),[e,t])}(l,a),S=Nq(g,s);if(w&&w.length>0){const e=[],t=l||a;h=w.map(((r,o)=>{const{path:i,key:a,type:l,menu:c,overlay:s,onClick:d,className:f,separator:p,dropdownProps:m}=r,h=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(u,i);void 0!==h&&e.push(h);const v=null!=a?a:o;if("separator"===l)return H.createElement(kq,{key:v},p);const b={},y=o===w.length-1;c?b.menu=c:s&&(b.overlay=s);let{href:x}=r;return e.length&&void 0!==h&&(x=`#/${e.join("/")}`),H.createElement(Iq,Object.assign({key:v},b,yj(r,{data:!0,aria:!0}),{className:f,dropdownProps:m,href:x,separator:y?"":n,onClick:d,prefixCls:g}),S(r,u,t,e,x))}))}else if(c){const e=h_(c).length;h=h_(c).map(((t,r)=>t?xj(t,{separator:r===e-1?"":n,key:r}):t))}const x=m_(g,null==m?void 0:m.className,{[`${g}-rtl`]:"rtl"===p},o,i,b,y),C=Object.assign(Object.assign({},null==m?void 0:m.style),r);return v(H.createElement("nav",Object.assign({className:x,style:C},d),H.createElement("ol",null,h)))};zq.Item=Mq,zq.Separator=kq,e("k",zq);var Dq={exports:{}};!function(e,t){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|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])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(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,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);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:s,y:d,w:c,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=g;var S="$isDayjsObject",x=function(e){return e instanceof $||!(!e||!e[S])},C=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},E=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new $(n)},k=b;k.l=C,k.i=x,k.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.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(m);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()},v.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()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<E(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!k.u(t)||t,u=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},m=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case s:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,w=(h<y?h+7:h)-y;return p(r?v-w:v+(6-w),g);case l:case f:return m(b+"Hours",0);case a:return m(b+"Minutes",1);case i:return m(b+"Seconds",2);case o:return m(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,c=k.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[s]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],m=c===l?this.$D+(t-this.$W):t;if(c===s||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var m=k.p(u),h=function(e){var t=E(p);return k.w(t.date(t.date()+Math.round(e*r)),p)};if(m===s)return this.set(s,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===l)return h(1);if(m===c)return h(7);var g=(f={},f[i]=t,f[a]=n,f[o]=e,f)[m]||1,v=this.$d.getTime()+r*g;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.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=k.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return l+1;case"MM":return k.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,s,3);case"MMMM":return d(s,l);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var m,h=this,g=k.p(f),v=E(r),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,w=function(){return k.m(h,v)};switch(g){case d:m=w()/12;break;case s:m=w();break;case u:m=w()/3;break;case c:m=(y-b)/6048e5;break;case l:m=(y-b)/864e5;break;case a:m=y/n;break;case i:m=y/t;break;case o:m=y/e;break;default:m=y}return p?m:k.a(m)},v.daysInMonth=function(){return this.endOf(s).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=$.prototype;return E.prototype=O,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,$,E),e.$i=!0),E},E.locale=C,E.isDayjs=x,E.unix=function(e){return E(1e3*e)},E.en=w[y],E.Ls=w,E.p={},E}()}(Dq);var Lq=Dq.exports;const Bq=e("l",r(Lq));var Fq={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}(Fq);const Hq=r(Fq.exports);var Wq={exports:{}};!function(e,t){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map((function(e){return e.slice(0,r)}));if(!i)return s;var u=a.weekStart;return s.map((function(e,t){return s[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}(Wq);const Vq=r(Wq.exports);var Uq={exports:{}};!function(e,t){e.exports=function(){var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()}(Uq);const Kq=r(Uq.exports);var qq={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}(qq);const Xq=r(qq.exports);var Gq={exports:{}};!function(e,t){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}(Gq);const Yq=r(Gq.exports);var Qq={exports:{}};!function(e,t){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=d[s],f=u&&u[0],p=u&&u[1];a[c]=p?{regex:f,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if("string"==typeof l){var c=!0===a[2],s=!0===a[3],u=c||s,d=a[2];s&&(d=a[2]),i=this.$locale(),!c&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,m=a||(o||i?1:p.getDate()),h=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var v=l||0,b=c||0,y=s||0,w=u||0;return d?new Date(Date.UTC(h,g,m,v,b,y,w+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,m,v,b,y,w)):new Date(h,g,m,v,b,y,w)}catch(e){return new Date("")}}(t,l,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var p=l.length,m=1;m<=p;m+=1){a[1]=l[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()}(Qq);const Zq=r(Qq.exports);Bq.extend(Zq),Bq.extend(Yq),Bq.extend(Hq),Bq.extend(Vq),Bq.extend(Kq),Bq.extend(Xq),Bq.extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var Jq={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},eX=function(e){return Jq[e]||e.split("_")[0]},tX=function(){ES(!1,"Not match any format. Please help to fire a issue about this.")},nX={getNow:function(){return Bq()},getFixedDate:function(e){return Bq(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return Bq().locale(eX(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(eX(e)).weekday(0)},getWeek:function(e,t){return t.locale(eX(e)).week()},getShortWeekDays:function(e){return Bq().locale(eX(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Bq().locale(eX(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(eX(e)).format(n)},parse:function(e,t,n){for(var r=eX(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=Bq(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=s.add(u,"week");if(d.format("Wo")===c)return d}return tX(),null}var f=Bq(a,i,!0).locale(r);if(f.isValid())return f}return t&&tX(),null}}},rX=H.createContext(null),oX={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function iX(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,i=e.transitionName,a=e.getPopupContainer,l=e.children,c=e.range,s=e.placement,u=e.builtinPlacements,d=void 0===u?oX:u,f=e.direction,p=e.visible,m=e.onClose,h=H.useContext(rX).prefixCls,g="".concat(h,"-dropdown"),v=H.useMemo((function(){return void 0!==s?s:"rtl"===f?"bottomRight":"bottomLeft"}),[s,f]);return H.createElement(IH,{showAction:[],hideAction:["click"],popupPlacement:v,builtinPlacements:d,prefixCls:g,popupTransitionName:i,popup:t,popupAlign:o,popupVisible:p,popupClassName:Aw(r,Pw(Pw({},"".concat(g,"-range"),c),"".concat(g,"-rtl"),"rtl"===f)),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(e){e||m()}},l)}function aX(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function lX(e){return null==e?[]:Array.isArray(e)?e:[e]}function cX(e,t,n){var r=aI(e);return r[t]=n,r}function sX(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function uX(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function dX(e){return sX(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function fX(e,t,n,r){var o=H.useMemo((function(){return e||function(e,r){var o=e;return t&&"date"===r.type?t(o,r.today):n&&"month"===r.type?n(o,r.locale):r.originNode}}),[e,n,t]),i=H.useCallback((function(e,t){return o(e,rS(rS({},t),{},{range:r}))}),[o,r]);return i}function pX(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Iw(H.useState([!1,!1]),2),o=r[0],i=r[1],a=H.useMemo((function(){return o.map((function(r,o){if(r)return!0;var i=e[o];return!(!i||(n[o]||i)&&(!i||!t(i,{activeIndex:o})))}))}),[e,o,t,n]);return[a,function(e,t){i((function(n){return cX(n,t,e)}))}]}function mX(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function hX(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,i=t.showMillisecond,a=t.use12Hours;return W.useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,h=e.cellQuarterFormat,g=e.dayFormat,v=e.cellDateFormat,b=mX(t,n,r,o,i);return rS(rS({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:v||g||"D"})}(e,n,r,o,i,a)}),[e,n,r,o,i,a])}function gX(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var vX=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function bX(e){return e&&"string"==typeof e}function yX(e){var t=e.showTime,n=function(e){var t=sX(e,vX),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===Rw(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=Iw(n,2),o=r[0],i=r[1],a=t&&"object"===Rw(t)?t:{},l=rS(rS({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,d=l.showSecond;return s||u||d||c||(s=!0,u=!0,d=!0),[l,rS(rS({},l),{},{showHour:s,showMinute:u,showSecond:d,showMillisecond:c}),l.format,i]}function wX(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=uX(e,o,null),l=[t,n],c=0;c<l.length;c+=1){var s=lX(l[c])[0];if(bX(s)){a=s;break}}var u=i.showHour,d=i.showMinute,f=i.showSecond,p=i.showMillisecond,m=gX(a,["a","A","LT","LLL","LTS"],i.use12Hours),h=[u,d,f,p].some((function(e){return void 0!==e}));h||(u=gX(a,["H","h","k","LT","LLL"]),d=gX(a,["m","LT","LLL"]),f=gX(a,["s","LTS"]),p=gX(a,["SSS"])),h||u||d||f||p||(u=!0,d=!0,f=!0);var g=t||mX(u,d,f,p,m);return rS(rS({},i),{},{format:g,showHour:u,showMinute:d,showSecond:f,showMillisecond:p,use12Hours:m})}return null}function SX(e,t,n){return!1===t?null:(t&&"object"===Rw(t)?t:{}).clearIcon||n||H.createElement("span",{className:"".concat(e,"-clear-btn")})}var xX=7;function CX(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function EX(e,t,n){return CX(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function kX(e,t,n){return CX(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function $X(e,t){return Math.floor(e.getMonth(t)/3)+1}function OX(e,t,n){return CX(t,n,(function(){return kX(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function NX(e,t,n){return CX(t,n,(function(){return kX(e,t,n)&&OX(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function _X(e,t,n){return CX(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function IX(e,t,n){return CX(t,n,(function(){return NX(e,t,n)&&_X(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function RX(e,t,n,r){return CX(n,r,(function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return kX(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function MX(e,t,n,r,o){switch(o){case"date":return NX(e,n,r);case"week":return RX(e,t.locale,n,r);case"month":return OX(e,n,r);case"quarter":return function(e,t,n){return CX(t,n,(function(){return kX(e,t,n)&&$X(e,t)===$X(e,n)}))}(e,n,r);case"year":return kX(e,n,r);case"decade":return EX(e,n,r);case"time":return _X(e,n,r);default:return IX(e,n,r)}}function PX(e,t,n,r){return!!(t&&n&&r)&&e.isAfter(r,t)&&e.isAfter(n,r)}function TX(e,t,n,r,o){return!!MX(e,t,n,r,o)||e.isAfter(n,r)}function jX(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function AX(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)})),r}function zX(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return H.useMemo((function(){var n=e?lX(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t])}function DX(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,i=void 0===o?"date":o,a=e.prefixCls,l=void 0===a?"rc-picker":a,c=e.styles,s=void 0===c?{}:c,u=e.classNames,d=void 0===u?{}:u,f=e.order,p=void 0===f||f,m=e.components,h=void 0===m?{}:m,g=e.inputRender,v=e.allowClear,b=e.clearIcon,y=e.needConfirm,w=e.multiple,S=e.format,x=e.inputReadOnly,C=e.disabledDate,E=e.minDate,k=e.maxDate,$=e.showTime,O=e.value,N=e.defaultValue,_=e.pickerValue,I=e.defaultPickerValue,R=zX(O),M=zX(N),P=zX(_),T=zX(I),j="date"===i&&$?"datetime":i,A="time"===j||"datetime"===j,z=A||w,D=null!=y?y:A,L=Iw(yX(e),4),B=L[0],F=L[1],W=L[2],V=L[3],U=hX(r,F),K=H.useMemo((function(){return wX(j,W,V,B,U)}),[j,W,V,B,U]),q=H.useMemo((function(){return rS(rS({},e),{},{prefixCls:l,locale:U,picker:i,styles:s,classNames:d,order:p,components:rS({input:g},h),clearIcon:SX(l,v,b),showTime:K,value:R,defaultValue:M,pickerValue:P,defaultPickerValue:T},null==t?void 0:t())}),[e]),X=function(e,t,n){return H.useMemo((function(){var r=lX(uX(e,t,n)),o=r[0],i="object"===Rw(o)&&"mask"===o.type?o.format:null;return[r.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,t,n])}(j,U,S),G=Iw(X,2),Y=G[0],Q=G[1],Z=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(Y,x,w),J=function(e,t,n,r,o){var i=OP((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||MX(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||MX(e,t,o,i,a.type))}));return i}(n,r,C,E,k),ee=function(e,t,n,r){var o=OP((function(o,i){var a=rS({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,i&&1===i.activeIndex?"end":"start"))||{},s=c.disabledHours,u=c.disabledMinutes,d=c.disabledSeconds,f=c.disabledMilliseconds,p=r.disabledHours,m=r.disabledMinutes,h=r.disabledSeconds,g=s||p,v=u||m,b=d||h,y=e.getHour(o),w=e.getMinute(o),S=e.getSecond(o),x=e.getMillisecond(o);if(g&&g().includes(y))return!0;if(v&&v(y).includes(w))return!0;if(b&&b(y,w).includes(S))return!0;if(f&&f(y,w,S).includes(x))return!0}return!1}));return o}(n,i,C,K);return[H.useMemo((function(){return rS(rS({},q),{},{needConfirm:D,inputReadOnly:Z,disabledDate:J})}),[q,D,Z,J]),j,z,Y,Q,ee]}function LX(e,t){var n,r,o,i,a,l,c,s,u,d,f=arguments.length>3?arguments[3]:void 0,p=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,m=(r=f,o=Iw(IP(t||!1,{value:n=p}),2),i=o[0],a=o[1],l=W.useRef(n),c=W.useRef(),s=function(){fI.cancel(c.current)},u=OP((function(){a(l.current),r&&i!==l.current&&r(l.current)})),d=OP((function(e,t){s(),l.current=e,e||t?u():c.current=fI(u)})),W.useEffect((function(){return s}),[]),[i,d]),h=Iw(m,2),g=h[0],v=h[1];return[g,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!g||v(e,t.force)}]}function BX(e){var t=H.useRef();return H.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(){var e;null===(e=t.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function FX(e,t){return H.useMemo((function(){return e||(t?(CS(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=Iw(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function HX(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=H.useRef(t);r.current=t,BI((function(){if(!e){var t=fI((function(){r.current(e)}),n);return function(){fI.cancel(t)}}r.current(e)}),[e])}function WX(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Iw(H.useState(0),2),r=n[0],o=n[1],i=Iw(H.useState(!1),2),a=i[0],l=i[1],c=H.useRef([]),s=H.useRef(null);return HX(a,(function(){a||(c.current=[])})),H.useEffect((function(){a&&c.current.push(r)}),[a,r]),[a,function(e){l(e)},function(e){return e&&(s.current=e),s.current},r,o,function(n){var r=c.current,o=new Set(r.filter((function(e){return n[e]||t[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},c.current]}function VX(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var UX=[];function KX(e,t,n,r,o,i,a,l){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:UX,s=arguments.length>10&&void 0!==arguments[10]?arguments[10]:UX,u=arguments.length>11?arguments[11]:void 0,d=arguments.length>12?arguments[12]:void 0,f=arguments.length>13?arguments[13]:void 0,p="time"===a,m=i||0,h=function(t){var r=e.getNow();return p&&(r=AX(e,r)),c[t]||n[t]||r},g=Iw(arguments.length>9&&void 0!==arguments[9]?arguments[9]:UX,2),v=g[0],b=g[1],y=Iw(IP((function(){return h(0)}),{value:v}),2),w=y[0],S=y[1],x=Iw(IP((function(){return h(1)}),{value:b}),2),C=x[0],E=x[1],k=H.useMemo((function(){var t=[w,C][m];return p?t:AX(e,t,s[m])}),[p,w,C,m,e,s]),$=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[S,E][m])(n);var i=[w,C];i[m]=n,!u||MX(e,t,w,i[0],a)&&MX(e,t,C,i[1],a)||u(i,{source:o,range:1===m?"end":"start",mode:r})},O=H.useRef(null);return LI((function(){if(o&&!c[m]){var r=p?null:e.getNow();if(null!==O.current&&O.current!==m?r=[w,C][1^m]:n[m]?r=0===m?n[0]:function(n,r){if(l){var o={date:"month",week:"month",month:"year",quarter:"year"}[a];if(o&&!MX(e,t,n,r,o))return VX(e,a,r,-1);if("year"===a&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return VX(e,a,r,-1)}return r}(n[0],n[1]):n[1^m]&&(r=n[1^m]),r){d&&e.isAfter(d,r)&&(r=d);var i=l?VX(e,a,r,1):r;f&&e.isAfter(i,f)&&(r=l?VX(e,a,f,-1):f),$(r,"reset")}}}),[o,m,n[m]]),H.useEffect((function(){O.current=o?m:null}),[o,m]),LI((function(){o&&c&&c[m]&&$(c[m],"reset")}),[o,m]),[k,$]}function qX(e,t){var n=H.useRef(e),r=Iw(H.useState({}),2)[1],o=function(e){return e&&void 0!==t?t:n.current};return[o,function(e){n.current=e,r({})},o(!0)]}var XX=[];function GX(e,t,n){return[function(r){return r.map((function(r){return jX(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!IX(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function YX(e,t){return aI(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function QX(e,t,n,r,o,i,a,l,c){var s=Iw(IP(i,{value:a}),2),u=s[0],d=s[1],f=u||XX,p=function(e){var t=Iw(qX(e),2),n=t[0],r=t[1],o=OP((function(){r(e)}));return H.useEffect((function(){o()}),[e]),[n,r]}(f),m=Iw(p,2),h=m[0],g=m[1],v=Iw(GX(e,t,n),2),b=v[0],y=v[1],w=OP((function(t){var n=aI(t);if(r)for(var i=0;i<2;i+=1)n[i]=n[i]||null;else o&&(n=YX(n.filter((function(e){return e})),e));var a=Iw(y(h(),n),2),c=a[0],s=a[1];if(!c&&(g(n),l)){var u=b(n);l(n,u,{range:s?"end":"start"})}}));return[f,d,h,w,function(){c&&c(h())}]}function ZX(e,t,n,r,o,i,a,l,c,s){var u=e.generateConfig,d=e.locale,f=e.picker,p=e.onChange,m=e.allowEmpty,h=e.order,g=!i.some((function(e){return e}))&&h,v=Iw(GX(u,d,a),2),b=v[0],y=v[1],w=Iw(qX(t),2),S=w[0],x=w[1],C=OP((function(){x(t)}));H.useEffect((function(){C()}),[t]);var E=OP((function(e){var r=null===e,a=aI(e||S());if(r)for(var l=Math.max(i.length,a.length),c=0;c<l;c+=1)i[c]||(a[c]=null);g&&a[0]&&a[1]&&(a=YX(a,u)),o(a);var v=Iw(a,2),w=v[0],x=v[1],C=!w,E=!x,k=!m||(!C||m[0])&&(!E||m[1]),$=!h||C||E||MX(u,d,w,x,f)||u.isAfter(x,w),O=!(w&&s(w,{activeIndex:0})||x&&s(x,{from:w,activeIndex:1})),N=r||k&&$&&O;if(N){n(a);var _=Iw(y(a,t),1)[0];p&&!_&&p(r&&a.every((function(e){return!e}))?null:a,b(a))}return N})),k=OP((function(e,t){var n=cX(S(),e,r()[e]);x(n),t&&E()})),$=!l&&!c;return HX(!$,(function(){$&&(E(),o(t),C())}),2),[k,E]}function JX(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function eG(){return[]}function tG(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:aX(c,i),value:c,disabled:s})}return a}function nG(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},r=n.use12Hours,o=n.hourStep,i=void 0===o?1:o,a=n.minuteStep,l=void 0===a?1:a,c=n.secondStep,s=void 0===c?1:c,u=n.millisecondStep,d=void 0===u?100:u,f=n.hideDisabledOptions,p=n.disabledTime,m=n.disabledHours,h=n.disabledMinutes,g=n.disabledSeconds,v=H.useMemo((function(){return t||e.getNow()}),[t,e]),b=H.useCallback((function(e){var t=(null==p?void 0:p(e))||{};return[t.disabledHours||m||eG,t.disabledMinutes||h||eG,t.disabledSeconds||g||eG,t.disabledMilliseconds||eG]}),[p,m,h,g]),y=Iw(H.useMemo((function(){return b(v)}),[v,b]),4),w=y[0],S=y[1],x=y[2],C=y[3],E=H.useCallback((function(e,t,n,o){var a=tG(0,23,i,f,e()),c=r?a.map((function(e){return rS(rS({},e),{},{label:aX(e.value%12||12,2)})})):a;return[c,function(e){return tG(0,59,l,f,t(e))},function(e,t){return tG(0,59,s,f,n(e,t))},function(e,t,n){return tG(0,999,d,f,o(e,t,n),3)}]}),[f,i,r,d,l,s]),k=Iw(H.useMemo((function(){return E(w,S,x,C)}),[E,w,S,x,C]),4),$=k[0],O=k[1],N=k[2],_=k[3];return[function(t,n){var r=function(){return $},o=O,i=N,a=_;if(n){var l=Iw(b(n),4),c=l[0],s=l[1],u=l[2],d=l[3],f=Iw(E(c,s,u,d),4),p=f[0];r=function(){return p},o=f[1],i=f[2],a=f[3]}var m=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=aI(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return m},$,O,N,_]}function rG(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,i=e.showTime,a=e.onSubmit,l=e.onNow,c=e.invalid,s=e.needConfirm,u=e.generateConfig,d=e.disabledDate,f=H.useContext(rX),p=f.prefixCls,m=f.locale,h=f.button,g=void 0===h?"button":h,v=u.getNow(),b=Iw(nG(u,i,v),1)[0],y=null==r?void 0:r(t),w=d(v,{type:t}),S="".concat(p,"-now"),x="".concat(S,"-btn"),C=o&&H.createElement("li",{className:S},H.createElement("a",{className:Aw(x,w&&"".concat(x,"-disabled")),"aria-disabled":w,onClick:function(){if(!w){var e=b(v);l(e)}}},"date"===n?m.today:m.now)),E=s&&H.createElement("li",{className:"".concat(p,"-ok")},H.createElement(g,{disabled:c,onClick:a},m.ok)),k=(C||E)&&H.createElement("ul",{className:"".concat(p,"-ranges")},C,E);return y||k?H.createElement("div",{className:"".concat(p,"-footer")},y&&H.createElement("div",{className:"".concat(p,"-footer-extra")},y),k):null}function oG(e,t,n){return function(r,o){var i=r.findIndex((function(r){return MX(e,t,r,o,n)}));if(-1===i)return[].concat(aI(r),[o]);var a=aI(r);return a.splice(i,1),a}}var iG=H.createContext(null);function aG(){return H.useContext(iG)}function lG(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,h=e.prevIcon,g=e.nextIcon,v=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:v,superNextIcon:b},y]}var cG=H.createContext({});function sG(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,i=e.prefixColumn,a=e.rowClassName,l=e.titleFormat,c=e.getCellText,s=e.getCellClassName,u=e.headerCells,d=e.cellSelection,f=void 0===d||d,p=e.disabledDate,m=aG(),h=m.prefixCls,g=m.panelType,v=m.now,b=m.disabledDate,y=m.cellRender,w=m.onHover,S=m.hoverValue,x=m.hoverRangeValue,C=m.generateConfig,E=m.values,k=m.locale,$=m.onSelect,O=p||b,N="".concat(h,"-cell"),_=H.useContext(cG).onCellDblClick,I=function(e){return E.some((function(t){return t&&MX(C,k,e,t,g)}))},R=[],M=0;M<t;M+=1){for(var P=[],T=void 0,j=function(){var e=o(r,M*n+A),t=null==O?void 0:O(e,{type:g});0===A&&(T=e,i&&P.push(i(T)));var a=!1,u=!1,d=!1;if(f&&x){var p=Iw(x,2),m=p[0],b=p[1];a=PX(C,m,b,e),u=MX(C,k,e,m,g),d=MX(C,k,e,b,g)}var E=l?jX(e,{locale:k,format:l,generateConfig:C}):void 0,R=H.createElement("div",{className:"".concat(N,"-inner")},c(e));P.push(H.createElement("td",{key:A,title:E,className:Aw(N,rS(Pw(Pw(Pw(Pw(Pw(Pw({},"".concat(N,"-disabled"),t),"".concat(N,"-hover"),(S||[]).some((function(t){return MX(C,k,e,t,g)}))),"".concat(N,"-in-range"),a&&!u&&!d),"".concat(N,"-range-start"),u),"".concat(N,"-range-end"),d),"".concat(h,"-cell-selected"),!x&&"week"!==g&&I(e)),s(e))),onClick:function(){t||$(e)},onDoubleClick:function(){!t&&_&&_()},onMouseEnter:function(){t||null==w||w(e)},onMouseLeave:function(){t||null==w||w(null)}},y?y(e,{prefixCls:h,originNode:R,today:v,type:g,locale:k}):R))},A=0;A<n;A+=1)j();R.push(H.createElement("tr",{key:M,className:null==a?void 0:a(T)},P))}return H.createElement("div",{className:"".concat(h,"-body")},H.createElement("table",{className:"".concat(h,"-content")},u&&H.createElement("thead",null,H.createElement("tr",null,u)),H.createElement("tbody",null,R)))}var uG={visibility:"hidden"};function dG(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,i=e.getEnd,a=e.children,l=aG(),c=l.prefixCls,s=l.prevIcon,u=void 0===s?"‹":s,d=l.nextIcon,f=void 0===d?"›":d,p=l.superPrevIcon,m=void 0===p?"«":p,h=l.superNextIcon,g=void 0===h?"»":h,v=l.minDate,b=l.maxDate,y=l.generateConfig,w=l.locale,S=l.pickerValue,x=l.panelType,C="".concat(c,"-header"),E=H.useContext(cG),k=E.hidePrev,$=E.hideNext,O=E.hideHeader,N=H.useMemo((function(){if(!v||!t||!i)return!1;var e=i(t(-1,S));return!TX(y,w,e,v,x)}),[v,t,S,i,y,w,x]),_=H.useMemo((function(){if(!v||!n||!i)return!1;var e=i(n(-1,S));return!TX(y,w,e,v,x)}),[v,n,S,i,y,w,x]),I=H.useMemo((function(){if(!b||!t||!o)return!1;var e=o(t(1,S));return!TX(y,w,b,e,x)}),[b,t,S,o,y,w,x]),R=H.useMemo((function(){if(!b||!n||!o)return!1;var e=o(n(1,S));return!TX(y,w,b,e,x)}),[b,n,S,o,y,w,x]),M=function(e){t&&r(t(e,S))},P=function(e){n&&r(n(e,S))};if(O)return null;var T="".concat(C,"-prev-btn"),j="".concat(C,"-next-btn"),A="".concat(C,"-super-prev-btn"),z="".concat(C,"-super-next-btn");return H.createElement("div",{className:C},n&&H.createElement("button",{type:"button",onClick:function(){return P(-1)},tabIndex:-1,className:Aw(A,_&&"".concat(A,"-disabled")),disabled:_,style:k?uG:{}},m),t&&H.createElement("button",{type:"button",onClick:function(){return M(-1)},tabIndex:-1,className:Aw(T,N&&"".concat(T,"-disabled")),disabled:N,style:k?uG:{}},u),H.createElement("div",{className:"".concat(C,"-view")},a),t&&H.createElement("button",{type:"button",onClick:function(){return M(1)},tabIndex:-1,className:Aw(j,I&&"".concat(j,"-disabled")),disabled:I,style:$?uG:{}},f),n&&H.createElement("button",{type:"button",onClick:function(){return P(1)},tabIndex:-1,className:Aw(z,R&&"".concat(z,"-disabled")),disabled:R,style:$?uG:{}},g))}function fG(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,o=e.locale,i=e.generateConfig,a=e.pickerValue,l=e.onPickerValueChange,c=e.onModeChange,s=e.mode,u=void 0===s?"date":s,d=e.disabledDate,f=e.onSelect,p=e.onHover,m=e.showWeek,h="".concat(t,"-").concat(r,"-panel"),g="".concat(t,"-cell"),v="week"===u,b=Iw(lG(e,u),2),y=b[0],w=b[1],S=i.locale.getWeekFirstDay(o.locale),x=i.setDate(a,1),C=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(o.locale,i,x),E=i.getMonth(a),k=v||m?function(e){var t=null==d?void 0:d(e,{type:"week"});return H.createElement("td",{key:"week",className:Aw(g,"".concat(g,"-week"),Pw({},"".concat(g,"-disabled"),t)),onClick:function(){t||f(e)},onMouseEnter:function(){t||null==p||p(e)},onMouseLeave:function(){t||null==p||p(null)}},H.createElement("div",{className:"".concat(g,"-inner")},i.locale.getWeek(o.locale,e)))}:null,$=[],O=o.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(o.locale):[]);k&&$.push(H.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var N=0;N<xX;N+=1)$.push(H.createElement("th",{key:N},O[(N+S)%xX]));var _=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),I=H.createElement("button",{type:"button",key:"year",onClick:function(){c("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},jX(a,{locale:o,format:o.yearFormat,generateConfig:i})),R=H.createElement("button",{type:"button",key:"month",onClick:function(){c("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?jX(a,{locale:o,format:o.monthFormat,generateConfig:i}):_[E]),M=o.monthBeforeYear?[R,I]:[I,R];return H.createElement(iG.Provider,{value:y},H.createElement("div",{className:Aw(h,m&&"".concat(h,"-show-week"))},H.createElement(dG,{offset:function(e){return i.addMonth(a,e)},superOffset:function(e){return i.addYear(a,e)},onChange:l,getStart:function(e){return i.setDate(e,1)},getEnd:function(e){var t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},M),H.createElement(sG,kw({titleFormat:o.fieldDateFormat},e,{colNum:xX,rowNum:6,baseDate:C,headerCells:$,getCellDate:function(e,t){return i.addDate(e,t)},getCellText:function(e){return jX(e,{locale:o,format:o.cellDateFormat,generateConfig:i})},getCellClassName:function(e){return Pw(Pw({},"".concat(t,"-cell-in-view"),OX(i,e,a)),"".concat(t,"-cell-today"),NX(i,e,w))},prefixColumn:k,cellSelection:!v}))))}var pG=1/3,mG=300;function hG(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,i=e.onChange,a=e.onDblClick,l=e.changeOnScroll,c=aG(),s=c.prefixCls,u=c.cellRender,d=c.now,f=c.locale,p="".concat(s,"-time-panel"),m="".concat(s,"-time-panel-cell"),h=H.useRef(null),g=H.useRef(),v=function(){clearTimeout(g.current)},b=function(e,t){var n=H.useRef(!1),r=H.useRef(null),o=H.useRef(null),i=function(){fI.cancel(r.current),n.current=!1},a=H.useRef(),l=OP((function(){var l=e.current;if(o.current=null,a.current=0,l){var c=l.querySelector('[data-value="'.concat(t,'"]')),s=l.querySelector("li");c&&s&&function e(){i(),n.current=!0,a.current+=1;var t=l.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!FA(l))a.current<=5&&(r.current=fI(e));else{var p=t+(f-t)*pG,m=Math.abs(f-p);if(null!==o.current&&o.current<m)i();else{if(o.current=m,m<=1)return l.scrollTop=f,void i();l.scrollTop=p,r.current=fI(e)}}}()}}));return[l,i,function(){return n.current}]}(h,null!=n?n:r),y=Iw(b,3),w=y[0],S=y[1],x=y[2];LI((function(){return w(),v(),function(){S(),v()}}),[n,r,t]);var C="".concat(p,"-column");return H.createElement("ul",{className:C,ref:h,"data-type":o,onScroll:function(e){v();var n=e.target;!x()&&l&&(g.current=setTimeout((function(){var e=h.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})),a=o.map((function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)})),l=Math.min.apply(Math,aI(a)),c=a.findIndex((function(e){return e===l})),s=t[c];s&&!s.disabled&&i(s.value)}),mG))}},t.map((function(e){var t=e.label,r=e.value,l=e.disabled,c=H.createElement("div",{className:"".concat(m,"-inner")},t);return H.createElement("li",{key:r,className:Aw(m,Pw(Pw({},"".concat(m,"-selected"),n===r),"".concat(m,"-disabled"),l)),onClick:function(){l||i(r)},onDoubleClick:function(){!l&&a&&a()},"data-value":r},u?u(r,{prefixCls:s,originNode:c,today:d,type:"time",subType:o,locale:f}):c)})))}function gG(e){return e<12}function vG(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,i=e.use12Hours,a=e.changeOnScroll,l=aG(),c=l.prefixCls,s=l.values,u=l.generateConfig,d=l.locale,f=l.onSelect,p=l.pickerValue,m=(null==s?void 0:s[0])||null,h=H.useContext(cG).onCellDblClick,g=Iw(nG(u,e,m),5),v=g[0],b=g[1],y=g[2],w=g[3],S=g[4],x=function(e){return[m&&u[e](m),p&&u[e](p)]},C=Iw(x("getHour"),2),E=C[0],k=C[1],$=Iw(x("getMinute"),2),O=$[0],N=$[1],_=Iw(x("getSecond"),2),I=_[0],R=_[1],M=Iw(x("getMillisecond"),2),P=M[0],T=M[1],j=null===E?null:gG(E)?"am":"pm",A=H.useMemo((function(){return i?gG(E)?b.filter((function(e){return gG(e.value)})):b.filter((function(e){return!gG(e.value)})):b}),[E,b,i]),z=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},D=z(b,E),L=H.useMemo((function(){return y(D)}),[y,D]),B=z(L,O),F=H.useMemo((function(){return w(D,B)}),[w,D,B]),W=z(F,I),V=H.useMemo((function(){return S(D,B,W)}),[S,D,B,W]),U=z(V,P),K=H.useMemo((function(){if(!i)return[];var e=u.getNow(),t=u.setHour(e,6),n=u.setHour(e,18),r=function(e,t){var n=d.cellMeridiemFormat;return n?jX(e,{generateConfig:u,locale:d,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:b.every((function(e){return e.disabled||!gG(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:b.every((function(e){return e.disabled||gG(e.value)}))}]}),[b,i,u,d]),q=function(e){var t=v(e);f(t)},X=H.useMemo((function(){var e=p||u.getNow(),t=function(e){return null!=e};return t(E)?(e=u.setHour(e,E),e=u.setMinute(e,O),e=u.setSecond(e,I),e=u.setMillisecond(e,P)):t(k)?(e=u.setHour(e,k),e=u.setMinute(e,N),e=u.setSecond(e,R),e=u.setMillisecond(e,T)):t(D)&&(e=u.setHour(e,D),e=u.setMinute(e,B),e=u.setSecond(e,W),e=u.setMillisecond(e,U)),e}),[p,E,O,I,P,D,B,W,U,k,N,R,T,u]),G={onDblClick:h,changeOnScroll:a};return H.createElement("div",{className:"".concat(c,"-content")},t&&H.createElement(hG,kw({units:A,value:E,optionalValue:k,type:"hour",onChange:function(e){q(u.setHour(X,e))}},G)),n&&H.createElement(hG,kw({units:L,value:O,optionalValue:N,type:"minute",onChange:function(e){q(u.setMinute(X,e))}},G)),r&&H.createElement(hG,kw({units:F,value:I,optionalValue:R,type:"second",onChange:function(e){q(u.setSecond(X,e))}},G)),o&&H.createElement(hG,kw({units:V,value:P,optionalValue:T,type:"millisecond",onChange:function(e){q(u.setMillisecond(X,e))}},G)),i&&H.createElement(hG,kw({units:K,value:j,type:"meridiem",onChange:function(e){"am"!==e||gG(E)?"pm"===e&&gG(E)&&q(u.setHour(X,E+12)):q(u.setHour(X,E-12))}},G)))}function bG(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,i=e.showTime,a=(i||{}).format,l="".concat(t,"-time-panel"),c=Iw(lG(e,"time"),1)[0];return H.createElement(iG.Provider,{value:c},H.createElement("div",{className:Aw(l)},H.createElement(dG,null,n?jX(n,{locale:r,format:a,generateConfig:o}):" "),H.createElement(vG,i)))}var yG={date:fG,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,i=e.value,a=e.pickerValue,l=e.onHover,c="".concat(t,"-datetime-panel"),s=Iw(nG(n,r),1)[0],u=function(e){return AX(n,e,i||a)};return H.createElement("div",{className:c},H.createElement(fG,kw({},e,{onSelect:function(e){var t=u(e);o(s(t,t))},onHover:function(e){l(e?u(e):e)}})),H.createElement(bG,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.hoverValue,a=e.hoverRangeValue,l=r.locale,c="".concat(t,"-week-panel-row");return H.createElement(fG,kw({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(a){var r=Iw(a,2),s=r[0],u=r[1],d=RX(n,l,s,e),f=RX(n,l,u,e);t["".concat(c,"-range-start")]=d,t["".concat(c,"-range-end")]=f,t["".concat(c,"-range-hover")]=!d&&!f&&PX(n,s,u,e)}return i&&(t["".concat(c,"-hover")]=i.some((function(t){return RX(n,l,e,t)}))),Aw(c,Pw({},"".concat(c,"-selected"),!a&&RX(n,l,o,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-month-panel"),s=Iw(lG(e,"month"),1)[0],u=r.setMonth(o,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),f=i?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,r.getMonth(n)+1),a=r.addDate(o,-1);return i(n,t)&&i(a,t)}:null,p=H.createElement("button",{type:"button",key:"year",onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},jX(o,{locale:n,format:n.yearFormat,generateConfig:r}));return H.createElement(iG.Provider,{value:s},H.createElement("div",{className:c},H.createElement(dG,{superOffset:function(e){return r.addYear(o,e)},onChange:a,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},p),H.createElement(sG,kw({},e,{disabledDate:f,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:function(e,t){return r.addMonth(e,t)},getCellText:function(e){var t=r.getMonth(e);return n.monthFormat?jX(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},getCellClassName:function(){return Pw({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.onPickerValueChange,a=e.onModeChange,l="".concat(t,"-quarter-panel"),c=Iw(lG(e,"quarter"),1)[0],s=r.setMonth(o,0),u=H.createElement("button",{type:"button",key:"year",onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},jX(o,{locale:n,format:n.yearFormat,generateConfig:r}));return H.createElement(iG.Provider,{value:c},H.createElement("div",{className:l},H.createElement(dG,{superOffset:function(e){return r.addYear(o,e)},onChange:i,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},u),H.createElement(sG,kw({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:s,getCellDate:function(e,t){return r.addMonth(e,3*t)},getCellText:function(e){return jX(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},getCellClassName:function(){return Pw({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,l=e.onModeChange,c="".concat(t,"-year-panel"),s=Iw(lG(e,"year"),1)[0],u=function(e){var t=10*Math.floor(r.getYear(o)/10);return r.setYear(e,t)},d=function(e){var t=u(e);return r.addYear(t,9)},f=u(o),p=d(o),m=r.addYear(f,-1),h=i?function(e,t){var n=r.setMonth(e,0),o=r.setDate(n,1),a=r.setMonth(e,r.getMonth(e)+1),l=r.addDate(a,-1);return i(o,t)&&i(l,t)}:null,g=H.createElement("button",{type:"button",key:"year",onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},jX(f,{locale:n,format:n.yearFormat,generateConfig:r}),"-",jX(p,{locale:n,format:n.yearFormat,generateConfig:r}));return H.createElement(iG.Provider,{value:s},H.createElement("div",{className:c},H.createElement(dG,{superOffset:function(e){return r.addYear(o,10*e)},onChange:a,getStart:u,getEnd:d},g),H.createElement(sG,kw({},e,{disabledDate:h,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:function(e,t){return r.addYear(e,t)},getCellText:function(e){return jX(e,{locale:n,format:n.cellYearFormat,generateConfig:r})},getCellClassName:function(e){return Pw({},"".concat(t,"-cell-in-view"),kX(r,e,f)||kX(r,e,p)||PX(r,f,p,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,l="".concat(t,"-decade-panel"),c=Iw(lG(e,"decade"),1)[0],s=function(e){var t=100*Math.floor(r.getYear(o)/100);return r.setYear(e,t)},u=function(e){var t=s(e);return r.addYear(t,99)},d=s(o),f=u(o),p=r.addYear(d,-10),m=i?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,0),a=r.setYear(o,10*Math.floor(r.getYear(o)/10)),l=r.addYear(a,10),c=r.addDate(l,-1);return i(a,t)&&i(c,t)}:null,h="".concat(jX(d,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(jX(f,{locale:n,format:n.yearFormat,generateConfig:r}));return H.createElement(iG.Provider,{value:c},H.createElement("div",{className:l},H.createElement(dG,{superOffset:function(e){return r.addYear(o,100*e)},onChange:a,getStart:s,getEnd:u},h),H.createElement(sG,kw({},e,{disabledDate:m,colNum:3,rowNum:4,baseDate:p,getCellDate:function(e,t){return r.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,o=jX(e,{locale:n,format:t,generateConfig:r}),i=jX(r.addYear(e,9),{locale:n,format:t,generateConfig:r});return"".concat(o,"-").concat(i)},getCellClassName:function(e){return Pw({},"".concat(t,"-cell-in-view"),EX(r,e,d)||EX(r,e,f)||PX(r,d,f,e))}}))))},time:bG};function wG(e,t){var n,r=e.locale,o=e.generateConfig,i=e.direction,a=e.prefixCls,l=e.tabIndex,c=void 0===l?0:l,s=e.multiple,u=e.defaultValue,d=e.value,f=e.onChange,p=e.onSelect,m=e.defaultPickerValue,h=e.pickerValue,g=e.onPickerValueChange,v=e.mode,b=e.onPanelChange,y=e.picker,w=void 0===y?"date":y,S=e.showTime,x=e.hoverValue,C=e.hoverRangeValue,E=e.cellRender,k=e.dateRender,$=e.monthCellRender,O=e.components,N=void 0===O?{}:O,_=e.hideHeader,I=(null===(n=H.useContext(rX))||void 0===n?void 0:n.prefixCls)||a||"rc-picker",R=H.useRef();H.useImperativeHandle(t,(function(){return{nativeElement:R.current}}));var M=Iw(yX(e),4),P=M[0],T=M[1],j=M[2],A=M[3],z=hX(r,T),D="date"===w&&S?"datetime":w,L=H.useMemo((function(){return wX(D,j,A,P,z)}),[D,j,A,P,z]),B=o.getNow(),F=Iw(IP(w,{value:v,postState:function(e){return e||"date"}}),2),W=F[0],V=F[1],U="date"===W&&L?"datetime":W,K=oG(o,r,D),q=Iw(IP(u,{value:d}),2),X=q[0],G=q[1],Y=H.useMemo((function(){var e=lX(X).filter((function(e){return e}));return s?e:e.slice(0,1)}),[X,s]),Q=OP((function(e){G(e),f&&(null===e||Y.length!==e.length||Y.some((function(t,n){return!MX(o,r,t,e[n],D)})))&&(null==f||f(s?e:e[0]))})),Z=OP((function(e){if(null==p||p(e),W===w){var t=s?K(Y,e):[e];Q(t)}})),J=Iw(IP(m||Y[0]||B,{value:h}),2),ee=J[0],te=J[1];H.useEffect((function(){Y[0]&&!h&&te(Y[0])}),[Y[0]]);var ne=function(e,t){null==b||b(e||h,t||W)},re=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];te(e),null==g||g(e),t&&ne(e)},oe=function(e,t){V(e),t&&re(t),ne(t,e)},ie=H.useMemo((function(){var e,t;if(Array.isArray(C)){var n=Iw(C,2);e=n[0],t=n[1]}else e=C;return e||t?(e=e||t,t=t||e,o.isAfter(e,t)?[t,e]:[e,t]):null}),[C,o]),ae=fX(E,k,$),le=N[U]||yG[U]||fG,ce=H.useContext(cG),se=H.useMemo((function(){return rS(rS({},ce),{},{hideHeader:_})}),[ce,_]),ue="".concat(I,"-panel"),de=sX(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return H.createElement(cG.Provider,{value:se},H.createElement("div",{ref:R,tabIndex:c,className:Aw(ue,Pw({},"".concat(ue,"-rtl"),"rtl"===i))},H.createElement(le,kw({},de,{showTime:L,prefixCls:I,locale:z,generateConfig:o,onModeChange:oe,pickerValue:ee,onPickerValueChange:function(e){re(e,!0)},value:Y[0],onSelect:function(e){if(Z(e),re(e),W!==w){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(aI(n),["week"]),date:[].concat(aI(n),["date"])}[w]||n,o=r.indexOf(W),i=r[o+1];i&&oe(i,e)}},values:Y,cellRender:ae,hoverRangeValue:ie,hoverValue:x}))))}var SG=H.memo(H.forwardRef(wG));function xG(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,a=e.onSubmit,l=e.range,c=e.hoverValue,s=H.useContext(rX),u=s.prefixCls,d=s.generateConfig,f=H.useCallback((function(e,n){return VX(d,t,e,n)}),[d,t]),p=H.useMemo((function(){return f(r,1)}),[r,f]),m={onCellDblClick:function(){i&&a()}},h="time"===t,g=rS(rS({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:h});return l?g.hoverRangeValue=c:g.hoverValue=c,n?H.createElement("div",{className:"".concat(u,"-panels")},H.createElement(cG.Provider,{value:rS(rS({},m),{},{hideNext:!0})},H.createElement(SG,g)),H.createElement(cG.Provider,{value:rS(rS({},m),{},{hidePrev:!0})},H.createElement(SG,kw({},g,{pickerValue:p,onPickerValueChange:function(e){o(f(e,-1))}})))):H.createElement(cG.Provider,{value:rS({},m)},H.createElement(SG,g))}function CG(e){return"function"==typeof e?e():e}function EG(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?H.createElement("div",{className:"".concat(t,"-presets")},H.createElement("ul",null,n.map((function(e,t){var n=e.label,i=e.value;return H.createElement("li",{key:t,onClick:function(){r(CG(i))},onMouseEnter:function(){o(CG(i))},onMouseLeave:function(){o(null)}},n)})))):null}function kG(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,i=e.range,a=e.multiple,l=e.activeOffset,c=void 0===l?0:l,s=e.presets,u=e.onPresetHover,d=e.onPresetSubmit,f=e.onFocus,p=e.onBlur,m=e.direction,h=e.value,g=e.onSelect,v=e.isInvalid,b=e.defaultOpenValue,y=e.onOk,w=e.onSubmit,S=H.useContext(rX).prefixCls,x="".concat(S,"-panel"),C="rtl"===m,E=H.useRef(null),k=H.useRef(null),$=Iw(H.useState(0),2),O=$[0],N=$[1],_=Iw(H.useState(0),2),I=_[0],R=_[1];function M(e){return e.filter((function(e){return e}))}H.useEffect((function(){if(i){var e,t=(null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0;R(c<=O-t?0:c+t-O)}}),[O,c,i]);var P=H.useMemo((function(){return M(lX(h))}),[h]),T="time"===r&&!P.length,j=H.useMemo((function(){return T?M([b]):P}),[T,P,b]),A=T?b:P,z=H.useMemo((function(){return!j.length||j.some((function(e){return v(e)}))}),[j,v]),D=H.createElement("div",{className:"".concat(S,"-panel-layout")},H.createElement(EG,{prefixCls:S,presets:s,onClick:d,onHover:u}),H.createElement("div",null,H.createElement(xG,kw({},e,{value:A})),H.createElement(rG,kw({},e,{showNow:!a&&o,invalid:z,onSubmit:function(){T&&g(b),y(),w()}}))));t&&(D=t(D));var L="".concat(x,"-container"),B="marginLeft",F="marginRight",W=H.createElement("div",{tabIndex:-1,className:Aw(L,"".concat(S,"-").concat(n,"-panel-container")),style:Pw(Pw({},C?F:B,I),C?B:F,"auto"),onFocus:f,onBlur:p},D);return i&&(W=H.createElement("div",{ref:k,className:Aw("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(r,"-range-wrapper"))},H.createElement("div",{ref:E,className:"".concat(S,"-range-arrow"),style:Pw({},C?"right":"left",c)}),H.createElement(rI,{onResize:function(e){e.offsetWidth&&N(e.offsetWidth)}},W))),W}function $G(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,i=e.locale,a=e.preserveInvalidOnBlur,l=e.inputReadOnly,c=e.required,s=e["aria-required"],u=e.onSubmit,d=e.onFocus,f=e.onBlur,p=e.onInputChange,m=e.onInvalid,h=e.open,g=e.onOpenChange,v=e.onKeyDown,b=e.onChange,y=e.activeHelp,w=e.name,S=e.autoComplete,x=e.id,C=e.value,E=e.invalid,k=e.placeholder,$=e.disabled,O=e.activeIndex,N=e.allHelp,_=e.picker,I=function(e,t){var n=o.locale.parse(i.locale,e,[t]);return n&&o.isValidate(n)?n:null},R=n[0],M=H.useCallback((function(e){return jX(e,{locale:i,format:R,generateConfig:o})}),[i,o,R]),P=H.useMemo((function(){return C.map(M)}),[C,M]),T=H.useMemo((function(){var e="time"===_?8:10,t="function"==typeof R?R(o.getNow()).length:R.length;return Math.max(e,t)+2}),[R,_,o]),j=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"==typeof r){var o=I(e,r);if(o)return o}}return!1};return[function(n){function o(e){return void 0!==n?e[n]:e}var i=rS(rS({},yj(e,{aria:!0,data:!0})),{},{format:r,validateFormat:function(e){return!!j(e)},preserveInvalidOnBlur:a,readOnly:l,required:c,"aria-required":s,name:w,autoComplete:S,size:T,id:o(x),value:o(P)||"",invalid:o(E),placeholder:o(k),active:O===n,helped:N||y&&O===n,disabled:o($),onFocus:function(e){d(e,n)},onBlur:function(e){f(e,n)},onSubmit:u,onChange:function(e){p();var t=j(e);if(t)return m(!1,n),void b(t,n);m(!!e,n)},onHelp:function(){g(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null==v||v(e,(function(){t=!0})),!e.defaultPrevented&&!t)switch(e.key){case"Escape":g(!1,{index:n});break;case"Enter":h||g(!0)}}},null==t?void 0:t({valueTexts:P}));return Object.keys(i).forEach((function(e){void 0===i[e]&&delete i[e]})),i},M]}var OG=["onMouseEnter","onMouseLeave"];function NG(e){return H.useMemo((function(){return sX(e,OG)}),[e])}var _G=["icon","type"],IG=["onClear"];function RG(e){var t=e.icon,n=e.type,r=Tw(e,_G),o=H.useContext(rX).prefixCls;return t?H.createElement("span",kw({className:"".concat(o,"-").concat(n)},r),t):null}function MG(e){var t=e.onClear,n=Tw(e,IG);return H.createElement(RG,kw({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var PG=["YYYY","MM","DD","HH","mm","ss","SSS"],TG=function(){function e(t){W_(this,e),Pw(this,"format",void 0),Pw(this,"maskFormat",void 0),Pw(this,"cells",void 0),Pw(this,"maskCells",void 0),this.format=t;var n=PG.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"顧".repeat(e.length)}));var o=new RegExp("(".concat(PG.join("|"),")")),i=(t.split(o)||[]).filter((function(e){return e})),a=0;this.cells=i.map((function(e){var t=PG.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return U_(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}]),e}(),jG=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],AG=H.forwardRef((function(e,t){var n=e.active,r=e.showActiveCls,o=void 0===r||r,i=e.suffixIcon,a=e.format,l=e.validateFormat,c=e.onChange;e.onInput;var s=e.helped,u=e.onHelp,d=e.onSubmit,f=e.onKeyDown,p=e.preserveInvalidOnBlur,m=void 0!==p&&p,h=e.invalid,g=e.clearIcon,v=Tw(e,jG),b=e.value,y=e.onFocus,w=e.onBlur,S=e.onMouseUp,x=H.useContext(rX),C=x.prefixCls,E=x.input,k=void 0===E?"input":E,$="".concat(C,"-input"),O=Iw(H.useState(!1),2),N=O[0],_=O[1],I=Iw(H.useState(b),2),R=I[0],M=I[1],P=Iw(H.useState(""),2),T=P[0],j=P[1],A=Iw(H.useState(null),2),z=A[0],D=A[1],L=Iw(H.useState(null),2),B=L[0],F=L[1],W=R||"";H.useEffect((function(){M(b)}),[b]);var V=H.useRef(),U=H.useRef();H.useImperativeHandle(t,(function(){return{nativeElement:V.current,inputElement:U.current,focus:function(){U.current.focus()},blur:function(){U.current.blur()}}}));var K=H.useMemo((function(){return new TG(a||"")}),[a]),q=Iw(H.useMemo((function(){return s?[0,0]:K.getSelection(z)}),[K,z,s]),2),X=q[0],G=q[1],Y=function(e){e&&e!==a&&e!==b&&u()},Q=OP((function(e){l(e)&&c(e),M(e),Y(e)})),Z=H.useRef(!1),J=function(e){w(e)};HX(n,(function(){n||m||M(b)}));var ee=function(e){"Enter"===e.key&&l(W)&&d(),null==f||f(e)},te=H.useRef();LI((function(){if(N&&a&&!Z.current){if(K.match(W))return U.current.setSelectionRange(X,G),te.current=fI((function(){U.current.setSelectionRange(X,G)})),function(){fI.cancel(te.current)};Q(a)}}),[K,a,N,W,z,X,G,B,Q]);var ne=a?{onFocus:function(e){_(!0),D(0),j(""),y(e)},onBlur:function(e){_(!1),J(e)},onKeyDown:function(e){ee(e);var t=e.key,n=null,r=null,o=G-X,i=a.slice(X,G),l=function(e){D((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,K.size()-1)}))},c=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=Iw(t,3),r=n[0],o=n[1],a=n[2],l=W.slice(X,G),c=Number(l);if(isNaN(c))return String(a||(e>0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=T+t)}if(null!==n&&(j(n),n.length>=o&&(l(1),j(""))),null!==r){var s=W.slice(0,X)+aX(r,o)+W.slice(G);Q(s.slice(0,a.length))}F({})},onMouseDown:function(){Z.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=K.getMaskCellIndex(t);D(n),F({}),null==S||S(e),Z.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");l(t)&&Q(t)}}:{};return H.createElement("div",{ref:V,className:Aw($,Pw(Pw({},"".concat($,"-active"),n&&o),"".concat($,"-placeholder"),s))},H.createElement(k,kw({ref:U,"aria-invalid":h,autoComplete:"off"},v,{onKeyDown:ee,onBlur:J},ne,{value:W,onChange:function(e){if(!a){var t=e.target.value;Y(t),M(t),c(t)}}})),H.createElement(RG,{type:"suffix",icon:i}),g)})),zG=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"];function DG(e,t){var n=e.id,r=e.clearIcon,o=e.suffixIcon,i=e.separator,a=void 0===i?"~":i,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var s=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,m=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var h=e.disabled,g=e.invalid;e.inputReadOnly;var v=e.direction;e.onOpenChange;var b=e.onActiveOffset,y=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,S=Tw(e,zG),x="rtl"===v,C=H.useContext(rX).prefixCls,E=H.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),k=H.useRef(),$=H.useRef(),O=H.useRef(),N=function(e){var t;return null===(t=[$,O][e])||void 0===t?void 0:t.current};H.useImperativeHandle(t,(function(){return{nativeElement:k.current,focus:function(){var e;null===(e=N(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0))||void 0===e||e.focus()},blur:function(){var e,t;null===(e=N(0))||void 0===e||e.blur(),null===(t=N(1))||void 0===t||t.blur()}}}));var _=NG(S),I=H.useMemo((function(){return Array.isArray(s)?s:[s,s]}),[s]),R=Iw($G(rS(rS({},e),{},{id:E,placeholder:I})),1)[0],M=x?"right":"left",P=Iw(H.useState(Pw({position:"absolute",width:0},M,0)),2),T=P[0],j=P[1],A=OP((function(){var e=N(l);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,i=r;if(x){var a=o,c=getComputedStyle(a);i=a.offsetWidth-parseFloat(c.borderRightWidth)-parseFloat(c.borderLeftWidth)-r-n}j((function(e){return rS(rS({},e),{},Pw({width:n},M,i))})),b(0===l?0:i)}}));H.useEffect((function(){A()}),[l]);var z=r&&(m[0]&&!h[0]||m[1]&&!h[1]),D=w&&!h[0],L=w&&!D&&!h[1];return H.createElement(rI,{onResize:A},H.createElement("div",kw({},_,{className:Aw(C,"".concat(C,"-range"),Pw(Pw(Pw(Pw({},"".concat(C,"-focused"),c),"".concat(C,"-disabled"),h.every((function(e){return e}))),"".concat(C,"-invalid"),g.some((function(e){return e}))),"".concat(C,"-rtl"),x),u),style:d,ref:k,onClick:f,onMouseDown:function(e){var t=e.target;t!==$.current.inputElement&&t!==O.current.inputElement&&e.preventDefault(),null==y||y(e)}}),H.createElement(AG,kw({ref:$},R(0),{autoFocus:D,"date-range":"start"})),H.createElement("div",{className:"".concat(C,"-range-separator")},a),H.createElement(AG,kw({ref:O},R(1),{autoFocus:L,"date-range":"end"})),H.createElement("div",{className:"".concat(C,"-active-bar"),style:T}),H.createElement(RG,{type:"suffix",icon:o}),z&&H.createElement(MG,{icon:r,onClear:p})))}var LG=H.forwardRef(DG);function BG(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function FG(e){return 1===e?"end":"start"}function HG(e,t){var n=DX(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:BG(t,!1),allowEmpty:BG(n,!1)}})),r=Iw(n,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=o.prefixCls,d=o.styles,f=o.classNames,p=o.defaultValue,m=o.value,h=o.needConfirm,g=o.onKeyDown,v=o.disabled,b=o.allowEmpty,y=o.disabledDate,w=o.minDate,S=o.maxDate,x=o.defaultOpen,C=o.open,E=o.onOpenChange,k=o.locale,$=o.generateConfig,O=o.picker,N=o.showNow,_=o.showToday,I=o.showTime,R=o.mode,M=o.onPanelChange,P=o.onCalendarChange,T=o.onOk,j=o.defaultPickerValue,A=o.pickerValue,z=o.onPickerValueChange,D=o.inputReadOnly,L=o.suffixIcon,B=o.onFocus,F=o.onBlur,W=o.presets,V=o.ranges,U=o.components,K=o.cellRender,q=o.dateRender,X=o.monthCellRender,G=o.onClick,Y=BX(t),Q=Iw(LX(C,x,v,E),2),Z=Q[0],J=Q[1],ee=function(e,t){!v.some((function(e){return!e}))&&e||J(e,t)},te=Iw(QX($,k,l,!0,!1,p,m,P,T),5),ne=te[0],re=te[1],oe=te[2],ie=te[3],ae=te[4],le=oe(),ce=Iw(WX(v,b),7),se=ce[0],ue=ce[1],de=ce[2],fe=ce[3],pe=ce[4],me=ce[5],he=ce[6],ge=function(e,t){ue(!0),null==B||B(e,{range:FG(null!=t?t:fe)})},ve=function(e,t){ue(!1),null==F||F(e,{range:FG(null!=t?t:fe)})},be=H.useMemo((function(){if(!I)return null;var e=I.disabledTime,t=e?function(t){var n=FG(fe);return e(t,n)}:void 0;return rS(rS({},I),{},{disabledTime:t})}),[I,fe]),ye=Iw(IP([O,O],{value:R}),2),we=ye[0],Se=ye[1],xe=we[fe]||O,Ce="date"===xe&&be?"datetime":xe,Ee=Ce===O&&"time"!==Ce,ke=JX(O,xe,N,_,!0),$e=Iw(ZX(o,ne,re,oe,ie,v,l,se,Z,s),2),Oe=$e[0],Ne=$e[1],_e=function(e,t,n,r,o,i){var a=n[n.length-1],l=n.find((function(t){return e[t]}));return function(n,c){var s=Iw(e,2),u=s[0],d=s[1],f=rS(rS({},c),{},{from:a!==l?e[l]:void 0});return!(1!==a||!t[0]||!u||MX(r,o,u,n,f.type)||!r.isAfter(u,n))||!(0!==a||!t[1]||!d||MX(r,o,d,n,f.type)||!r.isAfter(n,d))||(null==i?void 0:i(n,f))}}(le,v,he,$,k,y),Ie=Iw(pX(le,s,b),2),Re=Ie[0],Me=Ie[1],Pe=Iw(KX($,k,le,we,Z,fe,i,Ee,j,A,null==be?void 0:be.defaultOpenValue,z,w,S),2),Te=Pe[0],je=Pe[1],Ae=OP((function(e,t,n){var r=cX(we,fe,t);if(r[0]===we[0]&&r[1]===we[1]||Se(r),M&&!1!==n){var o=aI(le);e&&(o[fe]=e),M(o,r)}})),ze=function(e,t){return cX(le,t,e)},De=function(e,t){var n=le;e&&(n=ze(e,fe));var r=me(n);ie(n),Oe(fe,null===r),null===r?ee(!1,{force:!0}):t||Y.current.focus(r)},Le=Iw(H.useState(null),2),Be=Le[0],Fe=Le[1],He=Iw(H.useState(null),2),We=He[0],Ve=He[1],Ue=H.useMemo((function(){return We||le}),[le,We]);H.useEffect((function(){Z||Ve(null)}),[Z]);var Ke=Iw(H.useState(0),2),qe=Ke[0],Xe=Ke[1],Ge=FX(W,V),Ye=fX(K,q,X,FG(fe)),Qe=le[fe]||null,Ze=OP((function(e){return s(e,{activeIndex:fe})})),Je=H.useMemo((function(){var e=yj(o,!1);return oI(o,[].concat(aI(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))}),[o]),et=H.createElement(kG,kw({},Je,{showNow:ke,showTime:be,range:!0,multiplePanel:Ee,activeOffset:qe,disabledDate:_e,onFocus:function(e){ee(!0),ge(e)},onBlur:ve,picker:O,mode:xe,internalMode:Ce,onPanelChange:Ae,format:c,value:Qe,isInvalid:Ze,onChange:null,onSelect:function(e){de("panel");var t=cX(le,fe,e);ie(t),h||a||i!==Ce||De(e)},pickerValue:Te,defaultOpenValue:lX(null==I?void 0:I.defaultOpenValue)[fe],onPickerValueChange:je,hoverValue:Ue,onHover:function(e){Ve(e?ze(e,fe):null),Fe("cell")},needConfirm:h,onSubmit:De,onOk:ae,presets:Ge,onPresetHover:function(e){Ve(e),Fe("preset")},onPresetSubmit:function(e){Ne(e)&&ee(!1,{force:!0})},onNow:function(e){De(e)},cellRender:Ye})),tt=H.useMemo((function(){return{prefixCls:u,locale:k,generateConfig:$,button:U.button,input:U.input}}),[u,k,$,U.button,U.input]);return LI((function(){Z&&void 0!==fe&&Ae(null,O,!1)}),[Z,fe,O]),LI((function(){var e=de();Z||"input"!==e||(ee(!1),De(null,!0)),Z||!a||h||"panel"!==e||(ee(!0),De())}),[Z]),H.createElement(rX.Provider,{value:tt},H.createElement(iX,kw({},dX(o),{popupElement:et,popupStyle:d.popup,popupClassName:f.popup,visible:Z,onClose:function(){ee(!1)},range:!0}),H.createElement(LG,kw({},o,{ref:Y,suffixIcon:L,activeIndex:se||Z?fe:null,activeHelp:!!We,allHelp:!!We&&"preset"===Be,focused:se,onFocus:function(e,t){de("input"),ee(!0,{inherit:!0}),pe(t),ge(e,t)},onBlur:function(e,t){ee(!1),ve(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&De(null,!0),null==g||g(e,t)},onSubmit:De,value:Ue,maskFormat:c,onChange:function(e,t){var n=ze(e,t);ie(n)},onInputChange:function(){de("input")},format:l,inputReadOnly:D,disabled:v,open:Z,onOpenChange:ee,onClick:function(e){if(!Y.current.nativeElement.contains(document.activeElement)){var t=v.findIndex((function(e){return!e}));t>=0&&Y.current.focus(t)}ee(!0),null==G||G(e)},onClear:function(){Ne(null),ee(!1,{force:!0})},invalid:Re,onInvalid:Me,onActiveOffset:Xe}))))}var WG=H.forwardRef(HG);function VG(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,i=void 0===o?"×":o,a=e.formatDate,l=e.disabled,c=e.maxTagCount,s="".concat(t,"-selector"),u="".concat(t,"-selection"),d="".concat(u,"-overflow");function f(e,t){return H.createElement("span",{className:Aw("".concat(u,"-item")),title:"string"==typeof e?e:null},H.createElement("span",{className:"".concat(u,"-item-content")},e),!l&&t&&H.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(u,"-item-remove")},i))}return H.createElement("div",{className:s},H.createElement(QF,{prefixCls:d,data:n,renderItem:function(e){return f(a(e),(function(t){t&&t.stopPropagation(),r(e)}))},renderRest:function(e){return f("+ ".concat(e.length," ..."))},itemKey:function(e){return a(e)},maxCount:c}))}var UG=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function KG(e,t){e.id;var n=e.open,r=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var a=e.locale,l=e.generateConfig;e.placeholder;var c=e.className,s=e.style,u=e.onClick,d=e.onClear,f=e.internalPicker,p=e.value,m=e.onChange,h=e.onSubmit;e.onInputChange;var g=e.multiple,v=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,y=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var S=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,C=e.removeIcon,E=Tw(e,UG),k="rtl"===w,$=H.useContext(rX).prefixCls,O=H.useRef(),N=H.useRef();H.useImperativeHandle(t,(function(){return{nativeElement:O.current,focus:function(){var e;null===(e=N.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=N.current)||void 0===e||e.blur()}}}));var _=NG(E),I=$G(rS(rS({},e),{},{onChange:function(e){m([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:i}})),R=Iw(I,2),M=R[0],P=R[1],T=!(!r||!p.length||b),j=g?H.createElement(H.Fragment,null,H.createElement(VG,{prefixCls:$,value:p,onRemove:function(e){var t=p.filter((function(t){return t&&!MX(l,a,t,e,f)}));m(t),n||h()},formatDate:P,maxTagCount:v,disabled:b,removeIcon:C}),H.createElement("input",{className:"".concat($,"-multiple-input"),value:p.map(P).join(","),ref:N,readOnly:!0,autoFocus:x}),H.createElement(RG,{type:"suffix",icon:o}),T&&H.createElement(MG,{icon:r,onClear:d})):H.createElement(AG,kw({ref:N},M(),{autoFocus:x,suffixIcon:o,clearIcon:T&&H.createElement(MG,{icon:r,onClear:d}),showActiveCls:!1}));return H.createElement("div",kw({},_,{className:Aw($,Pw(Pw(Pw(Pw(Pw({},"".concat($,"-multiple"),g),"".concat($,"-focused"),i),"".concat($,"-disabled"),b),"".concat($,"-invalid"),y),"".concat($,"-rtl"),k),c),style:s,ref:O,onClick:u,onMouseDown:function(e){var t;e.target!==(null===(t=N.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==S||S(e)}}),j)}var qG=H.forwardRef(KG);function XG(e,t){var n=Iw(DX(e),6),r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],c=n[5],s=r,u=s.prefixCls,d=s.styles,f=s.classNames,p=s.order,m=s.defaultValue,h=s.value,g=s.needConfirm,v=s.onChange,b=s.onKeyDown,y=s.disabled,w=s.disabledDate,S=s.minDate,x=s.maxDate,C=s.defaultOpen,E=s.open,k=s.onOpenChange,$=s.locale,O=s.generateConfig,N=s.picker,_=s.showNow,I=s.showToday,R=s.showTime,M=s.mode,P=s.onPanelChange,T=s.onCalendarChange,j=s.onOk,A=s.multiple,z=s.defaultPickerValue,D=s.pickerValue,L=s.onPickerValueChange,B=s.inputReadOnly,F=s.suffixIcon,W=s.removeIcon,V=s.onFocus,U=s.onBlur,K=s.presets,q=s.components,X=s.cellRender,G=s.dateRender,Y=s.monthCellRender,Q=s.onClick,Z=BX(t);function J(e){return null===e?null:A?e:e[0]}var ee=oG(O,$,o),te=Iw(LX(E,C,[y],k),2),ne=te[0],re=te[1],oe=Iw(QX(O,$,a,!1,p,m,h,(function(e,t,n){if(T){var r=rS({},n);delete r.range,T(J(e),J(t),r)}}),(function(e){null==j||j(J(e))})),5),ie=oe[0],ae=oe[1],le=oe[2],ce=oe[3],se=oe[4],ue=le(),de=Iw(WX([y]),4),fe=de[0],pe=de[1],me=de[2],he=de[3],ge=function(e){pe(!0),null==V||V(e,{})},ve=function(e){pe(!1),null==U||U(e,{})},be=Iw(IP(N,{value:M}),2),ye=be[0],we=be[1],Se="date"===ye&&R?"datetime":ye,xe=JX(N,ye,_,I),Ce=v&&function(e,t){v(J(e),J(t))},Ee=Iw(ZX(rS(rS({},r),{},{onChange:Ce}),ie,ae,le,ce,[],a,fe,ne,c),2)[1],ke=Iw(pX(ue,c),2),$e=ke[0],Oe=ke[1],Ne=H.useMemo((function(){return $e.some((function(e){return e}))}),[$e]),_e=Iw(KX(O,$,ue,[ye],ne,he,o,!1,z,D,lX(null==R?void 0:R.defaultOpenValue),(function(e,t){if(L){var n=rS(rS({},t),{},{mode:t.mode[0]});delete n.range,L(e[0],n)}}),S,x),2),Ie=_e[0],Re=_e[1],Me=OP((function(e,t,n){if(we(t),P&&!1!==n){var r=e||ue[ue.length-1];P(r,t)}})),Pe=function(){Ee(le()),re(!1,{force:!0})},Te=Iw(H.useState(null),2),je=Te[0],Ae=Te[1],ze=Iw(H.useState(null),2),De=ze[0],Le=ze[1],Be=H.useMemo((function(){var e=[De].concat(aI(ue)).filter((function(e){return e}));return A?e:e.slice(0,1)}),[ue,De,A]),Fe=H.useMemo((function(){return!A&&De?[De]:ue.filter((function(e){return e}))}),[ue,De,A]);H.useEffect((function(){ne||Le(null)}),[ne]);var He=FX(K),We=function(e){var t=A?ee(le(),e):[e];Ee(t)&&!A&&re(!1,{force:!0})},Ve=fX(X,G,Y),Ue=H.useMemo((function(){var e=yj(r,!1);return rS(rS({},oI(r,[].concat(aI(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:r.multiple})}),[r]),Ke=H.createElement(kG,kw({},Ue,{showNow:xe,showTime:R,disabledDate:w,onFocus:function(e){re(!0),ge(e)},onBlur:ve,picker:N,mode:ye,internalMode:Se,onPanelChange:Me,format:l,value:ue,isInvalid:c,onChange:null,onSelect:function(e){me("panel");var t=A?ee(le(),e):[e];ce(t),g||i||o!==Se||Pe()},pickerValue:Ie,defaultOpenValue:null==R?void 0:R.defaultOpenValue,onPickerValueChange:Re,hoverValue:Be,onHover:function(e){Le(e),Ae("cell")},needConfirm:g,onSubmit:Pe,onOk:se,presets:He,onPresetHover:function(e){Le(e),Ae("preset")},onPresetSubmit:We,onNow:function(e){We(e)},cellRender:Ve})),qe=H.useMemo((function(){return{prefixCls:u,locale:$,generateConfig:O,button:q.button,input:q.input}}),[u,$,O,q.button,q.input]);return LI((function(){ne&&void 0!==he&&Me(null,N,!1)}),[ne,he,N]),LI((function(){var e=me();ne||"input"!==e||(re(!1),Pe()),ne||!i||g||"panel"!==e||(re(!0),Pe())}),[ne]),H.createElement(rX.Provider,{value:qe},H.createElement(iX,kw({},dX(r),{popupElement:Ke,popupStyle:d.popup,popupClassName:f.popup,visible:ne,onClose:function(){re(!1)}}),H.createElement(qG,kw({},r,{ref:Z,suffixIcon:F,removeIcon:W,activeHelp:!!De,allHelp:!!De&&"preset"===je,focused:fe,onFocus:function(e){me("input"),re(!0,{inherit:!0}),ge(e)},onBlur:function(e){re(!1),ve(e)},onKeyDown:function(e,t){"Tab"===e.key&&Pe(),null==b||b(e,t)},onSubmit:Pe,value:Fe,maskFormat:l,onChange:function(e){ce(e)},onInputChange:function(){me("input")},internalPicker:o,format:a,inputReadOnly:B,disabled:y,open:ne,onOpenChange:re,onClick:function(e){y||Z.current.nativeElement.contains(document.activeElement)||Z.current.focus(),re(!0),null==Q||Q(e)},onClear:function(){Ee(null),re(!1,{force:!0})},invalid:Ne,onInvalid:function(e){Oe(e,0)}}))))}var GG=H.forwardRef(XG);const YG=H.createContext(null),QG=YG.Provider,ZG=H.createContext(null),JG=ZG.Provider;var eY=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],tY=H.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,c=e.disabled,s=e.defaultChecked,u=void 0!==s&&s,d=e.type,f=void 0===d?"checkbox":d,p=e.title,m=e.onChange,h=Tw(e,eY),g=H.useRef(null),v=Iw(IP(u,{value:l}),2),b=v[0],y=v[1];H.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=g.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=g.current)||void 0===e||e.blur()},input:g.current}}));var w=Aw(o,i,(Pw(n={},"".concat(o,"-checked"),b),Pw(n,"".concat(o,"-disabled"),c),n));return H.createElement("span",{className:w,title:p,style:a},H.createElement("input",kw({},h,{className:"".concat(o,"-input"),ref:g,onChange:function(t){c||("checked"in e||y(t.target.checked),null==m||m({target:rS(rS({},e),{},{type:f,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:c,checked:!!b,type:f})),H.createElement("span",{className:"".concat(o,"-inner")}))}));const nY=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},PP(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},rY=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:h,radioColor:g,radioBgColor:v,calc:b}=e,y=`${t}-inner`,w=b(o).sub(b(4).mul(2)),S=b(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},PP(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${PI(u)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},PP(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},AP(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:S,height:S,marginBlockStart:b(1).mul(o).div(-2).equal(),marginInlineStart:b(1).mul(o).div(-2).equal(),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:S,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:S,height:S,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(w).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},oY=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:h,borderRadius:g,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:S,colorBgContainerDisabled:x,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:E,colorPrimary:k,colorPrimaryHover:$,colorPrimaryActive:O,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:_,buttonSolidCheckedActiveBg:I,calc:R}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:PI(R(n).sub(R(o).mul(2)).equal()),background:d,border:`${PI(o)} ${i} ${a}`,borderBlockStartWidth:R(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:R(o).mul(-1).equal(),insetInlineStart:R(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${PI(o)} ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:PI(R(p).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:R(h).sub(o).equal(),paddingBlock:0,lineHeight:PI(R(m).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Object.assign({},AP(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:y,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:$,borderColor:$,"&::before":{backgroundColor:$}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:N,borderColor:N,"&:hover":{color:w,background:_,borderColor:_},"&:active":{color:w,background:I,borderColor:I}},"&-disabled":{color:S,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:x,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:C,borderColor:a,boxShadow:"none"}}}},iY=tT("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${PI(n)} ${t}`,o=KP(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[nY(o),rY(o),oY(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});var aY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lY=(e,t)=>{var n,r;const o=H.useContext(YG),i=H.useContext(ZG),{getPrefixCls:a,direction:l,radio:c}=H.useContext(aP),s=H.useRef(null),u=ik(t,s),{isFormItemInput:d}=H.useContext(tB),f=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==o?void 0:o.onChange)||void 0===r||r.call(o,t)},{prefixCls:p,className:m,rootClassName:h,children:g,style:v,title:b}=e,y=aY(e,["prefixCls","className","rootClassName","children","style","title"]),w=a("radio",p),S="button"===((null==o?void 0:o.optionType)||i),x=S?`${w}-button`:w,C=Pj(w),[E,k,$]=iY(w,C),O=Object.assign({},y),N=H.useContext(dP);o&&(O.name=o.name,O.onChange=f,O.checked=e.value===o.value,O.disabled=null!==(n=O.disabled)&&void 0!==n?n:o.disabled),O.disabled=null!==(r=O.disabled)&&void 0!==r?r:N;const _=m_(`${x}-wrapper`,{[`${x}-wrapper-checked`]:O.checked,[`${x}-wrapper-disabled`]:O.disabled,[`${x}-wrapper-rtl`]:"rtl"===l,[`${x}-wrapper-in-form-item`]:d},null==c?void 0:c.className,m,h,k,$,C);return E(H.createElement(GA,{component:"Radio",disabled:O.disabled},H.createElement("label",{className:_,style:Object.assign(Object.assign({},null==c?void 0:c.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},H.createElement(tY,Object.assign({},O,{className:m_(O.className,!S&&UA),type:"radio",prefixCls:x,ref:u})),void 0!==g?H.createElement("span",null,g):null)))},cY=H.forwardRef(lY),sY=H.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=H.useContext(aP),[o,i]=IP(e.defaultValue,{value:e.value}),{prefixCls:a,className:l,rootClassName:c,options:s,buttonStyle:u="outline",disabled:d,children:f,size:p,style:m,id:h,onMouseEnter:g,onMouseLeave:v,onFocus:b,onBlur:y}=e,w=n("radio",a),S=`${w}-group`,x=Pj(w),[C,E,k]=iY(w,x);let $=f;s&&s.length>0&&($=s.map((e=>"string"==typeof e||"number"==typeof e?H.createElement(cY,{key:e.toString(),prefixCls:w,disabled:d,value:e,checked:o===e},e):H.createElement(cY,{key:`radio-group-value-options-${e.value}`,prefixCls:w,disabled:e.disabled||d,value:e.value,checked:o===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const O=YA(p),N=m_(S,`${S}-${u}`,{[`${S}-${O}`]:O,[`${S}-rtl`]:"rtl"===r},l,c,E,k,x);return C(H.createElement("div",Object.assign({},yj(e,{aria:!0,data:!0}),{className:N,style:m,onMouseEnter:g,onMouseLeave:v,onFocus:b,onBlur:y,id:h,ref:t}),H.createElement(QG,{value:{onChange:t=>{const n=o,r=t.target.value;"value"in e||i(r);const{onChange:a}=e;a&&r!==n&&a(t)},value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},$)))})),uY=H.memo(sY);var dY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fY=(e,t)=>{const{getPrefixCls:n}=H.useContext(aP),{prefixCls:r}=e,o=dY(e,["prefixCls"]),i=n("radio",r);return H.createElement(JG,{value:"button"},H.createElement(cY,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},pY=H.forwardRef(fY),mY=cY;mY.Button=pY,mY.Group=uY,mY.__ANT_RADIO=!0;const hY=mY;function gY(e){return KP(e,{inputAffixPadding:e.paddingXXS})}const vY=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${v}`,warningActiveShadow:`0 0 0 ${h}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},bY=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yY=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},bY(KP(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wY=(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}}),SY=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wY(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),xY=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wY(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yY(e))}),SY(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),SY(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),CY=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),EY=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},CY(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),CY(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},yY(e))}})}),kY=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),$Y=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),OY=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$Y(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),NY=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$Y(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},yY(e))}),OY(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),OY(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),_Y=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),IY=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${PI(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${PI(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},_Y(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),_Y(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:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),RY=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),MY=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${PI(t)} ${PI(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},PY=e=>({padding:`${PI(e.paddingBlockSM)} ${PI(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),TY=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${PI(e.paddingBlock)} ${PI(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},RY(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},MY(e)),"&-sm":Object.assign({},PY(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),jY=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`]:Object.assign({},MY(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},PY(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{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 ${PI(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${PI(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${PI(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${PI(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${PI(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}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{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 ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({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":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",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}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\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}-select-selector,\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`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},AY=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]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},PP(e)),TY(e)),xY(e)),NY(e)),kY(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':{"-webkit-appearance":"none"}})}},zY=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${PI(e.inputAffixPadding)}`}}}},DY=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},TY(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),zY(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},LY=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},PP(e)),jY(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({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}}},EY(e)),IY(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}}})})}},BY=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},FY=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,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"}}}}}},HY=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},WY=tT("Input",(e=>{const t=KP(e,gY(e));return[AY(t),FY(t),DY(t),LY(t),BY(t),HY(t),Gz(t)]}),vY),VY=(e,t)=>{const{componentCls:n,selectHeight:r,fontHeight:o,lineWidth:i,calc:a}=e,l=t?`${n}-${t}`:"",c=e.calc(o).add(2).equal(),s=()=>a(r).sub(c).sub(a(i).mul(2)),u=e.max(s().div(2).equal(),0),d=e.max(s().sub(u).equal(),0);return[WW(e,t),{[`${n}-multiple${l}`]:{paddingTop:u,paddingBottom:d,paddingInlineStart:u}}]},UY=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=KP(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),i=KP(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[VY(o,"small"),VY(e),VY(i,"large"),WW(e),{[`${t}${t}-multiple`]:{width:"100%",[`${t}-selector`]:{flex:"auto",padding:0,"&:after":{margin:0}},[`${t}-selection-item`]:{marginBlock:0},[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},KY=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:PI(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${PI(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},qY=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:v,colorIcon:b,textHeight:y,motionDurationMid:w,colorIconHover:S,fontWeightStrong:x,cellHeight:C,pickerCellPaddingVertical:E,colorTextDisabled:k,colorText:$,fontSize:O,motionDurationSlow:N,withoutTimeCellHeight:_,pickerQuarterPanelContentHeight:I,borderRadiusSM:R,colorTextLightSolid:M,cellHoverBg:P,timeColumnHeight:T,timeColumnWidth:j,timeCellHeight:A,controlItemBgActive:z,marginXXS:D,pickerDatePanelPaddingHorizontal:L,pickerControlIconMargin:B}=e;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:e.calc(a).mul(7).add(e.calc(L).mul(2)).equal()},"&-header":{display:"flex",padding:`0 ${PI(c)}`,color:h,borderBottom:`${PI(d)} ${f} ${g}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:PI(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:O,"&:hover":{color:S},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:PI(y),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:B,insetInlineStart:B,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(E).mul(2)).equal(),color:$,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${PI(E)} 0`,color:k,cursor:"pointer","&-in-view":{color:$}},KY(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(_).mul(4).equal()},[r]:{padding:`0 ${PI(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},"&-decade-panel":{[r]:{padding:`0 ${PI(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${PI(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${PI(c)} ${PI(L)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:R,borderEndStartRadius:R},"&:last-child:before":{borderStartEndRadius:R,borderEndEndRadius:R}},"&:hover td":{"&:before":{background:P}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new XM(M).setAlpha(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:z}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${PI(c)} ${PI(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${PI(d)} ${f} ${g}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:T},"&-column":{flex:"1 0 auto",width:j,margin:`${PI(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(A).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${PI(d)} ${f} ${g}`},"&-active":{background:new XM(z).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:D,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(j).sub(e.calc(D).mul(2)).equal(),height:A,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(j).sub(A).div(2).equal(),color:$,lineHeight:PI(A),borderRadius:R,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:z}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:k,background:"transparent",cursor:"not-allowed"}}}}}}}}},XY=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${PI(r)} ${s} ${u}`,"&-extra":{padding:`0 ${PI(o)}`,lineHeight:PI(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${PI(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:PI(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:PI(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},GY=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},xY(e)),NY(e)),kY(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${PI(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${PI(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${PI(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},YY=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${PI(i)} ${PI(r)} ${PI(a)}`}},QY=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},ZY=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:h,paddingXS:g,marginXS:v,colorTextDescription:b,lineWidthBold:y,colorPrimary:w,motionDurationSlow:S,zIndexPopup:x,paddingXXS:C,sizePopupArrow:E,colorBgElevated:k,borderRadiusLG:$,boxShadowSecondary:O,borderRadiusSM:N,colorSplit:_,cellHoverBg:I,presetsWidth:R,presetsMaxWidth:M,boxShadowPopoverArrow:P,fontHeight:T,fontHeightLG:j,lineHeightLG:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},PP(e)),YY(e,r,T,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},RY(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},YY(e,f,j,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:A}}),"&-small":Object.assign({},YY(e,m,T,h)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(g).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:w,opacity:0,transition:`all ${S} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${PI(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:h}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},PP(e)),qY(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:x,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:$B},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:EB},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:OB},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:kB},[`${t}-panel > ${t}-time-panel`]:{paddingTop:C},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${S} ease-out`},zV(e,k,P)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:k,borderRadius:$,boxShadow:O,transition:`margin ${S}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:R,maxWidth:M,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${PI(i)} ${a} ${_}`,li:Object.assign(Object.assign({},MP),{borderRadius:N,paddingInline:g,paddingBlock:e.calc(m).sub(T).div(2).equal(),cursor:"pointer",transition:`all ${S}`,"+ li":{marginTop:v},"&:hover":{background:I}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${PI(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},PB(e,"slide-up"),PB(e,"slide-down"),CB(e,"move-up"),CB(e,"move-down")]},JY=tT("DatePicker",(e=>{const t=KP(gY(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[XY(t),ZY(t),GY(t),QY(t),UY(t),Gz(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},vY(e)),(e=>{const{colorBgContainerDisabled:t,controlHeightSM:n,controlHeightLG:r}=e;return{cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new XM(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new XM(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*r,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*n,cellHeight:n,textHeight:r,withoutTimeCellHeight:1.65*r,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:n,multipleItemHeightLG:e.controlHeight,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),AV(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),eQ=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=m_({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=m_({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),c=H.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return H.createElement("span",{className:m_(t,a,l,n),style:Object.assign(Object.assign({},c),r)})},tQ=new tM("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),nQ=e=>({height:e,lineHeight:PI(e)}),rQ=e=>Object.assign({width:e},nQ(e)),oQ=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:tQ,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),iQ=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},nQ(e)),aQ=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},rQ(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},rQ(o)),[`${t}${t}-sm`]:Object.assign({},rQ(i))}},lQ=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},iQ(t,l)),[`${r}-lg`]:Object.assign({},iQ(o,l)),[`${r}-sm`]:Object.assign({},iQ(i,l))}},cQ=e=>Object.assign({width:e},nQ(e)),sQ=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},cQ(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},cQ(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},uQ=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},dQ=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},nQ(e)),fQ=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},dQ(r,l))},uQ(e,r,n)),{[`${n}-lg`]:Object.assign({},dQ(o,l))}),uQ(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},dQ(i,l))}),uQ(e,i,`${n}-sm`))},pQ=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:m,titleHeight:h,blockRadius:g,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},rQ(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},rQ(s)),[`${n}-sm`]:Object.assign({},rQ(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:h,background:d,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},fQ(e)),aQ(e)),lQ(e)),sQ(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 `]:Object.assign({},oQ(e))}}},mQ=tT("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=KP(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,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"});return[pQ(r)]}),(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"]]}),hQ=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=H.useContext(aP),c=l("skeleton",t),[s,u,d]=mQ(c),f=oI(e,["prefixCls","className"]),p=m_(c,`${c}-element`,{[`${c}-active`]:o},n,r,u,d);return s(H.createElement("div",{className:p},H.createElement(eQ,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:a},f))))},gQ=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=H.useContext(aP),l=a("skeleton",t),[c,s,u]=mQ(l),d=m_(l,`${l}-element`,{[`${l}-active`]:i},n,r,s,u);return c(H.createElement("div",{className:d},H.createElement("div",{className:m_(`${l}-image`,n),style:o},H.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},H.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},vQ=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=H.useContext(aP),c=l("skeleton",t),[s,u,d]=mQ(c),f=oI(e,["prefixCls"]),p=m_(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,u,d);return s(H.createElement("div",{className:p},H.createElement(eQ,Object.assign({prefixCls:`${c}-input`,size:a},f))))},bQ=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=H.useContext(aP),c=l("skeleton",t),[s,u,d]=mQ(c),f=m_(c,`${c}-element`,{[`${c}-active`]:i},u,n,r,d),p=null!=a?a:H.createElement(bx,null);return s(H.createElement("div",{className:f},H.createElement("div",{className:m_(`${c}-image`,n),style:o},p)))},yQ=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:i}=e,a=aI(Array(i)).map(((e,n)=>H.createElement("li",{key:n,style:{width:t(n)}})));return H.createElement("ul",{className:m_(n,r),style:o},a)},wQ=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return H.createElement("h3",{className:m_(t,n),style:Object.assign({width:r},o)})};function SQ(e){return e&&"object"==typeof e?e:{}}const xQ=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:c=!0,paragraph:s=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p,skeleton:m}=H.useContext(aP),h=f("skeleton",t),[g,v,b]=mQ(h);if(n||!("loading"in e)){const e=!!l,t=!!c,n=!!s;let a,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${h}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),SQ(l));a=H.createElement("div",{className:`${h}-header`},H.createElement(eQ,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${h}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),SQ(c));r=H.createElement(wQ,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),SQ(s));o=H.createElement(yQ,Object.assign({},n))}f=H.createElement("div",{className:`${h}-content`},r,o)}const y=m_(h,{[`${h}-with-avatar`]:e,[`${h}-active`]:u,[`${h}-rtl`]:"rtl"===p,[`${h}-round`]:d},null==m?void 0:m.className,r,o,v,b);return g(H.createElement("div",{className:y,style:Object.assign(Object.assign({},null==m?void 0:m.style),i)},a,f))}return void 0!==a?a:null};xQ.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=H.useContext(aP),c=l("skeleton",t),[s,u,d]=mQ(c),f=oI(e,["prefixCls"]),p=m_(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,u,d);return s(H.createElement("div",{className:p},H.createElement(eQ,Object.assign({prefixCls:`${c}-button`,size:a},f))))},xQ.Avatar=hQ,xQ.Input=vQ,xQ.Image=gQ,xQ.Node=bQ;const CQ=xQ,EQ=H.createContext(null);var kQ={width:0,height:0,left:0,top:0};function $Q(e,t){var n=H.useRef(e),r=Iw(H.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var OQ=Math.pow(.995,20);function NQ(e){var t=Iw(H.useState(0),2),n=t[0],r=t[1],o=H.useRef(0),i=H.useRef();return i.current=e,BI((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var _Q={width:0,height:0,left:0,top:0,right:0};function IQ(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function RQ(e){return String(e).replace(/"/g,"TABS_DQ")}function MQ(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var PQ=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?H.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),TQ=H.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==Rw(i)||H.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?H.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null})),jQ=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.moreIcon,c=void 0===l?"More":l,s=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,m=e.rtl,h=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,b=e.popupClassName,y=Iw(H.useState(!1),2),w=y[0],S=y[1],x=Iw(H.useState(null),2),C=x[0],E=x[1],k="".concat(r,"-more-popup"),$="".concat(n,"-dropdown"),O=null!==C?"".concat(k,"-").concat(C):null,N=null==i?void 0:i.dropdownAriaLabel,_=H.createElement(WK,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),S(!1)},prefixCls:"".concat($,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[C],"aria-label":void 0!==N?N:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,l=MQ(t,o,f,n);return H.createElement(gK,{key:i,id:"".concat(k,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},H.createElement("span",null,a),l&&H.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat($,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,i)}},o||f.removeIcon||"×"))})));function I(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===C}))||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void E(a.key)}}H.useEffect((function(){var e=document.getElementById(O);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[C]),H.useEffect((function(){w||E(null)}),[w]);var R=Pw({},m?"marginRight":"marginLeft",p);o.length||(R.visibility="hidden",R.order=1);var M=Aw(Pw({},"".concat($,"-rtl"),m)),P=a?null:H.createElement(EU,{prefixCls:$,overlay:_,trigger:["hover"],visible:!!o.length&&w,transitionName:s,onVisibleChange:S,overlayClassName:Aw(M,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},H.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":k,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case Tj.UP:I(-1),e.preventDefault();break;case Tj.DOWN:I(1),e.preventDefault();break;case Tj.ESC:S(!1);break;case Tj.SPACE:case Tj.ENTER:null!==C&&g(C,e)}else[Tj.DOWN,Tj.SPACE,Tj.ENTER].includes(t)&&(S(!0),e.preventDefault())}},c));return H.createElement("div",{className:Aw("".concat(n,"-nav-operations"),d),style:u,ref:t},P,H.createElement(PQ,{prefixCls:n,locale:i,editable:f}))}));const AQ=H.memo(jQ,(function(e,t){return t.tabMoving}));var zQ=function(e){var t=e.prefixCls,n=e.id,r=e.active,o=e.tab,i=o.key,a=o.label,l=o.disabled,c=o.closeIcon,s=o.icon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,p=e.editable,m=e.onClick,h=e.onFocus,g=e.style,v="".concat(t,"-tab"),b=MQ(u,c,p,l);function y(e){l||m(e)}var w=H.useMemo((function(){return s&&"string"==typeof a?H.createElement("span",null,a):a}),[a,s]),S=H.createElement("div",{key:i,"data-node-key":RQ(i),className:Aw(v,Pw(Pw(Pw({},"".concat(v,"-with-remove"),b),"".concat(v,"-active"),r),"".concat(v,"-disabled"),l)),style:g,onClick:y},H.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(v,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),y(e)},onKeyDown:function(e){[Tj.SPACE,Tj.ENTER].includes(e.which)&&(e.preventDefault(),y(e))},onFocus:h},s&&H.createElement("span",{className:"".concat(v,"-icon")},s),a&&w),b&&H.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(v,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),p.onEdit("remove",{key:i,event:t})}},c||p.removeIcon||"×"));return d?d(S):S},DQ=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},LQ=function(e,t){return e[t?0:1]},BQ=H.forwardRef((function(e,t){var n,r,o,i,a,l=e.className,c=e.style,s=e.id,u=e.animated,d=e.activeKey,f=e.rtl,p=e.extra,m=e.editable,h=e.locale,g=e.tabPosition,v=e.tabBarGutter,b=e.children,y=e.onTabClick,w=e.onTabScroll,S=e.indicator,x=H.useContext(EQ),C=x.prefixCls,E=x.tabs,k=H.useRef(null),$=H.useRef(null),O=H.useRef(null),N=H.useRef(null),_=H.useRef(null),I=H.useRef(null),R=H.useRef(null),M="top"===g||"bottom"===g,P=$Q(0,(function(e,t){M&&w&&w({direction:e>t?"left":"right"})})),T=Iw(P,2),j=T[0],A=T[1],z=$Q(0,(function(e,t){!M&&w&&w({direction:e>t?"top":"bottom"})})),D=Iw(z,2),L=D[0],B=D[1],F=Iw(H.useState([0,0]),2),V=F[0],U=F[1],K=Iw(H.useState([0,0]),2),q=K[0],X=K[1],G=Iw(H.useState([0,0]),2),Y=G[0],Q=G[1],Z=Iw(H.useState([0,0]),2),J=Z[0],ee=Z[1],te=(n=new Map,r=H.useRef([]),o=Iw(H.useState({}),2)[1],i=H.useRef("function"==typeof n?n():n),a=NQ((function(){var e=i.current;r.current.forEach((function(t){e=t(e)})),r.current=[],i.current=e,o({})})),[i.current,function(e){r.current.push(e),a()}]),ne=Iw(te,2),re=ne[0],oe=ne[1],ie=function(e,t,n){return H.useMemo((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||kQ,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||kQ);var u=r.get(c)||rS({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(E,re,q[0]),ae=LQ(V,M),le=LQ(q,M),ce=LQ(Y,M),se=LQ(J,M),ue=ae<le+ce,de=ue?ae-se:ae-ce,fe="".concat(C,"-nav-operations-hidden"),pe=0,me=0;function he(e){return e<pe?pe:e>me?me:e}M&&f?(pe=0,me=Math.max(0,le-de)):(pe=Math.min(0,de-le),me=0);var ge=H.useRef(null),ve=Iw(H.useState(),2),be=ve[0],ye=ve[1];function we(){ye(Date.now())}function Se(){ge.current&&clearTimeout(ge.current)}!function(e,t){var n=Iw(H.useState(),2),r=n[0],o=n[1],i=Iw(H.useState(0),2),a=i[0],l=i[1],c=Iw(H.useState(0),2),s=c[0],u=c[1],d=Iw(H.useState(),2),f=d[0],p=d[1],m=H.useRef(),h=H.useRef(),g=H.useRef(null);g.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(m.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],i=n.screenX,c=n.screenY;o({x:i,y:c});var s=i-r.x,d=c-r.y;t(s,d);var f=Date.now();l(f),u(f-a),p({x:s,y:d})}},onTouchEnd:function(){if(r&&(o(null),p(null),f)){var e=f.x/s,n=f.y/s,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var l=e,c=n;m.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(m.current):t(20*(l*=OQ),20*(c*=OQ))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===h.current?n:r:i>a?(o=n,h.current="x"):(o=r,h.current="y"),t(-o,-o)&&e.preventDefault()}},H.useEffect((function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){g.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){g.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(N,(function(e,t){function n(e,t){e((function(e){return he(e+t)}))}return!!ue&&(M?n(A,e):n(B,t),Se(),we(),!0)})),H.useEffect((function(){return Se(),be&&(ge.current=setTimeout((function(){ye(0)}),100)),Se}),[be]);var xe=function(e,t,n,r,o,i,a){var l,c,s,u=a.tabs,d=a.tabPosition,f=a.rtl;return["top","bottom"].includes(d)?(l="width",c=f?"right":"left",s=Math.abs(n)):(l="height",c="top",s=-n),H.useMemo((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;o<n;o+=1){var i=e.get(u[o].key)||_Q;if(i[c]+i[l]>s+t){r=o-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||_Q)[c]<s){a=d+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,s,d,u.map((function(e){return e.key})).join("_"),f])}(ie,de,M?j:L,le,ce,se,rS(rS({},e),{},{tabs:E})),Ce=Iw(xe,2),Ee=Ce[0],ke=Ce[1],$e=OP((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=ie.get(e)||{width:0,height:0,left:0,right:0,top:0};if(M){var n=j;f?t.right<j?n=t.right:t.right+t.width>j+de&&(n=t.right+t.width-de):t.left<-j?n=-t.left:t.left+t.width>-j+de&&(n=-(t.left+t.width-de)),B(0),A(he(n))}else{var r=L;t.top<-L?r=-t.top:t.top+t.height>-L+de&&(r=-(t.top+t.height-de)),A(0),B(he(r))}})),Oe={};"top"===g||"bottom"===g?Oe[f?"marginRight":"marginLeft"]=v:Oe.marginTop=v;var Ne=E.map((function(e,t){var n=e.key;return H.createElement(zQ,{id:s,prefixCls:C,key:n,tab:e,style:0===t?void 0:Oe,closable:e.closable,editable:m,active:n===d,renderWrapper:b,removeAriaLabel:null==h?void 0:h.removeAriaLabel,onClick:function(e){y(n,e)},onFocus:function(){$e(n),we(),N.current&&(f||(N.current.scrollLeft=0),N.current.scrollTop=0)}})})),_e=function(){return oe((function(){var e,t=new Map,n=null===(e=_.current)||void 0===e?void 0:e.getBoundingClientRect();return E.forEach((function(e){var r,o=e.key,i=null===(r=_.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(RQ(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=Iw(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};H.useEffect((function(){_e()}),[E.map((function(e){return e.key})).join("_")]);var Ie=NQ((function(){var e=DQ(k),t=DQ($),n=DQ(O);U([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=DQ(R);Q(r);var o=DQ(I);ee(o);var i=DQ(_);X([i[0]-r[0],i[1]-r[1]]),_e()})),Re=E.slice(0,Ee),Me=E.slice(ke+1),Pe=[].concat(aI(Re),aI(Me)),Te=ie.get(d),je=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,i=void 0===o?{}:o,a=i.size,l=i.align,c=void 0===l?"center":l,s=Iw(H.useState(),2),u=s[0],d=s[1],f=H.useRef(),p=W.useCallback((function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e}),[a]);function m(){fI.cancel(f.current)}return H.useEffect((function(){var e={};if(t)if(n){e.width=p(t.width);var o=r?"right":"left";"start"===c&&(e[o]=t[o]),"center"===c&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===c&&(e.top=t.top),"center"===c&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return m(),f.current=fI((function(){d(e)})),m}),[t,n,r,c,p]),{style:u}}({activeTabOffset:Te,horizontal:M,indicator:S,rtl:f}),Ae=je.style;H.useEffect((function(){$e()}),[d,pe,me,IQ(Te),IQ(ie),M]),H.useEffect((function(){Ie()}),[f]);var ze,De,Le,Be,Fe=!!Pe.length,He="".concat(C,"-nav-wrap");return M?f?(De=j>0,ze=j!==me):(ze=j<0,De=j!==pe):(Le=L<0,Be=L!==pe),H.createElement(rI,{onResize:Ie},H.createElement("div",{ref:ak(t,k),role:"tablist",className:Aw("".concat(C,"-nav"),l),style:c,onKeyDown:function(){we()}},H.createElement(TQ,{ref:$,position:"left",extra:p,prefixCls:C}),H.createElement(rI,{onResize:Ie},H.createElement("div",{className:Aw(He,Pw(Pw(Pw(Pw({},"".concat(He,"-ping-left"),ze),"".concat(He,"-ping-right"),De),"".concat(He,"-ping-top"),Le),"".concat(He,"-ping-bottom"),Be)),ref:N},H.createElement(rI,{onResize:Ie},H.createElement("div",{ref:_,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(L,"px)"),transition:be?"none":void 0}},Ne,H.createElement(PQ,{ref:R,prefixCls:C,locale:h,editable:m,style:rS(rS({},0===Ne.length?void 0:Oe),{},{visibility:Fe?"hidden":null})}),H.createElement("div",{className:Aw("".concat(C,"-ink-bar"),Pw({},"".concat(C,"-ink-bar-animated"),u.inkBar)),style:Ae}))))),H.createElement(AQ,kw({},e,{removeAriaLabel:null==h?void 0:h.removeAriaLabel,ref:I,prefixCls:C,tabs:Pe,className:!Fe&&fe,tabMoving:!!be})),H.createElement(TQ,{ref:O,position:"right",extra:p,prefixCls:C})))})),FQ=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,c=e.children;return H.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:Aw(n,a&&"".concat(n,"-active"),r),ref:t},c)})),HQ=["renderTabBar"],WQ=["label","key"],VQ=function(e){var t=e.renderTabBar,n=Tw(e,HQ),r=H.useContext(EQ).tabs;return t?t(rS(rS({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Tw(e,WQ);return H.createElement(FQ,kw({tab:t,key:n,tabKey:n},r))}))}),BQ):H.createElement(BQ,n)},UQ=["key","forceRender","style","className","destroyInactiveTabPane"],KQ=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=H.useContext(EQ),l=a.prefixCls,c=a.tabs,s=r.tabPane,u="".concat(l,"-tabpane");return H.createElement("div",{className:Aw("".concat(l,"-content-holder"))},H.createElement("div",{className:Aw("".concat(l,"-content"),"".concat(l,"-content-").concat(o),Pw({},"".concat(l,"-content-animated"),s))},c.map((function(e){var o=e.key,a=e.forceRender,l=e.style,c=e.className,d=e.destroyInactiveTabPane,f=Tw(e,UQ),p=o===n;return H.createElement(VT,kw({key:o,visible:p,forceRender:a,removeOnLeave:!(!i&&!d),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return H.createElement(FQ,kw({},f,{prefixCls:u,id:t,tabKey:o,animated:s,active:p,style:rS(rS({},l),r),className:Aw(c,i),ref:n}))}))}))))},qQ=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],XQ=0,GQ=H.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,c=e.activeKey,s=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,p=void 0===f?"top":f,m=e.tabBarGutter,h=e.tabBarStyle,g=e.tabBarExtraContent,v=e.locale,b=e.moreIcon,y=e.moreTransitionName,w=e.destroyInactiveTabPane,S=e.renderTabBar,x=e.onChange,C=e.onTabClick,E=e.onTabScroll,k=e.getPopupContainer,$=e.popupClassName,O=e.indicator,N=Tw(e,qQ),_=H.useMemo((function(){return(a||[]).filter((function(e){return e&&"object"===Rw(e)&&"key"in e}))}),[a]),I="rtl"===l,R=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:rS({inkBar:!0},"object"===Rw(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(d),M=Iw(H.useState(!1),2),P=M[0],T=M[1];H.useEffect((function(){T(IF())}),[]);var j=Iw(IP((function(){var e;return null===(e=_[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:s}),2),A=j[0],z=j[1],D=Iw(H.useState((function(){return _.findIndex((function(e){return e.key===A}))})),2),L=D[0],B=D[1];H.useEffect((function(){var e,t=_.findIndex((function(e){return e.key===A}));-1===t&&(t=Math.max(0,Math.min(L,_.length-1)),z(null===(e=_[t])||void 0===e?void 0:e.key)),B(t)}),[_.map((function(e){return e.key})).join("_"),A,L]);var F=Iw(IP(null,{value:n}),2),W=F[0],V=F[1];H.useEffect((function(){n||(V("rc-tabs-".concat(XQ)),XQ+=1)}),[]);var U={id:W,activeKey:A,animated:R,tabPosition:p,rtl:I,mobile:P},K=rS(rS({},U),{},{editable:u,locale:v,moreIcon:b,moreTransitionName:y,tabBarGutter:m,onTabClick:function(e,t){null==C||C(e,t);var n=e!==A;z(e),n&&(null==x||x(e))},onTabScroll:E,extra:g,style:h,panes:null,getPopupContainer:k,popupClassName:$,indicator:O});return H.createElement(EQ.Provider,{value:{tabs:_,prefixCls:o}},H.createElement("div",kw({ref:t,id:n,className:Aw(o,"".concat(o,"-").concat(p),Pw(Pw(Pw({},"".concat(o,"-mobile"),P),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),I),i)},N),H.createElement(VQ,kw({},K,{renderTabBar:S})),H.createElement(KQ,kw({destroyInactiveTabPane:w},U,{animated:R}))))}));const YQ={motionAppear:!1,motionEnter:!0,motionLeave:!0};var QQ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ZQ=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[PB(e,"slide-up"),PB(e,"slide-down")]]},JQ=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${PI(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:PI(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:PI(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${PI(e.borderRadiusLG)} 0 0 ${PI(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},eZ=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},PP(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${PI(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},MP),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${PI(e.paddingXXS)} ${PI(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},tZ=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${PI(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:PI(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},nZ=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${PI(e.borderRadius)} ${PI(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${PI(e.borderRadius)} ${PI(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${PI(e.borderRadius)} ${PI(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${PI(e.borderRadius)} 0 0 ${PI(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},rZ=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},zP(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},oZ=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:PI(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:PI(e.marginXS)},marginLeft:{_skip_check_:!0,value:PI(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},iZ=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},PP(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${PI(e.paddingXS)}`,background:"transparent",border:`${PI(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},zP(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),rZ(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},aZ=tT("Tabs",(e=>{const t=KP(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${PI(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${PI(e.horizontalItemGutter)}`});return[nZ(t),oZ(t),tZ(t),eZ(t),JQ(t),iZ(t),ZQ(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}})),lZ=()=>null;var cZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sZ=e=>{var t,n,r,o,i,a,l;const{type:c,className:s,rootClassName:u,size:d,onEdit:f,hideAdd:p,centered:m,addIcon:h,moreIcon:g,popupClassName:v,children:b,items:y,animated:w,style:S,indicatorSize:x,indicator:C}=e,E=cZ(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=E,{direction:$,tabs:O,getPrefixCls:N,getPopupContainer:_}=H.useContext(aP),I=N("tabs",k),R=Pj(I),[M,P,T]=aZ(I,R);let j;"editable-card"===c&&(j={onEdit:(e,t)=>{let{key:n,event:r}=t;null==f||f("add"===e?r:n,e)},removeIcon:H.createElement(ux,null),addIcon:(null!=h?h:null==O?void 0:O.addIcon)||H.createElement(WC,null),showAdd:!0!==p});const A=N(),z=YA(d),D=function(e,t){if(e)return e;const n=h_(t).map((e=>{if(H.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=QQ(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}(y,b),L=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},YQ),{motionName:LA(e,"switch")})),t}(I,w),B=Object.assign(Object.assign({},null==O?void 0:O.style),S),F={align:null!==(t=null==C?void 0:C.align)&&void 0!==t?t:null===(n=null==O?void 0:O.indicator)||void 0===n?void 0:n.align,size:null!==(a=null!==(o=null!==(r=null==C?void 0:C.size)&&void 0!==r?r:x)&&void 0!==o?o:null===(i=null==O?void 0:O.indicator)||void 0===i?void 0:i.size)&&void 0!==a?a:null==O?void 0:O.indicatorSize};return M(H.createElement(GQ,Object.assign({direction:$,getPopupContainer:_,moreTransitionName:`${A}-slide-up`},E,{items:D,className:m_({[`${I}-${z}`]:z,[`${I}-card`]:["card","editable-card"].includes(c),[`${I}-editable-card`]:"editable-card"===c,[`${I}-centered`]:m},null==O?void 0:O.className,s,u,P,T,R),popupClassName:m_(v,P,T,R),style:B,editable:j,moreIcon:null!==(l=null!=g?g:null==O?void 0:O.moreIcon)&&void 0!==l?l:H.createElement(jx,null),prefixCls:I,animated:L,indicator:F})))};sZ.TabPane=lZ;const uZ=sZ;var dZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fZ=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=dZ(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=H.useContext(aP),a=i("card",t),l=m_(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return H.createElement("div",Object.assign({},o,{className:l}))},pZ=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${PI(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},MP),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},mZ=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${PI(o)} 0 0 0 ${n},\n 0 ${PI(o)} 0 0 ${n},\n ${PI(o)} ${PI(o)} 0 0 ${n},\n ${PI(o)} 0 0 0 ${n} inset,\n 0 ${PI(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},hZ=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${PI(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:PI(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:PI(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${PI(e.lineWidth)} ${e.lineType} ${i}`}}})},gZ=e=>Object.assign(Object.assign({margin:`${PI(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},MP),"&-description":{color:e.colorTextDescription}}),vZ=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${PI(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${PI(e.padding)} ${PI(n)}`}}},bZ=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},yZ=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},PP(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:pZ(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-grid`]:mZ(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:hZ(e),[`${n}-meta`]:gZ(e)}),[`${n}-bordered`]:{border:`${PI(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${PI(e.borderRadiusLG)} ${PI(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:vZ(e),[`${n}-loading`]:bZ(e),[`${n}-rtl`]:{direction:"rtl"}}},wZ=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${PI(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},SZ=tT("Card",(e=>{const t=KP(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[yZ(t),wZ(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var xZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const CZ=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return H.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r=`action-${t}`;return H.createElement("li",{style:{width:100/n.length+"%"},key:r},H.createElement("span",null,e))})))},EZ=H.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:l={},bodyStyle:c={},title:s,loading:u,bordered:d=!0,size:f,type:p,cover:m,actions:h,tabList:g,children:v,activeTabKey:b,defaultActiveTabKey:y,tabBarExtraContent:w,hoverable:S,tabProps:x={},classNames:C,styles:E}=e,k=xZ(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:$,direction:O,card:N}=H.useContext(aP),_=e=>{var t;return m_(null===(t=null==N?void 0:N.classNames)||void 0===t?void 0:t[e],null==C?void 0:C[e])},I=e=>{var t;return Object.assign(Object.assign({},null===(t=null==N?void 0:N.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},R=H.useMemo((()=>{let e=!1;return H.Children.forEach(v,(t=>{t&&t.type&&t.type===fZ&&(e=!0)})),e}),[v]),M=$("card",n),[P,T,j]=SZ(M),A=H.createElement(CQ,{loading:!0,active:!0,paragraph:{rows:4},title:!1},v),z=void 0!==b,D=Object.assign(Object.assign({},x),{[z?"activeKey":"defaultActiveKey"]:z?b:y,tabBarExtraContent:w});let L;const B=YA(f),F=B&&"default"!==B?B:"large",W=g?H.createElement(uZ,Object.assign({size:F},D,{className:`${M}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:g.map((e=>{var{tab:t}=e,n=xZ(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(s||a||W){const e=m_(`${M}-head`,_("header")),t=m_(`${M}-head-title`,_("title")),n=m_(`${M}-extra`,_("extra")),r=Object.assign(Object.assign({},l),I("header"));L=H.createElement("div",{className:e,style:r},H.createElement("div",{className:`${M}-head-wrapper`},s&&H.createElement("div",{className:t,style:I("title")},s),a&&H.createElement("div",{className:n,style:I("extra")},a)),W)}const V=m_(`${M}-cover`,_("cover")),U=m?H.createElement("div",{className:V,style:I("cover")},m):null,K=m_(`${M}-body`,_("body")),q=Object.assign(Object.assign({},c),I("body")),X=H.createElement("div",{className:K,style:q},u?A:v),G=m_(`${M}-actions`,_("actions")),Y=h&&h.length?H.createElement(CZ,{actionClasses:G,actionStyle:I("actions"),actions:h}):null,Q=oI(k,["onTabChange"]),Z=m_(M,null==N?void 0:N.className,{[`${M}-loading`]:u,[`${M}-bordered`]:d,[`${M}-hoverable`]:S,[`${M}-contain-grid`]:R,[`${M}-contain-tabs`]:g&&g.length,[`${M}-${B}`]:B,[`${M}-type-${p}`]:!!p,[`${M}-rtl`]:"rtl"===O},r,o,T,j),J=Object.assign(Object.assign({},null==N?void 0:N.style),i);return P(H.createElement("div",Object.assign({ref:t},Q,{className:Z,style:J}),L,U,X,Y))})),kZ=EZ;var $Z=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const OZ=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=$Z(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=H.useContext(aP),c=l("card",t),s=m_(`${c}-meta`,n),u=r?H.createElement("div",{className:`${c}-meta-avatar`},r):null,d=o?H.createElement("div",{className:`${c}-meta-title`},o):null,f=i?H.createElement("div",{className:`${c}-meta-description`},i):null,p=d||f?H.createElement("div",{className:`${c}-meta-detail`},d,f):null;return H.createElement("div",Object.assign({},a,{className:s}),u,p)},NZ=kZ;function _Z(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function m(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,s=Date.now()-f;function m(){f=Date.now(),t.apply(l,o)}function h(){r=void 0}d||(c||!u||r||m(),p(),void 0===u&&s>e?c?(f=Date.now(),a||(r=setTimeout(u?h:m,e))):m():!0!==a&&(r=setTimeout(u?h:m,void 0===u?e-s:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},m}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}function IZ(e,t){return e[t]}NZ.Grid=fZ,NZ.Meta=OZ,e("y",NZ);var RZ=["children"];function MZ(e,t){return"".concat(e,"-").concat(t)}function PZ(e,t){return null!=e?e:t}function TZ(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function jZ(e){return function e(t){return h_(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return CS(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=rS({key:n},Tw(r,RZ)),a=e(o);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function AZ(e,t,n){var r=TZ(n),o=r._title,i=r.key,a=r.children,l=new Set(!0===t?[]:t),c=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,u){for(var d,f=MZ(r?r.pos:"0",u),p=PZ(s[i],f),m=0;m<o.length;m+=1){var h=o[m];if(void 0!==s[h]){d=s[h];break}}var g=Object.assign(oI(s,[].concat(aI(o),[i,a])),{title:d,key:p,parent:r,pos:f,children:null,data:s,isStart:[].concat(aI(r?r.isStart:[]),[0===u]),isEnd:[].concat(aI(r?r.isEnd:[]),[u===n.length-1])});return c.push(g),!0===t||l.has(p)?g.children=e(s[a]||[],g):g.children=[],g}))}(e),c}function zZ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},u={},d={posEntities:s,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var r,o=("object"===Rw(n)?n:{externalGetKey:n})||{},i=o.childrenPropName,a=o.externalGetKey,l=TZ(o.fieldNames),c=l.key,s=l.children,u=i||s;a?"string"==typeof a?r=function(e){return e[a]}:"function"==typeof a&&(r=function(e){return a(e)}):r=function(e,t){return PZ(e[c],t)},function n(o,i,a,l){var c=o?o[u]:e,s=o?MZ(a.pos,i):"0",d=o?[].concat(aI(l),[o]):[];if(o){var f=r(o,s),p={node:o,index:i,pos:s,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:o,pos:s,level:a?a.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},f=PZ(i,o);s[o]=c,u[f]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,d)}),{externalGetKey:c,childrenPropName:a,fieldNames:l}),o&&o(d),d}function DZ(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=IZ(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function LZ(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,m=rS(rS({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return CS(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function BZ(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function FZ(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function HZ(e,t,n,r){var o,i=[];o=r||FZ;var a,l=new Set(e.filter((function(e){var t=!!IZ(n,e);return t||i.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),s=Math.max(s,r)})),CS(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&o.add(t.key),c&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(BZ(i,o))}}(l,c,s,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)})),r||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(BZ(a,i))}}(l,t.halfCheckedKeys,c,s,o),a}const WZ=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},PP(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},PP(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},PP(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},AP(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${PI(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}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{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}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{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:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function VZ(e,t){const n=KP(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[WZ(n)]}const UZ=tT("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[VZ(n,e)]})),KZ=W.createContext(null);var qZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const XZ=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:c,onMouseEnter:s,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,p=qZ(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:h,checkbox:g}=H.useContext(aP),v=H.useContext(KZ),{isFormItemInput:b}=H.useContext(tB),y=H.useContext(dP),w=null!==(n=(null==v?void 0:v.disabled)||f)&&void 0!==n?n:y,S=H.useRef(p.value);H.useEffect((()=>{null==v||v.registerValue(p.value)}),[]),H.useEffect((()=>{if(!d)return p.value!==S.current&&(null==v||v.cancelValue(S.current),null==v||v.registerValue(p.value),S.current=p.value),()=>null==v?void 0:v.cancelValue(p.value)}),[p.value]);const x=m("checkbox",r),C=Pj(x),[E,k,$]=UZ(x,C),O=Object.assign({},p);v&&!d&&(O.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),v.toggleOption&&v.toggleOption({label:a,value:p.value})},O.name=v.name,O.checked=v.value.includes(p.value));const N=m_(`${x}-wrapper`,{[`${x}-rtl`]:"rtl"===h,[`${x}-wrapper-checked`]:O.checked,[`${x}-wrapper-disabled`]:w,[`${x}-wrapper-in-form-item`]:b},null==g?void 0:g.className,o,i,$,C,k),_=m_({[`${x}-indeterminate`]:l},UA,k),I=l?"mixed":void 0;return E(H.createElement(GA,{component:"Checkbox",disabled:w},H.createElement("label",{className:N,style:Object.assign(Object.assign({},null==g?void 0:g.style),c),onMouseEnter:s,onMouseLeave:u},H.createElement(tY,Object.assign({"aria-checked":I},O,{prefixCls:x,className:_,disabled:w,ref:t})),void 0!==a&&H.createElement("span",null,a))))},GZ=H.forwardRef(XZ);var YZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const QZ=H.forwardRef(((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:c,onChange:s}=e,u=YZ(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=H.useContext(aP),[p,m]=H.useState(u.value||n||[]),[h,g]=H.useState([]);H.useEffect((()=>{"value"in u&&m(u.value||[])}),[u.value]);const v=H.useMemo((()=>o.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[o]),b=d("checkbox",i),y=`${b}-group`,w=Pj(b),[S,x,C]=UZ(b,w),E=oI(u,["value","disabled"]),k=o.length?v.map((e=>H.createElement(GZ,{prefixCls:b,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:p.includes(e.value),onChange:e.onChange,className:`${y}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):r,$={toggleOption:e=>{const t=p.indexOf(e.value),n=aI(p);-1===t?n.push(e.value):n.splice(t,1),"value"in u||m(n),null==s||s(n.filter((e=>h.includes(e))).sort(((e,t)=>v.findIndex((t=>t.value===e))-v.findIndex((e=>e.value===t)))))},value:p,disabled:u.disabled,name:u.name,registerValue:e=>{g((t=>[].concat(aI(t),[e])))},cancelValue:e=>{g((t=>t.filter((t=>t!==e))))}},O=m_(y,{[`${y}-rtl`]:"rtl"===f},a,l,C,w,x);return S(H.createElement("div",Object.assign({className:O,style:c},E,{ref:t}),H.createElement(KZ.Provider,{value:$},k)))})),ZZ=QZ,JZ=GZ;JZ.Group=ZZ,JZ.__ANT_CHECKBOX=!0;const eJ=JZ,tJ=H.createContext({}),nJ=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},rJ=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)0===a?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:a/o*100+"%"}],i[`${r}${t}-push-${a}`]={insetInlineStart:a/o*100+"%"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:a/o*100+"%"},i[`${r}${t}-offset-${a}`]={marginInlineStart:a/o*100+"%"},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),oJ=tT("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"}}}}),(()=>({}))),iJ=tT("Grid",(e=>{const t=KP(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[nJ(t),rJ(t,""),rJ(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${PI(t)})`]:Object.assign({},rJ(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var aJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function lJ(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const cJ=["xs","sm","md","lg","xl","xxl"],sJ=H.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=H.useContext(aP),{gutter:o,wrap:i}=H.useContext(tJ),{prefixCls:a,span:l,order:c,offset:s,push:u,pull:d,className:f,children:p,flex:m,style:h}=e,g=aJ(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",a),[b,y,w]=iJ(v),S={};let x={};cJ.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete g[t],x=Object.assign(Object.assign({},x),{[`${v}-${t}-${n.span}`]:void 0!==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&&(x[`${v}-${t}-flex`]=!0,S[`--${v}-${t}-flex`]=lJ(n.flex))}));const C=m_(v,{[`${v}-${l}`]:void 0!==l,[`${v}-order-${c}`]:c,[`${v}-offset-${s}`]:s,[`${v}-push-${u}`]:u,[`${v}-pull-${d}`]:d},f,x,y,w),E={};if(o&&o[0]>0){const e=o[0]/2;E.paddingLeft=e,E.paddingRight=e}return m&&(E.flex=lJ(m),!1!==i||E.minWidth||(E.minWidth=0)),b(H.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},E),h),S),className:C,ref:t}),p))})),uJ=sJ;var dJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function fJ(e,t){const[n,r]=H.useState("string"==typeof e?e:"");return H.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<mV.length;n++){const o=mV[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const pJ=H.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:c=0,wrap:s}=e,u=dJ(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=H.useContext(aP),[p,m]=H.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[h,g]=H.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),v=fJ(o,h),b=fJ(r,h),y=H.useRef(c),w=vV();H.useEffect((()=>{const e=w.subscribe((e=>{g(e);const t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&m(e)}));return()=>w.unsubscribe(e)}),[]);const S=d("row",n),[x,C,E]=oJ(S),k=(()=>{const e=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r<mV.length;r++){const o=mV[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),$=m_(S,{[`${S}-no-wrap`]:!1===s,[`${S}-${b}`]:b,[`${S}-${v}`]:v,[`${S}-rtl`]:"rtl"===f},i,C,E),O={},N=null!=k[0]&&k[0]>0?k[0]/-2:void 0;N&&(O.marginLeft=N,O.marginRight=N);const[_,I]=k;O.rowGap=I;const R=H.useMemo((()=>({gutter:[_,I],wrap:s})),[_,I,s]);return x(H.createElement(tJ.Provider,{value:R},H.createElement("div",Object.assign({},u,{className:$,style:Object.assign(Object.assign({},O),a),ref:t}),l)))})),mJ=pJ;function hJ(){return"function"==typeof BigInt}function gJ(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function vJ(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function bJ(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function yJ(e){var t=Iw(e.toLowerCase().split("e"),2),n=t[0],r=t[1],o=void 0===r?"0":r,i=n.startsWith("-"),a=Iw((i?n.slice(1):n).split("."),2),l=a[0],c=void 0===l?"0":l,s=a[1],u=void 0===s?"":s;return{decimal:u,digits:"".concat(c).concat(u).replace(/^0+/,"")||"0",exponent:Number(o),integer:c,negative:i}}function wJ(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function SJ(e){var t=String(e);return bJ(e)?wJ(yJ(t)):t.includes(".")&&CJ(t)?t.length-t.indexOf(".")-1:0}function xJ(e){var t=String(e);if(bJ(e)){if(e>Number.MAX_SAFE_INTEGER)return String(hJ()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(hJ()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=yJ(t),r=wJ(n);t=r>100?function(e){var t=e.decimal,n=e.digits,r=e.exponent,o=e.integer,i=e.negative;if("0"===n)return"0";var a=o.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=(a||-l)+r,s="";return s=c<=0?"0.".concat("0".repeat(-c)).concat(n):c>=n.length?"".concat(n).concat("0".repeat(c-n.length)):"".concat(n.slice(0,c),".").concat(n.slice(c)),"".concat(i?"-":"").concat(s)}(n):e.toFixed(r)}return vJ(t).fullStr}function CJ(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var EJ=function(){function e(t){if(W_(this,e),Pw(this,"origin",""),Pw(this,"negative",void 0),Pw(this,"integer",void 0),Pw(this,"decimal",void 0),Pw(this,"decimalLen",void 0),Pw(this,"empty",void 0),Pw(this,"nan",void 0),gJ(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(bJ(n)&&(n=Number(n)),CJ(n="string"==typeof n?n:xJ(n))){var r=vJ(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return U_(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=vJ(i),c=l.negativeStr,s=l.trimStr,u="".concat(c).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":vJ("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),kJ=function(){function e(t){W_(this,e),Pw(this,"origin",""),Pw(this,"number",void 0),Pw(this,"empty",void 0),gJ(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return U_(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(SJ(this.number),SJ(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(SJ(this.number),SJ(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":bJ(this.number)&&SJ(this.number)>100?String(this.number):xJ(this.number)}}]),e}();function $J(e){return hJ()?new EJ(e):new kJ(e)}function OJ(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=vJ(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?OJ($J(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}function NJ(e,t,n){var 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),o}function _J(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=NJ(t,e,r)):n(o=NJ(t,e,""))}}function IJ(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var RJ=function(e){var t,n,r=e.inputElement,o=e.children,i=e.prefixCls,a=e.prefix,l=e.suffix,c=e.addonBefore,s=e.addonAfter,u=e.className,d=e.style,f=e.disabled,p=e.readOnly,m=e.focused,h=e.triggerFocus,g=e.allowClear,v=e.value,b=e.handleReset,y=e.hidden,w=e.classes,S=e.classNames,x=e.dataAttrs,C=e.styles,E=e.components,k=null!=o?o:r,$=(null==E?void 0:E.affixWrapper)||"span",O=(null==E?void 0:E.groupWrapper)||"span",N=(null==E?void 0:E.wrapper)||"span",_=(null==E?void 0:E.groupAddon)||"span",I=H.useRef(null),R=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),M=H.cloneElement(k,{value:v,className:Aw(k.props.className,!R&&(null==S?void 0:S.variant))||null});if(R){var P,T=null;if(g){var j,A=!f&&!p&&v,z="".concat(i,"-clear-icon"),D="object"===Rw(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";T=W.createElement("span",{onClick:b,onMouseDown:function(e){return e.preventDefault()},className:Aw(z,(j={},Pw(j,"".concat(z,"-hidden"),!A),Pw(j,"".concat(z,"-has-suffix"),!!l),j)),role:"button",tabIndex:-1},D)}var L="".concat(i,"-affix-wrapper"),B=Aw(L,(Pw(P={},"".concat(i,"-disabled"),f),Pw(P,"".concat(L,"-disabled"),f),Pw(P,"".concat(L,"-focused"),m),Pw(P,"".concat(L,"-readonly"),p),Pw(P,"".concat(L,"-input-with-clear-btn"),l&&g&&v),P),null==w?void 0:w.affixWrapper,null==S?void 0:S.affixWrapper,null==S?void 0:S.variant),F=(l||g)&&W.createElement("span",{className:Aw("".concat(i,"-suffix"),null==S?void 0:S.suffix),style:null==C?void 0:C.suffix},T,l);M=W.createElement($,kw({className:B,style:null==C?void 0:C.affixWrapper,onClick:function(e){var t;null!==(t=I.current)&&void 0!==t&&t.contains(e.target)&&(null==h||h())}},null==x?void 0:x.affixWrapper,{ref:I}),a&&W.createElement("span",{className:Aw("".concat(i,"-prefix"),null==S?void 0:S.prefix),style:null==C?void 0:C.prefix},a),M,F)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var V="".concat(i,"-group"),U="".concat(V,"-addon"),K="".concat(V,"-wrapper"),q=Aw("".concat(i,"-wrapper"),V,null==w?void 0:w.wrapper,null==S?void 0:S.wrapper),X=Aw(K,Pw({},"".concat(K,"-disabled"),f),null==w?void 0:w.group,null==S?void 0:S.groupWrapper);M=W.createElement(O,{className:X},W.createElement(N,{className:q},c&&W.createElement(_,{className:U},c),M,s&&W.createElement(_,{className:U},s)))}return W.cloneElement(M,{className:Aw(null===(t=M.props)||void 0===t?void 0:t.className,u)||null,style:rS(rS({},null===(n=M.props)||void 0===n?void 0:n.style),d),hidden:y})},MJ=["show"];function PJ(e,t){return H.useMemo((function(){var n={};t&&(n.show="object"===Rw(t)&&t.formatter?t.formatter:!!t);var r=n=rS(rS({},n),e),o=r.show,i=Tw(r,MJ);return rS(rS({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var TJ=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],jJ=H.forwardRef((function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.prefixCls,s=void 0===c?"rc-input":c,u=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,m=e.suffix,h=e.showCount,g=e.count,v=e.type,b=void 0===v?"text":v,y=e.classes,w=e.classNames,S=e.styles,x=e.onCompositionStart,C=e.onCompositionEnd,E=Tw(e,TJ),k=Iw(H.useState(!1),2),$=k[0],O=k[1],N=H.useRef(!1),_=H.useRef(null),I=function(e){_.current&&IJ(_.current,e)},R=Iw(IP(e.defaultValue,{value:e.value}),2),M=R[0],P=R[1],T=null==M?"":String(M),j=Iw(H.useState(null),2),A=j[0],z=j[1],D=PJ(g,h),L=D.max||p,B=D.strategy(T),F=!!L&&B>L;H.useImperativeHandle(t,(function(){return{focus:I,blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=_.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=_.current)||void 0===e||e.select()},input:_.current}})),H.useEffect((function(){O((function(e){return(!e||!u)&&e}))}),[u]);var V=function(e,t,n){var o,i,a=t;if(!N.current&&D.exceedFormatter&&D.max&&D.strategy(t)>D.max)t!==(a=D.exceedFormatter(t,{max:D.max}))&&z([(null===(o=_.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=_.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;P(a),_.current&&_J(_.current,e,r,a)};H.useEffect((function(){var e;A&&(null===(e=_.current)||void 0===e||e.setSelectionRange.apply(e,aI(A)))}),[A]);var U,K=function(e){V(e,e.target.value,{source:"change"})},q=function(e){N.current=!1,V(e,e.currentTarget.value,{source:"compositionEnd"}),null==C||C(e)},X=function(e){a&&"Enter"===e.key&&a(e),null==l||l(e)},G=function(e){O(!0),null==o||o(e)},Y=function(e){O(!1),null==i||i(e)},Q=F&&"".concat(s,"-out-of-range");return W.createElement(RJ,kw({},E,{prefixCls:s,className:Aw(f,Q),handleReset:function(e){P(""),I(),_.current&&_J(_.current,e,r)},value:T,focused:$,triggerFocus:I,suffix:function(){var e=Number(L)>0;if(m||D.show){var t=D.showFormatter?D.showFormatter({value:T,count:B,maxLength:L}):"".concat(B).concat(e?" / ".concat(L):"");return W.createElement(W.Fragment,null,D.show&&W.createElement("span",{className:Aw("".concat(s,"-show-count-suffix"),Pw({},"".concat(s,"-show-count-has-suffix"),!!m),null==w?void 0:w.count),style:rS({},null==S?void 0:S.count)},t),m)}return null}(),disabled:u,classes:y,classNames:w,styles:S}),(U=oI(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),W.createElement("input",kw({autoComplete:n},U,{onChange:K,onFocus:G,onBlur:Y,onKeyDown:X,className:Aw(s,Pw({},"".concat(s,"-disabled"),u),null==w?void 0:w.input),style:null==S?void 0:S.input,ref:_,size:d,type:b,onCompositionStart:function(e){N.current=!0,null==x||x(e)},onCompositionEnd:q}))))})),AJ=function(){var e=Iw(H.useState(!1),2),t=e[0],n=e[1];return LI((function(){n(IF())}),[]),t};function zJ(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=H.useRef(),c=H.useRef([]),s=H.useRef();s.current=a;var u=function(){clearTimeout(l.current)},d=function(e,t){e.preventDefault(),u(),s.current(t),l.current=setTimeout((function e(){s.current(t),l.current=setTimeout(e,200)}),600)};if(H.useEffect((function(){return function(){u(),c.current.forEach((function(e){return fI.cancel(e)}))}}),[]),AJ())return null;var f="".concat(t,"-handler"),p=Aw(f,"".concat(f,"-up"),Pw({},"".concat(f,"-up-disabled"),o)),m=Aw(f,"".concat(f,"-down"),Pw({},"".concat(f,"-down-disabled"),i)),h=function(){return c.current.push(fI(u))},g={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return H.createElement("div",{className:"".concat(f,"-wrap")},H.createElement("span",kw({},g,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:p}),n||H.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),H.createElement("span",kw({},g,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:m}),r||H.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function DJ(e){var t="number"==typeof e?xJ(e):vJ(e).fullStr;return t.includes(".")?vJ(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var LJ=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],BJ=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],FJ=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},HJ=function(e){var t=$J(e);return t.isInvalidate()?null:t},WJ=H.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,i=e.className,a=e.style,l=e.min,c=e.max,s=e.step,u=void 0===s?1:s,d=e.defaultValue,f=e.value,p=e.disabled,m=e.readOnly,h=e.upHandler,g=e.downHandler,v=e.keyboard,b=e.changeOnWheel,y=void 0!==b&&b,w=e.controls,S=void 0===w||w;e.classNames;var x=e.stringMode,C=e.parser,E=e.formatter,k=e.precision,$=e.decimalSeparator,O=e.onChange,N=e.onInput,_=e.onPressEnter,I=e.onStep,R=e.changeOnBlur,M=void 0===R||R,P=Tw(e,LJ),T="".concat(o,"-input"),j=H.useRef(null),A=Iw(H.useState(!1),2),z=A[0],D=A[1],L=H.useRef(!1),B=H.useRef(!1),F=H.useRef(!1),W=Iw(H.useState((function(){return $J(null!=f?f:d)})),2),V=W[0],U=W[1],K=H.useCallback((function(e,t){if(!t)return k>=0?k:Math.max(SJ(e),SJ(u))}),[k,u]),q=H.useCallback((function(e){var t=String(e);if(C)return C(t);var n=t;return $&&(n=n.replace($,".")),n.replace(/[^\w.-]+/g,"")}),[C,$]),X=H.useRef(""),G=H.useCallback((function(e,t){if(E)return E(e,{userTyping:t,input:String(X.current)});var n="number"==typeof e?xJ(e):e;if(!t){var r=K(n,t);CJ(n)&&($||r>=0)&&(n=OJ(n,$||".",r))}return n}),[E,K,$]),Y=Iw(H.useState((function(){var e=null!=d?d:f;return V.isInvalidate()&&["string","number"].includes(Rw(e))?Number.isNaN(e)?"":e:G(V.toString(),!1)})),2),Q=Y[0],Z=Y[1];function J(e,t){Z(G(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}X.current=Q;var ee,te,ne,re,oe,ie=H.useMemo((function(){return HJ(c)}),[c,k]),ae=H.useMemo((function(){return HJ(l)}),[l,k]),le=H.useMemo((function(){return!(!ie||!V||V.isInvalidate())&&ie.lessEquals(V)}),[ie,V]),ce=H.useMemo((function(){return!(!ae||!V||V.isInvalidate())&&V.lessEquals(ae)}),[ae,V]),se=(ee=j.current,te=z,ne=H.useRef(null),[function(){try{var e=ee.selectionStart,t=ee.selectionEnd,n=ee.value,r=n.substring(0,e),o=n.substring(t);ne.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(Ij){}},function(){if(ee&&ne.current&&te)try{var e=ee.value,t=ne.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-ne.current.afterTxt.length;else if(e.startsWith(n))i=n.length;else{var a=n[o-1],l=e.indexOf(a,o-1);-1!==l&&(i=l+1)}ee.setSelectionRange(i,i)}catch(Ij){CS(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Ij.message))}}]),ue=Iw(se,2),de=ue[0],fe=ue[1],pe=function(e){return ie&&!e.lessEquals(ie)?ie:ae&&!ae.lessEquals(e)?ae:null},me=function(e){return!pe(e)},he=function(e,t){var n,r=e,o=me(r)||r.isEmpty();if(r.isEmpty()||t||(r=pe(r)||r,o=!0),!m&&!p&&o){var i=r.toString(),a=K(i,t);return a>=0&&(r=$J(OJ(i,".",a)),me(r)||(r=$J(OJ(i,".",a,!0)))),r.equals(V)||(n=r,void 0===f&&U(n),null==O||O(r.isEmpty()?null:FJ(x,r)),void 0===f&&J(r,t)),r}return V},ge=(re=H.useRef(0),oe=function(){fI.cancel(re.current)},H.useEffect((function(){return oe}),[]),function(e){oe(),re.current=fI((function(){e()}))}),ve=function e(t){if(de(),X.current=t,Z(t),!B.current){var n=$J(q(t));n.isNaN()||he(n,!0)}null==N||N(t),ge((function(){var n=t;C||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},be=function(e){var t;if(!(e&&le||!e&&ce)){L.current=!1;var n=$J(F.current?DJ(u):u);e||(n=n.negate());var r=(V||$J(0)).add(n.toString()),o=he(r,!1);null==I||I(FJ(x,o),{offset:F.current?DJ(u):u,type:e?"up":"down"}),null===(t=j.current)||void 0===t||t.focus()}},ye=function(e){var t=$J(q(Q)),n=t;n=t.isNaN()?he(V,e):he(t,e),void 0!==f?J(V,!1):n.isNaN()||J(n,!1)};return H.useEffect((function(){if(y&&z){var e=function(e){be(e.deltaY<0),e.preventDefault()},t=j.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}})),BI((function(){V.isInvalidate()||J(V,!1)}),[k,E]),BI((function(){var e=$J(f);U(e);var t=$J(q(Q));e.equals(t)&&L.current&&!E||J(e,L.current)}),[f]),BI((function(){E&&fe()}),[Q]),H.createElement("div",{className:Aw(o,i,(n={},Pw(n,"".concat(o,"-focused"),z),Pw(n,"".concat(o,"-disabled"),p),Pw(n,"".concat(o,"-readonly"),m),Pw(n,"".concat(o,"-not-a-number"),V.isNaN()),Pw(n,"".concat(o,"-out-of-range"),!V.isInvalidate()&&!me(V)),n)),style:a,onFocus:function(){D(!0)},onBlur:function(){M&&ye(!1),D(!1),L.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;L.current=!0,F.current=n,"Enter"===t&&(B.current||(L.current=!1),ye(!1),null==_||_(e)),!1!==v&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){L.current=!1,F.current=!1},onCompositionStart:function(){B.current=!0},onCompositionEnd:function(){B.current=!1,ve(j.current.value)},onBeforeInput:function(){L.current=!0}},S&&H.createElement(zJ,{prefixCls:o,upNode:h,downNode:g,upDisabled:le,downDisabled:ce,onStep:be}),H.createElement("div",{className:"".concat(T,"-wrap")},H.createElement("input",kw({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:u},P,{ref:ik(j,t),className:T,value:Q,onChange:function(e){ve(e.target.value)},disabled:p,readOnly:m}))))})),VJ=H.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,l=e.suffix,c=e.addonBefore,s=e.addonAfter,u=e.className,d=e.classNames,f=Tw(e,BJ),p=H.useRef(null);return H.createElement(RJ,{className:u,triggerFocus:function(e){p.current&&IJ(p.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:l,addonAfter:s,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},H.createElement(WJ,kw({prefixCls:o,disabled:n,ref:ik(p,t),className:null==d?void 0:d.input},f)))}));VJ.displayName="InputNumber";const UJ=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},KJ=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:i,controlHeightLG:a,controlHeightSM:l,colorError:c,paddingInlineSM:s,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:p,motionDurationMid:m,handleHoverColor:h,paddingInline:g,paddingBlock:v,handleBg:b,handleActiveBg:y,colorTextDisabled:w,borderRadiusSM:S,borderRadiusLG:x,controlWidth:C,handleOpacity:E,handleBorderColor:k,filledHandleBg:$,lineHeightLG:O,calc:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},PP(e)),TY(e)),{display:"inline-block",width:C,margin:0,padding:0,borderRadius:o}),xY(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${PI(n)} ${r} ${k}`}}})),NY(e,{[`${t}-handler-wrap`]:{background:$,[`${t}-handler-down`]:{borderBlockStart:`${PI(n)} ${r} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),kY(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:O,borderRadius:x,[`input${t}-input`]:{height:N(a).sub(N(n).mul(2)).equal(),padding:`${PI(d)} ${PI(f)}`}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:N(l).sub(N(n).mul(2)).equal(),padding:`${PI(u)} ${PI(s)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},PP(e)),jY(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:x,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}},EY(e)),IY(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},PP(e)),{width:"100%",padding:`${PI(v)} ${PI(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),RY(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:E,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${PI(n)} ${r} ${k}`,transition:`all ${m} linear`,"&:active":{background:y},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:p,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},UJ(e,"lg")),UJ(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:w}})}]},qJ=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${PI(n)} 0`}},TY(e)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${PI(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${PI(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},XJ=tT("InputNumber",(e=>{const t=KP(e,gY(e));return[KJ(t),qJ(t),Gz(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},vY(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new XM(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});var GJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const YJ=H.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=H.useContext(aP),o=H.useRef(null);H.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:l,disabled:c,prefixCls:s,addonBefore:u,addonAfter:d,prefix:f,bordered:p,readOnly:m,status:h,controls:g,variant:v}=e,b=GJ(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),y=n("input-number",s),w=Pj(y),[S,x,C]=XJ(y,w),{compactSize:E,compactItemClassnames:k}=rz(y,r);let $=H.createElement(xE,{className:`${y}-handler-up-inner`}),O=H.createElement(Ox,{className:`${y}-handler-down-inner`});const N="boolean"==typeof g?g:void 0;"object"==typeof g&&($=void 0===g.upIcon?$:H.createElement("span",{className:`${y}-handler-up-inner`},g.upIcon),O=void 0===g.downIcon?O:H.createElement("span",{className:`${y}-handler-down-inner`},g.downIcon));const{hasFeedback:_,status:I,isFormItemInput:R,feedbackIcon:M}=H.useContext(tB),P=OW(I,h),T=YA((e=>{var t;return null!==(t=null!=l?l:E)&&void 0!==t?t:e})),j=H.useContext(dP),A=null!=c?c:j,[z,D]=LW(v,p),L=_&&H.createElement(H.Fragment,null,M),B=m_({[`${y}-lg`]:"large"===T,[`${y}-sm`]:"small"===T,[`${y}-rtl`]:"rtl"===r,[`${y}-in-form-item`]:R},x),F=`${y}-group`;return S(H.createElement(VJ,Object.assign({ref:o,disabled:A,className:m_(C,w,i,a,k),upHandler:$,downHandler:O,prefixCls:y,readOnly:m,controls:N,prefix:f,suffix:L,addonAfter:d&&H.createElement(oz,null,H.createElement(nB,{override:!0,status:!0},d)),addonBefore:u&&H.createElement(oz,null,H.createElement(nB,{override:!0,status:!0},u)),classNames:{input:B,variant:m_({[`${y}-${z}`]:D},$W(y,P,_)),affixWrapper:m_({[`${y}-affix-wrapper-sm`]:"small"===T,[`${y}-affix-wrapper-lg`]:"large"===T,[`${y}-affix-wrapper-rtl`]:"rtl"===r},x),wrapper:m_({[`${F}-rtl`]:"rtl"===r},x),groupWrapper:m_({[`${y}-group-wrapper-sm`]:"small"===T,[`${y}-group-wrapper-lg`]:"large"===T,[`${y}-group-wrapper-rtl`]:"rtl"===r,[`${y}-group-wrapper-${z}`]:D},$W(`${y}-group-wrapper`,P,_),x)}},b)))})),QJ=YJ;QJ._InternalPanelDoNotUseOrYouWillBeFired=e=>H.createElement(mj,{theme:{components:{InputNumber:{handleVisible:!0}}}},H.createElement(YJ,Object.assign({},e))),e("a5",QJ);const ZJ=e=>{const{getPrefixCls:t,direction:n}=H.useContext(aP),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,c]=WY(a),s=m_(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},c,o),u=H.useContext(tB),d=H.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return l(H.createElement("span",{className:s,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},H.createElement(tB.Provider,{value:d},e.children)))};function JJ(e,t){const n=H.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return H.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}const e0=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:W.createElement(lx,null)}),t};var t0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const n0=H.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:c,onFocus:s,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:m,style:h,styles:g,rootClassName:v,onChange:b,classNames:y,variant:w}=e,S=t0(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:C,input:E}=W.useContext(aP),k=x("input",r),$=H.useRef(null),O=Pj(k),[N,_,I]=WY(k,O),{compactSize:R,compactItemClassnames:M}=rz(k,C),P=YA((e=>{var t;return null!==(t=null!=a?a:R)&&void 0!==t?t:e})),T=W.useContext(dP),j=null!=l?l:T,{status:A,hasFeedback:z,feedbackIcon:D}=H.useContext(tB),L=OW(A,i),B=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!z;H.useRef(B);const F=JJ($,!0),V=(z||u)&&W.createElement(W.Fragment,null,u,z&&D),U=e0(d),[K,q]=LW(w,o);return N(W.createElement(jJ,Object.assign({ref:ik(t,$),prefixCls:k,autoComplete:null==E?void 0:E.autoComplete},S,{disabled:j,onBlur:e=>{F(),null==c||c(e)},onFocus:e=>{F(),null==s||s(e)},style:Object.assign(Object.assign({},null==E?void 0:E.style),h),styles:Object.assign(Object.assign({},null==E?void 0:E.styles),g),suffix:V,allowClear:U,className:m_(m,v,I,O,M,null==E?void 0:E.className),onChange:e=>{F(),null==b||b(e)},addonAfter:f&&W.createElement(oz,null,W.createElement(nB,{override:!0,status:!0},f)),addonBefore:p&&W.createElement(oz,null,W.createElement(nB,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),null==E?void 0:E.classNames),{input:m_({[`${k}-sm`]:"small"===P,[`${k}-lg`]:"large"===P,[`${k}-rtl`]:"rtl"===C},null==y?void 0:y.input,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.input,_),variant:m_({[`${k}-${K}`]:q},$W(k,L)),affixWrapper:m_({[`${k}-affix-wrapper-sm`]:"small"===P,[`${k}-affix-wrapper-lg`]:"large"===P,[`${k}-affix-wrapper-rtl`]:"rtl"===C},_),wrapper:m_({[`${k}-group-rtl`]:"rtl"===C},_),groupWrapper:m_({[`${k}-group-wrapper-sm`]:"small"===P,[`${k}-group-wrapper-lg`]:"large"===P,[`${k}-group-wrapper-rtl`]:"rtl"===C,[`${k}-group-wrapper-${K}`]:q},$W(`${k}-group-wrapper`,L,z),_)})})))})),r0=n0;var o0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const i0=e=>e?H.createElement(Vx,null):H.createElement(Fx,null),a0={click:"onClick",hover:"onMouseOver"},l0=H.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=H.useState((()=>!!r&&n.visible)),a=H.useRef(null);H.useEffect((()=>{r&&i(n.visible)}),[r,n]);const l=JJ(a),c=()=>{const{disabled:t}=e;t||(o&&l(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:s,prefixCls:u,inputPrefixCls:d,size:f}=e,p=o0(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=H.useContext(aP),h=m("input",d),g=m("input-password",u),v=n&&(t=>{const{action:n="click",iconRender:r=i0}=e,i=a0[n]||"",a=r(o),l={[i]:c,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return H.cloneElement(H.isValidElement(a)?a:H.createElement("span",null,a),l)})(g),b=m_(g,s,{[`${g}-${f}`]:!!f}),y=Object.assign(Object.assign({},oI(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:b,prefixCls:h,suffix:v});return f&&(y.size=f),H.createElement(r0,Object.assign({ref:ik(t,a)},y))})),c0=l0;var s0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const u0=H.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:c,loading:s,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m}=e,h=s0(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:v}=H.useContext(aP),b=H.useRef(!1),y=g("input-search",n),w=g("input",r),{compactSize:S}=rz(y,v),x=YA((e=>{var t;return null!==(t=null!=i?i:S)&&void 0!==t?t:e})),C=H.useRef(null),E=e=>{var t;document.activeElement===(null===(t=C.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;d&&d(null===(n=null===(t=C.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},$="boolean"==typeof l?H.createElement(pE,null):null,O=`${y}-button`;let N;const _=l||{},I=_.type&&!0===_.type.__ANT_BUTTON;N=I||"button"===_.type?xj(_,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==_?void 0:_.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},I?{className:O,size:x}:{})):H.createElement(rD,{className:O,type:l?"primary":void 0,size:x,disabled:u,key:"enterButton",onMouseDown:E,onClick:k,loading:s,icon:$},l),c&&(N=[N,xj(c,{key:"addonAfter"})]);const R=m_(y,{[`${y}-rtl`]:"rtl"===v,[`${y}-${x}`]:!!x,[`${y}-with-button`]:!!l},o);return H.createElement(r0,Object.assign({ref:ik(C,t),onPressEnter:e=>{b.current||s||k(e)}},h,{size:x,onCompositionStart:e=>{b.current=!0,null==p||p(e)},onCompositionEnd:e=>{b.current=!1,null==m||m(e)},prefixCls:w,addonAfter:N,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:R,disabled:u}))})),d0=u0;var f0,p0=["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"],m0={};function h0(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f0||((f0=document.createElement("textarea")).setAttribute("tab-index","-1"),f0.setAttribute("aria-hidden","true"),document.body.appendChild(f0)),e.getAttribute("wrap")?f0.setAttribute("wrap",e.getAttribute("wrap")):f0.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&m0[n])return m0[n];var 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:p0.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(m0[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;f0.setAttribute("style","".concat(c,";").concat("\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")),f0.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=f0.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){f0.value=" ";var p=f0.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var g0=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],v0=H.forwardRef((function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,c=n.className,s=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=Tw(n,g0),p=Iw(IP(o,{value:i,postState:function(e){return null!=e?e:""}}),2),m=p[0],h=p[1],g=H.useRef();H.useImperativeHandle(t,(function(){return{textArea:g.current}}));var v=Iw(H.useMemo((function(){return a&&"object"===Rw(a)?[a.minRows,a.maxRows]:[]}),[a]),2),b=v[0],y=v[1],w=!!a,S=Iw(H.useState(2),2),x=S[0],C=S[1],E=Iw(H.useState(),2),k=E[0],$=E[1],O=function(){C(0)};LI((function(){w&&O()}),[i,b,y,w]),LI((function(){if(0===x)C(1);else if(1===x){var e=h0(g.current,!1,b,y);C(2),$(e)}else!function(){try{if(document.activeElement===g.current){var e=g.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;g.current.setSelectionRange(t,n),g.current.scrollTop=r}}catch(Ij){}}()}),[x]);var N=H.useRef(),_=function(){fI.cancel(N.current)};H.useEffect((function(){return _}),[]);var I=w?k:null,R=rS(rS({},s),I);return 0!==x&&1!==x||(R.overflowY="hidden",R.overflowX="hidden"),H.createElement(rI,{onResize:function(e){2===x&&(null==l||l(e),a&&(_(),N.current=fI((function(){O()}))))},disabled:!(a||l)},H.createElement("textarea",kw({},f,{ref:g,style:R,className:Aw(r,c,Pw({},"".concat(r,"-disabled"),u)),disabled:u,value:m,onChange:function(e){h(e.target.value),null==d||d(e)}})))})),b0=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],y0=W.forwardRef((function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,s=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,h=void 0===m?"rc-textarea":m,g=e.showCount,v=e.count,b=e.className,y=e.style,w=e.disabled,S=e.hidden,x=e.classNames,C=e.styles,E=e.onResize,k=Tw(e,b0),$=Iw(IP(o,{value:i,defaultValue:o}),2),O=$[0],N=$[1],_=null==O?"":String(O),I=Iw(W.useState(!1),2),R=I[0],M=I[1],P=W.useRef(!1),T=Iw(W.useState(null),2),j=T[0],A=T[1],z=H.useRef(null),D=function(){var e;return null===(e=z.current)||void 0===e?void 0:e.textArea},L=function(){D().focus()};H.useImperativeHandle(t,(function(){return{resizableTextArea:z.current,focus:L,blur:function(){D().blur()}}})),H.useEffect((function(){M((function(e){return!w&&e}))}),[w]);var B=Iw(W.useState(null),2),F=B[0],V=B[1];W.useEffect((function(){var e;F&&(e=D()).setSelectionRange.apply(e,aI(F))}),[F]);var U,K=PJ(v,g),q=null!==(n=K.max)&&void 0!==n?n:u,X=Number(q)>0,G=K.strategy(_),Y=!!q&&G>q,Q=function(e,t){var n=t;!P.current&&K.exceedFormatter&&K.max&&K.strategy(t)>K.max&&t!==(n=K.exceedFormatter(t,{max:K.max}))&&V([D().selectionStart||0,D().selectionEnd||0]),N(n),_J(e.currentTarget,e,c,n)},Z=p;K.show&&(U=K.showFormatter?K.showFormatter({value:_,count:G,maxLength:q}):"".concat(G).concat(X?" / ".concat(q):""),Z=W.createElement(W.Fragment,null,Z,W.createElement("span",{className:Aw("".concat(h,"-data-count"),null==x?void 0:x.count),style:null==C?void 0:C.count},U)));var J=!k.autoSize&&!g&&!s;return W.createElement(RJ,{value:_,allowClear:s,handleReset:function(e){N(""),L(),_J(D(),e,c)},suffix:Z,prefixCls:h,classNames:rS(rS({},x),{},{affixWrapper:Aw(null==x?void 0:x.affixWrapper,(r={},Pw(r,"".concat(h,"-show-count"),g),Pw(r,"".concat(h,"-textarea-allow-clear"),s),r))}),disabled:w,focused:R,className:Aw(b,Y&&"".concat(h,"-out-of-range")),style:rS(rS({},y),j&&!J?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof U?U:void 0}},hidden:S},W.createElement(v0,kw({},k,{maxLength:u,onKeyDown:function(e){var t=k.onPressEnter,n=k.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){Q(e,e.target.value)},onFocus:function(e){M(!0),null==a||a(e)},onBlur:function(e){M(!1),null==l||l(e)},onCompositionStart:function(e){P.current=!0,null==d||d(e)},onCompositionEnd:function(e){P.current=!1,Q(e,e.currentTarget.value),null==f||f(e)},className:Aw(null==x?void 0:x.textarea),style:rS(rS({},null==C?void 0:C.textarea),{},{resize:null==y?void 0:y.resize}),disabled:w,prefixCls:h,onResize:function(e){var t;null==E||E(e),null!==(t=D())&&void 0!==t&&t.style.height&&A(!0)},ref:z})))})),w0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const S0=H.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:c,classNames:s,rootClassName:u,className:d,variant:f}=e,p=w0(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:m,direction:h}=H.useContext(aP),g=YA(i),v=H.useContext(dP),b=null!=a?a:v,{status:y,hasFeedback:w,feedbackIcon:S}=H.useContext(tB),x=OW(y,l),C=H.useRef(null);H.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=C.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){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)}}}(null===(n=null===(t=C.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=C.current)||void 0===e?void 0:e.blur()}}}));const E=m("input",r);let k;"object"==typeof c&&(null==c?void 0:c.clearIcon)?k=c:c&&(k={clearIcon:H.createElement(lx,null)});const $=Pj(E),[O,N,_]=WY(E,$),[I,R]=LW(f,o);return O(H.createElement(y0,Object.assign({},p,{disabled:b,allowClear:k,className:m_(_,$,d,u),classNames:Object.assign(Object.assign({},s),{textarea:m_({[`${E}-sm`]:"small"===g,[`${E}-lg`]:"large"===g},N,null==s?void 0:s.textarea),variant:m_({[`${E}-${I}`]:R},$W(E,x)),affixWrapper:m_(`${E}-textarea-affix-wrapper`,{[`${E}-affix-wrapper-rtl`]:"rtl"===h,[`${E}-affix-wrapper-sm`]:"small"===g,[`${E}-affix-wrapper-lg`]:"large"===g,[`${E}-textarea-show-count`]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},N)}),prefixCls:E,suffix:w&&H.createElement("span",{className:`${E}-textarea-suffix`},S),ref:C})))})),x0=S0,C0=r0;C0.Group=ZJ,C0.Search=d0,C0.TextArea=x0,C0.Password=c0;const E0=e("I",C0);function k0(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function $0(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function O0(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function N0(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=lV(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[H.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:r},e)}),[n,r]),o]}function _0(e){return H.createElement(rD,Object.assign({size:"small",type:"primary"},e))}function I0(e){return H.useMemo((()=>Object.assign({button:_0},e)),[e])}var R0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},M0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function P0(e){const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=function(e){function t(t,n){const r="TimePicker"===n?"timePicker":"datePicker",o=H.forwardRef(((n,o)=>{var i;const{prefixCls:a,getPopupContainer:l,components:c,style:s,className:u,rootClassName:d,size:f,bordered:p,placement:m,placeholder:h,popupClassName:g,dropdownClassName:v,disabled:b,status:y,variant:w}=n,S=M0(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant"]),{getPrefixCls:x,direction:C,getPopupContainer:E,[r]:k}=H.useContext(aP),$=x("picker",a),{compactSize:O,compactItemClassnames:N}=rz($,C),_=H.useRef(null),[I,R]=LW(w,p),M=Pj($),[P,T,j]=JY($,M);H.useImperativeHandle(o,(()=>_.current));const A=t||n.picker,z=x(),[D,L]=N0(n,$),B=I0(c),F=YA((e=>{var t;return null!==(t=null!=f?f:O)&&void 0!==t?t:e})),W=H.useContext(dP),V=null!=b?b:W,U=H.useContext(tB),{hasFeedback:K,status:q,feedbackIcon:X}=U,G=H.createElement(H.Fragment,null,"time"===A?H.createElement(ox,null):H.createElement(BS,null),K&&X),[Y]=EM("DatePicker",gM),Q=Object.assign(Object.assign({},Y),n.locale),[Z]=Yj("DatePicker",null===(i=n.popupStyle)||void 0===i?void 0:i.zIndex);return P(H.createElement(oz,null,H.createElement(GG,Object.assign({ref:_,placeholder:k0(Q,A,h),suffixIcon:G,dropdownAlign:O0(C,m),prevIcon:H.createElement("span",{className:`${$}-prev-icon`}),nextIcon:H.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:H.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:H.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${z}-slide-up`,picker:t},{showToday:!0},S,{locale:Q.lang,className:m_({[`${$}-${F}`]:F,[`${$}-${I}`]:R},$W($,OW(q,y),K),T,N,null==k?void 0:k.className,u,j,M,d),style:Object.assign(Object.assign({},null==k?void 0:k.style),s),prefixCls:$,getPopupContainer:l||E,generateConfig:e,components:B,direction:C,disabled:V,classNames:{popup:m_(T,j,M,d,g||v)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:Z})},allowClear:D,removeIcon:L}))))}));return o}return{DatePicker:t(),WeekPicker:t("week","WeekPicker"),MonthPicker:t("month","MonthPicker"),YearPicker:t("year","YearPicker"),TimePicker:t("time","TimePicker"),QuarterPicker:t("quarter","QuarterPicker")}}(e),l=function(e){const t=H.forwardRef(((t,n)=>{var r;const{prefixCls:o,getPopupContainer:i,components:a,className:l,style:c,placement:s,size:u,disabled:d,bordered:f=!0,placeholder:p,popupClassName:m,dropdownClassName:h,status:g,rootClassName:v,variant:b}=t,y=R0(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),w=H.useRef(null),{getPrefixCls:S,direction:x,getPopupContainer:C,rangePicker:E}=H.useContext(aP),k=S("picker",o),{compactSize:$,compactItemClassnames:O}=rz(k,x),{picker:N}=t,_=S(),[I,R]=LW(b,f),M=Pj(k),[P,T,j]=JY(k,M),[A]=N0(t,k),z=I0(a),D=YA((e=>{var t;return null!==(t=null!=u?u:$)&&void 0!==t?t:e})),L=H.useContext(dP),B=null!=d?d:L,F=H.useContext(tB),{hasFeedback:W,status:V,feedbackIcon:U}=F,K=H.createElement(H.Fragment,null,"time"===N?H.createElement(ox,null):H.createElement(BS,null),W&&U);H.useImperativeHandle(n,(()=>w.current));const[q]=EM("Calendar",gM),X=Object.assign(Object.assign({},q),t.locale),[G]=Yj("DatePicker",null===(r=t.popupStyle)||void 0===r?void 0:r.zIndex);return P(H.createElement(oz,null,H.createElement(WG,Object.assign({separator:H.createElement("span",{"aria-label":"to",className:`${k}-separator`},H.createElement(yE,null)),disabled:B,ref:w,popupAlign:O0(x,s),placeholder:$0(X,N,p),suffixIcon:K,prevIcon:H.createElement("span",{className:`${k}-prev-icon`}),nextIcon:H.createElement("span",{className:`${k}-next-icon`}),superPrevIcon:H.createElement("span",{className:`${k}-super-prev-icon`}),superNextIcon:H.createElement("span",{className:`${k}-super-next-icon`}),transitionName:`${_}-slide-up`},y,{className:m_({[`${k}-${D}`]:D,[`${k}-${I}`]:R},$W(k,OW(V,g),W),T,O,l,null==E?void 0:E.className,j,M,v),style:Object.assign(Object.assign({},null==E?void 0:E.style),c),locale:X.lang,prefixCls:k,getPopupContainer:i||C,generateConfig:e,components:z,direction:x,classNames:{popup:m_(T,m||h,j,M,v)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:G})},allowClear:A}))))}));return t}(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c}const T0=P0(nX);function j0(e){const t=O0(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const A0=_F(T0,"picker",null,j0);T0._InternalPanelDoNotUseOrYouWillBeFired=A0;const z0=_F(T0.RangePicker,"picker",null,j0);function D0(e){return["small","middle","large"].includes(e)}function L0(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}T0._InternalRangePanelDoNotUseOrYouWillBeFired=z0,T0.generatePicker=P0,e("a4",T0);const B0=W.createContext({latestIndex:0}),F0=B0.Provider,H0=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=H.useContext(B0);return null==r?null:H.createElement(H.Fragment,null,H.createElement("div",{className:t,style:i},r),n<a&&o&&H.createElement("span",{className:`${t}-split`},o))};var W0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const V0=H.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=H.useContext(aP),{size:l=(null==i?void 0:i.size)||"small",align:c,className:s,rootClassName:u,children:d,direction:f="horizontal",prefixCls:p,split:m,style:h,wrap:g=!1,classNames:v,styles:b}=e,y=W0(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,S]=Array.isArray(l)?l:[l,l],x=D0(S),C=D0(w),E=L0(S),k=L0(w),$=h_(d,{keepEmpty:!0}),O=void 0===c&&"horizontal"===f?"center":c,N=o("space",p),[_,I,R]=ez(N),M=m_(N,null==i?void 0:i.className,I,`${N}-${f}`,{[`${N}-rtl`]:"rtl"===a,[`${N}-align-${O}`]:O,[`${N}-gap-row-${S}`]:x,[`${N}-gap-col-${w}`]:C},s,u,R),P=m_(`${N}-item`,null!==(n=null==v?void 0:v.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item);let T=0;const j=$.map(((e,t)=>{var n,r;null!=e&&(T=t);const o=e&&e.key||`${P}-${t}`;return H.createElement(H0,{className:P,key:o,index:t,split:m,style:null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),A=H.useMemo((()=>({latestIndex:T})),[T]);if(0===$.length)return null;const z={};return g&&(z.flexWrap="wrap"),!C&&k&&(z.columnGap=w),!x&&E&&(z.rowGap=S),_(H.createElement("div",Object.assign({ref:t,className:M,style:Object.assign(Object.assign(Object.assign({},z),null==i?void 0:i.style),h)},y),H.createElement(F0,{value:A},j)))})),U0=V0;U0.Compact=az;const K0=e("o",U0);var q0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const X0=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=H.useContext(aP),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:c,onClick:s,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,overlay:g,trigger:v,align:b,open:y,onOpenChange:w,placement:S,getPopupContainer:x,href:C,icon:E=H.createElement(jx,null),title:k,buttonsRender:$=(e=>e),mouseEnterDelay:O,mouseLeaveDelay:N,overlayClassName:_,overlayStyle:I,destroyPopupOnHide:R,dropdownRender:M}=e,P=q0(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=n("dropdown",o),j=`${T}-button`,A={menu:p,arrow:m,autoFocus:h,align:b,disabled:l,trigger:l?[]:v,onOpenChange:w,getPopupContainer:x||t,mouseEnterDelay:O,mouseLeaveDelay:N,overlayClassName:_,overlayStyle:I,destroyPopupOnHide:R,dropdownRender:M},{compactSize:z,compactItemClassnames:D}=rz(T,r),L=m_(j,D,f);"overlay"in e&&(A.overlay=g),"open"in e&&(A.open=y),A.placement="placement"in e?S:"rtl"===r?"bottomLeft":"bottomRight";const B=H.createElement(rD,{type:i,danger:a,disabled:l,loading:c,onClick:s,htmlType:u,href:C,title:k},d),F=H.createElement(rD,{type:i,danger:a,icon:E}),[W,V]=$([B,F]);return H.createElement(K0.Compact,Object.assign({className:L,size:z,block:!0},P),W,H.createElement(Cq,Object.assign({},A),V))};X0.__ANT_BUTTON=!0;const G0=X0,Y0=Cq;Y0.Button=G0;const Q0=e("f",Y0);function Z0(e){const[t,n]=H.useState(e);return H.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const J0=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},e1=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${PI(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,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${PI(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),t1=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},n1=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},PP(e)),e1(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},t1(e,e.controlHeightSM)),"&-large":Object.assign({},t1(e,e.controlHeightLG))})}},r1=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},PP(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":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:s,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-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:TB,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},o1=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-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"}}}}},i1=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-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"}}}}},a1=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),l1=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:a1(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},c1=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:a1(e),[`@media (max-width: ${PI(e.screenXSMax)})`]:[l1(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:a1(e)}}],[`@media (max-width: ${PI(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:a1(e)}},[`@media (max-width: ${PI(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:a1(e)}},[`@media (max-width: ${PI(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:a1(e)}}}},s1=(e,t)=>KP(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),u1=tT("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=s1(e,n);return[n1(r),r1(r),J0(r),o1(r),i1(r),c1(r),XB(r),TB]}),(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})),{order:-1e3}),d1=[];function f1(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const p1=e=>{let{help:t,helpStatus:n,errors:r=d1,warnings:o=d1,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:c}=H.useContext(eB),s=`${c}-item-explain`,u=Pj(c),[d,f,p]=u1(c,u),m=H.useMemo((()=>BA(c)),[c]),h=Z0(r),g=Z0(o),v=H.useMemo((()=>null!=t?[f1(t,"help",n)]:[].concat(aI(h.map(((e,t)=>f1(e,"error","error",t)))),aI(g.map(((e,t)=>f1(e,"warning","warning",t)))))),[t,n,h,g]),b={};return a&&(b.id=`${a}_help`),d(H.createElement(VT,{motionDeadline:m.motionDeadline,motionName:`${c}-show-help`,visible:!!v.length,onVisibleChanged:l},(e=>{const{className:t,style:n}=e;return H.createElement("div",Object.assign({},b,{className:m_(s,t,p,u,i,f),style:n,role:"alert"}),H.createElement(ej,Object.assign({keys:v},BA(c),{motionName:`${c}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return H.createElement("div",{key:t,className:m_(o,{[`${s}-${r}`]:r}),style:i},n)})))})))},m1=["parentNode"],h1="form_item";function g1(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function v1(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:m1.includes(n)?`${h1}_${n}`:n}function b1(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 y1(e){return g1(e).join("_")}function w1(e){const[t]=WL(),n=H.useRef({}),r=H.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=y1(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=v1(g1(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(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((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(Nj(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of Nj(e,_j(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=y1(e);return n.current[t]}})),[e,t]);return[r]}var S1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const x1=(e,t)=>{const n=H.useContext(dP),{getPrefixCls:r,direction:o,form:i}=H.useContext(aP),{prefixCls:a,className:l,rootClassName:c,size:s,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:m,labelCol:h,wrapperCol:g,hideRequiredMark:v,layout:b="horizontal",scrollToFirstError:y,requiredMark:w,onFinishFailed:S,name:x,style:C,feedbackIcons:E,variant:k}=e,$=S1(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),O=YA(s),N=H.useContext(pM),_=H.useMemo((()=>void 0!==w?w:!v&&(!i||void 0===i.requiredMark||i.requiredMark)),[v,w,i]),I=null!=f?f:null==i?void 0:i.colon,R=r("form",a),M=Pj(R),[P,T,j]=u1(R,M),A=m_(R,`${R}-${b}`,{[`${R}-hide-required-mark`]:!1===_,[`${R}-rtl`]:"rtl"===o,[`${R}-${O}`]:O},j,M,T,null==i?void 0:i.className,l,c),[z]=w1(d),{__INTERNAL__:D}=z;D.name=x;const L=H.useMemo((()=>({name:x,labelAlign:p,labelCol:h,labelWrap:m,wrapperCol:g,vertical:"vertical"===b,colon:I,requiredMark:_,itemRef:D.itemRef,form:z,feedbackIcons:E})),[x,p,h,g,b,I,_,z,E]);H.useImperativeHandle(t,(()=>z));const B=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),z.scrollToField(t,n)}};return P(H.createElement(rB.Provider,{value:k},H.createElement(uP,{disabled:u},H.createElement(mP.Provider,{value:O},H.createElement(JL,{validateMessages:N},H.createElement(QL.Provider,{value:L},H.createElement(YL,Object.assign({id:x},$,{name:x,onFinishFailed:e=>{if(null==S||S(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void B(y,t);i&&void 0!==i.scrollToFirstError&&B(i.scrollToFirstError,t)}},form:z,style:Object.assign(Object.assign({},null==i?void 0:i.style),C),className:A}))))))))},C1=H.forwardRef(x1),E1=()=>{const{status:e,errors:t=[],warnings:n=[]}=H.useContext(tB);return{status:e,errors:t,warnings:n}};E1.Context=tB;const k1=E1,$1=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},O1=JP(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=s1(e,n);return[$1(r)]})),N1=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:c,help:s,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,m=H.useContext(QL),h=r||m.wrapperCol||{},g=m_(`${p}-control`,h.className),v=H.useMemo((()=>Object.assign({},m)),[m]);delete v.labelCol,delete v.wrapperCol;const b=H.createElement("div",{className:`${p}-control-input`},H.createElement("div",{className:`${p}-control-input-content`},o)),y=H.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||i.length||a.length?H.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},H.createElement(eB.Provider,{value:y},H.createElement(p1,{fieldId:u,errors:i,warnings:a,help:s,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&H.createElement("div",{style:{width:0,height:d}})):null,S={};u&&(S.id=`${u}_extra`);const x=c?H.createElement("div",Object.assign({},S,{className:`${p}-extra`}),c):null,C=l&&"pro_table_render"===l.mark&&l.render?l.render(e,{input:b,errorList:w,extra:x}):H.createElement(H.Fragment,null,b,w,x);return H.createElement(QL.Provider,{value:v},H.createElement(uJ,Object.assign({},h,{className:g}),C),H.createElement(O1,{prefixCls:t}))};var _1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const I1=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:c,tooltip:s}=e;var u;const[d]=EM("Form"),{vertical:f,labelAlign:p,labelCol:m,labelWrap:h,colon:g}=H.useContext(QL);if(!n)return null;const v=o||m||{},b=`${t}-item-label`,y=m_(b,"left"===(i||p)&&`${b}-left`,v.className,{[`${b}-wrap`]:!!h});let w=n;const S=!0===a||!1!==g&&!1!==a;S&&!f&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const x=function(e){return e?"object"!=typeof e||H.isValidElement(e)?{title:e}:e:null}(s);if(x){const{icon:e=H.createElement(QC,null)}=x,n=_1(x,["icon"]),r=H.createElement(nU,Object.assign({},n),H.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));w=H.createElement(H.Fragment,null,w,r)}const C="optional"===c,E="function"==typeof c;E?w=c(w,{required:!!l}):C&&!l&&(w=H.createElement(H.Fragment,null,w,H.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=bM.Form)||void 0===u?void 0:u.optional))));const k=m_({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:C||E,[`${t}-item-no-colon`]:!S});return H.createElement(uJ,Object.assign({},v,{className:y}),H.createElement("label",{htmlFor:r,className:k,title:"string"==typeof n?n:""},w))},R1={success:ZS,warning:Dx,error:lx,validating:SC};function M1(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:c}=e;const s=`${a}-item`,{feedbackIcons:u}=H.useContext(QL),d=b1(n,r,l,null,!!o,i),{isFormItemInput:f,status:p,hasFeedback:m,feedbackIcon:h}=H.useContext(tB),g=H.useMemo((()=>{var e;let t;if(o){const i=!0!==o&&o.icons||u,a=d&&(null===(e=null==i?void 0:i({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),l=d&&R1[d];t=!1!==a&&l?H.createElement("span",{className:m_(`${s}-feedback-icon`,`${s}-feedback-icon-${d}`)},a||H.createElement(l,null)):null}const i={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return c&&(i.status=(null!=d?d:p)||"",i.isFormItemInput=f,i.hasFeedback=!!(null!=o?o:m),i.feedbackIcon=void 0!==o?i.feedbackIcon:h),i}),[d,o,c,f,p]);return H.createElement(tB.Provider,{value:g},t)}var P1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function T1(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:c,meta:s,hasFeedback:u,hidden:d,children:f,fieldId:p,required:m,isRequired:h,onSubItemMetaChange:g}=e,v=P1(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),b=`${t}-item`,{requiredMark:y}=H.useContext(QL),w=H.useRef(null),S=Z0(a),x=Z0(l),C=null!=i,E=!!(C||a.length||l.length),k=!!w.current&&FA(w.current),[$,O]=H.useState(null);LI((()=>{if(E&&w.current){const e=getComputedStyle(w.current);O(parseInt(e.marginBottom,10))}}),[E,k]);const N=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return b1(e?S:s.errors,e?x:s.warnings,s,"",!!u,c)}(),_=m_(b,n,r,{[`${b}-with-help`]:C||S.length||x.length,[`${b}-has-feedback`]:N&&u,[`${b}-has-success`]:"success"===N,[`${b}-has-warning`]:"warning"===N,[`${b}-has-error`]:"error"===N,[`${b}-is-validating`]:"validating"===N,[`${b}-hidden`]:d});return H.createElement("div",{className:_,style:o,ref:w},H.createElement(mJ,Object.assign({className:`${b}-row`},oI(v,["_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"])),H.createElement(I1,Object.assign({htmlFor:p},e,{requiredMark:y,required:null!=m?m:h,prefixCls:t})),H.createElement(N1,Object.assign({},e,s,{errors:S,warnings:x,prefixCls:t,status:N,help:i,marginBottom:$,onErrorVisibleChanged:e=>{e||O(null)}}),H.createElement(ZL.Provider,{value:g},H.createElement(M1,{prefixCls:t,meta:s,errors:s.errors,warnings:s.warnings,hasFeedback:u,validateStatus:N},f)))),!!$&&H.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-$}}))}const j1=H.memo((e=>{let{children:t}=e;return t}),((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||"function"==typeof r||"function"==typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),A1=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:c,required:s,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:m,help:h}=e,{getPrefixCls:g}=H.useContext(aP),{name:v}=H.useContext(QL),b=function(e){if("function"==typeof e)return e;const t=h_(e);return t.length<=1?t[0]:t}(c),y="function"==typeof b,w=H.useContext(ZL),{validateTrigger:S}=H.useContext(BD),x=void 0!==p?p:S,C=!(null==t),E=g("form",i),k=Pj(E),[$,O,N]=u1(E,k);fM();const _=H.useContext(FD),I=H.useRef(),[R,M]=function(e){const[t,n]=H.useState(e),r=H.useRef(null),o=H.useRef([]),i=H.useRef(!1);return H.useEffect((()=>(i.current=!1,()=>{i.current=!0,fI.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=fI((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[P,T]=NP((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),j=(e,t)=>{M((n=>{const r=Object.assign({},n),o=[].concat(aI(e.name.slice(0,-1)),aI(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[A,z]=H.useMemo((()=>{const e=aI(P.errors),t=aI(P.warnings);return Object.values(R).forEach((n=>{e.push.apply(e,aI(n.errors||[])),t.push.apply(t,aI(n.warnings||[]))})),[e,t]}),[R,P.errors,P.warnings]),D=function(){const{itemRef:e}=H.useContext(QL),t=H.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=ik(e(n),o)),t.current.ref}}();function L(t,o,i){return n&&!m?H.createElement(M1,{prefixCls:E,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:A,warnings:z,noStyle:!0},t):H.createElement(T1,Object.assign({key:"row"},e,{className:m_(r,N,k,O),prefixCls:E,fieldId:o,isRequired:i,errors:A,warnings:z,meta:P,onSubItemMetaChange:j}),t)}if(!C&&!y&&!o)return $(L(b));let B={};return"string"==typeof u?B.label=u:t&&(B.label=String(t)),d&&(B=Object.assign(Object.assign({},B),d)),$(H.createElement(AL,Object.assign({},e,{messageVariables:B,trigger:f,validateTrigger:x,onMetaChange:e=>{const t=null==_?void 0:_.getKey(e.name);if(T(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==h&&w){let n=e.name;if(e.destroy)n=I.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(aI(r)),I.current=n}w(e,n)}}}),((n,r,i)=>{const c=g1(t).length&&r?r.name:[],u=v1(c,v),d=void 0!==s?s:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),p=Object.assign({},n);let m=null;if(Array.isArray(b)&&C)m=b;else if(y&&(!a&&!o||C));else if(!o||y||C)if(wj(b)){const t=Object.assign(Object.assign({},b.props),p);if(t.id||(t.id=u),h||A.length>0||z.length>0||e.extra){const n=[];(h||A.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}A.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),lk(b)&&(t.ref=D(c,b)),new Set([].concat(aI(g1(f)),aI(g1(x)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];null===(r=p[e])||void 0===r||(t=r).call.apply(t,[p].concat(l)),null===(i=(o=b.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(l))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=H.createElement(j1,{control:p,update:b,childProps:n},xj(b,t))}else m=y&&(a||o)&&!C?b(i):b;return L(m,u,d)})))};A1.useStatus=k1;const z1=A1;var D1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const L1=e=>{var{prefixCls:t,children:n}=e,r=D1(e,["prefixCls","children"]);const{getPrefixCls:o}=H.useContext(aP),i=o("form",t),a=H.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return H.createElement(zL,Object.assign({},r),((e,t,r)=>H.createElement(eB.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},B1=C1;function F1(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function H1(e){var t=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)}}B1.Item=z1,B1.List=L1,B1.ErrorList=p1,B1.useForm=w1,B1.useFormInstance=function(){const{form:e}=H.useContext(QL);return e},B1.useWatch=GL,B1.Provider=JL,B1.create=()=>{},e("n",B1);var W1=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],V1=H.createContext(null),U1=0;function K1(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=Iw(H.useState(n?"loading":"normal"),2),i=o[0],a=o[1],l=H.useRef(!1),c="error"===i;H.useEffect((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&a("error")})),function(){e=!1}}),[t]),H.useEffect((function(){n&&!l.current?a("loading"):c&&a("normal")}),[t]);var s=function(){a("normal")};return[function(e){l.current=!1,"loading"===i&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(l.current=!0,s())},c&&r?{src:r}:{onLoad:s,src:t},i]}function q1(e,t,n,r){var o=sd.unstable_batchedUpdates?function(e){sd.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var X1={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function G1(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return Pw({},e,i);if(t<0&&o<r)return Pw({},e,-i)}else if(t<0||o>r)return Pw({},e,t<0?i:-i);return{}}function Y1(e,t,n,r){var o=F1(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=rS(rS({},G1("x",n,e,i)),G1("y",r,t,a))),l}function Q1(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Z1(e,t,n,r,o,i,a){var l=o.rotate,c=o.scale,s=o.x,u=o.y,d=Iw(H.useState(!1),2),f=d[0],p=d[1],m=H.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),h=function(e){m.current=rS(rS({},m.current),e)};return H.useEffect((function(){var e;return n&&t&&(e=q1(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:f,onTouchStart:function(e){if(t){e.stopPropagation(),p(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?h({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):h({point1:{x:r[0].clientX-s,y:r[0].clientY-u},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=m.current,o=r.point1,l=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=Q1(e,n),i=Q1(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,l,s,u),f=Iw(d,2),p=f[0],g=f[1],v=Q1(s,u)/Q1(o,l);a(v,"touchZoom",p,g,!0),h({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(i({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),h({eventType:"move"}))},onTouchEnd:function(){if(n){if(f&&p(!1),h({eventType:"none"}),r>c)return i({x:0,y:0,scale:r},"touchZoom");var t=e.current.offsetWidth*c,o=e.current.offsetHeight*c,a=e.current.getBoundingClientRect(),s=a.left,u=a.top,d=l%180!=0,m=Y1(d?o:t,d?t:o,s,u);m&&i(rS({},m),"dragRebound")}}}}var J1=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,o=e.prefixCls,i=e.rootClassName,a=e.icons,l=e.countRender,c=e.showSwitch,s=e.showProgress,u=e.current,d=e.transform,f=e.count,p=e.scale,m=e.minScale,h=e.maxScale,g=e.closeIcon,v=e.onSwitchLeft,b=e.onSwitchRight,y=e.onClose,w=e.onZoomIn,S=e.onZoomOut,x=e.onRotateRight,C=e.onRotateLeft,E=e.onFlipX,k=e.onFlipY,$=e.toolbarRender,O=e.zIndex,N=H.useContext(V1),_=a.rotateLeft,I=a.rotateRight,R=a.zoomIn,M=a.zoomOut,P=a.close,T=a.left,j=a.right,A=a.flipX,z=a.flipY,D="".concat(o,"-operations-operation");H.useEffect((function(){var e=function(e){e.keyCode===Tj.ESC&&y()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var L=[{icon:z,onClick:k,type:"flipY"},{icon:A,onClick:E,type:"flipX"},{icon:_,onClick:C,type:"rotateLeft"},{icon:I,onClick:x,type:"rotateRight"},{icon:M,onClick:S,type:"zoomOut",disabled:p<=m},{icon:R,onClick:w,type:"zoomIn",disabled:p===h}].map((function(e){var t,n=e.icon,r=e.onClick,i=e.type,a=e.disabled;return H.createElement("div",{className:Aw(D,(t={},Pw(t,"".concat(o,"-operations-operation-").concat(i),!0),Pw(t,"".concat(o,"-operations-operation-disabled"),!!a),t)),onClick:r,key:i},n)})),B=H.createElement("div",{className:"".concat(o,"-operations")},L);return H.createElement(VT,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return H.createElement(SD,{open:!0,getContainer:null!=r?r:document.body},H.createElement("div",{className:Aw("".concat(o,"-operations-wrapper"),t,i),style:rS(rS({},n),{},{zIndex:O})},null===g?null:H.createElement("button",{className:"".concat(o,"-close"),onClick:y},g||P),c&&H.createElement(H.Fragment,null,H.createElement("div",{className:Aw("".concat(o,"-switch-left"),Pw({},"".concat(o,"-switch-left-disabled"),0===u)),onClick:v},T),H.createElement("div",{className:Aw("".concat(o,"-switch-right"),Pw({},"".concat(o,"-switch-right-disabled"),u===f-1)),onClick:b},j)),H.createElement("div",{className:"".concat(o,"-footer")},s&&H.createElement("div",{className:"".concat(o,"-progress")},l?l(u+1,f):"".concat(u+1," / ").concat(f)),$?$(B,rS({icons:{flipYIcon:L[0],flipXIcon:L[1],rotateLeftIcon:L[2],rotateRightIcon:L[3],zoomOutIcon:L[4],zoomInIcon:L[5]},actions:{onFlipY:k,onFlipX:E,onRotateLeft:C,onRotateRight:x,onZoomOut:S,onZoomIn:w},transform:d},N?{current:u,total:f}:{})):B)))}))},e2=["fallback","src","imgRef"],t2=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],n2=function(e){var t=e.fallback,n=e.src,r=e.imgRef,o=Tw(e,e2),i=Iw(K1({src:n,fallback:t}),2),a=i[0],l=i[1];return W.createElement("img",kw({ref:function(e){r.current=e,a(e)}},o,l))},r2=function(e){var t=e.prefixCls,n=e.src,r=e.alt,o=e.fallback,i=e.movable,a=void 0===i||i,l=e.onClose,c=e.visible,s=e.icons,u=void 0===s?{}:s,d=e.rootClassName,f=e.closeIcon,p=e.getContainer,m=e.current,h=void 0===m?0:m,g=e.count,v=void 0===g?1:g,b=e.countRender,y=e.scaleStep,w=void 0===y?.5:y,S=e.minScale,x=void 0===S?1:S,C=e.maxScale,E=void 0===C?50:C,k=e.transitionName,$=void 0===k?"zoom":k,O=e.maskTransitionName,N=void 0===O?"fade":O,_=e.imageRender,I=e.imgCommonProps,R=e.toolbarRender,M=e.onTransform,P=e.onChange,T=Tw(e,t2),j=H.useRef(),A=H.useContext(V1),z=A&&v>1,D=A&&v>=1,L=Iw(H.useState(!0),2),B=L[0],F=L[1],V=function(e,t,n,r){var o=H.useRef(null),i=H.useRef([]),a=Iw(H.useState(X1),2),l=a[0],c=a[1],s=function(e,t){null===o.current&&(i.current=[],o.current=fI((function(){c((function(e){var n=e;return i.current.forEach((function(e){n=rS(rS({},n),e)})),o.current=null,null==r||r({transform:n,action:t}),n}))}))),i.current.push(rS(rS({},l),e))};return{transform:l,resetTransform:function(e){c(X1),r&&!mI(X1,l)&&r({transform:X1,action:e})},updateTransform:s,dispatchZoomChange:function(r,o,i,a,c){var u=e.current,d=u.width,f=u.height,p=u.offsetWidth,m=u.offsetHeight,h=u.offsetLeft,g=u.offsetTop,v=r,b=l.scale*r;b>n?(b=n,v=n/l.scale):b<t&&(v=(b=c?b:t)/l.scale);var y=null!=i?i:innerWidth/2,w=null!=a?a:innerHeight/2,S=v-1,x=S*d*.5,C=S*f*.5,E=S*(y-l.x-h),k=S*(w-l.y-g),$=l.x-(E-x),O=l.y-(k-C);if(r<1&&1===b){var N=p*b,_=m*b,I=F1(),R=I.width,M=I.height;N<=R&&_<=M&&($=0,O=0)}s({x:$,y:O,scale:b},o)}}}(j,x,E,M),U=V.transform,K=V.resetTransform,q=V.updateTransform,X=V.dispatchZoomChange,G=function(e,t,n,r,o,i,a){var l=o.rotate,c=o.scale,s=o.x,u=o.y,d=Iw(H.useState(!1),2),f=d[0],p=d[1],m=H.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),h=function(e){n&&f&&i({x:e.pageX-m.current.diffX,y:e.pageY-m.current.diffY},"move")},g=function(){if(n&&f){p(!1);var t=m.current,r=t.transformX,o=t.transformY;if(s===r||u===o)return;var a=e.current.offsetWidth*c,d=e.current.offsetHeight*c,h=e.current.getBoundingClientRect(),g=h.left,v=h.top,b=l%180!=0,y=Y1(b?d:a,b?a:d,g,v);y&&i(rS({},y),"dragRebound")}};return H.useEffect((function(){var e,n,r,o;if(t){r=q1(window,"mouseup",g,!1),o=q1(window,"mousemove",h,!1);try{window.top!==window.self&&(e=q1(window.top,"mouseup",g,!1),n=q1(window.top,"mousemove",h,!1))}catch(i){}}return function(){var t,i,a,l;null===(t=r)||void 0===t||t.remove(),null===(i=o)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=n)||void 0===l||l.remove()}}),[n,f,s,u,l,t]),{isMoving:f,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),m.current={diffX:e.pageX-s,diffY:e.pageY-u,transformX:s,transformY:u},p(!0))},onMouseMove:h,onMouseUp:g,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),o=1+Math.min(t,1)*r;e.deltaY>0&&(o=1/o),a(o,"wheel",e.clientX,e.clientY)}}}}(j,a,c,w,U,q,X),Y=G.isMoving,Q=G.onMouseDown,Z=G.onWheel,J=Z1(j,a,c,x,U,q,X),ee=J.isTouching,te=J.onTouchStart,ne=J.onTouchMove,re=J.onTouchEnd,oe=U.rotate,ie=U.scale,ae=Aw(Pw({},"".concat(t,"-moving"),Y));H.useEffect((function(){B||F(!0)}),[B]);var le=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),h>0&&(F(!1),K("prev"),null==P||P(h-1,h))},ce=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),h<v-1&&(F(!1),K("next"),null==P||P(h+1,h))},se=function(e){c&&z&&(e.keyCode===Tj.LEFT?le():e.keyCode===Tj.RIGHT&&ce())};H.useEffect((function(){var e=q1(window,"keydown",se,!1);return function(){e.remove()}}),[c,z,h]);var ue=W.createElement(n2,kw({},I,{width:e.width,height:e.height,imgRef:j,className:"".concat(t,"-img"),alt:r,style:{transform:"translate3d(".concat(U.x,"px, ").concat(U.y,"px, 0) scale3d(").concat(U.flipX?"-":"").concat(ie,", ").concat(U.flipY?"-":"").concat(ie,", 1) rotate(").concat(oe,"deg)"),transitionDuration:(!B||ee)&&"0s"},fallback:o,src:n,onWheel:Z,onMouseDown:Q,onDoubleClick:function(e){c&&(1!==ie?q({x:0,y:0,scale:1},"doubleClick"):X(1+w,"doubleClick",e.clientX,e.clientY))},onTouchStart:te,onTouchMove:ne,onTouchEnd:re,onTouchCancel:re}));return W.createElement(W.Fragment,null,W.createElement(TD,kw({transitionName:$,maskTransitionName:N,closable:!1,keyboard:!0,prefixCls:t,onClose:l,visible:c,classNames:{wrapper:ae},rootClassName:d,getContainer:p},T,{afterClose:function(){K("close")}}),W.createElement("div",{className:"".concat(t,"-img-wrapper")},_?_(ue,rS({transform:U},A?{current:h}:{})):ue)),W.createElement(J1,{visible:c,transform:U,maskTransitionName:N,closeIcon:f,getContainer:p,prefixCls:t,rootClassName:d,icons:u,countRender:b,showSwitch:z,showProgress:D,current:h,count:v,scale:ie,minScale:x,maxScale:E,toolbarRender:R,onSwitchLeft:le,onSwitchRight:ce,onZoomIn:function(){X(1+w,"zoomIn")},onZoomOut:function(){X(1/(1+w),"zoomOut")},onRotateRight:function(){q({rotate:oe+90},"rotateRight")},onRotateLeft:function(){q({rotate:oe-90},"rotateLeft")},onFlipX:function(){q({flipX:!U.flipX},"flipX")},onFlipY:function(){q({flipY:!U.flipY},"flipY")},onClose:l,zIndex:void 0!==T.zIndex?T.zIndex+1:void 0}))},o2=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],i2=["src"],a2=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],l2=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],c2=function(e){var t=e.src,n=e.alt,r=e.onPreviewClose,o=e.prefixCls,i=void 0===o?"rc-image":o,a=e.previewPrefixCls,l=void 0===a?"".concat(i,"-preview"):a,c=e.placeholder,s=e.fallback,u=e.width,d=e.height,f=e.style,p=e.preview,m=void 0===p||p,h=e.className,g=e.onClick,v=e.onError,b=e.wrapperClassName,y=e.wrapperStyle,w=e.rootClassName,S=Tw(e,a2),x=c&&!0!==c,C="object"===Rw(m)?m:{},E=C.src,k=C.visible,$=void 0===k?void 0:k,O=C.onVisibleChange,N=void 0===O?r:O,_=C.getContainer,I=void 0===_?void 0:_,R=C.mask,M=C.maskClassName,P=C.movable,T=C.icons,j=C.scaleStep,A=C.minScale,z=C.maxScale,D=C.imageRender,L=C.toolbarRender,B=Tw(C,l2),F=null!=E?E:t,W=Iw(IP(!!$,{value:$,onChange:N}),2),V=W[0],U=W[1],K=Iw(K1({src:t,isCustomPlaceholder:x,fallback:s}),3),q=K[0],X=K[1],G=K[2],Y=Iw(H.useState(null),2),Q=Y[0],Z=Y[1],J=H.useContext(V1),ee=!!m,te=Aw(i,b,w,Pw({},"".concat(i,"-error"),"error"===G)),ne=H.useMemo((function(){var t={};return W1.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),W1.map((function(t){return e[t]}))),re=function(e,t){var n=Iw(H.useState((function(){return String(U1+=1)})),1)[0],r=H.useContext(V1),o={data:t,canPreview:e};return H.useEffect((function(){if(r)return r.register(n,o)}),[]),H.useEffect((function(){r&&r.register(n,o)}),[e,t]),n}(ee,H.useMemo((function(){return rS(rS({},ne),{},{src:F})}),[F,ne]));return H.createElement(H.Fragment,null,H.createElement("div",kw({},S,{className:te,onClick:ee?function(e){var t=H1(e.target),n=t.left,r=t.top;J?J.onPreview(re,n,r):(Z({x:n,y:r}),U(!0)),null==g||g(e)}:g,style:rS({width:u,height:d},y)}),H.createElement("img",kw({},ne,{className:Aw("".concat(i,"-img"),Pw({},"".concat(i,"-img-placeholder"),!0===c),h),style:rS({height:d},f),ref:q},X,{width:u,height:d,onError:v})),"loading"===G&&H.createElement("div",{"aria-hidden":"true",className:"".concat(i,"-placeholder")},c),R&&ee&&H.createElement("div",{className:Aw("".concat(i,"-mask"),M),style:{display:"none"===(null==f?void 0:f.display)?"none":void 0}},R)),!J&&ee&&H.createElement(r2,kw({"aria-hidden":!V,visible:V,prefixCls:l,onClose:function(){U(!1),Z(null)},mousePosition:Q,src:F,alt:n,fallback:s,getContainer:I,icons:T,movable:P,scaleStep:j,minScale:A,maxScale:z,rootClassName:w,imageRender:D,imgCommonProps:ne,toolbarRender:L},B)))};c2.PreviewGroup=function(e){var t,n=e.previewPrefixCls,r=void 0===n?"rc-image-preview":n,o=e.children,i=e.icons,a=void 0===i?{}:i,l=e.items,c=e.preview,s=e.fallback,u="object"===Rw(c)?c:{},d=u.visible,f=u.onVisibleChange,p=u.getContainer,m=u.current,h=u.movable,g=u.minScale,v=u.maxScale,b=u.countRender,y=u.closeIcon,w=u.onChange,S=u.onTransform,x=u.toolbarRender,C=u.imageRender,E=Tw(u,o2),k=function(e){var t=Iw(H.useState({}),2),n=t[0],r=t[1],o=H.useCallback((function(e,t){return r((function(n){return rS(rS({},n),{},Pw({},e,t))})),function(){r((function(t){var n=rS({},t);return delete n[e],n}))}}),[]),i=H.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(aI(W1)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(n).reduce((function(e,t){var r=n[t],o=r.canPreview,i=r.data;return o&&e.push({data:i,id:t}),e}),[])}),[e,n]);return[i,o]}(l),$=Iw(k,2),O=$[0],N=$[1],_=Iw(IP(0,{value:m}),2),I=_[0],R=_[1],M=Iw(H.useState(!1),2),P=M[0],T=M[1],j=(null===(t=O[I])||void 0===t?void 0:t.data)||{},A=j.src,z=Tw(j,i2),D=Iw(IP(!!d,{value:d,onChange:function(e,t){null==f||f(e,t,I)}}),2),L=D[0],B=D[1],F=Iw(H.useState(null),2),W=F[0],V=F[1],U=H.useCallback((function(e,t,n){var r=O.findIndex((function(t){return t.id===e}));B(!0),V({x:t,y:n}),R(r<0?0:r),T(!0)}),[O]);H.useEffect((function(){L?P||R(0):T(!1)}),[L]);var K=H.useMemo((function(){return{register:N,onPreview:U}}),[N,U]);return H.createElement(V1.Provider,{value:K},o,H.createElement(r2,kw({"aria-hidden":!L,movable:h,visible:L,prefixCls:r,closeIcon:y,onClose:function(){B(!1),V(null)},mousePosition:W,imgCommonProps:z,src:A,fallback:s,icons:a,minScale:g,maxScale:v,getContainer:p,current:I,count:O.length,countRender:b,onTransform:S,toolbarRender:x,imageRender:C,onChange:function(e,t){R(e),null==w||w(e,t)}},E)))},c2.displayName="Image";const s2=e=>({position:e||"absolute",inset:0}),u2=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new XM("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},MP),{padding:`0 ${PI(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},d2=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new XM(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${PI(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},f2=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new XM(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},p2=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},s2()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},s2()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[d2(e),f2(e)]}]},m2=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},u2(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},s2())}}},h2=e=>{const{previewCls:t}=e;return{[`${t}-root`]:qB(e,"zoom"),"&":hB(e,!0)}},g2=tT("Image",(e=>{const t=`${e.componentCls}-preview`,n=KP(e,{previewCls:t,modalMaskBg:new XM("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[m2(n),p2(n),YB(KP(n,{componentCls:t})),h2(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new XM(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new XM(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new XM(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));var v2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const b2={rotateLeft:H.createElement(iE,null),rotateRight:H.createElement(cE,null),zoomIn:H.createElement(_E,null),zoomOut:H.createElement(ME,null),close:H.createElement(ux,null),left:H.createElement(bC,null),right:H.createElement(nE,null),flipX:H.createElement(gE,null),flipY:H.createElement(gE,{rotate:90})},y2=e=>{var{previewPrefixCls:t,preview:n}=e,r=v2(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=H.useContext(aP),i=o("image",t),a=`${i}-preview`,l=o(),c=Pj(i),[s,u,d]=g2(i,c),[f]=Yj("ImagePreview","object"==typeof n?n.zIndex:void 0),p=H.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=m_(u,d,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:LA(l,"zoom",t.transitionName),maskTransitionName:LA(l,"fade",t.maskTransitionName),rootClassName:r,zIndex:f})}),[n]);return s(H.createElement(c2.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:b2},r)))};var w2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const S2=e=>{var t;const{prefixCls:n,preview:r,className:o,rootClassName:i,style:a}=e,l=w2(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:s=bM,getPopupContainer:u,image:d}=H.useContext(aP),f=c("image",n),p=c(),m=s.Image||bM.Image,h=Pj(f),[g,v,b]=g2(f,h),y=m_(i,v,b,h),w=m_(o,v,null==d?void 0:d.className),[S]=Yj("ImagePreview","object"==typeof r?r.zIndex:void 0),x=H.useMemo((()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},{getContainer:n,closeIcon:o}=t,i=w2(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:H.createElement("div",{className:`${f}-mask-info`},H.createElement(Vx,null),null==m?void 0:m.preview),icons:b2},i),{getContainer:null!=n?n:u,transitionName:LA(p,"zoom",t.transitionName),maskTransitionName:LA(p,"fade",t.maskTransitionName),zIndex:S,closeIcon:null!=o?o:null===(e=null==d?void 0:d.preview)||void 0===e?void 0:e.closeIcon})}),[r,m,null===(t=null==d?void 0:d.preview)||void 0===t?void 0:t.closeIcon]),C=Object.assign(Object.assign({},null==d?void 0:d.style),a);return g(H.createElement(c2,Object.assign({prefixCls:f,preview:x,rootClassName:y,className:w,style:C},l)))};S2.PreviewGroup=y2,e("a8",S2);const x2=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const r=n[t];void 0!==r&&(e[t]=r)}))}return e};var C2={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:"页码"},E2=["10","20","50","100"],k2=function(e){var t=e.pageSizeOptions,n=void 0===t?E2:t,r=e.locale,o=e.changeSize,i=e.pageSize,a=e.goButton,l=e.quickGo,c=e.rootPrefixCls,s=e.selectComponentClass,u=e.selectPrefixCls,d=e.disabled,f=e.buildOptionText,p=Iw(W.useState(""),2),m=p[0],h=p[1],g=function(){return!m||Number.isNaN(m)?void 0:Number(m)},v="function"==typeof f?f:function(e){return"".concat(e," ").concat(r.items_per_page)},b=function(e){""!==m&&(e.keyCode!==Tj.ENTER&&"click"!==e.type||(h(""),null==l||l(g())))},y="".concat(c,"-options");if(!o&&!l)return null;var w=null,S=null,x=null;if(o&&s){var C=(n.some((function(e){return e.toString()===i.toString()}))?n:n.concat([i.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return W.createElement(s.Option,{key:t,value:e.toString()},v(e))}));w=W.createElement(s,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(y,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||n[0]).toString(),onChange:function(e){null==o||o(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},C)}return l&&(a&&(x="boolean"==typeof a?W.createElement("button",{type:"button",onClick:b,onKeyUp:b,disabled:d,className:"".concat(y,"-quick-jumper-button")},r.jump_to_confirm):W.createElement("span",{onClick:b,onKeyUp:b},a)),S=W.createElement("div",{className:"".concat(y,"-quick-jumper")},r.jump_to,W.createElement("input",{disabled:d,type:"text",value:m,onChange:function(e){h(e.target.value)},onKeyUp:b,onBlur:function(e){a||""===m||(h(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(g()))},"aria-label":r.page}),r.page,x)),W.createElement("li",{className:y},w,S)},$2=function(e){var t,n=e.rootPrefixCls,r=e.page,o=e.active,i=e.className,a=e.showTitle,l=e.onClick,c=e.onKeyPress,s=e.itemRender,u="".concat(n,"-item"),d=Aw(u,"".concat(u,"-").concat(r),(Pw(t={},"".concat(u,"-active"),o),Pw(t,"".concat(u,"-disabled"),!r),t),i),f=s(r,"page",W.createElement("a",{rel:"nofollow"},r));return f?W.createElement("li",{title:a?String(r):null,className:d,onClick:function(){l(r)},onKeyDown:function(e){c(e,l,r)},tabIndex:0},f):null},O2=function(e,t,n){return n};function N2(){}function _2(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function I2(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var R2=function(e){var t,n=e.prefixCls,r=void 0===n?"rc-pagination":n,o=e.selectPrefixCls,i=void 0===o?"rc-select":o,a=e.className,l=e.selectComponentClass,c=e.current,s=e.defaultCurrent,u=void 0===s?1:s,d=e.total,f=void 0===d?0:d,p=e.pageSize,m=e.defaultPageSize,h=void 0===m?10:m,g=e.onChange,v=void 0===g?N2:g,b=e.hideOnSinglePage,y=e.showPrevNextJumpers,w=void 0===y||y,S=e.showQuickJumper,x=e.showLessItems,C=e.showTitle,E=void 0===C||C,k=e.onShowSizeChange,$=void 0===k?N2:k,O=e.locale,N=void 0===O?C2:O,_=e.style,I=e.totalBoundaryShowSizeChanger,R=void 0===I?50:I,M=e.disabled,P=e.simple,T=e.showTotal,j=e.showSizeChanger,A=e.pageSizeOptions,z=e.itemRender,D=void 0===z?O2:z,L=e.jumpPrevIcon,B=e.jumpNextIcon,F=e.prevIcon,V=e.nextIcon,U=W.useRef(null),K=Iw(IP(10,{value:p,defaultValue:h}),2),q=K[0],X=K[1],G=IP(1,{value:c,defaultValue:u,postState:function(e){return Math.max(1,Math.min(e,I2(void 0,q,f)))}}),Y=Iw(G,2),Q=Y[0],Z=Y[1],J=Iw(W.useState(Q),2),ee=J[0],te=J[1];H.useEffect((function(){te(Q)}),[Q]);var ne=Math.max(1,Q-(x?3:5)),re=Math.min(I2(void 0,q,f),Q+(x?3:5));function oe(t,n){var o=t||W.createElement("button",{type:"button","aria-label":n,className:"".concat(r,"-item-link")});return"function"==typeof t&&(o=W.createElement(t,rS({},e))),o}function ie(e){var t=e.target.value,n=I2(void 0,q,f);return""===t?t:Number.isNaN(Number(t))?ee:t>=n?n:Number(t)}var ae=f>q&&S;function le(e){var t=ie(e);switch(t!==ee&&te(t),e.keyCode){case Tj.ENTER:ce(t);break;case Tj.UP:ce(t-1);break;case Tj.DOWN:ce(t+1)}}function ce(e){if(function(e){return _2(e)&&e!==Q&&_2(f)&&f>0}(e)&&!M){var t=I2(void 0,q,f),n=e;return e>t?n=t:e<1&&(n=1),n!==ee&&te(n),Z(n),null==v||v(n,q),n}return Q}var se=Q>1,ue=Q<I2(void 0,q,f),de=null!=j?j:f>R;function fe(){se&&ce(Q-1)}function pe(){ue&&ce(Q+1)}function me(){ce(ne)}function he(){ce(re)}function ge(e,t){if("Enter"===e.key||e.charCode===Tj.ENTER||e.keyCode===Tj.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function ve(e){"click"!==e.type&&e.keyCode!==Tj.ENTER||ce(ee)}var be=null,ye=yj(e,{aria:!0,data:!0}),we=T&&W.createElement("li",{className:"".concat(r,"-total-text")},T(f,[0===f?0:(Q-1)*q+1,Q*q>f?f:Q*q])),Se=null,xe=I2(void 0,q,f);if(b&&f<=q)return null;var Ce=[],Ee={rootPrefixCls:r,onClick:ce,onKeyPress:ge,showTitle:E,itemRender:D,page:-1},ke=Q-1>0?Q-1:0,$e=Q+1<xe?Q+1:xe,Oe=S&&S.goButton,Ne=Oe,_e=null;P&&(Oe&&(Ne="boolean"==typeof Oe?W.createElement("button",{type:"button",onClick:ve,onKeyUp:ve},N.jump_to_confirm):W.createElement("span",{onClick:ve,onKeyUp:ve},Oe),Ne=W.createElement("li",{title:E?"".concat(N.jump_to).concat(Q,"/").concat(xe):null,className:"".concat(r,"-simple-pager")},Ne)),_e=W.createElement("li",{title:E?"".concat(Q,"/").concat(xe):null,className:"".concat(r,"-simple-pager")},W.createElement("input",{type:"text",value:ee,disabled:M,onKeyDown:function(e){e.keyCode!==Tj.UP&&e.keyCode!==Tj.DOWN||e.preventDefault()},onKeyUp:le,onChange:le,onBlur:function(e){ce(ie(e))},size:3}),W.createElement("span",{className:"".concat(r,"-slash")},"/"),xe));var Ie=x?1:2;if(xe<=3+2*Ie){xe||Ce.push(W.createElement($2,kw({},Ee,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Re=1;Re<=xe;Re+=1)Ce.push(W.createElement($2,kw({},Ee,{key:Re,page:Re,active:Q===Re})))}else{var Me=x?N.prev_3:N.prev_5,Pe=x?N.next_3:N.next_5,Te=D(ne,"jump-prev",oe(L,"prev page")),je=D(re,"jump-next",oe(B,"next page"));w&&(be=Te?W.createElement("li",{title:E?Me:null,key:"prev",onClick:me,tabIndex:0,onKeyDown:function(e){ge(e,me)},className:Aw("".concat(r,"-jump-prev"),Pw({},"".concat(r,"-jump-prev-custom-icon"),!!L))},Te):null,Se=je?W.createElement("li",{title:E?Pe:null,key:"next",onClick:he,tabIndex:0,onKeyDown:function(e){ge(e,he)},className:Aw("".concat(r,"-jump-next"),Pw({},"".concat(r,"-jump-next-custom-icon"),!!B))},je):null);var Ae=Math.max(1,Q-Ie),ze=Math.min(Q+Ie,xe);Q-1<=Ie&&(ze=1+2*Ie),xe-Q<=Ie&&(Ae=xe-2*Ie);for(var De=Ae;De<=ze;De+=1)Ce.push(W.createElement($2,kw({},Ee,{key:De,page:De,active:Q===De})));if(Q-1>=2*Ie&&3!==Q&&(Ce[0]=W.cloneElement(Ce[0],{className:Aw("".concat(r,"-item-after-jump-prev"),Ce[0].props.className)}),Ce.unshift(be)),xe-Q>=2*Ie&&Q!==xe-2){var Le=Ce[Ce.length-1];Ce[Ce.length-1]=W.cloneElement(Le,{className:Aw("".concat(r,"-item-before-jump-next"),Le.props.className)}),Ce.push(Se)}1!==Ae&&Ce.unshift(W.createElement($2,kw({},Ee,{key:1,page:1}))),ze!==xe&&Ce.push(W.createElement($2,kw({},Ee,{key:xe,page:xe})))}var Be=function(e){var t=D(e,"prev",oe(F,"prev page"));return W.isValidElement(t)?W.cloneElement(t,{disabled:!se}):t}(ke);if(Be){var Fe=!se||!xe;Be=W.createElement("li",{title:E?N.prev_page:null,onClick:fe,tabIndex:Fe?null:0,onKeyDown:function(e){ge(e,fe)},className:Aw("".concat(r,"-prev"),Pw({},"".concat(r,"-disabled"),Fe)),"aria-disabled":Fe},Be)}var He,We,Ve=function(e){var t=D(e,"next",oe(V,"next page"));return W.isValidElement(t)?W.cloneElement(t,{disabled:!ue}):t}($e);Ve&&(P?(He=!ue,We=se?0:null):We=(He=!ue||!xe)?null:0,Ve=W.createElement("li",{title:E?N.next_page:null,onClick:pe,tabIndex:We,onKeyDown:function(e){ge(e,pe)},className:Aw("".concat(r,"-next"),Pw({},"".concat(r,"-disabled"),He)),"aria-disabled":He},Ve));var Ue=Aw(r,a,(Pw(t={},"".concat(r,"-simple"),P),Pw(t,"".concat(r,"-disabled"),M),t));return W.createElement("ul",kw({className:Ue,style:_,ref:U},ye),we,Be,P?_e:Ce,Ve,W.createElement(k2,{locale:N,rootPrefixCls:r,disabled:M,selectComponentClass:l,selectPrefixCls:i,changeSize:de?function(e){var t=I2(e,q,f),n=Q>t&&0!==t?t:Q;X(e),te(n),null==$||$(Q,e),Z(n),null==v||v(n,e)}:null,pageSize:q,pageSizeOptions:A,quickGo:ae?ce:null,goButton:Ne}))};const M2=e=>H.createElement(pV,Object.assign({},e,{showSearch:!0,size:"small"})),P2=e=>H.createElement(pV,Object.assign({},e,{showSearch:!0,size:"middle"}));M2.Option=pV.Option,P2.Option=pV.Option;const T2=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","&: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}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},j2=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:PI(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:PI(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:PI(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:PI(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:PI(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:PI(e.itemSizeSM),input:Object.assign(Object.assign({},PY(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},A2=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:PI(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:PI(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${PI(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${PI(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:`${PI(e.inputOutlineOffset)} 0 ${PI(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},z2=e=>{const{componentCls:t}=e;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,fontFamily:"Arial, Helvetica, sans-serif",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:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${PI(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",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:`${PI(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.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:PI(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},TY(e)),wY(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},yY(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},D2=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:PI(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${PI(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${PI(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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},L2=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},PP(e)),{"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:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:PI(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),D2(e)),z2(e)),A2(e)),j2(e)),T2(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"}}},B2=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},zP(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},AP(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},AP(e))}}}},F2=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},vY(e)),H2=e=>KP(e,{inputOutlineOffset:0,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.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},gY(e)),W2=tT("Pagination",(e=>{const t=H2(e);return[L2(t),B2(t)]}),F2),V2=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &: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:not(${t}-mini)`]:{[`${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:`${PI(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}}}}},U2=JP(["Pagination","bordered"],(e=>{const t=H2(e);return[V2(t)]}),F2);var K2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const q2=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:l,selectComponentClass:c,responsive:s,showSizeChanger:u}=e,d=K2(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=yV(s),[,p]=$P(),{getPrefixCls:m,direction:h,pagination:g={}}=H.useContext(aP),v=m("pagination",t),[b,y,w]=W2(v),S=null!=u?u:g.showSizeChanger,x=H.useMemo((()=>{const e=H.createElement("span",{className:`${v}-item-ellipsis`},"•••");return{prevIcon:H.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},"rtl"===h?H.createElement(nE,null):H.createElement(bC,null)),nextIcon:H.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},"rtl"===h?H.createElement(bC,null):H.createElement(nE,null)),jumpPrevIcon:H.createElement("a",{className:`${v}-item-link`},H.createElement("div",{className:`${v}-item-container`},"rtl"===h?H.createElement(Ex,{className:`${v}-item-link-icon`}):H.createElement(Sx,{className:`${v}-item-link-icon`}),e)),jumpNextIcon:H.createElement("a",{className:`${v}-item-link`},H.createElement("div",{className:`${v}-item-container`},"rtl"===h?H.createElement(Sx,{className:`${v}-item-link-icon`}):H.createElement(Ex,{className:`${v}-item-link-icon`}),e))}}),[h,v]),[C]=EM("Pagination",mM),E=Object.assign(Object.assign({},C),l),k=YA(a),$="small"===k||!(!f||k||!s),O=m("select",n),N=m_({[`${v}-mini`]:$,[`${v}-rtl`]:"rtl"===h,[`${v}-bordered`]:p.wireframe},null==g?void 0:g.className,r,o,y,w),_=Object.assign(Object.assign({},null==g?void 0:g.style),i);return b(H.createElement(H.Fragment,null,p.wireframe&&H.createElement(U2,{prefixCls:v}),H.createElement(R2,Object.assign({},x,d,{style:_,prefixCls:v,selectPrefixCls:O,className:N,selectComponentClass:c||($?M2:P2),locale:E,showSizeChanger:S}))))},X2=new tM("antSpinMove",{to:{opacity:1}}),G2=new tM("antRotate",{to:{transform:"rotate(405deg)"}}),Y2=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},PP(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${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"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:X2,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"}},"&-spin":{transform:"rotate(45deg)",animationName:G2,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Q2=tT("Spin",(e=>{const t=KP(e,{spinDotDefault:e.colorTextDescription});return[Y2(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));var Z2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let J2=null;const e4=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:l,wrapperClassName:c,style:s,children:u,fullscreen:d=!1}=e,f=Z2(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:p}=H.useContext(aP),m=p("spin",t),[h,g,v]=Q2(m),[b,y]=H.useState((()=>n&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,r)));H.useEffect((()=>{if(n){const e=_Z(r,(()=>{y(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}y(!1)}),[r,n]);const w=H.useMemo((()=>void 0!==u&&!d),[u,d]),{direction:S,spin:x}=H.useContext(aP),C=m_(m,null==x?void 0:x.className,{[`${m}-sm`]:"small"===a,[`${m}-lg`]:"large"===a,[`${m}-spinning`]:b,[`${m}-show-text`]:!!l,[`${m}-fullscreen`]:d,[`${m}-fullscreen-show`]:d&&b,[`${m}-rtl`]:"rtl"===S},o,i,g,v),E=m_(`${m}-container`,{[`${m}-blur`]:b}),k=oI(f,["indicator"]),$=Object.assign(Object.assign({},null==x?void 0:x.style),s),O=H.createElement("div",Object.assign({},k,{style:$,className:C,"aria-live":"polite","aria-busy":b}),function(e,t){const{indicator:n}=t,r=`${e}-dot`;return null===n?null:wj(n)?xj(n,{className:m_(n.props.className,r)}):wj(J2)?xj(J2,{className:m_(J2.props.className,r)}):H.createElement("span",{className:m_(r,`${e}-dot-spin`)},H.createElement("i",{className:`${e}-dot-item`,key:1}),H.createElement("i",{className:`${e}-dot-item`,key:2}),H.createElement("i",{className:`${e}-dot-item`,key:3}),H.createElement("i",{className:`${e}-dot-item`,key:4}))}(m,e),l&&(w||d)?H.createElement("div",{className:`${m}-text`},l):null);return h(w?H.createElement("div",Object.assign({},k,{className:m_(`${m}-nested-loading`,c,g,v)}),b&&H.createElement("div",{key:"loading"},O),H.createElement("div",{className:E,key:"container"},u)):O)};e4.setDefaultIndicator=e=>{J2=e};const t4=e("S",e4);let n4=null,r4=e=>e(),o4=[],i4={};function a4(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=i4,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const l4=W.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=H.useContext(aP),i=i4.prefixCls||o("message"),a=H.useContext(OF),[l,c]=uA(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return W.useImperativeHandle(t,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),l[t].apply(l,arguments)}})),{instance:e,sync:r}})),c})),c4=W.forwardRef(((e,t)=>{const[n,r]=W.useState(a4),o=()=>{r(a4)};W.useEffect(o,[]);const i=dj(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),s=W.createElement(l4,{ref:t,sync:o,messageConfig:n});return W.createElement(mj,{prefixCls:a,iconPrefixCls:l,theme:c},i.holderRender?i.holderRender(s):s)}));function s4(){if(!n4){const e=document.createDocumentFragment(),t={fragment:e};return n4=t,void r4((()=>{_A(W.createElement(c4,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,s4())}))}}),e)}))}n4.instance&&(o4.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":r4((()=>{const t=n4.instance.open(Object.assign(Object.assign({},i4),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":r4((()=>{null==n4||n4.instance.destroy(e.key)}));break;default:r4((()=>{var n;const r=(n=n4.instance)[t].apply(n,aI(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),o4=[])}const u4={open:function(e){const t=rA((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return o4.push(r),()=>{n?r4((()=>{n()})):r.skipped=!0}}));return s4(),t},destroy:function(e){o4.push({type:"destroy",key:e}),s4()},config:function(e){i4=Object.assign(Object.assign({},i4),e),r4((()=>{var e;null===(e=null==n4?void 0:n4.sync)||void 0===e||e.call(n4)}))},useMessage:function(e){return uA(e)},_InternalPanelDoNotUseOrYouWillBeFired:nA};["success","info","warning","error","loading"].forEach((e=>{u4[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){const n=rA((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return o4.push(o),()=>{r?r4((()=>{r()})):o.skipped=!0}}));return s4(),n}(e,n)}})),e("w",u4);var d4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const f4=NF((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:c}=e,s=d4(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=H.useContext(aP),d=u(),f=t||u("modal"),p=Pj(d),[m,h,g]=tF(f,p),v=`${f}-confirm`;let b={};return b=i?{closable:null!=o&&o,title:"",footer:"",children:H.createElement(sF,Object.assign({},e,{prefixCls:f,confirmPrefixCls:v,rootPrefixCls:d,content:l}))}:{closable:null==o||o,title:a,footer:null!==c&&H.createElement(sB,Object.assign({},e)),children:l},m(H.createElement(ID,Object.assign({prefixCls:f,className:m_(h,`${f}-pure-panel`,i&&v,i&&`${v}-${i}`,n,g,p)},s,{closeIcon:cB(f,r),closable:o},b)))}));function p4(e){return gF(vF(e))}const m4=iF;m4.useModal=function(){const e=H.useRef(null),[t,n]=H.useState([]);H.useEffect((()=>{t.length&&(aI(t).forEach((e=>{e()})),n([]))}),[t]);const r=H.useCallback((t=>function(r){var o;kF+=1;const i=H.createRef();let a;const l=new Promise((e=>{a=e}));let c,s=!1;const u=H.createElement(EF,{key:`modal-${kF}`,config:t(r),ref:i,afterClose:()=>{null==c||c()},isSilent:()=>s,onConfirm:e=>{a(e)}});c=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),c&&fF.push(c);const d={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(aI(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(aI(e),[t])))},then:e=>(s=!0,l.then(e))};return d}),[]);return[H.useMemo((()=>({info:r(bF),success:r(yF),error:r(wF),warning:r(vF),confirm:r(SF)})),[]),H.createElement($F,{key:"modal-holder",ref:e})]},m4.info=function(e){return gF(bF(e))},m4.success=function(e){return gF(yF(e))},m4.error=function(e){return gF(wF(e))},m4.warning=p4,m4.warn=p4,m4.confirm=function(e){return gF(SF(e))},m4.destroyAll=function(){for(;fF.length;){const e=fF.pop();e&&e()}},m4.config=function(e){let{rootPrefixCls:t}=e;pF=t},m4._InternalPanelDoNotUseOrYouWillBeFired=f4,e("v",m4);var h4={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},g4=0,v4=oS();const b4=function(e){var t=Iw(H.useState(),2),n=t[0],r=t[1];return H.useEffect((function(){var e;r("rc_progress_".concat((v4?(e=g4,g4+=1):e="TEST_OR_SSR",e)))}),[]),e||n};var y4=function(e){var t=e.bg,n=e.children;return H.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function w4(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)}))}var S4=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,l=e.ptg,c=e.strokeLinecap,s=e.strokeWidth,u=e.size,d=e.gapDegree,f=r&&"object"===Rw(r),p=f?"#FFF":void 0,m=u/2,h=H.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:p,strokeLinecap:c,strokeWidth:s,opacity:0===l?0:1,style:a,ref:t});if(!f)return h;var g="".concat(o,"-conic"),v=d?"".concat(180+d/2,"deg"):"0deg",b=w4(r,(360-d)/360),y=w4(r,1),w="conic-gradient(from ".concat(v,", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(y.join(", "),")");return H.createElement(H.Fragment,null,H.createElement("mask",{id:g},h),H.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(g,")")},H.createElement(y4,{bg:S},H.createElement(y4,{bg:w}))))})),x4=100,C4=function(e,t,n,r,o,i,a,l,c,s){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-r)/100*t;return"round"===c&&100!==r&&(p+=s/2)>=t&&(p=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(o+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},E4=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function k4(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var $4=function(e){var t,n,r,o,i,a=rS(rS({},h4),e),l=a.id,c=a.prefixCls,s=a.steps,u=a.strokeWidth,d=a.trailWidth,f=a.gapDegree,p=void 0===f?0:f,m=a.gapPosition,h=a.trailColor,g=a.strokeLinecap,v=a.style,b=a.className,y=a.strokeColor,w=a.percent,S=Tw(a,E4),x=b4(l),C="".concat(x,"-gradient"),E=50-u/2,k=2*Math.PI*E,$=p>0?90+p/2:-90,O=k*((360-p)/360),N="object"===Rw(s)?s:{count:s,space:2},_=N.count,I=N.space,R=k4(w),M=k4(y),P=M.find((function(e){return e&&"object"===Rw(e)})),T=P&&"object"===Rw(P)?"butt":g,j=C4(k,O,0,100,$,p,m,h,T,u),A=(t=H.useRef([]),n=H.useRef(null),H.useEffect((function(){var e=Date.now(),r=!1;t.current.forEach((function(t){if(t){r=!0;var o=t.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),t.current);return H.createElement("svg",kw({className:Aw("".concat(c,"-circle"),b),viewBox:"0 0 ".concat(x4," ").concat(x4),style:v,id:l,role:"presentation"},S),!_&&H.createElement("circle",{className:"".concat(c,"-circle-trail"),r:E,cx:50,cy:50,stroke:h,strokeLinecap:T,strokeWidth:d||u,style:j}),_?(r=Math.round(_*(R[0]/100)),o=100/_,i=0,new Array(_).fill(null).map((function(e,t){var n=t<=r-1?M[0]:h,a=n&&"object"===Rw(n)?"url(#".concat(C,")"):void 0,l=C4(k,O,i,o,$,p,m,n,"butt",u,I);return i+=100*(O-l.strokeDashoffset+I)/O,H.createElement("circle",{key:t,className:"".concat(c,"-circle-path"),r:E,cx:50,cy:50,stroke:a,strokeWidth:u,opacity:1,style:l,ref:function(e){A[t]=e}})}))):function(){var e=0;return R.map((function(t,n){var r=M[n]||M[M.length-1],o=C4(k,O,e,t,$,p,m,r,T,u);return e+=t,H.createElement(S4,{key:n,color:r,ptg:t,radius:E,prefixCls:c,gradientId:C,style:o,strokeLinecap:T,strokeWidth:u,gapDegree:p,ref:function(e){A[n]=e},size:x4})})).reverse()}())};function O4(e){return!e||e<0?0:e>100?100:e}function N4(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const _4=e=>{let{percent:t,success:n,successPercent:r}=e;const o=O4(N4({success:n,successPercent:r}));return[o,O4(O4(t)-o)]},I4=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=r?r:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=e,l*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]},R4=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:c,success:s,size:u=a}=e,[d,f]=I4(u,"circle");let{strokeWidth:p}=e;void 0===p&&(p=Math.max((e=>3/e*100)(d),6));const m={width:d,height:f,fontSize:.15*d+6},h=H.useMemo((()=>i||0===i?i:"dashboard"===l?75:void 0),[i,l]),g=o||"dashboard"===l&&"bottom"||void 0,v="[object Object]"===Object.prototype.toString.call(e.strokeColor),b=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||eS.green,n||null]})({success:s,strokeColor:e.strokeColor}),y=m_(`${t}-inner`,{[`${t}-circle-gradient`]:v}),w=H.createElement($4,{percent:_4(e),strokeWidth:p,trailWidth:p,strokeColor:b,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:g});return H.createElement("div",{className:y,style:m},d<=20?H.createElement(nU,{title:c},H.createElement("span",null,w)):H.createElement(H.Fragment,null,w,c))},M4="--progress-line-stroke-color",P4="--progress-percent",T4=e=>{const t=e?"100%":"-100%";return new tM(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},j4=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},PP(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${PI(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${PI(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${M4})`]},height:"100%",width:`calc(1 / var(${P4}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:T4(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:T4(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},A4=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},z4=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},D4=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},L4=tT("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=KP(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[j4(n),A4(n),z4(n),D4(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));var B4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const F4=(e,t)=>{const{from:n=eS.blue,to:r=eS.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=B4(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i),t=`linear-gradient(${o}, ${e})`;return{background:t,[M4]:t}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[M4]:a}},H4=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:c,trailColor:s=null,success:u}=e,d=a&&"string"!=typeof a?F4(a,n):{[M4]:a,background:a},f="square"===l||"butt"===l?0:void 0,p=null!=o?o:[-1,i||("small"===o?6:8)],[m,h]=I4(p,"line",{strokeWidth:i}),g={backgroundColor:s||void 0,borderRadius:f},v=Object.assign(Object.assign({width:`${O4(r)}%`,height:h,borderRadius:f},d),{[P4]:O4(r)/100}),b=N4(e),y={width:`${O4(b)}%`,height:h,borderRadius:f,backgroundColor:null==u?void 0:u.strokeColor},w={width:m<0?"100%":m,height:h};return H.createElement(H.Fragment,null,H.createElement("div",{className:`${t}-outer`,style:w},H.createElement("div",{className:`${t}-inner`,style:g},H.createElement("div",{className:`${t}-bg`,style:v}),void 0!==b?H.createElement("div",{className:`${t}-success-bg`,style:y}):null)),c)},W4=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:c}=e,s=Math.round(n*(r/100)),u=null!=t?t:["small"===t?2:14,o],[d,f]=I4(u,"step",{steps:n,strokeWidth:o}),p=d/n,m=new Array(n);for(let h=0;h<n;h++){const e=Array.isArray(i)?i[h]:i;m[h]=H.createElement("div",{key:h,className:m_(`${l}-steps-item`,{[`${l}-steps-item-active`]:h<=s-1}),style:{backgroundColor:h<=s-1?e:a,width:p,height:f}})}return H.createElement("div",{className:`${l}-steps-outer`},m,c)};var V4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const U4=["normal","exception","active","success"],K4=H.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:l=0,size:c="default",showInfo:s=!0,type:u="line",status:d,format:f,style:p}=e,m=V4(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),h=H.useMemo((()=>{var t,n;const r=N4(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=l?l:0)||void 0===n?void 0:n.toString(),10)}),[l,e.success,e.successPercent]),g=H.useMemo((()=>!U4.includes(d)&&h>=100?"success":d||"normal"),[d,h]),{getPrefixCls:v,direction:b,progress:y}=H.useContext(aP),w=v("progress",n),[S,x,C]=L4(w),E=H.useMemo((()=>{if(!s)return null;const t=N4(e);let n;const r=f||(e=>`${e}%`),o="line"===u;return f||"exception"!==g&&"success"!==g?n=r(O4(l),O4(t)):"exception"===g?n=o?H.createElement(lx,null):H.createElement(ux,null):"success"===g&&(n=o?H.createElement(ZS,null):H.createElement(tx,null)),H.createElement("span",{className:`${w}-text`,title:"string"==typeof n?n:void 0},n)}),[s,l,h,g,u,w,f]),k=Array.isArray(a)?a[0]:a,$="string"==typeof a||Array.isArray(a)?a:void 0;let O;"line"===u?O=i?H.createElement(W4,Object.assign({},e,{strokeColor:$,prefixCls:w,steps:i}),E):H.createElement(H4,Object.assign({},e,{strokeColor:k,prefixCls:w,direction:b}),E):"circle"!==u&&"dashboard"!==u||(O=H.createElement(R4,Object.assign({},e,{strokeColor:k,prefixCls:w,progressStatus:g}),E));const N=m_(w,`${w}-status-${g}`,`${w}-${("dashboard"===u?"circle":i&&"steps")||u}`,{[`${w}-inline-circle`]:"circle"===u&&I4(c,"circle")[0]<=20,[`${w}-show-info`]:s,[`${w}-${c}`]:"string"==typeof c,[`${w}-rtl`]:"rtl"===b},null==y?void 0:y.className,r,o,x,C);return S(H.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==y?void 0:y.style),p),className:N,role:"progressbar","aria-valuenow":h},oI(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))})),q4=K4;var X4=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],G4=H.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,c=e.disabled,s=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,m=e.onKeyDown,h=Tw(e,X4),g=Iw(IP(!1,{value:a,defaultValue:l}),2),v=g[0],b=g[1];function y(e,t){var n=v;return c||(b(n=e),null==p||p(n,t)),n}var w=Aw(o,i,(Pw(n={},"".concat(o,"-checked"),v),Pw(n,"".concat(o,"-disabled"),c),n));return H.createElement("button",kw({},h,{type:"button",role:"switch","aria-checked":v,disabled:c,className:w,ref:t,onKeyDown:function(e){e.which===Tj.LEFT?y(!1,e):e.which===Tj.RIGHT&&y(!0,e),null==m||m(e)},onClick:function(e){var t=y(!v,e);null==f||f(t,e)}}),s,H.createElement("span",{className:"".concat(o,"-inner")},H.createElement("span",{className:"".concat(o,"-inner-checked")},u),H.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))}));G4.displayName="Switch";const Y4=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=PI(c(l).add(c(r).mul(2)).equal()),d=PI(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:PI(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${PI(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Q4=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}}}},Z4=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`,"&::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:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${PI(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}}}}},J4=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=PI(l(a).add(l(r).mul(2)).equal()),u=PI(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(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% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},e3=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},PP(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${PI(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),zP(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"}})}},t3=tT("Switch",(e=>{const t=KP(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[e3(t),J4(t),Z4(t),Q4(t),Y4(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new XM("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}));var n3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const r3=H.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:c,checked:s,value:u,defaultChecked:d,defaultValue:f,onChange:p}=e,m=n3(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,g]=IP(!1,{value:null!=s?s:u,defaultValue:null!=d?d:f}),{getPrefixCls:v,direction:b,switch:y}=H.useContext(aP),w=H.useContext(dP),S=(null!=o?o:w)||i,x=v("switch",n),C=H.createElement("div",{className:`${x}-handle`},i&&H.createElement(SC,{className:`${x}-loading-icon`})),[E,k,$]=t3(x),O=YA(r),N=m_(null==y?void 0:y.className,{[`${x}-small`]:"small"===O,[`${x}-loading`]:i,[`${x}-rtl`]:"rtl"===b},a,l,k,$),_=Object.assign(Object.assign({},null==y?void 0:y.style),c);return E(H.createElement(GA,{component:"Switch"},H.createElement(G4,Object.assign({},m,{checked:h,onChange:function(){g(arguments.length<=0?void 0:arguments[0]),null==p||p.apply(void 0,arguments)},prefixCls:x,className:N,style:_,disabled:S,ref:t,loadingIcon:C}))))}));r3.__ANT_SWITCH=!0,e("a0",r3);var o3={},i3="rc-table-internal-hook";function a3(e){var t=H.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,o=H.useRef(n);o.current=n;var i=Iw(H.useState((function(){return{getValue:function(){return o.current},listeners:new Set}})),1)[0];return LI((function(){cd.unstable_batchedUpdates((function(){i.listeners.forEach((function(e){e(n)}))}))}),[n]),H.createElement(t.Provider,{value:i},r)},defaultValue:e}}function l3(e,t){var n=OP("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=H.useContext(null==e?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=H.useRef();l.current=n(r?a():null==e?void 0:e.defaultValue);var c=Iw(H.useState({}),2)[1];return LI((function(){if(r)return i.add(e),function(){i.delete(e)};function e(e){var t=n(e);mI(l.current,t,!0)||c({})}}),[r]),l.current}var c3=function(){var e=H.createContext(null);function t(){return H.useContext(e)}return{makeImmutable:function(n,r){var o=lk(n),i=function(i,a){var l=o?{ref:a}:{},c=H.useRef(0),s=H.useRef(i);return null!==t()?H.createElement(n,kw({},i,l)):(r&&!r(s.current,i)||(c.current+=1),s.current=i,H.createElement(e.Provider,{value:c.current},H.createElement(n,kw({},i,l))))};return o?H.forwardRef(i):i},responseImmutable:function(e,n){var r=lk(e),o=function(n,o){var i=r?{ref:o}:{};return t(),H.createElement(e,kw({},n,i))};return r?H.memo(H.forwardRef(o),n):H.memo(o,n)},useImmutableMark:t}}(),s3=c3.makeImmutable,u3=c3.responseImmutable,d3=c3.useImmutableMark,f3=a3(),p3=H.createContext({renderWithProps:!1}),m3="RC_TABLE_KEY";function h3(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},i=o.key,a=o.dataIndex,l=i||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||m3;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function g3(e){return null!=e}function v3(e,t,n,r,o,i){var a=H.useContext(p3),l=ZE((function(){if(g3(r))return[r];var i,l=null==t||""===t?[]:Array.isArray(t)?t:[t],c=oM(e,l),s=c,u=void 0;if(o){var d=o(c,e,n);!(i=d)||"object"!==Rw(i)||Array.isArray(i)||H.isValidElement(i)?s=d:(s=d.children,u=d.props,a.renderWithProps=!0)}return[s,u]}),[d3(),e,r,t,o,n],(function(e,t){if(i){var n=Iw(e,2)[1],r=Iw(t,2)[1];return i(r,n)}return!!a.renderWithProps||!mI(e,t,!0)}));return l}function b3(e){var t,n,r,o,i,a,l,c,s=e.component,u=e.children,d=e.ellipsis,f=e.scope,p=e.prefixCls,m=e.className,h=e.align,g=e.record,v=e.render,b=e.dataIndex,y=e.renderIndex,w=e.shouldCellUpdate,S=e.index,x=e.rowType,C=e.colSpan,E=e.rowSpan,k=e.fixLeft,$=e.fixRight,O=e.firstFixLeft,N=e.lastFixLeft,_=e.firstFixRight,I=e.lastFixRight,R=e.appendNode,M=e.additionalProps,P=void 0===M?{}:M,T=e.isSticky,j="".concat(p,"-cell"),A=l3(f3,["supportSticky","allColumnsFixedLeft"]),z=A.supportSticky,D=A.allColumnsFixedLeft,L=Iw(v3(g,b,y,u,v,w),2),B=L[0],F=L[1],W={},V="number"==typeof k&&z,U="number"==typeof $&&z;V&&(W.position="sticky",W.left=k),U&&(W.position="sticky",W.right=$);var K=null!==(t=null!==(n=null!==(r=null==F?void 0:F.colSpan)&&void 0!==r?r:P.colSpan)&&void 0!==n?n:C)&&void 0!==t?t:1,q=null!==(o=null!==(i=null!==(a=null==F?void 0:F.rowSpan)&&void 0!==a?a:P.rowSpan)&&void 0!==i?i:E)&&void 0!==o?o:1,X=function(e,t){return l3(f3,(function(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]}))}(S,q),G=Iw(X,2),Y=G[0],Q=G[1],Z=OP((function(e){var t;g&&Q(S,S+q-1),null==P||null===(t=P.onMouseEnter)||void 0===t||t.call(P,e)})),J=OP((function(e){var t;g&&Q(-1,-1),null==P||null===(t=P.onMouseLeave)||void 0===t||t.call(P,e)}));if(0===K||0===q)return null;var ee=null!==(l=P.title)&&void 0!==l?l:function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,i=!0===n?{showTitle:!0}:n;return i&&(i.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():H.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t}({rowType:x,ellipsis:d,children:B}),te=Aw(j,m,(Pw(c={},"".concat(j,"-fix-left"),V&&z),Pw(c,"".concat(j,"-fix-left-first"),O&&z),Pw(c,"".concat(j,"-fix-left-last"),N&&z),Pw(c,"".concat(j,"-fix-left-all"),N&&D&&z),Pw(c,"".concat(j,"-fix-right"),U&&z),Pw(c,"".concat(j,"-fix-right-first"),_&&z),Pw(c,"".concat(j,"-fix-right-last"),I&&z),Pw(c,"".concat(j,"-ellipsis"),d),Pw(c,"".concat(j,"-with-append"),R),Pw(c,"".concat(j,"-fix-sticky"),(V||U)&&T&&z),Pw(c,"".concat(j,"-row-hover"),!F&&Y),c),P.className,null==F?void 0:F.className),ne={};h&&(ne.textAlign=h);var re=rS(rS(rS(rS({},W),P.style),ne),null==F?void 0:F.style),oe=B;return"object"!==Rw(oe)||Array.isArray(oe)||H.isValidElement(oe)||(oe=null),d&&(N||_)&&(oe=H.createElement("span",{className:"".concat(j,"-content")},oe)),H.createElement(s,kw({},F,P,{className:te,style:re,title:ee,scope:f,onMouseEnter:Z,onMouseLeave:J,colSpan:1!==K?K:null,rowSpan:1!==q?q:null}),R,oe)}const y3=H.memo(b3);function w3(e,t,n,r,o,i){var a,l,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===o?t:e]:"right"===s.fixed&&(l=r.right["rtl"===o?e:t]);var u=!1,d=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=i&&i.children);return"rtl"===o?void 0!==a?p=!(h&&"left"===h.fixed)&&g:void 0!==l&&(f=!(m&&"right"===m.fixed)&&g):void 0!==a?u=!(m&&"left"===m.fixed)&&g:void 0!==l&&(d=!(h&&"right"===h.fixed)&&g),{fixLeft:a,fixRight:l,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var S3=H.createContext({}),x3=["children"];function C3(e){return e.children}C3.Row=function(e){var t=e.children,n=Tw(e,x3);return H.createElement("tr",n,t)},C3.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=void 0===o?1:o,a=e.rowSpan,l=e.align,c=l3(f3,["prefixCls","direction"]),s=c.prefixCls,u=c.direction,d=H.useContext(S3),f=d.scrollColumnIndex,p=d.stickyOffsets,m=d.flattenColumns,h=d.columns,g=n+i-1+1===f?i+1:i,v=w3(n,n+g-1,m,p,u,null==h?void 0:h[n]);return H.createElement(y3,kw({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:l,colSpan:g,rowSpan:a,render:function(){return r}},v))};const E3=u3((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=l3(f3,"prefixCls"),a=r.length-1,l=r[a],c=H.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=l&&l.scrollbar?a:null,columns:o}}),[l,r,a,n,o]);return H.createElement(S3.Provider,{value:c},H.createElement("tfoot",{className:"".concat(i,"-summary")},t))}));var k3=C3;function $3(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s<t[r].length;s+=1)$3(e,t[r][s],n+1,r,o,i,s)}function O3(e,t,n,r){var o=H.useMemo((function(){if(null!=n&&n.size){for(var o=[],i=0;i<(null==e?void 0:e.length);i+=1)$3(o,e[i],0,t,n,r,i);return o}return null==e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r]);return o}function N3(e,t,n,r){var o,i=l3(f3,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,l=i.expandableType,c=i.expandedKeys,s=i.childrenColumnName,u=i.onTriggerExpand,d=i.rowExpandable,f=i.onRow,p=i.expandRowByClick,m=i.rowClassName,h="nest"===l,g="row"===l&&(!d||d(e)),v=g||h,b=c&&c.has(t),y=s&&e&&e[s],w=OP(u),S=null==f?void 0:f(e,n),x=null==S?void 0:S.onClick;"string"==typeof m?o=m:"function"==typeof m&&(o=m(e,n,r));var C=h3(a);return rS(rS({},i),{},{columnsKey:C,nestExpandable:h,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:w,rowSupportExpand:g,expandable:v,rowProps:rS(rS({},S),{},{className:Aw(o,null==S?void 0:S.className),onClick:function(t){p&&v&&u(e,t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null==x||x.apply(void 0,[t].concat(r))}})})}function _3(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,l=e.colSpan,c=e.isEmpty,s=l3(f3,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),u=s.scrollbarSize,d=s.fixHeader,f=s.fixColumn,p=s.componentWidth,m=s.horizonScroll,h=n;return(c?m&&p:f)&&(h=H.createElement("div",{style:{width:p-(d?u:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},h)),H.createElement(r,{className:i,style:{display:a?null:"none"}},H.createElement(y3,{component:o,prefixCls:t,colSpan:l},h))}function I3(e,t,n,r,o){var i,a,l=e.record,c=e.prefixCls,s=e.columnsKey,u=e.fixedInfoList,d=e.expandIconColumnIndex,f=e.nestExpandable,p=e.indentSize,m=e.expandIcon,h=e.expanded,g=e.hasNestChildren,v=e.onTriggerExpand,b=s[n],y=u[n];return n===(d||0)&&f&&(i=H.createElement(H.Fragment,null,H.createElement("span",{style:{paddingLeft:"".concat(p*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),m({prefixCls:c,expanded:h,expandable:g,record:l,onExpand:v}))),t.onCell&&(a=t.onCell(l,o)),{key:b,fixedInfo:y,appendCellNode:i,additionalCellProps:a||{}}}const R3=u3((function(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,l=e.indent,c=void 0===l?0:l,s=e.rowComponent,u=e.cellComponent,d=e.scopeCellComponent,f=N3(r,a,o,c),p=f.prefixCls,m=f.flattenColumns,h=f.expandedRowClassName,g=f.expandedRowRender,v=f.rowProps,b=f.expanded,y=f.rowSupportExpand,w=H.useRef(!1);w.current||(w.current=b);var S,x=h&&h(r,o,c),C=H.createElement(s,kw({},v,{"data-row-key":a,className:Aw(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(c),null==v?void 0:v.className,c>=1?x:""),style:rS(rS({},n),null==v?void 0:v.style)}),m.map((function(e,t){var n=e.render,a=e.dataIndex,l=e.className,s=I3(f,e,t,c,o),m=s.key,h=s.fixedInfo,g=s.appendCellNode,v=s.additionalCellProps;return H.createElement(y3,kw({className:l,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?d:u,prefixCls:p,key:m,record:r,index:o,renderIndex:i,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},h,{appendNode:g,additionalProps:v}))})));if(y&&(w.current||b)){var E=g(r,o,c+1,b);S=H.createElement(_3,{expanded:b,className:Aw("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(c+1),x),prefixCls:p,component:s,cellComponent:u,colSpan:m.length,isEmpty:!1},E)}return H.createElement(H.Fragment,null,C,S)}));function M3(e){var t=e.columnKey,n=e.onColumnResize,r=H.useRef();return H.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),H.createElement(rI,{data:t},H.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},H.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function P3(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return H.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},H.createElement(rI.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return H.createElement(M3,{key:e,columnKey:e,onColumnResize:r})}))))}const T3=u3((function(e){var t,n=e.data,r=e.measureColumnWidth,o=l3(f3,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=o.prefixCls,a=o.getComponent,l=o.onColumnResize,c=o.flattenColumns,s=o.getRowKey,u=o.expandedKeys,d=o.childrenColumnName,f=o.emptyNode,p=O3(n,d,u,s),m=H.useRef({renderWithProps:!1}),h=a(["body","wrapper"],"tbody"),g=a(["body","row"],"tr"),v=a(["body","cell"],"td"),b=a(["body","cell"],"th");t=n.length?p.map((function(e,t){var n=e.record,r=e.indent,o=e.index,i=s(n,t);return H.createElement(R3,{key:i,rowKey:i,record:n,index:t,renderIndex:o,rowComponent:g,cellComponent:v,scopeCellComponent:b,getRowKey:s,indent:r})})):H.createElement(_3,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:g,cellComponent:v,colSpan:c.length,isEmpty:!0},f);var y=h3(c);return H.createElement(p3.Provider,{value:m.current},H.createElement(h,{className:"".concat(i,"-tbody")},r&&H.createElement(P3,{prefixCls:i,columnsKey:y,onColumnResize:l}),t))}));var j3=["expandable"],A3="RC_TABLE_INTERNAL_COL_DEFINE",z3=["columnType"];function D3(e){for(var t=e.colWidths,n=e.columns,r=[],o=!1,i=(e.columCount||n.length)-1;i>=0;i-=1){var a=t[i],l=n&&n[i],c=l&&l[A3];if(a||c||o){var s=c||{};s.columnType;var u=Tw(s,z3);r.unshift(H.createElement("col",kw({key:i,style:{width:a}},u))),o=!0}}return H.createElement("colgroup",null,r)}var L3=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],B3=H.forwardRef((function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,s=e.direction,u=e.fixHeader,d=e.stickyTopOffset,f=e.stickyBottomOffset,p=e.stickyClassName,m=e.onScroll,h=e.maxContentScroll,g=e.children,v=Tw(e,L3),b=l3(f3,["prefixCls","scrollbarSize","isSticky"]),y=b.prefixCls,w=b.scrollbarSize,S=b.isSticky,x=S&&!u?0:w,C=H.useRef(null),E=H.useCallback((function(e){ok(t,e),ok(C,e)}),[]);H.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(m({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=C.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=C.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var k=H.useMemo((function(){return i.every((function(e){return e.width}))}),[i]),$=i[i.length-1],O={fixed:$?$.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(y,"-cell-scrollbar")}}},N=H.useMemo((function(){return x?[].concat(aI(o),[O]):o}),[x,o]),_=H.useMemo((function(){return x?[].concat(aI(i),[O]):i}),[x,i]),I=H.useMemo((function(){var e=c.right,t=c.left;return rS(rS({},c),{},{left:"rtl"===s?[].concat(aI(t.map((function(e){return e+x}))),[0]):t,right:"rtl"===s?e:[].concat(aI(e.map((function(e){return e+x}))),[0]),isSticky:S})}),[x,c,S]),R=function(e,t){return H.useMemo((function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(void 0===o)return null;n[r]=o}return n}),[e.join("_"),t])}(a,l);return H.createElement("div",{style:rS({overflow:"hidden"},S?{top:d,bottom:f}:{}),ref:E,className:Aw(n,Pw({},p,!!p))},H.createElement("table",{style:{tableLayout:"fixed",visibility:r||R?null:"hidden"}},(!r||!h||k)&&H.createElement(D3,{colWidths:R?[].concat(aI(R),[x]):[],columCount:l+1,columns:_}),g(rS(rS({},v),{},{stickyOffsets:I,columns:N,flattenColumns:_}))))}));const F3=H.memo(B3);function H3(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,i=e.rowComponent,a=e.cellComponent,l=e.tdCellComponent,c=e.onHeaderRow,s=e.index,u=l3(f3,["prefixCls","direction"]),d=u.prefixCls,f=u.direction;c&&(t=c(n.map((function(e){return e.column})),s));var p=h3(n.map((function(e){return e.column})));return H.createElement(i,t,n.map((function(e,t){var n,i=e.column,c=w3(e.colStart,e.colEnd,o,r,f,i);return i&&i.onHeaderCell&&(n=e.column.onHeaderCell(i)),H.createElement(y3,kw({},e,{scope:i.title?e.colSpan>1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:i.title?a:l,prefixCls:d,key:p[t]},c,{additionalProps:n,rowType:"header"}))})))}const W3=u3((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=l3(f3,["prefixCls","getComponent"]),a=i.prefixCls,l=i.getComponent,c=H.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),s=l(["header","wrapper"],"thead"),u=l(["header","row"],"tr"),d=l(["header","cell"],"th"),f=l(["header","cell"],"td");return H.createElement(s,{className:"".concat(a,"-thead")},c.map((function(e,n){return H.createElement(H3,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:u,cellComponent:d,tdCellComponent:f,onHeaderRow:o,index:n})})))}));function V3(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var U3=["children"],K3=["fixed"];function q3(e){return h_(e).filter((function(e){return H.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=rS({key:t},Tw(n,U3));return r&&(o.children=q3(r)),o}))}function X3(e){return e.filter((function(e){return e&&"object"===Rw(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?rS(rS({},e),{},{children:X3(t)}):e}))}function G3(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===Rw(e)})).reduce((function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(aI(e),aI(G3(l,a).map((function(e){return rS({fixed:i},e)})))):[].concat(aI(e),[rS(rS({key:a},n),{},{fixed:i})])}),[])}function Y3(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,s=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,f=e.expandIconColumnIndex,p=e.direction,m=e.expandRowByClick,h=e.columnWidth,g=e.fixed,v=e.scrollWidth,b=e.clientWidth,y=H.useMemo((function(){return X3((r||q3(o)||[]).slice())}),[r,o]),w=H.useMemo((function(){if(i){var e,t=y.slice();if(!t.includes(o3)){var r=f||0;r>=0&&t.splice(r,0,o3)}var o=t.indexOf(o3);t=t.filter((function(e,t){return e!==o3||t===o}));var p,v=y[o];p="left"!==g&&!g||f?"right"!==g&&!g||f!==y.length?v?v.fixed:null:"right":"left";var b=(Pw(e={},A3,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Pw(e,"title",l),Pw(e,"fixed",p),Pw(e,"className","".concat(n,"-row-expand-icon-cell")),Pw(e,"width",h),Pw(e,"render",(function(e,t,r){var o=c(t,r),i=a.has(o),l=!d||d(t),f=u({prefixCls:n,expanded:i,expandable:l,record:t,onExpand:s});return m?H.createElement("span",{onClick:function(e){return e.stopPropagation()}},f):f})),e);return t.map((function(e){return e===o3?b:e}))}return y.filter((function(e){return e!==o3}))}),[i,y,c,a,u,p]),S=H.useMemo((function(){var e=w;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,w,p]),x=H.useMemo((function(){return"rtl"===p?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),rS({fixed:n},Tw(e,K3))}))}(G3(S)):G3(S)}),[S,p,v]),C=H.useMemo((function(){for(var e=-1,t=x.length-1;t>=0;t-=1){var n=x[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=x[r].fixed;if("left"!==o&&!0!==o)return!0}var i=x.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a<x.length;a+=1)if("right"!==x[a].fixed)return!0;return!1}),[x]),E=function(e,t,n){return H.useMemo((function(){if(t&&t>0){var r=0,o=0;e.forEach((function(e){var n=V3(t,e.width);n?r+=n:o+=1}));var i=Math.max(t,n),a=Math.max(i-r,o),l=o,c=a/o,s=0,u=e.map((function(e){var n=rS({},e),r=V3(t,n.width);if(r)n.width=r;else{var o=Math.floor(c);n.width=1===l?a:o,a-=o,l-=1}return s+=n.width,n}));if(s<i){var d=i/s;a=i,u.forEach((function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n}))}return[u,Math.max(s,i)]}return[e,t]}),[e,t,n])}(x,v,b),k=Iw(E,2),$=k[0],O=k[1];return[S,$,O,C]}function Q3(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,i=e.expanded,a=e.expandable,l="".concat(n,"-row-expand-icon");return a?H.createElement("span",{className:Aw(l,(t={},Pw(t,"".concat(n,"-row-expanded"),i),Pw(t,"".concat(n,"-row-collapsed"),!i),t)),onClick:function(e){o(r,e),e.stopPropagation()}}):H.createElement("span",{className:Aw(l,"".concat(n,"-row-spaced"))})}function Z3(e,t,n){var r=function(e){var t,n=e.expandable,r=Tw(e,j3);return!1===(t="expandable"in e?rS(rS({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,c=r.expandedRowRender,s=r.onExpand,u=r.onExpandedRowsChange,d=o||Q3,f=r.childrenColumnName||"children",p=H.useMemo((function(){return c?"row":!!(e.expandable&&e.internalHooks===i3&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===Rw(e)&&e[f]})))&&"nest"}),[!!c,t]),m=H.useState((function(){return a||(l?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(t,n,f):[])})),h=Iw(m,2),g=h[0],v=h[1],b=H.useMemo((function(){return new Set(i||g||[])}),[i,g]),y=H.useCallback((function(e){var r,o=n(e,t.indexOf(e)),i=b.has(o);i?(b.delete(o),r=aI(b)):r=[].concat(aI(b),[o]),v(r),s&&s(!i,e),u&&u(r)}),[n,b,t,s,u]);return[r,p,b,d,f,y]}function J3(e){var t=H.useRef(e),n=Iw(H.useState({}),2)[1],r=H.useRef(null),o=H.useRef([]);return H.useEffect((function(){return function(){r.current=null}}),[]),[t.current,function(e){o.current.push(e);var i=Promise.resolve();r.current=i,i.then((function(){if(r.current===i){var e=o.current,a=t.current;o.current=[],e.forEach((function(e){t.current=e(t.current)})),r.current=null,a!==t.current&&n({})}}))}]}var e8=oS()?window:null;function t8(e){var t=e.className,n=e.children;return H.createElement("div",{className:t},n)}var n8=function(e,t){var n,r,o=e.scrollBodyRef,i=e.onScroll,a=e.offsetScroll,l=e.container,c=l3(f3,"prefixCls"),s=(null===(n=o.current)||void 0===n?void 0:n.scrollWidth)||0,u=(null===(r=o.current)||void 0===r?void 0:r.clientWidth)||0,d=s&&u*(u/s),f=H.useRef(),p=Iw(J3({scrollLeft:0,isHiddenScrollBar:!1}),2),m=p[0],h=p[1],g=H.useRef({delta:0,x:0}),v=Iw(H.useState(!1),2),b=v[0],y=v[1],w=function(){y(!1)},S=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(b&&0!==n){var r=g.current.x+e.pageX-g.current.x-g.current.delta;r<=0&&(r=0),r+d>=u&&(r=u-d),i({scrollLeft:r/u*(s+2)}),g.current.x=e.pageX}else b&&y(!1)},x=function(){if(o.current){var e=H1(o.current).top,t=e+o.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:H1(l).top+l.clientHeight;t-mD()<=n||e>=n-a?h((function(e){return rS(rS({},e),{},{isHiddenScrollBar:!0})})):h((function(e){return rS(rS({},e),{},{isHiddenScrollBar:!1})}))}},C=function(e){h((function(t){return rS(rS({},t),{},{scrollLeft:e/s*u||0})}))};return H.useImperativeHandle(t,(function(){return{setScrollLeft:C}})),H.useEffect((function(){var e=q1(document.body,"mouseup",w,!1),t=q1(document.body,"mousemove",S,!1);return x(),function(){e.remove(),t.remove()}}),[d,b]),H.useEffect((function(){var e=q1(l,"scroll",x,!1),t=q1(window,"resize",x,!1);return function(){e.remove(),t.remove()}}),[l]),H.useEffect((function(){m.isHiddenScrollBar||h((function(e){var t=o.current;return t?rS(rS({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[m.isHiddenScrollBar]),s<=u||!d||m.isHiddenScrollBar?null:H.createElement("div",{style:{height:mD(),width:u,bottom:a},className:"".concat(c,"-sticky-scroll")},H.createElement("div",{onMouseDown:function(e){e.persist(),g.current.delta=e.pageX-m.scrollLeft,g.current.x=0,y(!0),e.preventDefault()},ref:f,className:Aw("".concat(c,"-sticky-scroll-bar"),Pw({},"".concat(c,"-sticky-scroll-bar-active"),b)),style:{width:"".concat(d,"px"),transform:"translate3d(".concat(m.scrollLeft,"px, 0, 0)")}}))};const r8=H.forwardRef(n8);var o8="rc-table",i8=[],a8={};function l8(){return"No Data"}function c8(e,t){var n,r=rS({rowKey:"key",prefixCls:o8,emptyText:l8},e),o=r.prefixCls,i=r.className,a=r.rowClassName,l=r.style,c=r.data,s=r.rowKey,u=r.scroll,d=r.tableLayout,f=r.direction,p=r.title,m=r.footer,h=r.summary,g=r.caption,v=r.id,b=r.showHeader,y=r.components,w=r.emptyText,S=r.onRow,x=r.onHeaderRow,C=r.internalHooks,E=r.transformColumns,k=r.internalRefs,$=r.tailor,O=r.getContainerWidth,N=r.sticky,_=c||i8,I=!!_.length,R=C===i3,M=H.useCallback((function(e,t){return oM(y,e)||t}),[y]),P=H.useMemo((function(){return"function"==typeof s?s:function(e){return e&&e[s]}}),[s]),T=M(["body"]),j=function(){var e=Iw(H.useState(-1),2),t=e[0],n=e[1],r=Iw(H.useState(-1),2),o=r[0],i=r[1];return[t,o,H.useCallback((function(e,t){n(e),i(t)}),[])]}(),A=Iw(j,3),z=A[0],D=A[1],L=A[2],B=Iw(Z3(r,_,P),6),F=B[0],W=B[1],V=B[2],U=B[3],K=B[4],q=B[5],X=null==u?void 0:u.x,G=Iw(H.useState(0),2),Y=G[0],Q=G[1],Z=Iw(Y3(rS(rS(rS({},r),F),{},{expandable:!!F.expandedRowRender,columnTitle:F.columnTitle,expandedKeys:V,getRowKey:P,onTriggerExpand:q,expandIcon:U,expandIconColumnIndex:F.expandIconColumnIndex,direction:f,scrollWidth:R&&$&&"number"==typeof X?X:null,clientWidth:Y}),R?E:null),4),J=Z[0],ee=Z[1],te=Z[2],ne=Z[3],re=null!=te?te:X,oe=H.useMemo((function(){return{columns:J,flattenColumns:ee}}),[J,ee]),ie=H.useRef(),ae=H.useRef(),le=H.useRef(),ce=H.useRef();H.useImperativeHandle(t,(function(){return{nativeElement:ie.current,scrollTo:function(e){var t;if(le.current instanceof HTMLElement){var n=e.index,r=e.top,o=e.key;if(r){var i;null===(i=le.current)||void 0===i||i.scrollTo({top:r})}else{var a,l=null!=o?o:P(_[n]);null===(a=le.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}}else null!==(t=le.current)&&void 0!==t&&t.scrollTo&&le.current.scrollTo(e)}}}));var se,ue,de,fe=H.useRef(),pe=Iw(H.useState(!1),2),me=pe[0],he=pe[1],ge=Iw(H.useState(!1),2),ve=ge[0],be=ge[1],ye=Iw(J3(new Map),2),we=ye[0],Se=ye[1],xe=h3(ee).map((function(e){return we.get(e)})),Ce=H.useMemo((function(){return xe}),[xe.join("_")]),Ee=function(e,t,n){var r=H.useMemo((function(){var r=t.length,o=function(n,r,o){for(var i=[],a=0,l=n;l!==r;l+=o)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=o(0,r,1),a=o(r-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}}),[e,t,n]);return r}(Ce,ee,f),ke=u&&g3(u.y),$e=u&&g3(re)||Boolean(F.fixed),Oe=$e&&ee.some((function(e){return e.fixed})),Ne=H.useRef(),_e=function(e,t){var n="object"===Rw(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,i=n.offsetSummary,a=void 0===i?0:i,l=n.offsetScroll,c=void 0===l?0:l,s=n.getContainer,u=(void 0===s?function(){return e8}:s)()||e8;return H.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:c,container:u}}),[c,o,a,t,u])}(N,o),Ie=_e.isSticky,Re=_e.offsetHeader,Me=_e.offsetSummary,Pe=_e.offsetScroll,Te=_e.stickyClassName,je=_e.container,Ae=H.useMemo((function(){return null==h?void 0:h(_)}),[h,_]),ze=(ke||Ie)&&H.isValidElement(Ae)&&Ae.type===C3&&Ae.props.fixed;ke&&(ue={overflowY:"scroll",maxHeight:u.y}),$e&&(se={overflowX:"auto"},ke||(ue={overflowY:"hidden"}),de={width:!0===re?"auto":re,minWidth:"100%"});var De=H.useCallback((function(e,t){FA(ie.current)&&Se((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Le=Iw(function(e){var t=H.useRef(e||null),n=H.useRef();function r(){window.clearTimeout(n.current)}return H.useEffect((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),2),Be=Le[0],Fe=Le[1];function He(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var We=OP((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===f,i="number"==typeof r?r:n.scrollLeft,a=n||a8;Fe()&&Fe()!==a||(Be(a),He(i,ae.current),He(i,le.current),He(i,fe.current),He(i,null===(t=Ne.current)||void 0===t?void 0:t.setScrollLeft));var l=n||ae.current;if(l){var c=l.scrollWidth,s=l.clientWidth;if(c===s)return he(!1),void be(!1);o?(he(-i<c-s),be(-i>0)):(he(i>0),be(i<c-s))}})),Ve=function(){$e&&le.current?We({currentTarget:le.current}):(he(!1),be(!1))},Ue=H.useRef(!1);H.useEffect((function(){Ue.current&&Ve()}),[$e,c,J.length]),H.useEffect((function(){Ue.current=!0}),[]);var Ke=Iw(H.useState(0),2),qe=Ke[0],Xe=Ke[1],Ge=Iw(H.useState(!0),2),Ye=Ge[0],Qe=Ge[1];H.useEffect((function(){var e,t;$&&R||(le.current instanceof Element?Xe(hD(le.current).width):Xe(hD(ce.current).width)),Qe((e="position",t="sticky",Array.isArray(e)||void 0===t?AD(e):zD(e,t)))}),[]),H.useEffect((function(){R&&k&&(k.body.current=le.current)}));var Ze,Je=H.useCallback((function(e){return H.createElement(H.Fragment,null,H.createElement(W3,e),"top"===ze&&H.createElement(E3,e,Ae))}),[ze,Ae]),et=H.useCallback((function(e){return H.createElement(E3,e,Ae)}),[Ae]),tt=M(["table"],"table"),nt=H.useMemo((function(){return d||(Oe?"max-content"===re?"auto":"fixed":ke||Ie||ee.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[ke,Oe,ee,d,Ie]),rt={colWidths:Ce,columCount:ee.length,stickyOffsets:Ee,onHeaderRow:x,fixHeader:ke,scroll:u},ot=H.useMemo((function(){return I?null:"function"==typeof w?w():w}),[I,w]),it=H.createElement(T3,{data:_,measureColumnWidth:ke||$e||Ie}),at=H.createElement(D3,{colWidths:ee.map((function(e){return e.width})),columns:ee}),lt=null!=g?H.createElement("caption",{className:"".concat(o,"-caption")},g):void 0,ct=yj(r,{data:!0}),st=yj(r,{aria:!0});if(ke||Ie){var ut;"function"==typeof T?(ut=T(_,{scrollbarSize:qe,ref:le,onScroll:We}),rt.colWidths=ee.map((function(e,t){var n=e.width,r=t===ee.length-1?n-qe:n;return"number"!=typeof r||Number.isNaN(r)?0:r}))):ut=H.createElement("div",{style:rS(rS({},se),ue),onScroll:We,ref:le,className:Aw("".concat(o,"-body"))},H.createElement(tt,kw({style:rS(rS({},de),{},{tableLayout:nt})},st),lt,at,it,!ze&&Ae&&H.createElement(E3,{stickyOffsets:Ee,flattenColumns:ee,columns:J},Ae)));var dt=rS(rS(rS({noData:!_.length,maxContentScroll:$e&&"max-content"===re},rt),oe),{},{direction:f,stickyClassName:Te,onScroll:We});Ze=H.createElement(H.Fragment,null,!1!==b&&H.createElement(F3,kw({},dt,{stickyTopOffset:Re,className:"".concat(o,"-header"),ref:ae}),Je),ut,ze&&"top"!==ze&&H.createElement(F3,kw({},dt,{stickyBottomOffset:Me,className:"".concat(o,"-summary"),ref:fe}),et),Ie&&le.current&&le.current instanceof Element&&H.createElement(r8,{ref:Ne,offsetScroll:Pe,scrollBodyRef:le,onScroll:We,container:je}))}else Ze=H.createElement("div",{style:rS(rS({},se),ue),className:Aw("".concat(o,"-content")),onScroll:We,ref:le},H.createElement(tt,kw({style:rS(rS({},de),{},{tableLayout:nt})},st),lt,at,!1!==b&&H.createElement(W3,kw({},rt,oe)),it,Ae&&H.createElement(E3,{stickyOffsets:Ee,flattenColumns:ee,columns:J},Ae)));var ft=H.createElement("div",kw({className:Aw(o,i,(n={},Pw(n,"".concat(o,"-rtl"),"rtl"===f),Pw(n,"".concat(o,"-ping-left"),me),Pw(n,"".concat(o,"-ping-right"),ve),Pw(n,"".concat(o,"-layout-fixed"),"fixed"===d),Pw(n,"".concat(o,"-fixed-header"),ke),Pw(n,"".concat(o,"-fixed-column"),Oe),Pw(n,"".concat(o,"-fixed-column-gapped"),Oe&&ne),Pw(n,"".concat(o,"-scroll-horizontal"),$e),Pw(n,"".concat(o,"-has-fix-left"),ee[0]&&ee[0].fixed),Pw(n,"".concat(o,"-has-fix-right"),ee[ee.length-1]&&"right"===ee[ee.length-1].fixed),n)),style:l,id:v,ref:ie},ct),p&&H.createElement(t8,{className:"".concat(o,"-title")},p(_)),H.createElement("div",{ref:ce,className:"".concat(o,"-container")},Ze),m&&H.createElement(t8,{className:"".concat(o,"-footer")},m(_)));$e&&(ft=H.createElement(rI,{onResize:function(e){var t=e.width,n=ie.current?ie.current.offsetWidth:t;R&&O&&ie.current&&(n=O(ie.current,n)||n),n!==Y&&(Ve(),Q(n))}},ft));var pt=function(e,t,n,r){var o=e.map((function(o,i){return w3(i,i,e,t,n,null==r?void 0:r[i])}));return ZE((function(){return o}),[o],(function(e,t){return!mI(e,t)}))}(ee,Ee,f,J),mt=H.useMemo((function(){return{scrollX:re,prefixCls:o,getComponent:M,scrollbarSize:qe,direction:f,fixedInfoList:pt,isSticky:Ie,supportSticky:Ye,componentWidth:Y,fixHeader:ke,fixColumn:Oe,horizonScroll:$e,tableLayout:nt,rowClassName:a,expandedRowClassName:F.expandedRowClassName,expandIcon:U,expandableType:W,expandRowByClick:F.expandRowByClick,expandedRowRender:F.expandedRowRender,onTriggerExpand:q,expandIconColumnIndex:F.expandIconColumnIndex,indentSize:F.indentSize,allColumnsFixedLeft:ee.every((function(e){return"left"===e.fixed})),emptyNode:ot,columns:J,flattenColumns:ee,onColumnResize:De,hoverStartRow:z,hoverEndRow:D,onHover:L,rowExpandable:F.rowExpandable,onRow:S,getRowKey:P,expandedKeys:V,childrenColumnName:K}}),[re,o,M,qe,f,pt,Ie,Ye,Y,ke,Oe,$e,nt,a,F.expandedRowClassName,U,W,F.expandRowByClick,F.expandedRowRender,q,F.expandIconColumnIndex,F.indentSize,ot,J,ee,De,z,D,L,F.rowExpandable,S,P,V,K]);return H.createElement(f3.Provider,{value:mt},ft)}var s8=H.forwardRef(c8);function u8(e){return s3(s8,e)}var d8=u8();d8.EXPAND_COLUMN=o3,d8.INTERNAL_HOOKS=i3,d8.Column=function(e){return null},d8.ColumnGroup=function(e){return null},d8.Summary=k3;var f8=a3(null),p8=a3(null);function m8(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.component,l=e.renderIndex,c=e.record,s=e.style,u=e.className,d=e.inverse,f=e.getHeight,p=n.render,m=n.dataIndex,h=n.className,g=n.width,v=l3(p8,["columnsOffset"]).columnsOffset,b=I3(t,n,r,o,i),y=b.key,w=b.fixedInfo,S=b.appendCellNode,x=b.additionalCellProps,C=x.style,E=x.colSpan,k=void 0===E?1:E,$=x.rowSpan,O=void 0===$?1:$,N=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,k,v),_=k>1?g-N:0,I=rS(rS(rS({},C),s),{},{flex:"0 0 ".concat(N,"px"),width:"".concat(N,"px"),marginRight:_,pointerEvents:"auto"}),R=H.useMemo((function(){return d?O<=1:0===k||0===O||O>1}),[O,k,d]);R?I.visibility="hidden":d&&(I.height=null==f?void 0:f(O));var M=R?function(){return null}:p,P={};return 0!==O&&0!==k||(P.rowSpan=1,P.colSpan=1),H.createElement(y3,kw({className:Aw(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:y,record:c,index:i,renderIndex:l,dataIndex:m,render:M,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:S,additionalProps:rS(rS({},x),{},{style:I},P)}))}var h8=["data","index","className","rowKey","style","extra","getHeight"],g8=H.forwardRef((function(e,t){var n,r=e.data,o=e.index,i=e.className,a=e.rowKey,l=e.style,c=e.extra,s=e.getHeight,u=Tw(e,h8),d=r.record,f=r.indent,p=r.index,m=l3(f3,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=m.scrollX,g=m.flattenColumns,v=m.prefixCls,b=m.fixColumn,y=m.componentWidth,w=l3(f8,["getComponent"]).getComponent,S=N3(d,a,o,f),x=w(["body","row"],"div"),C=w(["body","cell"],"div"),E=S.rowSupportExpand,k=S.expanded,$=S.rowProps,O=S.expandedRowRender,N=S.expandedRowClassName;if(E&&k){var _=O(d,o,f+1,k),I=null==N?void 0:N(d,o,f),R={};b&&(R={style:Pw({},"--virtual-width","".concat(y,"px"))});var M="".concat(v,"-expanded-row-cell");n=H.createElement(x,{className:Aw("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),I)},H.createElement(y3,{component:C,prefixCls:v,className:Aw(M,Pw({},"".concat(M,"-fixed"),b)),additionalProps:R},_))}var P=rS(rS({},l),{},{width:h});c&&(P.position="absolute",P.pointerEvents="none");var T=H.createElement(x,kw({},$,u,{ref:E?null:t,className:Aw(i,"".concat(v,"-row"),null==$?void 0:$.className,Pw({},"".concat(v,"-row-extra"),c)),style:rS(rS({},P),null==$?void 0:$.style)}),g.map((function(e,t){return H.createElement(m8,{key:t,component:C,rowInfo:S,column:e,colIndex:t,indent:f,index:o,renderIndex:p,record:d,inverse:c,getHeight:s})})));return E?H.createElement("div",{ref:t},T,n):T})),v8=u3(g8),b8=H.forwardRef((function(e,t){var n=e.data,r=e.onScroll,o=l3(f3,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=o.flattenColumns,a=o.onColumnResize,l=o.getRowKey,c=o.expandedKeys,s=o.prefixCls,u=o.childrenColumnName,d=o.emptyNode,f=o.scrollX,p=l3(f8),m=p.sticky,h=p.scrollY,g=p.listItemHeight,v=p.getComponent,b=H.useRef(),y=O3(n,u,c,l),w=H.useMemo((function(){var e=0;return i.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[i]),S=H.useMemo((function(){return w.map((function(e){return e[2]}))}),[w]);H.useEffect((function(){w.forEach((function(e){var t=Iw(e,2),n=t[0],r=t[1];a(n,r)}))}),[w]),H.useImperativeHandle(t,(function(){var e={scrollTo:function(e){var t;null===(t=b.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=b.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=b.current)||void 0===t||t.scrollTo({left:e})}}),e}));var x,C=function(e,t){var n,r=null===(n=y[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},E=H.useMemo((function(){return{columnsOffset:S}}),[S]),k="".concat(s,"-tbody"),$=v(["body","wrapper"]),O=v(["body","row"],"div"),N=v(["body","cell"],"div");if(y.length){var _={};m&&(_.position="sticky",_.bottom=0,"object"===Rw(m)&&m.offsetScroll&&(_.bottom=m.offsetScroll)),x=H.createElement(sW,{fullHeight:!1,ref:b,styles:{horizontalScrollBar:_},className:Aw(k,"".concat(k,"-virtual")),height:h,itemHeight:g||24,data:y,itemKey:function(e){return l(e.record)},component:$,scrollWidth:f,onVirtualScroll:function(e){var t=e.x;r({scrollLeft:t})},extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,o=e.offsetY;if(n<0)return null;for(var a=i.filter((function(e){return 0===C(e,t)})),c=t,s=function(e){if(a=a.filter((function(t){return 0===C(t,e)})),!a.length)return c=e,1},u=t;u>=0&&!s(u);u-=1);for(var d=i.filter((function(e){return 1!==C(e,n)})),f=n,p=function(e){if(d=d.filter((function(t){return 1!==C(t,e)})),!d.length)return f=Math.max(e-1,n),1},m=n;m<y.length&&!p(m);m+=1);for(var h=[],g=function(e){if(!y[e])return 1;i.some((function(t){return C(t,e)>1}))&&h.push(e)},v=c;v<=f;v+=1)g(v);var b=h.map((function(e){var t=y[e],n=l(t.record,e),i=r(n);return H.createElement(v8,{key:e,data:t,rowKey:n,index:e,style:{top:-o+i.top},extra:!0,getHeight:function(t){var o=e+t-1,i=l(y[o].record,o),a=r(n,i);return a.bottom-a.top}})}));return b}},(function(e,t,n){var r=l(e.record,t);return H.createElement(v8,kw({data:e,rowKey:r,index:t},n))}))}else x=H.createElement(O,{className:Aw("".concat(s,"-placeholder"))},H.createElement(y3,{component:N,prefixCls:s},d));return H.createElement(p8.Provider,{value:E},x)})),y8=u3(b8),w8=function(e,t){var n=t.ref,r=t.onScroll;return H.createElement(y8,{ref:n,data:e,onScroll:r})};function S8(e,t){var n=e.columns,r=e.scroll,o=e.sticky,i=e.prefixCls,a=void 0===i?o8:i,l=e.className,c=e.listItemHeight,s=e.components,u=r||{},d=u.x,f=u.y;"number"!=typeof d&&(d=1),"number"!=typeof f&&(f=500);var p=OP((function(e,t){return oM(s,e)||t})),m=H.useMemo((function(){return{sticky:o,scrollY:f,listItemHeight:c,getComponent:p}}),[o,f,c,p]);return H.createElement(f8.Provider,{value:m},H.createElement(d8,kw({},e,{className:Aw(l,"".concat(a,"-virtual")),scroll:rS(rS({},r),{},{x:d}),components:rS(rS({},s),{},{body:w8}),columns:n,internalHooks:i3,tailor:!0,ref:t})))}var x8=H.forwardRef(S8);function C8(e){return s3(x8,e)}C8();var E8=H.createContext(null),k8=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,i="".concat(t,"-indent-unit"),a=[],l=0;l<n;l+=1)a.push(H.createElement("span",{key:l,className:Aw(i,Pw(Pw({},"".concat(i,"-start"),r[l]),"".concat(i,"-end"),o[l]))}));return H.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)};const $8=H.memo(k8);var O8=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],N8="open",_8="close",I8=function(e){q_(n,e);var t=Z_(n);function n(){var e;W_(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Pw(Y_(e=t.call.apply(t,[this].concat(o))),"state",{dragNodeHighlight:!1}),Pw(Y_(e),"selectHandle",void 0),Pw(Y_(e),"cacheIndent",void 0),Pw(Y_(e),"onSelectorClick",(function(t){(0,e.props.context.onNodeClick)(t,LZ(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)})),Pw(Y_(e),"onSelectorDoubleClick",(function(t){(0,e.props.context.onNodeDoubleClick)(t,LZ(e.props))})),Pw(Y_(e),"onSelect",(function(t){e.isDisabled()||(0,e.props.context.onNodeSelect)(t,LZ(e.props))})),Pw(Y_(e),"onCheck",(function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){var a=!o;i(t,LZ(e.props),a)}}})),Pw(Y_(e),"onMouseEnter",(function(t){(0,e.props.context.onNodeMouseEnter)(t,LZ(e.props))})),Pw(Y_(e),"onMouseLeave",(function(t){(0,e.props.context.onNodeMouseLeave)(t,LZ(e.props))})),Pw(Y_(e),"onContextMenu",(function(t){(0,e.props.context.onNodeContextMenu)(t,LZ(e.props))})),Pw(Y_(e),"onDragStart",(function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Y_(e));try{t.dataTransfer.setData("text/plain","")}catch(r){}})),Pw(Y_(e),"onDragEnter",(function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Y_(e))})),Pw(Y_(e),"onDragOver",(function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Y_(e))})),Pw(Y_(e),"onDragLeave",(function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Y_(e))})),Pw(Y_(e),"onDragEnd",(function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Y_(e))})),Pw(Y_(e),"onDrop",(function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Y_(e))})),Pw(Y_(e),"onExpand",(function(t){var n=e.props,r=n.loading,o=n.context.onNodeExpand;r||o(t,LZ(e.props))})),Pw(Y_(e),"setSelectHandle",(function(t){e.selectHandle=t})),Pw(Y_(e),"getNodeState",(function(){var t=e.props.expanded;return e.isLeaf()?null:t?N8:_8})),Pw(Y_(e),"hasChildren",(function(){var t=e.props.eventKey;return!!((IZ(e.props.context.keyEntities,t)||{}).children||[]).length})),Pw(Y_(e),"isLeaf",(function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)})),Pw(Y_(e),"isDisabled",(function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)})),Pw(Y_(e),"isCheckable",(function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n})),Pw(Y_(e),"syncLoadData",(function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,l=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&!o&&l(LZ(e.props))})),Pw(Y_(e),"isDraggable",(function(){var t=e.props,n=t.data,r=t.context.draggable;return!(!r||r.nodeDraggable&&!r.nodeDraggable(n))})),Pw(Y_(e),"renderDragHandler",(function(){var t=e.props.context,n=t.draggable,r=t.prefixCls;return null!=n&&n.icon?H.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null})),Pw(Y_(e),"renderSwitcherIconDom",(function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,o=n||r;return"function"==typeof o?o(rS(rS({},e.props),{},{isLeaf:t})):o})),Pw(Y_(e),"renderSwitcher",(function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var r=e.renderSwitcherIconDom(!0);return!1!==r?H.createElement("span",{className:Aw("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var o=Aw("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?N8:_8)),i=e.renderSwitcherIconDom(!1);return!1!==i?H.createElement("span",{onClick:e.onExpand,className:o},i):null})),Pw(Y_(e),"renderCheckbox",(function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,i=e.props.context.prefixCls,a=e.isDisabled(),l=e.isCheckable();if(!l)return null;var c="boolean"!=typeof l?l:null;return H.createElement("span",{className:Aw("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(a||o)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},c)})),Pw(Y_(e),"renderIcon",(function(){var t=e.props.loading,n=e.props.context.prefixCls;return H.createElement("span",{className:Aw("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})})),Pw(Y_(e),"renderSelector",(function(){var t,n,r=e.state.dragNodeHighlight,o=e.props,i=o.title,a=void 0===i?"---":i,l=o.selected,c=o.icon,s=o.loading,u=o.data,d=e.props.context,f=d.prefixCls,p=d.showIcon,m=d.icon,h=d.loadData,g=d.titleRender,v=e.isDisabled(),b="".concat(f,"-node-content-wrapper");if(p){var y=c||m;t=y?H.createElement("span",{className:Aw("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof y?y(e.props):y):e.renderIcon()}else h&&s&&(t=e.renderIcon());n="function"==typeof a?a(u):g?g(u):a;var w=H.createElement("span",{className:"".concat(f,"-title")},n);return H.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof a?a:"",className:Aw("".concat(b),"".concat(b,"-").concat(e.getNodeState()||"normal"),!v&&(l||r)&&"".concat(f,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,w,e.renderDropIndicator())})),Pw(Y_(e),"renderDropIndicator",(function(){var t=e.props,n=t.disabled,r=t.eventKey,o=e.props.context,i=o.draggable,a=o.dropLevelOffset,l=o.dropPosition,c=o.prefixCls,s=o.indent,u=o.dropIndicatorRender,d=o.dragOverNodeKey,f=o.direction,p=!n&&!!i&&d===r,m=null!=s?s:e.cacheIndent;return e.cacheIndent=s,p?u({dropPosition:l,dropLevelOffset:a,indent:m,prefixCls:c,direction:f}):null})),e}return U_(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,r=t.className,o=t.style,i=t.dragOver,a=t.dragOverGapTop,l=t.dragOverGapBottom,c=t.isLeaf,s=t.isStart,u=t.isEnd,d=t.expanded,f=t.selected,p=t.checked,m=t.halfChecked,h=t.loading,g=t.domRef,v=t.active;t.data;var b=t.onMouseMove,y=t.selectable,w=Tw(t,O8),S=this.props.context,x=S.prefixCls,C=S.filterTreeNode,E=S.keyEntities,k=S.dropContainerKey,$=S.dropTargetKey,O=S.draggingNodeKey,N=this.isDisabled(),_=yj(w,{aria:!0,data:!0}),I=(IZ(E,n)||{}).level,R=u[u.length-1],M=this.isDraggable(),P=!N&&M,T=O===n,j=void 0!==y?{"aria-selected":!!y}:void 0;return H.createElement("div",kw({ref:g,className:Aw(r,"".concat(x,"-treenode"),(e={},Pw(Pw(Pw(Pw(Pw(Pw(Pw(Pw(Pw(Pw(e,"".concat(x,"-treenode-disabled"),N),"".concat(x,"-treenode-switcher-").concat(d?"open":"close"),!c),"".concat(x,"-treenode-checkbox-checked"),p),"".concat(x,"-treenode-checkbox-indeterminate"),m),"".concat(x,"-treenode-selected"),f),"".concat(x,"-treenode-loading"),h),"".concat(x,"-treenode-active"),v),"".concat(x,"-treenode-leaf-last"),R),"".concat(x,"-treenode-draggable"),M),"dragging",T),Pw(Pw(Pw(Pw(Pw(Pw(e,"drop-target",$===n),"drop-container",k===n),"drag-over",!N&&i),"drag-over-gap-top",!N&&a),"drag-over-gap-bottom",!N&&l),"filter-node",C&&C(LZ(this.props))))),style:o,draggable:P,"aria-grabbed":T,onDragStart:P?this.onDragStart:void 0,onDragEnter:M?this.onDragEnter:void 0,onDragOver:M?this.onDragOver:void 0,onDragLeave:M?this.onDragLeave:void 0,onDrop:M?this.onDrop:void 0,onDragEnd:M?this.onDragEnd:void 0,onMouseMove:b},j,_),H.createElement($8,{prefixCls:x,level:I,isStart:s,isEnd:u}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(H.Component),R8=function(e){return H.createElement(E8.Consumer,null,(function(t){return H.createElement(I8,kw({},e,{context:t}))}))};function M8(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function P8(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function T8(e){return e.split("-")}function j8(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(IZ(t,e).children),n}function A8(e){if(e.parent){var t=T8(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function z8(e,t,n,r,o,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,h=p.height,g=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=IZ(l,n.props.eventKey);if(f<m+h/2){var y=a.findIndex((function(e){return e.key===b.key})),w=a[y<=0?0:y-1].key;b=IZ(l,w)}var S=b.key,x=b,C=b.key,E=0,k=0;if(!v.includes(S))for(var $=0;$<g&&A8(b);$+=1)b=b.parent,k+=1;var O,N=t.props.data,_=b.node,I=!0;return O=T8(b.pos),0===Number(O[O.length-1])&&0===b.level&&f<m+h/2&&i({dragNode:N,dropNode:_,dropPosition:-1})&&b.key===n.props.eventKey?E=-1:(x.children||[]).length&&v.includes(C)?i({dragNode:N,dropNode:_,dropPosition:0})?E=0:I=!1:0===k?g>-1.5?i({dragNode:N,dropNode:_,dropPosition:1})?E=1:I=!1:i({dragNode:N,dropNode:_,dropPosition:0})?E=0:i({dragNode:N,dropNode:_,dropPosition:1})?E=1:I=!1:i({dragNode:N,dropNode:_,dropPosition:1})?E=1:I=!1,{dropPosition:E,dropLevelOffset:k,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:C,dropContainerKey:0===E?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:I}}function D8(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function L8(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Rw(e))return CS(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function B8(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=IZ(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),aI(n)}R8.displayName="TreeNode",R8.isTreeNode=1;const F8={},H8="SELECT_ALL",W8="SELECT_INVERT",V8="SELECT_NONE",U8=[],K8=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(aI(n),aI(K8(e,t[e]))))})),n},q8=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:s,onSelectNone:u,onSelectMultiple:d,columnWidth:f,type:p,selections:m,fixed:h,renderCell:g,hideSelectAll:v,checkStrictly:b=!0}=t||{},{prefixCls:y,data:w,pageData:S,getRecordByKey:x,getRowKey:C,expandType:E,childrenColumnName:k,locale:$,getPopupContainer:O}=e,N=fM(),[_,I]=function(e){const[t,n]=H.useState(null);return[H.useCallback(((r,o,i)=>{const a=null!=t?t:r,l=Math.min(a||0,r),c=Math.max(a||0,r),s=o.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!i.has(e))),d=[];return s.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?c:null),d}),[t]),e=>{n(e)}]}((e=>e)),[R,M]=IP(r||o||U8,{value:r}),P=H.useRef(new Map),T=H.useCallback((e=>{if(n){const t=new Map;e.forEach((e=>{let n=x(e);!n&&P.current.has(e)&&(n=P.current.get(e)),t.set(e,n)})),P.current=t}}),[x,n]);H.useEffect((()=>{T(R)}),[R]);const{keyEntities:j}=H.useMemo((()=>{if(b)return{keyEntities:null};let e=w;if(n){const t=new Set(w.map(((e,t)=>C(e,t)))),n=Array.from(P.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat(aI(e),aI(n))}return zZ(e,{externalGetKey:C,childrenPropName:k})}),[w,C,b,k,n]),A=H.useMemo((()=>K8(k,S)),[k,S]),z=H.useMemo((()=>{const e=new Map;return A.forEach(((t,n)=>{const r=C(t,n),o=(i?i(t):null)||{};e.set(r,o)})),e}),[A,C,i]),D=H.useCallback((e=>{var t;return!!(null===(t=z.get(C(e)))||void 0===t?void 0:t.disabled)}),[z,C]),[L,B]=H.useMemo((()=>{if(b)return[R||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=HZ(R,!0,j,D);return[e||[],t]}),[R,b,j,D]),F=H.useMemo((()=>{const e="radio"===p?L.slice(0,1):L;return new Set(e)}),[L,p]),W=H.useMemo((()=>"radio"===p?new Set:new Set(B)),[B,p]);H.useEffect((()=>{t||M(U8)}),[!!t]);const V=H.useCallback(((e,t)=>{let r,o;T(e),n?(r=e,o=e.map((e=>P.current.get(e)))):(r=[],o=[],e.forEach((e=>{const t=x(e);void 0!==t&&(r.push(e),o.push(t))}))),M(r),null==a||a(r,o,{type:t})}),[M,x,a,n]),U=H.useCallback(((e,t,n,r)=>{if(l){const o=n.map((e=>x(e)));l(x(e),t,o,r)}V(n,"single")}),[l,x,V]),K=H.useMemo((()=>!m||v?null:(!0===m?[H8,W8,V8]:m).map((e=>e===H8?{key:"all",text:$.selectionAll,onSelect(){V(w.map(((e,t)=>C(e,t))).filter((e=>{const t=z.get(e);return!(null==t?void 0:t.disabled)||F.has(e)})),"all")}}:e===W8?{key:"invert",text:$.selectInvert,onSelect(){const e=new Set(F);S.forEach(((t,n)=>{const r=C(t,n),o=z.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);s&&(N.deprecated(!1,"onSelectInvert","onChange"),s(t)),V(t,"invert")}}:e===V8?{key:"none",text:$.selectNone,onSelect(){null==u||u(),V(Array.from(F).filter((e=>{const t=z.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(o)),I(null)}})))),[m,F,S,C,s,V]),q=H.useCallback((e=>{var n;if(!t)return e.filter((e=>e!==F8));let r=aI(e);const o=new Set(F),i=A.map(C).filter((e=>!z.get(e).disabled)),a=i.every((e=>o.has(e))),l=i.some((e=>o.has(e))),s=()=>{const e=[];a?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(!a,t.map((e=>x(e))),e.map((e=>x(e)))),V(t,"all"),I(null)};let u,w,S;if("radio"!==p){let e;if(K){const t={getPopupContainer:O,items:K.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(i)},label:r}}))};e=H.createElement("div",{className:`${y}-selection-extra`},H.createElement(Q0,{menu:t,getPopupContainer:O},H.createElement("span",null,H.createElement(Ox,null))))}const t=A.map(((e,t)=>{const n=C(e,t),r=z.get(n)||{};return Object.assign({checked:o.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===A.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),c=n&&t.some((e=>{let{checked:t}=e;return t}));w=H.createElement(eJ,{checked:n?r:!!A.length&&a,indeterminate:n?!r&&c:!a&&l,onChange:s,disabled:0===A.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),u=!v&&H.createElement("div",{className:`${y}-selection`},w,e)}if(S="radio"===p?(e,t,n)=>{const r=C(t,n),i=o.has(r);return{node:H.createElement(hY,Object.assign({},z.get(r),{checked:i,onClick:e=>e.stopPropagation(),onChange:e=>{o.has(r)||U(r,!0,[r],e.nativeEvent)}})),checked:i}}:(e,t,n)=>{var r;const a=C(t,n),l=o.has(a),c=W.has(a),s=z.get(a);let u;return u="nest"===E?c:null!==(r=null==s?void 0:s.indeterminate)&&void 0!==r?r:c,{node:H.createElement(eJ,Object.assign({},s,{indeterminate:u,checked:l,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=i.findIndex((e=>e===a)),c=L.some((e=>i.includes(e)));if(n&&b&&c){const e=_(r,i,o),t=Array.from(o);null==d||d(!l,t.map((e=>x(e))),e.map((e=>x(e)))),V(t,"multiple")}else{const e=L;if(b){const n=l?M8(e,a):P8(e,a);U(a,!l,n,t)}else{const n=HZ([].concat(aI(e),[a]),!0,j,D),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(l){const e=new Set(r);e.delete(a),i=HZ(Array.from(e),{checked:!1,halfCheckedKeys:o},j,D).checkedKeys}U(a,!l,i,t)}}I(l?null:r)}})),checked:l}},!r.includes(F8))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[A3])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,F8].concat(aI(t))}else r=[F8].concat(aI(r));const k=r.indexOf(F8);r=r.filter(((e,t)=>e!==F8||t===k));const $=r[k-1],N=r[k+1];let R=h;void 0===R&&(void 0!==(null==N?void 0:N.fixed)?R=N.fixed:void 0!==(null==$?void 0:$.fixed)&&(R=$.fixed)),R&&$&&"EXPAND_COLUMN"===(null===(n=$[A3])||void 0===n?void 0:n.columnType)&&void 0===$.fixed&&($.fixed=R);const M=m_(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:m&&"checkbox"===p}),P={fixed:R,width:f,className:`${y}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(w):t.columnTitle:u,render:(e,t,n)=>{const{node:r,checked:o}=S(e,t,n);return g?g(o,t,n,r):r},onCell:t.onCell,[A3]:{className:M}};return r.map((e=>e===F8?P:e))}),[C,A,t,L,F,W,f,K,E,z,d,U,D]);return[q,F]};function X8(e,t){return H.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}))}function G8(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Y8(e,t){return t?`${t}-${e}`:`${e}`}function Q8(e,t){return"function"==typeof e?e(t):e}function Z8(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var J8=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],e6=function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,s=e.active,u=e.treeNodeRequiredProps,d=Tw(e,J8),f=Iw(H.useState(!0),2),p=f[0],m=f[1],h=H.useContext(E8).prefixCls,g=i&&"hide"!==a;LI((function(){i&&g!==p&&m(g)}),[i]);var v=H.useRef(!1),b=function(){i&&!v.current&&(v.current=!0,c())};return function(e,t){var n=Iw(H.useState(!1),2),r=n[0],o=n[1];LI((function(){if(r)return e(),function(){t()}}),[r]),LI((function(){return o(!0),function(){o(!1)}}),[])}((function(){i&&l()}),b),i?H.createElement(VT,kw({ref:t,visible:p},o,{motionAppear:"show"===a,onVisibleChanged:function(e){g===e&&b()}}),(function(e,t){var n=e.className,r=e.style;return H.createElement("div",{ref:t,className:Aw("".concat(h,"-treenode-motion"),n),style:r},i.map((function(e){var t=Object.assign({},(Z8(e.data),e.data)),n=e.title,r=e.key,o=e.isStart,i=e.isEnd;delete t.children;var a=DZ(r,u);return H.createElement(R8,kw({},t,a,{title:n,active:s,data:e.data,key:r,isStart:o,isEnd:i}))})))})):H.createElement(R8,kw({domRef:t,className:n,style:r},d,{active:s}))};e6.displayName="MotionTreeNode";var t6=H.forwardRef(e6);function n6(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var r6=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],o6={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},i6=function(){},a6="RC_TREE_MOTION_".concat(Math.random()),l6={key:a6},c6={key:a6,level:0,index:0,pos:"0",node:l6,nodes:[l6]},s6={parent:null,children:[],pos:c6.pos,data:l6,title:null,key:a6,isStart:[],isEnd:[]};function u6(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function d6(e){return PZ(e.key,e.pos)}var f6=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,s=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,f=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,h=e.motion,g=e.height,v=e.itemHeight,b=e.virtual,y=e.focusable,w=e.activeItem,S=e.focused,x=e.tabIndex,C=e.onKeyDown,E=e.onFocus,k=e.onBlur,$=e.onActiveChange,O=e.onListChangeStart,N=e.onListChangeEnd,_=Tw(e,r6),I=H.useRef(null),R=H.useRef(null);H.useImperativeHandle(t,(function(){return{scrollTo:function(e){I.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}}));var M=Iw(H.useState(o),2),P=M[0],T=M[1],j=Iw(H.useState(r),2),A=j[0],z=j[1],D=Iw(H.useState(r),2),L=D[0],B=D[1],F=Iw(H.useState([]),2),W=F[0],V=F[1],U=Iw(H.useState(null),2),K=U[0],q=U[1],X=H.useRef(r);function G(){var e=X.current;z(e),B(e),V([]),q(null),N()}X.current=r,LI((function(){T(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!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)}}(P,o);if(null!==e.key)if(e.add){var t=A.findIndex((function(t){return t.key===e.key})),n=u6(n6(A,r,e.key),b,g,v),i=A.slice();i.splice(t+1,0,s6),B(i),V(n),q("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),l=u6(n6(r,A,e.key),b,g,v),c=r.slice();c.splice(a+1,0,s6),B(c),V(l),q("hide")}else A!==r&&(z(r),B(r))}),[o,r]),H.useEffect((function(){f||G()}),[f]);var Y=h?L:r,Q={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:c,checkedKeys:a,halfCheckedKeys:s,dragOverNodeKey:p,dropPosition:m,keyEntities:u};return H.createElement(H.Fragment,null,S&&w&&H.createElement("span",{style:o6,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(w)),H.createElement("div",null,H.createElement("input",{style:o6,disabled:!1===y||d,tabIndex:!1!==y?x:null,onKeyDown:C,onFocus:E,onBlur:k,value:"",onChange:i6,"aria-label":"for screen reader"})),H.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},H.createElement("div",{className:"".concat(n,"-indent")},H.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),H.createElement(sW,kw({},_,{data:Y,itemKey:d6,height:g,fullHeight:!1,virtual:b,itemHeight:v,prefixCls:"".concat(n,"-list"),ref:I,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return d6(e)===a6}))&&G()}}),(function(e){var t=e.pos,n=Object.assign({},(Z8(e.data),e.data)),r=e.title,o=e.key,i=e.isStart,a=e.isEnd,l=PZ(o,t);delete n.key,delete n.children;var c=DZ(l,Q);return H.createElement(t6,kw({},n,c,{title:r,active:!!w&&o===w.key,pos:t,data:e.data,isStart:i,isEnd:a,motion:h,motionNodes:o===a6?W:null,motionType:K,onMotionStart:O,onMotionEnd:G,treeNodeRequiredProps:Q,onMouseMove:function(){$(null)}}))})))}));f6.displayName="NodeList";var p6=function(e){q_(n,e);var t=Z_(n);function n(){var e;W_(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Pw(Y_(e=t.call.apply(t,[this].concat(o))),"destroyed",!1),Pw(Y_(e),"delayedDragEnterLogic",void 0),Pw(Y_(e),"loadingRetryTimes",{}),Pw(Y_(e),"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:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:TZ()}),Pw(Y_(e),"dragStartMousePosition",null),Pw(Y_(e),"dragNode",void 0),Pw(Y_(e),"currentMouseOverDroppableNodeKey",null),Pw(Y_(e),"listRef",H.createRef()),Pw(Y_(e),"onNodeDragStart",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,l=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=M8(o,l);e.setState({draggingNodeKey:l,dragChildrenKeys:j8(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:LZ(n.props)})})),Pw(Y_(e),"onNodeDragEnter",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,l=r.flattenNodes,c=r.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,p=s.direction,m=n.props,h=m.pos,g=m.eventKey,v=Y_(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==g&&(e.currentMouseOverDroppableNodeKey=g),v){var b=z8(t,v,n,c,e.dragStartMousePosition,f,l,i,o,p),y=b.dropPosition,w=b.dropLevelOffset,S=b.dropTargetKey,x=b.dropContainerKey,C=b.dropTargetPos,E=b.dropAllowed,k=b.dragOverNodeKey;-1===a.indexOf(S)&&E?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),v.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[h]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=aI(o),a=IZ(i,n.props.eventKey);a&&(a.children||[]).length&&(r=P8(o,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null==d||d(r,{node:LZ(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),v.props.eventKey!==S||0!==w?(e.setState({dragOverNodeKey:k,dropPosition:y,dropLevelOffset:w,dropTargetKey:S,dropContainerKey:x,dropTargetPos:C,dropAllowed:E}),null==u||u({event:t,node:LZ(n.props),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),Pw(Y_(e),"onNodeDragOver",(function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,c=r.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,f=s.direction,p=Y_(e).dragNode;if(p){var m=z8(t,p,n,c,e.dragStartMousePosition,d,i,a,l,f),h=m.dropPosition,g=m.dropLevelOffset,v=m.dropTargetKey,b=m.dropContainerKey,y=m.dropAllowed,w=m.dropTargetPos,S=m.dragOverNodeKey;-1===o.indexOf(v)&&y&&(p.props.eventKey===v&&0===g?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&g===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&b===e.state.dropContainerKey&&w===e.state.dropTargetPos&&y===e.state.dropAllowed&&S===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:g,dropTargetKey:v,dropContainerKey:b,dropTargetPos:w,dropAllowed:y,dragOverNodeKey:S}),null==u||u({event:t,node:LZ(n.props)}))}})),Pw(Y_(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:t,node:LZ(n.props)})})),Pw(Y_(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),Pw(Y_(e),"onNodeDragEnd",(function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:t,node:LZ(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),Pw(Y_(e),"onNodeDrop",(function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=rS(rS({},DZ(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:IZ(e.state.keyEntities,c).node});CS(!(-1!==a.indexOf(c)),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=T8(s),p={event:t,node:LZ(d),dragNode:e.dragNode?LZ(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(f[f.length-1])};o||null==u||u(p),e.dragNode=null}}})),Pw(Y_(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),Pw(Y_(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],s=LZ(rS(rS({},DZ(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?M8(o,l):P8(o,l)),e.onNodeExpand(t,s)}})),Pw(Y_(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),Pw(Y_(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),Pw(Y_(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(r=f?s?P8(r,d):[d]:M8(r,d)).map((function(e){var t=IZ(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),Pw(Y_(e),"onNodeCheck",(function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var m=r?P8(l,f):M8(l,f);o={checked:m,halfChecked:M8(c,f)},p.checkedNodes=m.map((function(e){return IZ(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var h=HZ([].concat(aI(l),[f]),!0,a),g=h.checkedKeys,v=h.halfCheckedKeys;if(!r){var b=new Set(g);b.delete(f);var y=HZ(Array.from(b),{checked:!1,halfCheckedKeys:v},a);g=y.checkedKeys,v=y.halfCheckedKeys}o=g,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,g.forEach((function(e){var t=IZ(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:v})}null==d||d(o,p)})),Pw(Y_(e),"onNodeLoad",(function(t){var n,r=t.key,o=IZ(e.state.keyEntities,r);if(null==o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise((function(n,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(r)&&-1===s.indexOf(r)?(d(t).then((function(){var o=P8(e.state.loadedKeys,r);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:M8(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:M8(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;CS(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:P8(i,r)}),n()}o(t)})),{loadingKeys:P8(s,r)}):null}))}));return i.catch((function(){})),i}})),Pw(Y_(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),Pw(Y_(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),Pw(Y_(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),Pw(Y_(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)})),Pw(Y_(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t||t.apply(void 0,r)})),Pw(Y_(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),Pw(Y_(e),"setExpandedKeys",(function(t){var n=e.state,r=AZ(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)})),Pw(Y_(e),"onNodeExpand",(function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,l=e.props,c=l.onExpand,s=l.loadData,u=n.expanded,d=n[a.key];if(!i){var f=r.indexOf(d),p=!u;if(CS(u&&-1!==f||!u&&-1===f,"Expand state not sync with index check"),r=p?P8(r,d):M8(r,d),e.setExpandedKeys(r),null==c||c(r,{node:n,expanded:p,nativeEvent:t.nativeEvent}),p&&s){var m=e.onNodeLoad(n);m&&m.then((function(){var t=AZ(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=M8(e.state.expandedKeys,d);e.setExpandedKeys(t)}))}}})),Pw(Y_(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),Pw(Y_(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),Pw(Y_(e),"onActiveChange",(function(t){var n=e.state.activeKey,r=e.props,o=r.onActiveChange,i=r.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==o||o(t))})),Pw(Y_(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null})),Pw(Y_(e),"offsetActiveKey",(function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)})),Pw(Y_(e),"onKeyDown",(function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,c=l.onKeyDown,s=l.checkable,u=l.selectable;switch(t.which){case Tj.UP:e.offsetActiveKey(-1),t.preventDefault();break;case Tj.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var f=e.getTreeNodeRequiredProps(),p=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,m=LZ(rS(rS({},DZ(r,f)),{},{data:d.data,active:!0}));switch(t.which){case Tj.LEFT:p&&o.includes(r)?e.onNodeExpand({},m):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case Tj.RIGHT:p&&!o.includes(r)?e.onNodeExpand({},m):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case Tj.ENTER:case Tj.SPACE:!s||m.disabled||!1===m.checkable||m.disableCheckbox?s||!u||m.disabled||!1===m.selectable||e.onNodeSelect({},m):e.onNodeCheck({},m,!i.includes(r))}}null==c||c(t)})),Pw(Y_(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState(rS(rS({},a),r))}})),Pw(Y_(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return U_(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,o=t.keyEntities,i=t.draggingNodeKey,a=t.activeKey,l=t.dropLevelOffset,c=t.dropContainerKey,s=t.dropTargetKey,u=t.dropPosition,d=t.dragOverNodeKey,f=t.indent,p=this.props,m=p.prefixCls,h=p.className,g=p.style,v=p.showLine,b=p.focusable,y=p.tabIndex,w=void 0===y?0:y,S=p.selectable,x=p.showIcon,C=p.icon,E=p.switcherIcon,k=p.draggable,$=p.checkable,O=p.checkStrictly,N=p.disabled,_=p.motion,I=p.loadData,R=p.filterTreeNode,M=p.height,P=p.itemHeight,T=p.virtual,j=p.titleRender,A=p.dropIndicatorRender,z=p.onContextMenu,D=p.onScroll,L=p.direction,B=p.rootClassName,F=p.rootStyle,W=yj(this.props,{aria:!0,data:!0});return k&&(e="object"===Rw(k)?k:"function"==typeof k?{nodeDraggable:k}:{}),H.createElement(E8.Provider,{value:{prefixCls:m,selectable:S,showIcon:x,icon:C,switcherIcon:E,draggable:e,draggingNodeKey:i,checkable:$,checkStrictly:O,disabled:N,keyEntities:o,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:s,dropPosition:u,dragOverNodeKey:d,indent:f,direction:L,dropIndicatorRender:A,loadData:I,filterTreeNode:R,titleRender:j,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}},H.createElement("div",{role:"tree",className:Aw(m,h,B,Pw(Pw(Pw({},"".concat(m,"-show-line"),v),"".concat(m,"-focused"),n),"".concat(m,"-active-focused"),null!==a)),style:F},H.createElement(f6,kw({ref:this.listRef,prefixCls:m,style:g,data:r,disabled:N,selectable:S,checkable:!!$,motion:_,dragging:null!==i,height:M,itemHeight:P,virtual:T,focusable:b,focused:n,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:z,onScroll:D},this.getTreeNodeRequiredProps(),W))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&t in e||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=TZ(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(CS(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=jZ(e.children)),n){o.treeData=n;var l=zZ(n,{fieldNames:a});o.keyEntities=rS(Pw({},a6,c6),l.keyEntities)}var c,s=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?B8(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=rS({},s);delete u[a6],o.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?B8(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var d=AZ(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=d}if(e.selectable&&(i("selectedKeys")?o.selectedKeys=D8(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=D8(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?c=L8(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=L8(e.defaultCheckedKeys)||{}:n&&(c=L8(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var f=c,p=f.checkedKeys,m=void 0===p?[]:p,h=f.halfCheckedKeys,g=void 0===h?[]:h;if(!e.checkStrictly){var v=HZ(m,!0,s);m=v.checkedKeys,g=v.halfCheckedKeys}o.checkedKeys=m,o.halfCheckedKeys=g}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(H.Component);Pw(p6,"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:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,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 H.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1}),Pw(p6,"TreeNode",R8);const m6=new tM("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),h6=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),g6=(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:`${PI(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),v6=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},PP(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},AP(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`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:m6,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${PI(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${PI(i)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},h6(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${PI(i)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{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(i).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(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${PI(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${PI(i)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${PI(i)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${PI(i)}`,userSelect:"none"},g6(e,t)),[`${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(i).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:`${PI(t.calc(i).div(2).equal())} !important`}}}}})}},b6=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},y6=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=KP(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[v6(e,i),b6(i)]},w6=tT("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:VZ(`${n}-checkbox`,e)},y6(n,e),XB(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function S6(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a="ltr"===i?"left":"right",l={[a]:-n*o+4,["ltr"===i?"right":"left"]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+4}return W.createElement("div",{style:l,className:`${r}-drop-indicator`})}const x6=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:l}=r;if(l)return H.createElement(SC,{className:`${t}-switcher-loading-icon`});let c;if(o&&"object"==typeof o&&(c=o.showLeafIcon),i){if(!o)return null;if("boolean"!=typeof c&&c){const e="function"==typeof c?c(r):c,n=`${t}-switcher-line-custom-icon`;return wj(e)?xj(e,{className:m_(e.props.className||"",n)}):e}return c?H.createElement(qx,{className:`${t}-switcher-line-icon`}):H.createElement("span",{className:`${t}-switcher-leaf-line`})}const s=`${t}-switcher-icon`,u="function"==typeof n?n(r):n;return wj(u)?xj(u,{className:m_(u.props.className||"",s)}):void 0!==u?u:o?a?H.createElement(MC,{className:`${t}-switcher-line-icon`}):H.createElement(KC,{className:`${t}-switcher-line-icon`}):H.createElement(WS,{className:s})},C6=W.forwardRef(((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=W.useContext(aP),{prefixCls:l,className:c,showIcon:s=!1,showLine:u,switcherIcon:d,blockNode:f=!1,children:p,checkable:m=!1,selectable:h=!0,draggable:g,motion:v,style:b}=e,y=r("tree",l),w=r(),S=null!=v?v:Object.assign(Object.assign({},BA(w)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:m,selectable:h,showIcon:s,motion:S,blockNode:f,showLine:Boolean(u),dropIndicatorRender:S6}),[C,E,k]=w6(y),[,$]=$P(),O=$.paddingXS/2+((null===(n=$.Tree)||void 0===n?void 0:n.titleHeight)||$.controlHeightSM),N=W.useMemo((()=>{if(!g)return!1;let e={};switch(typeof g){case"function":e.nodeDraggable=g;break;case"object":e=Object.assign({},g)}return!1!==e.icon&&(e.icon=e.icon||W.createElement(uC,null)),e}),[g]);return C(W.createElement(p6,Object.assign({itemHeight:O,ref:t,virtual:i},x,{style:Object.assign(Object.assign({},null==a?void 0:a.style),b),prefixCls:y,className:m_({[`${y}-icon-hide`]:!s,[`${y}-block-node`]:f,[`${y}-unselectable`]:!h,[`${y}-rtl`]:"rtl"===o},null==a?void 0:a.className,c,E,k),direction:o,checkable:m?W.createElement("span",{className:`${y}-checkbox-inner`}):m,selectable:h,switcherIcon:e=>W.createElement(x6,{prefixCls:y,switcherIcon:d,treeNodeProps:e,showLine:u}),draggable:N}),p))})),E6=C6;var k6;function $6(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const i=e[r],a=e[o];!1!==t(i,e)&&$6(a||[],t,n)}))}function O6(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=k6.None;return r&&r===o?[r]:r&&o?($6(t,(e=>{if(l===k6.End)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),l===k6.None)l=k6.Start;else if(l===k6.Start)return l=k6.End,!1}else l===k6.Start&&a.push(e);return n.includes(e)}),TZ(i)),a):[]}function N6(e,t,n){const r=aI(t),o=[];return $6(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),TZ(n)),o}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(k6||(k6={}));var _6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function I6(e){const{isLeaf:t,expanded:n}=e;return t?H.createElement(qx,null):n?H.createElement(oC,null):H.createElement(lC,null)}function R6(e){let{treeData:t,children:n}=e;return t||jZ(n)}const M6=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=_6(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=H.useRef(),l=H.useRef(),[c,s]=H.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[u,d]=H.useState((()=>(()=>{const{keyEntities:e}=zZ(R6(i));let t;return t=n?Object.keys(e):r?B8(i.expandedKeys||o||[],e):i.expandedKeys||o,t})()));H.useEffect((()=>{"selectedKeys"in i&&s(i.selectedKeys)}),[i.selectedKeys]),H.useEffect((()=>{"expandedKeys"in i&&d(i.expandedKeys)}),[i.expandedKeys]);const{getPrefixCls:f,direction:p}=H.useContext(aP),{prefixCls:m,className:h,showIcon:g=!0,expandAction:v="click"}=i,b=_6(i,["prefixCls","className","showIcon","expandAction"]),y=f("tree",m),w=m_(`${y}-directory`,{[`${y}-directory-rtl`]:"rtl"===p},h);return H.createElement(E6,Object.assign({icon:I6,ref:t,blockNode:!0},b,{showIcon:g,expandAction:v,prefixCls:y,className:w,expandedKeys:u,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=i,{node:c,nativeEvent:d}=t,{key:f=""}=c,p=R6(i),m=Object.assign(Object.assign({},t),{selected:!0}),h=(null==d?void 0:d.ctrlKey)||(null==d?void 0:d.metaKey),g=null==d?void 0:d.shiftKey;let v;r&&h?(v=e,a.current=f,l.current=v,m.selectedNodes=N6(p,v,o)):r&&g?(v=Array.from(new Set([].concat(aI(l.current||[]),aI(O6({treeData:p,expandedKeys:u,startKey:f,endKey:a.current,fieldNames:o}))))),m.selectedNodes=N6(p,v,o)):(v=[f],a.current=f,l.current=v,m.selectedNodes=N6(p,v,o)),null===(n=i.onSelect)||void 0===n||n.call(i,v,m),"selectedKeys"in i||s(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||d(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))},P6=H.forwardRef(M6),T6=E6;T6.DirectoryTree=P6,T6.TreeNode=R8;const j6=T6;function A6(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?H.createElement("div",{className:`${o}-filter-dropdown-search`},H.createElement(E0,{prefix:H.createElement(pE,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const z6=e=>{const{keyCode:t}=e;t===Tj.ENTER&&e.stopPropagation()},D6=H.forwardRef(((e,t)=>H.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:z6,ref:t},e.children))),L6=D6;function B6(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(aI(t),aI(B6(r))))})),t}function F6(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function H6(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map(((e,t)=>{const l=String(e.value);if(e.children)return{key:l||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:H6({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const c=o?eJ:hY,s={key:void 0!==e.value?l:t,label:H.createElement(H.Fragment,null,H.createElement(c,{checked:r.includes(l)}),H.createElement("span",null,e.text))};return i.trim()?"function"==typeof a?a(i,e)?s:null:F6(i,e.text)?s:null:s}))}function W6(e){return e||[]}function V6(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:l,filterMultiple:c,filterMode:s="menu",filterSearch:u=!1,filterState:d,triggerFilter:f,locale:p,children:m,getPopupContainer:h,rootClassName:g}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:b,filterResetToDefaultFilteredValue:y,defaultFilteredValue:w,filterDropdownVisible:S,onFilterDropdownVisibleChange:x}=i,[C,E]=H.useState(!1),k=!(!d||!(null===(t=d.filteredKeys)||void 0===t?void 0:t.length)&&!d.forceFiltered),$=e=>{E(e),null==b||b(e),null==x||x(e)},O=null!==(n=null!=v?v:S)&&void 0!==n?n:C,N=null==d?void 0:d.filteredKeys,[_,I]=function(e){const t=H.useRef(e),n=bV();return[()=>t.current,e=>{t.current=e,n()}]}(W6(N)),R=e=>{let{selectedKeys:t}=e;I(t)},M=(e,t)=>{let{node:n,checked:r}=t;R(c?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};H.useEffect((()=>{C&&R({selectedKeys:W6(N)})}),[N]);const[P,T]=H.useState([]),j=e=>{T(e)},[A,z]=H.useState(""),D=e=>{const{value:t}=e.target;z(t)};H.useEffect((()=>{C||z("")}),[C]);const L=e=>{const t=e&&e.length?e:null;return null!==t||d&&d.filteredKeys?mI(t,null==d?void 0:d.filteredKeys,!0)?null:void f({column:i,key:l,filteredKeys:t}):null},B=()=>{$(!1),L(_())},F=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&L([]),t&&$(!1),z(""),I(y?(w||[]).map((e=>String(e))):[])},W=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&$(!1),L(_())},V=m_({[`${a}-menu-without-submenu`]:(U=i.filters||[],!U.some((e=>{let{children:t}=e;return t})))});var U;const K=e=>{if(e.target.checked){const e=B6(null==i?void 0:i.filters).map((e=>String(e)));I(e)}else I([])},q=e=>{let{filters:t}=e;return(t||[]).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=q({filters:e.children})),r}))},X=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>X(e))))||[]})};let G,Y;if("function"==typeof i.filterDropdown)G=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:_(),confirm:W,clearFilters:F,filters:i.filters,visible:O,close:()=>{$(!1)}});else if(i.filterDropdown)G=i.filterDropdown;else{const e=_()||[],t=()=>0===(i.filters||[]).length?H.createElement(AW,{image:AW.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===s?H.createElement(H.Fragment,null,H.createElement(A6,{filterSearch:u,value:A,onChange:D,tablePrefixCls:r,locale:p}),H.createElement("div",{className:`${r}-filter-dropdown-tree`},c?H.createElement(eJ,{checked:e.length===B6(i.filters).length,indeterminate:e.length>0&&e.length<B6(i.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:K},p.filterCheckall):null,H.createElement(j6,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:`${a}-menu`,onCheck:M,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:q({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:A.trim()?e=>"function"==typeof u?u(A,X(e)):F6(A,e.title):void 0}))):H.createElement(H.Fragment,null,H.createElement(A6,{filterSearch:u,value:A,onChange:D,tablePrefixCls:r,locale:p}),H.createElement(vq,{selectable:!0,multiple:c,prefixCls:`${a}-menu`,className:V,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:h,openKeys:P,onOpenChange:j,items:H6({filters:i.filters||[],filterSearch:u,prefixCls:o,filteredKeys:_(),filterMultiple:c,searchValue:A})})),n=()=>y?mI((w||[]).map((e=>String(e))),e,!0):0===e.length;G=H.createElement(H.Fragment,null,t(),H.createElement("div",{className:`${o}-dropdown-btns`},H.createElement(rD,{type:"link",size:"small",disabled:n(),onClick:()=>F()},p.filterReset),H.createElement(rD,{type:"primary",size:"small",onClick:B},p.filterConfirm)))}i.filterDropdown&&(G=H.createElement(tq,{selectable:void 0},G)),Y="function"==typeof i.filterIcon?i.filterIcon(k):i.filterIcon?i.filterIcon:H.createElement(tC,null);const{direction:Q}=H.useContext(aP);return H.createElement("div",{className:`${o}-column`},H.createElement("span",{className:`${r}-column-title`},m),H.createElement(Q0,{dropdownRender:()=>H.createElement(L6,{className:`${o}-dropdown`},G),trigger:["click"],open:O,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==N&&I(W6(N)),$(e),e||i.filterDropdown||B())},getPopupContainer:h,placement:"rtl"===Q?"bottomLeft":"bottomRight",rootClassName:g},H.createElement("span",{role:"button",tabIndex:-1,className:m_(`${o}-trigger`,{active:k}),onClick:e=>{e.stopPropagation()}},Y)))}function U6(e,t,n){let r=[];return(e||[]).forEach(((e,o)=>{var i;const a=Y8(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:G8(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:G8(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(aI(r),aI(U6(e.children,t,a))))})),r}function K6(e,t,n,r,o,i,a,l,c){return n.map(((n,s)=>{const u=Y8(s,l),{filterMultiple:d=!0,filterMode:f,filterSearch:p}=n;let m=n;if(m.filters||m.filterDropdown){const l=G8(m,u),s=r.find((e=>{let{key:t}=e;return l===t}));m=Object.assign(Object.assign({},m),{title:r=>H.createElement(V6,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:l,filterState:s,filterMultiple:d,filterMode:f,filterSearch:p,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:c},Q8(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:K6(e,t,m.children,r,o,i,a,u,c)})),m}))}function q6(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const i=n,{filters:a,filterDropdown:l}=o;if(l)t[i]=r||null;else if(Array.isArray(r)){const e=B6(a);t[i]=e.filter((e=>r.includes(String(e))))}else t[i]=null})),t}function X6(e,t,n){return t.reduce(((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((r=>{const a=B6(i),l=a.findIndex((e=>String(e)===String(r))),c=-1!==l?a[l]:r;return e[n]&&(e[n]=X6(e[n],t,n)),o(c,e)})))):e}),e)}const G6=e=>e.flatMap((e=>"children"in e?[e].concat(aI(G6(e.children||[]))):[e]));function Y6(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e;fM();const c=H.useMemo((()=>G6(r||[])),[r]),[s,u]=H.useState((()=>U6(c,!0))),d=H.useMemo((()=>{const e=U6(c,!1);if(0===e.length)return e;let t=!0;if(e.forEach((e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)})),t){const e=(c||[]).map(((e,t)=>G8(e,Y8(t))));return s.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=c[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[c,s]),f=H.useMemo((()=>q6(d)),[d]),p=e=>{const t=d.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),u(t),o(q6(t),t)};return[e=>K6(t,n,e,d,a,p,i,void 0,l),d,f]}var Q6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Z6=10,J6="ascend",e5="descend";function t5(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function n5(e){return"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare}function r5(e,t,n){let r=[];function o(e,t){r.push({column:e,key:G8(e,t),multiplePriority:t5(e),sortOrder:e.sortOrder})}return(e||[]).forEach(((e,i)=>{const a=Y8(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(aI(r),aI(r5(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:G8(e,a),multiplePriority:t5(e),sortOrder:e.defaultSortOrder}))})),r}function o5(e,t,n,r,o,i,a,l){return(t||[]).map(((t,c)=>{const s=Y8(c,l);let u=t;if(u.sorter){const l=u.sortDirections||o,c=void 0===u.showSorterTooltip?a:u.showSorterTooltip,d=G8(u,s),f=n.find((e=>{let{key:t}=e;return t===d})),p=f?f.sortOrder:null,m=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(l,p);let h;if(t.sortIcon)h=t.sortIcon({sortOrder:p});else{const t=l.includes(J6)&&H.createElement(GS,{className:m_(`${e}-column-sorter-up`,{active:p===J6})}),n=l.includes(e5)&&H.createElement(KS,{className:m_(`${e}-column-sorter-down`,{active:p===e5})});h=H.createElement("span",{className:m_(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},H.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:g,triggerAsc:v,triggerDesc:b}=i||{};let y=g;m===e5?y=b:m===J6&&(y=v);const w="object"==typeof c?Object.assign({title:y},c):{title:y};u=Object.assign(Object.assign({},u),{className:m_(u.className,{[`${e}-column-sort`]:p}),title:n=>{const r=H.createElement("div",{className:`${e}-column-sorters`},H.createElement("span",{className:`${e}-column-title`},Q8(t.title,n)),h);return c?H.createElement(nU,Object.assign({},w),r):r},onHeaderCell:n=>{const o=t.onHeaderCell&&t.onHeaderCell(n)||{},i=o.onClick,a=o.onKeyDown;o.onClick=e=>{r({column:t,key:d,sortOrder:m,multiplePriority:t5(t)}),null==i||i(e)},o.onKeyDown=e=>{e.keyCode===Tj.ENTER&&(r({column:t,key:d,sortOrder:m,multiplePriority:t5(t)}),null==a||a(e))};const l=function(e,t){const n=Q8(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(t.title,{}),c=null==l?void 0:l.toString();return p?o["aria-sort"]="ascend"===p?"ascending":"descending":o["aria-label"]=c||"",o.className=m_(o.className,`${e}-column-has-sorters`),o.tabIndex=0,t.ellipsis&&(o.title=(null!=l?l:"").toString()),o}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:o5(e,u.children,n,r,o,i,a,s)})),u}))}function i5(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function a5(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(i5);return 0===t.length&&e.length?Object.assign(Object.assign({},i5(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function l5(e,t,n){const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),i=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return n5(t)&&n}));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=n5(o);if(l&&a){const n=l(e,t,a);if(0!==n)return a===J6?n:-n}}return 0})).map((e=>{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:l5(r,t,n)}):e})):o}function c5(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=Q8(e.title,t),"children"in n&&(n.children=c5(n.children,t)),n}))}function s5(e){return[H.useCallback((t=>c5(t,e)),[e])]}const u5=u8(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),d5=C8(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),f5=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${PI(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${PI(c(r).mul(-1).equal())}\n ${PI(c(c(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${PI(c(a).mul(-1).equal())} ${PI(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,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("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${PI(n)} 0 ${PI(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},p5=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},MP),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},m5=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},h5=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,w=`${PI(o)} ${a} ${l}`,S=y(m).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${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`]:Object.assign(Object.assign({},RP(e)),{position:"relative",float:"left",boxSizing:"border-box",width:g,height:g,padding:0,color:"inherit",lineHeight:PI(g),background:c,border:w,borderRadius:u,transform:`scale(${b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:v,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:h,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${PI(y(d).mul(-1).equal())} ${PI(y(f).mul(-1).equal())}`,padding:`${PI(d)} ${PI(f)}`}}}},g5=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:S,tableFilterDropdownHeight:x,controlItemBgHover:C,controlItemBgActive:E,boxShadowSecondary:k,filterDropdownMenuBg:$,calc:O}=e,N=`${n}-dropdown`,_=`${t}-filter-dropdown`,I=`${n}-tree`,R=`${PI(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:O(a).mul(-1).equal(),marginInline:`${PI(a)} ${PI(O(m).div(2).mul(-1).equal())}`,padding:`0 ${PI(a)}`,color:f,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[_]:Object.assign(Object.assign({},PP(e)),{minWidth:o,backgroundColor:S,borderRadius:h,boxShadow:k,overflow:"hidden",[`${N}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:$,"&:empty::after":{display:"block",padding:`${PI(l)} 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${_}-tree`]:{paddingBlock:`${PI(l)} 0`,paddingInline:l,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:C},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${_}-search`]:{padding:l,borderBottom:R,"&-input":{input:{minWidth:i},[r]:{color:w}}},[`${_}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${_}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${PI(O(l).sub(s).equal())} ${PI(l)}`,overflow:"hidden",borderTop:R}})}},{[`${n}-dropdown ${_}, ${_}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},v5=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},b5=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${PI(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},y5=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${PI(n)} ${PI(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,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${PI(n)} ${PI(n)}`}}}}},w5=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},S5=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(i).div(4)).add(m(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:e.zIndexTableFixed+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:PI(m(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},x5=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:`${PI(o)} ${PI(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:PI(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${PI(r(o).mul(-1).equal())} ${PI(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:PI(r(o).mul(-1).equal()),marginInline:`${PI(r(n).sub(i).equal())} ${PI(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:PI(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},C5=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}`,"&: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},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${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}}}},E5=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${PI(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${PI(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},k5=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${PI(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 ${PI(o(n).mul(-1).equal())} 0 ${r}`}}}},$5=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${PI(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${PI(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}}}}}},O5=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:v,calc:b}=e,y=`${PI(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},PP(e)),{fontSize:s,background:u,borderRadius:`${PI(d)} ${PI(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${PI(d)} ${PI(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:`${PI(r)} ${PI(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${PI(r)} ${PI(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:PI(b(r).mul(-1).equal()),marginInline:`${PI(b(i).sub(o).equal())}\n ${PI(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${PI(r)} ${PI(o)}`,color:g,background:v}})}},N5=tT("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:w,footerBg:S,footerColor:x,headerBorderRadius:C,cellFontSize:E,cellFontSizeMD:k,cellFontSizeSM:$,headerSplitColor:O,fixedHeaderSortActiveBg:N,headerFilterHoverBg:_,filterDropdownBg:I,expandIconBg:R,selectionColumnWidth:M,stickyScrollBarBg:P,calc:T}=e,j=KP(e,{tableFontSize:E,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:x,tableFooterBg:S,tableHeaderCellSplitColor:O,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:_,tableFilterDropdownBg:I,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:k,tableFontSizeSmall:$,tableSelectionColumnWidth:M,tableExpandIconBg:R,tableExpandColumnWidth:T(o).add(T(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[O5(j),b5(j),k5(j),C5(j),g5(j),f5(j),y5(j),h5(j),k5(j),m5(j),S5(j),v5(j),E5(j),p5(j),x5(j),w5(j),$5(j)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:w,opacityLoading:S,controlInteractiveSize:x}=e,C=new XM(o).onBackground(n).toHexShortString(),E=new XM(i).onBackground(n).toHexShortString(),k=new XM(t).onBackground(n).toHexShortString(),$=new XM(y),O=new XM(w),N=x/2-b,_=2*N+3*b;return{headerBg:k,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:E,bodySortBg:k,rowHoverBg:k,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:k,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*v-3*b)/2-Math.ceil((1.4*g-3*b)/2),headerIconColor:$.clone().setAlpha($.getAlpha()*S).toRgbString(),headerIconHoverColor:O.clone().setAlpha(O.getAlpha()*S).toRgbString(),expandIconHalfInner:N,expandIconSize:_,expandIconScale:x/_}}),{unitless:{expandIconScale:!0}}),_5=[],I5=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:l,size:c,bordered:s,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:m="key",rowClassName:h,columns:g,children:v,childrenColumnName:b,onChange:y,getPopupContainer:w,loading:S,expandIcon:x,expandable:C,expandedRowRender:E,expandIconColumnIndex:k,indentSize:$,scroll:O,sortDirections:N,locale:_,showSorterTooltip:I=!0,virtual:R}=e;fM();const M=H.useMemo((()=>g||q3(v)),[g,v]),P=yV(H.useMemo((()=>M.some((e=>e.responsive))),[M])),T=H.useMemo((()=>{const e=new Set(Object.keys(P).filter((e=>P[e])));return M.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[M,P]),j=oI(e,["className","style","columns"]),{locale:A=bM,direction:z,table:D,renderEmpty:L,getPrefixCls:B,getPopupContainer:F}=H.useContext(aP),W=YA(c),V=Object.assign(Object.assign({},A.Table),_),U=d||_5,K=B("table",o),q=B("dropdown",u),[,X]=$P(),G=Pj(K),[Y,Q,Z]=N5(K,G),J=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:k},C),{expandIcon:null!==(n=null==C?void 0:C.expandIcon)&&void 0!==n?n:null===(r=null==D?void 0:D.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:ee="children"}=J,te=H.useMemo((()=>U.some((e=>null==e?void 0:e[ee]))?"nest":E||C&&C.expandedRowRender?"row":null),[U]),ne={body:H.useRef()},re=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(K),oe=H.useRef(null),ie=H.useRef(null);X8(t,(()=>Object.assign(Object.assign({},ie.current),{nativeElement:oe.current})));const ae=H.useMemo((()=>"function"==typeof m?m:e=>null==e?void 0:e[m]),[m]),[le]=function(e,t,n){const r=H.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const i=new Map;function a(e){e.forEach(((e,r)=>{const o=n(e,r);i.set(o,e),e&&"object"==typeof e&&t in e&&a(e[t]||[])}))}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]}(U,ee,ae),ce={},se=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i;const a=Object.assign(Object.assign({},ce),e);n&&(null===(r=ce.resetPagination)||void 0===r||r.call(ce),(null===(o=a.pagination)||void 0===o?void 0:o.current)&&(a.pagination.current=1),f&&f.onChange&&f.onChange(1,null===(i=a.pagination)||void 0===i?void 0:i.pageSize)),O&&!1!==O.scrollToFirstRowOnChange&&ne.body.current&&Mj(0,{getContainer:()=>ne.body.current}),null==y||y(a.pagination,a.filters,a.sorter,{currentDataSource:X6(l5(U,a.sorterStates,ee),a.filterStates,ee),action:t})},[ue,de,fe,pe]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,c]=H.useState(r5(n,!0)),s=H.useMemo((()=>{let e=!0;const t=r5(n,!1);if(!t.length)return l;const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},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,l]),u=H.useMemo((()=>{const e=s.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[s]);function d(e){let t;t=!1!==e.multiplePriority&&s.length&&!1!==s[0].multiplePriority?[].concat(aI(s.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),r(a5(t),t)}return[e=>o5(t,e,s,d,o,i,a),s,u,()=>a5(s)]}({prefixCls:K,mergedColumns:T,onSorterChange:(e,t)=>{se({sorter:e,sorterStates:t},"sort",!1)},sortDirections:N||["ascend","descend"],tableLocale:V,showSorterTooltip:I}),me=H.useMemo((()=>l5(U,de,ee)),[U,de]);ce.sorter=pe(),ce.sorterStates=de;const[he,ge,ve]=Y6({prefixCls:K,locale:V,dropdownPrefixCls:q,mergedColumns:T,onFilterChange:(e,t)=>{se({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||F,rootClassName:m_(a,G)}),be=X6(me,ge,ee);ce.filters=ve,ce.filterStates=ge;const ye=H.useMemo((()=>{const e={};return Object.keys(ve).forEach((t=>{null!==ve[t]&&(e[t]=ve[t])})),Object.assign(Object.assign({},fe),{filters:e})}),[fe,ve]),[we]=s5(ye),[Se,xe]=function(e,t,n){const r=n&&"object"==typeof n?n:{},{total:o=0}=r,i=Q6(r,["total"]),[a,l]=H.useState((()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Z6}))),c=x2(a,i,{total:o>0?o:e}),s=Math.ceil((o||e)/c.pageSize);c.current>s&&(c.current=s||1);const u=(e,t)=>{l({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),u(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),u]}(be.length,((e,t)=>{se({pagination:Object.assign(Object.assign({},ce.pagination),{current:e,pageSize:t})},"paginate")}),f);ce.pagination=!1===f?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)})),n}(Se,f),ce.resetPagination=xe;const Ce=H.useMemo((()=>{if(!1===f||!Se.pageSize)return be;const{current:e=1,total:t,pageSize:n=Z6}=Se;return be.length<t?be.length>n?be.slice((e-1)*n,e*n):be:be.slice((e-1)*n,e*n)}),[!!f,be,Se&&Se.current,Se&&Se.pageSize,Se&&Se.total]),[Ee,ke]=q8({prefixCls:K,data:be,pageData:Ce,getRowKey:ae,getRecordByKey:le,expandType:te,childrenColumnName:ee,locale:V,getPopupContainer:w||F},p);J.__PARENT_RENDER_ICON__=J.expandIcon,J.expandIcon=J.expandIcon||x||function(e){return function(t){let{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t;const l=`${n}-row-expand-icon`;return H.createElement("button",{type:"button",onClick:e=>{r(o,e),e.stopPropagation()},className:m_(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}(V),"nest"===te&&void 0===J.expandIconColumnIndex?J.expandIconColumnIndex=p?1:0:J.expandIconColumnIndex>0&&p&&(J.expandIconColumnIndex-=1),"number"!=typeof J.indentSize&&(J.indentSize="number"==typeof $?$:15);const $e=H.useCallback((e=>we(Ee(he(ue(e))))),[ue,he,Ee]);let Oe,Ne,_e;if(!1!==f&&(null==Se?void 0:Se.total)){let e;e=Se.size?Se.size:"small"===W||"middle"===W?"small":void 0;const t=t=>H.createElement(q2,Object.assign({},Se,{className:m_(`${K}-pagination ${K}-pagination-${t}`,Se.className),size:e})),n="rtl"===z?"left":"right",{position:r}=Se;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||o||i||(Ne=t(n)),e&&(Oe=t(e.toLowerCase().replace("top",""))),o&&(Ne=t(o.toLowerCase().replace("bottom","")))}else Ne=t(n)}"boolean"==typeof S?_e={spinning:S}:"object"==typeof S&&(_e=Object.assign({spinning:!0},S));const Ie=m_(Z,G,`${K}-wrapper`,null==D?void 0:D.className,{[`${K}-wrapper-rtl`]:"rtl"===z},i,a,Q),Re=Object.assign(Object.assign({},null==D?void 0:D.style),l),Me=_&&_.emptyText||(null==L?void 0:L("Table"))||H.createElement(zW,{componentName:"Table"}),Pe=R?d5:u5,Te={},je=H.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=X,i=Math.floor(e*t);switch(W){case"large":return 2*n+i;case"small":return 2*r+i;default:return 2*o+i}}),[X,W]);return R&&(Te.listItemHeight=je),Y(H.createElement("div",{ref:oe,className:Ie,style:Re},H.createElement(t4,Object.assign({spinning:!1},_e),Oe,H.createElement(Pe,Object.assign({},Te,j,{ref:ie,columns:T,direction:z,expandable:J,prefixCls:K,className:m_({[`${K}-middle`]:"middle"===W,[`${K}-small`]:"small"===W,[`${K}-bordered`]:s,[`${K}-empty`]:0===U.length},Z,G,Q),data:Ce,rowKey:ae,rowClassName:(e,t,n)=>{let r;return r=m_("function"==typeof h?h(e,t,n):h),m_({[`${K}-row-selected`]:ke.has(ae(e,t))},r)},emptyText:Me,internalHooks:i3,internalRefs:ne,transformColumns:$e,getContainerWidth:re})),Ne)))},R5=H.forwardRef(I5),M5=(e,t)=>{const n=H.useRef(0);return n.current+=1,H.createElement(R5,Object.assign({},e,{ref:t,_renderTimes:n.current}))},P5=H.forwardRef(M5);P5.SELECTION_COLUMN=F8,P5.EXPAND_COLUMN=o3,P5.SELECTION_ALL=H8,P5.SELECTION_INVERT=W8,P5.SELECTION_NONE=V8,P5.Column=function(e){return null},P5.ColumnGroup=function(e){return null},P5.Summary=k3,e("T",P5);const T5=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return KP(e,{tagFontSize:o,tagLineHeight:PI(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},j5=e=>({defaultBg:new XM(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),A5=tT("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]:Object.assign(Object.assign({},PP(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${PI(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.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-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}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(T5(e))),j5);var z5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const D5=H.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,c=z5(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:s,tag:u}=H.useContext(aP),d=s("tag",n),[f,p,m]=A5(d),h=m_(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},null==u?void 0:u.className,o,p,m);return f(H.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),null==u?void 0:u.style),className:h,onClick:e=>{null==a||a(!i),null==l||l(e)}})))})),L5=D5,B5=JP(["Tag","preset"],(e=>(e=>nT(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(T5(e))),j5),F5=(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}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},H5=JP(["Tag","status"],(e=>{const t=T5(e);return[F5(t,"success","Success"),F5(t,"processing","Info"),F5(t,"error","Error"),F5(t,"warning","Warning")]}),j5);var W5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const V5=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:c,onClose:s,closeIcon:u,closable:d,bordered:f=!0}=e,p=W5(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:m,direction:h,tag:g}=H.useContext(aP),[v,b]=H.useState(!0);H.useEffect((()=>{"visible"in p&&b(p.visible)}),[p.visible]);const y=QV(c),w=function(e){return YV.includes(e)}(c),S=y||w,x=Object.assign(Object.assign({backgroundColor:c&&!S?c:void 0},null==g?void 0:g.style),i),C=m("tag",n),[E,k,$]=A5(C),O=m_(C,null==g?void 0:g.className,{[`${C}-${c}`]:S,[`${C}-has-color`]:c&&!S,[`${C}-hidden`]:!v,[`${C}-rtl`]:"rtl"===h,[`${C}-borderless`]:!f},r,o,k,$),N=e=>{e.stopPropagation(),null==s||s(e),e.defaultPrevented||b(!1)},[,_]=jD(d,null!=u?u:null==g?void 0:g.closeIcon,(e=>null===e?H.createElement(ux,{className:`${C}-close-icon`,onClick:N}):H.createElement("span",{className:`${C}-close-icon`,onClick:N},e)),null,!1),I="function"==typeof p.onClick||a&&"a"===a.type,R=l||null,M=R?H.createElement(H.Fragment,null,R,a&&H.createElement("span",null,a)):a,P=H.createElement("span",Object.assign({},p,{ref:t,className:O,style:x}),M,_,y&&H.createElement(B5,{key:"preset",prefixCls:C}),w&&H.createElement(H5,{key:"status",prefixCls:C}));return E(I?H.createElement(GA,{component:"Tag"},P):P)},U5=H.forwardRef(V5);U5.CheckableTag=L5,e("J",U5);const K5=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(CS(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};function q5(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(Ij){return t}}function X5(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),q5(t)):e.onSuccess(q5(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var G5=function(e,t,n){var r=function e(r,o){r&&(r.path=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),o.length?e():t(r)}))}()}(r,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(r.name,"/"))}))})))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},Y5=+new Date,Q5=0;function Z5(){return"rc-upload-".concat(Y5,"-").concat(++Q5)}var J5=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],e7=function(e){q_(n,e);var t=Z_(n);function n(){var e;W_(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Pw(Y_(e=t.call.apply(t,[this].concat(o))),"state",{uid:Z5()}),Pw(Y_(e),"reqs",{}),Pw(Y_(e),"fileInput",void 0),Pw(Y_(e),"_isMounted",void 0),Pw(Y_(e),"onChange",(function(t){var n=e.props,r=n.accept,o=n.directory,i=aI(t.target.files).filter((function(e){return!o||K5(e,r)}));e.uploadFiles(i),e.reset()})),Pw(Y_(e),"onClick",(function(t){var n=e.fileInput;if(n){var r=t.target,o=e.props.onClick;r&&"BUTTON"===r.tagName&&(n.parentNode.focus(),r.blur()),n.click(),o&&o(t)}})),Pw(Y_(e),"onKeyDown",(function(t){"Enter"===t.key&&e.onClick(t)})),Pw(Y_(e),"onFileDrop",(function(t){var n=e.props.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.props.directory)G5(Array.prototype.slice.call(t.dataTransfer.items),e.uploadFiles,(function(t){return K5(t,e.props.accept)}));else{var r=aI(t.dataTransfer.files).filter((function(t){return K5(t,e.props.accept)}));!1===n&&(r=r.slice(0,1)),e.uploadFiles(r)}})),Pw(Y_(e),"uploadFiles",(function(t){var n=aI(t),r=n.map((function(t){return t.uid=Z5(),e.processFile(t,n)}));Promise.all(r).then((function(t){var n=e.props.onBatchStart;null==n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))})),Pw(Y_(e),"processFile",function(){var t=SA(yA().mark((function t(n,r){var o,i,a,l,c,s,u,d,f;return yA().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!=typeof(c=e.props.data)){t.next=29;break}return t.next=26,c(n);case 26:s=t.sent,t.next=30;break;case 29:s=c;case 30:return u="object"!==Rw(i)&&"string"!=typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(f=d).uid=n.uid,t.abrupt("return",{origin:n,data:s,parsedFile:f,action:l});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}()),Pw(Y_(e),"saveFileInput",(function(t){e.fileInput=t})),e}return U_(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,c=a.customRequest,s=a.name,u=a.headers,d=a.withCredentials,f=a.method,p=r.uid,m=c||X5,h={action:o,filename:s,data:n,file:i,headers:u,withCredentials:d,method:f||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,i,n),delete t.reqs[p]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,i),delete t.reqs[p]}};l(r),this.reqs[p]=m(h)}}},{key:"reset",value:function(){this.setState({uid:Z5()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,r=t.prefixCls,o=t.className,i=t.classNames,a=void 0===i?{}:i,l=t.disabled,c=t.id,s=t.style,u=t.styles,d=void 0===u?{}:u,f=t.multiple,p=t.accept,m=t.capture,h=t.children,g=t.directory,v=t.openFileDialogOnClick,b=t.onMouseEnter,y=t.onMouseLeave,w=t.hasControlInside,S=Tw(t,J5),x=Aw((Pw(e={},r,!0),Pw(e,"".concat(r,"-disabled"),l),Pw(e,o,o),e)),C=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},E=l?{}:{onClick:v?this.onClick:function(){},onKeyDown:v?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:y,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:w?void 0:"0"};return W.createElement(n,kw({},E,{className:x,role:w?void 0:"button",style:s}),W.createElement("input",kw({},yj(S,{aria:!0,data:!0}),{id:c,disabled:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:rS({display:"none"},d.input),className:a.input,accept:p},C,{multiple:f,onChange:this.onChange},null!=m?{capture:m}:{})),h)}}]),n}(H.Component);function t7(){}var n7=function(e){q_(n,e);var t=Z_(n);function n(){var e;W_(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Pw(Y_(e=t.call.apply(t,[this].concat(o))),"uploader",void 0),Pw(Y_(e),"saveUploader",(function(t){e.uploader=t})),e}return U_(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return W.createElement(e7,kw({},this.props,{ref:this.saveUploader}))}}]),n}(H.Component);Pw(n7,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:t7,onError:t7,onSuccess:t7,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const r7=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${PI(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${PI(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${PI(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},o7=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i,calc:a}=e,l=`${t}-list-item`,c=`${l}-actions`,s=`${l}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},MP),{padding:`0 ${PI(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{[s]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${s}:focus-visible,\n &.picture ${s}\n `]:{opacity:1},[`${s}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},i7=new tM("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),a7=new tM("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),l7=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:i7},[`${n}-leave`]:{animationName:a7}}},{[`${t}-wrapper`]:hB(e)},i7,a7]},c7=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${PI(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},MP),{width:r,height:r,lineHeight:PI(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${PI(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${tS[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${tS.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},s7=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:c,height:c,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${PI(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{[`${a}-item-container`]:{display:"inline-block",width:c,height:c,marginBlock:`0 ${PI(e.marginXS)}`,marginInline:`0 ${PI(e.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${PI(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${PI(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${PI(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${PI(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${PI(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},u7=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},d7=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},PP(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},f7=tT("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=KP(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[d7(a),r7(a),c7(a),s7(a),o7(a),l7(a),u7(a),XB(a)]}),(e=>({actionsColor:e.colorTextDescription})));function p7(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function m7(e,t){const n=aI(t),r=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function h7(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const g7=e=>0===e.indexOf("image/"),v7=e=>{if(e.type&&!e.thumbUrl)return g7(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},b7=200;function y7(e){return new Promise((t=>{if(!e.type||!g7(e.type))return void t("");const n=document.createElement("canvas");n.width=b7,n.height=b7,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=b7,l=b7,c=0,s=0;e>i?(l=i*(b7/e),s=-(l-a)/2):(a=e*(b7/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}const w7=H.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:l,items:c,progress:s,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:g,previewIcon:v,removeIcon:b,downloadIcon:y,onPreview:w,onDownload:S,onClose:x}=e;var C,E;const{status:k}=l,[$,O]=H.useState(k);H.useEffect((()=>{"removed"!==k&&O(k)}),[k]);const[N,_]=H.useState(!1);H.useEffect((()=>{const e=setTimeout((()=>{_(!0)}),300);return()=>{clearTimeout(e)}}),[]);const I=u(l);let R=H.createElement("div",{className:`${n}-icon`},I);if("picture"===a||"picture-card"===a||"picture-circle"===a)if("uploading"===$||!l.thumbUrl&&!l.url){const e=m_(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==$});R=H.createElement("div",{className:e},I)}else{const e=(null==p?void 0:p(l))?H.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${n}-list-item-image`,crossOrigin:l.crossOrigin}):I,t=m_(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(l)});R=H.createElement("a",{className:t,onClick:e=>w(l,e),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const M=m_(`${n}-list-item`,`${n}-list-item-${$}`),P="string"==typeof l.linkProps?JSON.parse(l.linkProps):l.linkProps,T=h?d(("function"==typeof b?b(l):b)||H.createElement(px,null),(()=>x(l)),n,i.removeFile,!0):null,j=g&&"done"===$?d(("function"==typeof y?y(l):y)||H.createElement(Ix,null),(()=>S(l)),n,i.downloadFile):null,A="picture-card"!==a&&"picture-circle"!==a&&H.createElement("span",{key:"download-delete",className:m_(`${n}-list-item-actions`,{picture:"picture"===a})},j,T),z=m_(`${n}-list-item-name`),D=l.url?[H.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:z,title:l.name},P,{href:l.url,onClick:e=>w(l,e)}),l.name),A]:[H.createElement("span",{key:"view",className:z,onClick:e=>w(l,e),title:l.name},l.name),A],L=m&&(l.url||l.thumbUrl)?H.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>w(l,e),title:i.previewFile},"function"==typeof v?v(l):v||H.createElement(Vx,null)):null,B=("picture-card"===a||"picture-circle"===a)&&"uploading"!==$&&H.createElement("span",{className:`${n}-list-item-actions`},L,"done"===$&&j,T),{getPrefixCls:F}=H.useContext(aP),W=F(),V=H.createElement("div",{className:M},R,D,B,N&&H.createElement(VT,{motionName:`${W}-fade`,visible:"uploading"===$,motionDeadline:2e3},(e=>{let{className:t}=e;const r="percent"in l?H.createElement(q4,Object.assign({},s,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return H.createElement("div",{className:m_(`${n}-list-item-progress`,t)},r)}))),U=l.response&&"string"==typeof l.response?l.response:(null===(C=l.error)||void 0===C?void 0:C.statusText)||(null===(E=l.error)||void 0===E?void 0:E.message)||i.uploadError,K="error"===$?H.createElement(nU,{title:U,getPopupContainer:e=>e.parentNode},V):V;return H.createElement("div",{className:m_(`${n}-list-item-container`,r),style:o,ref:t},f?f(K,l,c,{download:S.bind(null,l),preview:w.bind(null,l),remove:x.bind(null,l)}):K)})),S7=w7,x7=(e,t)=>{const{listType:n="text",previewFile:r=y7,onPreview:o,onDownload:i,onRemove:a,locale:l,iconRender:c,isImageUrl:s=v7,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:h,previewIcon:g,downloadIcon:v,progress:b={size:[-1,2],showInfo:!1},appendAction:y,appendActionVisible:w=!0,itemRender:S,disabled:x}=e,C=bV(),[E,k]=H.useState(!1);H.useEffect((()=>{"picture"!==n&&"picture-card"!==n&&"picture-circle"!==n||(d||[]).forEach((e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",r&&r(e.originFileObj).then((t=>{e.thumbUrl=t||"",C()})))}))}),[n,d,r]),H.useEffect((()=>{k(!0)}),[]);const $=(e,t)=>{if(o)return null==t||t.preventDefault(),o(e)},O=e=>{"function"==typeof i?i(e):e.url&&window.open(e.url)},N=e=>{null==a||a(e)},_=e=>{if(c)return c(e,n);const t="uploading"===e.status,r=s&&s(e)?H.createElement(BC,null):H.createElement(Zx,null);let o=t?H.createElement(SC,null):H.createElement(jC,null);return"picture"===n?o=t?H.createElement(SC,null):r:"picture-card"!==n&&"picture-circle"!==n||(o=t?l.uploading:r),o},I=(e,t,n,r,o)=>{const i={type:"text",size:"small",title:r,onClick:n=>{t(),wj(e)&&e.props.onClick&&e.props.onClick(n)},className:`${n}-list-item-action`};if(o&&(i.disabled=x),wj(e)){const t=xj(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return H.createElement(rD,Object.assign({},i,{icon:t}))}return H.createElement(rD,Object.assign({},i),H.createElement("span",null,e))};H.useImperativeHandle(t,(()=>({handlePreview:$,handleDownload:O})));const{getPrefixCls:R}=H.useContext(aP),M=R("upload",u),P=R(),T=m_(`${M}-list`,`${M}-list-${n}`),j=aI(d.map((e=>({key:e.uid,file:e}))));let A={motionDeadline:2e3,motionName:`${M}-${"picture-card"===n||"picture-circle"===n?"animate-inline":"animate"}`,keys:j,motionAppear:E};const z=H.useMemo((()=>{const e=Object.assign({},BA(P));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[P]);return"picture-card"!==n&&"picture-circle"!==n&&(A=Object.assign(Object.assign({},z),A)),H.createElement("div",{className:T},H.createElement(ej,Object.assign({},A,{component:!1}),(e=>{let{key:t,file:r,className:o,style:i}=e;return H.createElement(S7,{key:t,locale:l,prefixCls:M,className:o,style:i,file:r,items:d,progress:b,listType:n,isImgUrl:s,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:m,removeIcon:h,previewIcon:g,downloadIcon:v,iconRender:_,actionIconRender:I,itemRender:S,onPreview:$,onDownload:O,onClose:N})})),y&&H.createElement(VT,Object.assign({},A,{visible:w,forceRender:!0}),(e=>{let{className:t,style:n}=e;return xj(y,(e=>({className:m_(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))},C7=H.forwardRef(x7);var E7=globalThis&&globalThis.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(Ij){i(Ij)}}function l(e){try{c(r.throw(e))}catch(Ij){i(Ij)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const k7=`__LIST_IGNORE_${Date.now()}__`,$7=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:l,onDownload:c,onChange:s,onDrop:u,previewFile:d,disabled:f,locale:p,iconRender:m,isImageUrl:h,progress:g,prefixCls:v,className:b,type:y="select",children:w,style:S,itemRender:x,maxCount:C,data:E={},multiple:k=!1,hasControlInside:$=!0,action:O="",accept:N="",supportServerRender:_=!0,rootClassName:I}=e,R=H.useContext(dP),M=null!=f?f:R,[P,T]=IP(r||[],{value:n,postState:e=>null!=e?e:[]}),[j,A]=H.useState("drop"),z=H.useRef(null);H.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const D=(e,t,n)=>{let r=aI(t),o=!1;1===C?r=r.slice(-1):C&&(o=r.length>C,r=r.slice(0,C)),cd.flushSync((()=>{T(r)}));const i={file:e,fileList:r};n&&(i.event=n),o&&!r.some((t=>t.uid===e.uid))||cd.flushSync((()=>{null==s||s(i)}))},L=e=>{const t=e.filter((e=>!e.file[k7]));if(!t.length)return;const n=t.map((e=>p7(e.file)));let r=aI(P);n.forEach((e=>{r=m7(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(Ij){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}D(o,r)}))},B=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(Ij){}if(!h7(t,P))return;const r=p7(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=m7(r,P);D(r,o)},F=(e,t)=>{if(!h7(t,P))return;const n=p7(t);n.status="uploading",n.percent=e.percent;const r=m7(n,P);D(n,r,e)},W=(e,t,n)=>{if(!h7(n,P))return;const r=p7(n);r.error=e,r.response=t,r.status="error";const o=m7(r,P);D(r,o)},V=e=>{let t;Promise.resolve("function"==typeof o?o(e):o).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,P);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==P||P.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=z.current)||void 0===r||r.abort(t),D(t,o))}))},U=e=>{A(e.type),"drop"===e.type&&(null==u||u(e))};H.useImperativeHandle(t,(()=>({onBatchStart:L,onSuccess:B,onProgress:F,onError:W,fileList:P,upload:z.current})));const{getPrefixCls:K,direction:q,upload:X}=H.useContext(aP),G=K("upload",v),Y=Object.assign(Object.assign({onBatchStart:L,onError:W,onProgress:F,onSuccess:B},e),{data:E,multiple:k,action:O,accept:N,supportServerRender:_,prefixCls:G,disabled:M,beforeUpload:(t,n)=>E7(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[k7],e===k7)return Object.defineProperty(t,k7,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0,hasControlInside:$});delete Y.className,delete Y.style,w&&!M||delete Y.id;const Q=`${G}-wrapper`,[Z,J,ee]=f7(G,Q),[te]=EM("Upload",bM.Upload),{showRemoveIcon:ne,showPreviewIcon:re,showDownloadIcon:oe,removeIcon:ie,previewIcon:ae,downloadIcon:le}="boolean"==typeof i?{}:i,ce=void 0===ne?!M:!!ne,se=(e,t)=>i?H.createElement(C7,{prefixCls:G,listType:a,items:P,previewFile:d,onPreview:l,onDownload:c,onRemove:V,showRemoveIcon:ce,showPreviewIcon:re,showDownloadIcon:oe,removeIcon:ie,previewIcon:ae,downloadIcon:le,iconRender:m,locale:Object.assign(Object.assign({},te),p),isImageUrl:h,progress:g,appendAction:e,appendActionVisible:t,itemRender:x,disabled:M}):e,ue=m_(Q,b,I,J,ee,null==X?void 0:X.className,{[`${G}-rtl`]:"rtl"===q,[`${G}-picture-card-wrapper`]:"picture-card"===a,[`${G}-picture-circle-wrapper`]:"picture-circle"===a}),de=Object.assign(Object.assign({},null==X?void 0:X.style),S);if("drag"===y){const e=m_(J,G,`${G}-drag`,{[`${G}-drag-uploading`]:P.some((e=>"uploading"===e.status)),[`${G}-drag-hover`]:"dragover"===j,[`${G}-disabled`]:M,[`${G}-rtl`]:"rtl"===q});return Z(H.createElement("span",{className:ue},H.createElement("div",{className:e,style:de,onDrop:U,onDragOver:U,onDragLeave:U},H.createElement(n7,Object.assign({},Y,{ref:z,className:`${G}-btn`}),H.createElement("div",{className:`${G}-drag-container`},w))),se()))}const fe=m_(G,`${G}-select`,{[`${G}-disabled`]:M}),pe=H.createElement("div",{className:fe,style:w?void 0:{display:"none"}},H.createElement(n7,Object.assign({},Y,{ref:z})));return Z("picture-card"===a||"picture-circle"===a?H.createElement("span",{className:ue},se(pe,!!w)):H.createElement("span",{className:ue},pe,se()))},O7=H.forwardRef($7);var N7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _7=H.forwardRef(((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,i=N7(e,["style","height","hasControlInside"]);return H.createElement(O7,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))})),I7=_7,R7=O7;function M7(e,t){return function(){return e.apply(t,arguments)}}R7.Dragger=I7,R7.LIST_IGNORE=k7,e("s",R7);const{toString:P7}=Object.prototype,{getPrototypeOf:T7}=Object,j7=(A7=Object.create(null),e=>{const t=P7.call(e);return A7[t]||(A7[t]=t.slice(8,-1).toLowerCase())});var A7;const z7=e=>(e=e.toLowerCase(),t=>j7(t)===e),D7=e=>t=>typeof t===e,{isArray:L7}=Array,B7=D7("undefined"),F7=z7("ArrayBuffer"),H7=D7("string"),W7=D7("function"),V7=D7("number"),U7=e=>null!==e&&"object"==typeof e,K7=e=>{if("object"!==j7(e))return!1;const t=T7(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},q7=z7("Date"),X7=z7("File"),G7=z7("Blob"),Y7=z7("FileList"),Q7=z7("URLSearchParams");function Z7(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),L7(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{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 J7(e,t){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 e9="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,t9=e=>!B7(e)&&e!==e9,n9=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&T7(Uint8Array)),r9=z7("HTMLFormElement"),o9=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),i9=z7("RegExp"),a9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Z7(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},l9="abcdefghijklmnopqrstuvwxyz",c9="0123456789",s9={DIGIT:c9,ALPHA:l9,ALPHA_DIGIT:l9+l9.toUpperCase()+c9},u9=z7("AsyncFunction"),d9={isArray:L7,isArrayBuffer:F7,isBuffer:function(e){return null!==e&&!B7(e)&&null!==e.constructor&&!B7(e.constructor)&&W7(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||W7(e.append)&&("formdata"===(t=j7(e))||"object"===t&&W7(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&F7(e.buffer),t},isString:H7,isNumber:V7,isBoolean:e=>!0===e||!1===e,isObject:U7,isPlainObject:K7,isUndefined:B7,isDate:q7,isFile:X7,isBlob:G7,isRegExp:i9,isFunction:W7,isStream:e=>U7(e)&&W7(e.pipe),isURLSearchParams:Q7,isTypedArray:n9,isFileList:Y7,forEach:Z7,merge:function e(){const{caseless:t}=t9(this)&&this||{},n={},r=(r,o)=>{const i=t&&J7(n,o)||o;K7(n[i])&&K7(r)?n[i]=e(n[i],r):K7(r)?n[i]=e({},r):L7(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Z7(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Z7(t,((t,r)=>{n&&W7(t)?e[r]=M7(t,n):e[r]=t}),{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),e.prototype.constructor=e,Object.defineProperty(e,"super",{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&&T7(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:j7,kindOfTest:z7,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(L7(e))return e;let t=e.length;if(!V7(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).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:r9,hasOwnProperty:o9,hasOwnProp:o9,reduceDescriptors:a9,freezeMethods:e=>{a9(e,((t,n)=>{if(W7(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];W7(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 L7(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)=>(e=+e,Number.isFinite(e)?e:t),findKey:J7,global:e9,isContextDefined:t9,ALPHABET:s9,generateString:(e=16,t=s9.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&W7(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(U7(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=L7(e)?[]:{};return Z7(e,((e,t)=>{const i=n(e,r+1);!B7(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:u9,isThenable:e=>e&&(U7(e)||W7(e))&&W7(e.then)&&W7(e.catch)};function f9(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}d9.inherits(f9,Error,{toJSON:function(){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:d9.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const p9=f9.prototype,m9={};function h9(e){return d9.isPlainObject(e)||d9.isArray(e)}function g9(e){return d9.endsWith(e,"[]")?e.slice(0,-2):e}function v9(e,t,n){return e?e.concat(t).map((function(e,t){return e=g9(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{m9[e]={value:e}})),Object.defineProperties(f9,m9),Object.defineProperty(p9,"isAxiosError",{value:!0}),f9.from=(e,t,n,r,o,i)=>{const a=Object.create(p9);return d9.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),f9.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const b9=d9.toFlatObject(d9,{},null,(function(e){return/^is[A-Z]/.test(e)}));function y9(e,t,n){if(!d9.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=d9.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!d9.isUndefined(t[e])}))).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&d9.isSpecCompliantForm(t);if(!d9.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(d9.isDate(e))return e.toISOString();if(!l&&d9.isBlob(e))throw new f9("Blob is not supported. Use a Buffer instead.");return d9.isArrayBuffer(e)||d9.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(d9.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(d9.isArray(e)&&function(e){return d9.isArray(e)&&!e.some(h9)}(e)||(d9.isFileList(e)||d9.endsWith(n,"[]"))&&(l=d9.toArray(e)))return n=g9(n),l.forEach((function(e,r){!d9.isUndefined(e)&&null!==e&&t.append(!0===a?v9([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!h9(e)||(t.append(v9(o,n,i),c(e)),!1)}const u=[],d=Object.assign(b9,{defaultVisitor:s,convertValue:c,isVisitable:h9});if(!d9.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!d9.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),d9.forEach(n,(function(n,i){!0===(!(d9.isUndefined(n)||null===n)&&o.call(t,n,d9.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function w9(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function S9(e,t){this._pairs=[],e&&y9(e,this,t)}const x9=S9.prototype;function C9(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function E9(e,t,n){if(!t)return e;const r=n&&n.encode||C9,o=n&&n.serialize;let i;if(i=o?o(t,n):d9.isURLSearchParams(t)?t.toString():new S9(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}x9.append=function(e,t){this._pairs.push([e,t])},x9.toString=function(e){const t=e?function(t){return e.call(this,t,w9)}:w9;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const k9=class{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){d9.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},$9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},O9={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:S9,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},N9="undefined"!=typeof window&&"undefined"!=typeof document,_9=(I9="undefined"!=typeof navigator&&navigator.product,N9&&["ReactNative","NativeScript","NS"].indexOf(I9)<0);var I9;const R9="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,M9={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:N9,hasStandardBrowserEnv:_9,hasStandardBrowserWebWorkerEnv:R9},Symbol.toStringTag,{value:"Module"})),...O9};function P9(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),l=o>=e.length;return i=!i&&d9.isArray(r)?r.length:i,l?(d9.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&d9.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&d9.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(d9.isFormData(e)&&d9.isFunction(e.entries)){const n={};return d9.forEachEntry(e,((e,r)=>{t(function(e){return d9.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const T9={transitional:$9,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=d9.isObject(e);if(o&&d9.isHTMLForm(e)&&(e=new FormData(e)),d9.isFormData(e))return r&&r?JSON.stringify(P9(e)):e;if(d9.isArrayBuffer(e)||d9.isBuffer(e)||d9.isStream(e)||d9.isFile(e)||d9.isBlob(e))return e;if(d9.isArrayBufferView(e))return e.buffer;if(d9.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return y9(e,new M9.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return M9.isNode&&d9.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=d9.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return y9(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(d9.isString(e))try{return(t||JSON.parse)(e),d9.trim(e)}catch(Ij){if("SyntaxError"!==Ij.name)throw Ij}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||T9.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&d9.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Ij){if(n){if("SyntaxError"===Ij.name)throw f9.from(Ij,f9.ERR_BAD_RESPONSE,this,null,this.response);throw Ij}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:M9.classes.FormData,Blob:M9.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d9.forEach(["delete","get","head","post","put","patch"],(e=>{T9.headers[e]={}}));const j9=T9,A9=d9.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"]),z9=Symbol("internals");function D9(e){return e&&String(e).trim().toLowerCase()}function L9(e){return!1===e||null==e?e:d9.isArray(e)?e.map(L9):String(e)}function B9(e,t,n,r,o){return d9.isFunction(r)?r.call(this,t,n):(o&&(t=n),d9.isString(t)?d9.isString(r)?-1!==t.indexOf(r):d9.isRegExp(r)?r.test(t):void 0:void 0)}class F9{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=D9(t);if(!o)throw new Error("header name must be a non-empty string");const i=d9.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=L9(e))}const i=(e,t)=>d9.forEach(e,((e,n)=>o(e,n,t)));return d9.isPlainObject(e)||e instanceof this.constructor?i(e,t):d9.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]&&A9[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=D9(e)){const n=d9.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(d9.isFunction(t))return t.call(this,e,n);if(d9.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=D9(e)){const n=d9.findKey(this,e);return!(!n||void 0===this[n]||t&&!B9(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=D9(e)){const o=d9.findKey(n,e);!o||t&&!B9(0,n[o],o,t)||(delete n[o],r=!0)}}return d9.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&&!B9(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return d9.forEach(this,((r,o)=>{const i=d9.findKey(n,o);if(i)return t[i]=L9(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]=L9(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return d9.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&d9.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")}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[z9]=this[z9]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=D9(e);t[r]||(function(e,t){const n=d9.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return d9.isArray(e)?e.forEach(r):r(e),this}}F9.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),d9.reduceDescriptors(F9.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),d9.freezeMethods(F9);const H9=F9;function W9(e,t){const n=this||j9,r=t||n,o=H9.from(r.headers);let i=r.data;return d9.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function V9(e){return!(!e||!e.__CANCEL__)}function U9(e,t,n){f9.call(this,null==e?"canceled":e,f9.ERR_CANCELED,t,n),this.name="CanceledError"}d9.inherits(U9,f9,{__CANCEL__:!0});const K9=M9.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];d9.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),d9.isString(r)&&a.push("path="+r),d9.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function q9(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const X9=M9.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=d9.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function G9(e,t){let n=0;const r=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 c=Date.now(),s=r[a];o||(o=c),n[i]=l,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const f=s&&c-s;return f?Math.round(1e3*d/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,c=r(l);n=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};s[t?"download":"upload"]=!0,e(s)}}const Y9="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=H9.from(e.headers).normalize();let i,a,{responseType:l,withXSRFToken:c}=e;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(d9.isFormData(r))if(M9.hasStandardBrowserEnv||M9.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=q9(e.baseURL,e.url);function f(){if(!u)return;const r=H9.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new f9("Request failed with status code "+n.status,[f9.ERR_BAD_REQUEST,f9.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:l&&"text"!==l&&"json"!==l?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),E9(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new f9("Request aborted",f9.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new f9("Network Error",f9.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||$9;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f9(t,r.clarifyTimeoutError?f9.ETIMEDOUT:f9.ECONNABORTED,e,u)),u=null},M9.hasStandardBrowserEnv&&(c&&d9.isFunction(c)&&(c=c(e)),c||!1!==c&&X9(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&K9.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&d9.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),d9.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),l&&"json"!==l&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",G9(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",G9(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new U9(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===M9.protocols.indexOf(p)?n(new f9("Unsupported protocol "+p+":",f9.ERR_BAD_REQUEST,e)):u.send(r||null)}))},Q9={http:null,xhr:Y9};d9.forEach(Q9,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ij){}Object.defineProperty(e,"adapterName",{value:t})}}));const Z9=e=>`- ${e}`,J9=e=>d9.isFunction(e)||null===e||!1===e,eee=e=>{e=d9.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!J9(n)&&(r=Q9[(t=String(n)).toLowerCase()],void 0===r))throw new f9(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new f9("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Z9).join("\n"):" "+Z9(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function tee(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new U9(null,e)}function nee(e){return tee(e),e.headers=H9.from(e.headers),e.data=W9.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eee(e.adapter||j9.adapter)(e).then((function(t){return tee(e),t.data=W9.call(e,e.transformResponse,t),t.headers=H9.from(t.headers),t}),(function(t){return V9(t)||(tee(e),t&&t.response&&(t.response.data=W9.call(e,e.transformResponse,t.response),t.response.headers=H9.from(t.response.headers))),Promise.reject(t)}))}const ree=e=>e instanceof H9?e.toJSON():e;function oee(e,t){t=t||{};const n={};function r(e,t,n){return d9.isPlainObject(e)&&d9.isPlainObject(t)?d9.merge.call({caseless:n},e,t):d9.isPlainObject(t)?d9.merge({},t):d9.isArray(t)?t.slice():t}function o(e,t,n){return d9.isUndefined(t)?d9.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!d9.isUndefined(t))return r(void 0,t)}function a(e,t){return d9.isUndefined(t)?d9.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={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,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(ree(e),ree(t),!0)};return d9.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);d9.isUndefined(a)&&i!==l||(n[r]=a)})),n}const iee="1.6.2",aee={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{aee[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const lee={};aee.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new f9(r(o," has been removed"+(t?" in "+t:"")),f9.ERR_DEPRECATED);return t&&!lee[o]&&(lee[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)}};const cee={assertOptions:function(e,t,n){if("object"!=typeof e)throw new f9("options must be an object",f9.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new f9("option "+i+" must be "+n,f9.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new f9("Unknown option "+i,f9.ERR_BAD_OPTION)}},validators:aee},see=cee.validators;class uee{constructor(e){this.defaults=e,this.interceptors={request:new k9,response:new k9}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=oee(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&cee.assertOptions(n,{silentJSONParsing:see.transitional(see.boolean),forcedJSONParsing:see.transitional(see.boolean),clarifyTimeoutError:see.transitional(see.boolean)},!1),null!=r&&(d9.isFunction(r)?t.paramsSerializer={serialize:r}:cee.assertOptions(r,{encode:see.function,serialize:see.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&d9.merge(o.common,o[t.method]);o&&d9.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=H9.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let s;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!l){const e=[nee.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,s=Promise.resolve(t);d<u;)s=s.then(e[d++],e[d++]);return s}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{s=nee.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=c.length;d<u;)s=s.then(c[d++],c[d++]);return s}getUri(e){return E9(q9((e=oee(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}d9.forEach(["delete","get","head","options"],(function(e){uee.prototype[e]=function(t,n){return this.request(oee(n||{},{method:e,url:t,data:(n||{}).data}))}})),d9.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(oee(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}uee.prototype[e]=t(),uee.prototype[e+"Form"]=t(!0)}));const dee=uee;class fee{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 U9(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)}static source(){let e;const t=new fee((function(t){e=t}));return{token:t,cancel:e}}}const pee=fee,mee={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};Object.entries(mee).forEach((([e,t])=>{mee[t]=e}));const hee=mee,gee=function e(t){const n=new dee(t),r=M7(dee.prototype.request,n);return d9.extend(r,dee.prototype,n,{allOwnKeys:!0}),d9.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(oee(t,n))},r}(j9);gee.Axios=dee,gee.CanceledError=U9,gee.CancelToken=pee,gee.isCancel=V9,gee.VERSION=iee,gee.toFormData=y9,gee.AxiosError=f9,gee.Cancel=gee.CanceledError,gee.all=function(e){return Promise.all(e)},gee.spread=function(e){return function(t){return e.apply(null,t)}},gee.isAxiosError=function(e){return d9.isObject(e)&&!0===e.isAxiosError},gee.mergeConfig=oee,gee.AxiosHeaders=H9,gee.formToJSON=e=>P9(d9.isHTMLForm(e)?new FormData(e):e),gee.getAdapter=eee,gee.HttpStatusCode=hee,gee.default=gee,e("a3",gee);var vee={exports:{}};function bee(){}function yee(){}yee.resetWarningCache=bee,vee.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:yee,resetWarningCache:bee};return n.PropTypes=n,n}();var wee=vee.exports;e("m",r(wee));var See={exports:{}};!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return n.default.locale(r,null,!0),r}(Lq)}(See),e("z",r(See.exports));var xee={},Cee={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Cee);var Eee,kee,$ee,Oee,Nee,_ee=Cee.exports,Iee={},Ree={},Mee={},Pee={},Tee={};function jee(){return $ee||($ee=1,Object.defineProperty(Tee,"__esModule",{value:!0}),Tee.default=void 0,Tee.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}),Tee}function Aee(){if(Oee)return Mee;Oee=1;var e=_ee;Object.defineProperty(Mee,"__esModule",{value:!0}),Mee.default=void 0;var t=e((kee||(kee=1,Object.defineProperty(Pee,"__esModule",{value:!0}),Pee.default=void 0,Pee.default={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"}),Pee)),n=e(jee());const r={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},n.default)};return r.lang.ok="确定",Mee.default=r,Mee}var zee=_ee;Object.defineProperty(xee,"__esModule",{value:!0}),xee.default=void 0;var Dee=zee((Eee||(Eee=1,Object.defineProperty(Iee,"__esModule",{value:!0}),Iee.default=void 0,Iee.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}),Iee)),Lee=zee(function(){if(Nee)return Ree;Nee=1;var e=_ee;Object.defineProperty(Ree,"__esModule",{value:!0}),Ree.default=void 0;var t=e(Aee());return Ree.default=t.default,Ree}()),Bee=zee(Aee()),Fee=zee(jee());const Hee="${label}不是一个有效的${type}",Wee={locale:"zh-cn",Pagination:Dee.default,DatePicker:Bee.default,TimePicker:Fee.default,Calendar:Lee.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Hee,method:Hee,array:Hee,object:Hee,number:Hee,date:Hee,boolean:Hee,integer:Hee,float:Hee,regexp:Hee,email:Hee,url:Hee,hex:Hee},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}};xee.default=Wee,e("Z",r(xee));
|
|
74
|
-
/*! *****************************************************************************
|
|
75
|
-
Copyright (c) Microsoft Corporation.
|
|
76
|
-
|
|
77
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
78
|
-
purpose with or without fee is hereby granted.
|
|
79
|
-
|
|
80
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
81
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
82
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
83
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
84
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
85
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
86
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
87
|
-
***************************************************************************** */var Vee=function(e,t){return Vee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Vee(e,t)},Uee={exports:{}};!function(e,t){(function(){var r,o="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=32,s=64,u=128,d=256,f=1/0,p=9007199254740991,m=NaN,h=4294967295,g=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",s],["rearg",d]],v="[object Arguments]",b="[object Array]",y="[object Boolean]",w="[object Date]",S="[object Error]",x="[object Function]",C="[object GeneratorFunction]",E="[object Map]",k="[object Number]",$="[object Object]",O="[object Promise]",N="[object RegExp]",_="[object Set]",I="[object String]",R="[object Symbol]",M="[object WeakMap]",P="[object ArrayBuffer]",T="[object DataView]",j="[object Float32Array]",A="[object Float64Array]",z="[object Int8Array]",D="[object Int16Array]",L="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,G=RegExp(q.source),Y=RegExp(X.source),Q=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,Ce="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",$e="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ne="\\ufe0e\\ufe0f",_e="\\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",Ie="['’]",Re="["+Ce+"]",Me="["+_e+"]",Pe="["+Ee+"]",Te="\\d+",je="["+ke+"]",Ae="["+$e+"]",ze="[^"+Ce+_e+Te+ke+$e+Oe+"]",De="\\ud83c[\\udffb-\\udfff]",Le="[^"+Ce+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Oe+"]",We="\\u200d",Ve="(?:"+Ae+"|"+ze+")",Ue="(?:"+He+"|"+ze+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xe="(?:"+Pe+"|"+De+")?",Ge="["+Ne+"]?",Ye=Ge+Xe+"(?:"+We+"(?:"+[Le,Be,Fe].join("|")+")"+Ge+Xe+")*",Qe="(?:"+[je,Be,Fe].join("|")+")"+Ye,Ze="(?:"+[Le+Pe+"?",Pe,Be,Fe,Re].join("|")+")",Je=RegExp(Ie,"g"),et=RegExp(Pe,"g"),tt=RegExp(De+"(?="+De+")|"+Ze+Ye,"g"),nt=RegExp([He+"?"+Ae+"+"+Ke+"(?="+[Me,He,"$"].join("|")+")",Ue+"+"+qe+"(?="+[Me,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+Ke,He+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Qe].join("|"),"g"),rt=RegExp("["+We+Ce+Ee+Ne+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["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"],at=-1,lt={};lt[j]=lt[A]=lt[z]=lt[D]=lt[L]=lt[B]=lt[F]=lt[H]=lt[W]=!0,lt[v]=lt[b]=lt[P]=lt[y]=lt[T]=lt[w]=lt[S]=lt[x]=lt[E]=lt[k]=lt[$]=lt[N]=lt[_]=lt[I]=lt[M]=!1;var ct={};ct[v]=ct[b]=ct[P]=ct[T]=ct[y]=ct[w]=ct[j]=ct[A]=ct[z]=ct[D]=ct[L]=ct[E]=ct[k]=ct[$]=ct[N]=ct[_]=ct[I]=ct[R]=ct[B]=ct[F]=ct[H]=ct[W]=!0,ct[S]=ct[x]=ct[M]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,ft="object"==typeof n&&n&&n.Object===Object&&n,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||pt||Function("return this")(),ht=t&&!t.nodeType&&t,gt=ht&&e&&!e.nodeType&&e,vt=gt&>.exports===ht,bt=vt&&ft.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(Ij){}}(),wt=yt&&yt.isArrayBuffer,St=yt&&yt.isDate,xt=yt&&yt.isMap,Ct=yt&&yt.isRegExp,Et=yt&&yt.isSet,kt=yt&&yt.isTypedArray;function $t(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 Ot(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 Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(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 Rt(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 Mt(e,t){return!(null==e||!e.length)&&Ht(e,t,0)>-1}function Pt(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 Tt(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 jt(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 zt(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 Dt(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=Kt("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 Ft(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 Ht(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):Ft(e,Vt,n)}function Wt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Vt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:m}function Kt(e){return function(t){return null==t?r:t[e]}}function qt(e){return function(t){return null==e?r:e[t]}}function Xt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var n,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==r&&(n=n===r?a:n+a)}return n}function Yt(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,hn(e)+1).replace(ie,""):e}function Zt(e){return function(t){return e(t)}}function Jt(e,t){return Tt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var rn=qt({"À":"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"}),on=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+st[e]}function ln(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var l=e[n];l!==t&&l!==a||(e[n]=a,i[o++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){for(var t=tt.lastIndex=0;tt.test(e);)++t;return t}(e):Lt(e)}function mn(e){return ln(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var gn=qt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),vn=function e(t){var n=(t=null==t?mt:vn.defaults(mt.Object(),t,vn.pick(mt,it))).Array,ae=t.Date,Ce=t.Error,Ee=t.Function,ke=t.Math,$e=t.Object,Oe=t.RegExp,Ne=t.String,_e=t.TypeError,Ie=n.prototype,Re=Ee.prototype,Me=$e.prototype,Pe=t["__core-js_shared__"],Te=Re.toString,je=Me.hasOwnProperty,Ae=0,ze=function(){var e=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),De=Me.toString,Le=Te.call($e),Be=mt._,Fe=Oe("^"+Te.call(je).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:r,We=t.Symbol,Ve=t.Uint8Array,Ue=He?He.allocUnsafe:r,Ke=sn($e.getPrototypeOf,$e),qe=$e.create,Xe=Me.propertyIsEnumerable,Ge=Ie.splice,Ye=We?We.isConcatSpreadable:r,Qe=We?We.iterator:r,Ze=We?We.toStringTag:r,tt=function(){try{var e=fi($e,"defineProperty");return e({},"",{}),e}catch(Ij){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,st=ae&&ae.now!==mt.Date.now&&ae.now,ft=t.setTimeout!==mt.setTimeout&&t.setTimeout,pt=ke.ceil,ht=ke.floor,gt=$e.getOwnPropertySymbols,bt=He?He.isBuffer:r,yt=t.isFinite,Lt=Ie.join,qt=sn($e.keys,$e),bn=ke.max,yn=ke.min,wn=ae.now,Sn=t.parseInt,xn=ke.random,Cn=Ie.reverse,En=fi(t,"DataView"),kn=fi(t,"Map"),$n=fi(t,"Promise"),On=fi(t,"Set"),Nn=fi(t,"WeakMap"),_n=fi($e,"create"),In=Nn&&new Nn,Rn={},Mn=Di(En),Pn=Di(kn),Tn=Di($n),jn=Di(On),An=Di(Nn),zn=We?We.prototype:r,Dn=zn?zn.valueOf:r,Ln=zn?zn.toString:r;function Bn(e){if(tl(e)&&!Va(e)&&!(e instanceof Vn)){if(e instanceof Wn)return e;if(je.call(e,"__wrapped__"))return Li(e)}return new Wn(e)}var Fn=function(){function e(){}return function(t){if(!el(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Hn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Un(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 qn(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 Xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Kn(e);this.size=t.size}function Yn(e,t){var n=Va(e),r=!n&&Wa(e),o=!n&&!r&&Xa(e),i=!n&&!r&&!o&&sl(e),a=n||r||o||i,l=a?Yt(e.length,Ne):[],c=l.length;for(var s in e)!t&&!je.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||yi(s,c))||l.push(s);return l}function Qn(e){var t=e.length;return t?e[Xr(0,t-1)]:r}function Zn(e,t){return ji(Io(e),lr(t,0,e.length))}function Jn(e){return ji(Io(e))}function er(e,t,n){(n!==r&&!Ba(e[t],n)||n===r&&!(t in e))&&ir(e,t,n)}function tr(e,t,n){var o=e[t];je.call(e,t)&&Ba(o,n)&&(n!==r||t in e)||ir(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function or(e,t){return e&&Ro(t,Rl(t),e)}function ir(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var o=-1,i=t.length,a=n(i),l=null==e;++o<i;)a[o]=l?r:$l(e,t[o]);return a}function lr(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function cr(e,t,n,o,i,a){var l,c=1&t,s=2&t,u=4&t;if(n&&(l=i?n(e,o,i,a):n(e)),l!==r)return l;if(!el(e))return e;var d=Va(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return Io(e,l)}else{var f=hi(e),p=f==x||f==C;if(Xa(e))return Eo(e,c);if(f==$||f==v||p&&!i){if(l=s||p?{}:vi(e),!c)return s?function(e,t){return Ro(e,mi(e),t)}(e,function(e,t){return e&&Ro(t,Ml(t),e)}(l,e)):function(e,t){return Ro(e,pi(e),t)}(e,or(l,e))}else{if(!ct[f])return i?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case P:return ko(e);case y:case w:return new o(+e);case T:return function(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case A:case z:case D:case L:case B:case F:case H:case W:return $o(e,n);case E:return new o;case k:case I:return new o(e);case N:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case _:return new o;case R:return r=e,Dn?$e(Dn.call(r)):{}}}(e,f,c)}}a||(a=new Gn);var m=a.get(e);if(m)return m;a.set(e,l),al(e)?e.forEach((function(r){l.add(cr(r,t,n,r,e,a))})):nl(e)&&e.forEach((function(r,o){l.set(o,cr(r,t,n,o,e,a))}));var h=d?r:(u?s?ii:oi:s?Ml:Rl)(e);return Nt(h||e,(function(r,o){h&&(r=e[o=r]),tr(l,o,cr(r,t,n,o,e,a))})),l}function sr(e,t,n){var o=n.length;if(null==e)return!o;for(e=$e(e);o--;){var i=n[o],a=t[i],l=e[i];if(l===r&&!(i in e)||!a(l))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new _e(o);return Ri((function(){e.apply(r,n)}),t)}function dr(e,t,n,r){var o=-1,i=Mt,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=Tt(t,Zt(n))),r?(i=Pt,a=!1):t.length>=200&&(i=en,a=!1,t=new Xn(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 f=s;f--;)if(t[f]===d)continue e;c.push(u)}else i(t,d,r)||c.push(u)}return c}Bn.templateSettings={escape:Q,evaluate:Z,interpolate:J,variable:"",imports:{_:Bn}},Bn.prototype=Hn.prototype,Bn.prototype.constructor=Bn,Wn.prototype=Fn(Hn.prototype),Wn.prototype.constructor=Wn,Vn.prototype=Fn(Hn.prototype),Vn.prototype.constructor=Vn,Un.prototype.clear=function(){this.__data__=_n?_n(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(e){var t=this.__data__;if(_n){var n=t[e];return n===i?r:n}return je.call(t,e)?t[e]:r},Un.prototype.has=function(e){var t=this.__data__;return _n?t[e]!==r:je.call(t,e)},Un.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_n&&t===r?i:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Kn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?r:t[n][1]},Kn.prototype.has=function(e){return nr(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(kn||Kn),string:new Un}},qn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ui(this,e).get(e)},qn.prototype.has=function(e){return ui(this,e).has(e)},qn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,i),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.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 qn(r)}return n.set(e,t),this.size=n.size,this};var fr=To(wr),pr=To(Sr,!0);function mr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],l=t(a);if(null!=l&&(c===r?l==l&&!cl(l):n(l,c)))var c=l,s=a}return s}function gr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=bi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?vr(l,t-1,n,r,o):jt(o,l):r||(o[o.length]=l)}return o}var br=jo(),yr=jo(!0);function wr(e,t){return e&&br(e,t,Rl)}function Sr(e,t){return e&&yr(e,t,Rl)}function xr(e,t){return Rt(t,(function(t){return Qa(e[t])}))}function Cr(e,t){for(var n=0,o=(t=wo(t,e)).length;null!=e&&n<o;)e=e[zi(t[n++])];return n&&n==o?e:r}function Er(e,t,n){var r=t(e);return Va(e)?r:jt(r,n(e))}function kr(e){return null==e?e===r?"[object Undefined]":"[object Null]":Ze&&Ze in $e(e)?function(e){var t=je.call(e,Ze),n=e[Ze];try{e[Ze]=r;var o=!0}catch(Ij){}var i=De.call(e);return o&&(t?e[Ze]=n:delete e[Ze]),i}(e):function(e){return De.call(e)}(e)}function $r(e,t){return e>t}function Or(e,t){return null!=e&&je.call(e,t)}function Nr(e,t){return null!=e&&t in $e(e)}function _r(e,t,o){for(var i=o?Pt:Mt,a=e[0].length,l=e.length,c=l,s=n(l),u=1/0,d=[];c--;){var f=e[c];c&&t&&(f=Tt(f,Zt(t))),u=yn(f.length,u),s[c]=!o&&(t||a>=120&&f.length>=120)?new Xn(c&&f):r}f=e[0];var p=-1,m=s[0];e:for(;++p<a&&d.length<u;){var h=f[p],g=t?t(h):h;if(h=o||0!==h?h:0,!(m?en(m,g):i(d,g,o))){for(c=l;--c;){var v=s[c];if(!(v?en(v,g):i(e[c],g,o)))continue e}m&&m.push(g),d.push(h)}}return d}function Ir(e,t,n){var o=null==(e=Ni(e,t=wo(t,e)))?e:e[zi(Yi(t))];return null==o?r:$t(o,e,n)}function Rr(e){return tl(e)&&kr(e)==v}function Mr(e,t,n,o,i){return e===t||(null==e||null==t||!tl(e)&&!tl(t)?e!=e&&t!=t:function(e,t,n,o,i,a){var l=Va(e),c=Va(t),s=l?b:hi(e),u=c?b:hi(t),d=(s=s==v?$:s)==$,f=(u=u==v?$:u)==$,p=s==u;if(p&&Xa(e)){if(!Xa(t))return!1;l=!0,d=!1}if(p&&!d)return a||(a=new Gn),l||sl(e)?ni(e,t,n,o,i,a):function(e,t,n,r,o,i,a){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case y:case w:case k:return Ba(+e,+t);case S:return e.name==t.name&&e.message==t.message;case N:case I:return e==t+"";case E:var l=cn;case _:var c=1&r;if(l||(l=dn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=ni(l(e),l(t),r,o,i,a);return a.delete(e),u;case R:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,s,n,o,i,a);if(!(1&n)){var m=d&&je.call(e,"__wrapped__"),h=f&&je.call(t,"__wrapped__");if(m||h){var g=m?e.value():e,x=h?t.value():t;return a||(a=new Gn),i(g,x,n,o,a)}}return!!p&&(a||(a=new Gn),function(e,t,n,o,i,a){var l=1&n,c=oi(e),s=c.length,u=oi(t),d=u.length;if(s!=d&&!l)return!1;for(var f=s;f--;){var p=c[f];if(!(l?p in t:je.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);for(var v=l;++f<s;){var b=e[p=c[f]],y=t[p];if(o)var w=l?o(y,b,p,t,e,a):o(b,y,p,e,t,a);if(!(w===r?b===y||i(b,y,n,o,a):w)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var S=e.constructor,x=t.constructor;S==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,o,i,a))}(e,t,n,o,Mr,i))}function Pr(e,t,n,o){var i=n.length,a=i,l=!o;if(null==e)return!a;for(e=$e(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=n[i])[0],u=e[s],d=c[1];if(l&&c[2]){if(u===r&&!(s in e))return!1}else{var f=new Gn;if(o)var p=o(u,d,s,e,t,f);if(!(p===r?Mr(d,u,3,o,f):p))return!1}}return!0}function Tr(e){return!(!el(e)||(t=e,ze&&ze in t))&&(Qa(e)?Fe:ve).test(Di(e));var t}function jr(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?Va(e)?Fr(e[0],e[1]):Br(e):fc(e)}function Ar(e){if(!Ei(e))return qt(e);var t=[];for(var n in $e(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e){if(!el(e))return function(e){var t=[];if(null!=e)for(var n in $e(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&n.push(r);return n}function Dr(e,t){return e<t}function Lr(e,t){var r=-1,o=Ka(e)?n(e.length):[];return fr(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Br(e){var t=di(e);return 1==t.length&&t[0][2]?$i(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Fr(e,t){return Si(e)&&ki(t)?$i(zi(e),t):function(n){var o=$l(n,e);return o===r&&o===t?Ol(n,e):Mr(t,o,3)}}function Hr(e,t,n,o,i){e!==t&&br(t,(function(a,l){if(i||(i=new Gn),el(a))!function(e,t,n,o,i,a,l){var c=_i(e,n),s=_i(t,n),u=l.get(s);if(u)er(e,n,u);else{var d=a?a(c,s,n+"",e,t,l):r,f=d===r;if(f){var p=Va(s),m=!p&&Xa(s),h=!p&&!m&&sl(s);d=s,p||m||h?Va(c)?d=c:qa(c)?d=Io(c):m?(f=!1,d=Eo(s,!0)):h?(f=!1,d=$o(s,!0)):d=[]:ol(s)||Wa(s)?(d=c,Wa(c)?d=vl(c):el(c)&&!Qa(c)||(d=vi(s))):f=!1}f&&(l.set(s,d),i(d,s,o,a,l),l.delete(s)),er(e,n,d)}}(e,t,l,n,Hr,o,i);else{var c=o?o(_i(e,l),a,l+"",e,t,i):r;c===r&&(c=a),er(e,l,c)}}),Ml)}function Wr(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:r}function Vr(e,t,n){t=t.length?Tt(t,(function(e){return Va(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[rc];var r=-1;t=Tt(t,Zt(si()));var o=Lr(e,(function(e,n,o){var i=Tt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(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 c=Oo(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ur(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Cr(e,a);n(l,a)&&Jr(i,wo(a,e),l)}return i}function Kr(e,t,n,r){var o=r?Wt:Ht,i=-1,a=t.length,l=e;for(e===t&&(t=Io(t)),n&&(l=Tt(e,Zt(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&Ge.call(l,c,1),Ge.call(e,c,1);return e}function qr(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):fo(e,o)}}return e}function Xr(e,t){return e+ht(xn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Mi(Oi(e,t,rc),e+"")}function Qr(e){return Qn(Bl(e))}function Zr(e,t){var n=Bl(e);return ji(n,lr(t,0,n.length))}function Jr(e,t,n,o){if(!el(e))return e;for(var i=-1,a=(t=wo(t,e)).length,l=a-1,c=e;null!=c&&++i<a;){var s=zi(t[i]),u=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var d=c[s];(u=o?o(d,s,c):r)===r&&(u=el(d)?d:yi(t[i+1])?[]:{})}tr(c,s,u),c=c[s]}return e}var eo=In?function(e,t){return In.set(e,t),e}:rc,to=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:rc;function no(e){return ji(Bl(e))}function ro(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function oo(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function io(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 ao(e,t,rc,n)}function ao(e,t,n,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,c=null===t,s=cl(t),u=t===r;i<a;){var d=ht((i+a)/2),f=n(e[d]),p=f!==r,m=null===f,h=f==f,g=cl(f);if(l)var v=o||h;else v=u?h&&(o||p):c?h&&p&&(o||!m):s?h&&p&&!m&&(o||!g):!m&&!g&&(o?f<=t:f<t);v?i=d+1:a=d}return yn(a,4294967294)}function lo(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||!Ba(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cl(e)?m:+e}function so(e){if("string"==typeof e)return e;if(Va(e))return Tt(e,so)+"";if(cl(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=Mt,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=Pt;else if(i>=200){var s=t?null:Yo(e);if(s)return dn(s);a=!1,o=en,c=new Xn}else c=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 f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),l.push(u)}else o(c,d,n)||(c!==l&&c.push(d),l.push(u))}return l}function fo(e,t){return null==(e=Ni(e,t=wo(t,e)))||delete e[zi(Yi(t))]}function po(e,t,n,r){return Jr(e,t,n(Cr(e,t)),r)}function mo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ro(e,r?0:i,r?i+1:o):ro(e,r?i+1:0,r?o:i)}function ho(e,t){var n=e;return n instanceof Vn&&(n=n.value()),At(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function go(e,t,r){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var l=e[i],c=-1;++c<o;)c!=i&&(a[i]=dr(a[i]||l,e[c],t,r));return uo(vr(a,1),t,r)}function vo(e,t,n){for(var o=-1,i=e.length,a=t.length,l={};++o<i;){var c=o<a?t[o]:r;n(l,e[o],c)}return l}function bo(e){return qa(e)?e:[]}function yo(e){return"function"==typeof e?e:rc}function wo(e,t){return Va(e)?e:Si(e,t)?[e]:Ai(bl(e))}var So=Yr;function xo(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:ro(e,t,n)}var Co=rt||function(e){return mt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function $o(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oo(e,t){if(e!==t){var n=e!==r,o=null===e,i=e==e,a=cl(e),l=t!==r,c=null===t,s=t==t,u=cl(t);if(!c&&!u&&!a&&e>t||a&&l&&s&&!c&&!u||o&&l&&s||!n&&s||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||c&&n&&i||!l&&i||!s)return-1}return 0}function No(e,t,r,o){for(var i=-1,a=e.length,l=r.length,c=-1,s=t.length,u=bn(a-l,0),d=n(s+u),f=!o;++c<s;)d[c]=t[c];for(;++i<l;)(f||i<a)&&(d[r[i]]=e[i]);for(;u--;)d[c++]=e[i++];return d}function _o(e,t,r,o){for(var i=-1,a=e.length,l=-1,c=r.length,s=-1,u=t.length,d=bn(a-c,0),f=n(d+u),p=!o;++i<d;)f[i]=e[i];for(var m=i;++s<u;)f[m+s]=t[s];for(;++l<c;)(p||i<a)&&(f[m+r[l]]=e[i++]);return f}function Io(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Ro(e,t,n,o){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],s=o?o(n[c],e[c],c,n,e):r;s===r&&(s=e[c]),i?ir(n,c,s):tr(n,c,s)}return n}function Mo(e,t){return function(n,r){var o=Va(n)?Ot:rr,i=t?t():{};return o(n,e,si(r,2),i)}}function Po(e){return Yr((function(t,n){var o=-1,i=n.length,a=i>1?n[i-1]:r,l=i>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(i--,a):r,l&&wi(n[0],n[1],l)&&(a=i<3?r:a,i=1),t=$e(t);++o<i;){var c=n[o];c&&e(t,c,o,a)}return t}))}function To(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=$e(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function jo(e){return function(t,n,r){for(var o=-1,i=$e(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function Ao(e){return function(t){var n=ln(t=bl(t))?mn(t):r,o=n?n[0]:t.charAt(0),i=n?xo(n,1).join(""):t.slice(1);return o[e]()+i}}function zo(e){return function(t){return At(Ql(Wl(t).replace(Je,"")),e,"")}}function Do(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=Fn(e.prototype),r=e.apply(n,t);return el(r)?r:n}}function Lo(e){return function(t,n,o){var i=$e(t);if(!Ka(t)){var a=si(n,3);t=Rl(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,o);return l>-1?i[a?t[l]:l]:r}}function Bo(e){return ri((function(t){var n=t.length,i=n,a=Wn.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new _e(o);if(a&&!c&&"wrapper"==li(l))var c=new Wn([],!0)}for(i=c?i:n;++i<n;){var s=li(l=t[i]),u="wrapper"==s?ai(l):r;c=u&&xi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[li(u[0])].apply(c,u[3]):1==l.length&&xi(l)?c[s]():c.thru(l)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Va(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,o,i,a,l,c,s,d,f){var p=t&u,m=1&t,h=2&t,g=24&t,v=512&t,b=h?r:Do(e);return function u(){for(var y=arguments.length,w=n(y),S=y;S--;)w[S]=arguments[S];if(g)var x=ci(u),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,x);if(i&&(w=No(w,i,a,g)),l&&(w=_o(w,l,c,g)),y-=C,g&&y<f){var E=un(w,x);return Xo(e,t,Fo,u.placeholder,o,w,E,s,d,f-y)}var k=m?o:this,$=h?k[e]:e;return y=w.length,s?w=function(e,t){for(var n=e.length,o=yn(t.length,n),i=Io(e);o--;){var a=t[o];e[o]=yi(a,n)?i[a]:r}return e}(w,s):v&&y>1&&w.reverse(),p&&d<y&&(w.length=d),this&&this!==mt&&this instanceof u&&($=b||Do($)),$.apply(k,w)}}function Ho(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(n,o){var i;if(n===r&&o===r)return t;if(n!==r&&(i=n),o!==r){if(i===r)return o;"string"==typeof n||"string"==typeof o?(n=so(n),o=so(o)):(n=co(n),o=co(o)),i=e(n,o)}return i}}function Vo(e){return ri((function(t){return t=Tt(t,Zt(si())),Yr((function(n){var r=this;return e(t,(function(e){return $t(e,r,n)}))}))}))}function Uo(e,t){var n=(t=t===r?" ":so(t)).length;if(n<2)return n?Gr(t,e):t;var o=Gr(t,pt(e/pn(t)));return ln(t)?xo(mn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,o,i){return i&&"number"!=typeof i&&wi(t,o,i)&&(o=i=r),t=pl(t),o===r?(o=t,t=0):o=pl(o),function(e,t,r,o){for(var i=-1,a=bn(pt((t-e)/(r||1)),0),l=n(a);a--;)l[o?a:++i]=e,e+=r;return l}(t,o,i=i===r?t<o?1:-1:pl(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gl(t),n=gl(n)),e(t,n)}}function Xo(e,t,n,o,i,a,l,u,d,f){var p=8&t;t|=p?c:s,4&(t&=~(p?s:c))||(t&=-4);var m=[e,t,i,p?a:r,p?l:r,p?r:a,p?r:l,u,d,f],h=n.apply(r,m);return xi(e)&&Ii(h,m),h.placeholder=o,Pi(h,e,t)}function Go(e){var t=ke[e];return function(e,n){if(e=gl(e),(n=null==n?0:yn(ml(n),292))&&yt(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 Yo=On&&1/dn(new On([,-0]))[1]==f?function(e){return new On(e)}:cc;function Qo(e){return function(t){var n=hi(t);return n==E?cn(t):n==_?fn(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zo(e,t,i,f,p,m,h,g){var v=2&t;if(!v&&"function"!=typeof e)throw new _e(o);var b=f?f.length:0;if(b||(t&=-97,f=p=r),h=h===r?h:bn(ml(h),0),g=g===r?g:ml(g),b-=p?p.length:0,t&s){var y=f,w=p;f=p=r}var S=v?r:ai(e),x=[e,t,i,f,p,y,w,m,h,g];if(S&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,l=r==u&&8==n||r==u&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!l)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var s=e[3];e[3]=s?No(s,c,t[4]):c,e[4]=s?un(e[3],a):t[4]}(c=t[5])&&(s=e[5],e[5]=s?_o(s,c,t[6]):c,e[6]=s?un(e[5],a):t[6]),(c=t[7])&&(e[7]=c),r&u&&(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]=o}(x,S),e=x[0],t=x[1],i=x[2],f=x[3],p=x[4],!(g=x[9]=x[9]===r?v?0:e.length:bn(x[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==l?function(e,t,o){var i=Do(e);return function a(){for(var l=arguments.length,c=n(l),s=l,u=ci(a);s--;)c[s]=arguments[s];var d=l<3&&c[0]!==u&&c[l-1]!==u?[]:un(c,u);return(l-=d.length)<o?Xo(e,t,Fo,a.placeholder,r,c,d,r,r,o-l):$t(this&&this!==mt&&this instanceof a?i:e,this,c)}}(e,t,g):t!=c&&33!=t||p.length?Fo.apply(r,x):function(e,t,r,o){var i=1&t,a=Do(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=o.length,d=n(u+c),f=this&&this!==mt&&this instanceof t?a:e;++s<u;)d[s]=o[s];for(;c--;)d[s++]=arguments[++l];return $t(f,i?r:this,d)}}(e,t,i,f);else var C=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,i);return Pi((S?eo:Ii)(C,x),e,t)}function Jo(e,t,n,o){return e===r||Ba(e,Me[n])&&!je.call(o,n)?t:e}function ei(e,t,n,o,i,a){return el(e)&&el(t)&&(a.set(t,e),Hr(e,t,r,ei,a),a.delete(t)),e}function ti(e){return ol(e)?r:e}function ni(e,t,n,o,i,a){var l=1&n,c=e.length,s=t.length;if(c!=s&&!(l&&s>c))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=2&n?new Xn:r;for(a.set(e,t),a.set(t,e);++f<c;){var h=e[f],g=t[f];if(o)var v=l?o(g,h,f,t,e,a):o(h,g,f,e,t,a);if(v!==r){if(v)continue;p=!1;break}if(m){if(!Dt(t,(function(e,t){if(!en(m,t)&&(h===e||i(h,e,n,o,a)))return m.push(t)}))){p=!1;break}}else if(h!==g&&!i(h,g,n,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ri(e){return Mi(Oi(e,r,Ui),e+"")}function oi(e){return Er(e,Rl,pi)}function ii(e){return Er(e,Ml,mi)}var ai=In?function(e){return In.get(e)}:cc;function li(e){for(var t=e.name+"",n=Rn[t],r=je.call(Rn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(je.call(Bn,"placeholder")?Bn:e).placeholder}function si(){var e=Bn.iteratee||oc;return e=e===oc?jr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function di(e){for(var t=Rl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ki(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Tr(n)?n:r}var pi=gt?function(e){return null==e?[]:(e=$e(e),Rt(gt(e),(function(t){return Xe.call(e,t)})))}:hc,mi=gt?function(e){for(var t=[];e;)jt(t,pi(e)),e=Ke(e);return t}:hc,hi=kr;function gi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=zi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ja(o)&&yi(a,o)&&(Va(e)||Wa(e))}function vi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Fn(Ke(e))}function bi(e){return Va(e)||Wa(e)||!!(Ye&&e&&e[Ye])}function yi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!el(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&yi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function Si(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cl(e))||te.test(e)||!ee.test(e)||null!=t&&e in $e(t)}function xi(e){var t=li(e),n=Bn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(En&&hi(new En(new ArrayBuffer(1)))!=T||kn&&hi(new kn)!=E||$n&&hi($n.resolve())!=O||On&&hi(new On)!=_||Nn&&hi(new Nn)!=M)&&(hi=function(e){var t=kr(e),n=t==$?e.constructor:r,o=n?Di(n):"";if(o)switch(o){case Mn:return T;case Pn:return E;case Tn:return O;case jn:return _;case An:return M}return t});var Ci=Pe?Qa:gc;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function ki(e){return e==e&&!el(e)}function $i(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in $e(n))}}function Oi(e,t,o){return t=bn(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=bn(r.length-t,0),l=n(a);++i<a;)l[i]=r[t+i];i=-1;for(var c=n(t+1);++i<t;)c[i]=r[i];return c[t]=o(l),$t(e,this,c)}}function Ni(e,t){return t.length<2?e:Cr(e,ro(t,0,-1))}function _i(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Ti(eo),Ri=ft||function(e,t){return mt.setTimeout(e,t)},Mi=Ti(to);function Pi(e,t,n){var r=t+"";return Mi(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(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Nt(g,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(se):[]}(r),n)))}function Ti(e){var t=0,n=0;return function(){var o=wn(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function ji(e,t){var n=-1,o=e.length,i=o-1;for(t=t===r?o:t;++n<t;){var a=Xr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Ai=function(e){var t=Ta(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}));function zi(e){if("string"==typeof e||cl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Di(e){if(null!=e){try{return Te.call(e)}catch(Ij){}try{return e+""}catch(Ij){}}return""}function Li(e){if(e instanceof Vn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Yr((function(e,t){return qa(e)?dr(e,vr(t,1,qa,!0)):[]})),Fi=Yr((function(e,t){var n=Yi(t);return qa(n)&&(n=r),qa(e)?dr(e,vr(t,1,qa,!0),si(n,2)):[]})),Hi=Yr((function(e,t){var n=Yi(t);return qa(n)&&(n=r),qa(e)?dr(e,vr(t,1,qa,!0),r,n):[]}));function Wi(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=bn(r+o,0)),Ft(e,si(t,3),o)}function Vi(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return n!==r&&(i=ml(n),i=n<0?bn(o+i,0):yn(i,o-1)),Ft(e,si(t,3),i,!0)}function Ui(e){return null!=e&&e.length?vr(e,1):[]}function Ki(e){return e&&e.length?e[0]:r}var qi=Yr((function(e){var t=Tt(e,bo);return t.length&&t[0]===e[0]?_r(t):[]})),Xi=Yr((function(e){var t=Yi(e),n=Tt(e,bo);return t===Yi(n)?t=r:n.pop(),n.length&&n[0]===e[0]?_r(n,si(t,2)):[]})),Gi=Yr((function(e){var t=Yi(e),n=Tt(e,bo);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?_r(n,r,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Qi=Yr(Zi);function Zi(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var Ji=ri((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return qr(e,Tt(t,(function(e){return yi(e,n)?+e:e})).sort(Oo)),r}));function ea(e){return null==e?e:Cn.call(e)}var ta=Yr((function(e){return uo(vr(e,1,qa,!0))})),na=Yr((function(e){var t=Yi(e);return qa(t)&&(t=r),uo(vr(e,1,qa,!0),si(t,2))})),ra=Yr((function(e){var t=Yi(e);return t="function"==typeof t?t:r,uo(vr(e,1,qa,!0),r,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,(function(e){if(qa(e))return t=bn(e.length,t),!0})),Yt(t,(function(t){return Tt(e,Kt(t))}))}function ia(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Tt(n,(function(e){return $t(t,r,e)}))}var aa=Yr((function(e,t){return qa(e)?dr(e,t):[]})),la=Yr((function(e){return go(Rt(e,qa))})),ca=Yr((function(e){var t=Yi(e);return qa(t)&&(t=r),go(Rt(e,qa),si(t,2))})),sa=Yr((function(e){var t=Yi(e);return t="function"==typeof t?t:r,go(Rt(e,qa),r,t)})),ua=Yr(oa),da=Yr((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ia(e,n)}));function fa(e){var t=Bn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ma=ri((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vn&&yi(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:r}),new Wn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(i)})),ha=Mo((function(e,t,n){je.call(e,n)?++e[n]:ir(e,n,1)})),ga=Lo(Wi),va=Lo(Vi);function ba(e,t){return(Va(e)?Nt:fr)(e,si(t,3))}function ya(e,t){return(Va(e)?_t:pr)(e,si(t,3))}var wa=Mo((function(e,t,n){je.call(e,n)?e[n].push(t):ir(e,n,[t])})),Sa=Yr((function(e,t,r){var o=-1,i="function"==typeof t,a=Ka(e)?n(e.length):[];return fr(e,(function(e){a[++o]=i?$t(t,e,r):Ir(e,t,r)})),a})),xa=Mo((function(e,t,n){ir(e,n,t)}));function Ca(e,t){return(Va(e)?Tt:Lr)(e,si(t,3))}var Ea=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ka=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,vr(t,1),[])})),$a=st||function(){return mt.Date.now()};function Oa(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Zo(e,u,r,r,r,r,t)}function Na(e,t){var n;if("function"!=typeof t)throw new _e(o);return e=ml(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var _a=Yr((function(e,t,n){var r=1;if(n.length){var o=un(n,ci(_a));r|=c}return Zo(e,r,t,n,o)})),Ia=Yr((function(e,t,n){var r=3;if(n.length){var o=un(n,ci(Ia));r|=c}return Zo(t,r,e,n,o)}));function Ra(e,t,n){var i,a,l,c,s,u,d=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new _e(o);function h(t){var n=i,o=a;return i=a=r,d=t,c=e.apply(o,n)}function g(e){var n=e-u;return u===r||n>=t||n<0||p&&e-d>=l}function v(){var e=$a();if(g(e))return b(e);s=Ri(v,function(e){var n=t-(e-u);return p?yn(n,l-(e-d)):n}(e))}function b(e){return s=r,m&&i?h(e):(i=a=r,c)}function y(){var e=$a(),n=g(e);if(i=arguments,a=this,u=e,n){if(s===r)return function(e){return d=e,s=Ri(v,t),f?h(e):c}(u);if(p)return Co(s),s=Ri(v,t),h(u)}return s===r&&(s=Ri(v,t)),c}return t=gl(t)||0,el(n)&&(f=!!n.leading,l=(p="maxWait"in n)?bn(gl(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),y.cancel=function(){s!==r&&Co(s),d=0,i=u=a=s=r},y.flush=function(){return s===r?c:b($a())},y}var Ma=Yr((function(e,t){return ur(e,1,t)})),Pa=Yr((function(e,t,n){return ur(e,gl(t)||0,n)}));function Ta(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new _e(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ta.Cache||qn),n}function ja(e){if("function"!=typeof e)throw new _e(o);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)}}Ta.Cache=qn;var Aa=So((function(e,t){var n=(t=1==t.length&&Va(t[0])?Tt(t[0],Zt(si())):Tt(vr(t,1),Zt(si()))).length;return Yr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return $t(e,this,r)}))})),za=Yr((function(e,t){var n=un(t,ci(za));return Zo(e,c,r,t,n)})),Da=Yr((function(e,t){var n=un(t,ci(Da));return Zo(e,s,r,t,n)})),La=ri((function(e,t){return Zo(e,d,r,r,r,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Fa=qo($r),Ha=qo((function(e,t){return e>=t})),Wa=Rr(function(){return arguments}())?Rr:function(e){return tl(e)&&je.call(e,"callee")&&!Xe.call(e,"callee")},Va=n.isArray,Ua=wt?Zt(wt):function(e){return tl(e)&&kr(e)==P};function Ka(e){return null!=e&&Ja(e.length)&&!Qa(e)}function qa(e){return tl(e)&&Ka(e)}var Xa=bt||gc,Ga=St?Zt(St):function(e){return tl(e)&&kr(e)==w};function Ya(e){if(!tl(e))return!1;var t=kr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ol(e)}function Qa(e){if(!el(e))return!1;var t=kr(e);return t==x||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==ml(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function el(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tl(e){return null!=e&&"object"==typeof e}var nl=xt?Zt(xt):function(e){return tl(e)&&hi(e)==E};function rl(e){return"number"==typeof e||tl(e)&&kr(e)==k}function ol(e){if(!tl(e)||kr(e)!=$)return!1;var t=Ke(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Te.call(n)==Le}var il=Ct?Zt(Ct):function(e){return tl(e)&&kr(e)==N},al=Et?Zt(Et):function(e){return tl(e)&&hi(e)==_};function ll(e){return"string"==typeof e||!Va(e)&&tl(e)&&kr(e)==I}function cl(e){return"symbol"==typeof e||tl(e)&&kr(e)==R}var sl=kt?Zt(kt):function(e){return tl(e)&&Ja(e.length)&&!!lt[kr(e)]},ul=qo(Dr),dl=qo((function(e,t){return e<=t}));function fl(e){if(!e)return[];if(Ka(e))return ll(e)?mn(e):Io(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=hi(e);return(t==E?cn:t==_?dn:Bl)(e)}function pl(e){return e?(e=gl(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ml(e){var t=pl(e),n=t%1;return t==t?n?t-n:t:0}function hl(e){return e?lr(ml(e),0,h):0}function gl(e){if("number"==typeof e)return e;if(cl(e))return m;if(el(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=el(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ge.test(e);return n||be.test(e)?dt(e.slice(2),n?2:8):he.test(e)?m:+e}function vl(e){return Ro(e,Ml(e))}function bl(e){return null==e?"":so(e)}var yl=Po((function(e,t){if(Ei(t)||Ka(t))Ro(t,Rl(t),e);else for(var n in t)je.call(t,n)&&tr(e,n,t[n])})),wl=Po((function(e,t){Ro(t,Ml(t),e)})),Sl=Po((function(e,t,n,r){Ro(t,Ml(t),e,r)})),xl=Po((function(e,t,n,r){Ro(t,Rl(t),e,r)})),Cl=ri(ar),El=Yr((function(e,t){e=$e(e);var n=-1,o=t.length,i=o>2?t[2]:r;for(i&&wi(t[0],t[1],i)&&(o=1);++n<o;)for(var a=t[n],l=Ml(a),c=-1,s=l.length;++c<s;){var u=l[c],d=e[u];(d===r||Ba(d,Me[u])&&!je.call(e,u))&&(e[u]=a[u])}return e})),kl=Yr((function(e){return e.push(r,ei),$t(Tl,r,e)}));function $l(e,t,n){var o=null==e?r:Cr(e,t);return o===r?n:o}function Ol(e,t){return null!=e&&gi(e,t,Nr)}var Nl=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),ec(rc)),_l=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),si),Il=Yr(Ir);function Rl(e){return Ka(e)?Yn(e):Ar(e)}function Ml(e){return Ka(e)?Yn(e,!0):zr(e)}var Pl=Po((function(e,t,n){Hr(e,t,n)})),Tl=Po((function(e,t,n,r){Hr(e,t,n,r)})),jl=ri((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),Ro(e,ii(e),n),r&&(n=cr(n,7,ti));for(var o=t.length;o--;)fo(n,t[o]);return n})),Al=ri((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Ol(e,n)}))}(e,t)}));function zl(e,t){if(null==e)return{};var n=Tt(ii(e),(function(e){return[e]}));return t=si(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Dl=Qo(Rl),Ll=Qo(Ml);function Bl(e){return null==e?[]:Jt(e,Rl(e))}var Fl=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hl(t):t)}));function Hl(e){return Yl(bl(e).toLowerCase())}function Wl(e){return(e=bl(e))&&e.replace(we,rn).replace(et,"")}var Vl=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ul=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Kl=Ao("toLowerCase"),ql=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Xl=zo((function(e,t,n){return e+(n?" ":"")+Yl(t)})),Gl=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Yl=Ao("toUpperCase");function Ql(e,t,n){return e=bl(e),(t=n?r:t)===r?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Zl=Yr((function(e,t){try{return $t(e,r,t)}catch(Ij){return Ya(Ij)?Ij:new Ce(Ij)}})),Jl=ri((function(e,t){return Nt(t,(function(t){t=zi(t),ir(e,t,_a(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Bo(),nc=Bo(!0);function rc(e){return e}function oc(e){return jr("function"==typeof e?e:cr(e,1))}var ic=Yr((function(e,t){return function(n){return Ir(n,e,t)}})),ac=Yr((function(e,t){return function(n){return Ir(e,n,t)}}));function lc(e,t,n){var r=Rl(t),o=xr(t,r);null!=n||el(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Rl(t)));var i=!(el(n)&&"chain"in n&&!n.chain),a=Qa(e);return Nt(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__=Io(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function cc(){}var sc=Vo(Tt),uc=Vo(It),dc=Vo(Dt);function fc(e){return Si(e)?Kt(zi(e)):function(e){return function(t){return Cr(t,e)}}(e)}var pc=Ko(),mc=Ko(!0);function hc(){return[]}function gc(){return!1}var vc,bc=Wo((function(e,t){return e+t}),0),yc=Go("ceil"),wc=Wo((function(e,t){return e/t}),1),Sc=Go("floor"),xc=Wo((function(e,t){return e*t}),1),Cc=Go("round"),Ec=Wo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new _e(o);return e=ml(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Oa,Bn.assign=yl,Bn.assignIn=wl,Bn.assignInWith=Sl,Bn.assignWith=xl,Bn.at=Cl,Bn.before=Na,Bn.bind=_a,Bn.bindAll=Jl,Bn.bindKey=Ia,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Bn.chain=fa,Bn.chunk=function(e,t,o){t=(o?wi(e,t,o):t===r)?1:bn(ml(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,c=n(pt(i/t));a<i;)c[l++]=ro(e,a,a+=t);return c},Bn.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},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return jt(Va(r)?Io(r):[r],vr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new _e(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var o=e[r];if($t(o[0],this,n))return $t(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Rl(e);return function(n){return sr(n,e,t)}}(cr(e,1))},Bn.constant=ec,Bn.countBy=ha,Bn.create=function(e,t){var n=Fn(e);return null==t?n:or(n,t)},Bn.curry=function e(t,n,o){var i=Zo(t,8,r,r,r,r,r,n=o?r:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,o){var i=Zo(t,l,r,r,r,r,r,n=o?r:n);return i.placeholder=e.placeholder,i},Bn.debounce=Ra,Bn.defaults=El,Bn.defaultsDeep=kl,Bn.defer=Ma,Bn.delay=Pa,Bn.difference=Bi,Bn.differenceBy=Fi,Bn.differenceWith=Hi,Bn.drop=function(e,t,n){var o=null==e?0:e.length;return o?ro(e,(t=n||t===r?1:ml(t))<0?0:t,o):[]},Bn.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?ro(e,0,(t=o-(t=n||t===r?1:ml(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?mo(e,si(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?mo(e,si(t,3),!0):[]},Bn.fill=function(e,t,n,o){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,o=i),function(e,t,n,o){var i=e.length;for((n=ml(n))<0&&(n=-n>i?0:i+n),(o=o===r||o>i?i:ml(o))<0&&(o+=i),o=n>o?0:hl(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},Bn.filter=function(e,t){return(Va(e)?Rt:gr)(e,si(t,3))},Bn.flatMap=function(e,t){return vr(Ca(e,t),1)},Bn.flatMapDeep=function(e,t){return vr(Ca(e,t),f)},Bn.flatMapDepth=function(e,t,n){return n=n===r?1:ml(n),vr(Ca(e,t),n)},Bn.flatten=Ui,Bn.flattenDeep=function(e){return null!=e&&e.length?vr(e,f):[]},Bn.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===r?1:ml(t)):[]},Bn.flip=function(e){return Zo(e,512)},Bn.flow=tc,Bn.flowRight=nc,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:xr(e,Rl(e))},Bn.functionsIn=function(e){return null==e?[]:xr(e,Ml(e))},Bn.groupBy=wa,Bn.initial=function(e){return null!=e&&e.length?ro(e,0,-1):[]},Bn.intersection=qi,Bn.intersectionBy=Xi,Bn.intersectionWith=Gi,Bn.invert=Nl,Bn.invertBy=_l,Bn.invokeMap=Sa,Bn.iteratee=oc,Bn.keyBy=xa,Bn.keys=Rl,Bn.keysIn=Ml,Bn.map=Ca,Bn.mapKeys=function(e,t){var n={};return t=si(t,3),wr(e,(function(e,r,o){ir(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=si(t,3),wr(e,(function(e,r,o){ir(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(cr(e,1))},Bn.matchesProperty=function(e,t){return Fr(e,cr(t,1))},Bn.memoize=Ta,Bn.merge=Pl,Bn.mergeWith=Tl,Bn.method=ic,Bn.methodOf=ac,Bn.mixin=lc,Bn.negate=ja,Bn.nthArg=function(e){return e=ml(e),Yr((function(t){return Wr(t,e)}))},Bn.omit=jl,Bn.omitBy=function(e,t){return zl(e,ja(si(t)))},Bn.once=function(e){return Na(2,e)},Bn.orderBy=function(e,t,n,o){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=o?r:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Bn.over=sc,Bn.overArgs=Aa,Bn.overEvery=uc,Bn.overSome=dc,Bn.partial=za,Bn.partialRight=Da,Bn.partition=Ea,Bn.pick=Al,Bn.pickBy=zl,Bn.property=fc,Bn.propertyOf=function(e){return function(t){return null==e?r:Cr(e,t)}},Bn.pull=Qi,Bn.pullAll=Zi,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,si(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,r,n):e},Bn.pullAt=Ji,Bn.range=pc,Bn.rangeRight=mc,Bn.rearg=La,Bn.reject=function(e,t){return(Va(e)?Rt:gr)(e,ja(si(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return qr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new _e(o);return Yr(e,t=t===r?t:ml(t))},Bn.reverse=ea,Bn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===r)?1:ml(t),(Va(e)?Zn:Zr)(e,t)},Bn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Bn.setWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:Jr(e,t,n,o)},Bn.shuffle=function(e){return(Va(e)?Jn:no)(e)},Bn.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=o):(t=null==t?0:ml(t),n=n===r?o:ml(n)),ro(e,t,n)):[]},Bn.sortBy=ka,Bn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=r),(n=n===r?h:n>>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!il(t))&&!(t=so(t))&&ln(e)?xo(mn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new _e(o);return t=null==t?0:bn(ml(t),0),Yr((function(n){var r=n[t],o=xo(n,0,t);return r&&jt(o,r),$t(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===r?1:ml(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?ro(e,(t=o-(t=n||t===r?1:ml(t)))<0?0:t,o):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?mo(e,si(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?mo(e,si(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new _e(o);return el(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ra(e,t,{leading:r,maxWait:t,trailing:i})},Bn.thru=pa,Bn.toArray=fl,Bn.toPairs=Dl,Bn.toPairsIn=Ll,Bn.toPath=function(e){return Va(e)?Tt(e,zi):cl(e)?[e]:Io(Ai(bl(e)))},Bn.toPlainObject=vl,Bn.transform=function(e,t,n){var r=Va(e),o=r||Xa(e)||sl(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:el(e)&&Qa(i)?Fn(Ke(e)):{}}return(o?Nt:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Oa(e,1)},Bn.union=ta,Bn.unionBy=na,Bn.unionWith=ra,Bn.uniq=function(e){return e&&e.length?uo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?uo(e,si(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?uo(e,r,t):[]},Bn.unset=function(e,t){return null==e||fo(e,t)},Bn.unzip=oa,Bn.unzipWith=ia,Bn.update=function(e,t,n){return null==e?e:po(e,t,yo(n))},Bn.updateWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:po(e,t,yo(n),o)},Bn.values=Bl,Bn.valuesIn=function(e){return null==e?[]:Jt(e,Ml(e))},Bn.without=aa,Bn.words=Ql,Bn.wrap=function(e,t){return za(yo(t),e)},Bn.xor=la,Bn.xorBy=ca,Bn.xorWith=sa,Bn.zip=ua,Bn.zipObject=function(e,t){return vo(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return vo(e||[],t||[],Jr)},Bn.zipWith=da,Bn.entries=Dl,Bn.entriesIn=Ll,Bn.extend=wl,Bn.extendWith=Sl,lc(Bn,Bn),Bn.add=bc,Bn.attempt=Zl,Bn.camelCase=Fl,Bn.capitalize=Hl,Bn.ceil=yc,Bn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=gl(n))==n?n:0),t!==r&&(t=(t=gl(t))==t?t:0),lr(gl(e),t,n)},Bn.clone=function(e){return cr(e,4)},Bn.cloneDeep=function(e){return cr(e,5)},Bn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:r)},Bn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:r)},Bn.conformsTo=function(e,t){return null==t||sr(e,t,Rl(t))},Bn.deburr=Wl,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=wc,Bn.endsWith=function(e,t,n){e=bl(e),t=so(t);var o=e.length,i=n=n===r?o:lr(ml(n),0,o);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=bl(e))&&Y.test(e)?e.replace(X,on):e},Bn.escapeRegExp=function(e){return(e=bl(e))&&oe.test(e)?e.replace(re,"\\$&"):e},Bn.every=function(e,t,n){var o=Va(e)?It:mr;return n&&wi(e,t,n)&&(t=r),o(e,si(t,3))},Bn.find=ga,Bn.findIndex=Wi,Bn.findKey=function(e,t){return Bt(e,si(t,3),wr)},Bn.findLast=va,Bn.findLastIndex=Vi,Bn.findLastKey=function(e,t){return Bt(e,si(t,3),Sr)},Bn.floor=Sc,Bn.forEach=ba,Bn.forEachRight=ya,Bn.forIn=function(e,t){return null==e?e:br(e,si(t,3),Ml)},Bn.forInRight=function(e,t){return null==e?e:yr(e,si(t,3),Ml)},Bn.forOwn=function(e,t){return e&&wr(e,si(t,3))},Bn.forOwnRight=function(e,t){return e&&Sr(e,si(t,3))},Bn.get=$l,Bn.gt=Fa,Bn.gte=Ha,Bn.has=function(e,t){return null!=e&&gi(e,t,Or)},Bn.hasIn=Ol,Bn.head=Ki,Bn.identity=rc,Bn.includes=function(e,t,n,r){e=Ka(e)?e:Bl(e),n=n&&!r?ml(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),ll(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ht(e,t,n)>-1},Bn.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=bn(r+o,0)),Ht(e,t,o)},Bn.inRange=function(e,t,n){return t=pl(t),n===r?(n=t,t=0):n=pl(n),function(e,t,n){return e>=yn(t,n)&&e<bn(t,n)}(e=gl(e),t,n)},Bn.invoke=Il,Bn.isArguments=Wa,Bn.isArray=Va,Bn.isArrayBuffer=Ua,Bn.isArrayLike=Ka,Bn.isArrayLikeObject=qa,Bn.isBoolean=function(e){return!0===e||!1===e||tl(e)&&kr(e)==y},Bn.isBuffer=Xa,Bn.isDate=Ga,Bn.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||sl(e)||Wa(e)))return!e.length;var t=hi(e);if(t==E||t==_)return!e.size;if(Ei(e))return!Ar(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Mr(e,t)},Bn.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:r)?n(e,t):r;return o===r?Mr(e,t,r,n):!!o},Bn.isError=Ya,Bn.isFinite=function(e){return"number"==typeof e&&yt(e)},Bn.isFunction=Qa,Bn.isInteger=Za,Bn.isLength=Ja,Bn.isMap=nl,Bn.isMatch=function(e,t){return e===t||Pr(e,t,di(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Pr(e,t,di(t),n)},Bn.isNaN=function(e){return rl(e)&&e!=+e},Bn.isNative=function(e){if(Ci(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=rl,Bn.isObject=el,Bn.isObjectLike=tl,Bn.isPlainObject=ol,Bn.isRegExp=il,Bn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=p},Bn.isSet=al,Bn.isString=ll,Bn.isSymbol=cl,Bn.isTypedArray=sl,Bn.isUndefined=function(e){return e===r},Bn.isWeakMap=function(e){return tl(e)&&hi(e)==M},Bn.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==kr(e)},Bn.join=function(e,t){return null==e?"":Lt.call(e,t)},Bn.kebabCase=Vl,Bn.last=Yi,Bn.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o;return n!==r&&(i=(i=ml(n))<0?bn(o+i,0):yn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Vt,i,!0)},Bn.lowerCase=Ul,Bn.lowerFirst=Kl,Bn.lt=ul,Bn.lte=dl,Bn.max=function(e){return e&&e.length?hr(e,rc,$r):r},Bn.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),$r):r},Bn.mean=function(e){return Ut(e,rc)},Bn.meanBy=function(e,t){return Ut(e,si(t,2))},Bn.min=function(e){return e&&e.length?hr(e,rc,Dr):r},Bn.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),Dr):r},Bn.stubArray=hc,Bn.stubFalse=gc,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=xc,Bn.nth=function(e,t){return e&&e.length?Wr(e,ml(t)):r},Bn.noConflict=function(){return mt._===this&&(mt._=Be),this},Bn.noop=cc,Bn.now=$a,Bn.pad=function(e,t,n){e=bl(e);var r=(t=ml(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Uo(ht(o),n)+e+Uo(pt(o),n)},Bn.padEnd=function(e,t,n){e=bl(e);var r=(t=ml(t))?pn(e):0;return t&&r<t?e+Uo(t-r,n):e},Bn.padStart=function(e,t,n){e=bl(e);var r=(t=ml(t))?pn(e):0;return t&&r<t?Uo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(bl(e).replace(ie,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=pl(e),t===r?(t=e,e=0):t=pl(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var i=xn();return yn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Xr(e,t)},Bn.reduce=function(e,t,n){var r=Va(e)?At:Xt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Bn.reduceRight=function(e,t,n){var r=Va(e)?zt:Xt,o=arguments.length<3;return r(e,si(t,4),n,o,pr)},Bn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===r)?1:ml(t),Gr(bl(e),t)},Bn.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var o=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=r);++o<i;){var a=null==e?r:e[zi(t[o])];a===r&&(o=i,a=n),e=Qa(a)?a.call(e):a}return e},Bn.round=Cc,Bn.runInContext=e,Bn.sample=function(e){return(Va(e)?Qn:Qr)(e)},Bn.size=function(e){if(null==e)return 0;if(Ka(e))return ll(e)?pn(e):e.length;var t=hi(e);return t==E||t==_?e.size:Ar(e).length},Bn.snakeCase=ql,Bn.some=function(e,t,n){var o=Va(e)?Dt:oo;return n&&wi(e,t,n)&&(t=r),o(e,si(t,3))},Bn.sortedIndex=function(e,t){return io(e,t)},Bn.sortedIndexBy=function(e,t,n){return ao(e,t,si(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return io(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return ao(e,t,si(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=io(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Xl,Bn.startsWith=function(e,t,n){return e=bl(e),n=null==n?0:lr(ml(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Bn.subtract=Ec,Bn.sum=function(e){return e&&e.length?Gt(e,rc):0},Bn.sumBy=function(e,t){return e&&e.length?Gt(e,si(t,2)):0},Bn.template=function(e,t,n){var o=Bn.templateSettings;n&&wi(e,t,n)&&(t=r),e=bl(e),t=Sl({},t,o,Jo);var i,a,l=Sl({},t.imports,o.imports,Jo),c=Rl(l),s=Jt(l,c),u=0,d=t.interpolate||Se,f="__p += '",p=Oe((t.escape||Se).source+"|"+d.source+"|"+(d===J?pe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),m="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),f+=e.slice(u,c).replace(xe,an),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var h=je.call(t,"variable")&&t.variable;if(h){if(de.test(h))throw new Ce("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(V,""):f).replace(U,"$1").replace(K,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Zl((function(){return Ee(c,m+"return "+f).apply(r,s)}));if(g.source=f,Ya(g))throw g;return g},Bn.times=function(e,t){if((e=ml(e))<1||e>p)return[];var n=h,r=yn(e,h);t=si(t),e-=h;for(var o=Yt(r,t);++n<e;)t(n);return o},Bn.toFinite=pl,Bn.toInteger=ml,Bn.toLength=hl,Bn.toLower=function(e){return bl(e).toLowerCase()},Bn.toNumber=gl,Bn.toSafeInteger=function(e){return e?lr(ml(e),-9007199254740991,p):0===e?e:0},Bn.toString=bl,Bn.toUpper=function(e){return bl(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=bl(e))&&(n||t===r))return Qt(e);if(!e||!(t=so(t)))return e;var o=mn(e),i=mn(t);return xo(o,tn(o,i),nn(o,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=bl(e))&&(n||t===r))return e.slice(0,hn(e)+1);if(!e||!(t=so(t)))return e;var o=mn(e);return xo(o,0,nn(o,mn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=bl(e))&&(n||t===r))return e.replace(ie,"");if(!e||!(t=so(t)))return e;var o=mn(e);return xo(o,tn(o,mn(t))).join("")},Bn.truncate=function(e,t){var n=30,o="...";if(el(t)){var i="separator"in t?t.separator:i;n="length"in t?ml(t.length):n,o="omission"in t?so(t.omission):o}var a=(e=bl(e)).length;if(ln(e)){var l=mn(e);a=l.length}if(n>=a)return e;var c=n-pn(o);if(c<1)return o;var s=l?xo(l,0,c).join(""):e.slice(0,c);if(i===r)return s+o;if(l&&(c+=s.length-c),il(i)){if(e.slice(c).search(i)){var u,d=s;for(i.global||(i=Oe(i.source,bl(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;s=s.slice(0,f===r?c:f)}}else if(e.indexOf(so(i),c)!=c){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+o},Bn.unescape=function(e){return(e=bl(e))&&G.test(e)?e.replace(q,gn):e},Bn.uniqueId=function(e){var t=++Ae;return bl(e)+t},Bn.upperCase=Gl,Bn.upperFirst=Yl,Bn.each=ba,Bn.eachRight=ya,Bn.first=Ki,lc(Bn,(vc={},wr(Bn,(function(e,t){je.call(Bn.prototype,t)||(vc[t]=e)})),vc),{chain:!1}),Bn.VERSION="4.17.21",Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Nt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===r?1:bn(ml(n),0);var o=this.__filtered__&&!t?new Vn(this):this.clone();return o.__filtered__?o.__takeCount__=yn(n,o.__takeCount__):o.__views__.push({size:yn(n,h),type:e+(o.__dir__<0?"Right":"")}),o},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Nt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Nt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Nt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(rc)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ir(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(ja(si(e)))},Vn.prototype.slice=function(e,t){e=ml(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=ml(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(h)},wr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Bn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,c=t instanceof Vn,s=l[0],u=c||Va(t),d=function(e){var t=i.apply(Bn,jt([e],l));return o&&f?t[0]:t};u&&n&&"function"==typeof s&&1!=s.length&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,h=c&&!p;if(!a&&u){t=h?t:new Vn(this);var g=e.apply(t,l);return g.__actions__.push({func:pa,args:[d],thisArg:r}),new Wn(g,f)}return m&&h?e.apply(this,l):(g=this.thru(d),m?o?g.value()[0]:g.value():g)})})),Nt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.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)}))}})),wr(Vn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";je.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Fo(r,2).name]=[{name:"wrapper",func:r}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.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=bn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,d=u.length,f=0,p=yn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return ho(e,this.__actions__);var m=[];e:for(;c--&&f<p;){for(var h=-1,g=e[s+=t];++h<d;){var v=u[h],b=v.iteratee,y=v.type,w=b(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}m[f++]=g}return m},Bn.prototype.at=ma,Bn.prototype.chain=function(){return fa(this)},Bn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===r&&(this.__values__=fl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var o=Li(n);o.__index__=0,o.__values__=r,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ea],thisArg:r}),new Wn(t,this.__chain__)}return this.thru(ea)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Qe&&(Bn.prototype[Qe]=function(){return this}),Bn}();gt?((gt.exports=vn)._=vn,ht._=vn):mt._=vn}).call(n)}(Uee,Uee.exports),e("a6",r(Uee.exports))}}}));
|