From f11efb09afd588665aa522ae0c8ee8a187f1f402 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 16 Feb 2024 09:01:29 +0100 Subject: [PATCH] Bump react-i18next from 14.0.1 to 14.0.5 (#38) * Bump react-i18next from 14.0.1 to 14.0.5 Bumps [react-i18next](https://github.com/i18next/react-i18next) from 14.0.1 to 14.0.5. - [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md) - [Commits](https://github.com/i18next/react-i18next/compare/v14.0.1...v14.0.5) --- updated-dependencies: - dependency-name: react-i18next dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Automatic frontend build --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] --- package-lock.json | 16 ++++++++-------- package.json | 2 +- .../build/{994.85d1d88b.js => 994.ad624113.js} | 4 ++-- ...s.LICENSE.txt => 994.ad624113.js.LICENSE.txt} | 0 public/build/entrypoints.json | 2 +- public/build/manifest.json | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) rename public/build/{994.85d1d88b.js => 994.ad624113.js} (98%) rename public/build/{994.85d1d88b.js.LICENSE.txt => 994.ad624113.js.LICENSE.txt} (100%) diff --git a/package-lock.json b/package-lock.json index 95a90d832..28fdf4711 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "i18next": "^23.8.2", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-i18next": "^14.0.1", + "react-i18next": "^14.0.5", "react-redux": "^9.1.0" }, "devDependencies": { @@ -2156,9 +2156,9 @@ "dev": true }, "node_modules/@babel/runtime": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz", - "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.9.tgz", + "integrity": "sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -25502,11 +25502,11 @@ "dev": true }, "node_modules/react-i18next": { - "version": "14.0.1", - "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-14.0.1.tgz", - "integrity": "sha512-TMV8hFismBmpMdIehoFHin/okfvgjFhp723RYgIqB4XyhDobVMyukyM3Z8wtTRmajyFMZrBl/OaaXF2P6WjUAw==", + "version": "14.0.5", + "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-14.0.5.tgz", + "integrity": "sha512-5+bQSeEtgJrMBABBL5lO7jPdSNAbeAZ+MlFWDw//7FnVacuVu3l9EeWFzBQvZsKy+cihkbThWOAThEdH8YjGEw==", "dependencies": { - "@babel/runtime": "^7.22.5", + "@babel/runtime": "^7.23.9", "html-parse-stringify": "^3.0.1" }, "peerDependencies": { diff --git a/package.json b/package.json index 33809270d..f8d023c01 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "i18next": "^23.8.2", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-i18next": "^14.0.1", + "react-i18next": "^14.0.5", "react-redux": "^9.1.0" } } diff --git a/public/build/994.85d1d88b.js b/public/build/994.ad624113.js similarity index 98% rename from public/build/994.85d1d88b.js rename to public/build/994.ad624113.js index 41d621405..6440b515a 100644 --- a/public/build/994.85d1d88b.js +++ b/public/build/994.ad624113.js @@ -1,2 +1,2 @@ -/*! For license information please see 994.85d1d88b.js.LICENSE.txt */ -(self.webpackChunkPimcore=self.webpackChunkPimcore||[]).push([[994],{1242:(e,t,n)=>{"use strict";n.d(t,{iN:()=>w,R_:()=>b});var r=n(6500),o=n(1350),i=2,a=.16,s=.05,l=.05,c=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.py)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function h(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function g(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function m(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+s*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function v(e,t,n){var r;return(r=n?e.v+l*t:e.v-c*t)>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),i=u;i>0;i-=1){var a=p(r),s=h((0,o.uA)({h:g(a,i,!0),s:m(a,i,!0),v:v(a,i,!0)}));n.push(s)}n.push(h(r));for(var l=1;l<=d;l+=1){var c=p(r),b=h((0,o.uA)({h:g(c,l),s:m(c,l),v:v(c,l)}));n.push(b)}return"dark"===t.theme?f.map((function(e){var r,i,a,s=e.index,l=e.opacity;return h((r=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(n[s]),a=100*l/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))})):n}var y={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"},S={},E={};Object.keys(y).forEach((function(e){S[e]=b(y[e]),S[e].primary=S[e][5],E[e]=b(y[e],{theme:"dark",backgroundColor:"#141414"}),E[e].primary=E[e][5]}));S.red,S.volcano,S.gold,S.orange,S.yellow,S.lime,S.green,S.cyan;var w=S.blue;S.geekblue,S.purple,S.magenta,S.grey,S.grey},7395:(e,t,n)=>{"use strict";n.d(t,{E4:()=>mt,V9:()=>x,jG:()=>M,t2:()=>se,ks:()=>X,bf:()=>W,CI:()=>ht,fp:()=>ce,xy:()=>ft});var r=n(4942),o=n(9439),i=n(3433),a=n(1413);const s=function(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)};var l=n(4958),c=n(7294),u=n.t(c,2),d=n(4925),f=n(6982),p=n(1881),h=n(5671),g=n(3144),m="%";function v(e){return e.join(m)}const b=function(){function e(t){(0,h.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,g.Z)(e,[{key:"get",value:function(e){return this.opGet(v(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(v(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}();var y=["children"],S="data-token-hash",E="data-css-hash",w="__cssinjs_instance__";function _(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(E,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[w]=t[w]||e,t[w]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(E,"]"))).forEach((function(t){var n,o=t.getAttribute(E);r[o]?t[w]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new b(e)}var C=c.createContext({hashPriority:"low",cache:_(),defaultCache:!0}),x=function(e){var t=e.children,n=(0,d.Z)(e,y),r=c.useContext(C),o=(0,f.Z)((function(){var e=(0,a.Z)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||_(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,p.Z)(e[0],t[0],!0)||!(0,p.Z)(e[1],t[1],!0)}));return c.createElement(C.Provider,{value:o},t)};const O=C;var T=n(1002),k=n(8924);var R=function(){function e(){(0,h.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,g.Z)(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):o=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 i=this.keys.reduce((function(e,t){var n=(0,o.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),A+=1}return(0,g.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),P=new R;function M(e){var t=Array.isArray(e)?e:[e];return P.has(t)||P.set(t,new L(t)),P.get(t)}var $=new WeakMap,I={};var D=new WeakMap;function j(e){var t=D.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof L?t+=r.id:r&&"object"===(0,T.Z)(r)?t+=j(r):t+=r})),D.set(e,t)),t}function Z(e,t){return s("".concat(t,"_").concat(j(e)))}var z="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),B="_bAmBoO_";function F(e,t,n){if((0,k.Z)()){var r,o;(0,l.hq)(e,z);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(B);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,l.jL)(z),a}return!1}var H=void 0;var U=(0,k.Z)();function W(e){return"number"==typeof e?"".concat(e,"px"):e}function V(e,t,n){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var s=(0,a.Z)((0,a.Z)({},i),{},(o={},(0,r.Z)(o,S,t),(0,r.Z)(o,E,n),o)),l=Object.keys(s).map((function(e){var t=s[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var X=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()},q=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=(0,o.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Y=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,a,s=(0,o.Z)(e,2),l=s[0],c=s[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])i[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[l])){var u,d=X(l,null==n?void 0:n.prefix);r[d]="number"!=typeof c||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[l]?String(c):"".concat(c,"px"),i[l]="var(".concat(d,")")}})),[i,q(r,t,{scope:null==n?void 0:n.scope})]},G=n(8410),K=(0,a.Z)({},u).useInsertionEffect;const Q=K?function(e,t,n){return K((function(){return e(),t()}),n)}:function(e,t,n){c.useMemo(e,n),(0,G.Z)((function(){return t(!0)}),n)};const J=void 0!==(0,a.Z)({},u).useInsertionEffect?function(e){var t=[],n=!1;return c.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()}};const ee=function(){return!1};function te(e,t,n,r,a){var s=c.useContext(O).cache,l=v([e].concat((0,i.Z)(t))),u=J([l]),d=(ee(),function(e){s.opUpdate(l,(function(t){var r=t||[void 0,void 0],i=(0,o.Z)(r,2),a=i[0];var s=[void 0===a?0:a,i[1]||n()];return e?e(s):s}))});c.useMemo((function(){d()}),[l]);var f=s.opGet(l)[1];return Q((function(){null==a||a(f)}),(function(e){return d((function(t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(f)),[r+1,i]})),function(){s.opUpdate(l,(function(t){var n=t||[],i=(0,o.Z)(n,2),a=i[0],c=void 0===a?0:a,d=i[1];return 0===c-1?(u((function(){!e&&s.opGet(l)||null==r||r(d,!1)})),null):[c-1,d]}))}}),[l]),f}var ne={},re="css",oe=new Map;var ie=0;function ae(e,t){oe.set(e,(oe.get(e)||0)-1);var n=Array.from(oe.keys()),r=n.filter((function(e){return(oe.get(e)||0)<=0}));n.length-r.length>ie&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(S,'="').concat(e,'"]')).forEach((function(e){var n;e[w]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),oe.delete(e)}))}var se=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.Z)((0,a.Z)({},o),t);return r&&(i=r(i)),i},le="token";function ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.useContext)(O),u=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,h=n.override,g=void 0===h?ne:h,m=n.formatToken,v=n.getComputedToken,b=n.cssVar,y=function(e,t){for(var n=$,r=0;r0?_e(Me,--Le):0,Ne--,10===Pe&&(Ne=1,Re--),Pe}function De(){return Pe=Le2||Be(Pe)>3?"":" "}function Ve(e,t){for(;--t&&De()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return ze(e,Ze()+(t<6&&32==je()&&32==De()))}function Xe(e){for(;De();)switch(Pe){case e:return Le;case 34:case 39:34!==e&&39!==e&&Xe(Pe);break;case 40:41===e&&Xe(e);break;case 92:De()}return Le}function qe(e,t){for(;De()&&e+Pe!==57&&(e+Pe!==84||47!==je()););return"/*"+ze(t,Le-1)+"*"+ye(47===e?e:De())}function Ye(e){for(;!Be(je());)De();return ze(e,Le)}function Ge(e){return He(Ke("",null,null,null,[""],e=Fe(e),0,[0],e))}function Ke(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",S=o,E=i,w=r,_=y;m;)switch(h=b,b=De()){case 40:if(108!=h&&58==_e(_,d-1)){-1!=we(_+=Ee(Ue(b),"&","&\f"),"&\f",be(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=Ue(b);break;case 9:case 10:case 13:case 32:_+=We(h);break;case 92:_+=Ve(Ze()-1,7);continue;case 47:switch(je()){case 42:case 47:Oe(Je(qe(De(),Ze()),t,n,l),l);break;default:_+="/"}break;case 123*g:s[c++]=xe(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(_=Ee(_,/\f/g,"")),p>0&&xe(_)-d&&Oe(p>32?et(_+";",r,n,d-1,l):et(Ee(_," ","")+";",r,n,d-2,l),l);break;case 59:_+=";";default:if(Oe(w=Qe(_,t,n,c,u,o,s,y,S=[],E=[],d,i),i),123===b)if(0===u)Ke(_,t,w,w,S,i,d,s,E);else switch(99===f&&110===_e(_,3)?100:f){case 100:case 108:case 109:case 115:Ke(e,w,w,r&&Oe(Qe(e,w,w,0,0,o,s,y,o,S=[],d,E),E),o,E,d,s,r?S:E);break;default:Ke(_,w,w,w,[""],E,0,s,E)}}c=u=p=0,g=v=1,y=_="",d=a;break;case 58:d=1+xe(_),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ie())continue;switch(_+=ye(b),b*g){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(xe(_)-1)*v,v=1;break;case 64:45===je()&&(_+=Ue(De())),f=je(),u=d=xe(y=_+=Ye(Ze())),b++;break;case 45:45===h&&2==xe(_)&&(g=0)}}return i}function Qe(e,t,n,r,o,i,a,s,l,c,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,m=0,v=0;g0?p[b]+" "+y:Ee(y,/&\f/g,p[b])))&&(l[v++]=S);return $e(e,t,n,0===o?pe:s,l,c,u,d)}function Je(e,t,n,r){return $e(e,t,n,fe,ye(Pe),Ce(e,2,-2),0,r)}function et(e,t,n,r,o){return $e(e,t,n,he,Ce(e,0,r),Ce(e,r+1,-1),r,o)}var tt,nt="data-ant-cssinjs-cache-path",rt="_FILE_STYLE__";var ot=!0;function it(e){return function(){if(!tt&&(tt={},(0,k.Z)())){var e=document.createElement("div");e.className=nt,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=e.split(":"),n=(0,o.Z)(t,2),r=n[0],i=n[1];tt[r]=i}));var n,r=document.querySelector("style[".concat(nt,"]"));r&&(ot=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!tt[e]}var at="_multi_value_";function st(e){return Te(Ge(e),ke).replace(/\{%%%\:[^;];}/g,";")}var lt=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:[]},s=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,g=(n.linters,""),m={};function v(t){var r=t.getName(u);if(!m[r]){var i=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,o.Z)(i,1)[0];m[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var b=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]);if(b.forEach((function(t){var r="string"!=typeof t||s?t:{};if("string"==typeof r)g+="".concat(r,"\n");else if(r._keyframe)v(r);else{var d=h.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(d).forEach((function(t){var r=d[t];if("object"!==(0,T.Z)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,T.Z)(e)&&e&&("_skip_check_"in e||at in e)}(r)){var p;function x(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;de[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),g+="".concat(n,":").concat(r,";")}var h=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,T.Z)(r)&&null!=r&&r[at]&&Array.isArray(h)?h.forEach((function(e){x(t,e)})):x(t,h)}else{var b=!1,y=t.trim(),S=!1;(s||l)&&u?y.startsWith("@")?b=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.Z)(n.slice(1))).join(" ")})).join(",")}(t,u,f):!s||u||"&"!==y&&""!==y||(y="",S=!0);var E=e(r,n,{root:S,injectHash:b,parentSelectors:[].concat((0,i.Z)(c),[y])}),w=(0,o.Z)(E,2),_=w[0],C=w[1];m=(0,a.Z)((0,a.Z)({},m),C),g+="".concat(y).concat(_)}}))}})),s){if(d&&(void 0===H&&(H=F("@layer ".concat(z," { .").concat(z,' { content: "').concat(B,'"!important; } }'),(function(e){e.className=z}))),H)){var y=d.split(","),S=y[y.length-1].trim();g="@layer ".concat(S," {").concat(g,"}"),y.length>1&&(g="@layer ".concat(d,"{%%%:%}").concat(g))}}else g="{".concat(g,"}");return[g,m]};function ct(e,t){return s("".concat(e.join("%")).concat(t))}function ut(){return null}var dt="style";function ft(e,t){var n=e.token,a=e.path,s=e.hashId,u=e.layer,d=e.nonce,f=e.clientOnly,p=e.order,h=void 0===p?0:p,g=c.useContext(O),m=g.autoClear,v=(g.mock,g.defaultCache),b=g.hashPriority,y=g.container,_=g.ssrInline,C=g.transformers,x=g.linters,T=g.cache,R=n._tokenKey,N=[R].concat((0,i.Z)(a)),A=U;var L=te(dt,N,(function(){var e=N.join("|");if(it(e)){var n=function(e){var t=tt[e],n=null;if(t&&(0,k.Z)())if(ot)n=rt;else{var r=document.querySelector("style[".concat(E,'="').concat(tt[e],'"]'));r?n=r.innerHTML:delete tt[e]}return[n,t]}(e),r=(0,o.Z)(n,2),i=r[0],l=r[1];if(i)return[i,R,l,{},f,h]}var c=t(),d=lt(c,{hashId:s,hashPriority:b,layer:u,path:a.join("-"),transformers:C,linters:x}),p=(0,o.Z)(d,2),g=p[0],m=p[1],v=st(g),y=ct(N,v);return[v,R,y,m,f,h]}),(function(e,t){var n=(0,o.Z)(e,3)[2];(t||m)&&U&&(0,l.jL)(n,{mark:E})}),(function(e){var t=(0,o.Z)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(A&&n!==rt){var a={mark:E,prepend:"queue",attachTo:y,priority:h},s="function"==typeof d?d():d;s&&(a.csp={nonce:s});var c=(0,l.hq)(n,r,a);c[w]=T.instanceId,c.setAttribute(S,R),Object.keys(i).forEach((function(e){(0,l.hq)(st(i[e]),"_effect-".concat(e),a)}))}})),P=(0,o.Z)(L,3),M=P[0],$=P[1],I=P[2];return function(e){var t,n;_&&!A&&v?t=c.createElement("style",(0,ue.Z)({},(n={},(0,r.Z)(n,S,$),(0,r.Z)(n,E,I),n),{dangerouslySetInnerHTML:{__html:M}})):t=c.createElement(ut,null);return c.createElement(c.Fragment,null,t,e)}}var pt="cssVar";const ht=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,s=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,p=(0,c.useContext)(O),h=p.cache.instanceId,g=p.container,m=u._tokenKey,v=[].concat((0,i.Z)(e.path),[n,f,m]);return te(pt,v,(function(){var e=t(),i=Y(e,n,{prefix:r,unitless:a,ignore:s,scope:f}),l=(0,o.Z)(i,2),c=l[0],u=l[1];return[c,u,ct(v,u),n]}),(function(e){var t=(0,o.Z)(e,3)[2];U&&(0,l.jL)(t,{mark:E})}),(function(e){var t=(0,o.Z)(e,3),r=t[1],i=t[2];if(r){var a=(0,l.hq)(r,i,{mark:E,prepend:"queue",attachTo:g,priority:-999});a[w]=h,a.setAttribute(S,n)}}))};var gt;gt={},(0,r.Z)(gt,dt,(function(e,t,n){var r=(0,o.Z)(e,6),i=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var f=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=V(i,a,s,p,d),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=st(l[e]);f+=V(n,a,"_effect-".concat(e),p,d)}})),[u,s,f]})),(0,r.Z)(gt,le,(function(e,t,n){var r=(0,o.Z)(e,5),i=r[2],a=r[3],s=r[4],l=(n||{}).plain;if(!a)return null;var c=i._tokenKey;return[-999,c,V(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),(0,r.Z)(gt,pt,(function(e,t,n){var r=(0,o.Z)(e,4),i=r[1],a=r[2],s=r[3],l=(n||{}).plain;if(!i)return null;return[-999,a,V(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));const mt=function(){function e(t,n){(0,h.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,g.Z)(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 vt(e){return e.notSplit=!0,e}vt(["borderTop","borderBottom"]),vt(["borderTop"]),vt(["borderBottom"]),vt(["borderLeft","borderRight"]),vt(["borderLeft"]),vt(["borderRight"])},76:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(7462),o=n(9439),i=n(4942),a=n(4925),s=n(7294),l=n(3967),c=n.n(l),u=n(1242),d=n(3017),f=n(1413),p=n(1002),h=n(4958),g=n(7571),m=n(334);function v(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function y(e,t,n){return n?s.createElement(e.tag,(0,f.Z)((0,f.Z)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):s.createElement(e.tag,(0,f.Z)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function S(e){return(0,u.R_)(e)[0]}function E(e){return e?Array.isArray(e)?e:[e]:[]}var w=["icon","className","onClick","style","primaryColor","secondaryColor"],_={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,r,o,i,l,c,u=e.icon,p=e.className,b=e.onClick,E=e.style,C=e.primaryColor,x=e.secondaryColor,O=(0,a.Z)(e,w),T=s.useRef(),k=_;if(C&&(k={primaryColor:C,secondaryColor:x||S(C)}),t=T,n=(0,s.useContext)(d.Z),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)),(0,s.useEffect)((function(){var e=t.current,n=(0,g.A)(e);(0,h.hq)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),l=v(u),c="icon should be icon definiton, but got ".concat(u),(0,m.ZP)(l,"[@ant-design/icons] ".concat(c)),!v(u))return null;var R=u;return R&&"function"==typeof R.icon&&(R=(0,f.Z)((0,f.Z)({},R),{},{icon:R.icon(k.primaryColor,k.secondaryColor)})),y(R.icon,"svg-".concat(R.name),(0,f.Z)((0,f.Z)({className:p,onClick:b,style:E,"data-icon":R.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},O),{},{ref:T}))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,f.Z)({},_)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;_.primaryColor=t,_.secondaryColor=n||S(t),_.calculated=!!n};const x=C;function O(e){var t=E(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return x.setTwoToneColors({primaryColor:r,secondaryColor:i})}var T=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O(u.iN.primary);var k=s.forwardRef((function(e,t){var n,l=e.className,u=e.icon,f=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,T),b=s.useContext(d.Z),y=b.prefixCls,S=void 0===y?"anticon":y,w=b.rootClassName,_=c()(w,S,(n={},(0,i.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,i.Z)(n,"".concat(S,"-spin"),!!f||"loading"===u.name),n),l),C=h;void 0===C&&g&&(C=-1);var O=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,k=E(m),R=(0,o.Z)(k,2),N=R[0],A=R[1];return s.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:C,onClick:g,className:_}),s.createElement(x,{icon:u,primaryColor:N,secondaryColor:A,style:O}))}));k.displayName="AntdIcon",k.getTwoToneColor=function(){var e=x.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},k.setTwoToneColor=O;const R=k},3017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(7294).createContext)({})},3061:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={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 a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},4549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={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 a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},7724:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={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 a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},7085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={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 a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},8812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={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 a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},9366:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={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 a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},6500:(e,t,n)=>{"use strict";n.d(t,{T6:()=>p,VD:()=>h,WE:()=>c,Yt:()=>g,lC:()=>i,py:()=>l,rW:()=>o,s:()=>d,ve:()=>s,vq:()=>u});var r=n(279);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var c=o-i;switch(s=l>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t1&&(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 s(e,t,n){var o,i,s;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,s=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=a(c,l,e+1/3),i=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,l=o-i,c=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},8701:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r={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"}},1350:(e,t,n)=>{"use strict";n.d(t,{uA:()=>a});var r=n(6500),o=n(8701),i=n(279);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,l=null,c=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.JX)(e.s),s=(0,i.JX)(e.v),t=(0,r.WE)(e.h,a,s),c=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.JX)(e.s),l=(0,i.JX)(e.l),t=(0,r.ve)(e.h,a,l),c=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:c,format:e.format||f,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 s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+l),rgba:new RegExp("rgba"+c),hsl:new RegExp("hsl"+l),hsla:new RegExp("hsla"+c),hsv:new RegExp("hsv"+l),hsva:new RegExp("hsva"+c),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 d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},274:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(6500),o=n(8701),i=n(1350),a=n(279),s=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.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=a.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=(0,a.Yq)(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=(0,r.py)(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=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(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=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(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),(0,r.s)(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*(0,a.sh)(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*(0,a.sh)(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="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=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=(0,a.V2)(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=(0,a.V2)(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=(0,a.V2)(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=(0,a.V2)(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=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%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{"use strict";function r(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 o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:()=>s,JX:()=>a,V2:()=>o,Yq:()=>i,sh:()=>r})},8705:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(9439),o=n(7294),i=n(3935),a=n(8924),s=(n(334),n(2550));const l=o.createContext(null);var c=n(3433),u=n(8410),d=[];var f,p=n(4958);function h(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===f){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),f=o-i}return f}():n}var g="rc-util-locker-".concat(Date.now()),m=0;function v(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(g,"_").concat(m)})),i=(0,r.Z)(n,1)[0];(0,u.Z)((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:h(n),height:h(r)}}(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,p.jL)(i);return function(){(0,p.jL)(i)}}),[t,i])}var b=!1;var y=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const S=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,p=e.getContainer,h=(e.debug,e.autoDestroy),g=void 0===h||h,m=e.children,S=o.useState(n),E=(0,r.Z)(S,2),w=E[0],_=E[1],C=w||n;o.useEffect((function(){(g||n)&&_(n)}),[n,g]);var x=o.useState((function(){return y(p)})),O=(0,r.Z)(x,2),T=O[0],k=O[1];o.useEffect((function(){var e=y(p);k(null!=e?e:null)}));var R=function(e,t){var n=o.useState((function(){return(0,a.Z)()?document.createElement("div"):null})),i=(0,r.Z)(n,1)[0],s=o.useRef(!1),f=o.useContext(l),p=o.useState(d),h=(0,r.Z)(p,2),g=h[0],m=h[1],v=f||(s.current?void 0:function(e){m((function(t){return[e].concat((0,c.Z)(t))}))});function b(){i.parentElement||document.body.appendChild(i),s.current=!0}function y(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),s.current=!1}return(0,u.Z)((function(){return e?f?f(b):b():y(),y}),[e]),(0,u.Z)((function(){g.length&&(g.forEach((function(e){return e()})),m(d))}),[g]),[i,v]}(C&&!T),N=(0,r.Z)(R,2),A=N[0],L=N[1],P=null!=T?T:A;v(f&&n&&(0,a.Z)()&&(P===A||P===document.body));var M=null;m&&(0,s.Yr)(m)&&t&&(M=m.ref);var $=(0,s.x1)(M,t);if(!C||!(0,a.Z)()||void 0===T)return null;var I,D=!1===P||("boolean"==typeof I&&(b=I),b),j=m;return t&&(j=o.cloneElement(m,{ref:$})),o.createElement(l.Provider,{value:L},D?j:(0,i.createPortal)(j,P))}))},2507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var r=n(1413),o=n(9439),i=n(4925),a=n(8705),s=n(3967),l=n.n(s),c=n(5375),u=n(4203),d=n(7571),f=n(6680),p=n(7028),h=n(8410),g=n(1131),m=n(7294),v=n(7462),b=n(5461),y=n(2550);function S(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,u=void 0===c?0:c,d=o.y,f=void 0===d?0:d,p=m.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],b=g[0],y=g[1],S=v[0],E=v[1];b!==S&&["t","b"].includes(b)?"t"===b?h.top=0:h.bottom=0:h.top=f,y!==E&&["l","r"].includes(y)?"l"===y?h.left=0:h.right=0:h.left=u}return m.createElement("div",{ref:p,className:l()("".concat(t,"-arrow"),a),style:h},s)}function E(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m.createElement(b.ZP,(0,v.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})})):null}const w=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));const _=m.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,p=e.keepDom,g=e.fresh,_=e.onClick,C=e.mask,x=e.arrow,O=e.arrowPos,T=e.align,k=e.motion,R=e.maskMotion,N=e.forceRender,A=e.getPopupContainer,L=e.autoDestroy,P=e.portal,M=e.zIndex,$=e.onMouseEnter,I=e.onMouseLeave,D=e.onPointerEnter,j=e.ready,Z=e.offsetX,z=e.offsetY,B=e.offsetR,F=e.offsetB,H=e.onAlign,U=e.onPrepare,W=e.stretch,V=e.targetWidth,X=e.targetHeight,q="function"==typeof n?n():n,Y=f||p,G=(null==A?void 0:A.length)>0,K=m.useState(!A||!G),Q=(0,o.Z)(K,2),J=Q[0],ee=Q[1];if((0,h.Z)((function(){!J&&G&&u&&ee(!0)}),[J,G,u]),!J)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(j||!f){var re,oe=T.points,ie=T.dynamicInset||(null===(re=T._experimental)||void 0===re?void 0:re.dynamicInset),ae=ie&&"r"===oe[0][1],se=ie&&"b"===oe[0][0];ae?(ne.right=B,ne.left=te):(ne.left=Z,ne.right=te),se?(ne.bottom=F,ne.top=te):(ne.top=z,ne.bottom=te)}var le={};return W&&(W.includes("height")&&X?le.height=X:W.includes("minHeight")&&X&&(le.minHeight=X),W.includes("width")&&V?le.width=V:W.includes("minWidth")&&V&&(le.minWidth=V)),f||(le.pointerEvents="none"),m.createElement(P,{open:N||Y,getContainer:A&&function(){return A(u)},autoDestroy:L},m.createElement(E,{prefixCls:a,open:f,zIndex:M,mask:C,motion:R}),m.createElement(c.Z,{onResize:H,disabled:!f},(function(e){return m.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:"".concat(a,"-hidden")},k,{onAppearPrepare:U,onEnterPrepare:U,visible:f,onVisibleChanged:function(e){var t;null==k||null===(t=k.onVisibleChanged)||void 0===t||t.call(k,e),d(e)}}),(function(n,o){var c=n.className,u=n.style,d=l()(a,c,i);return m.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(O.x||0,"px"),"--arrow-y":"".concat(O.y||0,"px")},ne),le),u),{},{boxSizing:"border-box",zIndex:M},s),onMouseEnter:$,onMouseLeave:I,onPointerEnter:D,onClick:_},x&&m.createElement(S,{prefixCls:a,arrow:x,arrowPos:O,align:T}),m.createElement(w,{cache:!f&&!g},q))}))})))}));const C=m.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),i=m.useCallback((function(e){(0,y.mH)(t,r?r(e):e)}),[r]),a=(0,y.x1)(i,n.ref);return o?m.cloneElement(n,{ref:a}):n}));const x=m.createContext(null);function O(e){return e?Array.isArray(e)?e:[e]:[]}var T=n(5110);function k(){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 R(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function N(e){return e.ownerDocument.defaultView}function A(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=N(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 L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function P(e){return L(parseFloat(e),0)}function M(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=N(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=P(i),g=P(a),m=P(s),v=P(l),b=L(Math.round(c.width/f*1e3)/1e3),y=L(Math.round(c.height/u*1e3)/1e3),S=(f-p-m-v)*b,E=(u-d-h-g)*y,w=h*y,_=g*y,C=m*b,x=v*b,O=0,T=0;if("clip"===r){var k=P(o);O=k*b,T=k*y}var R=c.x+C-O,A=c.y+w-T,M=R+c.width+2*O-C-x-S,$=A+c.height+2*T-w-_-E;n.left=Math.max(n.left,R),n.top=Math.max(n.top,A),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,$)}})),n}function $(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 I(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[$(e.width,i),$(e.height,a)]}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(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 Z(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 z=n(3433);n(334);var B=n(5164);var F=["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 H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return m.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=t.children,b=t.action,y=void 0===b?"hover":b,S=t.showAction,E=t.hideAction,w=t.popupVisible,P=t.defaultPopupVisible,$=t.onPopupVisibleChange,H=t.afterPopupVisibleChange,U=t.mouseEnterDelay,W=t.mouseLeaveDelay,V=void 0===W?.1:W,X=t.focusDelay,q=t.blurDelay,Y=t.mask,G=t.maskClosable,K=void 0===G||G,Q=t.getPopupContainer,J=t.forceRender,ee=t.autoDestroy,te=t.destroyPopupOnHide,ne=t.popup,re=t.popupClassName,oe=t.popupStyle,ie=t.popupPlacement,ae=t.builtinPlacements,se=void 0===ae?{}:ae,le=t.popupAlign,ce=t.zIndex,ue=t.stretch,de=t.getPopupClassNameFromAlign,fe=t.fresh,pe=t.alignPoint,he=t.onPopupClick,ge=t.onPopupAlign,me=t.arrow,ve=t.popupMotion,be=t.maskMotion,ye=t.popupTransitionName,Se=t.popupAnimation,Ee=t.maskTransitionName,we=t.maskAnimation,_e=t.className,Ce=t.getTriggerDOMNode,xe=(0,i.Z)(t,F),Oe=ee||te||!1,Te=m.useState(!1),ke=(0,o.Z)(Te,2),Re=ke[0],Ne=ke[1];(0,h.Z)((function(){Ne((0,g.Z)())}),[]);var Ae=m.useRef({}),Le=m.useContext(x),Pe=m.useMemo((function(){return{registerSubPopup:function(e,t){Ae.current[e]=t,null==Le||Le.registerSubPopup(e,t)}}}),[Le]),Me=(0,p.Z)(),$e=m.useState(null),Ie=(0,o.Z)($e,2),De=Ie[0],je=Ie[1],Ze=(0,f.Z)((function(e){(0,u.S)(e)&&De!==e&&je(e),null==Le||Le.registerSubPopup(Me,e)})),ze=m.useState(null),Be=(0,o.Z)(ze,2),Fe=Be[0],He=Be[1],Ue=m.useRef(null),We=(0,f.Z)((function(e){(0,u.S)(e)&&Fe!==e&&(He(e),Ue.current=e)})),Ve=m.Children.only(v),Xe=(null==Ve?void 0:Ve.props)||{},qe={},Ye=(0,f.Z)((function(e){var t,n,r=Fe;return(null==r?void 0:r.contains(e))||(null===(t=(0,d.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==De?void 0:De.contains(e))||(null===(n=(0,d.A)(De))||void 0===n?void 0:n.host)===e||e===De||Object.values(Ae.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ge=R(s,ve,Se,ye),Ke=R(s,be,we,Ee),Qe=m.useState(P||!1),Je=(0,o.Z)(Qe,2),et=Je[0],tt=Je[1],nt=null!=w?w:et,rt=(0,f.Z)((function(e){void 0===w&&tt(e)}));(0,h.Z)((function(){tt(w||!1)}),[w]);var ot=m.useRef(nt);ot.current=nt;var it=m.useRef([]);it.current=[];var at=(0,f.Z)((function(e){var t;rt(e),(null!==(t=it.current[it.current.length-1])&&void 0!==t?t:nt)!==e&&(it.current.push(e),null==$||$(e))})),st=m.useRef(),lt=function(){clearTimeout(st.current)},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;lt(),0===t?at(e):st.current=setTimeout((function(){at(e)}),1e3*t)};m.useEffect((function(){return lt}),[]);var ut=m.useState(!1),dt=(0,o.Z)(ut,2),ft=dt[0],pt=dt[1];(0,h.Z)((function(e){e&&!nt||pt(!0)}),[nt]);var ht=m.useState(null),gt=(0,o.Z)(ht,2),mt=gt[0],vt=gt[1],bt=m.useState([0,0]),yt=(0,o.Z)(bt,2),St=yt[0],Et=yt[1],wt=function(e){Et([e.clientX,e.clientY])},_t=function(e,t,n,i,a,s,l){var c=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),d=(0,o.Z)(c,2),p=d[0],g=d[1],v=m.useRef(0),b=m.useMemo((function(){return t?A(t):[]}),[t]),y=m.useRef({});e||(y.current={});var S=(0,f.Z)((function(){if(t&&n&&e){var c,d,f,p=t,h=p.ownerDocument,m=N(p).getComputedStyle(p),v=m.width,S=m.height,E=m.position,w=p.style.left,_=p.style.top,C=p.style.right,x=p.style.bottom,O=p.style.overflow,k=(0,r.Z)((0,r.Z)({},a[i]),s),R=h.createElement("div");if(null===(c=p.parentElement)||void 0===c||c.appendChild(R),R.style.left="".concat(p.offsetLeft,"px"),R.style.top="".concat(p.offsetTop,"px"),R.style.position=E,R.style.height="".concat(p.offsetHeight,"px"),R.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))f={x:n[0],y:n[1],width:0,height:0};else{var A=n.getBoundingClientRect();f={x:A.x,y:A.y,width:A.width,height:A.height}}var P=p.getBoundingClientRect(),$=h.documentElement,z=$.clientWidth,B=$.clientHeight,F=$.scrollWidth,H=$.scrollHeight,U=$.scrollTop,W=$.scrollLeft,V=P.height,X=P.width,q=f.height,Y=f.width,G={left:0,top:0,right:z,bottom:B},K={left:-W,top:-U,right:F-W,bottom:H-U},Q=k.htmlRegion,J="visible",ee="visibleFirst";"scroll"!==Q&&Q!==ee&&(Q=J);var te=Q===ee,ne=M(K,b),re=M(G,b),oe=Q===J?re:ne,ie=te?re:oe;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var ae=p.getBoundingClientRect();p.style.left=w,p.style.top=_,p.style.right=C,p.style.bottom=x,p.style.overflow=O,null===(d=p.parentElement)||void 0===d||d.removeChild(R);var se=L(Math.round(X/parseFloat(v)*1e3)/1e3),le=L(Math.round(V/parseFloat(S)*1e3)/1e3);if(0===se||0===le||(0,u.S)(n)&&!(0,T.Z)(n))return;var ce=k.offset,ue=k.targetOffset,de=I(P,ce),fe=(0,o.Z)(de,2),pe=fe[0],he=fe[1],ge=I(f,ue),me=(0,o.Z)(ge,2),ve=me[0],be=me[1];f.x-=ve,f.y-=be;var ye=k.points||[],Se=(0,o.Z)(ye,2),Ee=Se[0],we=D(Se[1]),_e=D(Ee),Ce=j(f,we),xe=j(P,_e),Oe=(0,r.Z)({},k),Te=Ce.x-xe.x+pe,ke=Ce.y-xe.y+he;function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oe,r=P.x+e,o=P.y+t,i=r+X,a=o+V,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Re,Ne,Ae,Le,Pe=Et(Te,ke),Me=Et(Te,ke,re),$e=j(f,["t","l"]),Ie=j(P,["t","l"]),De=j(f,["b","r"]),je=j(P,["b","r"]),Ze=k.overflow||{},ze=Ze.adjustX,Be=Ze.adjustY,Fe=Ze.shiftX,He=Ze.shiftY,Ue=function(e){return"boolean"==typeof e?e:e>=0};function wt(){Re=P.y+ke,Ne=Re+V,Ae=P.x+Te,Le=Ae+X}wt();var We=Ue(Be),Ve=_e[0]===we[0];if(We&&"t"===_e[0]&&(Ne>ie.bottom||y.current.bt)){var Xe=ke;Ve?Xe-=V-q:Xe=$e.y-je.y-he;var qe=Et(Te,Xe),Ye=Et(Te,Xe,re);qe>Pe||qe===Pe&&(!te||Ye>=Me)?(y.current.bt=!0,ke=Xe,he=-he,Oe.points=[Z(_e,0),Z(we,0)]):y.current.bt=!1}if(We&&"b"===_e[0]&&(RePe||Ke===Pe&&(!te||Qe>=Me)?(y.current.tb=!0,ke=Ge,he=-he,Oe.points=[Z(_e,0),Z(we,0)]):y.current.tb=!1}var Je=Ue(ze),et=_e[1]===we[1];if(Je&&"l"===_e[1]&&(Le>ie.right||y.current.rl)){var tt=Te;et?tt-=X-Y:tt=$e.x-je.x-pe;var nt=Et(tt,ke),rt=Et(tt,ke,re);nt>Pe||nt===Pe&&(!te||rt>=Me)?(y.current.rl=!0,Te=tt,pe=-pe,Oe.points=[Z(_e,1),Z(we,1)]):y.current.rl=!1}if(Je&&"r"===_e[1]&&(AePe||it===Pe&&(!te||at>=Me)?(y.current.lr=!0,Te=ot,pe=-pe,Oe.points=[Z(_e,1),Z(we,1)]):y.current.lr=!1}wt();var st=!0===Fe?0:Fe;"number"==typeof st&&(Aere.right&&(Te-=Le-re.right-pe,f.x>re.right-st&&(Te+=f.x-re.right+st)));var lt=!0===He?0:He;"number"==typeof lt&&(Rere.bottom&&(ke-=Ne-re.bottom-he,f.y>re.bottom-lt&&(ke+=f.y-re.bottom+lt)));var ct=P.x+Te,ut=ct+X,dt=P.y+ke,ft=dt+V,pt=f.x,ht=pt+Y,gt=f.y,mt=gt+q,vt=(Math.max(ct,pt)+Math.min(ut,ht))/2-ct,bt=(Math.max(dt,gt)+Math.min(ft,mt))/2-dt;null==l||l(t,Oe);var yt=ae.right-P.x-(Te+P.width),St=ae.bottom-P.y-(ke+P.height);g({ready:!0,offsetX:Te/se,offsetY:ke/le,offsetR:yt/se,offsetB:St/le,arrowX:vt/se,arrowY:bt/le,scaleX:se,scaleY:le,align:Oe})}})),E=function(){g((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,h.Z)(E,[i]),(0,h.Z)((function(){e||E()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&S()}))}]}(nt,De,pe?St:Fe,ie,se,le,ge),Ct=(0,o.Z)(_t,11),xt=Ct[0],Ot=Ct[1],Tt=Ct[2],kt=Ct[3],Rt=Ct[4],Nt=Ct[5],At=Ct[6],Lt=Ct[7],Pt=Ct[8],Mt=Ct[9],$t=Ct[10],It=function(e,t,n,r){return m.useMemo((function(){var o=O(null!=n?n:t),i=O(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(Re,y,S,E),Dt=(0,o.Z)(It,2),jt=Dt[0],Zt=Dt[1],zt=jt.has("click"),Bt=Zt.has("click")||Zt.has("contextMenu"),Ft=(0,f.Z)((function(){ft||$t()}));!function(e,t,n,r,o){(0,h.Z)((function(){if(e&&t&&n){var i=n,a=A(t),s=A(i),l=N(i),c=new Set([l].concat((0,z.Z)(a),(0,z.Z)(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(nt,Fe,De,Ft,(function(){ot.current&&pe&&Bt&&ct(!1)})),(0,h.Z)((function(){Ft()}),[St,ie]),(0,h.Z)((function(){!nt||null!=se&&se[ie]||Ft()}),[JSON.stringify(le)]);var Ht=m.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;o{"use strict";n.d(t,{f6:()=>qo,kc:()=>Xo});var r=n(4942),o=n(7294),i=n.t(o,2),a=n(5671),s=n(3144);var l=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?g(x,--_):0,E--,10===C&&(E=1,S--),C}function R(){return C=_2||P(C)>3?"":" "}function j(e,t){for(;--t&&R()&&!(C<48||C>102||C>57&&C<65||C>70&&C<97););return L(e,A()+(t<6&&32==N()&&32==R()))}function Z(e){for(;R();)switch(C){case e:return _;case 34:case 39:34!==e&&39!==e&&Z(C);break;case 40:41===e&&Z(e);break;case 92:R()}return _}function z(e,t){for(;R()&&e+C!==57&&(e+C!==84||47!==N()););return"/*"+L(t,_-1)+"*"+u(47===e?e:R())}function B(e){for(;!P(N());)R();return L(e,_)}var F="-ms-",H="-moz-",U="-webkit-",W="comm",V="rule",X="decl",q="@keyframes";function Y(e,t){for(var n="",r=b(e),o=0;o0&&v(P)-f&&y(b>32?te(P+";",r,n,f-1):te(p(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(y(L=J(P,t,n,c,d,o,s,x,O=[],T=[],f),i),123===C)if(0===d)Q(P,t,L,L,O,i,f,s,T);else switch(99===m&&110===g(P,3)?100:m){case 100:case 108:case 109:case 115:Q(e,L,L,r&&y(J(e,L,L,0,0,o,s,x,o,O=[],f),T),o,T,f,s,r?O:T);break;default:Q(P,L,L,L,[""],T,0,s,T)}}c=d=b=0,E=_=1,x=P="",f=a;break;case 58:f=1+v(P),b=S;default:if(E<1)if(123==C)--E;else if(125==C&&0==E++&&125==k())continue;switch(P+=u(C),C*E){case 38:_=d>0?1:(P+="\f",-1);break;case 44:s[c++]=(v(P)-1)*_,_=1;break;case 64:45===N()&&(P+=I(R())),m=N(),d=f=v(x=P+=B(A())),C++;break;case 45:45===S&&2==v(P)&&(E=0)}}return i}function J(e,t,n,r,o,i,a,s,l,u,d){for(var h=o-1,g=0===o?i:[""],v=b(g),y=0,S=0,E=0;y0?g[w]+" "+_:p(_,/&\f/g,g[w])))&&(l[E++]=C);return O(e,t,n,0===o?V:s,l,u,d)}function ee(e,t,n){return O(e,t,n,W,u(C),m(e,2,-2),0)}function te(e,t,n,r){return O(e,t,n,X,m(e,0,r),m(e,r+1,-1),r)}var ne=function(e,t,n){for(var r=0,o=0;r=o,o=N(),38===r&&12===o&&(t[n]=1),!P(o);)R();return L(e,_)},re=function(e,t){return $(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===N()&&(t[n]=1),e[n]+=ne(_-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===N()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=u(r)}}while(r=R());return e}(M(e),t))},oe=new WeakMap,ie=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||oe.get(n))&&!r){oe.set(e,!0);for(var o=[],i=re(t,o),a=n.props,s=0,l=0;s6)switch(g(e,t+1)){case 109:if(45!==g(e,t+4))break;case 102:return p(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+H+(108==g(e,t+3)?"$3":"$2-$3"))+e;case 115:return~h(e,"stretch")?se(p(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==g(e,t+1))break;case 6444:switch(g(e,v(e)-3-(~h(e,"!important")&&10))){case 107:return p(e,":",":"+U)+e;case 101:return p(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===g(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(g(e,t+11)){case 114:return U+e+F+p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+F+p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+F+p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+F+e+e}return e}var le=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case X:e.return=se(e.value,e.length);break;case q:return Y([T(e,{value:p(e.value,"@","@"+U)})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Y([T(e,{props:[p(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Y([T(e,{props:[p(t,/:(plac\w+)/,":"+U+"input-$1")]}),T(e,{props:[p(t,/:(plac\w+)/,":-moz-$1")]}),T(e,{props:[p(t,/:(plac\w+)/,F+"input-$1")]})],r)}return""}))}}],ce=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||le;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=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)}(o)+l;return{name:c,styles:o,next:ye}};function we(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var _e=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ce=function(e,t,n){_e(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function xe(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Oe(e,t,n){var r=[],o=we(e,r,n);return r.length<2?n:o+t(r)}var Te=function(e){var t=ce(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0){var e=setTimeout((function(){C()}),1e3*l);return function(){clearTimeout(e)}}}),[l,_,v]);var x="".concat(n,"-notice");return o.createElement("div",(0,Be.Z)({},h,{ref:t,className:Mt()(x,a,(0,r.Z)({},"".concat(x,"-closable"),d)),style:i,onMouseEnter:function(e){var t;w(!0),null==h||null===(t=h.onMouseEnter)||void 0===t||t.call(h,e)},onMouseLeave:function(e){var t;w(!1),null==h||null===(t=h.onMouseLeave)||void 0===t||t.call(h,e)},onClick:g}),o.createElement("div",{className:"".concat(x,"-content")},u),d&&o.createElement("a",{tabIndex:0,className:"".concat(x,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==jt.Z.ENTER||C()},onClick:function(e){e.preventDefault(),e.stopPropagation(),C()}},p))}));const zt=Zt;var Bt=o.createContext({});const Ft=function(e){var t=e.children,n=e.classNames;return o.createElement(Bt.Provider,{value:{classNames:n}},t)};const Ht=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===(0,Me.Z)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]};var Ut=["className","style","classNames","styles"];const Wt=function(e){var t,n=e.configList,i=e.placement,a=e.prefixCls,s=e.className,l=e.style,c=e.motion,u=e.onAllNoticeRemoved,d=e.onNoticeClose,f=e.stack,p=(0,o.useContext)(Bt).classNames,h=(0,o.useRef)({}),g=(0,o.useState)(null),m=(0,ot.Z)(g,2),v=m[0],b=m[1],y=(0,o.useState)([]),S=(0,ot.Z)(y,2),E=S[0],w=S[1],_=n.map((function(e){return{config:e,key:String(e.key)}})),C=Ht(f),x=(0,ot.Z)(C,2),O=x[0],T=x[1],k=T.offset,R=T.threshold,N=T.gap,A=O&&(E.length>0||_.length<=R),L="function"==typeof c?c(i):c;return(0,o.useEffect)((function(){O&&E.length>1&&w((function(e){return e.filter((function(e){return _.some((function(t){var n=t.key;return e===n}))}))}))}),[E,_,O]),(0,o.useEffect)((function(){var e,t;O&&h.current[null===(e=_[_.length-1])||void 0===e?void 0:e.key]&&b(h.current[null===(t=_[_.length-1])||void 0===t?void 0:t.key])}),[_,O]),o.createElement(Dt.V4,(0,Be.Z)({key:i,className:Mt()(a,"".concat(a,"-").concat(i),null==p?void 0:p.list,s,(t={},(0,r.Z)(t,"".concat(a,"-stack"),!!O),(0,r.Z)(t,"".concat(a,"-stack-expanded"),A),t)),style:l,keys:_,motionAppear:!0},L,{onAllRemoved:function(){u(i)}}),(function(e,t){var n=e.config,r=e.className,s=e.style,l=e.index,c=n,u=c.key,f=c.times,g=String(u),m=n,b=m.className,y=m.style,S=m.classNames,C=m.styles,x=(0,Je.Z)(m,Ut),T=_.findIndex((function(e){return e.key===g})),R={};if(O){var L=_.length-1-(T>-1?T:l-1),P="top"===i||"bottom"===i?"-50%":"0";if(L>0){var M,$,I;R.height=A?null===(M=h.current[g])||void 0===M?void 0:M.offsetHeight:null==v?void 0:v.offsetHeight;for(var D=0,j=0;j-1?h.current[g]=e:delete h.current[g]},prefixCls:a,classNames:S,styles:C,className:Mt()(b,null==p?void 0:p.notice),style:y,times:f,key:u,eventKey:u,onNoticeClose:d,hovering:O&&E.length>0})))}))};var Vt=o.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,i=e.container,a=e.motion,s=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=o.useState([]),h=(0,ot.Z)(p,2),g=h[0],m=h[1],v=function(e){var t,n=g.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}))}))};o.useImperativeHandle(t,(function(){return{open:function(e){m((function(t){var n,r=(0,mt.Z)(t),o=r.findIndex((function(t){return t.key===e.key})),i=(0,$t.Z)({},e);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));return s>0&&r.length>s&&(r=r.slice(-s)),r}))},close:function(e){v(e)},destroy:function(){m([])}}}));var b=o.useState({}),y=(0,ot.Z)(b,2),S=y[0],E=y[1];o.useEffect((function(){var e={};g.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(S).forEach((function(t){e[t]=e[t]||[]})),E(e)}),[g]);var w=function(e){E((function(t){var n=(0,$t.Z)({},t);return(n[e]||[]).length||delete n[e],n}))},_=o.useRef(!1);if(o.useEffect((function(){Object.keys(S).length>0?_.current=!0:_.current&&(null==u||u(),_.current=!1)}),[S]),!i)return null;var C=Object.keys(S);return(0,It.createPortal)(o.createElement(o.Fragment,null,C.map((function(e){var t=S[e],n=o.createElement(Wt,{key:e,configList:t,placement:e,prefixCls:r,className:null==l?void 0:l(e),style:null==c?void 0:c(e),motion:a,onNoticeClose:v,onAllNoticeRemoved:w,stack:d});return f?f(n,{prefixCls:r,key:e}):n}))),i)}));const Xt=Vt;var qt=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Yt=function(){return document.body},Gt=0;function Kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Yt:t,r=e.motion,i=e.prefixCls,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=(0,Je.Z)(e,qt),p=o.useState(),h=(0,ot.Z)(p,2),g=h[0],m=h[1],v=o.useRef(),b=o.createElement(Xt,{container:g,ref:v,prefixCls:i,motion:r,maxCount:a,className:s,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),y=o.useState([]),S=(0,ot.Z)(y,2),E=S[0],w=S[1],_=o.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:v}=e,b=`${t}-notice`,y=new et.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),S=new et.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:m,background:v,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},(0,Jt.Wf)(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${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:S,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({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},rn=(0,en.I$)("Message",(e=>{const t=(0,tn.TS)(e,{height:150});return[nn(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+Qt.u6+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var on=n(5792),an=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{let{prefixCls:t,type:n,icon:r,children:i}=e;return o.createElement("div",{className:Mt()(`${t}-custom-content`,`${t}-${n}`)},r||sn[n],o.createElement("span",null,i))},cn=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,s=an(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=o.useContext(yt.E_),c=t||l("message"),u=(0,on.Z)(c),[d,f,p]=rn(c,u);return d(o.createElement(zt,Object.assign({},s,{prefixCls:c,className:Mt()(n,f,`${c}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:o.createElement(ln,{prefixCls:c,type:r,icon:i},a)})))};var un=n(4549),dn=n(7288);function fn(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 pn=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{let{children:t,prefixCls:n}=e;const r=(0,on.Z)(n),[i,a,s]=rn(n,r);return i(o.createElement(Ft,{classNames:{list:Mt()(a,s,r)}},t))},mn=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(gn,{prefixCls:n,key:r},e)},vn=o.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:s=hn,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:h}=o.useContext(yt.E_),g=r||d("message"),m=o.createElement("span",{className:`${g}-close-x`},o.createElement(un.Z,{className:`${g}-close-icon`})),[v,b]=Kt({prefixCls:g,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>Mt()({[`${g}-rtl`]:null!=l?l:"rtl"===h}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(g,c),closable:!1,closeIcon:m,duration:s,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:mn});return o.useImperativeHandle(t,(()=>Object.assign(Object.assign({},v),{prefixCls:g,message:p}))),b}));let bn=0;function yn(e){const t=o.useRef(null),n=((0,dn.ln)("Message"),o.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:i,message:a}=t.current,s=`${i}-notice`,{content:l,icon:c,type:u,key:d,className:f,style:p,onClose:h}=n,g=pn(n,["content","icon","type","key","className","style","onClose"]);let m=d;return null==m&&(bn+=1,m=`antd-message-${bn}`),fn((t=>(r(Object.assign(Object.assign({},g),{key:m,content:o.createElement(ln,{prefixCls:i,type:u,icon:c},l),placement:"top",className:Mt()(u&&`${s}-${u}`,f,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),p),onClose:()=>{null==h||h(),t()}})),()=>{e(m)})))},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,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}})),r}),[]));return[n,o.createElement(vn,Object.assign({key:"message-holder"},e,{ref:t}))]}let Sn=null,En=e=>e(),wn=[],_n={};function Cn(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=_n,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const xn=o.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,o.useContext)(yt.E_),a=_n.prefixCls||i("message"),s=(0,o.useContext)(bt),[l,c]=yn(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),s.message));return o.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})),On=o.forwardRef(((e,t)=>{const[n,r]=o.useState(Cn),i=()=>{r(Cn)};o.useEffect(i,[]);const a=(0,St.w6)(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=o.createElement(xn,{ref:t,sync:i,messageConfig:n});return o.createElement(St.ZP,{prefixCls:s,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)}));function Tn(){if(!Sn){const e=document.createDocumentFragment(),t={fragment:e};return Sn=t,void En((()=>{(0,vt.s)(o.createElement(On,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Tn())}))}}),e)}))}Sn.instance&&(wn.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":En((()=>{const t=Sn.instance.open(Object.assign(Object.assign({},_n),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":En((()=>{null==Sn||Sn.instance.destroy(e.key)}));break;default:En((()=>{var n;const r=(n=Sn.instance)[t].apply(n,(0,mt.Z)(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),wn=[])}const kn={open:function(e){const t=fn((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return wn.push(r),()=>{n?En((()=>{n()})):r.skipped=!0}}));return Tn(),t},destroy:function(e){wn.push({type:"destroy",key:e}),Tn()},config:function(e){_n=Object.assign(Object.assign({},_n),e),En((()=>{var e;null===(e=null==Sn?void 0:Sn.sync)||void 0===e||e.call(Sn)}))},useMessage:function(e){return yn(e)},_InternalPanelDoNotUseOrYouWillBeFired:cn};["success","info","warning","error","loading"].forEach((e=>{kn[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return wn.push(o),()=>{r?En((()=>{r()})):o.skipped=!0}}));return Tn(),n}(e,n)}}));const Rn=kn,Nn=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new et.E4("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new et.E4("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new et.E4("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new et.E4("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},An=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Ln={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Pn=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Mn=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Pn(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Mn(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},An.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Ln[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},In=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:g,lineHeight:m,width:v,notificationIconSize:b,colorText:y}=e,S=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[S]:{padding:p,width:v,maxWidth:`calc(100vw - ${(0,et.bf)(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:m,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${S}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:g,color:y},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:g},[`${S}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${S}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.closeBtnHoverBg}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},Dn=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new et.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,Jt.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},In(e))}}]},jn=e=>({zIndexPopup:e.zIndexPopupBase+Qt.u6+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),Zn=e=>{const t=e.paddingMD,n=e.paddingLG;return(0,tn.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,et.bf)(e.paddingMD)} ${(0,et.bf)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},zn=(0,en.I$)("Notification",(e=>{const t=Zn(e);return[Dn(t),Nn(t),$n(t)]}),jn),Bn=(0,en.bk)(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=Zn(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},In(n)),{width:n.width,maxWidth:`calc(100vw - ${(0,et.bf)(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),jn);var Fn=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{const{prefixCls:t,icon:n,type:r,message:i,description:a,btn:s,role:l="alert"}=e;let c=null;return n?c=o.createElement("span",{className:`${t}-icon`},n):r&&(c=o.createElement(Un[r]||null,{className:Mt()(`${t}-icon`,`${t}-icon-${r}`)})),o.createElement("div",{className:Mt()({[`${t}-with-icon`]:c}),role:l},c,o.createElement("div",{className:`${t}-message`},i),o.createElement("div",{className:`${t}-description`},a),s&&o.createElement("div",{className:`${t}-btn`},s))},Vn=e=>{const{prefixCls:t,className:n,icon:r,type:i,message:a,description:s,btn:l,closable:c=!0,closeIcon:u,className:d}=e,f=Fn(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:p}=o.useContext(yt.E_),h=t||p("notification"),g=`${h}-notice`,m=(0,on.Z)(h),[v,b,y]=zn(h,m);return v(o.createElement("div",{className:Mt()(`${g}-pure-panel`,b,n,y,m)},o.createElement(Bn,{prefixCls:h}),o.createElement(zt,Object.assign({},f,{prefixCls:h,eventKey:"pure",duration:null,closable:c,className:Mt()({notificationClassName:d}),closeIcon:Hn(h,u),content:o.createElement(Wn,{prefixCls:g,icon:r,type:i,message:a,description:s,btn:l})}))))};var Xn=n(7606);var qn=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{let{children:t,prefixCls:n}=e;const r=(0,on.Z)(n),[i,a,s]=zn(n,r);return i(o.createElement(Ft,{classNames:{list:Mt()(a,s,r)}},t))},Kn=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(Gn,{prefixCls:n,key:r},e)},Qn=o.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:s,rtl:l,onAllRemoved:c,stack:u}=e,{getPrefixCls:d,getPopupContainer:f,notification:p,direction:h}=(0,o.useContext)(yt.E_),[,g]=(0,Xn.ZP)(),m=i||d("notification"),[v,b]=Kt({prefixCls:m,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>Mt()({[`${m}-rtl`]:null!=l?l:"rtl"===h}),motion:()=>function(e){return{motionName:`${e}-fade`}}(m),closable:!0,closeIcon:Hn(m),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==f?void 0:f())||document.body,maxCount:s,onAllRemoved:c,renderNotifications:Kn,stack:!1!==u&&{threshold:"object"==typeof u?null==u?void 0:u.threshold:void 0,offset:8,gap:g.margin}});return o.useImperativeHandle(t,(()=>Object.assign(Object.assign({},v),{prefixCls:m,notification:p}))),b}));function Jn(e){const t=o.useRef(null),n=((0,dn.ln)("Notification"),o.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:i,prefixCls:a,notification:s}=t.current,l=`${a}-notice`,{message:c,description:u,icon:d,type:f,btn:p,className:h,style:g,role:m="alert",closeIcon:v}=n,b=qn(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),y=Hn(l,v);return i(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:Yn},b),{content:o.createElement(Wn,{prefixCls:l,icon:d,type:f,message:c,description:u,btn:p,role:m}),className:Mt()(f&&`${l}-${f}`,h,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),g),closeIcon:y,closable:!!y}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]));return[n,o.createElement(Qn,Object.assign({key:"notification-holder"},e,{ref:t}))]}let er=null,tr=e=>e(),nr=[],rr={};function or(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=rr,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const ir=o.forwardRef(((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=(0,o.useContext)(yt.E_),a=rr.prefixCls||i("notification"),s=(0,o.useContext)(bt),[l,c]=Jn(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),s.notification));return o.useEffect(r,[]),o.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})),ar=o.forwardRef(((e,t)=>{const[n,r]=o.useState(or),i=()=>{r(or)};o.useEffect(i,[]);const a=(0,St.w6)(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=o.createElement(ir,{ref:t,sync:i,notificationConfig:n});return o.createElement(St.ZP,{prefixCls:s,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)}));function sr(){if(!er){const e=document.createDocumentFragment(),t={fragment:e};return er=t,void tr((()=>{(0,vt.s)(o.createElement(ar,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,sr())}))}}),e)}))}er.instance&&(nr.forEach((e=>{switch(e.type){case"open":tr((()=>{er.instance.open(Object.assign(Object.assign({},rr),e.config))}));break;case"destroy":tr((()=>{null==er||er.instance.destroy(e.key)}))}})),nr=[])}function lr(e){(0,St.w6)();nr.push({type:"open",config:e}),sr()}const cr={open:lr,destroy:function(e){nr.push({type:"destroy",key:e}),sr()},config:function(e){rr=Object.assign(Object.assign({},rr),e),tr((()=>{var e;null===(e=null==er?void 0:er.sync)||void 0===e||e.call(er)}))},useNotification:function(e){return Jn(e)},_InternalPanelDoNotUseOrYouWillBeFired:Vn};["success","info","warning","error"].forEach((e=>{cr[e]=t=>lr(Object.assign(Object.assign({},t),{type:e}))}));const ur=cr;var dr=n(3603),fr=n(110),pr=n(470),hr=n(4128),gr=n(3671);function mr(e){return!(!e||!e.then)}const vr=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=o.useRef(!1),p=o.useRef(null),[h,g]=(0,pr.Z)(!1),m=function(){null==a||a.apply(void 0,arguments)};o.useEffect((()=>{let e=null;return s&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return o.createElement(hr.ZP,Object.assign({},(0,gr.nx)(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void m();let t;if(l){if(t=d(e),u&&!mr(t))return f.current=!1,void m(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!t)return void m();(e=>{mr(e)&&(g(!0),e.then((function(){g(!1,!0),m.apply(void 0,arguments),f.current=!1}),(e=>{if(g(!1,!0),f.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:r},i,{ref:p}),n)},br=o.createContext({}),{Provider:yr}=br,Sr=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:s,onCancel:l,onConfirm:c}=(0,o.useContext)(br);return i?o.createElement(vr,{isSilent:r,actionFn:l,close:function(){null==s||s.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},Er=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:s,onConfirm:l,onOk:c}=(0,o.useContext)(br);return o.createElement(vr,{isSilent:n,type:s||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${i}-btn`},a)};var wr=n(3037);const _r=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.createElement(un.Z,null);if(!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]))return[!1,null];const i="boolean"==typeof t||null==t?r:t;return[!0,n?n(i):i]};var Cr=n(8924);var xr=n(3945),Or=n(5702),Tr=n(4173),kr=n(6790);function Rr(){}const Nr=o.createContext({add:Rr,remove:Rr});var Ar=n(8866);const Lr=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,o.useContext)(br);return o.createElement(hr.ZP,Object.assign({onClick:n},e),t)},Pr=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,o.useContext)(br);return o.createElement(hr.ZP,Object.assign({},(0,gr.nx)(n),{loading:e,onClick:i},t),r)};var Mr=n(3008);function $r(e,t){return o.createElement("span",{className:`${e}-close-x`},t||o.createElement(un.Z,{className:`${e}-close-icon`}))}const Ir=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=(0,fr.Z)("Modal",(0,Mr.A)()),f={confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:t||(null==d?void 0:d.okText),cancelTextLocale:r||(null==d?void 0:d.cancelText),okType:n,onOk:a,onCancel:s},p=o.useMemo((()=>f),(0,mt.Z)(Object.values(f)));let h;return"function"==typeof u||void 0===u?(h=o.createElement(o.Fragment,null,o.createElement(Lr,null),o.createElement(Pr,null)),"function"==typeof u&&(h=u(h,{OkBtn:Pr,CancelBtn:Lr})),h=o.createElement(yr,{value:p},h)):h=u,o.createElement(Ar.n,{disabled:!1},h)};var Dr=n(1194),jr=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{Zr={x:e.pageX,y:e.pageY},setTimeout((()=>{Zr=null}),100)};(0,Cr.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",zr,!0);const Br=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:a}=o.useContext(yt.E_),s=t=>{const{onCancel:n}=e;null==n||n(t)};const{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:f,centered:p,getContainer:h,closeIcon:g,closable:m,focusTriggerAfterClose:v=!0,style:b,visible:y,width:S=520,footer:E,classNames:w,styles:_}=e,C=jr(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),x=r("modal",l),O=r(),T=(0,on.Z)(x),[k,R,N]=(0,Dr.ZP)(x,T),A=Mt()(f,{[`${x}-centered`]:!!p,[`${x}-wrap-rtl`]:"rtl"===i}),L=null!==E&&o.createElement(Ir,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:s})),[P,M]=_r(m,g,(e=>$r(x,e)),o.createElement(un.Z,{className:`${x}-close-icon`}),!0),$=function(e){const t=o.useContext(Nr),n=o.useRef();return(0,kr.zX)((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}(`.${x}-content`),[I,D]=(0,Qt.Cn)("Modal",C.zIndex);return k(o.createElement(Tr.BR,null,o.createElement(Or.Ux,{status:!0,override:!0},o.createElement(xr.Z.Provider,{value:D},o.createElement(wr.Z,Object.assign({width:S},C,{zIndex:I,getContainer:void 0===h?n:h,prefixCls:x,rootClassName:Mt()(R,u,N,T),footer:L,visible:null!=d?d:y,mousePosition:null!==(t=C.mousePosition)&&void 0!==t?t:Zr,onClose:s,closable:P,closeIcon:M,focusTriggerAfterClose:v,transitionName:(0,dr.m)(O,"zoom",e.transitionName),maskTransitionName:(0,dr.m)(O,"fade",e.maskTransitionName),className:Mt()(R,c,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),b),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),w),{wrapper:Mt()(A,null==w?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),_),panelRef:$}))))))},Fr=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},(0,Jt.dF)()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,et.bf)(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}}},Hr=(0,en.bk)(["Modal","confirm"],(e=>{const t=(0,Dr.B4)(e);return[Fr(t)]}),Dr.eh,{order:-1e3});var Ur=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);oy),(0,mt.Z)(Object.values(y))),E=o.createElement(o.Fragment,null,o.createElement(Sr,null),o.createElement(Er,null)),w=void 0!==e.title&&null!==e.title,_=`${a}-body`;return o.createElement("div",{className:`${a}-body-wrapper`},o.createElement("div",{className:Mt()(_,{[`${_}-has-title`]:w})},f,o.createElement("div",{className:`${a}-paragraph`},w&&o.createElement("span",{className:`${a}-title`},e.title),o.createElement("div",{className:`${a}-content`},e.content))),void 0===c||"function"==typeof c?o.createElement(yr,{value:S},o.createElement("div",{className:`${a}-btns`},"function"==typeof c?c(E,{OkBtn:Er,CancelBtn:Sr}):E)):c,o.createElement(Hr,{prefixCls:t}))}const Vr=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:a,centered:s,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,bodyStyle:h,closable:g=!1,closeIcon:m,modalRender:v,focusTriggerAfterClose:b,onConfirm:y,styles:S}=e;const E=`${d}-confirm`,w=e.width||416,_=e.style||{},C=void 0===e.mask||e.mask,x=void 0!==e.maskClosable&&e.maskClosable,O=Mt()(E,`${E}-${e.type}`,{[`${E}-rtl`]:"rtl"===u},e.className),[,T]=(0,Xn.ZP)(),k=o.useMemo((()=>void 0!==n?n:T.zIndexPopupBase+Qt.u6),[n,T]);return o.createElement(Br,{prefixCls:d,className:O,wrapClassName:Mt()({[`${E}-centered`]:!!e.centered},f),onCancel:()=>{null==t||t({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:(0,dr.m)(p||"","zoom",e.transitionName),maskTransitionName:(0,dr.m)(p||"","fade",e.maskTransitionName),mask:C,maskClosable:x,style:_,styles:Object.assign({body:h,mask:c},S),width:w,zIndex:k,afterClose:r,keyboard:a,centered:s,getContainer:l,closable:g,closeIcon:m,modalRender:v,focusTriggerAfterClose:b},o.createElement(Wr,Object.assign({},e,{confirmPrefixCls:E})))};const Xr=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return o.createElement(St.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},o.createElement(Vr,Object.assign({},e)))},qr=[];let Yr="";function Gr(){return Yr}const Kr=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:a}=e,s=(0,Mr.A)(),l=(0,o.useContext)(yt.E_),c=Gr()||l.getPrefixCls(),u=r||`${c}-modal`;let d=i;return!1===d&&(d=void 0),o.createElement(Xr,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!=a?a:l.direction,locale:null!==(n=null===(t=l.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:s,getContainer:d}))};function Qr(e){const t=(0,St.w6)();const n=document.createDocumentFragment();let r,i=Object.assign(Object.assign({},e),{close:l,open:!0});function a(){for(var t=arguments.length,r=new Array(t),o=0;oe&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat((0,mt.Z)(r.slice(1))));for(let e=0;e{const r=t.getPrefixCls(void 0,Gr()),i=t.getIconPrefixCls(),a=t.getTheme(),s=o.createElement(Kr,Object.assign({},e));(0,vt.s)(o.createElement(St.ZP,{prefixCls:r,iconPrefixCls:i,theme:a},t.holderRender?t.holderRender(s):s),n)}))}function l(){for(var t=arguments.length,n=new Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,s(i)}return s(i),qr.push(l),{destroy:l,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),s(i)}}}function Jr(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eo(e){return Object.assign(Object.assign({},e),{type:"info"})}function to(e){return Object.assign(Object.assign({},e),{type:"success"})}function no(e){return Object.assign(Object.assign({},e),{type:"error"})}function ro(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var oo=n(8745),io=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{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:s,children:l,footer:c}=e,u=io(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=o.useContext(yt.E_),f=d(),p=t||d("modal"),h=(0,on.Z)(f),[g,m,v]=(0,Dr.ZP)(p,h),b=`${p}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:o.createElement(Wr,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:f,content:l}))}:{closable:null==i||i,title:s,footer:null!==c&&o.createElement(Ir,Object.assign({},e)),children:l},g(o.createElement(wr.s,Object.assign({prefixCls:p,className:Mt()(m,`${p}-pure-panel`,a&&b,a&&`${b}-${a}`,n,v,h)},u,{closeIcon:$r(p,r),closable:i},y)))}));var so=n(9375),lo=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{var n,{afterClose:r,config:i}=e,a=lo(e,["afterClose","config"]);const[s,l]=o.useState(!0),[c,u]=o.useState(i),{direction:d,getPrefixCls:f}=o.useContext(yt.E_),p=f("modal"),h=f(),g=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));c.onCancel&&r&&c.onCancel.apply(c,[()=>{}].concat((0,mt.Z)(t.slice(1))))};o.useImperativeHandle(t,(()=>({destroy:g,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(n=c.okCancel)&&void 0!==n?n:"confirm"===c.type,[v]=(0,fr.Z)("Modal",so.Z.Modal);return o.createElement(Xr,Object.assign({prefixCls:p,rootPrefixCls:h},c,{close:g,open:s,afterClose:()=>{var e;r(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(m?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:c.direction||d,cancelText:c.cancelText||(null==v?void 0:v.cancelText)},a))},uo=o.forwardRef(co);let fo=0;const po=o.memo(o.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=o.useState([]);return[e,o.useCallback((e=>(t((t=>[].concat((0,mt.Z)(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return o.useImperativeHandle(t,(()=>({patchElement:r})),[]),o.createElement(o.Fragment,null,n)})));const ho=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect((()=>{if(t.length){(0,mt.Z)(t).forEach((e=>{e()})),n([])}}),[t]);const r=o.useCallback((t=>function(r){var i;fo+=1;const a=o.createRef();let s;const l=new Promise((e=>{s=e}));let c,u=!1;const d=o.createElement(uo,{key:`modal-${fo}`,config:t(r),ref:a,afterClose:()=>{null==c||c()},isSilent:()=>u,onConfirm:e=>{s(e)}});c=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),c&&qr.push(c);const f={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat((0,mt.Z)(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat((0,mt.Z)(e),[t])))},then:e=>(u=!0,l.then(e))};return f}),[]);return[o.useMemo((()=>({info:r(eo),success:r(to),error:r(no),warning:r(Jr),confirm:r(ro)})),[]),o.createElement(po,{key:"modal-holder",ref:e})]};function go(e){return Qr(Jr(e))}const mo=Br;mo.useModal=ho,mo.info=function(e){return Qr(eo(e))},mo.success=function(e){return Qr(to(e))},mo.error=function(e){return Qr(no(e))},mo.warning=go,mo.warn=go,mo.confirm=function(e){return Qr(ro(e))},mo.destroyAll=function(){for(;qr.length;){const e=qr.pop();e&&e()}},mo.config=function(e){let{rootPrefixCls:t}=e;Yr=t},mo._InternalPanelDoNotUseOrYouWillBeFired=ao;const vo=mo;var bo,yo=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},So=(0,o.createContext)({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(bo=yo("dark"))&&void 0!==bo&&bo.matches?"dark":"light"}),Eo=function(){return(0,o.useContext)(So)};function wo(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 _o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>l,i:()=>s});var r=n(7294),o=n(1770),i=n(6854),a=n(3124);function s(e){return t=>r.createElement(i.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}const l=(e,t,n,i)=>s((s=>{const{prefixCls:l,style:c}=s,u=r.useRef(null),[d,f]=r.useState(0),[p,h]=r.useState(0),[g,m]=(0,o.Z)(!1,{value:s.open}),{getPrefixCls:v}=r.useContext(a.E_),b=v(t||"select",l);r.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;f(t.offsetHeight+8),h(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(b)}`:`.${b}-dropdown`,i=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let y=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});i&&(y=i(y));const S={paddingBottom:d,position:"relative",minWidth:p};return r.createElement("div",{ref:u,style:S},r.createElement(e,Object.assign({},y)))}))},8065:(e,t,n)=>{"use strict";function r(e){return["small","middle","large"].includes(e)}function o(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}n.d(t,{T:()=>o,n:()=>r})},7263:(e,t,n)=>{"use strict";n.d(t,{Cn:()=>u,u6:()=>s});var r=n(7294),o=n(7606),i=n(3945);const a=100,s=1e3,l={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a},c={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function u(e,t){const[,n]=(0,o.ZP)(),a=r.useContext(i.Z),u=e in l;if(void 0!==t)return[t,t];let d=null!=a?a:0;return u?(d+=(a?0:n.zIndexPopupBase)+l[e],d=Math.min(d,n.zIndexPopupBase+s)):d+=c[e],[void 0===a?t:d,d]}},3603:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r=(e,t,n)=>void 0!==n?n:`${e}-${t}`},6159:(e,t,n)=>{"use strict";var r;n.d(t,{M2:()=>a,Tm:()=>s,l$:()=>i});var o=n(7294);const{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function s(e,t){return function(e,t,n){return i(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}},4443:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,c4:()=>i});var r=n(7294),o=n(7606);const i=["xxl","xl","lg","md","sm","xs"],a=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)`}),s=e=>{const t=e,n=[].concat(i).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{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])}},7288:(e,t,n)=>{"use strict";n.d(t,{G8:()=>i,ln:()=>a});var r=n(7294);n(334);function o(){}const i=r.createContext({}),a=()=>{const e=()=>{};return e.deprecated=o,e}},3945:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(7294).createContext(void 0)},9308:(e,t,n)=>{"use strict";n.d(t,{C:()=>ke});var r=n(7294),o=n(3967),i=n.n(o),a=n(5375),s=n(2550),l=n(4443),c=n(3124),u=n(8675),d=n(6413);const f=r.createContext({});var p=n(7395),h=n(4747),g=n(1939),m=n(5503);const v=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:g,borderRadiusSM:m,lineWidth:v,lineType:b,calc:y}=e,S=(e,t,o)=>({width:e,height:e,lineHeight:(0,p.bf)(y(e).sub(y(v).mul(2)).equal()),borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${(0,p.bf)(v)} ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(a,c,f)),{"&-lg":Object.assign({},S(s,u,g)),"&-sm":Object.assign({},S(l,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},b=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}}}},y=(0,g.I$)("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,m.TS)(e,{avatarBg:n,avatarColor:t});return[v(r),b(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}}));var S=n(5792),E=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{const[n,o]=r.useState(1),[p,h]=r.useState(!1),[g,m]=r.useState(!0),v=r.useRef(null),b=r.useRef(null),w=(0,s.sQ)(t,v),{getPrefixCls:_,avatar:C}=r.useContext(c.E_),x=r.useContext(f),O=()=>{if(!b.current||!v.current)return;const t=b.current.offsetWidth,n=v.current.offsetWidth;if(0!==t&&0!==n){const{gap:r=4}=e;2*r{h(!0)}),[]),r.useEffect((()=>{m(!0),o(1)}),[e.src]),r.useEffect(O,[e.gap]);const T=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&m(!1)},{prefixCls:k,shape:R,size:N,src:A,srcSet:L,icon:P,className:M,rootClassName:$,alt:I,draggable:D,children:j,crossOrigin:Z}=e,z=E(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),B=(0,u.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=N?N:null==x?void 0:x.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),F=Object.keys("object"==typeof B&&B||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),H=(0,d.Z)(F),U=r.useMemo((()=>{if("object"!=typeof B)return{};const e=l.c4.find((e=>H[e])),t=B[e];return t?{width:t,height:t,lineHeight:`${t}px`,fontSize:t&&(P||j)?t/2:18}:{}}),[H,B]);const W=_("avatar",k),V=(0,S.Z)(W),[X,q,Y]=y(W,V),G=i()({[`${W}-lg`]:"large"===B,[`${W}-sm`]:"small"===B}),K=r.isValidElement(A),Q=R||(null==x?void 0:x.shape)||"circle",J=i()(W,G,null==C?void 0:C.className,`${W}-${Q}`,{[`${W}-image`]:K||A&&g,[`${W}-icon`]:!!P},Y,V,M,$,q),ee="number"==typeof B?{width:B,height:B,lineHeight:`${B}px`,fontSize:P?B/2:18}:{};let te;if("string"==typeof A&&g)te=r.createElement("img",{src:A,draggable:D,srcSet:L,onError:T,alt:I,crossOrigin:Z});else if(K)te=A;else if(P)te=P;else if(p||1!==n){const e=`scale(${n}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},o="number"==typeof B?{lineHeight:`${B}px`}:{};te=r.createElement(a.Z,{onResize:O},r.createElement("span",{className:`${W}-string`,ref:b,style:Object.assign(Object.assign({},o),t)},j))}else te=r.createElement("span",{className:`${W}-string`,style:{opacity:0},ref:b},j);return delete z.onError,delete z.gap,X(r.createElement("span",Object.assign({},z,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee),U),null==C?void 0:C.style),z.style),className:J,ref:w}),te))};const _=r.forwardRef(w);var C=n(344);const x=e=>e?"function"==typeof e?e():e:null;var O=n(3603);function T(e){var t=e.children,n=e.prefixCls,o=e.id,a=e.overlayInnerStyle,s=e.className,l=e.style;return r.createElement("div",{className:i()("".concat(n,"-content"),s),style:l},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:a},"function"==typeof t?t():t))}var k=n(7462),R=n(1413),N=n(4925),A=n(2507),L={shiftX:64,adjustY:1},P={adjustX:1,shiftY:!0},M=[0,0],$={left:{points:["cr","cl"],overflow:P,offset:[-4,0],targetOffset:M},right:{points:["cl","cr"],overflow:P,offset:[4,0],targetOffset:M},top:{points:["bc","tc"],overflow:L,offset:[0,-4],targetOffset:M},bottom:{points:["tc","bc"],overflow:L,offset:[0,4],targetOffset:M},topLeft:{points:["bl","tl"],overflow:L,offset:[0,-4],targetOffset:M},leftTop:{points:["tr","tl"],overflow:P,offset:[-4,0],targetOffset:M},topRight:{points:["br","tr"],overflow:L,offset:[0,-4],targetOffset:M},rightTop:{points:["tl","tr"],overflow:P,offset:[4,0],targetOffset:M},bottomRight:{points:["tr","br"],overflow:L,offset:[0,4],targetOffset:M},rightBottom:{points:["bl","br"],overflow:P,offset:[4,0],targetOffset:M},bottomLeft:{points:["tl","bl"],overflow:L,offset:[0,4],targetOffset:M},leftBottom:{points:["br","bl"],overflow:P,offset:[-4,0],targetOffset:M}};var I=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],D=function(e,t){var n=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,s=void 0===a?0:a,l=e.mouseLeaveDelay,c=void 0===l?.1:l,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,h=e.onVisibleChange,g=e.afterVisibleChange,m=e.transitionName,v=e.animation,b=e.motion,y=e.placement,S=void 0===y?"right":y,E=e.align,w=void 0===E?{}:E,_=e.destroyTooltipOnHide,C=void 0!==_&&_,x=e.defaultVisible,O=e.getTooltipContainer,L=e.overlayInnerStyle,P=(e.arrowContent,e.overlay),M=e.id,D=e.showArrow,j=void 0===D||D,Z=(0,N.Z)(e,I),z=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return z.current}));var B=(0,R.Z)({},Z);"visible"in e&&(B.popupVisible=e.visible);return r.createElement(A.Z,(0,k.Z)({popupClassName:n,prefixCls:f,popup:function(){return r.createElement(T,{key:"content",prefixCls:f,id:M,overlayInnerStyle:L},P)},action:i,builtinPlacements:$,popupPlacement:S,ref:z,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:m,popupAnimation:v,popupMotion:b,defaultPopupVisible:x,autoDestroy:C,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:j},B),p)};const j=(0,r.forwardRef)(D);var Z=n(1770),z=n(7263);function B(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,d=c,f=2*o-a,p=s,h=2*o-0,g=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const F=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(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 ${(0,p.bf)(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},H=8;function U(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?H:r}}function W(e,t){return e?t:{}}function V(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={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"},F(e,t,o)),{"&:before":{background:t}})]},W(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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}}})),W(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,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}}})),W(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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}})),W(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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 X={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"]}},q={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"]}},Y=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function G(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(X).forEach((e=>{const c=r&&q[e]||X[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,Y.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const d=U({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+s}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")})),l}var K=n(6159),Q=n(7288),J=n(3945),ee=n(4173),te=n(7606),ne=n(438);const re=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function oe(e,t){return re.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const ie=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,h.Wf)(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:s,minHeight:s,padding:`${(0,p.bf)(e.calc(c).div(2).equal())} ${(0,p.bf)(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,H)}},[`${t}-content`]:{position:"relative"}}),oe(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},V(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ae=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},U({contentRadius:e.borderRadius,limitVerticalRadius:!0})),B((0,m.TS)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),se=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,g.I$)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=(0,m.TS)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[ie(o),(0,ne._y)(e,"zoom-big-fast")]}),ae,{resetStyle:!1,injectStyle:t})(e)};var le=n(3433);const ce=re.map((e=>`${e}-inverse`));function ue(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?re.includes(e):[].concat((0,le.Z)(ce),(0,le.Z)(re)).includes(e)}(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const de=e=>{const{prefixCls:t,className:n,placement:o="top",title:a,color:s,overlayInnerStyle:l}=e,{getPrefixCls:u}=r.useContext(c.E_),d=u("tooltip",t),[f,p,h]=se(d),g=ue(d,s),m=g.arrowStyle,v=Object.assign(Object.assign({},l),g.overlayStyle),b=i()(p,h,d,`${d}-pure`,`${d}-placement-${o}`,n,g.className);return f(r.createElement("div",{className:b,style:m},r.createElement("div",{className:`${d}-arrow`}),r.createElement(T,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:v}),a)))};var fe=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{var n,o;const{prefixCls:a,openClassName:s,getTooltipContainer:l,overlayClassName:u,color:d,overlayInnerStyle:f,children:p,afterOpenChange:h,afterVisibleChange:g,destroyTooltipOnHide:m,arrow:v=!0,title:b,overlay:y,builtinPlacements:S,arrowPointAtCenter:E=!1,autoAdjustOverflow:w=!0}=e,_=!!v,[,C]=(0,te.ZP)(),{getPopupContainer:x,getPrefixCls:T,direction:k}=r.useContext(c.E_),R=(0,Q.ln)("Tooltip"),N=r.useRef(null),A=()=>{var e;null===(e=N.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>({forceAlign:A,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),A()}})));const[L,P]=(0,Z.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),M=!b&&!y&&0!==b,$=r.useMemo((()=>{var e,t;let n=E;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:E),S||G({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:_?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[E,v,S,C]),I=r.useMemo((()=>0===b?b:y||b||""),[y,b]),D=r.createElement(ee.BR,null,"function"==typeof I?I():I),{getPopupContainer:B,placement:F="top",mouseEnterDelay:H=.1,mouseLeaveDelay:U=.1,overlayStyle:W,rootClassName:V}=e,X=fe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=T("tooltip",a),Y=T(),ne=e["data-popover-inject"];let re=L;"open"in e||"visible"in e||!M||(re=!1);const oe=(0,K.l$)(p)&&!(0,K.M2)(p)?p:r.createElement("span",null,p),ie=oe.props,ae=ie.className&&"string"!=typeof ie.className?ie.className:i()(ie.className,s||`${q}-open`),[le,ce,de]=se(q,!ne),pe=ue(q,d),he=pe.arrowStyle,ge=Object.assign(Object.assign({},f),pe.overlayStyle),me=i()(u,{[`${q}-rtl`]:"rtl"===k},pe.className,V,ce,de),[ve,be]=(0,z.Cn)("Tooltip",X.zIndex),ye=r.createElement(j,Object.assign({},X,{zIndex:ve,showArrow:_,placement:F,mouseEnterDelay:H,mouseLeaveDelay:U,prefixCls:q,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},he),W),getTooltipContainer:B||l||x,ref:N,builtinPlacements:$,overlay:D,visible:re,onVisibleChange:t=>{var n,r;P(!M&&t),M||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=h?h:g,overlayInnerStyle:ge,arrowContent:r.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:(0,O.m)(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),re?(0,K.Tm)(oe,{className:ae}):oe);return le(r.createElement(J.Z.Provider,{value:be},ye))}));pe._InternalPanelDoNotUseOrYouWillBeFired=de;const he=pe,ge=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:g,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,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:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:g}})},V(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},me=e=>{const{componentCls:t}=e;return{[t]:re.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},ve=(0,g.I$)("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=(0,m.TS)(e,{popoverBg:t,popoverColor:n});return[ge(r),me(r),(0,ne._y)(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},B(e)),U({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${p}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var be=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{const{hashId:t,prefixCls:n,className:o,style:a,placement:s="top",title:l,content:c,children:u}=e;return r.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${s}`,o),style:a},r.createElement("div",{className:`${n}-arrow`}),r.createElement(T,Object.assign({},e,{className:t,prefixCls:n}),u||((e,t,n)=>t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${e}-title`},x(t)),r.createElement("div",{className:`${e}-inner-content`},x(n))):null)(n,l,c)))},Se=e=>{const{prefixCls:t,className:n}=e,o=be(e,["prefixCls","className"]),{getPrefixCls:a}=r.useContext(c.E_),s=a("popover",t),[l,u,d]=ve(s);return l(r.createElement(ye,Object.assign({},o,{prefixCls:s,hashId:u,className:i()(n,d)})))};var Ee=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{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},x(t)),r.createElement("div",{className:`${o}-inner-content`},x(n)))},_e=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:s,placement:l="top",trigger:u="hover",mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,overlayStyle:p={}}=e,h=Ee(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:g}=r.useContext(c.E_),m=g("popover",n),[v,b,y]=ve(m),S=g(),E=i()(s,b,y);return v(r.createElement(he,Object.assign({placement:l,trigger:u,mouseEnterDelay:d,mouseLeaveDelay:f,overlayStyle:p},h,{prefixCls:m,overlayClassName:E,ref:t,overlay:o||a?r.createElement(we,{prefixCls:m,title:o,content:a}):null,transitionName:(0,O.m)(S,"zoom-big",h.transitionName),"data-popover-inject":!0})))}));_e._InternalPanelDoNotUseOrYouWillBeFired=Se;const Ce=_e,xe=e=>{const{size:t,shape:n}=r.useContext(f),o=r.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return r.createElement(f.Provider,{value:o},e.children)},Oe=e=>{const{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,className:a,rootClassName:s,style:l,maxCount:u,maxStyle:d,size:f,shape:p,maxPopoverPlacement:h="top",maxPopoverTrigger:g="hover",children:m}=e,v=t("avatar",o),b=`${v}-group`,E=(0,S.Z)(v),[w,x,O]=y(v,E),T=i()(b,{[`${b}-rtl`]:"rtl"===n},O,E,a,s,x),k=(0,C.Z)(m).map(((e,t)=>(0,K.Tm)(e,{key:`avatar-key-${t}`}))),R=k.length;if(u&&u{"use strict";n.d(t,{Te:()=>c,aG:()=>a,hU:()=>u,nx:()=>s});var r=n(7294),o=n(6159);const i=/^[\u4e00-\u9fa5]{2}$/,a=i.test.bind(i);function s(e){return"danger"===e?{danger:!0}:{type:e}}function l(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function u(e,t){let n=!1;const i=[];return r.Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);n=r})),r.Children.map(i,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&l(e.type)&&a(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):l(e)?a(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.M2)(e)?r.createElement("span",null,e):e}(e,t)))}},4128:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>we});var r=n(7294),o=n(3967),i=n.n(o),a=n(8423),s=n(2550),l=n(5110),c=n(3124),u=n(6159),d=n(1939);const f=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(",")}}}}},p=(0,d.ZP)("Wave",(e=>[f(e)]));var h=n(6790),g=n(5164),m=n(5461),v=n(8135);function b(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 y="ant-wave-target";function S(e){return Number.isNaN(e)?0:e}const E=e=>{const{className:t,target:n,component:o}=e,a=r.useRef(null),[s,l]=r.useState(null),[c,u]=r.useState([]),[d,f]=r.useState(0),[p,h]=r.useState(0),[E,w]=r.useState(0),[_,C]=r.useState(0),[x,O]=r.useState(!1),T={left:d,top:p,width:E,height:_,borderRadius:c.map((e=>`${e}px`)).join(" ")};function k(){const e=getComputedStyle(n);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return b(t)?t:b(n)?n:b(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;f(t?n.offsetLeft:S(-parseFloat(r))),h(t?n.offsetTop:S(-parseFloat(o))),w(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;u([i,a,c,s].map((e=>S(parseFloat(e)))))}if(s&&(T["--wave-color"]=s),r.useEffect((()=>{if(n){const e=(0,g.Z)((()=>{k(),O(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(k),t.observe(n)),()=>{g.Z.cancel(e),null==t||t.disconnect()}}}),[]),!x)return null;const R=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(y));return r.createElement(m.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;(0,v.v)(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return r.createElement("div",{ref:a,className:i()(t,{"wave-quick":R},n),style:T})}))},w=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,v.s)(r.createElement(E,Object.assign({},t,{target:e})),i)};var _=n(7606);const C=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:a}=(0,r.useContext)(c.E_),d=(0,r.useRef)(null),f=a("wave"),[,m]=p(f),v=function(e,t,n){const{wave:o}=r.useContext(c.E_),[,i,a]=(0,_.ZP)(),s=(0,h.zX)((r=>{const s=e.current;if((null==o?void 0:o.disabled)||!s)return;const l=s.querySelector(`.${y}`)||s,{showEffect:c}=o||{};(c||w)(l,{className:t,token:i,component:n,event:r,hashId:a})})),l=r.useRef();return e=>{g.Z.cancel(l.current),l.current=(0,g.Z)((()=>{s(e)}))}}(d,i()(f,m),o);if(r.useEffect((()=>{const e=d.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!(0,l.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!r.isValidElement(t))return null!=t?t:null;const b=(0,s.Yr)(t)?(0,s.sQ)(t.ref,d):d;return(0,u.Tm)(t,{ref:b})};var x=n(8866),O=n(8675),T=n(4173),k=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{const{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:a,className:s}=e,l=k(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,d]=(0,_.ZP)();let f="";switch(a){case"large":f="lg";break;case"small":f="sm"}const p=i()(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:"rtl"===n},s,d);return r.createElement(R.Provider,{value:a},r.createElement("div",Object.assign({},l,{className:p})))};var A=n(3671);const L=(0,r.forwardRef)(((e,t)=>{const{className:n,style:o,children:a,prefixCls:s}=e,l=i()(`${s}-icon`,n);return r.createElement("span",{ref:t,className:l,style:o},a)})),P=L;var M=n(7085);const $=(0,r.forwardRef)(((e,t)=>{let{prefixCls:n,className:o,style:a,iconClassName:s}=e;const l=i()(`${n}-loading-icon`,o);return r.createElement(P,{prefixCls:n,className:l,style:a,ref:t},r.createElement(M.Z,{className:s}))})),I=()=>({width:0,opacity:0,transform:"scale(0)"}),D=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),j=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e,s=!!n;return o?r.createElement($,{prefixCls:t,className:i,style:a}):r.createElement(m.ZP,{visible:s,motionName:`${t}-loading-icon-motion`,motionLeave:s,removeOnLeave:!0,onAppearStart:I,onAppearActive:D,onEnterStart:I,onEnterActive:D,onLeaveStart:D,onLeaveActive:I},((e,n)=>{let{className:o,style:s}=e;return r.createElement($,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),s),ref:n,iconClassName:o})}))};var Z=n(7395),z=n(4747),B=n(5503);const F=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),H=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}},F(`${t}-primary`,o),F(`${t}-danger`,i)]}};var U=n(1734);const W=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,B.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},V=e=>{var t,n,r,o,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,U.D)(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,U.D)(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,U.D)(c);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,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},X=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:`${(0,Z.bf)(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({},(0,z.Qy)(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"}}}},q=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Y=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),G=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),K=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Q=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},q(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),J=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},K(e))}),ee=e=>Object.assign({},J(e)),te=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ne=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ee(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),q(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Q(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},q(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Q(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),J(e))}),re=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ee(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),q(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Q(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},q(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Q(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),J(e))}),oe=e=>Object.assign(Object.assign({},ne(e)),{borderStyle:"dashed"}),ie=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},q(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),te(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},q(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),te(e))}),ae=e=>Object.assign(Object.assign(Object.assign({},q(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),te(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},te(e)),q(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),se=e=>{const{componentCls:t}=e;return{[`${t}-default`]:ne(e),[`${t}-primary`]:re(e),[`${t}-dashed`]:oe(e),[`${t}-link`]:ie(e),[`${t}-text`]:ae(e),[`${t}-ghost`]:Q(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},le=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:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${(0,Z.bf)(c)} ${(0,Z.bf)(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{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}`]:Y(e)},{[`${n}${n}-round${t}`]:G(e)}]},ce=e=>{const t=(0,B.TS)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return le(t,e.componentCls)},ue=e=>{const t=(0,B.TS)(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 le(t,`${e.componentCls}-sm`)},de=e=>{const t=(0,B.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return le(t,`${e.componentCls}-lg`)},fe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},pe=(0,d.I$)("Button",(e=>{const t=W(e);return[X(t),ce(t),ue(t),de(t),fe(t),se(t),H(t)]}),V,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var he=n(4184);function ge(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 me(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ge(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 ve=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% + ${(0,Z.bf)(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% + ${(0,Z.bf)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},be=(0,d.bk)(["Button","compact"],(e=>{const t=W(e);return[(0,he.c)(t),me(t),ve(t)]}),V);var ye=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{var n,o;const{loading:l=!1,prefixCls:u,type:d="default",danger:f,shape:p="default",size:h,styles:g,disabled:m,className:v,rootClassName:b,children:y,icon:S,ghost:E=!1,block:w=!1,htmlType:_="button",classNames:k,style:N={}}=e,L=ye(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:M,autoInsertSpaceInButton:$,direction:I,button:D}=(0,r.useContext)(c.E_),Z=M("btn",u),[z,B,F]=pe(Z),H=(0,r.useContext)(x.Z),U=null!=m?m:H,W=(0,r.useContext)(R),V=(0,r.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}}(l)),[l]),[X,q]=(0,r.useState)(V.loading),[Y,G]=(0,r.useState)(!1),K=(0,r.createRef)(),Q=(0,s.sQ)(t,K),J=1===r.Children.count(y)&&!S&&!(0,A.Te)(d);(0,r.useEffect)((()=>{let e=null;return V.delay>0?e=setTimeout((()=>{e=null,q(!0)}),V.delay):q(V.loading),function(){e&&(clearTimeout(e),e=null)}}),[V]),(0,r.useEffect)((()=>{if(!Q||!Q.current||!1===$)return;const e=Q.current.textContent;J&&(0,A.aG)(e)?Y||G(!0):Y&&G(!1)}),[Q]);const ee=t=>{const{onClick:n}=e;X||U?t.preventDefault():null==n||n(t)};const te=!1!==$,{compactSize:ne,compactItemClassnames:re}=(0,T.ri)(Z,I),oe={large:"lg",small:"sm",middle:void 0},ie=(0,O.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=h?h:ne)&&void 0!==t?t:W)&&void 0!==n?n:e})),ae=ie&&oe[ie]||"",se=X?"loading":S,le=(0,a.Z)(L,["navigate"]),ce=i()(Z,B,F,{[`${Z}-${p}`]:"default"!==p&&p,[`${Z}-${d}`]:d,[`${Z}-${ae}`]:ae,[`${Z}-icon-only`]:!y&&0!==y&&!!se,[`${Z}-background-ghost`]:E&&!(0,A.Te)(d),[`${Z}-loading`]:X,[`${Z}-two-chinese-chars`]:Y&&te&&!X,[`${Z}-block`]:w,[`${Z}-dangerous`]:!!f,[`${Z}-rtl`]:"rtl"===I},re,v,b,null==D?void 0:D.className),ue=Object.assign(Object.assign({},null==D?void 0:D.style),N),de=i()(null==k?void 0:k.icon,null===(n=null==D?void 0:D.classNames)||void 0===n?void 0:n.icon),fe=Object.assign(Object.assign({},(null==g?void 0:g.icon)||{}),(null===(o=null==D?void 0:D.styles)||void 0===o?void 0:o.icon)||{}),he=S&&!X?r.createElement(P,{prefixCls:Z,className:de,style:fe},S):r.createElement(j,{existIcon:!!S,prefixCls:Z,loading:!!X}),ge=y||0===y?(0,A.hU)(y,J&&te):null;if(void 0!==le.href)return z(r.createElement("a",Object.assign({},le,{className:i()(ce,{[`${Z}-disabled`]:U}),href:U?void 0:le.href,style:ue,onClick:ee,ref:Q,tabIndex:U?-1:0}),he,ge));let me=r.createElement("button",Object.assign({},L,{type:_,className:ce,style:ue,onClick:ee,disabled:U,ref:Q}),he,ge,!!re&&r.createElement(be,{key:"compact",prefixCls:Z}));return(0,A.Te)(d)||(me=r.createElement(C,{component:"Button",disabled:!!X},me)),z(me)},Ee=(0,r.forwardRef)(Se);Ee.Group=N,Ee.__ANT_BUTTON=!0;const we=Ee},8866:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,n:()=>i});var r=n(7294);const o=r.createContext(!1),i=e=>{let{children:t,disabled:n}=e;const i=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:i},t)},a=o},7647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,q:()=>i});var r=n(7294);const o=r.createContext(void 0),i=e=>{let{children:t,size:n}=e;const i=r.useContext(o);return r.createElement(o.Provider,{value:n||i},t)},a=o},3124:(e,t,n)=>{"use strict";n.d(t,{E_:()=>i,oR:()=>o});var r=n(7294);const o="anticon",i=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},5792:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7606);const o=e=>{const[,,,,t]=(0,r.ZP)();return t?`${e}-css-var`:""}},8675:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7294),o=n(7647);const i=e=>{const t=r.useContext(o.Z);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])}},6854:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>X,w6:()=>U});var r=n(7294),o=n.t(r,2),i=n(7395),a=n(3017),s=n(6982),l=n(8880),c=n(7288);const u=(0,r.createContext)(void 0);var d=n(3008),f=n(6745);const p=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;r.useEffect((()=>(0,d.f)(t&&t.Modal)),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(f.Z.Provider,{value:i},n)};var h=n(9375),g=n(3083),m=n(2790),v=n(3124),b=n(1242),y=n(274),S=n(8924),E=n(4958);const w=`-ant-${Date.now()}-${Math.random()}`;function _(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 y.C(e),i=(0,b.R_)(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 y.C(t.primaryColor),i=(0,b.R_)(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 y.C(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);(0,S.Z)()&&(0,E.hq)(n,`${w}-dynamic-theme`)}var C=n(8866),x=n(7647);const O=function(){return{componentDisabled:(0,r.useContext)(C.Z),componentSize:(0,r.useContext)(x.Z)}};var T=n(1881);const k=Object.assign({},o),{useId:R}=k,N=void 0===R?()=>"":R;var A=n(5461),L=n(7606);function P(e){const{children:t}=e,[,n]=(0,L.ZP)(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(A.zt,{motion:o},t):t}const M=()=>null;var $=n(3269),I=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({getPrefixCls:(e,t)=>t||(e?`${F()}-${e}`:F()),getIconPrefixCls:H,getRootPrefixCls:()=>j||F(),getTheme:()=>z,holderRender:B}),W=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:d,anchor:f,form:b,locale:y,componentSize:S,direction:E,space:w,virtual:_,dropdownMatchSelectWidth:O,popupMatchSelectWidth:k,popupOverflow:R,legacyLocale:A,parentContext:L,iconPrefixCls:j,theme:Z,componentDisabled:z,segmented:B,statistic:F,spin:H,calendar:U,carousel:W,cascader:V,collapse:X,typography:q,checkbox:Y,descriptions:G,divider:K,drawer:Q,skeleton:J,steps:ee,image:te,layout:ne,list:re,mentions:oe,modal:ie,progress:ae,result:se,slider:le,breadcrumb:ce,menu:ue,pagination:de,input:fe,empty:pe,badge:he,radio:ge,rate:me,switch:ve,transfer:be,avatar:ye,message:Se,tag:Ee,table:we,card:_e,tabs:Ce,timeline:xe,timePicker:Oe,upload:Te,notification:ke,tree:Re,colorPicker:Ne,datePicker:Ae,rangePicker:Le,flex:Pe,wave:Me,dropdown:$e,warning:Ie}=e,De=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||L.getPrefixCls("");return t?`${o}-${t}`:o}),[L.getPrefixCls,e.prefixCls]),je=j||L.iconPrefixCls||v.oR,Ze=n||L.csp;(0,$.Z)(je,Ze);const ze=function(e,t){(0,c.ln)("ConfigProvider");const n=e||{},r=!1!==n.inherit&&t?t:g.u_,o=N();return(0,s.Z)((()=>{var i,a;if(!e)return t;const s=Object.assign({},r.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const l=`css-var-${o.replace(/:/g,"")}`,c=(null!==(i=n.cssVar)&&void 0!==i?i:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof n.cssVar?n.cssVar:{}),{key:"object"==typeof n.cssVar&&(null===(a=n.cssVar)||void 0===a?void 0:a.key)||l});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:s,cssVar:c})}),[n,r],((e,t)=>e.some(((e,n)=>{const r=t[n];return!(0,T.Z)(e,r,!0)}))))}(Z,L.theme);const Be={csp:Ze,autoInsertSpaceInButton:o,alert:d,anchor:f,locale:y||A,direction:E,space:w,virtual:_,popupMatchSelectWidth:null!=k?k:O,popupOverflow:R,getPrefixCls:De,iconPrefixCls:je,theme:ze,segmented:B,statistic:F,spin:H,calendar:U,carousel:W,cascader:V,collapse:X,typography:q,checkbox:Y,descriptions:G,divider:K,drawer:Q,skeleton:J,steps:ee,image:te,input:fe,layout:ne,list:re,mentions:oe,modal:ie,progress:ae,result:se,slider:le,breadcrumb:ce,menu:ue,pagination:de,empty:pe,badge:he,radio:ge,rate:me,switch:ve,transfer:be,avatar:ye,message:Se,tag:Ee,table:we,card:_e,tabs:Ce,timeline:xe,timePicker:Oe,upload:Te,notification:ke,tree:Re,colorPicker:Ne,datePicker:Ae,rangePicker:Le,flex:Pe,wave:Me,dropdown:$e,warning:Ie},Fe=Object.assign({},L);Object.keys(Be).forEach((e=>{void 0!==Be[e]&&(Fe[e]=Be[e])})),D.forEach((t=>{const n=e[t];n&&(Fe[t]=n)}));const He=(0,s.Z)((()=>Fe),Fe,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ue=r.useMemo((()=>({prefixCls:je,csp:Ze})),[je,Ze]);let We=r.createElement(r.Fragment,null,r.createElement(M,{dropdownMatchSelectWidth:O}),t);const Ve=r.useMemo((()=>{var e,t,n,r;return(0,l.T)((null===(e=h.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=He.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=He.form)||void 0===r?void 0:r.validateMessages)||{},(null==b?void 0:b.validateMessages)||{})}),[He,null==b?void 0:b.validateMessages]);Object.keys(Ve).length>0&&(We=r.createElement(u.Provider,{value:Ve},We)),y&&(We=r.createElement(p,{locale:y,_ANT_MARK__:"internalMark"},We)),(je||Ze)&&(We=r.createElement(a.Z.Provider,{value:Ue},We)),S&&(We=r.createElement(x.q,{size:S},We)),We=r.createElement(P,null,We);const Xe=r.useMemo((()=>{const e=ze||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=I(e,["algorithm","token","components","cssVar"]),s=t&&(!Array.isArray(t)||t.length>0)?(0,i.jG)(t):g.uH,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=s:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,i.jG)(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},m.Z),n);return Object.assign(Object.assign({},a),{theme:s,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[ze]);return Z&&(We=r.createElement(g.Mj.Provider,{value:Xe},We)),He.warning&&(We=r.createElement(c.G8.Provider,{value:He.warning},We)),void 0!==z&&(We=r.createElement(C.n,{disabled:z},We)),r.createElement(v.E_.Provider,{value:He},We)},V=e=>{const t=r.useContext(v.E_),n=r.useContext(f.Z);return r.createElement(W,Object.assign({parentContext:t,legacyLocale:n},e))};V.ConfigContext=v.E_,V.SizeContext=x.Z,V.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(j=t),void 0!==n&&(Z=n),"holderRender"in e&&(B=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?z=r:_(F(),r))},V.useConfig=O,Object.defineProperty(V,"SizeContext",{get:()=>x.Z});const X=V},3512:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(7294),o=n(3967),i=n.n(o),a=n(8423),s=n(8065),l=n(3124),c=n(1939),u=n(5503);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const h=function(e,t){return i()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n={};return d.forEach((r=>{n[`${e}-wrap-${r}`]=t.wrap===r})),n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))},g=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},m=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},b=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},S=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,u.TS)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[g(o),m(o),v(o),b(o),y(o)]}),(()=>({})),{resetStyle:!1});var E=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{const{prefixCls:n,rootClassName:o,className:c,style:u,flex:d,gap:f,children:p,vertical:g=!1,component:m="div"}=e,v=E(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:b,direction:y,getPrefixCls:w}=r.useContext(l.E_),_=w("flex",n),[C,x,O]=S(_),T=null!=g?g:null==b?void 0:b.vertical,k=i()(c,o,null==b?void 0:b.className,_,x,O,h(_,e),{[`${_}-rtl`]:"rtl"===y,[`${_}-gap-${f}`]:(0,s.n)(f),[`${_}-vertical`]:T}),R=Object.assign(Object.assign({},null==b?void 0:b.style),u);return d&&(R.flex=d),f&&!(0,s.n)(f)&&(R.gap=f),C(r.createElement(m,Object.assign({ref:t,className:k,style:R},(0,a.Z)(v,["justify","wrap","align"])),p))}));const _=w},5702:(e,t,n)=>{"use strict";n.d(t,{aM:()=>De,Ux:()=>je,pg:()=>Ze});var r=n(7294),o=n(7462),i=n(4925),a=n(4165),s=n(5861),l=n(1413),c=n(3433),u=n(5671),d=n(3144),f=n(7326),p=n(9340),h=n(9388),g=n(4942),m=n(344),v=n(1881),b=n(334),y="RC_FORM_INTERNAL_HOOKS",S=function(){(0,b.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const E=r.createContext({getFieldValue:S,getFieldsValue:S,getFieldError:S,getFieldWarning:S,getFieldsError:S,isFieldsTouched:S,isFieldTouched:S,isFieldValidating:S,isFieldsValidating:S,resetFields:S,setFields:S,setFieldValue:S,setFieldsValue:S,validateFields:S,submit:S,getInternalHooks:function(){return S(),{dispatch:S,initEntityValue:S,registerField:S,useSubscribe:S,setInitialValues:S,destroyForm:S,setCallbacks:S,registerWatch:S,getFields:S,setValidateMessages:S,setPreserve:S,getInitialValue:S}}});const w=r.createContext(null);function _(e){return null==e?[]:Array.isArray(e)?e:[e]}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function L(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 P(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s()\[\]\\.,;:\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,}))$/,B=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,F={integer:function(e){return F.number(e)&&parseInt(e,10)===e},float:function(e){return F.number(e)&&!F.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!F.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(z)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(j)return j;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+"$"),s=new RegExp("^"+o+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")};var c=l.v4().source,u=l.v6().source;return j=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+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(B)}},H="enum",U={required:Z,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(A(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)Z(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?F[i](t)||r.push(A(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(A(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,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(A(o.messages[c].len,e.fullField,e.len)):a&&!s&&le.max?r.push(A(o.messages[c].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(A(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[H]=Array.isArray(e[H])?e[H]:[],-1===e[H].indexOf(t)&&r.push(A(o.messages[H],e.fullField,e[H].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(A(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(A(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},W=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(L(t,i)&&!e.required)return n();U.required(e,t,r,a,o,i),L(t,i)||U.type(e,t,r,a,o)}n(a)},V={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(L(t,"string")&&!e.required)return n();U.required(e,t,r,i,o,"string"),L(t,"string")||(U.type(e,t,r,i,o),U.range(e,t,r,i,o),U.pattern(e,t,r,i,o),!0===e.whitespace&&U.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(L(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&U.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),L(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&(U.type(e,t,r,i,o),U.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(L(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&U.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(L(t)&&!e.required)return n();U.required(e,t,r,i,o),L(t)||U.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(L(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&(U.type(e,t,r,i,o),U.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(L(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&(U.type(e,t,r,i,o),U.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();U.required(e,t,r,i,o,"array"),null!=t&&(U.type(e,t,r,i,o),U.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(L(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&U.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(L(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&U.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(L(t,"string")&&!e.required)return n();U.required(e,t,r,i,o),L(t,"string")||U.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(L(t,"date")&&!e.required)return n();var a;if(U.required(e,t,r,i,o),!L(t,"date"))a=t instanceof Date?t:new Date(t),U.type(e,a,r,i,o),a&&U.range(e,a.getTime(),r,i,o)}n(i)},url:W,hex:W,email:W,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;U.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(L(t)&&!e.required)return n();U.required(e,t,r,i,o)}n(i)}};function X(){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 q=X(),Y=function(){function e(e){this.rules=null,this._messages=q,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=D(X(),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,s=r;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,i),Promise.resolve(i);if(a.messages){var l=this.messages();l===q&&(l=X()),D(l,a.messages),a.messages=l}else a.messages=this.messages();var c={};(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=C({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:C({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))}))}));var u={};return $(c,a,(function(t,n){var r,o=t.rule,s=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function l(e,t){return C({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(I(o,i));if(a.first&&d.length)return u[o.field]=1,n(d);if(s){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(I(o,i)):a.error&&(d=[a.error(o,A(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=C({},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(l.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.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(s=s&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout((function(){throw e}),0),c(e.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},a=0;a2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return fe(t,e,n)}))}function fe(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 pe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,se.Z)(t.target)&&e in t.target?t.target[e]:t}function he(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((0,c.Z)(e.slice(0,n)),[o],(0,c.Z)(e.slice(n,t)),(0,c.Z)(e.slice(t+1,r))):i<0?[].concat((0,c.Z)(e.slice(0,t)),(0,c.Z)(e.slice(t+1,n+1)),[o],(0,c.Z)(e.slice(n+1,r))):e}var ge=["name"],me=[];function ve(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var be=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var o;((0,u.Z)(this,n),o=t.call(this,e),(0,g.Z)((0,f.Z)(o),"state",{resetCount:0}),(0,g.Z)((0,f.Z)(o),"cancelRegisterFunc",null),(0,g.Z)((0,f.Z)(o),"mounted",!1),(0,g.Z)((0,f.Z)(o),"touched",!1),(0,g.Z)((0,f.Z)(o),"dirty",!1),(0,g.Z)((0,f.Z)(o),"validatePromise",void 0),(0,g.Z)((0,f.Z)(o),"prevValidating",void 0),(0,g.Z)((0,f.Z)(o),"errors",me),(0,g.Z)((0,f.Z)(o),"warnings",me),(0,g.Z)((0,f.Z)(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,ce(r)),o.cancelRegisterFunc=null})),(0,g.Z)((0,f.Z)(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,c.Z)(r),(0,c.Z)(t)):[]})),(0,g.Z)((0,f.Z)(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),(0,g.Z)((0,f.Z)(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,g.Z)((0,f.Z)(o),"metaCache",null),(0,g.Z)((0,f.Z)(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=(0,l.Z)((0,l.Z)({},o.getMeta()),{},{destroy:e});(0,v.Z)(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),(0,g.Z)((0,f.Z)(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,l=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&de(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=me,o.warnings=me,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=me,o.warnings=me,o.triggerMetaEvent(),null==l||l(),void o.refresh();break;case"remove":if(i)return void o.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||me),"warnings"in h&&(o.warnings=h.warnings||me),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&de(t,u,!0))return void o.reRender();if(i&&!u.length&&ve(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(ce).some((function(e){return de(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!s.length||u.length||i)&&ve(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),(0,g.Z)((0,f.Z)(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,l=r.validateOnly,u=void 0!==l&&l,d=Promise.resolve().then((0,s.Z)((0,a.Z)().mark((function r(){var s,l,u,f,p,h,g;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(s=o.props,l=s.validateFirst,u=void 0!==l&&l,f=s.messageVariables,p=s.validateDebounce,h=o.getRules(),i&&(h=h.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||_(t).includes(i)}))),!p||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,p)}));case 8:if(o.validatePromise===d){r.next=10;break}return r.abrupt("return",[]);case 10:return(g=oe(t,n,h,e,u,f)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me;if(o.validatePromise===d){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?me:o;t?r.push.apply(r,(0,c.Z)(i)):n.push.apply(n,(0,c.Z)(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",g);case 13:case"end":return r.stop()}}),r)}))));return u||(o.validatePromise=d,o.dirty=!0,o.errors=me,o.warnings=me,o.triggerMetaEvent(),o.reRender()),d})),(0,g.Z)((0,f.Z)(o),"isFieldValidating",(function(){return!!o.validatePromise})),(0,g.Z)((0,f.Z)(o),"isFieldTouched",(function(){return o.touched})),(0,g.Z)((0,f.Z)(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(y).getInitialValue)(o.getNamePath())})),(0,g.Z)((0,f.Z)(o),"getErrors",(function(){return o.errors})),(0,g.Z)((0,f.Z)(o),"getWarnings",(function(){return o.warnings})),(0,g.Z)((0,f.Z)(o),"isListField",(function(){return o.props.isListField})),(0,g.Z)((0,f.Z)(o),"isList",(function(){return o.props.isList})),(0,g.Z)((0,f.Z)(o),"isPreserve",(function(){return o.props.preserve})),(0,g.Z)((0,f.Z)(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),(0,g.Z)((0,f.Z)(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return(0,l.Z)((0,l.Z)({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),(0,g.Z)((0,f.Z)(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return(0,le.Z)(e||t(!0),n)})),(0,g.Z)((0,f.Z)(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==r?r:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,m=p(y).dispatch,v=o.getValue(),b=c||function(e){return(0,g.Z)({},s,e)},S=e[n],E=(0,l.Z)((0,l.Z)({},e),b(v));return E[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(f.keys=[].concat((0,c.Z)(f.keys.slice(0,t)),[f.id],(0,c.Z)(f.keys.slice(t))),i([].concat((0,c.Z)(n.slice(0,t)),[e],(0,c.Z)(n.slice(t))))):(f.keys=[].concat((0,c.Z)(f.keys),[f.id]),i([].concat((0,c.Z)(n),[e]))),f.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(f.keys=f.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=s();e<0||e>=n.length||t<0||t>=n.length||(f.keys=he(f.keys,e,t),i(he(n,e,t)))}}},d=r||[];return Array.isArray(d)||(d=[]),o(d.map((function(e,t){var n=f.keys[t];return void 0===n&&(f.keys[t]=f.id,n=f.keys[t],f.id+=1),{name:t,key:n,isListField:!0}})),l,t)}))))};var Ee=n(9439);var we="__@field_split__";function _e(e){return e.map((function(e){return"".concat((0,se.Z)(e),":").concat(e)})).join(we)}var Ce=function(){function e(){(0,u.Z)(this,e),(0,g.Z)(this,"kvs",new Map)}return(0,d.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(_e(e),t)}},{key:"get",value:function(e){return this.kvs.get(_e(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(_e(e))}},{key:"map",value:function(e){return(0,c.Z)(this.kvs.entries()).map((function(t){var n=(0,Ee.Z)(t,2),r=n[0],o=n[1],i=r.split(we);return e({key:i.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,Ee.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o})),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}();const xe=Ce;var Oe=["name"],Te=(0,d.Z)((function e(t){var n=this;(0,u.Z)(this,e),(0,g.Z)(this,"formHooked",!1),(0,g.Z)(this,"forceRootUpdate",void 0),(0,g.Z)(this,"subscribable",!0),(0,g.Z)(this,"store",{}),(0,g.Z)(this,"fieldEntities",[]),(0,g.Z)(this,"initialValues",{}),(0,g.Z)(this,"callbacks",{}),(0,g.Z)(this,"validateMessages",null),(0,g.Z)(this,"preserve",null),(0,g.Z)(this,"lastValidatePromise",null),(0,g.Z)(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}})),(0,g.Z)(this,"getInternalHooks",(function(e){return e===y?(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}):((0,b.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),(0,g.Z)(this,"useSubscribe",(function(e){n.subscribable=e})),(0,g.Z)(this,"prevWithoutPreserves",null),(0,g.Z)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=(0,Q.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=(0,Q.Z)(o,n,(0,le.Z)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),(0,g.Z)(this,"destroyForm",(function(){var e=new xe;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),(0,g.Z)(this,"getInitialValue",(function(e){var t=(0,le.Z)(n.initialValues,e);return e.length?(0,Q.T)(t):t})),(0,g.Z)(this,"setCallbacks",(function(e){n.callbacks=e})),(0,g.Z)(this,"setValidateMessages",(function(e){n.validateMessages=e})),(0,g.Z)(this,"setPreserve",(function(e){n.preserve=e})),(0,g.Z)(this,"watchList",[]),(0,g.Z)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),(0,g.Z)(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)}))}})),(0,g.Z)(this,"timeoutId",null),(0,g.Z)(this,"warningUnhooked",(function(){0})),(0,g.Z)(this,"updateStore",(function(e){n.store=e})),(0,g.Z)(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),(0,g.Z)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new xe;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),(0,g.Z)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ce(e);return t.get(n)||{INVALIDATE_NAME_PATH:ce(e)}}))})),(0,g.Z)(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,se.Z)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))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)&&s.push(c)}else s.push(c)})),ue(n.store,s.map(ce))})),(0,g.Z)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=ce(e);return(0,le.Z)(n.store,t)})),(0,g.Z)(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:ce(e[n]),errors:[],warnings:[]}}))})),(0,g.Z)(this,"getFieldError",(function(e){n.warningUnhooked();var t=ce(e);return n.getFieldsError([t])[0].errors})),(0,g.Z)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=ce(e);return n.getFieldsError([t])[0].warnings})),(0,g.Z)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new xe,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,(0,c.Z)((0,c.Z)(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))(0,b.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)(0,b.ZP)(!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);r.isListField()||e.skipExist&&void 0!==a||n.updateStore((0,Q.Z)(n.store,o,(0,c.Z)(i)[0].value))}}}}))})),(0,g.Z)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,Q.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(ce);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore((0,Q.Z)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),(0,g.Z)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=(0,i.Z)(e,Oe),s=ce(o);r.push(s),"value"in a&&n.updateStore((0,Q.Z)(n.store,s,a.value)),n.notifyObservers(t,[s],{type:"setField",data:e})})),n.notifyWatch(r)})),(0,g.Z)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,l.Z)((0,l.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),(0,g.Z)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,le.Z)(n.store,r)&&n.updateStore((0,Q.Z)(n.store,r,t))}})),(0,g.Z)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),(0,g.Z)(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!fe(e.getNamePath(),t)}))){var s=n.store;n.updateStore((0,Q.Z)(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),(0,g.Z)(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})}})),(0,g.Z)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=(0,l.Z)((0,l.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),(0,g.Z)(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((0,c.Z)(r))}),r})),(0,g.Z)(this,"updateValue",(function(e,t){var r=ce(e),o=n.store;n.updateStore((0,Q.Z)(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(ue(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,c.Z)(i)))})),(0,g.Z)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,Q.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),(0,g.Z)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),(0,g.Z)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new xe;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ce(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return 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})),(0,g.Z)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new xe;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 de(e,n)}));a.length&&r(a,o)}})),(0,g.Z)(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(ce):[],s=[],u=String(Date.now()),d=new Set,f=o||{},p=f.recursive,h=f.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!h||e.isFieldDirty())){var t=e.getNamePath();if(d.add(t.join(u)),!i||de(a,t,p)){var r=e.validateRules((0,l.Z)({validateMessages:(0,l.Z)((0,l.Z)({},K),n.validateMessages)},o));s.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,(0,c.Z)(n)):r.push.apply(r,(0,c.Z)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var g=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([])}(s);n.lastValidatePromise=g,g.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=g.then((function(){return n.lastValidatePromise===g?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!==g})}));m.catch((function(e){return e}));var v=a.filter((function(e){return d.has(e.join(u))}));return n.triggerOnFieldsChange(v),m})),(0,g.Z)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const ke=function(e){var t=r.useRef(),n=r.useState({}),o=(0,Ee.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var i=new Te((function(){o({})}));t.current=i.getForm()}return[t.current]};var Re=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const Ne=Re;var Ae=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const Le=function(e,t){var n=e.name,a=e.initialValues,s=e.fields,u=e.form,d=e.preserve,f=e.children,p=e.component,h=void 0===p?"form":p,g=e.validateMessages,m=e.validateTrigger,v=void 0===m?"onChange":m,b=e.onValuesChange,S=e.onFieldsChange,_=e.onFinish,C=e.onFinishFailed,x=(0,i.Z)(e,Ae),O=r.useContext(Ne),T=ke(u),k=(0,Ee.Z)(T,1)[0],R=k.getInternalHooks(y),N=R.useSubscribe,A=R.setInitialValues,L=R.setCallbacks,P=R.setValidateMessages,M=R.setPreserve,$=R.destroyForm;r.useImperativeHandle(t,(function(){return k})),r.useEffect((function(){return O.registerForm(n,k),function(){O.unregisterForm(n)}}),[O,k,n]),P((0,l.Z)((0,l.Z)({},O.validateMessages),g)),L({onValuesChange:b,onFieldsChange:function(e){if(O.triggerFormChange(n,e),S){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{let{children:t,status:n,override:o}=e;const i=(0,r.useContext)(De),a=(0,r.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return r.createElement(De.Provider,{value:a},t)},Ze=(0,r.createContext)(void 0)},6413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294),o=n(8410);var i=n(4443);const a=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useRef)({}),n=function(){const[,e]=r.useReducer((e=>e+1),0);return e}(),a=(0,i.ZP)();return(0,o.Z)((()=>{const r=a.subscribe((r=>{t.current=r,e&&n()}));return()=>a.unsubscribe(r)}),[]),t.current}},1830:(e,t,n)=>{"use strict";n.d(t,{Z:()=>je});var r=n(7294),o=n(7462);const i={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 a=n(76),s=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};const l=r.forwardRef(s);var c=n(3967),u=n.n(c),d=n(1413),f=n(4942),p=n(9439),h=n(1002),g=n(4925);function m(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var v=n(1770),b=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],y=r.createContext(null),S=0;function E(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,i=(0,r.useState)(n?"loading":"normal"),a=(0,p.Z)(i,2),s=a[0],l=a[1],c=(0,r.useRef)(!1),u="error"===s;(0,r.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&&l("error")})),function(){e=!1}}),[t]),(0,r.useEffect)((function(){n&&!c.current?l("loading"):u&&l("normal")}),[t]);var d=function(){l("normal")};return[function(e){c.current=!1,"loading"===s&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,d())},u&&o?{src:o}:{onLoad:d,src:t},s]}var w=n(3037),_=n(3935);function C(e,t,n,r){var o=_.unstable_batchedUpdates?function(e){_.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 x=n(5105),O=n(1881),T=n(5164),k={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};var R=n(334);function N(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,f.Z)({},e,i);if(t<0&&or)return(0,f.Z)({},e,t<0?i:-i);return{}}function A(e,t,n,r){var o=m(),i=o.width,a=o.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=(0,d.Z)((0,d.Z)({},N("x",n,e,i)),N("y",r,t,a))),s}function L(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function P(e,t,n,o,i,a,s){var l=i.rotate,c=i.scale,u=i.x,f=i.y,h=(0,r.useState)(!1),g=(0,p.Z)(h,2),m=g[0],v=g[1],b=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(e){b.current=(0,d.Z)((0,d.Z)({},b.current),e)};return(0,r.useEffect)((function(){var e;return n&&t&&(e=C(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:m,onTouchStart:function(e){if(t){e.stopPropagation(),v(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?y({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):y({point1:{x:r[0].clientX-u,y:r[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=b.current,o=r.point1,i=r.point2,l=r.eventType;if(n.length>1&&"touchZoom"===l){var c={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=L(e,n),i=L(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,i,c,u),f=(0,p.Z)(d,2),h=f[0],g=f[1],m=L(c,u)/L(o,i);s(m,"touchZoom",h,g,!0),y({point1:c,point2:u,eventType:"touchZoom"})}else"move"===l&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),y({eventType:"move"}))},onTouchEnd:function(){if(n){if(m&&v(!1),y({eventType:"none"}),o>c)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*c,r=e.current.offsetHeight*c,i=e.current.getBoundingClientRect(),s=i.left,u=i.top,f=l%180!=0,p=A(f?r:t,f?t:r,s,u);p&&a((0,d.Z)({},p),"dragRebound")}}}}var M=n(8705),$=n(5461);const I=function(e){var t=e.visible,n=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,s=e.icons,l=e.countRender,c=e.showSwitch,p=e.showProgress,h=e.current,g=e.transform,m=e.count,v=e.scale,b=e.minScale,S=e.maxScale,E=e.closeIcon,w=e.onSwitchLeft,_=e.onSwitchRight,C=e.onClose,O=e.onZoomIn,T=e.onZoomOut,k=e.onRotateRight,R=e.onRotateLeft,N=e.onFlipX,A=e.onFlipY,L=e.toolbarRender,P=e.zIndex,I=(0,r.useContext)(y),D=s.rotateLeft,j=s.rotateRight,Z=s.zoomIn,z=s.zoomOut,B=s.close,F=s.left,H=s.right,U=s.flipX,W=s.flipY,V="".concat(i,"-operations-operation");r.useEffect((function(){var e=function(e){e.keyCode===x.Z.ESC&&C()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var X=[{icon:W,onClick:A,type:"flipY"},{icon:U,onClick:N,type:"flipX"},{icon:D,onClick:R,type:"rotateLeft"},{icon:j,onClick:k,type:"rotateRight"},{icon:z,onClick:T,type:"zoomOut",disabled:v<=b},{icon:Z,onClick:O,type:"zoomIn",disabled:v===S}].map((function(e){var t,n=e.icon,o=e.onClick,a=e.type,s=e.disabled;return r.createElement("div",{className:u()(V,(t={},(0,f.Z)(t,"".concat(i,"-operations-operation-").concat(a),!0),(0,f.Z)(t,"".concat(i,"-operations-operation-disabled"),!!s),t)),onClick:o,key:a},n)})),q=r.createElement("div",{className:"".concat(i,"-operations")},X);return r.createElement($.ZP,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return r.createElement(M.Z,{open:!0,getContainer:null!=o?o:document.body},r.createElement("div",{className:u()("".concat(i,"-operations-wrapper"),t,a),style:(0,d.Z)((0,d.Z)({},n),{},{zIndex:P})},null===E?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:C},E||B),c&&r.createElement(r.Fragment,null,r.createElement("div",{className:u()("".concat(i,"-switch-left"),(0,f.Z)({},"".concat(i,"-switch-left-disabled"),0===h)),onClick:w},F),r.createElement("div",{className:u()("".concat(i,"-switch-right"),(0,f.Z)({},"".concat(i,"-switch-right-disabled"),h===m-1)),onClick:_},H)),r.createElement("div",{className:"".concat(i,"-footer")},p&&r.createElement("div",{className:"".concat(i,"-progress")},l?l(h+1,m):"".concat(h+1," / ").concat(m)),L?L(q,(0,d.Z)({icons:{flipYIcon:X[0],flipXIcon:X[1],rotateLeftIcon:X[2],rotateRightIcon:X[3],zoomOutIcon:X[4],zoomInIcon:X[5]},actions:{onFlipY:A,onFlipX:N,onRotateLeft:R,onRotateRight:k,onZoomOut:T,onZoomIn:O},transform:g},I?{current:h,total:m}:{})):q)))}))};var D=["fallback","src","imgRef"],j=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Z=function(e){var t=e.fallback,n=e.src,i=e.imgRef,a=(0,g.Z)(e,D),s=E({src:n,fallback:t}),l=(0,p.Z)(s,2),c=l[0],u=l[1];return r.createElement("img",(0,o.Z)({ref:function(e){i.current=e,c(e)}},a,u))};const z=function(e){var t=e.prefixCls,n=e.src,i=e.alt,a=e.fallback,s=e.movable,l=void 0===s||s,c=e.onClose,h=e.visible,v=e.icons,b=void 0===v?{}:v,S=e.rootClassName,E=e.closeIcon,_=e.getContainer,N=e.current,L=void 0===N?0:N,M=e.count,$=void 0===M?1:M,D=e.countRender,z=e.scaleStep,B=void 0===z?.5:z,F=e.minScale,H=void 0===F?1:F,U=e.maxScale,W=void 0===U?50:U,V=e.transitionName,X=void 0===V?"zoom":V,q=e.maskTransitionName,Y=void 0===q?"fade":q,G=e.imageRender,K=e.imgCommonProps,Q=e.toolbarRender,J=e.onTransform,ee=e.onChange,te=(0,g.Z)(e,j),ne=(0,r.useRef)(),re=(0,r.useContext)(y),oe=re&&$>1,ie=re&&$>=1,ae=(0,r.useState)(!0),se=(0,p.Z)(ae,2),le=se[0],ce=se[1],ue=function(e,t,n,o){var i=(0,r.useRef)(null),a=(0,r.useRef)([]),s=(0,r.useState)(k),l=(0,p.Z)(s,2),c=l[0],u=l[1],f=function(e,t){null===i.current&&(a.current=[],i.current=(0,T.Z)((function(){u((function(e){var n=e;return a.current.forEach((function(e){n=(0,d.Z)((0,d.Z)({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push((0,d.Z)((0,d.Z)({},c),e))};return{transform:c,resetTransform:function(e){u(k),o&&!(0,O.Z)(k,c)&&o({transform:k,action:e})},updateTransform:f,dispatchZoomChange:function(r,o,i,a,s){var l=e.current,u=l.width,d=l.height,p=l.offsetWidth,h=l.offsetHeight,g=l.offsetLeft,v=l.offsetTop,b=r,y=c.scale*r;y>n?(y=n,b=n/c.scale):y0&&(r=1/r),s(r,"wheel",e.clientX,e.clientY)}}}}(ne,l,h,B,de,pe,he),me=ge.isMoving,ve=ge.onMouseDown,be=ge.onWheel,ye=P(ne,l,h,H,de,pe,he),Se=ye.isTouching,Ee=ye.onTouchStart,we=ye.onTouchMove,_e=ye.onTouchEnd,Ce=de.rotate,xe=de.scale,Oe=u()((0,f.Z)({},"".concat(t,"-moving"),me));(0,r.useEffect)((function(){le||ce(!0)}),[le]);var Te=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),L>0&&(ce(!1),fe("prev"),null==ee||ee(L-1,L))},ke=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),L<$-1&&(ce(!1),fe("next"),null==ee||ee(L+1,L))},Re=function(e){h&&oe&&(e.keyCode===x.Z.LEFT?Te():e.keyCode===x.Z.RIGHT&&ke())};(0,r.useEffect)((function(){var e=C(window,"keydown",Re,!1);return function(){e.remove()}}),[h,oe,L]);var Ne=r.createElement(Z,(0,o.Z)({},K,{width:e.width,height:e.height,imgRef:ne,className:"".concat(t,"-img"),alt:i,style:{transform:"translate3d(".concat(de.x,"px, ").concat(de.y,"px, 0) scale3d(").concat(de.flipX?"-":"").concat(xe,", ").concat(de.flipY?"-":"").concat(xe,", 1) rotate(").concat(Ce,"deg)"),transitionDuration:(!le||Se)&&"0s"},fallback:a,src:n,onWheel:be,onMouseDown:ve,onDoubleClick:function(e){h&&(1!==xe?pe({x:0,y:0,scale:1},"doubleClick"):he(1+B,"doubleClick",e.clientX,e.clientY))},onTouchStart:Ee,onTouchMove:we,onTouchEnd:_e,onTouchCancel:_e}));return r.createElement(r.Fragment,null,r.createElement(w.Z,(0,o.Z)({transitionName:X,maskTransitionName:Y,closable:!1,keyboard:!0,prefixCls:t,onClose:c,visible:h,classNames:{wrapper:Oe},rootClassName:S,getContainer:_},te,{afterClose:function(){fe("close")}}),r.createElement("div",{className:"".concat(t,"-img-wrapper")},G?G(Ne,(0,d.Z)({transform:de},re?{current:L}:{})):Ne)),r.createElement(I,{visible:h,transform:de,maskTransitionName:Y,closeIcon:E,getContainer:_,prefixCls:t,rootClassName:S,icons:b,countRender:D,showSwitch:oe,showProgress:ie,current:L,count:$,scale:xe,minScale:H,maxScale:W,toolbarRender:Q,onSwitchLeft:Te,onSwitchRight:ke,onZoomIn:function(){he(1+B,"zoomIn")},onZoomOut:function(){he(1/(1+B),"zoomOut")},onRotateRight:function(){pe({rotate:Ce+90},"rotateRight")},onRotateLeft:function(){pe({rotate:Ce-90},"rotateLeft")},onFlipX:function(){pe({flipX:!de.flipX},"flipX")},onFlipY:function(){pe({flipY:!de.flipY},"flipY")},onClose:c,zIndex:void 0!==te.zIndex?te.zIndex+1:void 0}))};var B=n(3433);var F=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],H=["src"];const U=function(e){var t,n=e.previewPrefixCls,i=void 0===n?"rc-image-preview":n,a=e.children,s=e.icons,l=void 0===s?{}:s,c=e.items,u=e.preview,m=e.fallback,S="object"===(0,h.Z)(u)?u:{},E=S.visible,w=S.onVisibleChange,_=S.getContainer,C=S.current,x=S.movable,O=S.minScale,T=S.maxScale,k=S.countRender,R=S.closeIcon,N=S.onChange,A=S.onTransform,L=S.toolbarRender,P=S.imageRender,M=(0,g.Z)(S,F),$=function(e){var t=r.useState({}),n=(0,p.Z)(t,2),o=n[0],i=n[1],a=r.useCallback((function(e,t){return i((function(n){return(0,d.Z)((0,d.Z)({},n),{},(0,f.Z)({},e,t))})),function(){i((function(t){var n=(0,d.Z)({},t);return delete n[e],n}))}}),[]);return[r.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((0,B.Z)(b)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(o).reduce((function(e,t){var n=o[t],r=n.canPreview,i=n.data;return r&&e.push({data:i,id:t}),e}),[])}),[e,o]),a]}(c),I=(0,p.Z)($,2),D=I[0],j=I[1],Z=(0,v.Z)(0,{value:C}),U=(0,p.Z)(Z,2),W=U[0],V=U[1],X=(0,r.useState)(!1),q=(0,p.Z)(X,2),Y=q[0],G=q[1],K=(null===(t=D[W])||void 0===t?void 0:t.data)||{},Q=K.src,J=(0,g.Z)(K,H),ee=(0,v.Z)(!!E,{value:E,onChange:function(e,t){null==w||w(e,t,W)}}),te=(0,p.Z)(ee,2),ne=te[0],re=te[1],oe=(0,r.useState)(null),ie=(0,p.Z)(oe,2),ae=ie[0],se=ie[1],le=r.useCallback((function(e,t,n){var r=D.findIndex((function(t){return t.id===e}));re(!0),se({x:t,y:n}),V(r<0?0:r),G(!0)}),[D]);r.useEffect((function(){ne?Y||V(0):G(!1)}),[ne]);var ce=r.useMemo((function(){return{register:j,onPreview:le}}),[j,le]);return r.createElement(y.Provider,{value:ce},a,r.createElement(z,(0,o.Z)({"aria-hidden":!ne,movable:x,visible:ne,prefixCls:i,closeIcon:R,onClose:function(){re(!1),se(null)},mousePosition:ae,imgCommonProps:J,src:Q,fallback:m,icons:l,minScale:O,maxScale:T,getContainer:_,current:W,count:D.length,countRender:k,onTransform:A,toolbarRender:L,imageRender:P,onChange:function(e,t){V(e),null==N||N(e,t)}},M)))};var W=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],V=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],X=function(e){var t=e.src,n=e.alt,i=e.onPreviewClose,a=e.prefixCls,s=void 0===a?"rc-image":a,l=e.previewPrefixCls,c=void 0===l?"".concat(s,"-preview"):l,m=e.placeholder,w=e.fallback,_=e.width,C=e.height,x=e.style,O=e.preview,T=void 0===O||O,k=e.className,R=e.onClick,N=e.onError,A=e.wrapperClassName,L=e.wrapperStyle,P=e.rootClassName,M=(0,g.Z)(e,W),$=m&&!0!==m,I="object"===(0,h.Z)(T)?T:{},D=I.src,j=I.visible,Z=void 0===j?void 0:j,B=I.onVisibleChange,F=void 0===B?i:B,H=I.getContainer,U=void 0===H?void 0:H,X=I.mask,q=I.maskClassName,Y=I.movable,G=I.icons,K=I.scaleStep,Q=I.minScale,J=I.maxScale,ee=I.imageRender,te=I.toolbarRender,ne=(0,g.Z)(I,V),re=null!=D?D:t,oe=(0,v.Z)(!!Z,{value:Z,onChange:F}),ie=(0,p.Z)(oe,2),ae=ie[0],se=ie[1],le=E({src:t,isCustomPlaceholder:$,fallback:w}),ce=(0,p.Z)(le,3),ue=ce[0],de=ce[1],fe=ce[2],pe=(0,r.useState)(null),he=(0,p.Z)(pe,2),ge=he[0],me=he[1],ve=(0,r.useContext)(y),be=!!T,ye=u()(s,A,P,(0,f.Z)({},"".concat(s,"-error"),"error"===fe)),Se=(0,r.useMemo)((function(){var t={};return b.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),b.map((function(t){return e[t]}))),Ee=function(e,t){var n=r.useState((function(){return String(S+=1)})),o=(0,p.Z)(n,1)[0],i=r.useContext(y),a={data:t,canPreview:e};return r.useEffect((function(){if(i)return i.register(o,a)}),[]),r.useEffect((function(){i&&i.register(o,a)}),[e,t]),o}(be,(0,r.useMemo)((function(){return(0,d.Z)((0,d.Z)({},Se),{},{src:re})}),[re,Se]));return r.createElement(r.Fragment,null,r.createElement("div",(0,o.Z)({},M,{className:ye,onClick:be?function(e){var t,n,r,o=(t=e.target,n=t.getBoundingClientRect(),r=document.documentElement,{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}),i=o.left,a=o.top;ve?ve.onPreview(Ee,i,a):(me({x:i,y:a}),se(!0)),null==R||R(e)}:R,style:(0,d.Z)({width:_,height:C},L)}),r.createElement("img",(0,o.Z)({},Se,{className:u()("".concat(s,"-img"),(0,f.Z)({},"".concat(s,"-img-placeholder"),!0===m),k),style:(0,d.Z)({height:C},x),ref:ue},de,{width:_,height:C,onError:N})),"loading"===fe&&r.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},m),X&&be&&r.createElement("div",{className:u()("".concat(s,"-mask"),q),style:{display:"none"===(null==x?void 0:x.display)?"none":void 0}},X)),!ve&&be&&r.createElement(z,(0,o.Z)({"aria-hidden":!ae,visible:ae,prefixCls:c,onClose:function(){se(!1),me(null)},mousePosition:ge,src:re,alt:n,fallback:w,getContainer:U,icons:G,movable:Y,scaleStep:K,minScale:Q,maxScale:J,rootClassName:P,imageRender:ee,imgCommonProps:Se,toolbarRender:te},ne)))};X.PreviewGroup=U,X.displayName="Image";const q=X;var Y=n(7263),G=n(3603),K=n(3124),Q=n(9375),J=n(4549),ee=n(7724),te=n(8812);const ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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 re=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:ne}))};const oe=r.forwardRef(re);const ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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 ae=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:ie}))};const se=r.forwardRef(ae);const le={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 ce=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:le}))};const ue=r.forwardRef(ce);const de={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 fe=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:de}))};const pe=r.forwardRef(fe);const he={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 ge=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:he}))};const me=r.forwardRef(ge);var ve=n(5792),be=n(7395),ye=n(274),Se=n(1194),Ee=n(4747),we=n(438),_e=n(6932),Ce=n(1939),xe=n(5503);const Oe=e=>({position:e||"absolute",inset:0}),Te=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 ye.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ee.vS),{padding:`0 ${(0,be.bf)(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},ke=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new ye.C(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 ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,be.bf)(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Re=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,s=new ye.C(t).setAlpha(.1),l=s.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:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.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}}},Ne=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({},Oe()),{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({},Oe()),{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})},"&":[ke(e),Re(e)]}]},Ae=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({},Te(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Oe())}}},Le=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,we._y)(e,"zoom"),"&":(0,_e.J$)(e,!0)}},Pe=(0,Ce.I$)("Image",(e=>{const t=`${e.componentCls}-preview`,n=(0,xe.TS)(e,{previewCls:t,modalMaskBg:new ye.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Ae(n),Ne(n),(0,Se.QA)((0,xe.TS)(n,{componentCls:t})),Le(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ye.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ye.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ye.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));var Me=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{const{prefixCls:t,preview:n,className:o,rootClassName:i,style:a}=e,s=Ie(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:d=Q.Z,getPopupContainer:f,image:p}=r.useContext(K.E_),h=c("image",t),g=c(),m=d.Image||Q.Z.Image,v=(0,ve.Z)(h),[b,y,S]=Pe(h,v),E=u()(i,y,S,v),w=u()(o,y,null==p?void 0:p.className),[_]=(0,Y.Cn)("ImagePreview","object"==typeof n?n.zIndex:void 0),C=r.useMemo((()=>{if(!1===n)return n;const e="object"==typeof n?n:{},{getContainer:t}=e,o=Ie(e,["getContainer"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${h}-mask-info`},r.createElement(l,null),null==m?void 0:m.preview),icons:$e},o),{getContainer:null!=t?t:f,transitionName:(0,G.m)(g,"zoom",e.transitionName),maskTransitionName:(0,G.m)(g,"fade",e.maskTransitionName),zIndex:_})}),[n,m]),x=Object.assign(Object.assign({},null==p?void 0:p.style),a);return b(r.createElement(q,Object.assign({prefixCls:h,preview:C,rootClassName:E,className:w,style:x},s)))};De.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,o=Me(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=r.useContext(K.E_),a=i("image",t),s=`${a}-preview`,l=i(),c=(0,ve.Z)(a),[d,f,p]=Pe(a,c),[h]=(0,Y.Cn)("ImagePreview","object"==typeof n?n.zIndex:void 0),g=r.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=u()(f,p,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,G.m)(l,"zoom",t.transitionName),maskTransitionName:(0,G.m)(l,"fade",t.maskTransitionName),rootClassName:r,zIndex:h})}),[n]);return d(r.createElement(q.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:$e},o)))};const je=De},6745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(7294).createContext)(void 0)},9375:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(2906);const o={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"},i={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},a={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"]},o),timePickerLocale:Object.assign({},i)},s=a,l="${label} is not a valid ${type}",c={locale:"en",Pagination:r.Z,DatePicker:a,TimePicker:i,Calendar:s,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:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},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"}}},110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294),o=n(6745),i=n(9375);const a=(e,t)=>{const n=r.useContext(o.Z);return[r.useMemo((()=>{var r;const o=t||i.Z[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})}),[e,t,n]),r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?i.Z.locale:e}),[n])]}},3008:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,f:()=>s});var r=n(9375);let o=Object.assign({},r.Z.Modal),i=[];const a=()=>i.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),r.Z.Modal);function s(e){if(e){const t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter((e=>e!==t)),o=a()}}o=Object.assign({},r.Z.Modal)}function l(){return o}},1194:(e,t,n)=>{"use strict";n.d(t,{B4:()=>p,QA:()=>u,ZP:()=>g,eh:()=>h});var r=n(4747),o=n(6932),i=n(438),a=n(5503),s=n(1939),l=n(7395);function c(e){return{position:e,inset:0}}const u=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({},c("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},c("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:(0,o.J$)(e)}]},d=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:`${(0,l.bf)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,l.bf)(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:`${(0,l.bf)(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},(0,r.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(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"}}}]},f=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,a.TS)(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()})},h=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:`${(0,l.bf)(e.paddingMD)} ${(0,l.bf)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,l.bf)(e.padding)} ${(0,l.bf)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,l.bf)(e.paddingXS)} ${(0,l.bf)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,l.bf)(2*e.padding)} ${(0,l.bf)(2*e.padding)} ${(0,l.bf)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),g=(0,s.I$)("Modal",(e=>{const t=p(e);return[d(t),f(t),u(t),(0,i._y)(t,"zoom")]}),h,{unitless:{titleLineHeight:!0}})},9120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>oo});var r=n(7462),o=n(7294);const i={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 a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s);const c={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 u=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:c}))};const d=o.forwardRef(u);var f=n(7724),p=n(8812),h=n(3967),g=n.n(h),m=n(4942),v=n(1413),b=n(9439),y=n(1770),S=n(5105),E=n(4217),w=n(334);const _={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:"页码"};var C=["10","20","50","100"];const x=function(e){var t=e.pageSizeOptions,n=void 0===t?C:t,r=e.locale,i=e.changeSize,a=e.pageSize,s=e.goButton,l=e.quickGo,c=e.rootPrefixCls,u=e.selectComponentClass,d=e.selectPrefixCls,f=e.disabled,p=e.buildOptionText,h=o.useState(""),g=(0,b.Z)(h,2),m=g[0],v=g[1],y=function(){return!m||Number.isNaN(m)?void 0:Number(m)},E="function"==typeof p?p:function(e){return"".concat(e," ").concat(r.items_per_page)},w=function(e){""!==m&&(e.keyCode!==S.Z.ENTER&&"click"!==e.type||(v(""),null==l||l(y())))},_="".concat(c,"-options");if(!i&&!l)return null;var x=null,O=null,T=null;if(i&&u){var k=(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a.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 o.createElement(u.Option,{key:t,value:e.toString()},E(e))}));x=o.createElement(u,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(_,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||n[0]).toString(),onChange:function(e){null==i||i(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},k)}return l&&(s&&(T="boolean"==typeof s?o.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:f,className:"".concat(_,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:w,onKeyUp:w},s)),O=o.createElement("div",{className:"".concat(_,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:f,type:"text",value:m,onChange:function(e){v(e.target.value)},onKeyUp:w,onBlur:function(e){s||""===m||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(y()))},"aria-label":r.page}),r.page,T)),o.createElement("li",{className:_},x,O)};const O=function(e){var t,n=e.rootPrefixCls,r=e.page,i=e.active,a=e.className,s=e.showTitle,l=e.onClick,c=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),f=g()(d,"".concat(d,"-").concat(r),(t={},(0,m.Z)(t,"".concat(d,"-active"),i),(0,m.Z)(t,"".concat(d,"-disabled"),!r),t),a),p=u(r,"page",o.createElement("a",{rel:"nofollow"},r));return p?o.createElement("li",{title:s?String(r):null,className:f,onClick:function(){l(r)},onKeyDown:function(e){c(e,l,r)},tabIndex:0},p):null};var T=function(e,t,n){return n};function k(){}function R(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function N(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}const A=function(e){var t,n=e.prefixCls,i=void 0===n?"rc-pagination":n,a=e.selectPrefixCls,s=void 0===a?"rc-select":a,l=e.className,c=e.selectComponentClass,u=e.current,d=e.defaultCurrent,f=void 0===d?1:d,p=e.total,h=void 0===p?0:p,w=e.pageSize,C=e.defaultPageSize,A=void 0===C?10:C,L=e.onChange,P=void 0===L?k:L,M=e.hideOnSinglePage,$=e.showPrevNextJumpers,I=void 0===$||$,D=e.showQuickJumper,j=e.showLessItems,Z=e.showTitle,z=void 0===Z||Z,B=e.onShowSizeChange,F=void 0===B?k:B,H=e.locale,U=void 0===H?_:H,W=e.style,V=e.totalBoundaryShowSizeChanger,X=void 0===V?50:V,q=e.disabled,Y=e.simple,G=e.showTotal,K=e.showSizeChanger,Q=e.pageSizeOptions,J=e.itemRender,ee=void 0===J?T:J,te=e.jumpPrevIcon,ne=e.jumpNextIcon,re=e.prevIcon,oe=e.nextIcon,ie=o.useRef(null),ae=(0,y.Z)(10,{value:w,defaultValue:A}),se=(0,b.Z)(ae,2),le=se[0],ce=se[1],ue=(0,y.Z)(1,{value:u,defaultValue:f,postState:function(e){return Math.max(1,Math.min(e,N(void 0,le,h)))}}),de=(0,b.Z)(ue,2),fe=de[0],pe=de[1],he=o.useState(fe),ge=(0,b.Z)(he,2),me=ge[0],ve=ge[1];(0,o.useEffect)((function(){ve(fe)}),[fe]);var be=Math.max(1,fe-(j?3:5)),ye=Math.min(N(void 0,le,h),fe+(j?3:5));function Se(t,n){var r=t||o.createElement("button",{type:"button","aria-label":n,className:"".concat(i,"-item-link")});return"function"==typeof t&&(r=o.createElement(t,(0,v.Z)({},e))),r}function Ee(e){var t=e.target.value,n=N(void 0,le,h);return""===t?t:Number.isNaN(Number(t))?me:t>=n?n:Number(t)}var we=h>le&&D;function _e(e){var t=Ee(e);switch(t!==me&&ve(t),e.keyCode){case S.Z.ENTER:Ce(t);break;case S.Z.UP:Ce(t-1);break;case S.Z.DOWN:Ce(t+1)}}function Ce(e){if(function(e){return R(e)&&e!==fe&&R(h)&&h>0}(e)&&!q){var t=N(void 0,le,h),n=e;return e>t?n=t:e<1&&(n=1),n!==me&&ve(n),pe(n),null==P||P(n,le),n}return fe}var xe=fe>1,Oe=feX;function ke(){xe&&Ce(fe-1)}function Re(){Oe&&Ce(fe+1)}function Ne(){Ce(be)}function Ae(){Ce(ye)}function Le(e,t){if("Enter"===e.key||e.charCode===S.Z.ENTER||e.keyCode===S.Z.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;oh?h:fe*le])),De=null,je=N(void 0,le,h);if(M&&h<=le)return null;var Ze=[],ze={rootPrefixCls:i,onClick:Ce,onKeyPress:Le,showTitle:z,itemRender:ee,page:-1},Be=fe-1>0?fe-1:0,Fe=fe+1=2*Ve&&3!==fe&&(Ze[0]=o.cloneElement(Ze[0],{className:g()("".concat(i,"-item-after-jump-prev"),Ze[0].props.className)}),Ze.unshift(Me)),je-fe>=2*Ve&&fe!==je-2){var tt=Ze[Ze.length-1];Ze[Ze.length-1]=o.cloneElement(tt,{className:g()("".concat(i,"-item-before-jump-next"),tt.props.className)}),Ze.push(De)}1!==Qe&&Ze.unshift(o.createElement(O,(0,r.Z)({},ze,{key:1,page:1}))),Je!==je&&Ze.push(o.createElement(O,(0,r.Z)({},ze,{key:je,page:je})))}var nt=function(e){var t=ee(e,"prev",Se(re,"prev page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!xe}):t}(Be);if(nt){var rt=!xe||!je;nt=o.createElement("li",{title:z?U.prev_page:null,onClick:ke,tabIndex:rt?null:0,onKeyDown:function(e){Le(e,ke)},className:g()("".concat(i,"-prev"),(0,m.Z)({},"".concat(i,"-disabled"),rt)),"aria-disabled":rt},nt)}var ot,it,at=function(e){var t=ee(e,"next",Se(oe,"next page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!Oe}):t}(Fe);at&&(Y?(ot=!Oe,it=xe?0:null):it=(ot=!Oe||!je)?null:0,at=o.createElement("li",{title:z?U.next_page:null,onClick:Re,tabIndex:it,onKeyDown:function(e){Le(e,Re)},className:g()("".concat(i,"-next"),(0,m.Z)({},"".concat(i,"-disabled"),ot)),"aria-disabled":ot},at));var st=g()(i,l,(t={},(0,m.Z)(t,"".concat(i,"-simple"),Y),(0,m.Z)(t,"".concat(i,"-disabled"),q),t));return o.createElement("ul",(0,r.Z)({className:st,style:W,ref:ie},$e),Ie,nt,Y?We:Ze,at,o.createElement(x,{locale:U,rootPrefixCls:i,disabled:q,selectComponentClass:c,selectPrefixCls:s,changeSize:Te?function(e){var t=N(e,le,h),n=fe>t&&0!==t?t:fe;ce(e),ve(n),null==F||F(fe,e),pe(n),null==P||P(n,e)}:null,pageSize:le,pageSizeOptions:Q,quickGo:we?Ce:null,goButton:Ue}))};var L=n(2906),P=n(3124),M=n(8675),$=n(6413),I=n(110),D=n(3433),j=n(4925),Z=n(1002),z=n(8410),B=n(1131),F=n(2550);const H=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,a=e.onMouseDown,s=e.onClick,l="function"==typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==l?l:o.createElement("span",{className:g()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var U=o.createContext(null);function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.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 V=n(5375),X=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],q=void 0;function Y(e,t){var n=e.prefixCls,i=e.invalidate,a=e.item,s=e.renderItem,l=e.responsive,c=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,f=e.className,p=e.style,h=e.children,m=e.display,b=e.order,y=e.component,S=void 0===y?"div":y,E=(0,j.Z)(e,X),w=l&&!m;function _(e){u(d,e)}o.useEffect((function(){return function(){_(null)}}),[]);var C,x=s&&a!==q?s(a):h;i||(C={opacity:w?0:1,height:w?0:q,overflowY:w?"hidden":q,order:l?b:q,pointerEvents:w?"none":q,position:w?"absolute":q});var O={};w&&(O["aria-hidden"]=!0);var T=o.createElement(S,(0,r.Z)({className:g()(!i&&n,f),style:(0,v.Z)((0,v.Z)({},C),p)},O,E,{ref:t}),x);return l&&(T=o.createElement(V.Z,{onResize:function(e){_(e.offsetWidth)},disabled:c},T)),T}var G=o.forwardRef(Y);G.displayName="Item";const K=G;var Q=n(6680),J=n(3935),ee=n(5164);function te(){var e=o.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,ee.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,J.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function ne(e,t){var n=o.useState(t),r=(0,b.Z)(n,2),i=r[0],a=r[1];return[i,(0,Q.Z)((function(t){e((function(){a(t)}))}))]}var re=o.createContext(null),oe=["component"],ie=["className"],ae=["className"],se=function(e,t){var n=o.useContext(re);if(!n){var i=e.component,a=void 0===i?"div":i,s=(0,j.Z)(e,oe);return o.createElement(a,(0,r.Z)({},s,{ref:t}))}var l=n.className,c=(0,j.Z)(n,ie),u=e.className,d=(0,j.Z)(e,ae);return o.createElement(re.Provider,{value:null},o.createElement(K,(0,r.Z)({ref:t,className:g()(l,u)},c,d)))},le=o.forwardRef(se);le.displayName="RawItem";const ce=le;var ue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],de="responsive",fe="invalidate";function pe(e){return"+ ".concat(e.length," ...")}function he(e,t){var n=e.prefixCls,i=void 0===n?"rc-overflow":n,a=e.data,s=void 0===a?[]:a,l=e.renderItem,c=e.renderRawItem,u=e.itemKey,d=e.itemWidth,f=void 0===d?10:d,p=e.ssr,h=e.style,m=e.className,y=e.maxCount,S=e.renderRest,E=e.renderRawRest,w=e.suffix,_=e.component,C=void 0===_?"div":_,x=e.itemComponent,O=e.onVisibleChange,T=(0,j.Z)(e,ue),k="full"===p,R=te(),N=ne(R,null),A=(0,b.Z)(N,2),L=A[0],P=A[1],M=L||0,$=ne(R,new Map),I=(0,b.Z)($,2),D=I[0],Z=I[1],B=ne(R,0),F=(0,b.Z)(B,2),H=F[0],U=F[1],W=ne(R,0),X=(0,b.Z)(W,2),q=X[0],Y=X[1],G=ne(R,0),Q=(0,b.Z)(G,2),J=Q[0],ee=Q[1],oe=(0,o.useState)(null),ie=(0,b.Z)(oe,2),ae=ie[0],se=ie[1],le=(0,o.useState)(null),ce=(0,b.Z)(le,2),he=ce[0],ge=ce[1],me=o.useMemo((function(){return null===he&&k?Number.MAX_SAFE_INTEGER:he||0}),[he,L]),ve=(0,o.useState)(!1),be=(0,b.Z)(ve,2),ye=be[0],Se=be[1],Ee="".concat(i,"-item"),we=Math.max(H,q),_e=y===de,Ce=s.length&&_e,xe=y===fe,Oe=Ce||"number"==typeof y&&s.length>y,Te=(0,o.useMemo)((function(){var e=s;return Ce?e=null===L&&k?s:s.slice(0,Math.min(s.length,M/f)):"number"==typeof y&&(e=s.slice(0,y)),e}),[s,f,L,y,Ce]),ke=(0,o.useMemo)((function(){return Ce?s.slice(me+1):s.slice(Te.length)}),[s,Te,Ce,me]),Re=(0,o.useCallback)((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),Ne=(0,o.useCallback)(l||function(e){return e},[l]);function Ae(e,t,n){(he!==e||void 0!==t&&t!==ae)&&(ge(e),n||(Se(eM){Ae(r-1,e-o-J+q);break}}w&&Pe(0)+J>M&&se(null)}}),[M,D,q,J,Re,Te]);var Me=ye&&!!ke.length,$e={};null!==ae&&Ce&&($e={position:"absolute",left:ae,top:0});var Ie,De={prefixCls:Ee,responsive:Ce,component:x,invalidate:xe},je=c?function(e,t){var n=Re(e,t);return o.createElement(re.Provider,{key:n,value:(0,v.Z)((0,v.Z)({},De),{},{order:t,item:e,itemKey:n,registerSize:Le,display:t<=me})},c(e,t))}:function(e,t){var n=Re(e,t);return o.createElement(K,(0,r.Z)({},De,{order:t,key:n,item:e,renderItem:Ne,itemKey:n,registerSize:Le,display:t<=me}))},Ze={order:Me?me:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:function(e,t){Y(t),U(q)},display:Me};if(E)E&&(Ie=o.createElement(re.Provider,{value:(0,v.Z)((0,v.Z)({},De),Ze)},E(ke)));else{var ze=S||pe;Ie=o.createElement(K,(0,r.Z)({},De,Ze),"function"==typeof ze?ze(ke):ze)}var Be=o.createElement(C,(0,r.Z)({className:g()(!xe&&i,m),style:h,ref:t},T),Te.map(je),Oe?Ie:null,w&&o.createElement(K,(0,r.Z)({},De,{responsive:_e,responsiveDisabled:!Ce,order:me,className:"".concat(Ee,"-suffix"),registerSize:function(e,t){ee(t)},display:!0,style:$e}),w));return _e&&(Be=o.createElement(V.Z,{onResize:function(e,t){P(t.clientWidth)},disabled:!Ce},Be)),Be}var ge=o.forwardRef(he);ge.displayName="Overflow",ge.Item=ce,ge.RESPONSIVE=de,ge.INVALIDATE=fe;const me=ge;var ve=function(e,t){var n,r=e.prefixCls,i=e.id,a=e.inputElement,s=e.disabled,l=e.tabIndex,c=e.autoFocus,u=e.autoComplete,d=e.editable,f=e.activeDescendantId,p=e.value,h=e.maxLength,m=e.onKeyDown,b=e.onMouseDown,y=e.onChange,S=e.onPaste,E=e.onCompositionStart,_=e.onCompositionEnd,C=e.open,x=e.attrs,O=a||o.createElement("input",null),T=O,k=T.ref,R=T.props,N=R.onKeyDown,A=R.onChange,L=R.onMouseDown,P=R.onCompositionStart,M=R.onCompositionEnd,$=R.style;return(0,w.Kp)(!("maxLength"in O.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),O=o.cloneElement(O,(0,v.Z)((0,v.Z)((0,v.Z)({type:"search"},R),{},{id:i,ref:(0,F.sQ)(t,k),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:g()("".concat(r,"-selection-search-input"),null===(n=O)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":C?f:void 0},x),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:(0,v.Z)((0,v.Z)({},$),{},{opacity:d?null:0}),onKeyDown:function(e){m(e),N&&N(e)},onMouseDown:function(e){b(e),L&&L(e)},onChange:function(e){y(e),A&&A(e)},onCompositionStart:function(e){E(e),P&&P(e)},onCompositionEnd:function(e){_(e),M&&M(e)},onPaste:S}))};const be=o.forwardRef(ve);function ye(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Se="undefined"!=typeof window&&window.document&&window.document.documentElement;function Ee(e){return["string","number"].includes((0,Z.Z)(e))}function we(e){var t=void 0;return e&&(Ee(e.title)?t=e.title.toString():Ee(e.label)&&(t=e.label.toString())),t}function _e(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Ce=function(e){e.preventDefault(),e.stopPropagation()};const xe=function(e){var t,n,r=e.id,i=e.prefixCls,a=e.values,s=e.open,l=e.searchValue,c=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,f=e.disabled,p=e.mode,h=e.showSearch,v=e.autoFocus,y=e.autoComplete,S=e.activeDescendantId,w=e.tabIndex,_=e.removeIcon,C=e.maxTagCount,x=e.maxTagTextLength,O=e.maxTagPlaceholder,T=void 0===O?function(e){return"+ ".concat(e.length," ...")}:O,k=e.tagRender,R=e.onToggleOpen,N=e.onRemove,A=e.onInputChange,L=e.onInputPaste,P=e.onInputKeyDown,M=e.onInputMouseDown,$=e.onInputCompositionStart,I=e.onInputCompositionEnd,D=o.useRef(null),j=(0,o.useState)(0),Z=(0,b.Z)(j,2),z=Z[0],B=Z[1],F=(0,o.useState)(!1),U=(0,b.Z)(F,2),W=U[0],V=U[1],X="".concat(i,"-selection"),q=s||"multiple"===p&&!1===c||"tags"===p?l:"",Y="tags"===p||"multiple"===p&&!1===c||h&&(s||W);t=function(){B(D.current.scrollWidth)},n=[q],Se?o.useLayoutEffect(t,n):o.useEffect(t,n);var G=function(e,t,n,r,i){return o.createElement("span",{title:we(e),className:g()("".concat(X,"-item"),(0,m.Z)({},"".concat(X,"-item-disabled"),n))},o.createElement("span",{className:"".concat(X,"-item-content")},t),r&&o.createElement(H,{className:"".concat(X,"-item-remove"),onMouseDown:Ce,onClick:i,customizeIcon:_},"×"))},K=o.createElement("div",{className:"".concat(X,"-search"),style:{width:z},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},o.createElement(be,{ref:u,open:s,prefixCls:i,id:r,inputElement:null,disabled:f,autoFocus:v,autoComplete:y,editable:Y,activeDescendantId:S,value:q,onKeyDown:P,onMouseDown:M,onChange:A,onPaste:L,onCompositionStart:$,onCompositionEnd:I,tabIndex:w,attrs:(0,E.Z)(e,!0)}),o.createElement("span",{ref:D,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},q," ")),Q=o.createElement(me,{prefixCls:"".concat(X,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,i=!f&&!t,a=n;if("number"==typeof x&&("string"==typeof n||"number"==typeof n)){var l=String(a);l.length>x&&(a="".concat(l.slice(0,x),"..."))}var c=function(t){t&&t.stopPropagation(),N(e)};return"function"==typeof k?function(e,t,n,r,i){return o.createElement("span",{onMouseDown:function(e){Ce(e),R(!s)}},k({label:t,value:e,disabled:n,closable:r,onClose:i}))}(r,a,t,i,c):G(e,a,t,i,c)},renderRest:function(e){var t="function"==typeof T?T(e):T;return G({title:t},t,!1)},suffix:K,itemKey:_e,maxCount:C});return o.createElement(o.Fragment,null,Q,!a.length&&!q&&o.createElement("span",{className:"".concat(X,"-placeholder")},d))};const Oe=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,s=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,h=e.tabIndex,g=e.showSearch,m=e.searchValue,v=e.activeValue,y=e.maxLength,S=e.onInputKeyDown,w=e.onInputMouseDown,_=e.onInputChange,C=e.onInputPaste,x=e.onInputCompositionStart,O=e.onInputCompositionEnd,T=e.title,k=o.useState(!1),R=(0,b.Z)(k,2),N=R[0],A=R[1],L="combobox"===u,P=L||g,M=f[0],$=m||"";L&&v&&!N&&($=v),o.useEffect((function(){L&&A(!1)}),[L,v]);var I=!("combobox"!==u&&!d&&!g)&&!!$,D=void 0===T?we(M):T,j=o.useMemo((function(){return M?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:I?{visibility:"hidden"}:void 0},p)}),[M,I,p,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(be,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:s,autoComplete:l,editable:P,activeDescendantId:c,value:$,onKeyDown:S,onMouseDown:w,onChange:function(e){A(!0),_(e)},onPaste:C,onCompositionStart:x,onCompositionEnd:O,tabIndex:h,attrs:(0,E.Z)(e,!0),maxLength:L?y:void 0})),!L&&M?o.createElement("span",{className:"".concat(n,"-selection-item"),title:D,style:I?{visibility:"hidden"}:void 0},M.label):null,j)};var Te=function(e,t){var n=(0,o.useRef)(null),i=(0,o.useRef)(!1),a=e.prefixCls,s=e.open,l=e.mode,c=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,m=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var v=W(0),y=(0,b.Z)(v,2),E=y[0],w=y[1],_=(0,o.useRef)(null),C=function(e){!1!==f(e,!0,i.current)&&h(!0)},x={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==S.Z.UP&&n!==S.Z.DOWN||e.preventDefault(),g&&g(e),n!==S.Z.ENTER||"tags"!==l||i.current||s||null==p||p(e.target.value),t=n,[S.Z.ESC,S.Z.SHIFT,S.Z.BACKSPACE,S.Z.TAB,S.Z.WIN_KEY,S.Z.ALT,S.Z.META,S.Z.WIN_KEY_RIGHT,S.Z.CTRL,S.Z.SEMICOLON,S.Z.EQUALS,S.Z.CAPS_LOCK,S.Z.CONTEXT_MENU,S.Z.F1,S.Z.F2,S.Z.F3,S.Z.F4,S.Z.F5,S.Z.F6,S.Z.F7,S.Z.F8,S.Z.F9,S.Z.F10,S.Z.F11,S.Z.F12].includes(t)||h(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(u&&_.current&&/[\r\n]/.test(_.current)){var n=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,_.current)}_.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");_.current=n||""},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==l&&C(e.target.value)}},O="multiple"===l||"tags"===l?o.createElement(xe,(0,r.Z)({},e,x)):o.createElement(Oe,(0,r.Z)({},e,x));return o.createElement("div",{ref:m,className:"".concat(a,"-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=E();e.target===n.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==d&&f("",!0,!1),h())}},O)};const ke=o.forwardRef(Te);var Re=n(2507),Ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ae=function(e,t){var n=e.prefixCls,i=(e.disabled,e.visible),a=e.children,s=e.popupElement,l=e.animation,c=e.transitionName,u=e.dropdownStyle,d=e.dropdownClassName,f=e.direction,p=void 0===f?"ltr":f,h=e.placement,b=e.builtinPlacements,y=e.dropdownMatchSelectWidth,S=e.dropdownRender,E=e.dropdownAlign,w=e.getPopupContainer,_=e.empty,C=e.getTriggerDOMNode,x=e.onPopupVisibleChange,O=e.onPopupMouseEnter,T=(0,j.Z)(e,Ne),k="".concat(n,"-dropdown"),R=s;S&&(R=S(s));var N=o.useMemo((function(){return b||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"}}}(y)}),[b,y]),A=l?"".concat(k,"-").concat(l):c,L="number"==typeof y,P=o.useMemo((function(){return L?null:!1===y?"minWidth":"width"}),[y,L]),M=u;L&&(M=(0,v.Z)((0,v.Z)({},M),{},{width:y}));var $=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){return $.current}}})),o.createElement(Re.Z,(0,r.Z)({},T,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:k,popupTransitionName:A,popup:o.createElement("div",{ref:$,onMouseEnter:O},R),stretch:P,popupAlign:E,popupVisible:i,getPopupContainer:w,popupClassName:g()(d,(0,m.Z)({},"".concat(k,"-empty"),_)),popupStyle:M,getTriggerDOMNode:C,onPopupVisibleChange:x}),a)};const Le=o.forwardRef(Ae);var Pe=n(4506);function Me(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 $e(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 Ie(e){var t=(0,v.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,w.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const De=o.createContext(null);var je=["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"],Ze=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ze=function(e){return"tags"===e||"multiple"===e},Be=o.forwardRef((function(e,t){var n,i,a=e.id,s=e.prefixCls,l=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,f=e.omitDomProps,p=e.displayValues,h=e.onDisplayValuesChange,E=e.emptyOptions,w=e.notFoundContent,_=void 0===w?"Not Found":w,C=e.onClear,x=e.mode,O=e.disabled,T=e.loading,k=e.getInputElement,R=e.getRawInputElement,N=e.open,A=e.defaultOpen,L=e.onDropdownVisibleChange,P=e.activeValue,M=e.onActiveValueChange,$=e.activeDescendantId,I=e.searchValue,V=e.autoClearSearchValue,X=e.onSearch,q=e.onSearchSplit,Y=e.tokenSeparators,G=e.allowClear,K=e.suffixIcon,Q=e.clearIcon,J=e.OptionList,ee=e.animation,te=e.transitionName,ne=e.dropdownStyle,re=e.dropdownClassName,oe=e.dropdownMatchSelectWidth,ie=e.dropdownRender,ae=e.dropdownAlign,se=e.placement,le=e.builtinPlacements,ce=e.getPopupContainer,ue=e.showAction,de=void 0===ue?[]:ue,fe=e.onFocus,pe=e.onBlur,he=e.onKeyUp,ge=e.onKeyDown,me=e.onMouseDown,ve=(0,j.Z)(e,je),be=ze(x),ye=(void 0!==c?c:be)||"combobox"===x,Se=(0,v.Z)({},ve);Ze.forEach((function(e){delete Se[e]})),null==f||f.forEach((function(e){delete Se[e]}));var Ee=o.useState(!1),we=(0,b.Z)(Ee,2),_e=we[0],Ce=we[1];o.useEffect((function(){Ce((0,B.Z)())}),[]);var xe=o.useRef(null),Oe=o.useRef(null),Te=o.useRef(null),Re=o.useRef(null),Ne=o.useRef(null),Ae=o.useRef(!1),Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=o.useState(!1),n=(0,b.Z)(t,2),r=n[0],i=n[1],a=o.useRef(null),s=function(){window.clearTimeout(a.current)};return o.useEffect((function(){return s}),[]),[r,function(t,n){s(),a.current=window.setTimeout((function(){i(t),n&&n()}),e)},s]}(),$e=(0,b.Z)(Me,3),Ie=$e[0],Be=$e[1],Fe=$e[2];o.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Re.current)||void 0===e?void 0:e.focus,blur:null===(t=Re.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ne.current)||void 0===t?void 0:t.scrollTo(e)}}}));var He=o.useMemo((function(){var e;if("combobox"!==x)return I;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[I,x,p]),Ue="combobox"===x&&"function"==typeof k&&k()||null,We="function"==typeof R&&R(),Ve=(0,F.x1)(Oe,null==We||null===(n=We.props)||void 0===n?void 0:n.ref),Xe=o.useState(!1),qe=(0,b.Z)(Xe,2),Ye=qe[0],Ge=qe[1];(0,z.Z)((function(){Ge(!0)}),[]);var Ke=(0,y.Z)(!1,{defaultValue:A,value:N}),Qe=(0,b.Z)(Ke,2),Je=Qe[0],et=Qe[1],tt=!!Ye&&Je,nt=!_&&E;(O||nt&&tt&&"combobox"===x)&&(tt=!1);var rt=!nt&&tt,ot=o.useCallback((function(e){var t=void 0!==e?e:!tt;O||(et(t),tt!==t&&(null==L||L(t)))}),[O,tt,et,L]),it=o.useMemo((function(){return(Y||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Y]),at=o.useContext(De)||{},st=at.maxCount,lt=at.rawValues,ct=function(e,t,n){if(!((null==lt?void 0:lt.size)>=st)){var r=!0,o=e;null==M||M(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,Pe.Z)(n),i=o[0],a=o.slice(1);if(!i)return[t];var s=t.split(i);return r=r||s.length>1,s.reduce((function(t,n){return[].concat((0,D.Z)(t),(0,D.Z)(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,Y,st&&st-lt.size),a=n?null:i;return"combobox"!==x&&a&&(o="",null==q||q(a),ot(!1),r=!1),X&&He!==o&&X(o,{source:t?"typing":"effect"}),r}};o.useEffect((function(){tt||be||"combobox"===x||ct("",!1,!1)}),[tt]),o.useEffect((function(){Je&&O&&et(!1),O&&!Ae.current&&Be(!1)}),[O]);var ut=W(),dt=(0,b.Z)(ut,2),ft=dt[0],pt=dt[1],ht=o.useRef(!1),gt=[];o.useEffect((function(){return function(){gt.forEach((function(e){return clearTimeout(e)})),gt.splice(0,gt.length)}}),[]);var mt,vt=o.useState({}),bt=(0,b.Z)(vt,2)[1];We&&(mt=function(e){ot(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[xe.current,null===(e=Te.current)||void 0===e?void 0:e.getPopupElement()]}),rt,ot,!!We);var yt,St=o.useMemo((function(){return(0,v.Z)((0,v.Z)({},e),{},{notFoundContent:_,open:tt,triggerOpen:rt,id:a,showSearch:ye,multiple:be,toggleOpen:ot})}),[e,_,rt,tt,a,ye,be,ot]),Et=!!K||T;Et&&(yt=o.createElement(H,{className:g()("".concat(s,"-arrow"),(0,m.Z)({},"".concat(s,"-arrow-loading"),T)),customizeIcon:K,customizeIconProps:{loading:T,searchValue:He,open:tt,focused:Ie,showSearch:ye}}));var wt,_t=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=o.useMemo((function(){return"object"===(0,Z.Z)(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:o.useMemo((function(){return!(a||!r||!n.length&&!s||"combobox"===l&&""===s)}),[r,a,n.length,s,l]),clearIcon:o.createElement(H,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(s,(function(){var e;null==C||C(),null===(e=Re.current)||void 0===e||e.focus(),h([],{type:"clear",values:p}),ct("",!1,!1)}),p,G,Q,O,He,x),Ct=_t.allowClear,xt=_t.clearIcon,Ot=o.createElement(J,{ref:Ne}),Tt=g()(s,l,(i={},(0,m.Z)(i,"".concat(s,"-focused"),Ie),(0,m.Z)(i,"".concat(s,"-multiple"),be),(0,m.Z)(i,"".concat(s,"-single"),!be),(0,m.Z)(i,"".concat(s,"-allow-clear"),G),(0,m.Z)(i,"".concat(s,"-show-arrow"),Et),(0,m.Z)(i,"".concat(s,"-disabled"),O),(0,m.Z)(i,"".concat(s,"-loading"),T),(0,m.Z)(i,"".concat(s,"-open"),tt),(0,m.Z)(i,"".concat(s,"-customize-input"),Ue),(0,m.Z)(i,"".concat(s,"-show-search"),ye),i)),kt=o.createElement(Le,{ref:Te,disabled:O,prefixCls:s,visible:rt,popupElement:Ot,animation:ee,transitionName:te,dropdownStyle:ne,dropdownClassName:re,direction:d,dropdownMatchSelectWidth:oe,dropdownRender:ie,dropdownAlign:ae,placement:se,builtinPlacements:le,getPopupContainer:ce,empty:E,getTriggerDOMNode:function(){return Oe.current},onPopupVisibleChange:mt,onPopupMouseEnter:function(){bt({})}},We?o.cloneElement(We,{ref:Ve}):o.createElement(ke,(0,r.Z)({},e,{domRef:Oe,prefixCls:s,inputElement:Ue,ref:Re,id:a,showSearch:ye,autoClearSearchValue:V,mode:x,activeDescendantId:$,tagRender:u,values:p,open:tt,onToggleOpen:ot,activeValue:P,searchValue:He,onSearch:ct,onSearchSubmit:function(e){e&&e.trim()&&X(e,{source:"submit"})},onRemove:function(e){var t=p.filter((function(t){return t!==e}));h(t,{type:"remove",values:[e]})},tokenWithEnter:it})));return wt=We?kt:o.createElement("div",(0,r.Z)({className:Tt},Se,{ref:xe,onMouseDown:function(e){var t,n=e.target,r=null===(t=Te.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=gt.indexOf(o);-1!==t&>.splice(t,1),Fe(),_e||r.contains(document.activeElement)||null===(e=Re.current)||void 0===e||e.focus()}));gt.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s=0;a-=1){var s=o[a];if(!s.disabled){o.splice(a,1),i=s;break}}i&&h(o,{type:"remove",values:[i]})}for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u1?t-1:0),r=1;r0,U=o.useMemo((function(){return 0===a||0===B?0:a/B*F}),[a,B,F]),W=o.useRef({top:U,dragging:w,pageY:O,startTop:N});W.current={top:U,dragging:w,pageY:O,startTop:N};var V=function(e){_(!0),T(Ke(e,d)),A(W.current.top),l(),e.stopPropagation(),e.preventDefault()};o.useEffect((function(){var e=function(e){e.preventDefault()},t=P.current,n=M.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",V),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",V)}}),[]);var X=o.useRef();X.current=B;var q=o.useRef();q.current=F,o.useEffect((function(){if(w){var e,t=function(t){var n=W.current,r=n.dragging,o=n.pageY,i=n.startTop;if(ee.Z.cancel(e),r){var a=Ke(t,d)-o,s=i;!L&&d?s-=a:s+=a;var l=X.current,c=q.current,f=c?s/c:0,p=Math.ceil(f*l);p=Math.max(p,0),p=Math.min(p,l),e=(0,ee.Z)((function(){u(p,d)}))}},n=function(){_(!1),c()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ee.Z.cancel(e)}}}),[w]),o.useEffect((function(){z()}),[a]),o.useImperativeHandle(t,(function(){return{delayHidden:z}}));var Y="".concat(r,"-scrollbar"),G={position:"absolute",visibility:D&&H?null:"hidden"},K={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(G.height=8,G.left=0,G.right=0,G.bottom=0,K.height="100%",K.width=f,L?K.left=U:K.right=U):(G.width=8,G.top=0,G.bottom=0,L?G.right=0:G.left=0,K.width="100%",K.height=f,K.top=U),o.createElement("div",{ref:P,className:g()(Y,(n={},(0,m.Z)(n,"".concat(Y,"-horizontal"),d),(0,m.Z)(n,"".concat(Y,"-vertical"),!d),(0,m.Z)(n,"".concat(Y,"-visible"),D),n)),style:(0,v.Z)((0,v.Z)({},G),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:z},o.createElement("div",{ref:M,className:g()("".concat(Y,"-thumb"),(0,m.Z)({},"".concat(Y,"-thumb-moving"),w)),style:(0,v.Z)((0,v.Z)({},K),y),onMouseDown:V}))}));const Je=Qe;function et(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}var tt=n(4203),nt=n(5671),rt=n(3144);const ot=function(){function e(){(0,nt.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,rt.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var it=n(6790),at=10;function st(e,t,n){var r=o.useState(e),i=(0,b.Z)(r,2),a=i[0],s=i[1],l=o.useState(null),c=(0,b.Z)(l,2),u=c[0],d=c[1];return o.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i1&&void 0!==arguments[1]&&arguments[1],o=e<0&&i.current.top||e>0&&i.current.bottom;return t&&o?(clearTimeout(r.current),n.current=!1):o&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&o}};function ut(e,t,n,r,i){var a=(0,o.useRef)(0),s=(0,o.useRef)(null),l=(0,o.useRef)(null),c=(0,o.useRef)(!1),u=ct(t,n);var d=(0,o.useRef)(null),f=(0,o.useRef)(null);return[function(t){if(e){ee.Z.cancel(f.current),f.current=(0,ee.Z)((function(){d.current=null}),2);var n=t.deltaX,o=t.deltaY,p=t.shiftKey,h=n,g=o;("sx"===d.current||!d.current&&p&&o&&!n)&&(h=o,g=0,d.current="sx");var m=Math.abs(h),v=Math.abs(g);null===d.current&&(d.current=r&&m>v?"x":"y"),"y"===d.current?function(e,t){ee.Z.cancel(s.current),a.current+=t,l.current=t,u(t)||(lt||e.preventDefault(),s.current=(0,ee.Z)((function(){var e=c.current?10:1;i(a.current*e),a.current=0})))}(t,g):function(e,t){i(t,!0),lt||e.preventDefault()}(t,h)}},function(t){e&&(c.current=t.detail===l.current)}]}var dt=14/15;var ft=20;function pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,ft),t=Math.min(t,e/2),Math.floor(t)}var ht=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],gt=[],mt={overflowY:"auto",overflowAnchor:"none"};function vt(e,t){var n=e.prefixCls,i=void 0===n?"rc-virtual-list":n,a=e.className,s=e.height,l=e.itemHeight,c=e.fullHeight,u=void 0===c||c,d=e.style,f=e.data,p=e.children,h=e.itemKey,y=e.virtual,S=e.direction,E=e.scrollWidth,w=e.component,_=void 0===w?"div":w,C=e.onScroll,x=e.onVirtualScroll,O=e.onVisibleChange,T=e.innerProps,k=e.extraRender,R=e.styles,N=(0,j.Z)(e,ht),A=!(!1===y||!s||!l),L=A&&f&&(l*f.length>s||!!E),P="rtl"===S,M=g()(i,(0,m.Z)({},"".concat(i,"-rtl"),P),a),$=f||gt,I=(0,o.useRef)(),D=(0,o.useRef)(),B=(0,o.useState)(0),F=(0,b.Z)(B,2),H=F[0],U=F[1],W=(0,o.useState)(0),X=(0,b.Z)(W,2),q=X[0],Y=X[1],G=(0,o.useState)(!1),K=(0,b.Z)(G,2),Q=K[0],te=K[1],ne=function(){te(!0)},re=function(){te(!1)},oe=o.useCallback((function(e){return"function"==typeof h?h(e):null==e?void 0:e[h]}),[h]),ie={getKey:oe};function ae(e){U((function(t){var n=function(e){var t=e;Number.isNaN(Ae.current)||(t=Math.min(t,Ae.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return I.current.scrollTop=n,n}))}var se=(0,o.useRef)({start:0,end:$.length}),le=(0,o.useRef)(),ce=st($,oe),ue=(0,b.Z)(ce,1)[0];le.current=ue;var de=function(e,t,n){var r=o.useState(0),i=(0,b.Z)(r,2),a=i[0],s=i[1],l=(0,o.useRef)(new Map),c=(0,o.useRef)(new ot),u=(0,o.useRef)();function d(){ee.Z.cancel(u.current)}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,tt.Z)(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),s((function(e){return e+1}))};e?t():u.current=(0,ee.Z)(t)}return(0,o.useEffect)((function(){return d}),[]),[function(r,o){var i=e(r),a=l.current.get(i);o?(l.current.set(i,o),f()):l.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},f,c.current,a]}(oe,null,null),fe=(0,b.Z)(de,4),pe=fe[0],he=fe[1],ge=fe[2],me=fe[3],ve=o.useMemo((function(){if(!A)return{scrollHeight:void 0,start:0,end:$.length-1,offset:void 0};var e;if(!L)return{scrollHeight:(null===(e=D.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:$.length-1,offset:void 0};for(var t,n,r,o=0,i=$.length,a=0;a=H&&void 0===t&&(t=a,n=o),f>H+s&&void 0===r&&(r=a),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(s/l)),void 0===r&&(r=$.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,$.length-1),offset:n}}),[L,A,H,$,me,s]),be=ve.scrollHeight,ye=ve.start,Se=ve.end,Ee=ve.offset;se.current.start=ye,se.current.end=Se;var we=o.useState({width:0,height:s}),_e=(0,b.Z)(we,2),Ce=_e[0],xe=_e[1],Oe=(0,o.useRef)(),Te=(0,o.useRef)(),ke=o.useMemo((function(){return pt(Ce.width,E)}),[Ce.width,E]),Re=o.useMemo((function(){return pt(Ce.height,be)}),[Ce.height,be]),Ne=be-s,Ae=(0,o.useRef)(Ne);Ae.current=Ne;var Le=H<=0,Pe=H>=Ne,Me=ct(Le,Pe),$e=function(){return{x:P?-q:q,y:H}},Ie=(0,o.useRef)($e()),De=(0,it.zX)((function(){if(x){var e=$e();Ie.current.x===e.x&&Ie.current.y===e.y||(x(e),Ie.current=e)}}));function je(e,t){var n=e;t?((0,J.flushSync)((function(){Y(n)})),De()):ae(n)}var Ze=function(e){var t=e,n=E-Ce.width;return t=Math.max(t,0),t=Math.min(t,n)},ze=(0,it.zX)((function(e,t){t?((0,J.flushSync)((function(){Y((function(t){return Ze(t+(P?-e:e))}))})),De()):ae((function(t){return t+e}))})),Be=ut(A,Le,Pe,!!E,ze),Fe=(0,b.Z)(Be,2),He=Fe[0],Ue=Fe[1];!function(e,t,n){var r,i=(0,o.useRef)(!1),a=(0,o.useRef)(0),s=(0,o.useRef)(null),l=(0,o.useRef)(null),c=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),r=a.current-t;a.current=t,n(r)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(r*=dt,!0)||Math.abs(r)<=.1)&&clearInterval(l.current)}),16)}},u=function(){i.current=!1,r()},d=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",c),s.current.addEventListener("touchend",u))};r=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},(0,z.Z)((function(){return e&&t.current.addEventListener("touchstart",d),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(l.current)}}),[e])}(A,I,(function(e,t){return!Me(e,t)&&(He({preventDefault:function(){},deltaY:e}),!0)})),(0,z.Z)((function(){function e(e){A&&e.preventDefault()}var t=I.current;return t.addEventListener("wheel",He),t.addEventListener("DOMMouseScroll",Ue),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",He),t.removeEventListener("DOMMouseScroll",Ue),t.removeEventListener("MozMousePixelScroll",e)}}),[A]),(0,z.Z)((function(){E&&Y((function(e){return Ze(e)}))}),[Ce.width,E]);var We=function(){var e,t;null===(e=Oe.current)||void 0===e||e.delayHidden(),null===(t=Te.current)||void 0===t||t.delayHidden()},Ve=function(e,t,n,r,i,a,s,l){var c=o.useRef(),u=o.useState(null),d=(0,b.Z)(u,2),f=d[0],p=d[1];return(0,z.Z)((function(){if(f&&f.times=0;T-=1){var k=i(t[T]),R=n.get(k);if(void 0===R){h=!0;break}if((O-=R)<=0)break}switch(b){case"top":m=S-u;break;case"bottom":m=E-d+u;break;default:var N=e.current.scrollTop;SN+d&&(g="bottom")}null!==m&&s(m),m!==f.lastTop&&(h=!0)}h&&p((0,v.Z)((0,v.Z)({},f),{},{times:f.times+1,targetAlign:g,lastTop:m}))}}),[f,e.current]),function(e){if(null!=e){if(ee.Z.cancel(c.current),"number"==typeof e)s(e);else if(e&&"object"===(0,Z.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;p({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else l()}}(I,$,ge,l,oe,(function(){return he(!0)}),ae,We);o.useImperativeHandle(t,(function(){return{getScrollInfo:$e,scrollTo:function(e){var t;(t=e)&&"object"===(0,Z.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Y(Ze(e.left)),Ve(e.top)):Ve(e)}}})),(0,z.Z)((function(){if(O){var e=$.slice(ye,Se+1);O(e,$)}}),[ye,Se,$]);var Xe=function(e,t,n,r){var i=o.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),a=(0,b.Z)(i,2),s=a[0],l=a[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,a=s.get(o),c=s.get(i);if(void 0===a||void 0===c)for(var u=e.length,d=l.length;ds&&o.createElement(Je,{ref:Oe,prefixCls:i,scrollOffset:H,scrollRange:be,rtl:P,onScroll:je,onStartMove:ne,onStopMove:re,spinSize:Re,containerSize:Ce.height,style:null==R?void 0:R.verticalScrollBar,thumbStyle:null==R?void 0:R.verticalScrollBarThumb}),L&&E&&o.createElement(Je,{ref:Te,prefixCls:i,scrollOffset:q,scrollRange:E,rtl:P,onScroll:je,onStartMove:ne,onStopMove:re,spinSize:ke,containerSize:Ce.width,horizontal:!0,style:null==R?void 0:R.horizontalScrollBar,thumbStyle:null==R?void 0:R.horizontalScrollBarThumb}))}var bt=o.forwardRef(vt);bt.displayName="List";const yt=bt;var St=["disabled","title","children","style","className"];function Et(e){return"string"==typeof e||"number"==typeof e}var wt=function(e,t){var n=o.useContext(U),i=n.prefixCls,a=n.id,s=n.open,l=n.multiple,c=n.mode,u=n.searchValue,d=n.toggleOpen,f=n.notFoundContent,p=n.onPopupScroll,h=o.useContext(De),v=h.maxCount,y=h.flattenOptions,w=h.onActiveValue,_=h.defaultActiveFirstOption,C=h.onSelect,x=h.menuItemSelectedIcon,O=h.rawValues,T=h.fieldNames,k=h.virtual,R=h.direction,N=h.listHeight,A=h.listItemHeight,L=h.optionRender,P="".concat(i,"-item"),M=(0,Xe.Z)((function(){return y}),[s,y],(function(e,t){return t[0]&&e[1]!==t[1]})),$=o.useRef(null),I=o.useMemo((function(){return l&&void 0!==v&&(null==O?void 0:O.size)>=v}),[l,v,null==O?void 0:O.size]),Z=function(e){e.preventDefault()},z=function(e){var t;null===(t=$.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},B=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=M.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];X(e);var n={source:t?"keyboard":"mouse"},r=M[e];r?w(r.value,e,n):w(null,-1,n)};(0,o.useEffect)((function(){q(!1!==_?B(0):-1)}),[M.length,u]);var Y=o.useCallback((function(e){return O.has(e)&&"combobox"!==c}),[c,(0,D.Z)(O).toString(),O.size]);(0,o.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&s&&1===O.size){var e=Array.from(O)[0],t=M.findIndex((function(t){return t.data.value===e}));-1!==t&&(q(t),z(t))}}));s&&(null===(e=$.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,u]);var G=function(e){void 0!==e&&C(e,{selected:!O.has(e)}),l||d(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case S.Z.N:case S.Z.P:case S.Z.UP:case S.Z.DOWN:var r=0;if(t===S.Z.UP?r=-1:t===S.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===S.Z.N?r=1:t===S.Z.P&&(r=-1)),0!==r){var o=B(V+r,r);z(o),q(o,!0)}break;case S.Z.ENTER:var i,a=M[V];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||I?G(void 0):G(a.value),s&&e.preventDefault();break;case S.Z.ESC:d(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}})),0===M.length)return o.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:Z},f);var K=Object.keys(T).map((function(e){return T[e]})),Q=function(e){return e.label};function J(e,t){return{role:e.group?"presentation":"option",id:"".concat(a,"_list_").concat(t)}}var ee=function(e){var t=M[e];if(!t)return null;var n=t.data||{},i=n.value,a=t.group,s=(0,E.Z)(n,!0),l=Q(t);return t?o.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof l||a?null:l},s,{key:e},J(t,e),{"aria-selected":Y(i)}),i):null},te={role:"listbox",id:"".concat(a,"_list")};return o.createElement(o.Fragment,null,k&&o.createElement("div",(0,r.Z)({},te,{style:{height:0,width:0,overflow:"hidden"}}),ee(V-1),ee(V),ee(V+1)),o.createElement(yt,{itemKey:"key",ref:$,data:M,height:N,itemHeight:A,fullHeight:!1,onMouseDown:Z,onScroll:p,virtual:k,direction:R,innerProps:k?null:te},(function(e,t){var n,i=e.group,a=e.groupOption,s=e.data,l=e.label,c=e.value,u=s.key;if(i){var d,f=null!==(d=s.title)&&void 0!==d?d:Et(l)?l.toString():void 0;return o.createElement("div",{className:g()(P,"".concat(P,"-group")),title:f},void 0!==l?l:u)}var p=s.disabled,h=s.title,v=(s.children,s.style),b=s.className,y=(0,j.Z)(s,St),S=(0,qe.Z)(y,K),w=Y(c),_=p||!w&&I,C="".concat(P,"-option"),O=g()(P,C,b,(n={},(0,m.Z)(n,"".concat(C,"-grouped"),a),(0,m.Z)(n,"".concat(C,"-active"),V===t&&!_),(0,m.Z)(n,"".concat(C,"-disabled"),_),(0,m.Z)(n,"".concat(C,"-selected"),w),n)),T=Q(e),R=!x||"function"==typeof x||w,N="number"==typeof T?T:T||c,A=Et(N)?N.toString():void 0;return void 0!==h&&(A=h),o.createElement("div",(0,r.Z)({},(0,E.Z)(S),k?{}:J(e,t),{"aria-selected":w,className:O,title:A,onMouseMove:function(){V===t||_||q(t)},onClick:function(){_||G(c)},style:v}),o.createElement("div",{className:"".concat(C,"-content")},"function"==typeof L?L(e,{index:t}):N),o.isValidElement(x)||w,R&&o.createElement(H,{className:"".concat(P,"-option-state"),customizeIcon:x,customizeIconProps:{value:c,disabled:_,isSelected:w}},w?"✓":null))})))};const _t=o.forwardRef(wt);function Ct(e,t){return ye(e).join("").toUpperCase().includes(t)}var xt=n(8924),Ot=0,Tt=(0,xt.Z)();function kt(e){var t=o.useState(),n=(0,b.Z)(t,2),r=n[0],i=n[1];return o.useEffect((function(){var e;i("rc_select_".concat((Tt?(e=Ot,Ot+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var Rt=n(344),Nt=["children","value"],At=["children"];function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,Rt.Z)(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,s=r.props,l=s.children,c=(0,j.Z)(s,At);return t||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=(0,j.Z)(r,Nt);return(0,v.Z)({key:n,value:void 0!==i?i:n,children:o},a)}(e):(0,v.Z)((0,v.Z)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},c),{},{options:Lt(l)})})).filter((function(e){return e}))}const Pt=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=Lt(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=$e(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var i=t[s];o.push({key:Me(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:Me(t,o.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),o}(we,{fieldNames:K,childrenAsData:Y})}),[we,K,Y]),Ce=function(e){var t=ae(e);if(ue(t),U&&(t.length!==he.length||t.some((function(e,t){var n;return(null===(n=he[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=H?t:t.map((function(e){return e.value})),r=t.map((function(e){return Ie(ge(e.value))}));U(q?n:n[0],q?r:r[0])}},xe=o.useState(null),Oe=(0,b.Z)(xe,2),Te=Oe[0],ke=Oe[1],Re=o.useState(0),Ne=(0,b.Z)(Re,2),Ae=Ne[0],Le=Ne[1],Pe=void 0!==N?N:"combobox"!==i,je=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Le(t),l&&"combobox"===i&&null!==e&&"keyboard"===r&&ke(String(e))}),[l,i]),Ze=function(e,t,n){var r=function(){var t,n=ge(e);return[H?{label:null==n?void 0:n[K.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Ie(n)]};if(t&&g){var o=r(),i=(0,b.Z)(o,2),a=i[0],s=i[1];g(a,s)}else if(!t&&S&&"clear"!==n){var l=r(),c=(0,b.Z)(l,2),u=c[0],d=c[1];S(u,d)}},Be=Mt((function(e,t){var n,r=!q||t.selected;n=r?q?[].concat((0,D.Z)(he),[e]):[e]:he.filter((function(t){return t.value!==e})),Ce(n),Ze(e,r),"combobox"===i?ke(""):ze&&!h||(te(""),ke(""))})),He=o.useMemo((function(){var e=!1!==L&&!1!==w;return(0,v.Z)((0,v.Z)({},ne),{},{flattenOptions:_e,onActiveValue:je,defaultActiveFirstOption:Pe,onSelect:Be,menuItemSelectedIcon:A,rawValues:ve,fieldNames:K,virtual:e,direction:P,listHeight:$,listItemHeight:z,childrenAsData:Y,maxCount:W,optionRender:k})}),[W,ne,_e,je,Pe,Be,A,ve,K,L,w,P,$,z,Y,k]);return o.createElement(De.Provider,{value:He},o.createElement(Fe,(0,r.Z)({},V,{id:X,prefixCls:s,ref:t,omitDomProps:It,mode:i,displayValues:me,onDisplayValuesChange:function(e,t){Ce(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ze(e.value,!1,n)}))},direction:P,searchValue:ee,onSearch:function(e,t){if(te(e),ke(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&Ce(e),null==f||f(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,D.Z)(ve),[n])));Ce(r),Ze(n,!0),te("")}}},autoClearSearchValue:h,onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=oe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,D.Z)(ve),(0,D.Z)(t))));Ce(n),n.forEach((function(e){Ze(e,!0)}))},dropdownMatchSelectWidth:w,OptionList:_t,emptyOptions:!_e.length,activeValue:Te,activeDescendantId:"".concat(X,"_list_").concat(Ae)})))}));var jt=Dt;jt.Option=Ve,jt.OptGroup=Ue;const Zt=jt;var zt=n(7263),Bt=n(3603),Ft=n(8745);var Ht=n(274),Ut=n(7606);const Wt=()=>{const[,e]=(0,Ut.ZP)(),t=new Ht.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.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"}),o.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)"}),o.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"}),o.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"})),o.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"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const Vt=()=>{const[,e]=(0,Ut.ZP)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,o.useMemo)((()=>({borderColor:new Ht.C(t).onBackground(i).toHexShortString(),shadowColor:new Ht.C(n).onBackground(i).toHexShortString(),contentColor:new Ht.C(r).onBackground(i).toHexShortString()})),[t,n,r,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},o.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"}),o.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}))))};var Xt=n(1939),qt=n(5503);const Yt=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}}}}},Gt=(0,Xt.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=(0,qt.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Yt(o)]}));var Kt=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{var{className:t,rootClassName:n,prefixCls:r,image:i=Qt,description:a,children:s,imageStyle:l,style:c}=e,u=Kt(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=o.useContext(P.E_),h=d("empty",r),[m,v,b]=Gt(h),[y]=(0,I.Z)("Empty"),S=void 0!==a?a:null==y?void 0:y.description,E="string"==typeof S?S:"empty";let w=null;return w="string"==typeof i?o.createElement("img",{alt:E,src:i}):i,m(o.createElement("div",Object.assign({className:g()(v,b,h,null==p?void 0:p.className,{[`${h}-normal`]:i===Jt,[`${h}-rtl`]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),c)},u),o.createElement("div",{className:`${h}-image`,style:l},w),S&&o.createElement("div",{className:`${h}-description`},S),s&&o.createElement("div",{className:`${h}-footer`},s)))};en.PRESENTED_IMAGE_DEFAULT=Qt,en.PRESENTED_IMAGE_SIMPLE=Jt;const tn=en,nn=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(P.E_),r=n("empty");switch(t){case"Table":case"List":return o.createElement(tn,{image:tn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(tn,{image:tn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return o.createElement(tn,null)}};var rn=n(8866),on=n(5792),an=n(5702);const sn=["outlined","borderless","filled"],ln=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=(0,o.useContext)(an.pg);let r;r=void 0!==e?e:!1===t?"borderless":null!=n?n:"outlined";return[r,sn.includes(r)]};var cn=n(4173);const un=function(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)};var dn=n(4747),fn=n(4184),pn=n(7395),hn=n(3590);const gn=new pn.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),mn=new pn.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),vn=new pn.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),bn=new pn.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),yn=new pn.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Sn=new pn.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),En=new pn.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),wn=new pn.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),_n={"slide-up":{inKeyframes:gn,outKeyframes:mn},"slide-down":{inKeyframes:vn,outKeyframes:bn},"slide-left":{inKeyframes:yn,outKeyframes:Sn},"slide-right":{inKeyframes:En,outKeyframes:wn}},Cn=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=_n[t];return[(0,hn.R)(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}}]},xn=new pn.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),On=new pn.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Tn=new pn.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kn=new pn.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Rn=new pn.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Nn=new pn.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),An={"move-up":{inKeyframes:new pn.E4("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 pn.E4("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:xn,outKeyframes:On},"move-left":{inKeyframes:Tn,outKeyframes:kn},"move-right":{inKeyframes:Rn,outKeyframes:Nn}},Ln=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=An[t];return[(0,hn.R)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Pn=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"}},Mn=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`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,dn.Wf)(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}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:gn},[`\n ${o}${s}topLeft,\n ${i}${s}topLeft,\n ${o}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:vn},[`${a}${s}bottomLeft`]:{animationName:mn},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:bn},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Pn(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"},dn.vS),"&-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({},Pn(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Cn(e,"slide-up"),Cn(e,"slide-down"),Ln(e,"move-up"),Ln(e,"move-down")]};function $n(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}`:""}`]:{fontSize:e.fontSize,[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}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,pn.bf)(2)} 0`,lineHeight:(0,pn.bf)(i),visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:(0,pn.bf)(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({},(0,dn.Ro)()),{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:(0,pn.bf)(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}`}}}}const In=e=>{const{componentCls:t}=e,n=(0,qt.TS)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,qt.TS)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[$n(e),$n(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},$n(r,"lg")]};function Dn(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({},(0,dn.Wf)(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:(0,pn.bf)(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 ${(0,pn.bf)(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:(0,pn.bf)(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 ${(0,pn.bf)(r)}`,"&:after":{display:"none"}}}}}}}function jn(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Dn(e),Dn((0,qt.TS)(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 ${(0,pn.bf)(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()}}}},Dn((0,qt.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Zn=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,pn.bf)(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 ${(0,pn.bf)(o)} ${t.activeShadowColor}`,outline:0}}}},zn=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Zn(e,t))}),Bn=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Zn(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),zn(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),zn(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:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Fn=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,pn.bf)(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}}}},Hn=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Fn(e,t))}),Un=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Hn(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Hn(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:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Wn=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:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),Vn=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Bn(e)),Un(e)),Wn(e))}),Xn=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"}}}},qn=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"}}}},Yn=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},(0,dn.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Xn(e)),qn(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},dn.vS),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},dn.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,dn.Ro)()),{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()}}}},Gn=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Yn(e),jn(e),In(e),Mn(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,fn.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Kn=(0,Xt.I$)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=(0,qt.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Gn(r),Vn(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,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:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const Qn={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 Jn=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:Qn}))};const er=o.forwardRef(Jn);var tr=n(3061),nr=n(4549);const rr={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 or=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:rr}))};const ir=o.forwardRef(or);var ar=n(7085);const sr={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 lr=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:sr}))};const cr=o.forwardRef(lr);var ur=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{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:h,disabled:m,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:S,popupMatchSelectWidth:E,direction:w,style:_,allowClear:C,variant:x,dropdownStyle:O,transitionName:T,tagRender:k,maxCount:R}=e,N=ur(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:A,getPrefixCls:L,renderEmpty:$,direction:I,virtual:D,popupMatchSelectWidth:j,popupOverflow:Z,select:z}=o.useContext(P.E_),[,B]=(0,Ut.ZP)(),F=null!=p?p:null==B?void 0:B.controlHeight,H=L("select",r),U=L(),W=null!=w?w:I,{compactSize:V,compactItemClassnames:X}=(0,cn.ri)(H,W),[q,Y]=ln(x,i),G=(0,on.Z)(H),[K,Q,J]=Kn(H,G),ee=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===dr?"combobox":t}),[e.mode]),te="multiple"===ee||"tags"===ee,ne=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),re=null!==(n=null!=E?E:S)&&void 0!==n?n:j,{status:oe,hasFeedback:ie,isFormItemInput:ae,feedbackIcon:se}=o.useContext(an.aM),le=((e,t)=>t||e)(oe,b);let ce;ce=void 0!==v?v:"combobox"===ee?null:(null==$?void 0:$("Select"))||o.createElement(nn,{componentName:"Select"});const{suffixIcon:ue,itemIcon:de,removeIcon:fe,clearIcon:pe}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const h=null!=n?n:o.createElement(tr.Z,null),g=e=>null!==t||l||f?o.createElement(o.Fragment,null,!1!==u&&e,l&&d):null;let m=null;if(void 0!==t)m=g(t);else if(a)m=g(o.createElement(ar.Z,{spin:!0}));else{const e=`${c}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return g(n&&r?o.createElement(cr,{className:e}):o.createElement(ir,{className:e}))}}let v=null;v=void 0!==r?r:s?o.createElement(er,null):null;let b=null;return b=void 0!==i?i:o.createElement(nr.Z,null),{clearIcon:h,suffixIcon:m,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},N),{multiple:te,hasFeedback:ie,feedbackIcon:se,showSuffixIcon:ne,prefixCls:H,componentName:"Select"})),he=!0===C?{clearIcon:pe}:C,ge=(0,qe.Z)(N,["suffixIcon","itemIcon"]),me=g()(c||u,{[`${H}-dropdown-${W}`]:"rtl"===W},s,J,G,Q),ve=(0,M.Z)((e=>{var t;return null!==(t=null!=h?h:V)&&void 0!==t?t:e})),be=o.useContext(rn.Z),ye=null!=m?m:be,Se=g()({[`${H}-lg`]:"large"===ve,[`${H}-sm`]:"small"===ve,[`${H}-rtl`]:"rtl"===W,[`${H}-${q}`]:Y,[`${H}-in-form-item`]:ae},function(e,t,n){return g()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}(H,le,ie),X,null==z?void 0:z.className,a,s,J,G,Q),Ee=o.useMemo((()=>void 0!==f?f:"rtl"===W?"bottomRight":"bottomLeft"),[f,W]);const[we]=(0,zt.Cn)("SelectLike",null==O?void 0:O.zIndex);return K(o.createElement(Zt,Object.assign({ref:t,virtual:D,showSearch:null==z?void 0:z.showSearch},ge,{style:Object.assign(Object.assign({},null==z?void 0:z.style),_),dropdownMatchSelectWidth:re,transitionName:(0,Bt.m)(U,"slide-up",T),builtinPlacements:un(y,Z),listHeight:d,listItemHeight:F,mode:ee,prefixCls:H,placement:Ee,direction:W,suffixIcon:ue,menuItemSelectedIcon:de,removeIcon:fe,allowClear:he,notFoundContent:ce,className:Se,getPopupContainer:l||A,dropdownClassName:me,disabled:ye,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:we}),maxCount:te?R:void 0,tagRender:te?k:void 0})))};const pr=o.forwardRef(fr),hr=(0,Ft.Z)(pr);pr.SECRET_COMBOBOX_MODE_DO_NOT_USE=dr,pr.Option=Ve,pr.OptGroup=Ue,pr._InternalPanelDoNotUseOrYouWillBeFired=hr;const gr=pr,mr=e=>o.createElement(gr,Object.assign({},e,{showSearch:!0,size:"small"})),vr=e=>o.createElement(gr,Object.assign({},e,{showSearch:!0,size:"middle"}));function br(e){return(0,qt.TS)(e,{inputAffixPadding:e.paddingXXS})}mr.Option=gr.Option,vr.Option=gr.Option;const yr=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,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-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},Sr=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Er=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},Sr((0,qt.TS)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wr=(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}}),_r=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wr(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Cr=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wr(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Er(e))}),_r(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),_r(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),xr=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Or=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},xr(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),xr(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Er(e))}})}),Tr=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),kr=(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}}),Rr=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},kr(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Nr=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kr(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Er(e))}),Rr(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Rr(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Ar=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Lr=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:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Ar(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ar(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:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Pr=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${(0,pn.bf)(t)} ${(0,pn.bf)(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Mr=e=>({padding:`${(0,pn.bf)(e.paddingBlockSM)} ${(0,pn.bf)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),$r=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,pn.bf)(e.paddingBlock)} ${(0,pn.bf)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Pr(e)),"&-sm":Object.assign({},Mr(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ir=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({},Pr(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Mr(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 ${(0,pn.bf)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,pn.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,pn.bf)(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:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,pn.bf)(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"},(0,dn.dF)()),{[`${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}}}})}},Dr=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({},(0,dn.Wf)(e)),$r(e)),Cr(e)),Nr(e)),Tr(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"}})}},jr=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 ${(0,pn.bf)(e.inputAffixPadding)}`}}}},Zr=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(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}}}),jr(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},zr=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,dn.Wf)(e)),Ir(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}}},Or(e)),Lr(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}}})})}},Br=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}}}}},Fr=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"}}}}}},Hr=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ur=((0,Xt.I$)("Input",(e=>{const t=(0,qt.TS)(e,br(e));return[Dr(t),Fr(t),Zr(t),zr(t),Br(t),Hr(t),(0,fn.c)(t)]}),yr),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"}}}}}}),Wr=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,pn.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,pn.bf)(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:(0,pn.bf)(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:(0,pn.bf)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,pn.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,pn.bf)(e.itemSizeSM),input:Object.assign(Object.assign({},Mr(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Vr=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:(0,pn.bf)(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:(0,pn.bf)(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 ${(0,pn.bf)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,pn.bf)(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:`${(0,pn.bf)(e.inputOutlineOffset)} 0 ${(0,pn.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Xr=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:`${(0,pn.bf)(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:`${(0,pn.bf)(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:(0,pn.bf)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},$r(e)),wr(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Er(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},qr=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,pn.bf)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${(0,pn.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,pn.bf)(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}}}}},Yr=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,dn.Wf)(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:(0,pn.bf)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),qr(e)),Xr(e)),Vr(e)),Wr(e)),Ur(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"}}},Gr=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,dn.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,dn.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,dn.oN)(e))}}}},Kr=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},yr(e)),Qr=e=>(0,qt.TS)(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"},br(e)),Jr=(0,Xt.I$)("Pagination",(e=>{const t=Qr(e);return[Yr(t),Gr(t)]}),Kr),eo=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:`${(0,pn.bf)(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}}}}},to=(0,Xt.bk)(["Pagination","bordered"],(e=>{const t=Qr(e);return[eo(t)]}),Kr);var no=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{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:i,style:a,size:s,locale:c,selectComponentClass:u,responsive:h,showSizeChanger:m}=e,v=no(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:b}=(0,$.Z)(h),[,y]=(0,Ut.ZP)(),{getPrefixCls:S,direction:E,pagination:w={}}=o.useContext(P.E_),_=S("pagination",t),[C,x,O]=Jr(_),T=null!=m?m:w.showSizeChanger,k=o.useMemo((()=>{const e=o.createElement("span",{className:`${_}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},"rtl"===E?o.createElement(p.Z,null):o.createElement(f.Z,null)),nextIcon:o.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},"rtl"===E?o.createElement(f.Z,null):o.createElement(p.Z,null)),jumpPrevIcon:o.createElement("a",{className:`${_}-item-link`},o.createElement("div",{className:`${_}-item-container`},"rtl"===E?o.createElement(d,{className:`${_}-item-link-icon`}):o.createElement(l,{className:`${_}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${_}-item-link`},o.createElement("div",{className:`${_}-item-container`},"rtl"===E?o.createElement(l,{className:`${_}-item-link-icon`}):o.createElement(d,{className:`${_}-item-link-icon`}),e))}}),[E,_]),[R]=(0,I.Z)("Pagination",L.Z),N=Object.assign(Object.assign({},R),c),D=(0,M.Z)(s),j="small"===D||!(!b||D||!h),Z=S("select",n),z=g()({[`${_}-mini`]:j,[`${_}-rtl`]:"rtl"===E,[`${_}-bordered`]:y.wireframe},null==w?void 0:w.className,r,i,x,O),B=Object.assign(Object.assign({},null==w?void 0:w.style),a);return C(o.createElement(o.Fragment,null,y.wireframe&&o.createElement(to,{prefixCls:_}),o.createElement(A,Object.assign({},k,v,{style:B,prefixCls:_,selectPrefixCls:Z,className:z,selectComponentClass:u||(j?mr:vr),locale:N,showSizeChanger:T}))))},oo=ro},4173:(e,t,n)=>{"use strict";n.d(t,{BR:()=>p,ZP:()=>g,ri:()=>f});var r=n(3967),o=n.n(r),i=n(344),a=n(7294),s=n(3124),l=n(8675),c=n(1418),u=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{const n=a.useContext(d),r=a.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:i,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return o()(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},p=e=>{let{children:t}=e;return a.createElement(d.Provider,{value:null},t)},h=e=>{var{children:t}=e,n=u(e,["children"]);return a.createElement(d.Provider,{value:n},t)},g=e=>{const{getPrefixCls:t,direction:n}=a.useContext(s.E_),{size:r,direction:f,block:p,prefixCls:g,className:m,rootClassName:v,children:b}=e,y=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),S=(0,l.Z)((e=>null!=r?r:e)),E=t("space-compact",g),[w,_]=(0,c.Z)(E),C=o()(E,_,{[`${E}-rtl`]:"rtl"===n,[`${E}-block`]:p,[`${E}-vertical`]:"vertical"===f},m,v),x=a.useContext(d),O=(0,i.Z)(b),T=a.useMemo((()=>O.map(((e,t)=>{const n=e&&e.key||`${E}-item-${t}`;return a.createElement(h,{key:n,compactSize:S,compactDirection:f,isFirstItem:0===t&&(!x||(null==x?void 0:x.isFirstItem)),isLastItem:t===O.length-1&&(!x||(null==x?void 0:x.isLastItem))},e)}))),[r,O,x]);return 0===O.length?null:w(a.createElement("div",Object.assign({className:C},y),T))}},8230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(7294),o=n(3967),i=n.n(o),a=n(344),s=n(8065),l=n(3124),c=n(4173);const u=r.createContext({latestIndex:0}),d=u.Provider,f=e=>{let{className:t,index:n,children:o,split:i,style:a}=e;const{latestIndex:s}=r.useContext(u);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:a},o),n{var n,o;const{getPrefixCls:c,space:u,direction:g}=r.useContext(l.E_),{size:m=(null==u?void 0:u.size)||"small",align:v,className:b,rootClassName:y,children:S,direction:E="horizontal",prefixCls:w,split:_,style:C,wrap:x=!1,classNames:O,styles:T}=e,k=h(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[R,N]=Array.isArray(m)?m:[m,m],A=(0,s.n)(N),L=(0,s.n)(R),P=(0,s.T)(N),M=(0,s.T)(R),$=(0,a.Z)(S,{keepEmpty:!0}),I=void 0===v&&"horizontal"===E?"center":v,D=c("space",w),[j,Z,z]=(0,p.Z)(D),B=i()(D,null==u?void 0:u.className,Z,`${D}-${E}`,{[`${D}-rtl`]:"rtl"===g,[`${D}-align-${I}`]:I,[`${D}-gap-row-${N}`]:A,[`${D}-gap-col-${R}`]:L},b,y,z),F=i()(`${D}-item`,null!==(n=null==O?void 0:O.item)&&void 0!==n?n:null===(o=null==u?void 0:u.classNames)||void 0===o?void 0:o.item);let H=0;const U=$.map(((e,t)=>{var n,o;null!=e&&(H=t);const i=e&&e.key||`${F}-${t}`;return r.createElement(f,{className:F,key:i,index:t,split:_,style:null!==(n=null==T?void 0:T.item)&&void 0!==n?n:null===(o=null==u?void 0:u.styles)||void 0===o?void 0:o.item},e)})),W=r.useMemo((()=>({latestIndex:H})),[H]);if(0===$.length)return null;const V={};return x&&(V.flexWrap="wrap"),!L&&M&&(V.columnGap=R),!A&&P&&(V.rowGap=N),j(r.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},V),null==u?void 0:u.style),C)},k),r.createElement(d,{value:W},U)))}));const m=g;m.Compact=c.ZP;const v=m},1418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1939),o=n(5503);const i=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},a=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"}}}},s=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}}}},l=(0,r.I$)("Space",(e=>{const t=(0,o.TS)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[a(t),s(t),i(t)]}),(()=>({})),{resetStyle:!1})},4184:(e,t,n)=>{"use strict";function r(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["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({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function o(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 i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,i=`${n}-compact`;return{[i]:Object.assign(Object.assign({},r(e,i,t)),o(n,i,t))}}n.d(t,{c:()=>i})},4747:(e,t,n)=>{"use strict";n.d(t,{Lx:()=>l,Qy:()=>d,Ro:()=>a,Wf:()=>i,dF:()=>s,du:()=>c,oN:()=>u,vS:()=>o});var r=n(7395);const o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=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}},a=()=>({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"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=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"}}}),c=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},u=e=>({outline:`${(0,r.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},6932:(e,t,n)=>{"use strict";n.d(t,{J$:()=>s});var r=n(7395),o=n(3590);const i=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,s=t?"&":"";return[(0,o.R)(r,i,a,e.motionDurationMid,t),{[`\n ${s}${r}-enter,\n ${s}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${r}-leave`]:{animationTimingFunction:"linear"}}]}},3590:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});const r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),i=function(e,t,n,i){const a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},o(i)),{animationPlayState:"paused"}),[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},438:(e,t,n)=>{"use strict";n.d(t,{_y:()=>f});var r=n(7395),o=n(3590);const i=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),s=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d={zoom:{inKeyframes:i,outKeyframes:a},"zoom-big":{inKeyframes:s,outKeyframes:l},"zoom-big-fast":{inKeyframes:s,outKeyframes:l},"zoom-left":{inKeyframes:new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},f=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=d[t];return[(0,o.R)(r,i,a,"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}}]}},3083:(e,t,n)=>{"use strict";n.d(t,{Mj:()=>c,uH:()=>s,u_:()=>l});var r=n(7294),o=n(7395),i=n(2842),a=n(2790);const s=(0,o.jG)(i.Z),l={token:a.Z,override:{override:a.Z},hashed:!0},c=r.createContext(l)},9372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(7395),o=n(2842),i=n(2790),a=n(4595);const s=e=>{const t=(null==e?void 0:e.algorithm)?(0,r.jG)(e.algorithm):(0,r.jG)(o.Z),n=Object.assign(Object.assign({},i.Z),null==e?void 0:e.token);return(0,r.t2)(n,{override:null==e?void 0:e.token},t,a.Z)};var l=n(7606),c=n(3083),u=n(372);var d=n(9594);const f=(e,t)=>{const n=null!=t?t:(0,o.Z)(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,d.Z)(r)),{controlHeight:i}),(0,u.Z)(Object.assign(Object.assign({},n),{controlHeight:i})))};var p=n(1242),h=n(57),g=n(274);const m=(e,t)=>new g.C(e).setAlpha(t).toRgbString(),v=(e,t)=>new g.C(e).lighten(t).toHexString(),b=e=>{const t=(0,p.R_)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},y=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:m(r,.85),colorTextSecondary:m(r,.65),colorTextTertiary:m(r,.45),colorTextQuaternary:m(r,.25),colorFill:m(r,.18),colorFillSecondary:m(r,.12),colorFillTertiary:m(r,.08),colorFillQuaternary:m(r,.04),colorBgElevated:v(n,12),colorBgContainer:v(n,8),colorBgLayout:v(n,0),colorBgSpotlight:v(n,26),colorBgBlur:m(r,.04),colorBorder:v(n,26),colorBorderSecondary:v(n,19)}},S=(e,t)=>{const n=Object.keys(i.M).map((t=>{const n=(0,p.R_)(e[t],{theme:"dark"});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)),{}),r=null!=t?t:(0,o.Z)(e);return Object.assign(Object.assign(Object.assign({},r),n),(0,h.Z)(e,{generateColorPalettes:b,generateNeutralColorPalettes:y}))};const E={defaultConfig:c.u_,defaultSeed:c.u_.token,useToken:function(){const[e,t,n]=(0,l.ZP)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:o.Z,darkAlgorithm:S,compactAlgorithm:f,getDesignToken:s}},2842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(1242),o=n(372);var i=n(2790),a=n(57);const s=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}};var l=n(274);const c=(e,t)=>new l.C(e).setAlpha(t).toRgbString(),u=(e,t)=>new l.C(e).darken(t).toHexString(),d=e=>{const t=(0,r.R_)(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]}},f=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:c(r,.88),colorTextSecondary:c(r,.65),colorTextTertiary:c(r,.45),colorTextQuaternary:c(r,.25),colorFill:c(r,.15),colorFillSecondary:c(r,.06),colorFillTertiary:c(r,.04),colorFillQuaternary:c(r,.02),colorBgLayout:u(n,4),colorBgContainer:u(n,0),colorBgElevated:u(n,0),colorBgSpotlight:c(r,.85),colorBgBlur:"transparent",colorBorder:u(n,15),colorBorderSecondary:u(n,6)}};var p=n(9594);function h(e){const t=Object.keys(i.M).map((t=>{const n=(0,r.R_)(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),(0,a.Z)(e,{generateColorPalettes:d,generateNeutralColorPalettes:f})),(0,p.Z)(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)),(0,o.Z)(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},s(r))}(e))}},2790:(e,t,n)=>{"use strict";n.d(t,{M:()=>r,Z:()=>o});const r={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"},o=Object.assign(Object.assign({},r),{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})},57:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(274);function o(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:i,colorWarning:a,colorError:s,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(i),h=n(a),g=n(s),m=n(l),v=o(u,d),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new r.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},9594:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1734);const o=e=>{const t=(0,r.Z)(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),i=n[1],a=n[0],s=n[2],l=o[1],c=o[0],u=o[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(u*s),fontHeightSM:Math.round(c*a),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}}},1734:(e,t,n)=>{"use strict";function r(e){return(e+8)/e}function o(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:r(e)})))}n.d(t,{D:()=>r,Z:()=>o})},7606:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>h,ID:()=>d,NJ:()=>u});var r=n(7294),o=n(7395);const i="5.13.3";var a=n(3083),s=n(2790),l=n(4595),c=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{const r=n.getDerivativeToken(e),{override:o}=t,i=c(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=(0,l.Z)(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=c(n,["theme"]);let i=o;r&&(i=p(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function h(){const{token:e,hashed:t,theme:n,override:c,cssVar:h}=r.useContext(a.Mj),g=`${i}-${t||""}`,m=n||a.uH,[v,b,y]=(0,o.fp)(m,[s.Z,e],{salt:g,override:c,getComputedToken:p,formatToken:l.Z,cssVar:h&&{prefix:h.prefix,key:h.key,unitless:u,ignore:d,preserve:f}});return[m,y,t?b:"",v,h]}},4595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(274),o=n(2790);function i(e){return e>=0&&e<=255}const a=function(e,t){const{r:n,g:o,b:a,a:s}=new r.C(e).toRgb();if(s<1)return e;const{r:l,g:c,b:u}=new r.C(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-l*(1-e))/e),s=Math.round((o-c*(1-e))/e),d=Math.round((a-u*(1-e))/e);if(i(t)&&i(s)&&i(d))return new r.C({r:t,g:s,b:d,a:Math.round(100*e)/100}).toRgbString()}return new r.C({r:n,g:o,b:a,a:1}).toRgbString()};var s=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{delete i[e]}));const l=Object.assign(Object.assign({},n),i),c=1200,u=1600;if(!1===l.motion){const e="0s";l.motionDurationFast=e,l.motionDurationMid=e,l.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},l),{colorFillContent:l.colorFillSecondary,colorFillContentHover:l.colorFill,colorFillAlter:l.colorFillQuaternary,colorBgContainerDisabled:l.colorFillTertiary,colorBorderBg:l.colorBgContainer,colorSplit:a(l.colorBorderSecondary,l.colorBgContainer),colorTextPlaceholder:l.colorTextQuaternary,colorTextDisabled:l.colorTextQuaternary,colorTextHeading:l.colorText,colorTextLabel:l.colorTextSecondary,colorTextDescription:l.colorTextTertiary,colorTextLightSolid:l.colorWhite,colorHighlight:l.colorError,colorBgTextHover:l.colorFillSecondary,colorBgTextActive:l.colorFill,colorIcon:l.colorTextTertiary,colorIconHover:l.colorText,colorErrorOutline:a(l.colorErrorBg,l.colorBgContainer),colorWarningOutline:a(l.colorWarningBg,l.colorBgContainer),fontSizeIcon:l.fontSizeSM,lineWidthFocus:4*l.lineWidth,lineWidth:l.lineWidth,controlOutlineWidth:2*l.lineWidth,controlInteractiveSize:l.controlHeight/2,controlItemBgHover:l.colorFillTertiary,controlItemBgActive:l.colorPrimaryBg,controlItemBgActiveHover:l.colorPrimaryBgHover,controlItemBgActiveDisabled:l.colorFill,controlTmpOutline:l.colorFillQuaternary,controlOutline:a(l.colorPrimaryBg,l.colorBgContainer),lineType:l.lineType,borderRadius:l.borderRadius,borderRadiusXS:l.borderRadiusXS,borderRadiusSM:l.borderRadiusSM,borderRadiusLG:l.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:l.sizeXXS,paddingXS:l.sizeXS,paddingSM:l.sizeSM,padding:l.size,paddingMD:l.sizeMD,paddingLG:l.sizeLG,paddingXL:l.sizeXL,paddingContentHorizontalLG:l.sizeLG,paddingContentVerticalLG:l.sizeMS,paddingContentHorizontal:l.sizeMS,paddingContentVertical:l.sizeSM,paddingContentHorizontalSM:l.size,paddingContentVerticalSM:l.sizeXS,marginXXS:l.sizeXXS,marginXS:l.sizeXS,marginSM:l.sizeSM,margin:l.size,marginMD:l.sizeMD,marginLG:l.sizeLG,marginXL:l.sizeXL,marginXXL:l.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:c,screenXLMin:c,screenXLMax:1599,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new r.C("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new r.C("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new r.C("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)"}),i)}},1939:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>x,I$:()=>T,bk:()=>O});var r=n(7294),o=n(7395),i=(n(6790),n(3124)),a=n(4747),s=n(7606),l=n(5671),c=n(3144),u=n(2963),d=n(8814),f=n(1120),p=n(9340);const h=(0,c.Z)((function e(){(0,l.Z)(this,e)}));let g=function(e){function t(e){var n,r,o,i;return(0,l.Z)(this,t),r=this,o=t,o=(0,f.Z)(o),(n=(0,u.Z)(r,(0,d.Z)()?Reflect.construct(o,i||[],(0,f.Z)(r).constructor):o.apply(r,i))).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,p.Z)(t,e),(0,c.Z)(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}(h);const m="CALC_UNIT";function v(e){return"number"==typeof e?`${e}${m}`:e}let b=function(e){function t(e){var n,r,o,i;return(0,l.Z)(this,t),r=this,o=t,o=(0,f.Z)(o),(n=(0,u.Z)(r,(0,d.Z)()?Reflect.construct(o,i||[],(0,f.Z)(r).constructor):o.apply(r,i))).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=v(e):"string"==typeof e&&(n.result=e),n}return(0,p.Z)(t,e),(0,c.Z)(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} + ${v(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} - ${v(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(`${m}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}]),t}(h);const y=e=>{const t="css"===e?b:g;return e=>new t(e)};var S=n(5503),E=n(3269);const w=(e,t,n)=>{var r;return"function"==typeof n?n((0,S.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},_=(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},C=(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("-")}`;function x(e,t,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c=Array.isArray(e)?e:[e,e],[u]=c,d=c.join("-");return e=>{const[c,f,p,h,g]=(0,s.ZP)(),{getPrefixCls:m,iconPrefixCls:v,csp:b}=(0,r.useContext)(i.E_),x=m(),O=g?"css":"js",T=y(O),{max:k,min:R}=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(0,o.bf)(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.bf)(e))).join(",")})`}}}(O),N={theme:c,token:h,hashId:p,nonce:()=>null==b?void 0:b.nonce,clientOnly:l.clientOnly,order:l.order||-999};(0,o.xy)(Object.assign(Object.assign({},N),{clientOnly:!1,path:["Shared",x]}),(()=>[{"&":(0,a.Lx)(h)}])),(0,E.Z)(v,b);return[(0,o.xy)(Object.assign(Object.assign({},N),{path:[d,e,v]}),(()=>{if(!1===l.injectStyle)return[];const{token:r,flush:i}=(0,S.ZP)(h),s=w(u,f,n),c=`.${e}`,d=_(u,f,s,{deprecatedTokens:l.deprecatedTokens});g&&Object.keys(s).forEach((e=>{s[e]=`var(${(0,o.ks)(e,C(u,g.prefix))})`}));const m=(0,S.TS)(r,{componentCls:c,prefixCls:e,iconCls:`.${v}`,antCls:`.${x}`,calc:T,max:k,min:R},g?s:d),b=t(m,{hashId:p,prefixCls:e,rootPrefixCls:x,iconPrefixCls:v});return i(u,d),[!1===l.resetStyle?null:(0,a.du)(m,e),b]})),p]}}const O=(e,t,n,r)=>{const o=x(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},T=(e,t,n,i)=>{const a=x(e,t,n,i),l=((e,t,n)=>{function i(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:a={},injectStyle:l=!0}=null!=n?n:{},c={[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{c[i(e)]=a[e]}));const u=r=>{let{rootCls:a,cssVar:l}=r;const[,u]=(0,s.ZP)();return(0,o.CI)({path:[e],prefix:l.prefix,key:null==l?void 0:l.key,unitless:Object.assign(Object.assign({},s.NJ),c),ignore:s.ID,token:u,scope:a},(()=>{const r=w(e,u,t),o=_(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{o[i(e)]=o[e],delete o[e]})),o})),null};return t=>{const[,,,,n]=(0,s.ZP)();return[o=>l&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=a(e),[r,o]=l(t);return[r,n,o]}}},5503:(e,t,n)=>{"use strict";n.d(t,{TS:()=>i,ZP:()=>l});const r="undefined"!=typeof CSSINJS_STATISTIC;let o=!0;function i(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),o=!0,i}const a={};function s(){}const l=e=>{let t,n=e,i=s;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}}},3269:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7395),o=n(4747),i=n(7606);const a=(e,t)=>{const[n,a]=(0,i.ZP)();return(0,r.xy)({theme:n,token:a,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,o.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))}},7029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Attribute=void 0;class n{constructor(e,t,n,r){this.name=e,this.modelName=t,this.defaultValue=n,this.alwaysWriteJson=r,this.required=!1,this.fixed=!1,this.type="any"}setType(e){return this.type=e,this}setRequired(){return this.required=!0,this}setFixed(){return this.fixed=!0,this}}t.Attribute=n,n.NUMBER="number",n.STRING="string",n.BOOLEAN="boolean"},8267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeDefinitions=void 0;const r=n(7029);t.AttributeDefinitions=class{constructor(){this.attributes=[],this.nameToAttribute={}}addWithAll(e,t,n,o){const i=new r.Attribute(e,t,n,o);return this.attributes.push(i),this.nameToAttribute[e]=i,i}addInherited(e,t){return this.addWithAll(e,t,void 0,!1)}add(e,t,n){return this.addWithAll(e,void 0,t,n)}getAttributes(){return this.attributes}getModelName(e){const t=this.nameToAttribute[e];if(void 0!==t)return t.modelName}toJson(e,t){for(const n of this.attributes){const r=t[n.name];(n.alwaysWriteJson||r!==n.defaultValue)&&(e[n.name]=r)}}fromJson(e,t){for(const n of this.attributes){const r=e[n.name];t[n.name]=void 0===r?n.defaultValue:r}}update(e,t){for(const n of this.attributes)if(e.hasOwnProperty(n.name)){const r=e[n.name];void 0===r?delete t[n.name]:t[n.name]=r}}setDefaults(e){for(const t of this.attributes)e[t.name]=t.defaultValue}toTypescriptInterface(e,t){const n=[],r=this.attributes.sort(((e,t)=>e.name.localeCompare(t.name)));n.push("export interface I"+e+"Attributes {");for(let e=0;e0?" // "+e:""))}}return n.push("}"),n.join("\n")}}},232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DockLocation=void 0;const r=n(3380),o=n(807);class i{static getByName(e){return i.values[e]}static getLocation(e,t,n){if(t=(t-e.x)/e.width,n=(n-e.y)/e.height,t>=.25&&t<.75&&n>=.25&&n<.75)return i.CENTER;const r=n>=1-t;return n>=t?r?i.BOTTOM:i.LEFT:r?i.RIGHT:i.TOP}constructor(e,t,n){this._name=e,this._orientation=t,this._indexPlus=n,i.values[this._name]=this}getName(){return this._name}getOrientation(){return this._orientation}getDockRect(e){return this===i.TOP?new o.Rect(e.x,e.y,e.width,e.height/2):this===i.BOTTOM?new o.Rect(e.x,e.getBottom()-e.height/2,e.width,e.height/2):this===i.LEFT?new o.Rect(e.x,e.y,e.width/2,e.height):this===i.RIGHT?new o.Rect(e.getRight()-e.width/2,e.y,e.width/2,e.height):e.clone()}split(e,t){if(this===i.TOP){return{start:new o.Rect(e.x,e.y,e.width,t),end:new o.Rect(e.x,e.y+t,e.width,e.height-t)}}if(this===i.LEFT){return{start:new o.Rect(e.x,e.y,t,e.height),end:new o.Rect(e.x+t,e.y,e.width-t,e.height)}}if(this===i.RIGHT){return{start:new o.Rect(e.getRight()-t,e.y,t,e.height),end:new o.Rect(e.x,e.y,e.width-t,e.height)}}return{start:new o.Rect(e.x,e.getBottom()-t,e.width,t),end:new o.Rect(e.x,e.y,e.width,e.height-t)}}reflect(){return this===i.TOP?i.BOTTOM:this===i.LEFT?i.RIGHT:this===i.RIGHT?i.LEFT:i.TOP}toString(){return"(DockLocation: name="+this._name+", orientation="+this._orientation+")"}}t.DockLocation=i,i.values={},i.TOP=new i("top",r.Orientation.VERT,0),i.BOTTOM=new i("bottom",r.Orientation.VERT,1),i.LEFT=new i("left",r.Orientation.HORZ,0),i.RIGHT=new i("right",r.Orientation.HORZ,1),i.CENTER=new i("center",r.Orientation.VERT,0)},268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragDrop=void 0;const r=n(807),o=!("undefined"==typeof window||!window.document||!window.document.createElement);class i{constructor(){this._manualGlassManagement=!1,this._startX=0,this._startY=0,this._dragDepth=0,this._glassShowing=!1,this._dragging=!1,this._active=!1,o&&(this._glass=document.createElement("div"),this._glass.style.zIndex="998",this._glass.style.backgroundColor="transparent",this._glass.style.outline="none"),this._defaultGlassCursor="default",this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onKeyPress=this._onKeyPress.bind(this),this._onDragCancel=this._onDragCancel.bind(this),this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this.resizeGlass=this.resizeGlass.bind(this),this._lastClick=0,this._clickX=0,this._clickY=0}addGlass(e){var t;this._glassShowing?this._manualGlassManagement=!0:(this._document||(this._document=window.document),this._rootElement||(this._rootElement=this._document.body),this.resizeGlass(),null===(t=this._document.defaultView)||void 0===t||t.addEventListener("resize",this.resizeGlass),this._document.body.appendChild(this._glass),this._glass.tabIndex=-1,this._glass.focus(),this._glass.addEventListener("keydown",this._onKeyPress),this._glass.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._glass.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._glass.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._glassShowing=!0,this._fDragCancel=e,this._manualGlassManagement=!1)}resizeGlass(){r.Rect.fromElement(this._rootElement).positionElement(this._glass,"fixed")}hideGlass(){var e;this._glassShowing&&(this._document.body.removeChild(this._glass),null===(e=this._document.defaultView)||void 0===e||e.removeEventListener("resize",this.resizeGlass),this._glassShowing=!1,this._document=void 0,this._rootElement=void 0,this.setGlassCursorOverride(void 0))}_updateGlassCursor(){var e;this._glass.style.cursor=null!==(e=this._glassCursorOverride)&&void 0!==e?e:this._defaultGlassCursor}_setDefaultGlassCursor(e){this._defaultGlassCursor=e,this._updateGlassCursor()}setGlassCursorOverride(e){this._glassCursorOverride=e,this._updateGlassCursor()}startDrag(e,t,n,r,o,i,a,s,l){if(e&&this._lastEvent&&this._lastEvent.type.startsWith("touch")&&e.type.startsWith("mouse")&&e.timeStamp-this._lastEvent.timeStamp<500)return;if(this._dragging)return;this._lastEvent=e,this._document=s||window.document,this._rootElement=l||this._document.body;const c=this._getLocationEvent(e);this.addGlass(o),e?(this._startX=c.clientX,this._startY=c.clientY,window.matchMedia&&!window.matchMedia("(pointer: fine)").matches||this._setDefaultGlassCursor(getComputedStyle(e.target).cursor),this._stopPropagation(e),this._preventDefault(e)):(this._startX=0,this._startY=0,this._setDefaultGlassCursor("default")),this._dragging=!1,this._fDragStart=t,this._fDragMove=n,this._fDragEnd=r,this._fDragCancel=o,this._fClick=i,this._fDblClick=a,this._active=!0,"dragenter"===(null==e?void 0:e.type)?(this._dragDepth=1,this._rootElement.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._rootElement.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._rootElement.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._document.addEventListener("dragend",this._onDragCancel,{passive:!1}),this._document.addEventListener("drop",this._onMouseUp,{passive:!1})):(this._document.addEventListener("mouseup",this._onMouseUp,{passive:!1}),this._document.addEventListener("mousemove",this._onMouseMove,{passive:!1}),this._document.addEventListener("touchend",this._onMouseUp,{passive:!1}),this._document.addEventListener("touchmove",this._onMouseMove,{passive:!1}))}isDragging(){return this._dragging}isActive(){return this._active}toString(){return"(DragDrop: startX="+this._startX+", startY="+this._startY+", dragging="+this._dragging+")"}_onKeyPress(e){"Escape"===e.code&&this._onDragCancel()}_onDragCancel(){this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this.hideGlass(),void 0!==this._fDragCancel&&this._fDragCancel(this._dragging),this._dragging=!1,this._active=!1}_getLocationEvent(e){let t=e;return e&&e.touches&&(t=e.touches[0]),t}_getLocationEventEnd(e){let t=e;return e.changedTouches&&(t=e.changedTouches[0]),t}_stopPropagation(e){e.stopPropagation&&e.stopPropagation()}_preventDefault(e){return e.preventDefault&&e.cancelable&&e.preventDefault(),e}_onMouseMove(e){this._lastEvent=e;const t=this._getLocationEvent(e);return this._stopPropagation(e),this._preventDefault(e),!this._dragging&&(Math.abs(this._startX-t.clientX)>5||Math.abs(this._startY-t.clientY)>5)&&(this._dragging=!0,this._fDragStart&&(this._setDefaultGlassCursor("move"),this._dragging=this._fDragStart({clientX:this._startX,clientY:this._startY}))),this._dragging&&this._fDragMove&&this._fDragMove(t),!1}_onMouseUp(e){this._lastEvent=e;const t=this._getLocationEventEnd(e);if(this._stopPropagation(e),this._preventDefault(e),this._active=!1,this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this._manualGlassManagement||this.hideGlass(),this._dragging)this._dragging=!1,this._fDragEnd&&this._fDragEnd(e);else if(this._fDragCancel&&this._fDragCancel(this._dragging),Math.abs(this._startX-t.clientX)<=5&&Math.abs(this._startY-t.clientY)<=5){let n=!1;const r=(new Date).getTime();Math.abs(this._clickX-t.clientX)<=5&&Math.abs(this._clickY-t.clientY)<=5&&r-this._lastClick<500&&this._fDblClick&&(this._fDblClick(e),n=!0),!n&&this._fClick&&this._fClick(e),this._lastClick=r,this._clickX=t.clientX,this._clickY=t.clientY}return!1}_onDragEnter(e){return this._preventDefault(e),this._stopPropagation(e),this._dragDepth++,!1}_onDragLeave(e){return this._preventDefault(e),this._stopPropagation(e),this._dragDepth--,this._dragDepth<=0&&this._onDragCancel(),!1}}t.DragDrop=i,i.instance=new i},5748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropInfo=void 0;t.DropInfo=class{constructor(e,t,n,r,o){this.node=e,this.rect=t,this.location=n,this.index=r,this.className=o}}},5551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nLabel=void 0,function(e){e.Close_Tab="Close",e.Close_Tabset="Close tabset",e.Move_Tab="Move: ",e.Move_Tabset="Move tabset",e.Maximize="Maximize tabset",e.Restore="Restore tabset",e.Float_Tab="Show selected tab in floating window",e.Overflow_Menu_Tooltip="Hidden tabs",e.Floating_Window_Message="This panel is shown in a floating window",e.Floating_Window_Show_Window="Show window",e.Floating_Window_Dock_Window="Dock window",e.Error_rendering_component="Error rendering component"}(t.I18nLabel||(t.I18nLabel={}))},3380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Orientation=void 0;class n{static flip(e){return e===n.HORZ?n.VERT:n.HORZ}constructor(e){this._name=e}getName(){return this._name}toString(){return this._name}}t.Orientation=n,n.HORZ=new n("horz"),n.VERT=new n("vert")},31:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showPopup=void 0;const r=n(7294),o=n(268),i=n(4115),a=n(5797);t.showPopup=function(e,t,n,a,l,c){var u;const d=a.getRootDiv(),f=a.getClassName,p=e.ownerDocument,h=e.getBoundingClientRect(),g=null!==(u=null==d?void 0:d.getBoundingClientRect())&&void 0!==u?u:new DOMRect(0,0,100,100),m=p.createElement("div");m.className=f(i.CLASSES.FLEXLAYOUT__POPUP_MENU_CONTAINER),h.leftv())),o.DragDrop.instance.setGlassCursorOverride("default"),d&&d.appendChild(m);const v=()=>{a.hidePortal(),o.DragDrop.instance.hideGlass(),d&&d.removeChild(m),m.removeEventListener("mousedown",b),p.removeEventListener("mousedown",y)},b=e=>{e.stopPropagation()},y=e=>{v()};m.addEventListener("mousedown",b),p.addEventListener("mousedown",y),a.showPortal(r.createElement(s,{currentDocument:p,onSelect:n,onHide:v,items:t,classNameMapper:f,layout:a,iconFactory:l,titleFactory:c}),m)};const s=e=>{const{items:t,onHide:n,onSelect:o,classNameMapper:s,layout:l,iconFactory:c,titleFactory:u}=e,d=t.map(((e,t)=>r.createElement("div",{key:e.index,className:s(i.CLASSES.FLEXLAYOUT__POPUP_MENU_ITEM),"data-layout-path":"/popup-menu/tb"+t,onClick:t=>((e,t)=>{o(e),n(),t.stopPropagation()})(e,t),title:e.node.getHelpText()},e.node.getModel().isLegacyOverflowMenu()?e.node._getNameForOverflowMenu():r.createElement(a.TabButtonStamp,{node:e.node,layout:l,iconFactory:c,titleFactory:u}))));return r.createElement("div",{className:s(i.CLASSES.FLEXLAYOUT__POPUP_MENU),"data-layout-path":"/popup-menu"},d)}},807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rect=void 0;const r=n(3380);class o{static empty(){return new o(0,0,0,0)}constructor(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}static fromElement(e){let{x:t,y:n,width:r,height:i}=e.getBoundingClientRect();return new o(t,n,r,i)}clone(){return new o(this.x,this.y,this.width,this.height)}equals(e){return this.x===(null==e?void 0:e.x)&&this.y===(null==e?void 0:e.y)&&this.width===(null==e?void 0:e.width)&&this.height===(null==e?void 0:e.height)}getBottom(){return this.y+this.height}getRight(){return this.x+this.width}getCenter(){return{x:this.x+this.width/2,y:this.y+this.height/2}}positionElement(e,t){this.styleWithPosition(e.style,t)}styleWithPosition(e,t="absolute"){return e.left=this.x+"px",e.top=this.y+"px",e.width=Math.max(0,this.width)+"px",e.height=Math.max(0,this.height)+"px",e.position=t,e}contains(e,t){return this.x<=e&&e<=this.getRight()&&this.y<=t&&t<=this.getBottom()}removeInsets(e){return new o(this.x+e.left,this.y+e.top,Math.max(0,this.width-e.left-e.right),Math.max(0,this.height-e.top-e.bottom))}centerInRect(e){this.x=(e.width-this.width)/2,this.y=(e.height-this.height)/2}_getSize(e){let t=this.width;return e===r.Orientation.VERT&&(t=this.height),t}toString(){return"(Rect: x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"}}t.Rect=o},4115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLASSES=void 0,function(e){e.FLEXLAYOUT__BORDER="flexlayout__border",e.FLEXLAYOUT__BORDER_="flexlayout__border_",e.FLEXLAYOUT__BORDER_BUTTON="flexlayout__border_button",e.FLEXLAYOUT__BORDER_BUTTON_="flexlayout__border_button_",e.FLEXLAYOUT__BORDER_BUTTON_CONTENT="flexlayout__border_button_content",e.FLEXLAYOUT__BORDER_BUTTON_LEADING="flexlayout__border_button_leading",e.FLEXLAYOUT__BORDER_BUTTON_TRAILING="flexlayout__border_button_trailing",e.FLEXLAYOUT__BORDER_BUTTON__SELECTED="flexlayout__border_button--selected",e.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED="flexlayout__border_button--unselected",e.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW="flexlayout__border_toolbar_button_overflow",e.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_="flexlayout__border_toolbar_button_overflow_",e.FLEXLAYOUT__BORDER_INNER="flexlayout__border_inner",e.FLEXLAYOUT__BORDER_INNER_="flexlayout__border_inner_",e.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER="flexlayout__border_inner_tab_container",e.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_="flexlayout__border_inner_tab_container_",e.FLEXLAYOUT__BORDER_TAB_DIVIDER="flexlayout__border_tab_divider",e.FLEXLAYOUT__BORDER_SIZER="flexlayout__border_sizer",e.FLEXLAYOUT__BORDER_TOOLBAR="flexlayout__border_toolbar",e.FLEXLAYOUT__BORDER_TOOLBAR_="flexlayout__border_toolbar_",e.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON="flexlayout__border_toolbar_button",e.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT="flexlayout__border_toolbar_button-float",e.FLEXLAYOUT__DRAG_RECT="flexlayout__drag_rect",e.FLEXLAYOUT__EDGE_RECT="flexlayout__edge_rect",e.FLEXLAYOUT__EDGE_RECT_TOP="flexlayout__edge_rect_top",e.FLEXLAYOUT__EDGE_RECT_LEFT="flexlayout__edge_rect_left",e.FLEXLAYOUT__EDGE_RECT_BOTTOM="flexlayout__edge_rect_bottom",e.FLEXLAYOUT__EDGE_RECT_RIGHT="flexlayout__edge_rect_right",e.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER="flexlayout__error_boundary_container",e.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT="flexlayout__error_boundary_content",e.FLEXLAYOUT__FLOATING_WINDOW_CONTENT="flexlayout__floating_window_content",e.FLEXLAYOUT__FLOATING_WINDOW_TAB="flexlayout__floating_window_tab",e.FLEXLAYOUT__LAYOUT="flexlayout__layout",e.FLEXLAYOUT__OUTLINE_RECT="flexlayout__outline_rect",e.FLEXLAYOUT__OUTLINE_RECT_EDGE="flexlayout__outline_rect_edge",e.FLEXLAYOUT__SPLITTER="flexlayout__splitter",e.FLEXLAYOUT__SPLITTER_EXTRA="flexlayout__splitter_extra",e.FLEXLAYOUT__SPLITTER_="flexlayout__splitter_",e.FLEXLAYOUT__SPLITTER_BORDER="flexlayout__splitter_border",e.FLEXLAYOUT__SPLITTER_DRAG="flexlayout__splitter_drag",e.FLEXLAYOUT__TAB="flexlayout__tab",e.FLEXLAYOUT__TABSET="flexlayout__tabset",e.FLEXLAYOUT__TABSET_HEADER="flexlayout__tabset_header",e.FLEXLAYOUT__TABSET_HEADER_SIZER="flexlayout__tabset_header_sizer",e.FLEXLAYOUT__TABSET_HEADER_CONTENT="flexlayout__tabset_header_content",e.FLEXLAYOUT__TABSET_MAXIMIZED="flexlayout__tabset-maximized",e.FLEXLAYOUT__TABSET_SELECTED="flexlayout__tabset-selected",e.FLEXLAYOUT__TABSET_SIZER="flexlayout__tabset_sizer",e.FLEXLAYOUT__TABSET_TAB_DIVIDER="flexlayout__tabset_tab_divider",e.FLEXLAYOUT__TABSET_CONTENT="flexlayout__tabset_content",e.FLEXLAYOUT__TABSET_TABBAR_INNER="flexlayout__tabset_tabbar_inner",e.FLEXLAYOUT__TABSET_TABBAR_INNER_="flexlayout__tabset_tabbar_inner_",e.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER="flexlayout__tabset_tabbar_inner_tab_container",e.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_="flexlayout__tabset_tabbar_inner_tab_container_",e.FLEXLAYOUT__TABSET_TABBAR_OUTER="flexlayout__tabset_tabbar_outer",e.FLEXLAYOUT__TABSET_TABBAR_OUTER_="flexlayout__tabset_tabbar_outer_",e.FLEXLAYOUT__TAB_BORDER="flexlayout__tab_border",e.FLEXLAYOUT__TAB_BORDER_="flexlayout__tab_border_",e.FLEXLAYOUT__TAB_BUTTON="flexlayout__tab_button",e.FLEXLAYOUT__TAB_BUTTON_STRETCH="flexlayout__tab_button_stretch",e.FLEXLAYOUT__TAB_BUTTON_CONTENT="flexlayout__tab_button_content",e.FLEXLAYOUT__TAB_BUTTON_LEADING="flexlayout__tab_button_leading",e.FLEXLAYOUT__TAB_BUTTON_OVERFLOW="flexlayout__tab_button_overflow",e.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT="flexlayout__tab_button_overflow_count",e.FLEXLAYOUT__TAB_BUTTON_TEXTBOX="flexlayout__tab_button_textbox",e.FLEXLAYOUT__TAB_BUTTON_TRAILING="flexlayout__tab_button_trailing",e.FLEXLAYOUT__TAB_BUTTON_STAMP="flexlayout__tab_button_stamp",e.FLEXLAYOUT__TAB_FLOATING="flexlayout__tab_floating",e.FLEXLAYOUT__TAB_FLOATING_INNER="flexlayout__tab_floating_inner",e.FLEXLAYOUT__TAB_TOOLBAR="flexlayout__tab_toolbar",e.FLEXLAYOUT__TAB_TOOLBAR_BUTTON="flexlayout__tab_toolbar_button",e.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_="flexlayout__tab_toolbar_button-",e.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT="flexlayout__tab_toolbar_button-float",e.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER="flexlayout__tab_toolbar_sticky_buttons_container",e.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE="flexlayout__tab_toolbar_button-close",e.FLEXLAYOUT__POPUP_MENU_CONTAINER="flexlayout__popup_menu_container",e.FLEXLAYOUT__POPUP_MENU_ITEM="flexlayout__popup_menu_item",e.FLEXLAYOUT__POPUP_MENU="flexlayout__popup_menu"}(t.CLASSES||(t.CLASSES={}))},6352:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5295),t),o(n(9349),t),o(n(3076),t),o(n(4268),t),o(n(1073),t),o(n(7562),t),o(n(7548),t),o(n(7984),t),o(n(161),t),o(n(6466),t),o(n(89),t),o(n(996),t),o(n(191),t),o(n(6677),t),o(n(2733),t),o(n(232),t),o(n(268),t),o(n(5748),t),o(n(5551),t),o(n(3380),t),o(n(807),t),o(n(4115),t)},9349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;t.Action=class{constructor(e,t){this.type=e,this.data=t}}},3076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Actions=void 0;const r=n(9349);class o{static addNode(e,t,n,i,a){return new r.Action(o.ADD_NODE,{json:e,toNode:t,location:n.getName(),index:i,select:a})}static moveNode(e,t,n,i,a){return new r.Action(o.MOVE_NODE,{fromNode:e,toNode:t,location:n.getName(),index:i,select:a})}static deleteTab(e){return new r.Action(o.DELETE_TAB,{node:e})}static deleteTabset(e){return new r.Action(o.DELETE_TABSET,{node:e})}static renameTab(e,t){return new r.Action(o.RENAME_TAB,{node:e,text:t})}static selectTab(e){return new r.Action(o.SELECT_TAB,{tabNode:e})}static setActiveTabset(e){return new r.Action(o.SET_ACTIVE_TABSET,{tabsetNode:e})}static adjustSplit(e){const t=e.node1Id,n=e.node2Id;return new r.Action(o.ADJUST_SPLIT,{node1:t,weight1:e.weight1,pixelWidth1:e.pixelWidth1,node2:n,weight2:e.weight2,pixelWidth2:e.pixelWidth2})}static adjustBorderSplit(e,t){return new r.Action(o.ADJUST_BORDER_SPLIT,{node:e,pos:t})}static maximizeToggle(e){return new r.Action(o.MAXIMIZE_TOGGLE,{node:e})}static updateModelAttributes(e){return new r.Action(o.UPDATE_MODEL_ATTRIBUTES,{json:e})}static updateNodeAttributes(e,t){return new r.Action(o.UPDATE_NODE_ATTRIBUTES,{node:e,json:t})}static floatTab(e){return new r.Action(o.FLOAT_TAB,{node:e})}static unFloatTab(e){return new r.Action(o.UNFLOAT_TAB,{node:e})}}t.Actions=o,o.ADD_NODE="FlexLayout_AddNode",o.MOVE_NODE="FlexLayout_MoveNode",o.DELETE_TAB="FlexLayout_DeleteTab",o.DELETE_TABSET="FlexLayout_DeleteTabset",o.RENAME_TAB="FlexLayout_RenameTab",o.SELECT_TAB="FlexLayout_SelectTab",o.SET_ACTIVE_TABSET="FlexLayout_SetActiveTabset",o.ADJUST_SPLIT="FlexLayout_AdjustSplit",o.ADJUST_BORDER_SPLIT="FlexLayout_AdjustBorderSplit",o.MAXIMIZE_TOGGLE="FlexLayout_MaximizeToggle",o.UPDATE_MODEL_ATTRIBUTES="FlexLayout_UpdateModelAttributes",o.UPDATE_NODE_ATTRIBUTES="FlexLayout_UpdateNodeAttributes",o.FLOAT_TAB="FlexLayout_FloatTab",o.UNFLOAT_TAB="FlexLayout_UnFloatTab"},4268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderNode=void 0;const r=n(7029),o=n(8267),i=n(232),a=n(5748),s=n(3380),l=n(807),c=n(4115),u=n(89),d=n(191),f=n(6677),p=n(2968);class h extends u.Node{static _fromJson(e,t){const n=i.DockLocation.getByName(e.location),r=new h(n,e,t);return e.children&&(r._children=e.children.map((e=>{const n=f.TabNode._fromJson(e,t);return n._setParent(r),n}))),r}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("type",h.TYPE,!0).setType(r.Attribute.STRING).setFixed(),e.add("selected",-1).setType(r.Attribute.NUMBER),e.add("show",!0).setType(r.Attribute.BOOLEAN),e.add("config",void 0).setType("any"),e.addInherited("barSize","borderBarSize").setType(r.Attribute.NUMBER),e.addInherited("enableDrop","borderEnableDrop").setType(r.Attribute.BOOLEAN),e.addInherited("className","borderClassName").setType(r.Attribute.STRING),e.addInherited("autoSelectTabWhenOpen","borderAutoSelectTabWhenOpen").setType(r.Attribute.BOOLEAN),e.addInherited("autoSelectTabWhenClosed","borderAutoSelectTabWhenClosed").setType(r.Attribute.BOOLEAN),e.addInherited("size","borderSize").setType(r.Attribute.NUMBER),e.addInherited("minSize","borderMinSize").setType(r.Attribute.NUMBER),e.addInherited("enableAutoHide","borderEnableAutoHide").setType(r.Attribute.BOOLEAN),e}constructor(e,t,n){super(n),this._adjustedSize=0,this._calculatedBorderBarSize=0,this._location=e,this._drawChildren=[],this._attributes.id=`border_${e.getName()}`,h._attributeDefinitions.fromJson(t,this._attributes),n._addNode(this)}getLocation(){return this._location}getTabHeaderRect(){return this._tabHeaderRect}getRect(){return this._tabHeaderRect}getContentRect(){return this._contentRect}isEnableDrop(){return this._getAttr("enableDrop")}isAutoSelectTab(e){return null==e&&(e=-1!==this.getSelected()),e?this._getAttr("autoSelectTabWhenOpen"):this._getAttr("autoSelectTabWhenClosed")}getClassName(){return this._getAttr("className")}calcBorderBarSize(e){const t=this._getAttr("barSize");this._calculatedBorderBarSize=0!==t?t:e.borderBarSize}getBorderBarSize(){return this._calculatedBorderBarSize}getSize(){const e=this._getAttr("size"),t=this.getSelected();if(-1===t)return e;{const n=this._children[t],r=this._location._orientation===s.Orientation.HORZ?n._getAttr("borderWidth"):n._getAttr("borderHeight");return-1===r?e:r}}getMinSize(){return this._getAttr("minSize")}getSelected(){return this._attributes.selected}getSelectedNode(){if(-1!==this.getSelected())return this._children[this.getSelected()]}getOrientation(){return this._location.getOrientation()}getConfig(){return this._attributes.config}isMaximized(){return!1}isShowing(){return!!this._attributes.show&&(this._model._getShowHiddenBorder()===this._location||!this.isAutoHide()||0!==this._children.length)}isAutoHide(){return this._getAttr("enableAutoHide")}_setSelected(e){this._attributes.selected=e}_setSize(e){const t=this.getSelected();if(-1===t)this._attributes.size=e;else{const n=this._children[t];-1===(this._location._orientation===s.Orientation.HORZ?n._getAttr("borderWidth"):n._getAttr("borderHeight"))?this._attributes.size=e:this._location._orientation===s.Orientation.HORZ?n._setBorderWidth(e):n._setBorderHeight(e)}}_updateAttrs(e){h._attributeDefinitions.update(e,this._attributes)}_getDrawChildren(){return this._drawChildren}_setAdjustedSize(e){this._adjustedSize=e}_getAdjustedSize(){return this._adjustedSize}_layoutBorderOuter(e,t){this.calcBorderBarSize(t);const n=this._location.split(e,this.getBorderBarSize());return this._tabHeaderRect=n.start,n.end}_layoutBorderInner(e,t){this._drawChildren=[];const n=this._location,r=n.split(e,this._adjustedSize+this._model.getSplitterSize()),o=n.reflect().split(r.start,this._model.getSplitterSize());this._contentRect=o.end;for(let e=0;e0){let e=this._children[0],n=e.getTabRect();const i=n.y,s=n.height;let u=this._tabHeaderRect.x,d=0;for(let f=0;f=u&&t0){let e=this._children[0],t=e.getTabRect();const i=t.x,s=t.width;let u=this._tabHeaderRect.y,d=0;for(let f=0;f=u&&n0&&n--;let a=n;-1===a&&(a=this._children.length),e.getType()===f.TabNode.TYPE&&this._addChild(e,a),(r||!1!==r&&this.isAutoSelectTab())&&this._setSelected(a),this._model._tidy()}toJson(){const e={};return h._attributeDefinitions.toJson(e,this._attributes),e.location=this._location.getName(),e.children=this._children.map((e=>e.toJson())),e}_getSplitterBounds(e,t=!1){const n=[0,0],r=t?this.getMinSize():0,o=this._model._getOuterInnerRects().outer,a=this._model._getOuterInnerRects().inner,s=this._model.getRoot();return this._location===i.DockLocation.TOP?(n[0]=o.y+r,n[1]=Math.max(n[0],a.getBottom()-e.getHeight()-s.getMinHeight())):this._location===i.DockLocation.LEFT?(n[0]=o.x+r,n[1]=Math.max(n[0],a.getRight()-e.getWidth()-s.getMinWidth())):this._location===i.DockLocation.BOTTOM?(n[1]=o.getBottom()-e.getHeight()-r,n[0]=Math.min(n[1],a.y+s.getMinHeight())):this._location===i.DockLocation.RIGHT&&(n[1]=o.getRight()-e.getWidth()-r,n[0]=Math.min(n[1],a.x+s.getMinWidth())),n}_calculateSplit(e,t){const n=this._getSplitterBounds(e);return this._location===i.DockLocation.BOTTOM||this._location===i.DockLocation.RIGHT?Math.max(0,n[1]-t):Math.max(0,t-n[0])}_getAttributeDefinitions(){return h._attributeDefinitions}static getAttributeDefinitions(){return h._attributeDefinitions}}t.BorderNode=h,h.TYPE="border",h._attributeDefinitions=h._createAttributeDefinitions()},1073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderSet=void 0;const r=n(3380),o=n(4268);class i{static _fromJson(e,t){const n=new i(t);return n._borders=e.map((e=>o.BorderNode._fromJson(e,t))),n}constructor(e){this._model=e,this._borders=[]}getBorders(){return this._borders}_forEachNode(e){for(const t of this._borders){e(t,0);for(const n of t.getChildren())n._forEachNode(e,1)}}_toJson(){return this._borders.map((e=>e.toJson()))}_layoutBorder(e,t){const n=e.outer,o=this._model.getRoot();let i=Math.max(0,n.height-o.getMinHeight()),a=Math.max(0,n.width-o.getMinWidth()),s=0,l=0,c=0,u=0;const d=this._borders.filter((e=>e.isShowing()));for(const e of d){e._setAdjustedSize(e.getSize());const t=-1!==e.getSelected();e.getLocation().getOrientation()===r.Orientation.HORZ?(l+=e.getBorderBarSize(),t&&(a-=this._model.getSplitterSize(),l+=e.getSize(),u+=e.getSize())):(s+=e.getBorderBarSize(),t&&(i-=this._model.getSplitterSize(),s+=e.getSize(),c+=e.getSize()))}let f=0,p=!1;for(;l>a&&u>0||s>i&&c>0;){const e=d[f];if(-1!==e.getSelected()){const t=e._getAdjustedSize();l>a&&u>0&&e.getLocation().getOrientation()===r.Orientation.HORZ&&t>0&&t>e.getMinSize()?(e._setAdjustedSize(t-1),l--,u--,p=!0):s>i&&c>0&&e.getLocation().getOrientation()===r.Orientation.VERT&&t>0&&t>e.getMinSize()&&(e._setAdjustedSize(t-1),s--,c--,p=!0)}if(f=(f+1)%d.length,0===f){if(!p)break;p=!1}}for(const n of d)e.outer=n._layoutBorderOuter(e.outer,t);e.inner=e.outer;for(const n of d)e.inner=n._layoutBorderInner(e.inner,t);return e}_findDropTargetNode(e,t,n){for(const r of this._borders)if(r.isShowing()){const o=r.canDrop(e,t,n);if(void 0!==o)return o}}}t.BorderSet=i},7562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICloseType=void 0,function(e){e[e.Visible=1]="Visible",e[e.Always=2]="Always",e[e.Selected=3]="Selected"}(t.ICloseType||(t.ICloseType={}))},7548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},161:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Model=void 0;const r=n(7029),o=n(8267),i=n(232),a=n(3380),s=n(807),l=n(3076),c=n(4268),u=n(1073),d=n(996),f=n(6677),p=n(2733),h=n(2968);class g{static fromJson(e){const t=new g;return g._attributeDefinitions.fromJson(e.global,t._attributes),e.borders&&(t._borders=u.BorderSet._fromJson(e.borders,t)),t._root=d.RowNode._fromJson(e.layout,t),t._tidy(),t}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("legacyOverflowMenu",!1).setType(r.Attribute.BOOLEAN),e.add("enableEdgeDock",!0).setType(r.Attribute.BOOLEAN),e.add("rootOrientationVertical",!1).setType(r.Attribute.BOOLEAN),e.add("marginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),e.add("enableUseVisibility",!1).setType(r.Attribute.BOOLEAN),e.add("enableRotateBorderIcons",!0).setType(r.Attribute.BOOLEAN),e.add("splitterSize",-1).setType(r.Attribute.NUMBER),e.add("splitterExtra",0).setType(r.Attribute.NUMBER),e.add("tabEnableClose",!0).setType(r.Attribute.BOOLEAN),e.add("tabCloseType",1).setType("ICloseType"),e.add("tabEnableFloat",!1).setType(r.Attribute.BOOLEAN),e.add("tabEnableDrag",!0).setType(r.Attribute.BOOLEAN),e.add("tabEnableRename",!0).setType(r.Attribute.BOOLEAN),e.add("tabContentClassName",void 0).setType(r.Attribute.STRING),e.add("tabClassName",void 0).setType(r.Attribute.STRING),e.add("tabIcon",void 0).setType(r.Attribute.STRING),e.add("tabEnableRenderOnDemand",!0).setType(r.Attribute.BOOLEAN),e.add("tabDragSpeed",.3).setType(r.Attribute.NUMBER),e.add("tabBorderWidth",-1).setType(r.Attribute.NUMBER),e.add("tabBorderHeight",-1).setType(r.Attribute.NUMBER),e.add("tabSetEnableDeleteWhenEmpty",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableDrop",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableDrag",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableDivide",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableMaximize",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableClose",!1).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableSingleTabStretch",!1).setType(r.Attribute.BOOLEAN),e.add("tabSetAutoSelectTab",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetClassNameTabStrip",void 0).setType(r.Attribute.STRING),e.add("tabSetClassNameHeader",void 0).setType(r.Attribute.STRING),e.add("tabSetEnableTabStrip",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetHeaderHeight",0).setType(r.Attribute.NUMBER),e.add("tabSetTabStripHeight",0).setType(r.Attribute.NUMBER),e.add("tabSetMarginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),e.add("tabSetBorderInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),e.add("tabSetTabLocation","top").setType("ITabLocation"),e.add("tabSetMinWidth",0).setType(r.Attribute.NUMBER),e.add("tabSetMinHeight",0).setType(r.Attribute.NUMBER),e.add("borderSize",200).setType(r.Attribute.NUMBER),e.add("borderMinSize",0).setType(r.Attribute.NUMBER),e.add("borderBarSize",0).setType(r.Attribute.NUMBER),e.add("borderEnableDrop",!0).setType(r.Attribute.BOOLEAN),e.add("borderAutoSelectTabWhenOpen",!0).setType(r.Attribute.BOOLEAN),e.add("borderAutoSelectTabWhenClosed",!1).setType(r.Attribute.BOOLEAN),e.add("borderClassName",void 0).setType(r.Attribute.STRING),e.add("borderEnableAutoHide",!1).setType(r.Attribute.BOOLEAN),e}constructor(){this._borderRects={inner:s.Rect.empty(),outer:s.Rect.empty()},this._attributes={},this._idMap={},this._borders=new u.BorderSet(this),this._pointerFine=!0,this._showHiddenBorder=i.DockLocation.CENTER}_setChangeListener(e){this._changeListener=e}getActiveTabset(){return this._activeTabSet&&this.getNodeById(this._activeTabSet.getId())?this._activeTabSet:void 0}_getShowHiddenBorder(){return this._showHiddenBorder}_setShowHiddenBorder(e){this._showHiddenBorder=e}_setActiveTabset(e){this._activeTabSet=e}getMaximizedTabset(){return this._maximizedTabSet}_setMaximizedTabset(e){this._maximizedTabSet=e}getRoot(){return this._root}isRootOrientationVertical(){return this._attributes.rootOrientationVertical}isUseVisibility(){return this._attributes.enableUseVisibility}isEnableRotateBorderIcons(){return this._attributes.enableRotateBorderIcons}getBorderSet(){return this._borders}_getOuterInnerRects(){return this._borderRects}_getPointerFine(){return this._pointerFine}_setPointerFine(e){this._pointerFine=e}visitNodes(e){this._borders._forEachNode(e),this._root._forEachNode(e,0)}getNodeById(e){return this._idMap[e]}getFirstTabSet(e=this._root){const t=e.getChildren()[0];return t instanceof p.TabSetNode?t:this.getFirstTabSet(t)}doAction(e){let t;switch(e.type){case l.Actions.ADD_NODE:{const n=new f.TabNode(this,e.data.json,!0),r=this._idMap[e.data.toNode];(r instanceof p.TabSetNode||r instanceof c.BorderNode||r instanceof d.RowNode)&&(r.drop(n,i.DockLocation.getByName(e.data.location),e.data.index,e.data.select),t=n);break}case l.Actions.MOVE_NODE:{const t=this._idMap[e.data.fromNode];if(t instanceof f.TabNode||t instanceof p.TabSetNode){const n=this._idMap[e.data.toNode];(n instanceof p.TabSetNode||n instanceof c.BorderNode||n instanceof d.RowNode)&&n.drop(t,i.DockLocation.getByName(e.data.location),e.data.index,e.data.select)}break}case l.Actions.DELETE_TAB:{const t=this._idMap[e.data.node];t instanceof f.TabNode&&t._delete();break}case l.Actions.DELETE_TABSET:{const t=this._idMap[e.data.node];if(t instanceof p.TabSetNode){const e=[...t.getChildren()];for(let t=0;tthis._idMap[e.getId()]=e))}_adjustSplitSide(e,t,n){e._setWeight(t),null!=e.getWidth()&&e.getOrientation()===a.Orientation.VERT?e._updateAttrs({width:n}):null!=e.getHeight()&&e.getOrientation()===a.Orientation.HORZ&&e._updateAttrs({height:n})}toJson(){const e={};return g._attributeDefinitions.toJson(e,this._attributes),this.visitNodes((e=>{e._fireEvent("save",void 0)})),{global:e,borders:this._borders._toJson(),layout:this._root.toJson()}}getSplitterSize(){let e=this._attributes.splitterSize;return-1===e&&(e=this._pointerFine?8:12),e}isLegacyOverflowMenu(){return this._attributes.legacyOverflowMenu}getSplitterExtra(){return this._attributes.splitterExtra}isEnableEdgeDock(){return this._attributes.enableEdgeDock}_addNode(e){const t=e.getId();if(void 0!==this._idMap[t])throw new Error(`Error: each node must have a unique id, duplicate id:${e.getId()}`);"splitter"!==e.getType()&&(this._idMap[t]=e)}_layout(e,t){var n;return this._borderRects=this._borders._layoutBorder({outer:e,inner:e},t),e=this._borderRects.inner.removeInsets(this._getAttribute("marginInsets")),null===(n=this._root)||void 0===n||n.calcMinSize(),this._root._layout(e,t),e}_findDropTargetNode(e,t,n){let r=this._root._findDropTargetNode(e,t,n);return void 0===r&&(r=this._borders._findDropTargetNode(e,t,n)),r}_tidy(){this._root._tidy()}_updateAttrs(e){g._attributeDefinitions.update(e,this._attributes)}_nextUniqueId(){return"#"+(0,h.randomUUID)()}_getAttribute(e){return this._attributes[e]}setOnAllowDrop(e){this._onAllowDrop=e}_getOnAllowDrop(){return this._onAllowDrop}setOnCreateTabSet(e){this._onCreateTabSet=e}_getOnCreateTabSet(){return this._onCreateTabSet}static toTypescriptInterfaces(){console.log(g._attributeDefinitions.toTypescriptInterface("Global",void 0)),console.log(d.RowNode.getAttributeDefinitions().toTypescriptInterface("Row",g._attributeDefinitions)),console.log(p.TabSetNode.getAttributeDefinitions().toTypescriptInterface("TabSet",g._attributeDefinitions)),console.log(f.TabNode.getAttributeDefinitions().toTypescriptInterface("Tab",g._attributeDefinitions)),console.log(c.BorderNode.getAttributeDefinitions().toTypescriptInterface("Border",g._attributeDefinitions))}toString(){return JSON.stringify(this.toJson())}}t.Model=g,g._attributeDefinitions=g._createAttributeDefinitions()},89:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Node=void 0;const r=n(232),o=n(3380),i=n(807);t.Node=class{constructor(e){this._dirty=!1,this._tempSize=0,this._model=e,this._attributes={},this._children=[],this._fixed=!1,this._rect=i.Rect.empty(),this._visible=!1,this._listeners={}}getId(){let e=this._attributes.id;return void 0!==e||(e=this._model._nextUniqueId(),this._setId(e)),e}getModel(){return this._model}getType(){return this._attributes.type}getParent(){return this._parent}getChildren(){return this._children}getRect(){return this._rect}isVisible(){return this._visible}getOrientation(){return void 0===this._parent?this._model.isRootOrientationVertical()?o.Orientation.VERT:o.Orientation.HORZ:o.Orientation.flip(this._parent.getOrientation())}setEventListener(e,t){this._listeners[e]=t}removeEventListener(e){delete this._listeners[e]}_setId(e){this._attributes.id=e}_fireEvent(e,t){void 0!==this._listeners[e]&&this._listeners[e](t)}_getAttr(e){let t=this._attributes[e];if(void 0===t){const n=this._getAttributeDefinitions().getModelName(e);void 0!==n&&(t=this._model._getAttribute(n))}return t}_forEachNode(e,t){e(this,t),t++;for(const n of this._children)n._forEachNode(e,t)}_setVisible(e){e!==this._visible&&(this._fireEvent("visibility",{visible:e}),this._visible=e)}_getDrawChildren(){return this._children}_setParent(e){this._parent=e}_setRect(e){this._rect=e}_setWeight(e){this._attributes.weight=e}_setSelected(e){this._attributes.selected=e}_isFixed(){return this._fixed}_layout(e,t){this._rect=e}_findDropTargetNode(e,t,n){let r;if(this._rect.contains(t,n))if(void 0!==this._model.getMaximizedTabset())r=this._model.getMaximizedTabset().canDrop(e,t,n);else if(r=this.canDrop(e,t,n),void 0===r&&0!==this._children.length)for(const o of this._children)if(r=o._findDropTargetNode(e,t,n),void 0!==r)break;return r}canDrop(e,t,n){}_canDockInto(e,t){if(null!=t){if(t.location===r.DockLocation.CENTER&&!1===t.node.isEnableDrop())return!1;if(t.location===r.DockLocation.CENTER&&"tabset"===e.getType()&&void 0!==e.getName())return!1;if(t.location!==r.DockLocation.CENTER&&!1===t.node.isEnableDivide())return!1;if(this._model._getOnAllowDrop())return this._model._getOnAllowDrop()(e,t)}return!0}_removeChild(e){const t=this._children.indexOf(e);return-1!==t&&this._children.splice(t,1),this._dirty=!0,t}_addChild(e,t){return null!=t?this._children.splice(t,0,e):(this._children.push(e),t=this._children.length-1),e._parent=this,this._dirty=!0,t}_removeAll(){this._children=[],this._dirty=!0}_styleWithPosition(e){return null==e&&(e={}),this._rect.styleWithPosition(e)}_getTempSize(){return this._tempSize}_setTempSize(e){this._tempSize=e}isEnableDivide(){return!0}_toAttributeString(){return JSON.stringify(this._attributes,void 0,"\t")}}},996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RowNode=void 0;const r=n(7029),o=n(8267),i=n(232),a=n(5748),s=n(3380),l=n(807),c=n(4115),u=n(4268),d=n(89),f=n(191),p=n(2733);class h extends d.Node{static _fromJson(e,t){const n=new h(t,e);if(null!=e.children)for(const r of e.children)if(r.type===p.TabSetNode.TYPE){const e=p.TabSetNode._fromJson(r,t);n._addChild(e)}else{const e=h._fromJson(r,t);n._addChild(e)}return n}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("type",h.TYPE,!0).setType(r.Attribute.STRING).setFixed(),e.add("id",void 0).setType(r.Attribute.STRING),e.add("weight",100).setType(r.Attribute.NUMBER),e.add("width",void 0).setType(r.Attribute.NUMBER),e.add("height",void 0).setType(r.Attribute.NUMBER),e}constructor(e,t){super(e),this._dirty=!0,this._drawChildren=[],this._minHeight=0,this._minWidth=0,h._attributeDefinitions.fromJson(t,this._attributes),e._addNode(this)}getWeight(){return this._attributes.weight}getWidth(){return this._getAttr("width")}getHeight(){return this._getAttr("height")}_setWeight(e){this._attributes.weight=e}_layout(e,t){super._layout(e,t);const n=this._rect._getSize(this.getOrientation());let r=0,o=0,i=0,a=0;const c=this._getDrawChildren();for(const e of c){const t=e._getPrefSize(this.getOrientation());e._isFixed()?void 0!==t&&(o+=t):void 0===t?r+=e.getWeight():(i+=t,a+=e.getWeight())}let u=!1,d=n-o-i;d<0&&(d=n-o,u=!0,r+=a);let p=0,h=0;for(const e of c){const t=e._getPrefSize(this.getOrientation());if(e._isFixed())void 0!==t&&e._setTempSize(t);else if(null==t||u){if(0===r)e._setTempSize(0);else{const t=e.getMinSize(this.getOrientation()),n=Math.floor(d*(e.getWeight()/r));e._setTempSize(Math.max(t,n))}h+=e._getTempSize()}else e._setTempSize(t);p+=e._getTempSize()}if(h>0){for(;pn;){let e=!1;for(const t of c)if(!(t instanceof f.SplitterNode)){const r=t.getMinSize(this.getOrientation());t._getTempSize()>r&&p>n&&(t._setTempSize(t._getTempSize()-1),p--,e=!0)}if(!e)break}for(;p>n;){let e=!1;for(const t of c)if(!(t instanceof f.SplitterNode)){t._getTempSize()>0&&p>n&&(t._setTempSize(t._getTempSize()-1),p--,e=!0)}if(!e)break}}let g=0;for(const e of c)this.getOrientation()===s.Orientation.HORZ?e._layout(new l.Rect(this._rect.x+g,this._rect.y,e._getTempSize(),this._rect.height),t):e._layout(new l.Rect(this._rect.x,this._rect.y+g,this._rect.width,e._getTempSize()),t),g+=e._getTempSize();return!0}_getSplitterBounds(e,t=!1){const n=[0,0],r=this._getDrawChildren(),o=r.indexOf(e),i=r[o-1],a=r[o+1];if(this.getOrientation()===s.Orientation.HORZ){const r=t?i.getMinWidth():0,o=t?a.getMinWidth():0;n[0]=i.getRect().x+r,n[1]=a.getRect().getRight()-e.getWidth()-o}else{const r=t?i.getMinHeight():0,o=t?a.getMinHeight():0;n[0]=i.getRect().y+r,n[1]=a.getRect().getBottom()-e.getHeight()-o}return n}_calculateSplit(e,t){let n;const r=this._getDrawChildren(),o=r.indexOf(e),i=this._getSplitterBounds(e),a=r[o-1].getWeight()+r[o+1].getWeight(),s=Math.max(0,t-i[0]),l=Math.max(0,i[1]-t);if(s+l>0){const e=s*a/(s+l),t=l*a/(s+l);n={node1Id:r[o-1].getId(),weight1:e,pixelWidth1:s,node2Id:r[o+1].getId(),weight2:t,pixelWidth2:l}}return n}_getDrawChildren(){if(this._dirty){this._drawChildren=[];for(let e=0;el/2-u&&rthis._rect.getRight()-10&&r>l/2-u&&rs/2-u&&othis._rect.getBottom()-10&&o>s/2-u&&oe+t.getWeight()),0);0===s&&(s=100),a._setWeight(s/3);const l=!this._model.isRootOrientationVertical();if(l&&r===i.DockLocation.LEFT||!l&&r===i.DockLocation.TOP)this._addChild(a,0);else if(l&&r===i.DockLocation.RIGHT||!l&&r===i.DockLocation.BOTTOM)this._addChild(a);else if(l&&r===i.DockLocation.TOP||!l&&r===i.DockLocation.LEFT){const e=new h(this._model,{}),t=new h(this._model,{});t._setWeight(75),a._setWeight(25);for(const e of this._children)t._addChild(e);this._removeAll(),e._addChild(a),e._addChild(t),this._addChild(e)}else if(l&&r===i.DockLocation.BOTTOM||!l&&r===i.DockLocation.RIGHT){const e=new h(this._model,{}),t=new h(this._model,{});t._setWeight(75),a._setWeight(25);for(const e of this._children)t._addChild(e);this._removeAll(),e._addChild(t),e._addChild(a),this._addChild(e)}this._model._setActiveTabset(a),this._model._tidy()}toJson(){const e={};h._attributeDefinitions.toJson(e,this._attributes),e.children=[];for(const t of this._children)e.children.push(t.toJson());return e}isEnableDrop(){return!0}_getPrefSize(e){let t=this.getWidth();return e===s.Orientation.VERT&&(t=this.getHeight()),t}_getAttributeDefinitions(){return h._attributeDefinitions}_updateAttrs(e){h._attributeDefinitions.update(e,this._attributes)}static getAttributeDefinitions(){return h._attributeDefinitions}}t.RowNode=h,h.TYPE="row",h._attributeDefinitions=h._createAttributeDefinitions()},191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitterNode=void 0;const r=n(8267),o=n(3380),i=n(89);class a extends i.Node{constructor(e){super(e),this._fixed=!0,this._attributes.type=a.TYPE,e._addNode(this)}getWidth(){return this._model.getSplitterSize()}getMinWidth(){return this.getOrientation()===o.Orientation.VERT?this._model.getSplitterSize():0}getHeight(){return this._model.getSplitterSize()}getMinHeight(){return this.getOrientation()===o.Orientation.HORZ?this._model.getSplitterSize():0}getMinSize(e){return e===o.Orientation.HORZ?this.getMinWidth():this.getMinHeight()}getWeight(){return 0}_setWeight(e){}_getPrefSize(e){return this._model.getSplitterSize()}_updateAttrs(e){}_getAttributeDefinitions(){return new r.AttributeDefinitions}toJson(){}}t.SplitterNode=a,a.TYPE="splitter"},6677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabNode=void 0;const r=n(7029),o=n(8267),i=n(89);class a extends i.Node{static _fromJson(e,t,n=!0){return new a(t,e,n)}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("type",a.TYPE,!0).setType(r.Attribute.STRING),e.add("id",void 0).setType(r.Attribute.STRING),e.add("name","[Unnamed Tab]").setType(r.Attribute.STRING),e.add("altName",void 0).setType(r.Attribute.STRING),e.add("helpText",void 0).setType(r.Attribute.STRING),e.add("component",void 0).setType(r.Attribute.STRING),e.add("config",void 0).setType("any"),e.add("floating",!1).setType(r.Attribute.BOOLEAN),e.add("tabsetClassName",void 0).setType(r.Attribute.STRING),e.addInherited("enableClose","tabEnableClose").setType(r.Attribute.BOOLEAN),e.addInherited("closeType","tabCloseType").setType("ICloseType"),e.addInherited("enableDrag","tabEnableDrag").setType(r.Attribute.BOOLEAN),e.addInherited("enableRename","tabEnableRename").setType(r.Attribute.BOOLEAN),e.addInherited("className","tabClassName").setType(r.Attribute.STRING),e.addInherited("contentClassName","tabContentClassName").setType(r.Attribute.STRING),e.addInherited("icon","tabIcon").setType(r.Attribute.STRING),e.addInherited("enableRenderOnDemand","tabEnableRenderOnDemand").setType(r.Attribute.BOOLEAN),e.addInherited("enableFloat","tabEnableFloat").setType(r.Attribute.BOOLEAN),e.addInherited("borderWidth","tabBorderWidth").setType(r.Attribute.NUMBER),e.addInherited("borderHeight","tabBorderHeight").setType(r.Attribute.NUMBER),e}constructor(e,t,n=!0){super(e),this._extra={},a._attributeDefinitions.fromJson(t,this._attributes),!0===n&&e._addNode(this)}getWindow(){return this._window}getTabRect(){return this._tabRect}_setTabRect(e){this._tabRect=e}_setRenderedName(e){this._renderedName=e}_getNameForOverflowMenu(){const e=this._getAttr("altName");return void 0!==e?e:this._renderedName}getName(){return this._getAttr("name")}getHelpText(){return this._getAttr("helpText")}getComponent(){return this._getAttr("component")}getConfig(){return this._attributes.config}getExtraData(){return this._extra}isFloating(){return this._getAttr("floating")}getIcon(){return this._getAttr("icon")}isEnableClose(){return this._getAttr("enableClose")}getCloseType(){return this._getAttr("closeType")}isEnableFloat(){return this._getAttr("enableFloat")}isEnableDrag(){return this._getAttr("enableDrag")}isEnableRename(){return this._getAttr("enableRename")}getClassName(){return this._getAttr("className")}getContentClassName(){return this._getAttr("contentClassName")}getTabSetClassName(){return this._getAttr("tabsetClassName")}isEnableRenderOnDemand(){return this._getAttr("enableRenderOnDemand")}_setName(e){this._attributes.name=e,this._window&&this._window.document&&(this._window.document.title=e)}_setFloating(e){this._attributes.floating=e}_layout(e,t){e.equals(this._rect)||this._fireEvent("resize",{rect:e}),this._rect=e}_delete(){this._parent._remove(this),this._fireEvent("close",{})}toJson(){const e={};return a._attributeDefinitions.toJson(e,this._attributes),e}_updateAttrs(e){a._attributeDefinitions.update(e,this._attributes)}_getAttributeDefinitions(){return a._attributeDefinitions}_setWindow(e){this._window=e}_setBorderWidth(e){this._attributes.borderWidth=e}_setBorderHeight(e){this._attributes.borderHeight=e}static getAttributeDefinitions(){return a._attributeDefinitions}}t.TabNode=a,a.TYPE="tab",a._attributeDefinitions=a._createAttributeDefinitions()},2733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabSetNode=void 0;const r=n(7029),o=n(8267),i=n(232),a=n(5748),s=n(3380),l=n(807),c=n(4115),u=n(4268),d=n(89),f=n(996),p=n(6677),h=n(2968);class g extends d.Node{static _fromJson(e,t){const n=new g(t,e);if(null!=e.children)for(const r of e.children){const e=p.TabNode._fromJson(r,t);n._addChild(e)}return 0===n._children.length&&n._setSelected(-1),e.maximized&&!0===e.maximized&&t._setMaximizedTabset(n),e.active&&!0===e.active&&t._setActiveTabset(n),n}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("type",g.TYPE,!0).setType(r.Attribute.STRING).setFixed(),e.add("id",void 0).setType(r.Attribute.STRING),e.add("weight",100).setType(r.Attribute.NUMBER),e.add("width",void 0).setType(r.Attribute.NUMBER),e.add("height",void 0).setType(r.Attribute.NUMBER),e.add("selected",0).setType(r.Attribute.NUMBER),e.add("name",void 0).setType(r.Attribute.STRING),e.add("config",void 0).setType("any"),e.addInherited("enableDeleteWhenEmpty","tabSetEnableDeleteWhenEmpty"),e.addInherited("enableDrop","tabSetEnableDrop"),e.addInherited("enableDrag","tabSetEnableDrag"),e.addInherited("enableDivide","tabSetEnableDivide"),e.addInherited("enableMaximize","tabSetEnableMaximize"),e.addInherited("enableClose","tabSetEnableClose"),e.addInherited("enableSingleTabStretch","tabSetEnableSingleTabStretch"),e.addInherited("classNameTabStrip","tabSetClassNameTabStrip"),e.addInherited("classNameHeader","tabSetClassNameHeader"),e.addInherited("enableTabStrip","tabSetEnableTabStrip"),e.addInherited("borderInsets","tabSetBorderInsets"),e.addInherited("marginInsets","tabSetMarginInsets"),e.addInherited("minWidth","tabSetMinWidth"),e.addInherited("minHeight","tabSetMinHeight"),e.addInherited("headerHeight","tabSetHeaderHeight"),e.addInherited("tabStripHeight","tabSetTabStripHeight"),e.addInherited("tabLocation","tabSetTabLocation"),e.addInherited("autoSelectTab","tabSetAutoSelectTab").setType(r.Attribute.BOOLEAN),e}constructor(e,t){super(e),g._attributeDefinitions.fromJson(t,this._attributes),e._addNode(this),this._calculatedTabBarHeight=0,this._calculatedHeaderBarHeight=0}getName(){return this._getAttr("name")}getSelected(){const e=this._attributes.selected;return void 0!==e?e:-1}getSelectedNode(){const e=this.getSelected();if(-1!==e)return this._children[e]}getWeight(){return this._getAttr("weight")}getWidth(){return this._getAttr("width")}getMinWidth(){return this._getAttr("minWidth")}getHeight(){return this._getAttr("height")}getMinHeight(){return this._getAttr("minHeight")}getMinSize(e){return e===s.Orientation.HORZ?this.getMinWidth():this.getMinHeight()}getConfig(){return this._attributes.config}isMaximized(){return this._model.getMaximizedTabset()===this}isActive(){return this._model.getActiveTabset()===this}isEnableDeleteWhenEmpty(){return this._getAttr("enableDeleteWhenEmpty")}isEnableDrop(){return this._getAttr("enableDrop")}isEnableDrag(){return this._getAttr("enableDrag")}isEnableDivide(){return this._getAttr("enableDivide")}isEnableMaximize(){return this._getAttr("enableMaximize")}isEnableClose(){return this._getAttr("enableClose")}isEnableSingleTabStretch(){return this._getAttr("enableSingleTabStretch")}canMaximize(){return!!this.isEnableMaximize()&&(this.getModel().getMaximizedTabset()===this||(this.getParent()!==this.getModel().getRoot()||1!==this.getModel().getRoot().getChildren().length))}isEnableTabStrip(){return this._getAttr("enableTabStrip")}isAutoSelectTab(){return this._getAttr("autoSelectTab")}getClassNameTabStrip(){return this._getAttr("classNameTabStrip")}getClassNameHeader(){return this._getAttr("classNameHeader")}calculateHeaderBarHeight(e){const t=this._getAttr("headerHeight");this._calculatedHeaderBarHeight=0!==t?t:e.headerBarSize}calculateTabBarHeight(e){const t=this._getAttr("tabStripHeight");this._calculatedTabBarHeight=0!==t?t:e.tabBarSize}getHeaderHeight(){return this._calculatedHeaderBarHeight}getTabStripHeight(){return this._calculatedTabBarHeight}getTabLocation(){return this._getAttr("tabLocation")}_setWeight(e){this._attributes.weight=e}_setSelected(e){this._attributes.selected=e}canDrop(e,t,n){let r;if(e===this){const e=i.DockLocation.CENTER,t=this._tabHeaderRect;r=new a.DropInfo(this,t,e,-1,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(this._contentRect.contains(t,n)){let e=i.DockLocation.CENTER;void 0===this._model.getMaximizedTabset()&&(e=i.DockLocation.getLocation(this._contentRect,t,n));const o=e.getDockRect(this._rect);r=new a.DropInfo(this,o,e,-1,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(null!=this._tabHeaderRect&&this._tabHeaderRect.contains(t,n)){let e,n,o;if(0===this._children.length)e=this._tabHeaderRect.clone(),n=e.y+3,o=e.height-4,e.width=2;else{let s=this._children[0];e=s.getTabRect(),n=e.y,o=e.height;let u=this._tabHeaderRect.x,d=0;for(let f=0;f=u&&t0&&n--,o===i.DockLocation.CENTER){let t=n;if(-1===t&&(t=this._children.length),e.getType()===p.TabNode.TYPE)this._addChild(e,t),(r||!1!==r&&this.isAutoSelectTab())&&this._setSelected(t);else{for(let n=0;n0&&this._setSelected(0)}this._model._setActiveTabset(this)}else{let t;if(e instanceof p.TabNode){const n=this._model._getOnCreateTabSet();t=new g(this._model,n?n(e):{}),t._addChild(e),a=t}else t=e;const n=this._parent,r=n.getChildren().indexOf(this);if(n.getOrientation()===o._orientation)t._setWeight(this.getWeight()/2),this._setWeight(this.getWeight()/2),n._addChild(t,r+o._indexPlus);else{const e=new f.RowNode(this._model,{});e._setWeight(this.getWeight()),e._addChild(this),this._setWeight(50),t._setWeight(50),e._addChild(t,o._indexPlus),n._removeChild(this),n._addChild(e,r)}this._model._setActiveTabset(t)}this._model._tidy()}toJson(){const e={};return g._attributeDefinitions.toJson(e,this._attributes),e.children=this._children.map((e=>e.toJson())),this.isActive()&&(e.active=!0),this.isMaximized()&&(e.maximized=!0),e}_updateAttrs(e){g._attributeDefinitions.update(e,this._attributes)}_getAttributeDefinitions(){return g._attributeDefinitions}_getPrefSize(e){let t=this.getWidth();return e===s.Orientation.VERT&&(t=this.getHeight()),t}static getAttributeDefinitions(){return g._attributeDefinitions}}t.TabSetNode=g,g.TYPE="tabset",g._attributeDefinitions=g._createAttributeDefinitions()},2968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomUUID=t.adjustSelectedIndex=t.adjustSelectedIndexAfterDock=t.adjustSelectedIndexAfterFloat=void 0;const r=n(2733),o=n(4268);t.adjustSelectedIndexAfterFloat=function(e){const t=e.getParent();if(null!==t)if(t instanceof r.TabSetNode){let n=!1,r=0;const o=t.getChildren();for(let t=0;t0?t>=e.getChildren().length&&e._setSelected(e.getChildren().length-1):tn||e._setSelected(-1))}},t.randomUUID=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}},5821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderButton=void 0;const r=n(7294),o=n(5551),i=n(3076),a=n(807),s=n(7562),l=n(4115),c=n(4592);t.BorderButton=e=>{const{layout:t,node:n,selected:u,border:d,iconFactory:f,titleFactory:p,icons:h,path:g}=e,m=r.useRef(null),v=r.useRef(null),b=e=>{(0,c.isAuxMouseEvent)(e)||t.getEditingTab()||t.dragStart(e,void 0,n,n.isEnableDrag(),S,E)},y=e=>{(0,c.isAuxMouseEvent)(e)&&t.auxMouseClick(n,e)},S=()=>{t.doAction(i.Actions.selectTab(n.getId()))},E=e=>{},w=e=>{(()=>{const e=n.getCloseType();return!!(u||e===s.ICloseType.Always||e===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches)})()?t.doAction(i.Actions.deleteTab(n.getId())):S()},_=e=>{e.stopPropagation()};r.useLayoutEffect((()=>{C(),t.getEditingTab()===n&&v.current.select()}));const C=()=>{var e;const r=t.getDomRect(),o=null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect();o&&r&&n._setTabRect(new a.Rect(o.left-r.left,o.top-r.top,o.width,o.height))},x=e=>{e.stopPropagation()},O=e=>{"Escape"===e.code?t.setEditingTab(void 0):"Enter"===e.code&&(t.setEditingTab(void 0),t.doAction(i.Actions.renameTab(n.getId(),e.target.value)))},T=t.getClassName;let k=T(l.CLASSES.FLEXLAYOUT__BORDER_BUTTON)+" "+T(l.CLASSES.FLEXLAYOUT__BORDER_BUTTON_+d);k+=u?" "+T(l.CLASSES.FLEXLAYOUT__BORDER_BUTTON__SELECTED):" "+T(l.CLASSES.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED),void 0!==n.getClassName()&&(k+=" "+n.getClassName());let R=0;!1===n.getModel().isEnableRotateBorderIcons()&&("left"===d?R=90:"right"===d&&(R=-90));const N=(0,c.getRenderStateEx)(t,n,f,p,R);let A=N.content?r.createElement("div",{className:T(l.CLASSES.FLEXLAYOUT__BORDER_BUTTON_CONTENT)},N.content):null;const L=N.leading?r.createElement("div",{className:T(l.CLASSES.FLEXLAYOUT__BORDER_BUTTON_LEADING)},N.leading):null;if(t.getEditingTab()===n&&(A=r.createElement("input",{ref:v,className:T(l.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":g+"/textbox",type:"text",autoFocus:!0,defaultValue:n.getName(),onKeyDown:O,onMouseDown:x,onTouchStart:x})),n.isEnableClose()){const e=t.i18nName(o.I18nLabel.Close_Tab);N.buttons.push(r.createElement("div",{key:"close","data-layout-path":g+"/button/close",title:e,className:T(l.CLASSES.FLEXLAYOUT__BORDER_BUTTON_TRAILING),onMouseDown:_,onClick:w,onTouchStart:_},"function"==typeof h.close?h.close(n):h.close))}return r.createElement("div",{ref:m,"data-layout-path":g,className:k,onMouseDown:b,onClick:y,onAuxClick:y,onContextMenu:e=>{t.showContextMenu(n,e)},onTouchStart:b,title:n.getHelpText()},L,A,N.buttons)}},9715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderTabSet=void 0;const r=n(7294),o=n(232),i=n(5821),a=n(31),s=n(3076),l=n(5551),c=n(1680),u=n(3380),d=n(4115),f=n(4592);t.BorderTabSet=e=>{const{border:t,layout:n,iconFactory:p,titleFactory:h,icons:g,path:m}=e,v=r.useRef(null),b=r.useRef(null),y=r.useRef(null),{selfRef:S,position:E,userControlledLeft:w,hiddenTabs:_,onMouseWheel:C,tabsTruncated:x}=(0,c.useTabOverflow)(t,u.Orientation.flip(t.getOrientation()),v,y),O=e=>{(0,f.isAuxMouseEvent)(e)&&n.auxMouseClick(t,e)},T=e=>{e.stopPropagation()},k=e=>{const r=n.getShowOverflowMenu();if(void 0!==r)r(t,e,_,R);else{const e=b.current;(0,a.showPopup)(e,_,R,n,p,h)}e.stopPropagation()},R=e=>{n.doAction(s.Actions.selectTab(e.node.getId())),w.current=!1},N=e=>{const r=t.getChildren()[t.getSelected()];void 0!==r&&n.doAction(s.Actions.floatTab(r.getId())),e.stopPropagation()},A=n.getClassName;let L=t.getTabHeaderRect().styleWithPosition({});const P=[],M=e=>{let o=t.getSelected()===e,a=t.getChildren()[e];P.push(r.createElement(i.BorderButton,{layout:n,border:t.getLocation().getName(),node:a,path:m+"/tb"+e,key:a.getId(),selected:o,iconFactory:p,titleFactory:h,icons:g})),e0&&(x?I=[...D,...I]:P.push(r.createElement("div",{ref:y,key:"sticky_buttons_container",onMouseDown:T,onTouchStart:T,onDragStart:e=>{e.preventDefault()},className:A(d.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},D))),_.length>0){const e=n.i18nName(l.I18nLabel.Overflow_Menu_Tooltip);let o;o="function"==typeof g.more?g.more(t,_):r.createElement(r.Fragment,null,g.more,r.createElement("div",{className:A(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},_.length)),I.splice(Math.min(j.overflowPosition,I.length),0,r.createElement("button",{key:"overflowbutton",ref:b,className:A(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+A(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW)+" "+A(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_+t.getLocation().getName()),title:e,onClick:k,onMouseDown:T,onTouchStart:T},o))}const Z=t.getSelected();if(-1!==Z){const e=t.getChildren()[Z];if(void 0!==e&&n.isSupportsPopout()&&e.isEnableFloat()&&!e.isFloating()){const t=n.i18nName(l.I18nLabel.Float_Tab);I.push(r.createElement("button",{key:"float",title:t,className:A(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+A(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT),onClick:N,onMouseDown:T,onTouchStart:T},"function"==typeof g.popout?g.popout(e):g.popout))}}const z=r.createElement("div",{key:"toolbar",ref:v,className:A(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR)+" "+A(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_+t.getLocation().getName())},I);L=n.styleFont(L);let B={};const F=t.getBorderBarSize()-1;return B=t.getLocation()===o.DockLocation.LEFT?{right:F,height:F,top:E}:t.getLocation()===o.DockLocation.RIGHT?{left:F,height:F,top:E}:{height:F,left:E},r.createElement("div",{ref:S,dir:"ltr",style:L,className:$,"data-layout-path":m,onClick:O,onAuxClick:O,onContextMenu:e=>{n.showContextMenu(t,e)},onWheel:C},r.createElement("div",{style:{height:F},className:A(d.CLASSES.FLEXLAYOUT__BORDER_INNER)+" "+A(d.CLASSES.FLEXLAYOUT__BORDER_INNER_+t.getLocation().getName())},r.createElement("div",{style:B,className:A(d.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER)+" "+A(d.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_+t.getLocation().getName())},P)),z)}},6180:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=void 0;const r=n(7294),o=n(4115);class i extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.debug(e),console.debug(t)}render(){return this.state.hasError?r.createElement("div",{className:o.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER},r.createElement("div",{className:o.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT},this.props.message)):this.props.children}}t.ErrorBoundary=i},7868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingWindow=void 0;const r=n(7294),o=n(3935),i=n(807),a=n(4115);t.FloatingWindow=e=>{const{title:t,id:n,url:s,rect:l,onCloseWindow:c,onSetWindow:u,children:d}=e,f=r.useRef(null),p=r.useRef(null),[h,g]=r.useState(void 0);return r.useLayoutEffect((()=>{p.current&&clearTimeout(p.current);let e=!0;const r=l||new i.Rect(0,0,100,100),o=Array.from(window.document.styleSheets).reduce(((e,t)=>{let n;try{n=t.cssRules}catch(e){}try{return[...e,{href:t.href,type:t.type,rules:n?Array.from(n).map((e=>e.cssText)):null}]}catch(t){return e}}),[]);return f.current=window.open(s,n,`left=${r.x},top=${r.y},width=${r.width},height=${r.height}`),null!==f.current?(u(n,f.current),window.addEventListener("beforeunload",(()=>{f.current&&(f.current.close(),f.current=null)})),f.current.addEventListener("load",(()=>{if(e){const e=f.current.document;e.title=t;const r=e.createElement("div");r.className=a.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_CONTENT,e.body.appendChild(r),function(e,t){const n=e.head,r=[];for(const o of t)if(o.href){const t=e.createElement("link");t.type=o.type,t.rel="stylesheet",t.href=o.href,n.appendChild(t),r.push(new Promise((e=>{t.onload=()=>e(!0)})))}else if(o.rules){const t=e.createElement("style");for(const n of o.rules)t.appendChild(e.createTextNode(n));n.appendChild(t)}return Promise.all(r)}(e,o).then((()=>{g(r)})),f.current.addEventListener("beforeunload",(()=>{c(n)}))}}))):(console.warn(`Unable to open window ${s}`),c(n)),()=>{e=!1,p.current=setTimeout((()=>{f.current&&(f.current.close(),f.current=null)}),0)}}),[]),void 0!==h?(0,o.createPortal)(d,h):null}},6538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingWindowTab=void 0;const r=n(7294),o=n(6180),i=n(5551),a=n(7294),s=n(4115);t.FloatingWindowTab=e=>{const{layout:t,node:n,factory:l}=e,c=t.getClassName,u=l(n);return r.createElement("div",{className:c(s.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_TAB)},r.createElement(o.ErrorBoundary,{message:e.layout.i18nName(i.I18nLabel.Error_rendering_component)},r.createElement(a.Fragment,null,u)))}},3281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RestoreIcon=t.PopoutIcon=t.EdgeIcon=t.OverflowIcon=t.MaximizeIcon=t.CloseIcon=void 0;const r=n(7294),o={width:"1em",height:"1em",display:"flex",alignItems:"center"};t.CloseIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 24 24"},r.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),r.createElement("path",{stroke:"var(--color-icon)",fill:"var(--color-icon)",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));t.MaximizeIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 24 24",fill:"var(--color-icon)"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{stroke:"var(--color-icon)",d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}));t.OverflowIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 24 24",fill:"var(--color-icon)"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{stroke:"var(--color-icon)",d:"M7 10l5 5 5-5z"}));t.EdgeIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"block",width:10,height:10},preserveAspectRatio:"none",viewBox:"0 0 100 100"},r.createElement("path",{fill:"var(--color-edge-icon)",stroke:"var(--color-edge-icon)",d:"M10 30 L90 30 l-40 40 Z"}));t.PopoutIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 20 20",fill:"var(--color-icon)"},r.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),r.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}));t.RestoreIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 24 24",fill:"var(--color-icon)"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{stroke:"var(--color-icon)",d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))},5295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Layout=void 0;const r=n(7294),o=n(3935),i=n(232),a=n(268),s=n(3076),l=n(4268),c=n(191),u=n(6677),d=n(2733),f=n(807),p=n(4115),h=n(9715),g=n(1996),m=n(178),v=n(9738),b=n(7868),y=n(6538),S=n(2022),E=n(3380),w=n(3281),_=n(5797),C={close:r.createElement(w.CloseIcon,null),closeTabset:r.createElement(w.CloseIcon,null),popout:r.createElement(w.PopoutIcon,null),maximize:r.createElement(w.MaximizeIcon,null),restore:r.createElement(w.RestoreIcon,null),more:r.createElement(w.OverflowIcon,null),edgeArrow:r.createElement(w.EdgeIcon,null)},x="undefined"!=typeof window&&(window.document.documentMode||/Edge\//.test(window.navigator.userAgent)),O="undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!x;class T extends r.Component{constructor(e){super(e),this.firstMove=!1,this.dragRectRendered=!0,this.dragDivText=void 0,this.edgeRectLength=100,this.edgeRectWidth=10,this.onModelChange=e=>{this.forceUpdate(),this.props.onModelChange&&this.props.onModelChange(this.props.model,e)},this.updateRect=e=>{if(e||(e=this.getDomRect()),!e)return;const t=new f.Rect(0,0,e.width,e.height);t.equals(this.state.rect)||0===t.width||0===t.height||this.setState({rect:t})},this.updateLayoutMetrics=()=>{if(this.findHeaderBarSizeRef.current){const e=this.findHeaderBarSizeRef.current.getBoundingClientRect().height;e!==this.state.calculatedHeaderBarSize&&this.setState({calculatedHeaderBarSize:e})}if(this.findTabBarSizeRef.current){const e=this.findTabBarSizeRef.current.getBoundingClientRect().height;e!==this.state.calculatedTabBarSize&&this.setState({calculatedTabBarSize:e})}if(this.findBorderBarSizeRef.current){const e=this.findBorderBarSizeRef.current.getBoundingClientRect().height;e!==this.state.calculatedBorderBarSize&&this.setState({calculatedBorderBarSize:e})}},this.getClassName=e=>void 0===this.props.classNameMapper?e:this.props.classNameMapper(e),this.onCloseWindow=e=>{this.doAction(s.Actions.unFloatTab(e));try{this.props.model.getNodeById(e)._setWindow(void 0)}catch(e){}},this.onSetWindow=(e,t)=>{this.props.model.getNodeById(e)._setWindow(t)},this.onCancelAdd=()=>{var e,t;const n=this.selfRef.current;n&&this.dragDiv&&n.removeChild(this.dragDiv),this.dragDiv=void 0,this.hidePortal(),null!=this.fnNewNodeDropped&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0);try{null===(t=null===(e=this.customDrop)||void 0===e?void 0:e.invalidated)||void 0===t||t.call(e)}catch(e){console.error(e)}a.DragDrop.instance.hideGlass(),this.newTabJson=void 0,this.customDrop=void 0},this.onCancelDrag=e=>{var t,n;if(e){const e=this.selfRef.current,r=this.outlineDiv;if(e&&r)try{e.removeChild(r)}catch(e){}const o=this.dragDiv;if(e&&o)try{e.removeChild(o)}catch(e){}this.dragDiv=void 0,this.hidePortal(),this.setState({showEdges:!1}),null!=this.fnNewNodeDropped&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0);try{null===(n=null===(t=this.customDrop)||void 0===t?void 0:t.invalidated)||void 0===n||n.call(t)}catch(e){console.error(e)}a.DragDrop.instance.hideGlass(),this.newTabJson=void 0,this.customDrop=void 0}this.setState({showHiddenBorder:i.DockLocation.CENTER})},this.onDragDivMouseDown=e=>{e.preventDefault(),this.dragStart(e,this.dragDivText,u.TabNode._fromJson(this.newTabJson,this.props.model,!1),!0,void 0,void 0)},this.dragStart=(e,t,n,r,o,i)=>{var s,l;r?(this.dragNode=n,this.dragDivText=t,a.DragDrop.instance.startDrag(e,this.onDragStart,this.onDragMove,this.onDragEnd,this.onCancelDrag,o,i,this.currentDocument,null!==(l=this.selfRef.current)&&void 0!==l?l:void 0)):a.DragDrop.instance.startDrag(e,void 0,void 0,void 0,void 0,o,i,this.currentDocument,null!==(s=this.selfRef.current)&&void 0!==s?s:void 0)},this.dragRectRender=(e,t,n,o)=>{let i;if(void 0!==e?i=r.createElement("div",{style:{whiteSpace:"pre"}},e.replace("
","\n")):t&&t instanceof u.TabNode&&(i=r.createElement(_.TabButtonStamp,{node:t,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory})),void 0!==this.props.onRenderDragRect){const e=this.props.onRenderDragRect(i,t,n);void 0!==e&&(i=e)}this.dragRectRendered=!1;const a=this.dragDiv;a&&(a.style.visibility="hidden",this.showPortal(r.createElement(k,{onRendered:()=>{this.dragRectRendered=!0,null==o||o()}},i),a))},this.showPortal=(e,t)=>{const n=(0,o.createPortal)(e,t);this.setState({portal:n})},this.hidePortal=()=>{this.setState({portal:void 0})},this.onDragStart=()=>{var e;this.dropInfo=void 0,this.customDrop=void 0;const t=this.selfRef.current;return this.outlineDiv=this.currentDocument.createElement("div"),this.outlineDiv.className=this.getClassName(p.CLASSES.FLEXLAYOUT__OUTLINE_RECT),this.outlineDiv.style.visibility="hidden",t&&t.appendChild(this.outlineDiv),null==this.dragDiv&&(this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(p.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),this.dragRectRender(this.dragDivText,this.dragNode,this.newTabJson),t&&t.appendChild(this.dragDiv)),void 0===this.props.model.getMaximizedTabset()&&this.setState({showEdges:this.props.model.isEnableEdgeDock()}),this.dragNode&&this.outlineDiv&&this.dragNode instanceof u.TabNode&&void 0!==this.dragNode.getTabRect()&&(null===(e=this.dragNode.getTabRect())||void 0===e||e.positionElement(this.outlineDiv)),this.firstMove=!0,!0},this.onDragMove=e=>{var t,n,r,o,i,a,s;if(!1===this.firstMove){const e=this.props.model._getAttribute("tabDragSpeed");this.outlineDiv&&(this.outlineDiv.style.transition=`top ${e}s, left ${e}s, width ${e}s, height ${e}s`)}this.firstMove=!1;const l=null===(t=this.selfRef.current)||void 0===t?void 0:t.getBoundingClientRect(),c={x:e.clientX-(null!==(n=null==l?void 0:l.left)&&void 0!==n?n:0),y:e.clientY-(null!==(r=null==l?void 0:l.top)&&void 0!==r?r:0)};this.checkForBorderToShow(c.x,c.y);const u=null!==(i=null===(o=this.dragDiv)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==i?i:new DOMRect(0,0,100,100);let d=c.x-u.width/2;d+u.width>(null!==(a=null==l?void 0:l.width)&&void 0!==a?a:0)&&(d=(null!==(s=null==l?void 0:l.width)&&void 0!==s?s:0)-u.width),d=Math.max(0,d),this.dragDiv&&(this.dragDiv.style.left=d+"px",this.dragDiv.style.top=c.y+5+"px",this.dragRectRendered&&"hidden"===this.dragDiv.style.visibility&&(this.dragDiv.style.visibility="visible"));let f=this.props.model._findDropTargetNode(this.dragNode,c.x,c.y);f&&(this.props.onTabDrag?this.handleCustomTabDrag(f,c,e):(this.dropInfo=f,this.outlineDiv&&(this.outlineDiv.className=this.getClassName(f.className),f.rect.positionElement(this.outlineDiv),this.outlineDiv.style.visibility="visible")))},this.onDragEnd=e=>{const t=this.selfRef.current;if(t&&(this.outlineDiv&&t.removeChild(this.outlineDiv),this.dragDiv&&t.removeChild(this.dragDiv)),this.dragDiv=void 0,this.hidePortal(),this.setState({showEdges:!1}),a.DragDrop.instance.hideGlass(),this.dropInfo)if(this.customDrop){this.newTabJson=void 0;try{const{callback:e,dragging:t,over:n,x:r,y:o,location:i}=this.customDrop;e(t,n,r,o,i),null!=this.fnNewNodeDropped&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0)}catch(e){console.error(e)}}else if(void 0!==this.newTabJson){const t=this.doAction(s.Actions.addNode(this.newTabJson,this.dropInfo.node.getId(),this.dropInfo.location,this.dropInfo.index));null!=this.fnNewNodeDropped&&(this.fnNewNodeDropped(t,e),this.fnNewNodeDropped=void 0),this.newTabJson=void 0}else void 0!==this.dragNode&&this.doAction(s.Actions.moveNode(this.dragNode.getId(),this.dropInfo.node.getId(),this.dropInfo.location,this.dropInfo.index));this.setState({showHiddenBorder:i.DockLocation.CENTER})},this.props.model._setChangeListener(this.onModelChange),this.tabIds=[],this.selfRef=r.createRef(),this.findHeaderBarSizeRef=r.createRef(),this.findTabBarSizeRef=r.createRef(),this.findBorderBarSizeRef=r.createRef(),this.supportsPopout=void 0!==e.supportsPopout?e.supportsPopout:O,this.popoutURL=e.popoutURL?e.popoutURL:"popout.html",this.icons=Object.assign(Object.assign({},C),e.icons),this.state={rect:new f.Rect(0,0,0,0),calculatedHeaderBarSize:25,calculatedTabBarSize:26,calculatedBorderBarSize:30,editingTab:void 0,showHiddenBorder:i.DockLocation.CENTER,showEdges:!1},this.onDragEnter=this.onDragEnter.bind(this)}styleFont(e){return this.props.font&&(this.selfRef.current&&(this.props.font.size&&this.selfRef.current.style.setProperty("--font-size",this.props.font.size),this.props.font.family&&this.selfRef.current.style.setProperty("--font-family",this.props.font.family)),this.props.font.style&&(e.fontStyle=this.props.font.style),this.props.font.weight&&(e.fontWeight=this.props.font.weight)),e}doAction(e){if(void 0!==this.props.onAction){const t=this.props.onAction(e);return void 0!==t?this.props.model.doAction(t):void 0}return this.props.model.doAction(e)}componentDidMount(){this.updateRect(),this.updateLayoutMetrics(),this.currentDocument=this.selfRef.current.ownerDocument,this.currentWindow=this.currentDocument.defaultView,this.resizeObserver=new ResizeObserver((e=>{this.updateRect(e[0].contentRect)}));const e=this.selfRef.current;e&&this.resizeObserver.observe(e)}componentDidUpdate(){this.updateLayoutMetrics(),this.props.model!==this.previousModel&&(void 0!==this.previousModel&&this.previousModel._setChangeListener(void 0),this.props.model._setChangeListener(this.onModelChange),this.previousModel=this.props.model)}getCurrentDocument(){return this.currentDocument}getDomRect(){var e;return null===(e=this.selfRef.current)||void 0===e?void 0:e.getBoundingClientRect()}getRootDiv(){return this.selfRef.current}isSupportsPopout(){return this.supportsPopout}isRealtimeResize(){var e;return null!==(e=this.props.realtimeResize)&&void 0!==e&&e}onTabDrag(...e){var t,n;return null===(n=(t=this.props).onTabDrag)||void 0===n?void 0:n.call(t,...e)}getPopoutURL(){return this.popoutURL}componentWillUnmount(){var e;const t=this.selfRef.current;t&&(null===(e=this.resizeObserver)||void 0===e||e.unobserve(t))}setEditingTab(e){this.setState({editingTab:e})}getEditingTab(){return this.state.editingTab}render(){if(!this.selfRef.current)return r.createElement("div",{ref:this.selfRef,className:this.getClassName(p.CLASSES.FLEXLAYOUT__LAYOUT)},this.metricsElements());this.props.model._setPointerFine(window&&window.matchMedia&&window.matchMedia("(pointer: fine)").matches);const e=[],t=[],n=[],o={},i=[],a={headerBarSize:this.state.calculatedHeaderBarSize,tabBarSize:this.state.calculatedTabBarSize,borderBarSize:this.state.calculatedBorderBarSize};this.props.model._setShowHiddenBorder(this.state.showHiddenBorder),this.centerRect=this.props.model._layout(this.state.rect,a),this.renderBorder(this.props.model.getBorderSet(),e,o,n,i),this.renderChildren("",this.props.model.getRoot(),t,o,n,i);const s=[],l={};for(const e of this.tabIds)o[e]&&(s.push(e),l[e]=e);this.tabIds=s;for(const e of Object.keys(o))l[e]||this.tabIds.push(e);const c=[],u=this.icons.edgeArrow;if(this.state.showEdges){const e=this.centerRect,t=this.edgeRectLength,n=this.edgeRectWidth,o=this.edgeRectLength/2,i=this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT),a=50;c.push(r.createElement("div",{key:"North",style:{top:e.y,left:e.x+e.width/2-o,width:t,height:n,borderBottomLeftRadius:a,borderBottomRightRadius:a},className:i+" "+this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT_TOP)},r.createElement("div",{style:{transform:"rotate(180deg)"}},u))),c.push(r.createElement("div",{key:"West",style:{top:e.y+e.height/2-o,left:e.x,width:n,height:t,borderTopRightRadius:a,borderBottomRightRadius:a},className:i+" "+this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT_LEFT)},r.createElement("div",{style:{transform:"rotate(90deg)"}},u))),c.push(r.createElement("div",{key:"South",style:{top:e.y+e.height-n,left:e.x+e.width/2-o,width:t,height:n,borderTopLeftRadius:a,borderTopRightRadius:a},className:i+" "+this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT_BOTTOM)},r.createElement("div",null,u))),c.push(r.createElement("div",{key:"East",style:{top:e.y+e.height/2-o,left:e.x+e.width-n,width:n,height:t,borderTopLeftRadius:a,borderBottomLeftRadius:a},className:i+" "+this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT_RIGHT)},r.createElement("div",{style:{transform:"rotate(-90deg)"}},u)))}return r.createElement("div",{ref:this.selfRef,className:this.getClassName(p.CLASSES.FLEXLAYOUT__LAYOUT),onDragEnter:this.props.onExternalDrag?this.onDragEnter:void 0},t,this.tabIds.map((e=>o[e])),e,i,c,n,this.metricsElements(),this.state.portal)}metricsElements(){const e=this.styleFont({visibility:"hidden"});return r.createElement(r.Fragment,null,r.createElement("div",{key:"findHeaderBarSize",ref:this.findHeaderBarSizeRef,style:e,className:this.getClassName(p.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER)},"FindHeaderBarSize"),r.createElement("div",{key:"findTabBarSize",ref:this.findTabBarSizeRef,style:e,className:this.getClassName(p.CLASSES.FLEXLAYOUT__TABSET_SIZER)},"FindTabBarSize"),r.createElement("div",{key:"findBorderBarSize",ref:this.findBorderBarSizeRef,style:e,className:this.getClassName(p.CLASSES.FLEXLAYOUT__BORDER_SIZER)},"FindBorderBarSize"))}renderBorder(e,t,n,o,i){for(const a of e.getBorders()){const e=`/border/${a.getLocation().getName()}`;if(a.isShowing()){t.push(r.createElement(h.BorderTabSet,{key:`border_${a.getLocation().getName()}`,path:e,border:a,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons}));const s=a._getDrawChildren();let l=0,d=0;for(const t of s){if(t instanceof c.SplitterNode){let n=e+"/s";i.push(r.createElement(g.Splitter,{key:t.getId(),layout:this,node:t,path:n}))}else if(t instanceof u.TabNode){let i=e+"/t"+d++;if(this.supportsPopout&&t.isFloating()){const e=this._getScreenRect(t),s=t._getAttr("borderWidth"),c=t._getAttr("borderHeight");e&&(-1!==s&&a.getLocation().getOrientation()===E.Orientation.HORZ?e.width=s:-1!==c&&a.getLocation().getOrientation()===E.Orientation.VERT&&(e.height=c)),o.push(r.createElement(b.FloatingWindow,{key:t.getId(),url:this.popoutURL,rect:e,title:t.getName(),id:t.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},r.createElement(y.FloatingWindowTab,{layout:this,node:t,factory:this.props.factory}))),n[t.getId()]=r.createElement(S.TabFloating,{key:t.getId(),layout:this,path:i,node:t,selected:l===a.getSelected()})}else n[t.getId()]=r.createElement(m.Tab,{key:t.getId(),layout:this,path:i,node:t,selected:l===a.getSelected(),factory:this.props.factory})}l++}}}}renderChildren(e,t,n,o,i,a){const s=t._getDrawChildren();let l=0,f=0,p=0;for(const t of s)if(t instanceof c.SplitterNode){const n=e+"/s"+l++;a.push(r.createElement(g.Splitter,{key:t.getId(),layout:this,path:n,node:t}))}else if(t instanceof d.TabSetNode){const s=e+"/ts"+p++;n.push(r.createElement(v.TabSet,{key:t.getId(),layout:this,path:s,node:t,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons})),this.renderChildren(s,t,n,o,i,a)}else if(t instanceof u.TabNode){const n=e+"/t"+f++,a=t.getParent().getChildren()[t.getParent().getSelected()];if(void 0===a&&console.warn("undefined selectedTab should not happen"),this.supportsPopout&&t.isFloating()){const e=this._getScreenRect(t);i.push(r.createElement(b.FloatingWindow,{key:t.getId(),url:this.popoutURL,rect:e,title:t.getName(),id:t.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},r.createElement(y.FloatingWindowTab,{layout:this,node:t,factory:this.props.factory}))),o[t.getId()]=r.createElement(S.TabFloating,{key:t.getId(),layout:this,path:n,node:t,selected:t===a})}else o[t.getId()]=r.createElement(m.Tab,{key:t.getId(),layout:this,path:n,node:t,selected:t===a,factory:this.props.factory})}else{const r=e+(t.getOrientation()===E.Orientation.HORZ?"/r":"/c")+p++;this.renderChildren(r,t,n,o,i,a)}}_getScreenRect(e){var t;const n=e.getRect().clone(),r=null===(t=this.selfRef.current)||void 0===t?void 0:t.getBoundingClientRect();if(!r)return null;const o=Math.min(80,this.currentWindow.outerHeight-this.currentWindow.innerHeight),i=Math.min(80,this.currentWindow.outerWidth-this.currentWindow.innerWidth);return n.x=n.x+r.x+this.currentWindow.screenX+i,n.y=n.y+r.y+this.currentWindow.screenY+o,n}addTabToTabSet(e,t){if(void 0!==this.props.model.getNodeById(e)){return this.doAction(s.Actions.addNode(t,e,i.DockLocation.CENTER,-1))}}addTabToActiveTabSet(e){const t=this.props.model.getActiveTabset();if(void 0!==t){return this.doAction(s.Actions.addNode(e,t.getId(),i.DockLocation.CENTER,-1))}}addTabWithDragAndDrop(e,t,n){this.fnNewNodeDropped=n,this.newTabJson=t,this.dragStart(void 0,e,u.TabNode._fromJson(t,this.props.model,!1),!0,void 0,void 0)}moveTabWithDragAndDrop(e,t){this.dragStart(void 0,t,e,!0,void 0,void 0)}addTabWithDragAndDropIndirect(e,t,n){this.fnNewNodeDropped=n,this.newTabJson=t,a.DragDrop.instance.addGlass(this.onCancelAdd),this.dragDivText=e,this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(p.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.addEventListener("mousedown",this.onDragDivMouseDown),this.dragDiv.addEventListener("touchstart",this.onDragDivMouseDown,{passive:!1}),this.dragRectRender(this.dragDivText,void 0,this.newTabJson,(()=>{if(this.dragDiv){this.dragDiv.style.visibility="visible";const e=this.dragDiv.getBoundingClientRect(),t=new f.Rect(0,0,null==e?void 0:e.width,null==e?void 0:e.height);t.centerInRect(this.state.rect),this.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),this.dragDiv.style.left=t.x+"px",this.dragDiv.style.top=t.y+"px"}}));this.selfRef.current.appendChild(this.dragDiv)}handleCustomTabDrag(e,t,n){var r,o,i;let s=null===(r=this.customDrop)||void 0===r?void 0:r.invalidated;const c=null===(o=this.customDrop)||void 0===o?void 0:o.callback;this.customDrop=void 0;const h=this.newTabJson||(this.dragNode instanceof u.TabNode?this.dragNode:void 0);if(h&&(e.node instanceof d.TabSetNode||e.node instanceof l.BorderNode)&&-1===e.index){const r=e.node.getSelectedNode(),o=null==r?void 0:r.getRect();if(r&&(null==o?void 0:o.contains(t.x,t.y))){let i;try{const a=this.onTabDrag(h,r,t.x-o.x,t.y-o.y,e.location,(()=>this.onDragMove(n)));a&&(i={rect:new f.Rect(a.x+o.x,a.y+o.y,a.width,a.height),callback:a.callback,invalidated:a.invalidated,dragging:h,over:r,x:t.x-o.x,y:t.y-o.y,location:e.location,cursor:a.cursor})}catch(e){console.error(e)}(null==i?void 0:i.callback)===c&&(s=void 0),this.customDrop=i}}this.dropInfo=e,this.outlineDiv&&(this.outlineDiv.className=this.getClassName(this.customDrop?p.CLASSES.FLEXLAYOUT__OUTLINE_RECT:e.className),this.customDrop?this.customDrop.rect.positionElement(this.outlineDiv):e.rect.positionElement(this.outlineDiv)),a.DragDrop.instance.setGlassCursorOverride(null===(i=this.customDrop)||void 0===i?void 0:i.cursor),this.outlineDiv&&(this.outlineDiv.style.visibility="visible");try{null==s||s()}catch(e){console.error(e)}}onDragEnter(e){if(a.DragDrop.instance.isDragging())return;const t=this.props.onExternalDrag(e);t&&(this.fnNewNodeDropped=t.onDrop,this.newTabJson=t.json,this.dragStart(e,t.dragText,u.TabNode._fromJson(t.json,this.props.model,!1),!0,void 0,void 0))}checkForBorderToShow(e,t){const n=this.props.model._getOuterInnerRects().outer,r=n.getCenter(),o=this.edgeRectWidth,a=this.edgeRectLength/2;let s=!1;this.props.model.isEnableEdgeDock()&&this.state.showHiddenBorder===i.DockLocation.CENTER&&(t>r.y-a&&tr.x-a&&e=n.getRight()-o?l=i.DockLocation.RIGHT:t<=n.y+o?l=i.DockLocation.TOP:t>=n.getBottom()-o&&(l=i.DockLocation.BOTTOM)),l!==this.state.showHiddenBorder&&this.setState({showHiddenBorder:l})}maximize(e){this.doAction(s.Actions.maximizeToggle(e.getId()))}customizeTab(e,t){this.props.onRenderTab&&this.props.onRenderTab(e,t)}customizeTabSet(e,t){this.props.onRenderTabSet&&this.props.onRenderTabSet(e,t)}i18nName(e,t){let n;return this.props.i18nMapper&&(n=this.props.i18nMapper(e,t)),void 0===n&&(n=e+(void 0===t?"":t)),n}getOnRenderFloatingTabPlaceholder(){return this.props.onRenderFloatingTabPlaceholder}getShowOverflowMenu(){return this.props.onShowOverflowMenu}getTabSetPlaceHolderCallback(){return this.props.onTabSetPlaceHolder}showContextMenu(e,t){this.props.onContextMenu&&this.props.onContextMenu(e,t)}auxMouseClick(e,t){this.props.onAuxMouseClick&&this.props.onAuxMouseClick(e,t)}}t.Layout=T;const k=e=>(r.useEffect((()=>{var t;null===(t=e.onRendered)||void 0===t||t.call(e)}),[e]),r.createElement(r.Fragment,null,e.children))},1996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Splitter=void 0;const r=n(7294),o=n(268),i=n(3076),a=n(4268),s=n(3380),l=n(4115);t.Splitter=e=>{const{layout:t,node:n,path:c}=e,u=r.useRef([]),d=r.useRef(void 0),f=n.getParent(),p=e=>{var r;o.DragDrop.instance.setGlassCursorOverride(n.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"),o.DragDrop.instance.startDrag(e,g,m,b,h,void 0,void 0,t.getCurrentDocument(),null!==(r=t.getRootDiv())&&void 0!==r?r:void 0),u.current=f._getSplitterBounds(n,!0);const i=t.getRootDiv();d.current=t.getCurrentDocument().createElement("div"),d.current.style.position="absolute",d.current.className=t.getClassName(l.CLASSES.FLEXLAYOUT__SPLITTER_DRAG),d.current.style.cursor=n.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize";const a=n.getRect();n.getOrientation()===s.Orientation.VERT&&a.width<2?a.width=2:n.getOrientation()===s.Orientation.HORZ&&a.height<2&&(a.height=2),a.positionElement(d.current),i&&i.appendChild(d.current)},h=e=>{const n=t.getRootDiv();n&&n.removeChild(d.current)},g=()=>!0,m=e=>{const r=t.getDomRect();if(!r)return;const o=e.clientX-r.left,i=e.clientY-r.top;d&&(n.getOrientation()===s.Orientation.HORZ?d.current.style.top=y(i-4)+"px":d.current.style.left=y(o-4)+"px"),t.isRealtimeResize()&&v()},v=()=>{let e=0;if(d&&(e=n.getOrientation()===s.Orientation.HORZ?d.current.offsetTop:d.current.offsetLeft),f instanceof a.BorderNode){const r=f._calculateSplit(n,e);t.doAction(i.Actions.adjustBorderSplit(n.getParent().getId(),r))}else{const r=f._calculateSplit(n,e);void 0!==r&&t.doAction(i.Actions.adjustSplit(r))}},b=()=>{v();const e=t.getRootDiv();e&&e.removeChild(d.current)},y=e=>{const t=u.current;let n=e;return et[1]&&(n=t[1]),n},S=t.getClassName;let E=n.getRect();const w=E.styleWithPosition({cursor:n.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"});let _=S(l.CLASSES.FLEXLAYOUT__SPLITTER)+" "+S(l.CLASSES.FLEXLAYOUT__SPLITTER_+n.getOrientation().getName());f instanceof a.BorderNode?_+=" "+S(l.CLASSES.FLEXLAYOUT__SPLITTER_BORDER):void 0!==n.getModel().getMaximizedTabset()&&(w.display="none");const C=n.getModel().getSplitterExtra();if(0===C)return r.createElement("div",{style:w,"data-layout-path":c,className:_,onTouchStart:p,onMouseDown:p});{let e=E.clone();e.x=0,e.y=0,n.getOrientation()===s.Orientation.VERT?e.width+=C:e.height+=C;const t=e.styleWithPosition({cursor:n.getOrientation()===s.Orientation.HORZ?"ns-resize":"ew-resize"}),o=S(l.CLASSES.FLEXLAYOUT__SPLITTER_EXTRA);return r.createElement("div",{style:w,"data-layout-path":c,className:_},r.createElement("div",{style:t,className:o,onTouchStart:p,onMouseDown:p}))}}},178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;const r=n(7294),o=n(7294),i=n(3076),a=n(2733),s=n(4115),l=n(6180),c=n(5551),u=n(4268),d=n(4592);t.Tab=e=>{const{layout:t,selected:n,node:f,factory:p,path:h}=e,[g,m]=r.useState(!e.node.isEnableRenderOnDemand()||e.selected);r.useLayoutEffect((()=>{!g&&n&&m(!0)}));const v=()=>{const e=f.getParent();e.getType()===a.TabSetNode.TYPE&&(e.isActive()||t.doAction(i.Actions.setActiveTabset(e.getId())))},b=t.getClassName,y=f.getModel().isUseVisibility(),S=f.getParent(),E=f._styleWithPosition();let w;n||(0,d.hideElement)(E,y),S instanceof a.TabSetNode&&(void 0===f.getModel().getMaximizedTabset()||S.isMaximized()||(0,d.hideElement)(E,y)),g&&(w=p(f));let _=b(s.CLASSES.FLEXLAYOUT__TAB);return S instanceof u.BorderNode&&(_+=" "+b(s.CLASSES.FLEXLAYOUT__TAB_BORDER),_+=" "+b(s.CLASSES.FLEXLAYOUT__TAB_BORDER_+S.getLocation().getName())),void 0!==f.getContentClassName()&&(_+=" "+f.getContentClassName()),r.createElement("div",{className:_,"data-layout-path":h,onMouseDown:v,onTouchStart:v,style:E},r.createElement(l.ErrorBoundary,{message:e.layout.i18nName(c.I18nLabel.Error_rendering_component)},r.createElement(o.Fragment,null,w)))}},2112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabButton=void 0;const r=n(7294),o=n(5551),i=n(3076),a=n(807),s=n(7562),l=n(4115),c=n(4592);t.TabButton=e=>{const{layout:t,node:n,selected:u,iconFactory:d,titleFactory:f,icons:p,path:h}=e,g=r.useRef(null),m=r.useRef(null),v=e=>{(0,c.isAuxMouseEvent)(e)||t.getEditingTab()||t.dragStart(e,void 0,n,n.isEnableDrag(),y,S)},b=e=>{(0,c.isAuxMouseEvent)(e)&&t.auxMouseClick(n,e)},y=()=>{t.doAction(i.Actions.selectTab(n.getId()))},S=e=>{n.isEnableRename()&&E()},E=()=>{t.setEditingTab(n),t.getCurrentDocument().body.addEventListener("mousedown",w),t.getCurrentDocument().body.addEventListener("touchstart",w)},w=e=>{e.target!==m.current&&(t.getCurrentDocument().body.removeEventListener("mousedown",w),t.getCurrentDocument().body.removeEventListener("touchstart",w),t.setEditingTab(void 0))},_=e=>{(()=>{const e=n.getCloseType();return!!(u||e===s.ICloseType.Always||e===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches)})()?t.doAction(i.Actions.deleteTab(n.getId())):y()},C=e=>{e.stopPropagation()};r.useLayoutEffect((()=>{x(),t.getEditingTab()===n&&m.current.select()}));const x=()=>{var e;const r=t.getDomRect(),o=null===(e=g.current)||void 0===e?void 0:e.getBoundingClientRect();o&&r&&n._setTabRect(new a.Rect(o.left-r.left,o.top-r.top,o.width,o.height))},O=e=>{e.stopPropagation()},T=e=>{"Escape"===e.code?t.setEditingTab(void 0):"Enter"===e.code&&(t.setEditingTab(void 0),t.doAction(i.Actions.renameTab(n.getId(),e.target.value)))},k=t.getClassName,R=n.getParent(),N=R.isEnableSingleTabStretch()&&1===R.getChildren().length;let A=N?l.CLASSES.FLEXLAYOUT__TAB_BUTTON_STRETCH:l.CLASSES.FLEXLAYOUT__TAB_BUTTON,L=k(A);L+=" "+k(A+"_"+R.getTabLocation()),N||(L+=u?" "+k(A+"--selected"):" "+k(A+"--unselected")),void 0!==n.getClassName()&&(L+=" "+n.getClassName());const P=(0,c.getRenderStateEx)(t,n,d,f);let M=P.content?r.createElement("div",{className:k(l.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},P.content):null;const $=P.leading?r.createElement("div",{className:k(l.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},P.leading):null;if(t.getEditingTab()===n&&(M=r.createElement("input",{ref:m,className:k(l.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":h+"/textbox",type:"text",autoFocus:!0,defaultValue:n.getName(),onKeyDown:T,onMouseDown:O,onTouchStart:O})),n.isEnableClose()&&!N){const e=t.i18nName(o.I18nLabel.Close_Tab);P.buttons.push(r.createElement("div",{key:"close","data-layout-path":h+"/button/close",title:e,className:k(l.CLASSES.FLEXLAYOUT__TAB_BUTTON_TRAILING),onMouseDown:C,onClick:_,onTouchStart:C},"function"==typeof p.close?p.close(n):p.close))}return r.createElement("div",{ref:g,"data-layout-path":h,className:L,onMouseDown:v,onClick:b,onAuxClick:b,onContextMenu:e=>{t.showContextMenu(n,e)},onTouchStart:v,title:n.getHelpText()},$,M,P.buttons)}},5797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabButtonStamp=void 0;const r=n(7294),o=n(4115),i=n(4592);t.TabButtonStamp=e=>{const{layout:t,node:n,iconFactory:a,titleFactory:s}=e,l=r.useRef(null),c=t.getClassName;let u=c(o.CLASSES.FLEXLAYOUT__TAB_BUTTON_STAMP);const d=(0,i.getRenderStateEx)(t,n,a,s);let f=d.content?r.createElement("div",{className:c(o.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},d.content):n._getNameForOverflowMenu();const p=d.leading?r.createElement("div",{className:c(o.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},d.leading):null;return r.createElement("div",{ref:l,className:u,title:n.getHelpText()},p,f)}},2022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabFloating=void 0;const r=n(7294),o=n(3076),i=n(2733),a=n(4115),s=n(5551),l=n(4592);t.TabFloating=e=>{const{layout:t,selected:n,node:c,path:u}=e,d=()=>{c.getWindow()&&c.getWindow().focus()},f=()=>{t.doAction(o.Actions.unFloatTab(c.getId()))},p=()=>{const e=c.getParent();e.getType()===i.TabSetNode.TYPE&&(e.isActive()||t.doAction(o.Actions.setActiveTabset(e.getId())))},h=e=>{e.preventDefault(),d()},g=e=>{e.preventDefault(),f()},m=t.getClassName,v=c.getParent(),b=c._styleWithPosition();n||(0,l.hideElement)(b,c.getModel().isUseVisibility()),v instanceof i.TabSetNode&&(void 0===c.getModel().getMaximizedTabset()||v.isMaximized()||(0,l.hideElement)(b,c.getModel().isUseVisibility()));const y=t.i18nName(s.I18nLabel.Floating_Window_Message),S=t.i18nName(s.I18nLabel.Floating_Window_Show_Window),E=t.i18nName(s.I18nLabel.Floating_Window_Dock_Window),w=t.getOnRenderFloatingTabPlaceholder();return w?r.createElement("div",{className:m(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),onMouseDown:p,onTouchStart:p,style:b},w(f,d)):r.createElement("div",{className:m(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),"data-layout-path":u,onMouseDown:p,onTouchStart:p,style:b},r.createElement("div",{className:m(a.CLASSES.FLEXLAYOUT__TAB_FLOATING_INNER)},r.createElement("div",null,y),r.createElement("div",null,r.createElement("a",{href:"#",onClick:h},S)),r.createElement("div",null,r.createElement("a",{href:"#",onClick:g},E))))}},1680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTabOverflow=void 0;const r=n(7294),o=n(807),i=n(2733),a=n(3380);t.useTabOverflow=(e,t,n,s)=>{const l=r.useRef(!0),c=r.useRef(!1),u=r.useRef(new o.Rect(0,0,0,0)),d=r.useRef(null),[f,p]=r.useState(0),h=r.useRef(!1),[g,m]=r.useState([]),v=r.useRef(0);r.useLayoutEffect((()=>{h.current=!1}),[e.getSelectedNode(),e.getRect().width,e.getRect().height]),r.useLayoutEffect((()=>{_()}));const b=d.current;r.useEffect((()=>{if(b)return b.addEventListener("wheel",y,{passive:!1}),()=>{b.removeEventListener("wheel",y)}}),[b]);const y=e=>{e.preventDefault()},S=e=>t===a.Orientation.HORZ?e.x:e.y,E=e=>t===a.Orientation.HORZ?e.getRight():e.getBottom(),w=e=>t===a.Orientation.HORZ?e.width:e.height,_=()=>{!0===l.current&&(c.current=!1);const t=e instanceof i.TabSetNode?e.getRect():e.getTabHeaderRect();let r=e.getChildren()[e.getChildren().length-1];const o=null===s.current?0:w(s.current.getBoundingClientRect());if(!0===l.current||0===v.current&&0!==g.length||t.width!==u.current.width||t.height!==u.current.height){v.current=g.length,u.current=t;const a=!(e instanceof i.TabSetNode)||!0===e.isEnableTabStrip();let s=E(t)-o;if(null!==n.current&&(s-=w(n.current.getBoundingClientRect())),a&&e.getChildren().length>0){if(0===g.length&&0===f&&E(r.getTabRect())+2=s-S(t)?n=S(t)-r:(i>s||rs&&(n=s-i))}const i=Math.max(0,s-(E(r.getTabRect())+2+n)),a=Math.min(0,f+n+i),u=a-f,d=[];for(let n=0;ns)&&d.push({node:r,index:n})}d.length>0&&(c.current=!0),l.current=!1,m(d),p(a)}}else l.current=!0};return{selfRef:d,position:f,userControlledLeft:h,hiddenTabs:g,onMouseWheel:e=>{let t=0;t=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY,1===e.deltaMode&&(t*=40),p(f+t),h.current=!0,e.stopPropagation()},tabsTruncated:c.current}}},9738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabSet=void 0;const r=n(7294),o=n(5551),i=n(3076),a=n(31),s=n(2112),l=n(1680),c=n(3380),u=n(4115),d=n(4592);t.TabSet=e=>{const{node:t,layout:n,iconFactory:f,titleFactory:p,icons:h,path:g}=e,m=r.useRef(null),v=r.useRef(null),b=r.useRef(null),y=r.useRef(null),{selfRef:S,position:E,userControlledLeft:w,hiddenTabs:_,onMouseWheel:C,tabsTruncated:x}=(0,l.useTabOverflow)(t,c.Orientation.HORZ,m,y),O=e=>{const r=n.getShowOverflowMenu();if(void 0!==r)r(t,e,_,T);else{const e=v.current;(0,a.showPopup)(e,_,T,n,f,p)}e.stopPropagation()},T=e=>{n.doAction(i.Actions.selectTab(e.node.getId())),w.current=!1},k=e=>{if(!(0,d.isAuxMouseEvent)(e)){let r=t.getName();if(r=void 0===r?"":": "+r,n.doAction(i.Actions.setActiveTabset(t.getId())),!n.getEditingTab()){const i=n.i18nName(o.I18nLabel.Move_Tabset,r);void 0!==t.getModel().getMaximizedTabset()?n.dragStart(e,i,t,!1,(e=>{}),I):n.dragStart(e,i,t,t.isEnableDrag(),(e=>{}),I)}}},R=e=>{(0,d.isAuxMouseEvent)(e)&&n.auxMouseClick(t,e)},N=e=>{n.showContextMenu(t,e)},A=e=>{e.stopPropagation()},L=e=>{t.canMaximize()&&n.maximize(t),e.stopPropagation()},P=e=>{n.doAction(i.Actions.deleteTabset(t.getId())),e.stopPropagation()},M=e=>{n.doAction(i.Actions.deleteTab(t.getChildren()[0].getId())),e.stopPropagation()},$=e=>{void 0!==j&&n.doAction(i.Actions.floatTab(j.getId())),e.stopPropagation()},I=e=>{t.canMaximize()&&n.maximize(t)},D=n.getClassName;null!==b.current&&0!==b.current.scrollLeft&&(b.current.scrollLeft=0);const j=t.getSelectedNode();let Z=t._styleWithPosition();void 0===t.getModel().getMaximizedTabset()||t.isMaximized()||(0,d.hideElement)(Z,t.getModel().isUseVisibility());const z=[];if(t.isEnableTabStrip())for(let e=0;e0&&(x||X?H=[...F,...H]:z.push(r.createElement("div",{ref:y,key:"sticky_buttons_container",onMouseDown:A,onTouchStart:A,onDragStart:e=>{e.preventDefault()},className:D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},F))),_.length>0){const e=n.i18nName(o.I18nLabel.Overflow_Menu_Tooltip);let i;i="function"==typeof h.more?h.more(t,_):r.createElement(r.Fragment,null,h.more,r.createElement("div",{className:D(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},_.length)),H.splice(Math.min(W.overflowPosition,H.length),0,r.createElement("button",{key:"overflowbutton","data-layout-path":g+"/button/overflow",ref:v,className:D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+D(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW),title:e,onClick:O,onMouseDown:A,onTouchStart:A},i))}if(void 0!==j&&n.isSupportsPopout()&&j.isEnableFloat()&&!j.isFloating()){const e=n.i18nName(o.I18nLabel.Float_Tab);H.push(r.createElement("button",{key:"float","data-layout-path":g+"/button/float",title:e,className:D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT),onClick:$,onMouseDown:A,onTouchStart:A},"function"==typeof h.popout?h.popout(j):h.popout))}if(t.canMaximize()){const e=n.i18nName(o.I18nLabel.Restore),i=n.i18nName(o.I18nLabel.Maximize);(B?U:H).push(r.createElement("button",{key:"max","data-layout-path":g+"/button/max",title:t.isMaximized()?e:i,className:D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_+(t.isMaximized()?"max":"min")),onClick:L,onMouseDown:A,onTouchStart:A},t.isMaximized()?"function"==typeof h.restore?h.restore(t):h.restore:"function"==typeof h.maximize?h.maximize(t):h.maximize))}if(!t.isMaximized()&&q){const e=X?n.i18nName(o.I18nLabel.Close_Tab):n.i18nName(o.I18nLabel.Close_Tabset);(B?U:H).push(r.createElement("button",{key:"close","data-layout-path":g+"/button/close",title:e,className:D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE),onClick:X?M:P,onMouseDown:A,onTouchStart:A},"function"==typeof h.closeTabset?h.closeTabset(t):h.closeTabset))}const Y=r.createElement("div",{key:"toolbar",ref:m,className:D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:A,onTouchStart:A,onDragStart:e=>{e.preventDefault()}},H);let G,K,Q=D(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER);if(void 0!==t.getClassNameTabStrip()&&(Q+=" "+t.getClassNameTabStrip()),Q+=" "+u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER_+t.getTabLocation(),t.isActive()&&!B&&(Q+=" "+D(u.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),t.isMaximized()&&!B&&(Q+=" "+D(u.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),X){const e=t.getChildren()[0];void 0!==e.getTabSetClassName()&&(Q+=" "+e.getTabSetClassName())}if(B){const e=r.createElement("div",{key:"toolbar",ref:m,className:D(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:A,onTouchStart:A,onDragStart:e=>{e.preventDefault()}},U);let n=D(u.CLASSES.FLEXLAYOUT__TABSET_HEADER);t.isActive()&&(n+=" "+D(u.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),t.isMaximized()&&(n+=" "+D(u.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),void 0!==t.getClassNameHeader()&&(n+=" "+t.getClassNameHeader()),G=r.createElement("div",{className:n,style:{height:t.getHeaderHeight()+"px"},"data-layout-path":g+"/header",onMouseDown:k,onContextMenu:N,onClick:R,onAuxClick:R,onTouchStart:k},r.createElement("div",{className:D(u.CLASSES.FLEXLAYOUT__TABSET_HEADER_CONTENT)},V),e)}const J={height:t.getTabStripHeight()+"px"};K=r.createElement("div",{className:Q,style:J,"data-layout-path":g+"/tabstrip",onMouseDown:k,onContextMenu:N,onClick:R,onAuxClick:R,onTouchStart:k},r.createElement("div",{ref:b,className:D(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER)+" "+D(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_+t.getTabLocation())},r.createElement("div",{style:{left:E,width:X?"100%":"10000px"},className:D(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER)+" "+D(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_+t.getTabLocation())},z)),Y),Z=n.styleFont(Z);var ee=void 0;if(0===t.getChildren().length){const e=n.getTabSetPlaceHolderCallback();e&&(ee=e(t))}const te=r.createElement("div",{className:D(u.CLASSES.FLEXLAYOUT__TABSET_CONTENT)},ee);var ne;return ne="top"===t.getTabLocation()?r.createElement(r.Fragment,null,G,K,te):r.createElement(r.Fragment,null,G,te,K),r.createElement("div",{ref:S,dir:"ltr","data-layout-path":g,style:Z,className:D(u.CLASSES.FLEXLAYOUT__TABSET),onWheel:C},ne)}},4592:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAuxMouseEvent=t.hideElement=t.getRenderStateEx=void 0;const r=n(7294);t.getRenderStateEx=function(e,t,n,o,i){let a=n?n(t):void 0,s=t.getName(),l=t.getName();if(void 0===i&&(i=0),void 0!==o){const e=o(t);void 0!==e&&("string"==typeof e?(s=e,l=e):void 0!==e.titleContent?(s=e.titleContent,l=e.name):s=e)}void 0===a&&void 0!==t.getIcon()&&(a=0!==i?r.createElement("img",{style:{width:"1em",height:"1em",transform:"rotate("+i+"deg)"},src:t.getIcon(),alt:"leadingContent"}):r.createElement("img",{style:{width:"1em",height:"1em"},src:t.getIcon(),alt:"leadingContent"}));const c={leading:a,content:s,name:l,buttons:[]};return e.customizeTab(t,c),t._setRenderedName(c.name),c},t.hideElement=function(e,t){t?e.visibility="hidden":e.display="none"},t.isAuxMouseEvent=function(e){let t=!1;return e.nativeEvent instanceof MouseEvent&&(0!==e.nativeEvent.button||e.ctrlKey||e.altKey||e.metaKey||e.shiftKey)&&(t=!0),t}},8679:(e,t,n)=>{"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m{"use strict";n.d(t,{s:()=>E,Z:()=>T});var r=n(7462),o=n(9439),i=n(8705),a=n(7294),s=a.createContext({}),l=n(1413),c=n(3967),u=n.n(c),d=n(4999),f=n(7028),p=n(5105),h=n(4217);function g(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function m(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}var v=n(5461),b=n(2550);const y=a.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var S={width:0,height:0,overflow:"hidden",outline:"none"};const E=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,c=e.title,d=e.ariaId,f=e.footer,p=e.closable,h=e.closeIcon,g=e.onClose,m=e.children,v=e.bodyStyle,E=e.bodyProps,w=e.modalRender,_=e.onMouseDown,C=e.onMouseUp,x=e.holderRef,O=e.visible,T=e.forceRender,k=e.width,R=e.height,N=e.classNames,A=e.styles,L=a.useContext(s).panel,P=(0,b.x1)(x,L),M=(0,a.useRef)(),$=(0,a.useRef)();a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=M.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===$.current?M.current.focus():e||t!==M.current||$.current.focus()}}}));var I,D,j,Z={};void 0!==k&&(Z.width=k),void 0!==R&&(Z.height=R),f&&(I=a.createElement("div",{className:u()("".concat(n,"-footer"),null==N?void 0:N.footer),style:(0,l.Z)({},null==A?void 0:A.footer)},f)),c&&(D=a.createElement("div",{className:u()("".concat(n,"-header"),null==N?void 0:N.header),style:(0,l.Z)({},null==A?void 0:A.header)},a.createElement("div",{className:"".concat(n,"-title"),id:d},c))),p&&(j=a.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(n,"-close")},h||a.createElement("span",{className:"".concat(n,"-close-x")})));var z=a.createElement("div",{className:u()("".concat(n,"-content"),null==N?void 0:N.content),style:null==A?void 0:A.content},j,D,a.createElement("div",(0,r.Z)({className:u()("".concat(n,"-body"),null==N?void 0:N.body),style:(0,l.Z)((0,l.Z)({},v),null==A?void 0:A.body)},E),m),I);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?d:null,"aria-modal":"true",ref:P,style:(0,l.Z)((0,l.Z)({},i),Z),className:u()(n,o),onMouseDown:_,onMouseUp:C},a.createElement("div",{tabIndex:0,ref:M,style:S,"aria-hidden":"true"}),a.createElement(y,{shouldUpdate:O||T},w?w(z):z),a.createElement("div",{tabIndex:0,ref:$,style:S,"aria-hidden":"true"}))}));var w=a.forwardRef((function(e,t){var n=e.prefixCls,i=e.title,s=e.style,c=e.className,d=e.visible,f=e.forceRender,p=e.destroyOnClose,h=e.motionName,g=e.ariaId,b=e.onVisibleChanged,y=e.mousePosition,S=(0,a.useRef)(),w=a.useState(),_=(0,o.Z)(w,2),C=_[0],x=_[1],O={};function T(){var e,t,n,r,o,i=(e=S.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=m(o),n.top+=m(o,!0),n);x(y?"".concat(y.x-i.left,"px ").concat(y.y-i.top,"px"):"")}return C&&(O.transformOrigin=C),a.createElement(v.ZP,{visible:d,onVisibleChanged:b,onAppearPrepare:T,onEnterPrepare:T,forceRender:f,motionName:h,removeOnLeave:p,ref:S},(function(o,d){var f=o.className,p=o.style;return a.createElement(E,(0,r.Z)({},e,{ref:t,title:i,ariaId:g,prefixCls:n,holderRef:d,style:(0,l.Z)((0,l.Z)((0,l.Z)({},p),s),O),className:u()(c,f)}))}))}));w.displayName="Content";const _=w;function C(e){var t=e.prefixCls,n=e.style,o=e.visible,i=e.maskProps,s=e.motionName,c=e.className;return a.createElement(v.ZP,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var s=e.className,d=e.style;return a.createElement("div",(0,r.Z)({ref:o,style:(0,l.Z)((0,l.Z)({},d),n),className:u()("".concat(t,"-mask"),s,c)},i))}))}n(334);function x(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,i=e.zIndex,s=e.visible,c=void 0!==s&&s,m=e.keyboard,v=void 0===m||m,b=e.focusTriggerAfterClose,y=void 0===b||b,S=e.wrapStyle,E=e.wrapClassName,w=e.wrapProps,x=e.onClose,O=e.afterOpenChange,T=e.afterClose,k=e.transitionName,R=e.animation,N=e.closable,A=void 0===N||N,L=e.mask,P=void 0===L||L,M=e.maskTransitionName,$=e.maskAnimation,I=e.maskClosable,D=void 0===I||I,j=e.maskStyle,Z=e.maskProps,z=e.rootClassName,B=e.classNames,F=e.styles;var H=(0,a.useRef)(),U=(0,a.useRef)(),W=(0,a.useRef)(),V=a.useState(c),X=(0,o.Z)(V,2),q=X[0],Y=X[1],G=(0,f.Z)();function K(e){null==x||x(e)}var Q=(0,a.useRef)(!1),J=(0,a.useRef)(),ee=null;return D&&(ee=function(e){Q.current?Q.current=!1:U.current===e.target&&K(e)}),(0,a.useEffect)((function(){c&&(Y(!0),(0,d.Z)(U.current,document.activeElement)||(H.current=document.activeElement))}),[c]),(0,a.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]),a.createElement("div",(0,r.Z)({className:u()("".concat(n,"-root"),z)},(0,h.Z)(e,{data:!0})),a.createElement(C,{prefixCls:n,visible:P&&c,motionName:g(n,M,$),style:(0,l.Z)((0,l.Z)({zIndex:i},j),null==F?void 0:F.mask),maskProps:Z,className:null==B?void 0:B.mask}),a.createElement("div",(0,r.Z)({tabIndex:-1,onKeyDown:function(e){if(v&&e.keyCode===p.Z.ESC)return e.stopPropagation(),void K(e);c&&e.keyCode===p.Z.TAB&&W.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),E,null==B?void 0:B.wrapper),ref:U,onClick:ee,style:(0,l.Z)((0,l.Z)((0,l.Z)({zIndex:i},S),null==F?void 0:F.wrapper),{},{display:q?null:"none"})},w),a.createElement(_,(0,r.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),Q.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Q.current=!1}))},ref:W,closable:A,ariaId:G,prefixCls:n,visible:c&&q,onClose:K,onVisibleChanged:function(e){if(e)(0,d.Z)(U.current,document.activeElement)||null===(t=W.current)||void 0===t||t.focus();else{if(Y(!1),P&&H.current&&y){try{H.current.focus({preventScroll:!0})}catch(e){}H.current=null}q&&(null==T||T())}var t;null==O||O(e)},motionName:g(n,k,R)}))))}var O=function(e){var t=e.visible,n=e.getContainer,l=e.forceRender,c=e.destroyOnClose,u=void 0!==c&&c,d=e.afterClose,f=e.panelRef,p=a.useState(t),h=(0,o.Z)(p,2),g=h[0],m=h[1],v=a.useMemo((function(){return{panel:f}}),[f]);return a.useEffect((function(){t&&m(!0)}),[t]),l||!u||g?a.createElement(s.Provider,{value:v},a.createElement(i.Z,{open:t||l||g,autoDestroy:!1,getContainer:n,autoLock:t||g},a.createElement(x,(0,r.Z)({},e,{destroyOnClose:u,afterClose:function(){null==d||d(),m(!1)}})))):null};O.displayName="Dialog";const T=O},5461:(e,t,n)=>{"use strict";n.d(t,{V4:()=>ge,zt:()=>g,ZP:()=>me});var r=n(4942),o=n(1413),i=n(9439),a=n(1002),s=n(3967),l=n.n(s),c=n(4203),u=n(2550),d=n(7294),f=n(4925),p=["children"],h=d.createContext({});function g(e){var t=e.children,n=(0,f.Z)(e,p);return d.createElement(h.Provider,{value:n},t)}var m=n(5671),v=n(3144),b=n(9340),y=n(9388);const S=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(){return(0,m.Z)(this,n),t.apply(this,arguments)}return(0,v.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);var E=n(470),w="none",_="appear",C="enter",x="leave",O="none",T="prepare",k="start",R="active",N="end",A="prepared",L=n(8924);function P(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 M,$,I,D=(M=(0,L.Z)(),$="undefined"!=typeof window?window:{},I={animationend:P("Animation","AnimationEnd"),transitionend:P("Transition","TransitionEnd")},M&&("AnimationEvent"in $||delete I.animationend.animation,"TransitionEvent"in $||delete I.transitionend.transition),I),j={};if((0,L.Z)()){var Z=document.createElement("div");j=Z.style}var z={};function B(e){if(z[e])return z[e];var t=D[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,G.Z)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=(0,i.Z)(l,2),u=c[0],f=c[1];var p=t?Q:K;return Y((function(){if(a!==O&&a!==N){var e=p.indexOf(a),t=p[e+1],r=n(a);r===J?s(t,!0):t&&u((function(e){function n(){e.isCanceled()||s(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),d.useEffect((function(){return function(){f()}}),[]),[function(){s(T,!0)},a]};const re=function(e){var t=e;"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var a=e.visible,s=void 0===a||a,f=e.removeOnLeave,p=void 0===f||f,g=e.forceRender,m=e.children,v=e.motionName,b=e.leavedClassName,y=e.eventProps,O=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(h).motion),N=(0,d.useRef)(),L=(0,d.useRef)();var P=function(e,t,n,a){var s=a.motionEnter,l=void 0===s||s,c=a.motionAppear,u=void 0===c||c,f=a.motionLeave,p=void 0===f||f,h=a.motionDeadline,g=a.motionLeaveImmediately,m=a.onAppearPrepare,v=a.onEnterPrepare,b=a.onLeavePrepare,y=a.onAppearStart,S=a.onEnterStart,O=a.onLeaveStart,N=a.onAppearActive,L=a.onEnterActive,P=a.onLeaveActive,M=a.onAppearEnd,$=a.onEnterEnd,I=a.onLeaveEnd,D=a.onVisibleChanged,j=(0,E.Z)(),Z=(0,i.Z)(j,2),z=Z[0],B=Z[1],F=(0,E.Z)(w),H=(0,i.Z)(F,2),U=H[0],W=H[1],V=(0,E.Z)(null),X=(0,i.Z)(V,2),G=X[0],K=X[1],Q=(0,d.useRef)(!1),re=(0,d.useRef)(null);function oe(){return n()}var ie=(0,d.useRef)(!1);function ae(){W(w,!0),K(null,!0)}function se(e){var t=oe();if(!e||e.deadline||e.target===t){var n,r=ie.current;U===_&&r?n=null==M?void 0:M(t,e):U===C&&r?n=null==$?void 0:$(t,e):U===x&&r&&(n=null==I?void 0:I(t,e)),U!==w&&r&&!1!==n&&ae()}}var le=q(se),ce=(0,i.Z)(le,1)[0],ue=function(e){var t,n,o;switch(e){case _:return t={},(0,r.Z)(t,T,m),(0,r.Z)(t,k,y),(0,r.Z)(t,R,N),t;case C:return n={},(0,r.Z)(n,T,v),(0,r.Z)(n,k,S),(0,r.Z)(n,R,L),n;case x:return o={},(0,r.Z)(o,T,b),(0,r.Z)(o,k,O),(0,r.Z)(o,R,P),o;default:return{}}},de=d.useMemo((function(){return ue(U)}),[U]),fe=ne(U,!e,(function(e){if(e===T){var t=de[T];return t?t(oe()):J}var n;return ge in de&&K((null===(n=de[ge])||void 0===n?void 0:n.call(de,oe(),null))||null),ge===R&&(ce(oe()),h>0&&(clearTimeout(re.current),re.current=setTimeout((function(){se({deadline:!0})}),h))),ge===A&&ae(),ee})),pe=(0,i.Z)(fe,2),he=pe[0],ge=pe[1],me=te(ge);ie.current=me,Y((function(){B(t);var n,r=Q.current;Q.current=!0,!r&&t&&u&&(n=_),r&&t&&l&&(n=C),(r&&!t&&p||!r&&g&&!t&&p)&&(n=x);var o=ue(n);n&&(e||o[T])?(W(n),he()):W(w)}),[t]),(0,d.useEffect)((function(){(U===_&&!u||U===C&&!l||U===x&&!p)&&W(w)}),[u,l,p]),(0,d.useEffect)((function(){return function(){Q.current=!1,clearTimeout(re.current)}}),[]);var ve=d.useRef(!1);(0,d.useEffect)((function(){z&&(ve.current=!0),void 0!==z&&U===w&&((ve.current||z)&&(null==D||D(z)),ve.current=!0)}),[z,U]);var be=G;return de[T]&&ge===k&&(be=(0,o.Z)({transition:"none"},be)),[U,ge,be,null!=z?z:t]}(O,s,(function(){try{return N.current instanceof HTMLElement?N.current:(0,c.Z)(L.current)}catch(e){return null}}),e),M=(0,i.Z)(P,4),$=M[0],I=M[1],D=M[2],j=M[3],Z=d.useRef(j);j&&(Z.current=!0);var z,B=d.useCallback((function(e){N.current=e,(0,u.mH)(n,e)}),[n]),F=(0,o.Z)((0,o.Z)({},y),{},{visible:s});if(m)if($===w)z=j?m((0,o.Z)({},F),B):!p&&Z.current&&b?m((0,o.Z)((0,o.Z)({},F),{},{className:b}),B):g||!p&&!b?m((0,o.Z)((0,o.Z)({},F),{},{style:{display:"none"}}),B):null;else{var H,U;I===T?U="prepare":te(I)?U="active":I===k&&(U="start");var W=X(v,"".concat($,"-").concat(U));z=m((0,o.Z)((0,o.Z)({},F),{},{className:l()(X(v,$),(H={},(0,r.Z)(H,W,W&&U),(0,r.Z)(H,v,"string"==typeof v),H)),style:D}),B)}else z=null;d.isValidElement(z)&&(0,u.Yr)(z)&&(z.ref||(z=d.cloneElement(z,{ref:B})));return d.createElement(S,{ref:L},z)}));return n.displayName="CSSMotion",n}(U);var oe=n(7462),ie=n(7326),ae="add",se="keep",le="remove",ce="removed";function ue(e){var t;return t=e&&"object"===(0,a.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function de(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ue)}var fe=["component","children","onVisibleChanged","onAllRemoved"],pe=["status"],he=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re,n=function(e){(0,b.Z)(i,e);var n=(0,y.Z)(i);function i(){var e;(0,m.Z)(this,i);for(var t=arguments.length,a=new Array(t),s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=de(e),s=de(t);a.forEach((function(e){for(var t=!1,a=r;a1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==le}))).forEach((function(t){t.key===e&&(t.status=se)}))})),n}(r,i);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ce||e.status!==le}))}}}]),i}(d.Component);return(0,r.Z)(n,"defaultProps",{component:"div"}),n}(U),me=re},2906:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={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"}},5375:(e,t,n)=>{"use strict";n.d(t,{Z:()=>U});var r=n(7462),o=n(7294),i=n(344),a=(n(334),n(1413)),s=n(1002),l=n(4203),c=n(2550),u=o.createContext(null);var d=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__;n0},e.prototype.connect_=function(){f&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m?(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(){f&&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;g.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}(),b=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),N="undefined"!=typeof WeakMap?new WeakMap:new d,A=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=v.getInstance(),r=new R(t,n,this);N.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){A.prototype[e]=function(){var t;return(t=N.get(this))[e].apply(t,arguments)}}));const L=void 0!==p.ResizeObserver?p.ResizeObserver:A;var P=new Map;var M=new L((function(e){e.forEach((function(e){var t,n=e.target;null===(t=P.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var $=n(5671),I=n(3144),D=n(9340),j=n(9388),Z=function(e){(0,D.Z)(n,e);var t=(0,j.Z)(n);function n(){return(0,$.Z)(this,n),t.apply(this,arguments)}return(0,I.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function z(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),d=o.useRef(null),f=o.useContext(u),p="function"==typeof n,h=p?n(i):n,g=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!p&&o.isValidElement(h)&&(0,c.Yr)(h),v=m?h.ref:null,b=(0,c.x1)(v,i),y=function(){var e;return(0,l.Z)(i.current)||(i.current&&"object"===(0,s.Z)(i.current)?(0,l.Z)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,l.Z)(d.current)};o.useImperativeHandle(t,(function(){return y()}));var S=o.useRef(e);S.current=e;var E=o.useCallback((function(e){var t=S.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,s=o.height,l=e.offsetWidth,c=e.offsetHeight,u=Math.floor(i),d=Math.floor(s);if(g.current.width!==u||g.current.height!==d||g.current.offsetWidth!==l||g.current.offsetHeight!==c){var p={width:u,height:d,offsetWidth:l,offsetHeight:c};g.current=p;var h=l===Math.round(i)?i:l,m=c===Math.round(s)?s:c,v=(0,a.Z)((0,a.Z)({},p),{},{offsetWidth:h,offsetHeight:m});null==f||f(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return o.useEffect((function(){var e,t,n=y();return n&&!r&&(e=n,t=E,P.has(e)||(P.set(e,new Set),M.observe(e)),P.get(e).add(t)),function(){return function(e,t){P.has(e)&&(P.get(e).delete(t),P.get(e).size||(M.unobserve(e),P.delete(e)))}(n,E)}}),[i.current,r]),o.createElement(Z,{ref:d},m?o.cloneElement(h,{ref:b}):h)}const B=o.forwardRef(z);function F(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(B,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var H=o.forwardRef(F);H.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(u),s=o.useCallback((function(e,t,o){r.current+=1;var s=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){s===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(u.Provider,{value:s},t)};const U=H},344:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7294),o=n(1805);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))})),n}},8924:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:()=>r})},4999:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},4958:(e,t,n)=>{"use strict";n.d(t,{hq:()=>g,jL:()=>h});var r=n(8924),o=n(4999),i="data-rc-order",a="data-rc-priority",s="rc-util-key",l=new Map;function c(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):s}function u(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((l.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,s=t.priority,l=void 0===s?0:s,c=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),f="prependQueue"===c,p=document.createElement("style");p.setAttribute(i,c),f&&l&&p.setAttribute(a,"".concat(l)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var h=u(t),g=h.firstChild;if(o){if(f){var m=d(h).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(i)))return!1;var t=Number(e.getAttribute(a)||0);return l>=t}));if(m.length)return h.insertBefore(p,m[m.length-1].nextSibling),p}h.insertBefore(p,g)}else h.appendChild(p);return p}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(u(t)).find((function(n){return n.getAttribute(c(t))===e}))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&u(t).removeChild(n)}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=l.get(e);if(!n||!(0,o.Z)(document,n)){var r=f("",t),i=r.parentNode;l.set(e,i),e.removeChild(r)}}(u(n),n);var r=p(t,n);if(r){var i,a,s;if(null!==(i=n.csp)&&void 0!==i&&i.nonce&&r.nonce!==(null===(a=n.csp)||void 0===a?void 0:a.nonce))r.nonce=null===(s=n.csp)||void 0===s?void 0:s.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var d=f(e,n);return d.setAttribute(c(n),t),d}},4203:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,Z:()=>a});var r=n(7294),o=n(3935);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},5110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=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}},7571:(e,t,n)=>{"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{A:()=>o})},5105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r={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>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},8135:(e,t,n)=>{"use strict";var r;n.d(t,{s:()=>m,v:()=>S});var o,i=n(4165),a=n(5861),s=n(1002),l=n(1413),c=n(3935),u=(0,l.Z)({},r||(r=n.t(c,2))),d=u.version,f=u.render,p=u.unmountComponentAtNode;try{Number((d||"").split(".")[0])>=18&&(o=u.createRoot)}catch(e){}function h(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,s.Z)(t)&&(t.usingClientEntryPoint=e)}var g="__rc_react_root__";function m(e,t){o?function(e,t){h(!0);var n=t[g]||o(t);h(!1),n.render(e),t[g]=n}(e,t):function(e,t){f(e,t)}(e,t)}function v(e){return b.apply(this,arguments)}function b(){return(b=(0,a.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[g])||void 0===e||e.unmount(),delete t[g]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){p(e)}function S(e){return E.apply(this,arguments)}function E(){return(E=(0,a.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===o){e.next=2;break}return e.abrupt("return",v(t));case 2:y(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},6680:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o{"use strict";var r;n.d(t,{Z:()=>c});var o=n(9439),i=n(1413),a=n(7294);var s=0;var l=(0,i.Z)({},r||(r=n.t(a,2))).useId;const c=l?function(e){var t=l();return e||t}:function(e){var t=a.useState("ssr-id"),n=(0,o.Z)(t,2),r=n[0],i=n[1];return a.useEffect((function(){var e=s;s+=1,i("rc_unique_".concat(e))}),[]),e||r}},8410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,o:()=>a});var r=n(7294),o=(0,n(8924).Z)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])},a=function(e,t){i((function(t){if(!t)return e()}),t)};const s=i},6982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},1770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9439),o=n(6680),i=n(8410),a=n(470);function s(e){return void 0!==e}function l(e,t){var n=t||{},l=n.defaultValue,c=n.value,u=n.onChange,d=n.postState,f=(0,a.Z)((function(){return s(c)?c:s(l)?"function"==typeof l?l():l:"function"==typeof e?e():e})),p=(0,r.Z)(f,2),h=p[0],g=p[1],m=void 0!==c?c:h,v=d?d(m):m,b=(0,o.Z)(u),y=(0,a.Z)([m]),S=(0,r.Z)(y,2),E=S[0],w=S[1];return(0,i.o)((function(){var e=E[0];h!==e&&b(h,e)}),[E]),(0,i.o)((function(){s(c)||g(c)}),[c]),[v,(0,o.Z)((function(e,t){g(e,t),w([m],t)}))]}},470:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9439),o=n(7294);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.Z)(n,2),a=i[0],s=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||s(e)}]}},6790:(e,t,n)=>{"use strict";n.d(t,{zX:()=>r.Z});var r=n(6680);n(1770),n(2550),n(8880),n(334)},1881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1002),o=n(334);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=i.has(t);if((0,o.ZP)(!l,"Warning: There may be circular references"),l)return!1;if(t===a)return!0;if(n&&s>1)return!1;i.add(t);var c=s+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u{"use strict";n.d(t,{Z:()=>r});const r=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))}},8423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1413);function o(e,t){var n=(0,r.Z)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},4217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o="".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]+/),i="aria-",a="data-";function s(e,t){return 0===e.indexOf(t)}function l(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}:(0,r.Z)({},n);var l={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||s(n,i))||t.data&&s(n,a)||t.attr&&o.includes(n))&&(l[n]=e[n])})),l}},5164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function s(e){a.delete(e)}var l=function(e){var t=i+=1;return function n(o){if(0===o)s(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};l.cancel=function(e){var t=a.get(e);return s(e),o(t)};const c=l},2550:(e,t,n)=>{"use strict";n.d(t,{Yr:()=>c,mH:()=>a,sQ:()=>s,x1:()=>l});var r=n(1002),o=(n(7294),n(1805)),i=n(6982);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function s(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";function r(e,t){for(var n=e,r=0;rr})},8880:(e,t,n)=>{"use strict";n.d(t,{T:()=>f,Z:()=>c});var r=n(1002),o=n(1413),i=n(3433),a=n(4506),s=n(8306);function l(e,t,n,r){if(!t.length)return n;var s,c=(0,a.Z)(t),u=c[0],d=c.slice(1);return s=e||"number"!=typeof u?Array.isArray(e)?(0,i.Z)(e):(0,o.Z)({},e):[],r&&void 0===n&&1===d.length?delete s[u][d[0]]:s[u]=l(s[u],d,n,r),s}function c(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,s.Z)(e,t.slice(0,-1))?e:l(e,t,n,r)}function u(e){return Array.isArray(e)?[]:{}}var d="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{Kp:()=>i,ZP:()=>c});var r={},o=[];function i(e,t){}function a(e,t){}function s(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function l(e,t){s(i,e,t)}l.preMessage=function(e){o.push(e)},l.resetWarned=function(){r={}},l.noteOnce=function(e,t){s(a,e,t)};const c=l},1162:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case h:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isFragment=function(e){return v(e)===i},t.isMemo=function(e){return v(e)===h}},1805:(e,t,n)=>{"use strict";e.exports=n(1162)},4448:(e,t,n)=>{"use strict";var r=n(7294),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n