@next-bricks/advanced 0.1.12 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +13 -4
- package/dist/chunks/{1646.a80b5eaa.js → 1646.957a08b6.js} +2 -2
- package/dist/chunks/{1646.a80b5eaa.js.map → 1646.957a08b6.js.map} +1 -1
- package/dist/chunks/{3458.a7c99912.js → 3458.111b822d.js} +2 -2
- package/dist/chunks/{8691.81ea2d37.js.map → 3458.111b822d.js.map} +1 -1
- package/dist/chunks/{3494.8dc2bb35.js → 3494.768f10ae.js} +2 -2
- package/dist/chunks/{3494.8dc2bb35.js.map → 3494.768f10ae.js.map} +1 -1
- package/dist/chunks/{4049.5bc1b218.js → 4049.dfa7dd30.js} +2 -2
- package/dist/chunks/{4049.5bc1b218.js.map → 4049.dfa7dd30.js.map} +1 -1
- package/dist/chunks/4131.2e55e24b.js +2 -0
- package/dist/chunks/4131.2e55e24b.js.map +1 -0
- package/dist/chunks/{5725.e0c14c38.js → 5725.a45d68c2.js} +2 -2
- package/dist/chunks/{5725.e0c14c38.js.map → 5725.a45d68c2.js.map} +1 -1
- package/dist/chunks/{6205.c9cafcb5.js → 6205.0b0a79c2.js} +2 -2
- package/dist/chunks/{6205.c9cafcb5.js.map → 6205.0b0a79c2.js.map} +1 -1
- package/dist/chunks/{6473.7e4b82f1.js → 6473.7aea81d2.js} +2 -2
- package/dist/chunks/{6473.7e4b82f1.js.map → 6473.7aea81d2.js.map} +1 -1
- package/dist/chunks/6844.b08b917c.js +3 -0
- package/dist/chunks/{6844.9402d508.js.map → 6844.b08b917c.js.map} +1 -1
- package/dist/chunks/{7164.7af47bd2.js → 7164.1d1ae5f3.js} +2 -2
- package/dist/chunks/{7164.7af47bd2.js.map → 7164.1d1ae5f3.js.map} +1 -1
- package/dist/chunks/{7672.521a9b9b.js → 7672.6000594c.js} +2 -2
- package/dist/chunks/{7672.521a9b9b.js.map → 7672.6000594c.js.map} +1 -1
- package/dist/chunks/{7746.ea869f8e.js → 7746.a1c1cffa.js} +2 -2
- package/dist/chunks/{7746.ea869f8e.js.map → 7746.a1c1cffa.js.map} +1 -1
- package/dist/chunks/{7822.670428a7.js → 7822.52de038b.js} +2 -2
- package/dist/chunks/{7822.670428a7.js.map → 7822.52de038b.js.map} +1 -1
- package/dist/chunks/{8691.81ea2d37.js → 8691.dbde03d7.js} +2 -2
- package/dist/chunks/{3458.a7c99912.js.map → 8691.dbde03d7.js.map} +1 -1
- package/dist/chunks/9079.396e3358.js +2 -0
- package/dist/chunks/9079.396e3358.js.map +1 -0
- package/dist/chunks/960.2468c218.js +2 -0
- package/dist/chunks/960.2468c218.js.map +1 -0
- package/dist/chunks/eo-cascader.5adb949b.js +2 -0
- package/dist/chunks/eo-cascader.5adb949b.js.map +1 -0
- package/dist/chunks/eo-table.309c4bd5.js +2 -0
- package/dist/chunks/eo-table.309c4bd5.js.map +1 -0
- package/dist/chunks/main.c0f64881.js +2 -0
- package/dist/chunks/{main.0abaf141.js.map → main.c0f64881.js.map} +1 -1
- package/dist/index.99a60440.js +2 -0
- package/dist/index.99a60440.js.map +1 -0
- package/dist/manifest.json +9 -3
- package/dist/types.json +2 -2
- package/dist-types/cascader/index.d.ts +1 -5
- package/docs/{general-table.md → eo-table.md} +18 -18
- package/package.json +4 -4
- package/dist/chunks/4131.c8a8abfc.js +0 -2
- package/dist/chunks/4131.c8a8abfc.js.map +0 -1
- package/dist/chunks/5628.621f7c8f.js +0 -2
- package/dist/chunks/5628.621f7c8f.js.map +0 -1
- package/dist/chunks/6844.9402d508.js +0 -3
- package/dist/chunks/9079.36e4e5b3.js +0 -2
- package/dist/chunks/9079.36e4e5b3.js.map +0 -1
- package/dist/chunks/general-cascader.2bc0d953.js +0 -2
- package/dist/chunks/general-cascader.2bc0d953.js.map +0 -1
- package/dist/chunks/general-table.aeddb47a.js +0 -2
- package/dist/chunks/general-table.aeddb47a.js.map +0 -1
- package/dist/chunks/main.0abaf141.js +0 -2
- package/dist/index.af6ba6d0.js +0 -2
- package/dist/index.af6ba6d0.js.map +0 -1
- /package/dist/chunks/{6844.9402d508.js.LICENSE.txt → 6844.b08b917c.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 6844.b08b917c.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[6844,960],{4275:(e,t,n)=>{n.d(t,{Z:()=>gp});var o=n(8657),r=n.n(o),i={},a=n(6234),l=n(6574),s=n(3803),c=n(1992),u=n(2484),d=n.n(u);function p(e,t){var n=(0,l.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),r=o.useContext(null==e?void 0:e.Context),i=r||{},u=i.listeners,d=i.getValue,p=o.useRef();p.current=n(r?d():null==e?void 0:e.defaultValue);var f=o.useState({}),g=(0,a.Z)(f,2)[1];return(0,s.Z)((function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,c.Z)(p.current,t,!0)||g({})}}),[r]),p.current}var f=n(7896),g=n(6381),m=o.createContext(0);function h(){return o.useContext(m)}function v(e,t){var n=(0,g.Yr)(e),r=function(t,r){var i=n?{ref:r}:{};return h(),o.createElement(e,(0,f.Z)({},t,i))};return n?o.memo(o.forwardRef(r),t):o.memo(r,t)}var b,y={Context:b=o.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,r=o.useRef(t);r.current=t;var i=o.useState((function(){return{getValue:function(){return r.current},listeners:new Set}})),l=(0,a.Z)(i,1)[0];return(0,s.Z)((function(){(0,u.unstable_batchedUpdates)((function(){l.listeners.forEach((function(e){e(t)}))}))}),[t]),o.createElement(b.Provider,{value:l},n)},defaultValue:undefined};const x=y;o.memo((function(){var e=function(e,t){var n=o.useRef(0);n.current+=1;var r=o.useRef(e),i=[];Object.keys({}).map((function(e){var t;void 0!==(null===(t=r.current)||void 0===t?void 0:t[e])&&i.push(e)})),r.current=e;var a=o.useRef([]);return i.length&&(a.current=i),o.useDebugValue(n.current),o.useDebugValue(a.current.join(", ")),n.current}();return o.createElement("h1",null,"Render Times: ",e)})).displayName="RenderBlock";var C=n(6522),w=n(3028),S=n(6666),$=n(2779),E=n.n($),O=n(4959),k=n(2459),I=n(2895);const N=o.createContext({renderWithProps:!1});var T="RC_TABLE_KEY";function P(e){var t=[],n={};return e.forEach((function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,l=i||(o=a,null==o?[]:Array.isArray(o)?o:[o]).join("-")||T;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function D(e){return null!=e}function R(e){var t,n,r,i,l,s,u,d,g=e.component,m=e.children,v=e.ellipsis,b=e.scope,y=e.prefixCls,$=e.className,I=e.align,T=e.record,P=e.render,R=e.dataIndex,Z=e.renderIndex,M=e.shouldCellUpdate,j=e.index,z=e.rowType,A=e.colSpan,H=e.rowSpan,B=e.fixLeft,L=e.fixRight,K=e.firstFixLeft,_=e.lastFixLeft,W=e.firstFixRight,F=e.lastFixRight,V=e.appendNode,X=e.additionalProps,U=void 0===X?{}:X,G=e.isSticky,Y="".concat(y,"-cell"),q=p(x,["supportSticky","allColumnsFixedLeft"]),Q=q.supportSticky,J=q.allColumnsFixedLeft,ee=function(e,t,n,r,i,l){var s=o.useContext(N),u=h();return(0,O.Z)((function(){if(D(r))return[r];var a,l=null==t||""===t?[]:Array.isArray(t)?t:[t],c=(0,k.Z)(e,l),u=c,d=void 0;if(i){var p=i(c,e,n);!(a=p)||"object"!==(0,C.Z)(a)||Array.isArray(a)||o.isValidElement(a)?u=p:(u=p.children,d=p.props,s.renderWithProps=!0)}return[u,d]}),[u,e,r,t,i,n],(function(e,t){if(l){var n=(0,a.Z)(e,2)[1],o=(0,a.Z)(t,2)[1];return l(o,n)}return!!s.renderWithProps||!(0,c.Z)(e,t,!0)}))}(T,R,Z,m,P,M),te=(0,a.Z)(ee,2),ne=te[0],oe=te[1],re={},ie="number"==typeof B&&Q,ae="number"==typeof L&&Q;ie&&(re.position="sticky",re.left=B),ae&&(re.position="sticky",re.right=L);var le=null!==(t=null!==(n=null!==(r=null==oe?void 0:oe.colSpan)&&void 0!==r?r:U.colSpan)&&void 0!==n?n:A)&&void 0!==t?t:1,se=null!==(i=null!==(l=null!==(s=null==oe?void 0:oe.rowSpan)&&void 0!==s?s:U.rowSpan)&&void 0!==l?l:H)&&void 0!==i?i:1,ce=function(e,t){return p(x,(function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]}))}(j,se),ue=(0,a.Z)(ce,2),de=ue[0],pe=ue[1];if(0===le||0===se)return null;var fe=null!==(u=U.title)&&void 0!==u?u:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():o.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:z,ellipsis:v,children:ne}),ge=E()(Y,$,(d={},(0,S.Z)(d,"".concat(Y,"-fix-left"),ie&&Q),(0,S.Z)(d,"".concat(Y,"-fix-left-first"),K&&Q),(0,S.Z)(d,"".concat(Y,"-fix-left-last"),_&&Q),(0,S.Z)(d,"".concat(Y,"-fix-left-all"),_&&J&&Q),(0,S.Z)(d,"".concat(Y,"-fix-right"),ae&&Q),(0,S.Z)(d,"".concat(Y,"-fix-right-first"),W&&Q),(0,S.Z)(d,"".concat(Y,"-fix-right-last"),F&&Q),(0,S.Z)(d,"".concat(Y,"-ellipsis"),v),(0,S.Z)(d,"".concat(Y,"-with-append"),V),(0,S.Z)(d,"".concat(Y,"-fix-sticky"),(ie||ae)&&G&&Q),(0,S.Z)(d,"".concat(Y,"-row-hover"),!oe&&de),d),U.className,null==oe?void 0:oe.className),me={};I&&(me.textAlign=I);var he=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},U.style),me),re),null==oe?void 0:oe.style),ve=ne;return"object"!==(0,C.Z)(ve)||Array.isArray(ve)||o.isValidElement(ve)||(ve=null),v&&(_||W)&&(ve=o.createElement("span",{className:"".concat(Y,"-content")},ve)),o.createElement(g,(0,f.Z)({},oe,U,{className:ge,style:he,title:fe,scope:b,onMouseEnter:function(e){var t;T&&pe(j,j+se-1),null==U||null===(t=U.onMouseEnter)||void 0===t||t.call(U,e)},onMouseLeave:function(e){var t;T&&pe(-1,-1),null==U||null===(t=U.onMouseLeave)||void 0===t||t.call(U,e)},colSpan:1!==le?le:null,rowSpan:1!==se?se:null}),V,ve)}const Z=o.memo(R);function M(e,t,n,o,r,i){var a,l,s=n[e]||{},c=n[t]||{};"left"===s.fixed?a=o.left["rtl"===r?t:e]:"right"===c.fixed&&(l=o.right["rtl"===r?e:t]);var u=!1,d=!1,p=!1,f=!1,g=n[t+1],m=n[e-1],h=!(null!=i&&i.children);return"rtl"===r?void 0!==a?f=!(m&&"left"===m.fixed)&&h:void 0!==l&&(p=!(g&&"right"===g.fixed)&&h):void 0!==a?u=!(g&&"left"===g.fixed)&&h:void 0!==l&&(d=!(m&&"right"===m.fixed)&&h),{fixLeft:a,fixRight:l,lastFixLeft:u,firstFixRight:d,lastFixRight:p,firstFixLeft:f,isSticky:o.isSticky}}const j=o.createContext({});var z=n(2159),A=["children"];function H(e){return e.children}H.Row=function(e){var t=e.children,n=(0,z.Z)(e,A);return o.createElement("tr",n,t)},H.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,l=e.rowSpan,s=e.align,c=p(x,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,g=o.useContext(j),m=g.scrollColumnIndex,h=g.stickyOffsets,v=g.flattenColumns,b=g.columns,y=n+a-1+1===m?a+1:a,C=M(n,n+y-1,v,h,d,null==b?void 0:b[n]);return o.createElement(Z,(0,f.Z)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:y,rowSpan:l,render:function(){return r}},C))};const B=H,L=v((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=e.columns,a=p(x,"prefixCls"),l=r.length-1,s=r[l],c=o.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=s&&s.scrollbar?l:null,columns:i}}),[s,r,l,n,i]);return o.createElement(j.Provider,{value:c},o.createElement("tfoot",{className:"".concat(a,"-summary")},t))}));var K=B,_=n(1185),W=n(3174),F=n(9588),V=function(e){if((0,F.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},X=function(e,t){if(!V(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o},U=n(4226),G=n(4851),Y=n(8079);function q(e,t,n,o,r,i){var a=[];a.push({record:e,indent:t,index:i});var l=r(e),s=null==o?void 0:o.has(l);if(e&&Array.isArray(e[n])&&s)for(var c=0;c<e[n].length;c+=1){var u=q(e[n][c],t+1,n,o,r,c);a.push.apply(a,(0,Y.Z)(u))}return a}const Q=function(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,a=e.className,l=e.expanded,s=e.colSpan,c=e.isEmpty,u=p(x,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,g=u.fixColumn,m=u.componentWidth,h=u.horizonScroll,v=n;return(c?h:g)&&(v=o.createElement("div",{style:{width:m-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==m&&v)),o.createElement(r,{className:a,style:{display:l?null:"none"}},o.createElement(Z,{component:i,prefixCls:t,colSpan:s},v))};function J(e){var t=e.className,n=e.style,r=e.record,i=e.index,l=e.renderIndex,s=e.rowKey,c=e.rowExpandable,u=e.expandedKeys,d=e.onRow,g=e.indent,m=void 0===g?0:g,h=e.rowComponent,v=e.cellComponent,b=e.scopeCellComponent,y=e.childrenColumnName,C=p(x,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),S=C.prefixCls,$=C.fixedInfoList,O=C.flattenColumns,k=C.expandableType,I=C.expandRowByClick,N=C.onTriggerExpand,T=C.rowClassName,D=C.expandedRowClassName,R=C.indentSize,M=C.expandIcon,j=C.expandedRowRender,z=C.expandIconColumnIndex,A=o.useState(!1),H=(0,a.Z)(A,2),B=H[0],L=H[1],K=u&&u.has(s);o.useEffect((function(){K&&L(!0)}),[K]);var _="row"===k&&(!c||c(r)),W="nest"===k,F=y&&r&&r[y],V=_||W,X=o.useRef(N);X.current=N;var U,G=function(){X.current.apply(X,arguments)},Y=null==d?void 0:d(r,i);"string"==typeof T?U=T:"function"==typeof T&&(U=T(r,i,m));var q,J=P(O),ee=o.createElement(h,(0,f.Z)({},Y,{"data-row-key":s,className:E()(t,"".concat(S,"-row"),"".concat(S,"-row-level-").concat(m),U,Y&&Y.className),style:(0,w.Z)((0,w.Z)({},n),Y?Y.style:null),onClick:function(e){var t;I&&V&&G(r,e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];null==Y||null===(t=Y.onClick)||void 0===t||t.call.apply(t,[Y,e].concat(o))}}),O.map((function(e,t){var n,a,s=e.render,c=e.dataIndex,u=e.className,d=J[t],p=$[t];return t===(z||0)&&W&&(n=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(R*m,"px")},className:"".concat(S,"-row-indent indent-level-").concat(m)}),M({prefixCls:S,expanded:K,expandable:F,record:r,onExpand:G}))),e.onCell&&(a=e.onCell(r,i)),o.createElement(Z,(0,f.Z)({className:u,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?b:v,prefixCls:S,key:d,record:r,index:i,renderIndex:l,dataIndex:c,render:s,shouldCellUpdate:e.shouldCellUpdate,expanded:n&&K},p,{appendNode:n,additionalProps:a}))})));if(_&&(B||K)){var te=j(r,i,m+1,K),ne=D&&D(r,i,m);q=o.createElement(Q,{expanded:K,className:E()("".concat(S,"-expanded-row"),"".concat(S,"-expanded-row-level-").concat(m+1),ne),prefixCls:S,component:h,cellComponent:v,colSpan:O.length,isEmpty:!1},te)}return o.createElement(o.Fragment,null,ee,q)}J.displayName="BodyRow";const ee=v(J);function te(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return o.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),o.createElement(_.Z,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function ne(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(_.Z.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return o.createElement(te,{key:e,columnKey:e,onColumnResize:r})}))))}function oe(e){var t,n=e.data,r=e.getRowKey,i=e.measureColumnWidth,a=e.expandedKeys,l=e.onRow,s=e.rowExpandable,c=e.emptyNode,u=e.childrenColumnName,d=p(x,["prefixCls","getComponent","onColumnResize","flattenColumns"]),f=d.prefixCls,g=d.getComponent,m=d.onColumnResize,h=d.flattenColumns,v=function(e,t,n,r){return o.useMemo((function(){if(null!=n&&n.size){for(var o=[],i=0;i<(null==e?void 0:e.length);i+=1){var a=e[i];o.push.apply(o,(0,Y.Z)(q(a,0,t,n,r,i)))}return o}return null==e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r])}(n,u,a,r),b=o.useRef({renderWithProps:!1}),y=g(["body","wrapper"],"tbody"),C=g(["body","row"],"tr"),w=g(["body","cell"],"td"),S=g(["body","cell"],"th");t=n.length?v.map((function(e,t){var n=e.record,i=e.indent,c=e.index,d=r(n,t);return o.createElement(ee,{key:d,rowKey:d,record:n,index:t,renderIndex:c,rowComponent:C,cellComponent:w,scopeCellComponent:S,expandedKeys:a,onRow:l,getRowKey:r,rowExpandable:s,childrenColumnName:u,indent:i})})):o.createElement(Q,{expanded:!0,className:"".concat(f,"-placeholder"),prefixCls:f,component:C,cellComponent:w,colSpan:h.length,isEmpty:!0},c);var $=P(h);return o.createElement(N.Provider,{value:b.current},o.createElement(y,{className:"".concat(f,"-tbody")},i&&o.createElement(ne,{prefixCls:f,columnsKey:$,onColumnResize:m}),t))}oe.displayName="Body";const re=v(oe);var ie=["expandable"],ae="RC_TABLE_INTERNAL_COL_DEFINE",le=["columnType"];const se=function(e){for(var t=e.colWidths,n=e.columns,r=[],i=!1,a=(e.columCount||n.length)-1;a>=0;a-=1){var l=t[a],s=n&&n[a],c=s&&s[ae];if(l||c||i){var u=c||{},d=(u.columnType,(0,z.Z)(u,le));r.unshift(o.createElement("col",(0,f.Z)({key:a,style:{width:l}},d))),i=!0}}return o.createElement("colgroup",null,r)};var ce=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],ue=o.forwardRef((function(e,t){var n=e.className,r=e.noData,i=e.columns,a=e.flattenColumns,l=e.colWidths,s=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,m=e.stickyBottomOffset,h=e.stickyClassName,v=e.onScroll,b=e.maxContentScroll,y=e.children,C=(0,z.Z)(e,ce),$=p(x,["prefixCls","scrollbarSize","isSticky"]),O=$.prefixCls,k=$.scrollbarSize,I=$.isSticky,N=I&&!d?0:k,T=o.useRef(null),P=o.useCallback((function(e){(0,g.mH)(t,e),(0,g.mH)(T,e)}),[]);o.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(v({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}return null===(e=T.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=T.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var D=o.useMemo((function(){return a.every((function(e){return e.width>=0}))}),[a]),R=a[a.length-1],Z={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(O,"-cell-scrollbar")}}},M=(0,o.useMemo)((function(){return N?[].concat((0,Y.Z)(i),[Z]):i}),[N,i]),j=(0,o.useMemo)((function(){return N?[].concat((0,Y.Z)(a),[Z]):a}),[N,a]),A=(0,o.useMemo)((function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===u?[].concat((0,Y.Z)(t.map((function(e){return e+N}))),[0]):t,right:"rtl"===u?e:[].concat((0,Y.Z)(e.map((function(e){return e+N}))),[0]),isSticky:I})}),[N,c,I]),H=function(e,t){return(0,o.useMemo)((function(){for(var n=[],o=0;o<t;o+=1){var r=e[o];if(void 0===r)return null;n[o]=r}return n}),[e.join("_"),t])}(l,s);return o.createElement("div",{style:(0,w.Z)({overflow:"hidden"},I?{top:f,bottom:m}:{}),ref:P,className:E()(n,(0,S.Z)({},h,!!h))},o.createElement("table",{style:{tableLayout:"fixed",visibility:r||H?null:"hidden"}},(!r||!b||D)&&o.createElement(se,{colWidths:H?[].concat((0,Y.Z)(H),[N]):[],columCount:s+1,columns:j}),y((0,w.Z)((0,w.Z)({},C),{},{stickyOffsets:A,columns:M,flattenColumns:j}))))}));ue.displayName="FixedHolder";const de=o.memo(ue);function pe(e){var t,n=e.cells,r=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,s=e.tdCellComponent,c=e.onHeaderRow,u=e.index,d=p(x,["prefixCls","direction"]),g=d.prefixCls,m=d.direction;c&&(t=c(n.map((function(e){return e.column})),u));var h=P(n.map((function(e){return e.column})));return o.createElement(a,t,n.map((function(e,t){var n,a=e.column,c=M(e.colStart,e.colEnd,i,r,m,a);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),o.createElement(Z,(0,f.Z)({},e,{scope:a.title?e.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:a.title?l:s,prefixCls:g,key:h[t]},c,{additionalProps:n,rowType:"header"}))})))}pe.displayName="HeaderRow";const fe=pe,ge=v((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=p(x,["prefixCls","getComponent"]),l=a.prefixCls,s=a.getComponent,c=o.useMemo((function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o;return n.filter(Boolean).map((function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,r+1).reduce((function(e,t){return e+t}),0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a}))}(e,0);for(var n=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r<n;r+=1)o(r);return t}(n)}),[n]),u=s(["header","wrapper"],"thead"),d=s(["header","row"],"tr"),f=s(["header","cell"],"th"),g=s(["header","cell"],"td");return o.createElement(u,{className:"".concat(l,"-thead")},c.map((function(e,n){return o.createElement(fe,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:f,tdCellComponent:g,onHeaderRow:i,index:n})})))}));var me=n(3514),he=["children"],ve=["fixed"];function be(e){return(0,me.Z)(e).filter((function(e){return o.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,o=n.children,r=(0,z.Z)(n,he),i=(0,w.Z)({key:t},r);return o&&(i.children=be(o)),i}))}function ye(e){return e.filter((function(e){return e&&"object"===(0,C.Z)(e)})).reduce((function(e,t){var n=t.fixed,o=!0===n?"left":n,r=t.children;return r&&r.length>0?[].concat((0,Y.Z)(e),(0,Y.Z)(ye(r).map((function(e){return(0,w.Z)({fixed:o},e)})))):[].concat((0,Y.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:o})])}),[])}const xe=function(e,t){var n=e.prefixCls,r=e.columns,a=e.children,l=e.expandable,s=e.expandedKeys,c=e.columnTitle,u=e.getRowKey,d=e.onTriggerExpand,p=e.expandIcon,f=e.rowExpandable,g=e.expandIconColumnIndex,m=e.direction,h=e.expandRowByClick,v=e.columnWidth,b=e.fixed,y=o.useMemo((function(){return r||be(a)}),[r,a]),x=o.useMemo((function(){if(l){var e,t=y.slice();if(!t.includes(i)){var r=g||0;r>=0&&t.splice(r,0,i)}var a=t.indexOf(i);t=t.filter((function(e,t){return e!==i||t===a}));var m,x=y[a];m="left"!==b&&!b||g?"right"!==b&&!b||g!==y.length?x?x.fixed:null:"right":"left";var C=(e={},(0,S.Z)(e,ae,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,S.Z)(e,"title",c),(0,S.Z)(e,"fixed",m),(0,S.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,S.Z)(e,"width",v),(0,S.Z)(e,"render",(function(e,t,r){var i=u(t,r),a=s.has(i),l=!f||f(t),c=p({prefixCls:n,expanded:a,expandable:l,record:t,onExpand:d});return h?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c})),e);return t.map((function(e){return e===i?C:e}))}return y.filter((function(e){return e!==i}))}),[l,y,u,s,p,m]),C=o.useMemo((function(){var e=x;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,x,m]),$=o.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var t=e.fixed,n=(0,z.Z)(e,ve),o=t;return"left"===t?o="right":"right"===t&&(o="left"),(0,w.Z)({fixed:o},n)}))}(ye(C)):ye(C)}),[C,m]);return[C,$]};function Ce(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,a=e.expanded,l=e.expandable,s="".concat(n,"-row-expand-icon");return l?o.createElement("span",{className:E()(s,(t={},(0,S.Z)(t,"".concat(n,"-row-expanded"),a),(0,S.Z)(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:function(e){i(r,e),e.stopPropagation()}}):o.createElement("span",{className:E()(s,"".concat(n,"-row-spaced"))})}function we(e){var t=(0,o.useRef)(e),n=(0,o.useState)({}),r=(0,a.Z)(n,2)[1],i=(0,o.useRef)(null),l=(0,o.useRef)([]);return(0,o.useEffect)((function(){return function(){i.current=null}}),[]),[t.current,function(e){l.current.push(e);var n=Promise.resolve();i.current=n,n.then((function(){if(i.current===n){var e=l.current,o=t.current;l.current=[],e.forEach((function(e){t.current=e(t.current)})),i.current=null,o!==t.current&&r({})}}))}]}var Se=(0,F.Z)()?window:null;const $e=function(e,t,n){return(0,o.useMemo)((function(){for(var o=[],r=[],i=0,a=0,l=0;l<t;l+=1)if("rtl"===n){r[l]=a,a+=e[l]||0;var s=t-l-1;o[s]=i,i+=e[s]||0}else{o[l]=i,i+=e[l]||0;var c=t-l-1;r[c]=a,a+=e[c]||0}return{left:o,right:r}}),[e,t,n])},Ee=function(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)};function Oe(e,t,n,o){var r=d().unstable_batchedUpdates?function(e){d().unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){e.removeEventListener&&e.removeEventListener(t,r,o)}}}function ke(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Ie=function(e,t){var n,r,i=e.scrollBodyRef,l=e.onScroll,s=e.offsetScroll,c=e.container,u=p(x,"prefixCls"),d=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,f=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,g=d&&f*(f/d),m=o.useRef(),h=we({scrollLeft:0,isHiddenScrollBar:!1}),v=(0,a.Z)(h,2),b=v[0],y=v[1],C=o.useRef({delta:0,x:0}),$=o.useState(!1),O=(0,a.Z)($,2),k=O[0],I=O[1],N=function(){I(!1)},T=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(k&&0!==n){var o=C.current.x+e.pageX-C.current.x-C.current.delta;o<=0&&(o=0),o+g>=f&&(o=f-g),l({scrollLeft:o/f*(d+2)}),C.current.x=e.pageX}else k&&I(!1)},P=function(){if(i.current){var e=ke(i.current).top,t=e+i.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:ke(c).top+c.clientHeight;t-(0,U.Z)()<=n||e>=n-s?y((function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})})):y((function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})}))}},D=function(e){y((function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/d*f||0})}))};return o.useImperativeHandle(t,(function(){return{setScrollLeft:D}})),o.useEffect((function(){var e=Oe(document.body,"mouseup",N,!1),t=Oe(document.body,"mousemove",T,!1);return P(),function(){e.remove(),t.remove()}}),[g,k]),o.useEffect((function(){var e=Oe(c,"scroll",P,!1),t=Oe(window,"resize",P,!1);return function(){e.remove(),t.remove()}}),[c]),o.useEffect((function(){b.isHiddenScrollBar||y((function(e){var t=i.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[b.isHiddenScrollBar]),d<=f||!g||b.isHiddenScrollBar?null:o.createElement("div",{style:{height:(0,U.Z)(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),C.current.delta=e.pageX-b.scrollLeft,C.current.x=0,I(!0),e.preventDefault()},ref:m,className:E()("".concat(u,"-sticky-scroll-bar"),(0,S.Z)({},"".concat(u,"-sticky-scroll-bar-active"),k)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const Ne=o.forwardRef(Ie);var Te=[],Pe={},De="rc-table-internal-hook";function Re(){return"No Data"}function Ze(e){var t,n,r,i,s=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:Re},e),u=s.prefixCls,d=s.className,p=s.rowClassName,g=s.style,m=s.data,h=s.rowKey,v=s.scroll,b=s.tableLayout,y=s.direction,$=s.title,I=s.footer,N=s.summary,T=s.caption,R=s.id,Z=s.showHeader,j=s.components,A=s.emptyText,H=s.onRow,K=s.onHeaderRow,F=s.internalHooks,q=s.transformColumns,Q=s.internalRefs,J=s.sticky,ee=m||Te,te=!!ee.length,ne=o.useCallback((function(e,t){return(0,k.Z)(j,e)||t}),[j]),oe=o.useMemo((function(){return"function"==typeof h?h:function(e){return e&&e[h]}}),[h]),ae=function(){var e=o.useState(-1),t=(0,a.Z)(e,2),n=t[0],r=t[1],i=o.useState(-1),l=(0,a.Z)(i,2),s=l[0],c=l[1];return[n,s,o.useCallback((function(e,t){r(e),c(t)}),[])]}(),le=(0,a.Z)(ae,3),ce=le[0],ue=le[1],pe=le[2],fe=function(e,t,n){var r=function(e){var t,n=e.expandable,o=(0,z.Z)(e,ie);return!1===(t="expandable"in e?(0,w.Z)((0,w.Z)({},o),n):o).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=r.expandIcon,l=r.expandedRowKeys,s=r.defaultExpandedRowKeys,c=r.defaultExpandAllRows,u=r.expandedRowRender,d=r.onExpand,p=r.onExpandedRowsChange,f=i||Ce,g=r.childrenColumnName||"children",m=o.useMemo((function(){return u?"row":!!(e.expandable&&e.internalHooks===De&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===(0,C.Z)(e)&&e[g]})))&&"nest"}),[!!u,t]),h=o.useState((function(){return s||(c?function(e,t,n){var o=[];return function e(r){(r||[]).forEach((function(r,i){o.push(t(r,i)),e(r[n])}))}(e),o}(t,n,g):[])})),v=(0,a.Z)(h,2),b=v[0],y=v[1],x=o.useMemo((function(){return new Set(l||b||[])}),[l,b]),S=o.useCallback((function(e){var o,r=n(e,t.indexOf(e)),i=x.has(r);i?(x.delete(r),o=(0,Y.Z)(x)):o=[].concat((0,Y.Z)(x),[r]),y(o),d&&d(!i,e),p&&p(o)}),[n,x,t,d,p]);return[r,m,x,f,g,S]}(s,ee,oe),me=(0,a.Z)(fe,6),he=me[0],ve=me[1],be=me[2],ye=me[3],Oe=me[4],ke=me[5],Ie=o.useState(0),Ze=(0,a.Z)(Ie,2),Me=Ze[0],je=Ze[1],ze=xe((0,w.Z)((0,w.Z)((0,w.Z)({},s),he),{},{expandable:!!he.expandedRowRender,columnTitle:he.columnTitle,expandedKeys:be,getRowKey:oe,onTriggerExpand:ke,expandIcon:ye,expandIconColumnIndex:he.expandIconColumnIndex,direction:y}),F===De?q:null),Ae=(0,a.Z)(ze,2),He=Ae[0],Be=Ae[1],Le=o.useMemo((function(){return{columns:He,flattenColumns:Be}}),[He,Be]),Ke=o.useRef(),_e=o.useRef(),We=o.useRef(),Fe=o.useRef(),Ve=o.useRef(),Xe=o.useState(!1),Ue=(0,a.Z)(Xe,2),Ge=Ue[0],Ye=Ue[1],qe=o.useState(!1),Qe=(0,a.Z)(qe,2),Je=Qe[0],et=Qe[1],tt=we(new Map),nt=(0,a.Z)(tt,2),ot=nt[0],rt=nt[1],it=P(Be).map((function(e){return ot.get(e)})),at=o.useMemo((function(){return it}),[it.join("_")]),lt=$e(at,Be.length,y),st=v&&D(v.y),ct=v&&D(v.x)||Boolean(he.fixed),ut=ct&&Be.some((function(e){return e.fixed})),dt=o.useRef(),pt=function(e,t){var n="object"===(0,C.Z)(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,a=n.offsetSummary,l=void 0===a?0:a,s=n.offsetScroll,c=void 0===s?0:s,u=n.getContainer,d=(void 0===u?function(){return Se}:u)()||Se;return o.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:c,container:d}}),[c,i,l,t,d])}(J,u),ft=pt.isSticky,gt=pt.offsetHeader,mt=pt.offsetSummary,ht=pt.offsetScroll,vt=pt.stickyClassName,bt=pt.container,yt=o.useMemo((function(){return null==N?void 0:N(ee)}),[N,ee]),xt=(st||ft)&&o.isValidElement(yt)&&yt.type===B&&yt.props.fixed;st&&(r={overflowY:"scroll",maxHeight:v.y}),ct&&(n={overflowX:"auto"},st||(r={overflowY:"hidden"}),i={width:!0===(null==v?void 0:v.x)?"auto":null==v?void 0:v.x,minWidth:"100%"});var Ct=o.useCallback((function(e,t){(0,W.Z)(Ke.current)&&rt((function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n}))}),[]),wt=function(e){var t=(0,o.useRef)(null),n=(0,o.useRef)();function r(){window.clearTimeout(n.current)}return(0,o.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(),St=(0,a.Z)(wt,2),$t=St[0],Et=St[1];function Ot(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var kt=(0,l.Z)((function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===y,i="number"==typeof o?o:n.scrollLeft,a=n||Pe;if(Et()&&Et()!==a||($t(a),Ot(i,_e.current),Ot(i,We.current),Ot(i,Ve.current),Ot(i,null===(t=dt.current)||void 0===t?void 0:t.setScrollLeft)),n){var l=n.scrollWidth,s=n.clientWidth;if(l===s)return Ye(!1),void et(!1);r?(Ye(-i<l-s),et(-i>0)):(Ye(i>0),et(i<l-s))}})),It=function(){ct&&We.current?kt({currentTarget:We.current}):(Ye(!1),et(!1))},Nt=o.useRef(!1);o.useEffect((function(){Nt.current&&It()}),[ct,m,He.length]),o.useEffect((function(){Nt.current=!0}),[]);var Tt=o.useState(0),Pt=(0,a.Z)(Tt,2),Dt=Pt[0],Rt=Pt[1],Zt=o.useState(!0),Mt=(0,a.Z)(Zt,2),jt=Mt[0],zt=Mt[1];o.useEffect((function(){var e,t;We.current instanceof Element?Rt((0,U.o)(We.current).width):Rt((0,U.o)(Fe.current).width),zt((e="position",t="sticky",Array.isArray(e)?V(e):X(e,t)))}),[]),o.useEffect((function(){F===De&&Q&&(Q.body.current=We.current)}));var At,Ht=o.useCallback((function(e){return o.createElement(o.Fragment,null,o.createElement(ge,e),"top"===xt&&o.createElement(L,e,yt))}),[xt,yt]),Bt=o.useCallback((function(e){return o.createElement(L,e,yt)}),[yt]),Lt=ne(["table"],"table"),Kt=o.useMemo((function(){return b||(ut?"max-content"===(null==v?void 0:v.x)?"auto":"fixed":st||ft||Be.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[st,ut,Be,b,ft]),_t={colWidths:at,columCount:Be.length,stickyOffsets:lt,onHeaderRow:K,fixHeader:st,scroll:v},Wt=o.useMemo((function(){return te?null:"function"==typeof A?A():A}),[te,A]),Ft=o.createElement(re,{data:ee,measureColumnWidth:st||ct||ft,expandedKeys:be,rowExpandable:he.rowExpandable,getRowKey:oe,onRow:H,emptyNode:Wt,childrenColumnName:Oe}),Vt=o.createElement(se,{colWidths:Be.map((function(e){return e.width})),columns:Be}),Xt=null!=T?o.createElement("caption",{className:"".concat(u,"-caption")},T):void 0,Ut=ne(["body"]),Gt=(0,G.Z)(s,{data:!0}),Yt=(0,G.Z)(s,{aria:!0});if(st||ft){var qt;"function"==typeof Ut?(qt=Ut(ee,{scrollbarSize:Dt,ref:We,onScroll:kt}),_t.colWidths=Be.map((function(e,t){var n=e.width,o=t===He.length-1?n-Dt:n;return"number"!=typeof o||Number.isNaN(o)?0:o}))):qt=o.createElement("div",{style:(0,w.Z)((0,w.Z)({},n),r),onScroll:kt,ref:We,className:E()("".concat(u,"-body"))},o.createElement(Lt,(0,f.Z)({style:(0,w.Z)((0,w.Z)({},i),{},{tableLayout:Kt})},Yt),Xt,Vt,Ft,!xt&&yt&&o.createElement(L,{stickyOffsets:lt,flattenColumns:Be,columns:He},yt)));var Qt=(0,w.Z)((0,w.Z)((0,w.Z)({noData:!ee.length,maxContentScroll:ct&&"max-content"===v.x},_t),Le),{},{direction:y,stickyClassName:vt,onScroll:kt});At=o.createElement(o.Fragment,null,!1!==Z&&o.createElement(de,(0,f.Z)({},Qt,{stickyTopOffset:gt,className:"".concat(u,"-header"),ref:_e}),Ht),qt,xt&&"top"!==xt&&o.createElement(de,(0,f.Z)({},Qt,{stickyBottomOffset:mt,className:"".concat(u,"-summary"),ref:Ve}),Bt),ft&&o.createElement(Ne,{ref:dt,offsetScroll:ht,scrollBodyRef:We,onScroll:kt,container:bt}))}else At=o.createElement("div",{style:(0,w.Z)((0,w.Z)({},n),r),className:E()("".concat(u,"-content")),onScroll:kt,ref:We},o.createElement(Lt,(0,f.Z)({style:(0,w.Z)((0,w.Z)({},i),{},{tableLayout:Kt})},Yt),Xt,Vt,!1!==Z&&o.createElement(ge,(0,f.Z)({},_t,Le)),Ft,yt&&o.createElement(L,{stickyOffsets:lt,flattenColumns:Be,columns:He},yt)));var Jt=o.createElement("div",(0,f.Z)({className:E()(u,d,(t={},(0,S.Z)(t,"".concat(u,"-rtl"),"rtl"===y),(0,S.Z)(t,"".concat(u,"-ping-left"),Ge),(0,S.Z)(t,"".concat(u,"-ping-right"),Je),(0,S.Z)(t,"".concat(u,"-layout-fixed"),"fixed"===b),(0,S.Z)(t,"".concat(u,"-fixed-header"),st),(0,S.Z)(t,"".concat(u,"-fixed-column"),ut),(0,S.Z)(t,"".concat(u,"-scroll-horizontal"),ct),(0,S.Z)(t,"".concat(u,"-has-fix-left"),Be[0]&&Be[0].fixed),(0,S.Z)(t,"".concat(u,"-has-fix-right"),Be[Be.length-1]&&"right"===Be[Be.length-1].fixed),t)),style:g,id:R,ref:Ke},Gt),$&&o.createElement(Ee,{className:"".concat(u,"-title")},$(ee)),o.createElement("div",{ref:Fe,className:"".concat(u,"-container")},At),I&&o.createElement(Ee,{className:"".concat(u,"-footer")},I(ee)));ct&&(Jt=o.createElement(_.Z,{onResize:function(e){var t=e.width;t!==Me&&(It(),je(Ke.current?Ke.current.offsetWidth:t))}},Jt));var en=function(e,t,n,o){var r=e.map((function(r,i){return M(i,i,e,t,n,null==o?void 0:o[i])}));return(0,O.Z)((function(){return r}),[r],(function(e,t){return!(0,c.Z)(e,t)}))}(Be,lt,y,He),tn=o.useMemo((function(){return{prefixCls:u,getComponent:ne,scrollbarSize:Dt,direction:y,fixedInfoList:en,isSticky:ft,supportSticky:jt,componentWidth:Me,fixHeader:st,fixColumn:ut,horizonScroll:ct,tableLayout:Kt,rowClassName:p,expandedRowClassName:he.expandedRowClassName,expandIcon:ye,expandableType:ve,expandRowByClick:he.expandRowByClick,expandedRowRender:he.expandedRowRender,onTriggerExpand:ke,expandIconColumnIndex:he.expandIconColumnIndex,indentSize:he.indentSize,allColumnsFixedLeft:Be.every((function(e){return"left"===e.fixed})),columns:He,flattenColumns:Be,onColumnResize:Ct,hoverStartRow:ce,hoverEndRow:ue,onHover:pe}}),[u,ne,Dt,y,en,ft,jt,Me,st,ut,ct,Kt,p,he.expandedRowClassName,ye,ve,he.expandRowByClick,he.expandedRowRender,ke,he.expandIconColumnIndex,he.indentSize,He,Be,Ct,ce,ue,pe]);return o.createElement(x.Provider,{value:tn},Jt)}function Me(e){return function(e,t){var n=(0,g.Yr)(e),r=function(r,i){var a=n?{ref:i}:{},l=o.useRef(0),s=o.useRef(r);return t&&!t(s.current,r)||(l.current+=1),s.current=r,o.createElement(m.Provider,{value:l.current},o.createElement(e,(0,f.Z)({},r,a)))};return n?o.forwardRef(r):r}(Ze,e)}var je=Me();je.EXPAND_COLUMN=i,je.Column=function(e){return null},je.ColumnGroup=function(e){return null},je.Summary=K;var ze=n(4899),Ae=n(5298),He=n(4514),Be=n(4153);function Le(){const[,e]=o.useReducer((e=>e+1),0);return e}var Ke=n(7804);const _e=["xxl","xl","lg","md","sm","xs"],We=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,o.useRef)({}),n=Le(),i=function(){const[,e]=(0,Ke.dQ)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(_e).reverse();return n.forEach(((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e})(e));return r().useMemo((()=>{const e=new Map;let n=-1,o={};return{matchHandlers:{},dispatch:t=>(o=t,e.forEach((e=>e(o))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],o=this.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},o),{[e]:n}))},i=window.matchMedia(n);i.addListener(r),this.matchHandlers[n]={mql:i,listener:r},r(i)}))},responsiveMap:t}}),[e])}();return(0,o.useEffect)((()=>{const o=i.subscribe((o=>{t.current=o,e&&n()}));return()=>i.unsubscribe(o)}),[]),t.current};var Fe=n(2513);const Ve={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 Xe=n(3154),Ue=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Ve}))};Ue.displayName="DoubleLeftOutlined";const Ge=o.forwardRef(Ue),Ye={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 qe=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Ye}))};qe.displayName="DoubleRightOutlined";const Qe=o.forwardRef(qe);var Je=n(1394),et=n(5672),tt=n(9249),nt=n(7371),ot=n(8106),rt=n(5181);const it=13,at=38,lt=40;var st=function(e){(0,ot.Z)(n,e);var t=(0,rt.Z)(n);function n(){var e;(0,tt.Z)(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={goInputText:""},e.getValidValue=function(){var t=e.state.goInputText;return!t||Number.isNaN(t)?void 0:Number(t)},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,o=n.goButton,r=n.quickGo,i=n.rootPrefixCls,a=e.state.goInputText;o||""===a||(e.setState({goInputText:""}),t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(i,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==it&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,nt.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,o=t.locale,i=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,s=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,p=t.disabled,f=this.state.goInputText,g="".concat(i,"-options"),m=c,h=null,v=null,b=null;if(!a&&!l)return null;var y=this.getPageSizeOptions();if(a&&m){var x=y.map((function(t,n){return r().createElement(m.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));h=r().createElement(m,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},x)}return l&&(s&&(b="boolean"==typeof s?r().createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(g,"-quick-jumper-button")},o.jump_to_confirm):r().createElement("span",{onClick:this.go,onKeyUp:this.go},s)),v=r().createElement("div",{className:"".concat(g,"-quick-jumper")},o.jump_to,r().createElement("input",{disabled:p,type:"text",value:f,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":o.page}),o.page,b)),r().createElement("li",{className:"".concat(g)},h,v)}}]),n}(r().Component);st.defaultProps={pageSizeOptions:["10","20","50","100"]};const ct=st,ut=function(e){var t,n=e.rootPrefixCls,o=e.page,i=e.active,a=e.className,l=e.showTitle,s=e.onClick,c=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),p=E()(d,"".concat(d,"-").concat(o),(t={},(0,S.Z)(t,"".concat(d,"-active"),i),(0,S.Z)(t,"".concat(d,"-disabled"),!o),(0,S.Z)(t,e.className,a),t));return r().createElement("li",{title:l?o.toString():null,className:p,onClick:function(){s(o)},onKeyPress:function(e){c(e,s,o)},tabIndex:0},u(o,"page",r().createElement("a",{rel:"nofollow"},o)))};function dt(){}function pt(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ft(e,t,n){var o=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/o)+1}var gt=function(e){(0,ot.Z)(n,e);var t=(0,rt.Z)(n);function n(e){var i;(0,tt.Z)(this,n),(i=t.call(this,e)).paginationNode=r().createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(ft(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,o=e||r().createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=r().createElement(e,(0,w.Z)({},i.props))),o},i.isValid=function(e){var t=i.props.total;return pt(e)&&e!==i.state.current&&pt(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){e.keyCode!==at&&e.keyCode!==lt||e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===it?i.handleChange(t):e.keyCode===at?i.handleChange(t-1):e.keyCode===lt&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=ft(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"==typeof e&&("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,o=t.onChange,r=i.state,a=r.pageSize,l=r.current,s=r.currentInputValue;if(i.isValid(e)&&!n){var c=ft(void 0,i.state,i.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in i.props||i.setState({current:u}),u!==s&&i.setState({currentInputValue:u}),o(u,a),u}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current<ft(void 0,i.state,i.props)},i.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}},i.runIfEnterPrev=function(e){i.runIfEnter(e,i.prev)},i.runIfEnterNext=function(e){i.runIfEnter(e,i.next)},i.runIfEnterJumpPrev=function(e){i.runIfEnter(e,i.jumpPrev)},i.runIfEnterJumpNext=function(e){i.runIfEnter(e,i.jumpNext)},i.handleGoTO=function(e){e.keyCode!==it&&"click"!==e.type||i.handleChange(i.state.currentInputValue)},i.renderPrev=function(e){var t=i.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",i.getItemIcon(n,"prev page")),a=!i.hasPrev();return(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{disabled:a}):r},i.renderNext=function(e){var t=i.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",i.getItemIcon(n,"next page")),a=!i.hasNext();return(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{disabled:a}):r};var a=e.onChange!==dt;"current"in e&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=e.defaultCurrent;"current"in e&&(l=e.current);var s=e.defaultPageSize;return"pageSize"in e&&(s=e.pageSize),l=Math.min(l,ft(s,void 0,e)),i.state={current:l,currentInputValue:l,pageSize:s},i}return(0,nt.Z)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode.current){var o,r=this.paginationNode.current.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&(null==r||null===(o=r.blur)||void 0===o||o.call(r))}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=ft(void 0,this.state,this.props),o=this.state.currentInputValue;return""===t?t:Number.isNaN(Number(t))?o:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,o=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>o}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,a=t.style,l=t.disabled,s=t.hideOnSinglePage,c=t.total,u=t.locale,d=t.showQuickJumper,p=t.showLessItems,g=t.showTitle,m=t.showTotal,h=t.simple,v=t.itemRender,b=t.showPrevNextJumpers,y=t.jumpPrevIcon,x=t.jumpNextIcon,C=t.selectComponentClass,w=t.selectPrefixCls,$=t.pageSizeOptions,O=this.state,k=O.current,I=O.pageSize,N=O.currentInputValue;if(!0===s&&c<=I)return null;var T=ft(void 0,this.state,this.props),P=[],D=null,R=null,Z=null,M=null,j=null,z=d&&d.goButton,A=p?1:2,H=k-1>0?k-1:0,B=k+1<T?k+1:T,L=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),K=m&&r().createElement("li",{className:"".concat(n,"-total-text")},m(c,[0===c?0:(k-1)*I+1,k*I>c?c:k*I]));if(h)return z&&(j="boolean"==typeof z?r().createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},u.jump_to_confirm):r().createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),j=r().createElement("li",{title:g?"".concat(u.jump_to).concat(k,"/").concat(T):null,className:"".concat(n,"-simple-pager")},j)),r().createElement("ul",(0,f.Z)({className:E()(n,"".concat(n,"-simple"),(0,S.Z)({},"".concat(n,"-disabled"),l),i),style:a,ref:this.paginationNode},L),K,r().createElement("li",{title:g?u.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:E()("".concat(n,"-prev"),(0,S.Z)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(H)),r().createElement("li",{title:g?"".concat(k,"/").concat(T):null,className:"".concat(n,"-simple-pager")},r().createElement("input",{type:"text",value:N,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),r().createElement("span",{className:"".concat(n,"-slash")},"/"),T),r().createElement("li",{title:g?u.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:E()("".concat(n,"-next"),(0,S.Z)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),j);if(T<=3+2*A){var _={locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:v};T||P.push(r().createElement(ut,(0,f.Z)({},_,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var W=1;W<=T;W+=1){var F=k===W;P.push(r().createElement(ut,(0,f.Z)({},_,{key:W,page:W,active:F})))}}else{var V=p?u.prev_3:u.prev_5,X=p?u.next_3:u.next_5;b&&(D=r().createElement("li",{title:g?V:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:E()("".concat(n,"-jump-prev"),(0,S.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!y))},v(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(y,"prev page"))),R=r().createElement("li",{title:g?X:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:E()("".concat(n,"-jump-next"),(0,S.Z)({},"".concat(n,"-jump-next-custom-icon"),!!x))},v(this.getJumpNextPage(),"jump-next",this.getItemIcon(x,"next page")))),M=r().createElement(ut,{locale:u,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:g,itemRender:v}),Z=r().createElement(ut,{locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:v});var U=Math.max(1,k-A),G=Math.min(k+A,T);k-1<=A&&(G=1+2*A),T-k<=A&&(U=T-2*A);for(var Y=U;Y<=G;Y+=1){var q=k===Y;P.push(r().createElement(ut,{locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Y,page:Y,active:q,showTitle:g,itemRender:v}))}k-1>=2*A&&3!==k&&(P[0]=(0,o.cloneElement)(P[0],{className:"".concat(n,"-item-after-jump-prev")}),P.unshift(D)),T-k>=2*A&&k!==T-2&&(P[P.length-1]=(0,o.cloneElement)(P[P.length-1],{className:"".concat(n,"-item-before-jump-next")}),P.push(R)),1!==U&&P.unshift(Z),G!==T&&P.push(M)}var Q=!this.hasPrev()||!T,J=!this.hasNext()||!T;return r().createElement("ul",(0,f.Z)({className:E()(n,i,(0,S.Z)({},"".concat(n,"-disabled"),l)),style:a,ref:this.paginationNode},L),K,r().createElement("li",{title:g?u.prev_page:null,onClick:this.prev,tabIndex:Q?null:0,onKeyPress:this.runIfEnterPrev,className:E()("".concat(n,"-prev"),(0,S.Z)({},"".concat(n,"-disabled"),Q)),"aria-disabled":Q},this.renderPrev(H)),P,r().createElement("li",{title:g?u.next_page:null,onClick:this.next,tabIndex:J?null:0,onKeyPress:this.runIfEnterNext,className:E()("".concat(n,"-next"),(0,S.Z)({},"".concat(n,"-disabled"),J)),"aria-disabled":J},this.renderNext(B)),r().createElement(ct,{disabled:l,locale:u,rootPrefixCls:n,selectComponentClass:C,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:k,pageSize:I,pageSizeOptions:$,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var o=t.current,r=ft(e.pageSize,t,e);o=o>r?r:o,"current"in e||(n.current=o,n.currentInputValue=o),n.pageSize=e.pageSize}return n}}]),n}(r().Component);gt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:dt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:dt,locale:{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:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};const mt=gt;var ht=n(7799),vt=n(9660),bt=n(646),yt=n(5829),xt=n(6619),Ct=n(1754),wt=n(2418),St=n(5530),$t=n(4274),Et=n(6845),Ot=n(7051),kt=n(5716);const It="SECRET_COMBOBOX_MODE_DO_NOT_USE",Nt=(e,t)=>{var{prefixCls:n,bordered:r=!0,className:i,rootClassName:a,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:p=24,size:f,disabled:g,notFoundContent:m,status:h,showArrow:v}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]);const{getPopupContainer:y,getPrefixCls:x,renderEmpty:C,direction:w,virtual:S,dropdownMatchSelectWidth:$,select:O}=o.useContext(Ae.E_),k=o.useContext(Be.Z),I=x("select",n),N=x(),{compactSize:T,compactItemClassnames:P}=(0,$t.ri)(I,w),[D,R]=(0,Ot.Z)(I),Z=o.useMemo((()=>{const{mode:e}=b;if("combobox"!==e)return e===It?"combobox":e}),[b.mode]),M="multiple"===Z||"tags"===Z,j=(0,kt.Z)(v),{status:z,hasFeedback:A,isFormItemInput:H,feedbackIcon:B}=o.useContext(xt.aM),L=(0,wt.F)(z,h);let K;K=void 0!==m?m:"combobox"===Z?null:(null==C?void 0:C("Select"))||o.createElement(He.Z,{componentName:"Select"});const{suffixIcon:_,itemIcon:W,removeIcon:F,clearIcon:V}=(0,St.Z)(Object.assign(Object.assign({},b),{multiple:M,hasFeedback:A,feedbackIcon:B,showArrow:j,prefixCls:I})),X=(0,ze.Z)(b,["suffixIcon","itemIcon"]),U=E()(s||c,{[`${I}-dropdown-${w}`]:"rtl"===w},a,R),G=T||f||k,Y=o.useContext(yt.Z),q=null!=g?g:Y,Q=E()({[`${I}-lg`]:"large"===G,[`${I}-sm`]:"small"===G,[`${I}-rtl`]:"rtl"===w,[`${I}-borderless`]:!r,[`${I}-in-form-item`]:H},(0,wt.Z)(I,L,A),P,i,a,R);return D(o.createElement(bt.ZP,Object.assign({ref:t,virtual:S,dropdownMatchSelectWidth:$,showSearch:null==O?void 0:O.showSearch},X,{transitionName:(0,Ct.mL)(N,(0,Ct.q0)(d),b.transitionName),listHeight:u,listItemHeight:p,mode:Z,prefixCls:I,placement:void 0!==d?d:"rtl"===w?"bottomRight":"bottomLeft",direction:w,inputIcon:_,menuItemSelectedIcon:W,removeIcon:F,clearIcon:V,notFoundContent:K,className:Q,getPopupContainer:l||y,dropdownClassName:U,showArrow:A||j,disabled:q})))},Tt=o.forwardRef(Nt),Pt=(0,Et.Z)(Tt);Tt.SECRET_COMBOBOX_MODE_DO_NOT_USE=It,Tt.Option=bt.Wx,Tt.OptGroup=bt.Xo,Tt._InternalPanelDoNotUseOrYouWillBeFired=Pt;const Dt=Tt,Rt=e=>o.createElement(Dt,Object.assign({},e,{size:"small"})),Zt=e=>o.createElement(Dt,Object.assign({},e,{size:"middle"}));Rt.Option=Dt.Option,Zt.Option=Dt.Option;var Mt=n(3773),jt=n(124),zt=n(3707),At=n(4875);const Ht=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Bt=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Lt=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ht((0,zt.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),Kt=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:o,borderRadius:r}},_t=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Wt=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},Bt((0,zt.TS)(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},Bt((0,zt.TS)(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}}}},Ft=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"&:hover":Object.assign({},Ht(e)),"&:focus, &-focused":Object.assign({},Bt(e)),"&-disabled, &[disabled]":Object.assign({},Lt(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Kt(e)),"&-sm":Object.assign({},_t(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Vt=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({},Kt(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},_t(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 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${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,Mt.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},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,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.lineWidth,[`${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}}}})}},Xt=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=(n-2*o-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(e)),Ft(e)),Wt(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:r,paddingBottom:r}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ut=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 ${e.inputAffixPadding}px`}}}},Gt=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ft(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ht(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{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:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Ut(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),Wt(e,`${t}-affix-wrapper`))}},Yt=e=>{const{componentCls:t,colorError:n,colorWarning:o,borderRadiusLG:r,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(e)),Vt(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:o,borderColor:o}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},Lt(e))}}})}},qt=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-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}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,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}}}}};function Qt(e){return(0,zt.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const Jt=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none",float:"right",marginBottom:-e.fontSize*e.lineHeight},"&-rtl":{[`${t}-data-count`]:{float:"left"}}},[`&-affix-wrapper${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},en=(0,At.Z)("Input",(e=>{const t=Qt(e);return[Xt(t),Jt(t),Gt(t),Yt(t),qt(t),(0,jt.c)(t)]})),tn=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.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent"}},[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1},[`${t}-simple-pager`]:{color:e.colorTextDisabled}}}},nn=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:e.paginationItemSizeSM-2+"px"},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent"},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:Object.assign(Object.assign({},_t(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},on=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${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:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},rn=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}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Mt.oN)(e))},[`\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.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,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:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Mt.oN)(e)),[`&: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:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},Ft(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},an=e=>{const{componentCls:t}=e;return{[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:e.paginationItemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},(0,Mt.Qy)(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},ln=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.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.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:e.paginationItemSize-2+"px",verticalAlign:"middle"}}),an(e)),rn(e)),on(e)),nn(e)),tn(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"}}},sn=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${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}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},cn=(0,At.Z)("Pagination",(e=>{const t=(0,zt.TS)(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Qt(e));return[ln(t),e.wireframe&&sn(t)]}));const un=e=>{var{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:i,size:a,locale:l,selectComponentClass:s,responsive:c,showSizeChanger:u}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","selectPrefixCls","className","rootClassName","size","locale","selectComponentClass","responsive","showSizeChanger"]);const{xs:p}=We(c),{getPrefixCls:f,direction:g,pagination:m={}}=o.useContext(Ae.E_),h=f("pagination",t),[v,b]=cn(h),y=null!=u?u:m.showSizeChanger,[x]=(0,vt.Z)("Pagination",ht.Z),C=Object.assign(Object.assign({},x),l),w="small"===a||!(!p||a||!c),S=f("select",n),$=E()({[`${h}-mini`]:w,[`${h}-rtl`]:"rtl"===g},r,i,b);return v(o.createElement(mt,Object.assign({},(()=>{const e=o.createElement("span",{className:`${h}-item-ellipsis`},"•••");let t=o.createElement("button",{className:`${h}-item-link`,type:"button",tabIndex:-1},o.createElement(Je.Z,null)),n=o.createElement("button",{className:`${h}-item-link`,type:"button",tabIndex:-1},o.createElement(et.Z,null)),r=o.createElement("a",{className:`${h}-item-link`},o.createElement("div",{className:`${h}-item-container`},o.createElement(Ge,{className:`${h}-item-link-icon`}),e)),i=o.createElement("a",{className:`${h}-item-link`},o.createElement("div",{className:`${h}-item-container`},o.createElement(Qe,{className:`${h}-item-link-icon`}),e));return"rtl"===g&&([t,n]=[n,t],[r,i]=[i,r]),{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:i}})(),d,{prefixCls:h,selectPrefixCls:S,className:$,selectComponentClass:s||(w?Rt:Zt),locale:C,showSizeChanger:y})))};const{isValidElement:dn}=o;function pn(e){return e&&dn(e)&&e.type===o.Fragment}function fn(e,t){return function(e,t,n){return dn(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}var gn=n(3691);const mn=new gn.E4("antSpinMove",{to:{opacity:1}}),hn=new gn.E4("antRotate",{to:{transform:"rotate(405deg)"}}),vn=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,Mt.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSize/2-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeSM/2-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeLG/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeLG/2-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:mn,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:hn,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),bn=(0,At.Z)("Spin",(e=>{const t=(0,zt.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[vn(t)]}),{contentHeight:400});let yn=null;const xn=e=>{const{spinPrefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:l="default",tip:s,wrapperClassName:c,style:u,children:d,hashId:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[g,m]=o.useState((()=>n&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,r)));o.useEffect((()=>{if(n){const e=function(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,l=r.noLeading,s=void 0!==l&&l,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function f(){o&&clearTimeout(o)}function g(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var l=this,c=Date.now()-p;function g(){p=Date.now(),t.apply(l,r)}function m(){o=void 0}d||(s||!u||o||g(),f(),void 0===u&&c>e?s?(p=Date.now(),a||(o=setTimeout(u?m:g,e))):g():!0!==a&&(o=setTimeout(u?m:g,void 0===u?e-c:e)))}return g.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},g}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}(r,(()=>{m(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}m(!1)}),[r,n]);const h=o.useMemo((()=>void 0!==d),[d]),{direction:v}=o.useContext(Ae.E_),b=E()(t,{[`${t}-sm`]:"small"===l,[`${t}-lg`]:"large"===l,[`${t}-spinning`]:g,[`${t}-show-text`]:!!s,[`${t}-rtl`]:"rtl"===v},i,a,p),y=E()(`${t}-container`,{[`${t}-blur`]:g}),x=(0,ze.Z)(f,["indicator","prefixCls"]),C=o.createElement("div",Object.assign({},x,{style:u,className:b,"aria-live":"polite","aria-busy":g}),function(e,t){const{indicator:n}=t,r=`${e}-dot`;return null===n?null:dn(n)?fn(n,{className:E()(n.props.className,r)}):dn(yn)?fn(yn,{className:E()(yn.props.className,r)}):o.createElement("span",{className:E()(r,`${e}-dot-spin`)},o.createElement("i",{className:`${e}-dot-item`}),o.createElement("i",{className:`${e}-dot-item`}),o.createElement("i",{className:`${e}-dot-item`}),o.createElement("i",{className:`${e}-dot-item`}))}(t,e),s?o.createElement("div",{className:`${t}-text`},s):null);return h?o.createElement("div",Object.assign({},x,{className:E()(`${t}-nested-loading`,c,p)}),g&&o.createElement("div",{key:"loading"},C),o.createElement("div",{className:y,key:"container"},d)):C},Cn=e=>{const{prefixCls:t}=e,{getPrefixCls:n}=o.useContext(Ae.E_),r=n("spin",t),[i,a]=bn(r),l=Object.assign(Object.assign({},e),{spinPrefixCls:r,hashId:a});return i(o.createElement(xn,Object.assign({},l)))};Cn.setDefaultIndicator=e=>{yn=e};const wn=Cn;var Sn=n(9694);function $n(e){return null!=e&&e===e.window}function En(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function On(e,t){return t?`${t}-${e}`:`${e}`}function kn(e,t){return"function"==typeof e?e(t):e}const In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var Nn=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:In}))};Nn.displayName="FilterFilled";const Tn=o.forwardRef(Nn),Pn=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}}}}},Dn=(0,At.Z)("Wave",(e=>[Pn(e)]));var Rn,Zn=n(7924),Mn=n(2723),jn=n(4795),zn=(0,w.Z)({},u),An=zn.version,Hn=zn.render,Bn=zn.unmountComponentAtNode;try{Number((An||"").split(".")[0])>=18&&(Rn=zn.createRoot)}catch(e){}function Ln(e){var t=zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,C.Z)(t)&&(t.usingClientEntryPoint=e)}var Kn="__rc_react_root__";function _n(e){return Wn.apply(this,arguments)}function Wn(){return(Wn=(0,jn.Z)((0,Mn.Z)().mark((function e(t){return(0,Mn.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[Kn])||void 0===e||e.unmount(),delete t[Kn]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fn(e){Bn(e)}function Vn(){return(Vn=(0,jn.Z)((0,Mn.Z)().mark((function e(t){return(0,Mn.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Rn){e.next=2;break}return e.abrupt("return",_n(t));case 2:Fn(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xn(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}function Un(e){return Number.isNaN(e)?0:e}const Gn=e=>{const{className:t,target:n}=e,r=o.useRef(null),[i,a]=o.useState(null),[l,s]=o.useState([]),[c,u]=o.useState(0),[d,p]=o.useState(0),[f,g]=o.useState(0),[m,h]=o.useState(0),[v,b]=o.useState(!1),y={left:c,top:d,width:f,height:m,borderRadius:l.map((e=>`${e}px`)).join(" ")};function x(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Xn(t)?t:Xn(n)?n:Xn(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;u(t?n.offsetLeft:Un(-parseFloat(o))),p(t?n.offsetTop:Un(-parseFloat(r))),g(n.offsetWidth),h(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;s([i,l,d,c].map((e=>Un(parseFloat(e)))))}return i&&(y["--wave-color"]=i),o.useEffect((()=>{if(n){const e=(0,Sn.Z)((()=>{x(),b(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(n)),()=>{Sn.Z.cancel(e),null==t||t.disconnect()}}}),[]),v?o.createElement(Zn.Z,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=r.current)||void 0===n?void 0:n.parentElement;(function(e){return Vn.apply(this,arguments)})(e).then((()=>{var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)}))}return!1}},(e=>{let{className:n}=e;return o.createElement("div",{ref:r,className:E()(t,n),style:y})})):null};function Yn(e,t){return function(){!function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),function(e,t){Rn?function(e,t){Ln(!0);var n=t[Kn]||Rn(t);Ln(!1),n.render(e),t[Kn]=n}(e,t):function(e,t){Hn(e,t)}(e,t)}(o.createElement(Gn,{target:e,className:t}),n)}(e.current,t)}}const qn=e=>{const{children:t,disabled:n}=e,{getPrefixCls:i}=(0,o.useContext)(Ae.E_),a=(0,o.useRef)(null),l=i("wave"),[,s]=Dn(l),c=Yn(a,E()(l,s));return r().useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{"INPUT"===t.target.tagName||!(0,W.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c()};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),r().isValidElement(t)?fn(t,{ref:(0,g.Yr)(t)?(0,g.sQ)(t.ref,a):a}):null!=t?t:null};const Qn=o.createContext(void 0),Jn=/^[\u4e00-\u9fa5]{2}$/,eo=Jn.test.bind(Jn);function to(e){return"text"===e||"link"===e}var no=n(1954);const oo=()=>({width:0,opacity:0,transform:"scale(0)"}),ro=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),io=e=>{let{prefixCls:t,loading:n,existIcon:o}=e;const i=!!n;return o?r().createElement("span",{className:`${t}-loading-icon`},r().createElement(no.Z,null)):r().createElement(Zn.Z,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:oo,onAppearActive:ro,onEnterStart:oo,onEnterActive:ro,onLeaveStart:ro,onLeaveActive:oo},((e,n)=>{let{className:o,style:i}=e;return r().createElement("span",{className:`${t}-loading-icon`,style:i,ref:n},r().createElement(no.Z,{className:o}))}))},ao=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),lo=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,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:-o,[`&, & > ${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}},ao(`${t}-primary`,r),ao(`${t}-danger`,i)]}};function so(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function co(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},so(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const uo=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Mt.Qy)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,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:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},po=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),fo=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),go=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),mo=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),ho=(e,t,n,o,r,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},po(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),vo=e=>({"&:disabled":Object.assign({},mo(e))}),bo=e=>Object.assign({},vo(e)),yo=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),xo=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bo(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),po({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ho(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},po({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ho(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),vo(e))}),Co=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bo(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),po({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),ho(e.componentCls,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({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},po({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),ho(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vo(e))}),wo=e=>Object.assign(Object.assign({},xo(e)),{borderStyle:"dashed"}),So=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},po({color:e.colorLinkHover},{color:e.colorLinkActive})),yo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},po({color:e.colorErrorHover},{color:e.colorErrorActive})),yo(e))}),$o=e=>Object.assign(Object.assign(Object.assign({},po({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),yo(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yo(e)),po({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Eo=e=>Object.assign(Object.assign({},mo(e)),{[`&${e.componentCls}:hover`]:Object.assign({},mo(e))}),Oo=e=>{const{componentCls:t}=e;return{[`${t}-default`]:xo(e),[`${t}-primary`]:Co(e),[`${t}-dashed`]:wo(e),[`${t}-link`]:So(e),[`${t}-text`]:$o(e),[`${t}-disabled`]:Eo(e)}},ko=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:i,lineHeight:a,lineWidth:l,borderRadius:s,buttonPaddingHorizontal:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${Math.max(0,(r-i*a)/2-l)}px ${c-l}px`,borderRadius:s,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${u}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:fo(e)},{[`${n}${n}-round${t}`]:go(e)}]},Io=e=>ko(e),No=e=>{const t=(0,zt.TS)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return ko(t,`${e.componentCls}-sm`)},To=e=>{const t=(0,zt.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return ko(t,`${e.componentCls}-lg`)},Po=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Do=(0,At.Z)("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=(0,zt.TS)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[uo(o),No(o),Io(o),To(o),Po(o),Oo(o),lo(o),(0,jt.c)(e),co(e)]}));const Ro=(e,t)=>{const{loading:n=!1,prefixCls:i,type:a="default",danger:l,shape:s="default",size:c,disabled:u,className:d,rootClassName:p,children:f,icon:g,ghost:m=!1,block:h=!1,htmlType:v="button"}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:y,autoInsertSpaceInButton:x,direction:C}=o.useContext(Ae.E_),w=y("btn",i),[S,$]=Do(w),O=o.useContext(Be.Z),k=o.useContext(yt.Z),I=null!=u?u:k,N=o.useContext(Qn),T=o.useMemo((()=>function(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(n)),[n]),[P,D]=o.useState(T.loading),[R,Z]=o.useState(!1),M=t||o.createRef(),j=()=>1===o.Children.count(f)&&!g&&!to(a);o.useEffect((()=>{let e=null;return T.delay>0?e=window.setTimeout((()=>{e=null,D(!0)}),T.delay):D(T.loading),function(){e&&(window.clearTimeout(e),e=null)}}),[T]),o.useEffect((()=>{if(!M||!M.current||!1===x)return;const e=M.current.textContent;j()&&eo(e)?R||Z(!0):R&&Z(!1)}),[M]);const z=t=>{const{onClick:n}=e;P||I?t.preventDefault():null==n||n(t)},A=!1!==x,{compactSize:H,compactItemClassnames:B}=(0,$t.ri)(w,C),L=H||N||c||O,K=L&&{large:"lg",small:"sm",middle:void 0}[L]||"",_=P?"loading":g,W=(0,ze.Z)(b,["navigate"]),F=void 0!==W.href&&I,V=E()(w,$,{[`${w}-${s}`]:"default"!==s&&s,[`${w}-${a}`]:a,[`${w}-${K}`]:K,[`${w}-icon-only`]:!f&&0!==f&&!!_,[`${w}-background-ghost`]:m&&!to(a),[`${w}-loading`]:P,[`${w}-two-chinese-chars`]:R&&A&&!P,[`${w}-block`]:h,[`${w}-dangerous`]:!!l,[`${w}-rtl`]:"rtl"===C,[`${w}-disabled`]:F},B,d,p),X=g&&!P?g:o.createElement(io,{existIcon:!!g,prefixCls:w,loading:!!P}),U=f||0===f?function(e,t){let n=!1;const o=[];return r().Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r})),r().Children.map(o,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&eo(e.props.children)?fn(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?eo(e)?r().createElement("span",null,e.split("").join(n)):r().createElement("span",null,e):pn(e)?r().createElement("span",null,e):e}(e,t)))}(f,j()&&A):null;if(void 0!==W.href)return S(o.createElement("a",Object.assign({},W,{className:V,onClick:z,ref:M}),X,U));let G=o.createElement("button",Object.assign({},b,{type:v,className:V,onClick:z,disabled:I,ref:M}),X,U);return to(a)||(G=o.createElement(qn,{disabled:!!P},G)),S(G)},Zo=o.forwardRef(Ro);Zo.Group=e=>{const{getPrefixCls:t,direction:n}=o.useContext(Ae.E_),{prefixCls:r,size:i,className:a}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=(0,Ke.dQ)();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}const d=E()(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:"rtl"===n},a,c);return o.createElement(Qn.Provider,{value:i},o.createElement("div",Object.assign({},l,{className:d})))},Zo.__ANT_BUTTON=!0;const Mo=Zo;var jo=function(e){(0,ot.Z)(n,e);var t=(0,rt.Z)(n);function n(e){var o;(0,tt.Z)(this,n),(o=t.call(this,e)).handleChange=function(e){var t=o.props,n=t.disabled,r=t.onChange;n||("checked"in o.props||o.setState({checked:e.target.checked}),r&&r({target:(0,w.Z)((0,w.Z)({},o.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},o.saveInput=function(e){o.input=e};var r="checked"in e?e.checked:e.defaultChecked;return o.state={checked:r},o}return(0,nt.Z)(n,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,o=t.className,i=t.style,a=t.name,l=t.id,s=t.type,c=t.disabled,u=t.readOnly,d=t.tabIndex,p=t.onClick,g=t.onFocus,m=t.onBlur,h=t.onKeyDown,v=t.onKeyPress,b=t.onKeyUp,y=t.autoFocus,x=t.value,C=t.required,w=(0,z.Z)(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),$=Object.keys(w).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=w[t]),e}),{}),O=this.state.checked,k=E()(n,o,(e={},(0,S.Z)(e,"".concat(n,"-checked"),O),(0,S.Z)(e,"".concat(n,"-disabled"),c),e));return r().createElement("span",{className:k,style:i},r().createElement("input",(0,f.Z)({name:a,id:l,type:s,required:C,readOnly:u,disabled:c,tabIndex:d,className:"".concat(n,"-input"),checked:!!O,onClick:p,onFocus:g,onBlur:m,onKeyUp:b,onKeyDown:h,onKeyPress:v,onChange:this.handleChange,autoFocus:y,ref:this.saveInput,value:x},$)),r().createElement("span",{className:"".concat(n,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"checked"in e?(0,w.Z)((0,w.Z)({},t),{},{checked:e.checked}):null}}]),n}(o.Component);jo.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}};const zo=jo;var Ao=n(6454);const Ho=o.createContext(null),Bo=(e,t)=>{var{defaultValue:n,children:r,options:i=[],prefixCls:a,className:l,rootClassName:s,style:c,onChange:u}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:p,direction:f}=o.useContext(Ae.E_),[g,m]=o.useState(d.value||n||[]),[h,v]=o.useState([]);o.useEffect((()=>{"value"in d&&m(d.value||[])}),[d.value]);const b=()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e)),y=p("checkbox",a),x=`${y}-group`,[C,w]=(0,Ao.ZP)(y),S=(0,ze.Z)(d,["value","disabled"]);i&&i.length>0&&(r=b().map((e=>o.createElement(Wo,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:`${x}-item`,style:e.style},e.label))));const $={toggleOption:e=>{const t=g.indexOf(e.value),n=(0,Y.Z)(g);-1===t?n.push(e.value):n.splice(t,1),"value"in d||m(n);const o=b();null==u||u(n.filter((e=>h.includes(e))).sort(((e,t)=>o.findIndex((t=>t.value===e))-o.findIndex((e=>e.value===t)))))},value:g,disabled:d.disabled,name:d.name,registerValue:e=>{v((t=>[].concat((0,Y.Z)(t),[e])))},cancelValue:e=>{v((t=>t.filter((t=>t!==e))))}},O=E()(x,{[`${x}-rtl`]:"rtl"===f},l,s,w);return C(o.createElement("div",Object.assign({className:O,style:c},S,{ref:t}),o.createElement(Ho.Provider,{value:$},r)))},Lo=o.forwardRef(Bo),Ko=o.memo(Lo);const _o=(e,t)=>{var n,{prefixCls:r,className:i,rootClassName:a,children:l,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:p=!1,disabled:f}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:m,direction:h}=o.useContext(Ae.E_),v=o.useContext(Ho),{isFormItemInput:b}=o.useContext(xt.aM),y=o.useContext(yt.Z),x=null!==(n=(null==v?void 0:v.disabled)||f)&&void 0!==n?n:y,C=o.useRef(g.value);o.useEffect((()=>{null==v||v.registerValue(g.value)}),[]),o.useEffect((()=>{if(!p)return g.value!==C.current&&(null==v||v.cancelValue(C.current),null==v||v.registerValue(g.value),C.current=g.value),()=>null==v?void 0:v.cancelValue(g.value)}),[g.value]);const w=m("checkbox",r),[S,$]=(0,Ao.ZP)(w),O=Object.assign({},g);v&&!p&&(O.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),v.toggleOption&&v.toggleOption({label:l,value:g.value})},O.name=v.name,O.checked=v.value.includes(g.value));const k=E()({[`${w}-wrapper`]:!0,[`${w}-rtl`]:"rtl"===h,[`${w}-wrapper-checked`]:O.checked,[`${w}-wrapper-disabled`]:x,[`${w}-wrapper-in-form-item`]:b},i,a,$),I=E()({[`${w}-indeterminate`]:s},$),N=s?"mixed":void 0;return S(o.createElement("label",{className:k,style:c,onMouseEnter:u,onMouseLeave:d},o.createElement(zo,Object.assign({"aria-checked":N},O,{prefixCls:w,className:I,disabled:x,ref:t})),void 0!==l&&o.createElement("span",null,l)))},Wo=o.forwardRef(_o),Fo=Wo;Fo.Group=Ko,Fo.__ANT_CHECKBOX=!0;const Vo=Fo;var Xo=n(753),Uo=n(8637),Go=n(553);const Yo=(0,o.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,i=e.children,a=(0,o.useRef)(),l=(0,o.useRef)();(0,o.useImperativeHandle)(t,(function(){return{}}));var s=(0,o.useRef)(!1);return!s.current&&(0,F.Z)()&&(l.current=r(),a.current=l.current.parentNode,s.current=!0),(0,o.useEffect)((function(){null==n||n(e)})),(0,o.useEffect)((function(){return null===l.current.parentNode&&null!==a.current&&a.current.appendChild(l.current),function(){var e,t;null===(e=l.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(l.current)}}),[]),l.current?d().createPortal(i,l.current):null}));function qo(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var Qo,Jo=n(7631);function er(e){var t=e.prefixCls,n=e.motion,o=e.animation,r=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:r?{motionName:r}:null)}function tr(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,i=e.mask,a=e.maskMotion,l=e.maskAnimation,s=e.maskTransitionName;if(!i)return null;var c={};return(a||s||l)&&(c=(0,w.Z)({motionAppear:!0},er({motion:a,prefixCls:t,transitionName:s,animation:l}))),o.createElement(Zn.Z,(0,f.Z)({},c,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:E()("".concat(t,"-mask"),n)})}))}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ar={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function lr(){if(void 0!==Qo)return Qo;Qo="";var e=document.createElement("p").style;for(var t in ar)t+"Transform"in e&&(Qo=t);return Qo}function sr(){return lr()?"".concat(lr(),"TransitionProperty"):"transitionProperty"}function cr(){return lr()?"".concat(lr(),"Transform"):"transform"}function ur(e,t){var n=sr();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function dr(e,t){var n=cr();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var pr,fr=/matrix\((.*)\)/,gr=/matrix3d\((.*)\)/;function mr(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function hr(e,t,n){var o=n;if("object"!==rr(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):pr(e,t);for(var r in t)t.hasOwnProperty(r)&&hr(e,r,t[r])}function vr(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function br(e){return vr(e)}function yr(e){return vr(e,!0)}function xr(e){var t=function(e){var t,n,o,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:o-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=br(o),t.top+=yr(o),t}function Cr(e){return null!=e&&e==e.window}function wr(e){return Cr(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Sr=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),$r=/^(top|right|bottom|left)$/,Er="currentStyle",Or="runtimeStyle",kr="left";function Ir(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Nr(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Tr(e,t,n){"static"===hr(e,"position")&&(e.style.position="relative");var o=-999,r=-999,i=Ir("left",n),a=Ir("top",n),l=Nr(i),s=Nr(a);"left"!==i&&(o=999),"top"!==a&&(r=999);var c,u="",d=xr(e);("left"in t||"top"in t)&&(u=(c=e).style.transitionProperty||c.style[sr()]||"",ur(e,"none")),"left"in t&&(e.style[l]="",e.style[i]="".concat(o,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(r,"px")),mr(e);var p=xr(e),f={};for(var g in t)if(t.hasOwnProperty(g)){var m=Ir(g,n),h="left"===g?o:r,v=d[g]-p[g];f[m]=m===g?h+v:h-v}hr(e,f),mr(e),("left"in t||"top"in t)&&ur(e,u);var b={};for(var y in t)if(t.hasOwnProperty(y)){var x=Ir(y,n),C=t[y]-d[y];b[x]=y===x?f[x]+C:f[x]-C}hr(e,b)}function Pr(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Dr(e){return"border-box"===pr(e,"boxSizing")}"undefined"!=typeof window&&(pr=window.getComputedStyle?function(e,t,n){var o=n,r="",i=wr(e);return(o=o||i.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[Er]&&e[Er][t];if(Sr.test(n)&&!$r.test(t)){var o=e.style,r=o[kr],i=e[Or][kr];e[Or][kr]=e[Er][kr],o[kr]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[kr]=r,e[Or][kr]=i}return""===n?"auto":n});var Rr=["margin","border","padding"],Zr=-1,Mr=2,jr=1;function zr(e,t,n){var o,r,i,a=0;for(r=0;r<t.length;r++)if(o=t[r])for(i=0;i<n.length;i++){var l;l="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],a+=parseFloat(pr(e,l))||0}return a}var Ar={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function Hr(e,t,n){var o=n;if(Cr(e))return"width"===t?Ar.viewportWidth(e):Ar.viewportHeight(e);if(9===e.nodeType)return"width"===t?Ar.docWidth(e):Ar.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=Dr(e),l=0;(null==i||i<=0)&&(i=void 0,(null==(l=pr(e,t))||Number(l)<0)&&(l=e.style[t]||0),l=Math.floor(parseFloat(l))||0),void 0===o&&(o=a?jr:Zr);var s=void 0!==i||a,c=i||l;return o===Zr?s?c-zr(e,["border","padding"],r):l:s?o===jr?c:c+(o===Mr?-zr(e,["border"],r):zr(e,["margin"],r)):l+zr(e,Rr.slice(o),r)}Pr(["Width","Height"],(function(e){Ar["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Ar["viewport".concat(e)](n))},Ar["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}}));var Br={position:"absolute",visibility:"hidden",display:"block"};function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=Hr.apply(void 0,t):function(e,n,r){var i,a={},l=e.style;for(i in n)n.hasOwnProperty(i)&&(a[i]=l[i],l[i]=n[i]);for(i in function(){o=Hr.apply(void 0,t)}.call(e),n)n.hasOwnProperty(i)&&(l[i]=a[i])}(r,Br),o}function Kr(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Pr(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Ar["outer".concat(t)]=function(t,n){return t&&Lr(t,e,n?0:jr)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Ar[e]=function(t,o){var r=o;return void 0!==r?t?(Dr(t)&&(r+=zr(t,["padding","border"],n)),hr(t,e,r)):void 0:t&&Lr(t,e,Zr)}}));var _r={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:wr,offset:function(e,t,n){if(void 0===t)return xr(e);!function(e,t,n){if(n.ignoreShake){var o=xr(e),r=o.left.toFixed(0),i=o.top.toFixed(0),a=t.left.toFixed(0),l=t.top.toFixed(0);if(r===a&&i===l)return}n.useCssRight||n.useCssBottom?Tr(e,t,n):n.useCssTransform&&cr()in document.body.style?function(e,t){var n=xr(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(cr());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(cr());if(o&&"none"!==o){var r,i=o.match(fr);i?((r=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,dr(e,"matrix(".concat(r.join(","),")"))):((r=o.match(gr)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,dr(e,"matrix3d(".concat(r.join(","),")")))}else dr(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}(e,t):Tr(e,t,n)}(e,t,n||{})},isWindow:Cr,each:Pr,css:hr,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Kr,getWindowScrollLeft:function(e){return br(e)},getWindowScrollTop:function(e){return yr(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)_r.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Kr(_r,Ar);var Wr=_r.getParent;function Fr(e){if(_r.isWindow(e)||9===e.nodeType)return null;var t,n=_r.getDocument(e).body,o=_r.css(e,"position");if("fixed"!==o&&"absolute"!==o)return"html"===e.nodeName.toLowerCase()?null:Wr(e);for(t=Wr(e);t&&t!==n&&9!==t.nodeType;t=Wr(t))if("static"!==(o=_r.css(t,"position")))return t;return null}var Vr=_r.getParent;function Xr(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Fr(e),r=_r.getDocument(e),i=r.defaultView||r.parentWindow,a=r.body,l=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===l||"visible"===_r.css(o,"overflow")){if(o===a||o===l)break}else{var s=_r.offset(o);s.left+=o.clientLeft,s.top+=o.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+o.clientWidth),n.bottom=Math.min(n.bottom,s.top+o.clientHeight),n.left=Math.max(n.left,s.left)}o=Fr(o)}var c=null;_r.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===_r.css(e,"position")&&(e.style.position="fixed"));var u=_r.getWindowScrollLeft(i),d=_r.getWindowScrollTop(i),p=_r.viewportWidth(i),f=_r.viewportHeight(i),g=l.scrollWidth,m=l.scrollHeight,h=window.getComputedStyle(a);if("hidden"===h.overflowX&&(g=i.innerWidth),"hidden"===h.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(_r.isWindow(e)||9===e.nodeType)return!1;var t=_r.getDocument(e),n=t.body,o=null;for(o=Vr(e);o&&o!==n&&o!==t;o=Vr(o))if("fixed"===_r.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,d),n.right=Math.min(n.right,u+p),n.bottom=Math.min(n.bottom,d+f);else{var v=Math.max(g,u+p);n.right=Math.min(n.right,v);var b=Math.max(m,d+f);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ur(e){var t,n,o;if(_r.isWindow(e)||9===e.nodeType){var r=_r.getWindow(e);t={left:_r.getWindowScrollLeft(r),top:_r.getWindowScrollTop(r)},n=_r.viewportWidth(r),o=_r.viewportHeight(r)}else t=_r.offset(e),n=_r.outerWidth(e),o=_r.outerHeight(e);return t.width=n,t.height=o,t}function Gr(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,l=e.top;return"c"===n?l+=i/2:"b"===n&&(l+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:l}}function Yr(e,t,n,o,r){var i=Gr(t,n[1]),a=Gr(e,n[0]),l=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-l[0]+o[0]-r[0]),top:Math.round(e.top-l[1]+o[1]-r[1])}}function qr(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Qr(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Jr(e,t,n){var o=[];return _r.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function ei(e,t){return e[t]=-e[t],e}function ti(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function ni(e,t){e[0]=ti(e[0],t.width),e[1]=ti(e[1],t.height)}function oi(e,t,n,o){var r=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],l=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var c={},u=0,d=Xr(s,!(!(l=l||{})||!l.alwaysByViewport)),p=Ur(s);ni(i,p),ni(a,t);var f=Yr(p,t,r,i,a),g=_r.merge(p,f);if(d&&(l.adjustX||l.adjustY)&&o){if(l.adjustX&&qr(f,p,d)){var m=Jr(r,/[lr]/gi,{l:"r",r:"l"}),h=ei(i,0),v=ei(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Yr(p,t,m,h,v),p,d)||(u=1,r=m,i=h,a=v)}if(l.adjustY&&Qr(f,p,d)){var b=Jr(r,/[tb]/gi,{t:"b",b:"t"}),y=ei(i,1),x=ei(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Yr(p,t,b,y,x),p,d)||(u=1,r=b,i=y,a=x)}u&&(f=Yr(p,t,r,i,a),_r.mix(g,f));var C=qr(f,p,d),w=Qr(f,p,d);if(C||w){var S=r;C&&(S=Jr(r,/[lr]/gi,{l:"r",r:"l"})),w&&(S=Jr(r,/[tb]/gi,{t:"b",b:"t"})),r=S,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=l.adjustX&&C,c.adjustY=l.adjustY&&w,(c.adjustX||c.adjustY)&&(g=function(e,t,n,o){var r=_r.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),_r.mix(r,i)}(f,p,d,c))}return g.width!==p.width&&_r.css(s,"width",_r.width(s)+g.width-p.width),g.height!==p.height&&_r.css(s,"height",_r.height(s)+g.height-p.height),_r.offset(s,{left:g.left,top:g.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:a,overflow:c}}function ri(e,t,n){var o=n.target||t,r=Ur(o),i=!function(e,t){var n=Xr(e,t),o=Ur(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return oi(e,r,n,i)}ri.__getOffsetParent=Fr,ri.__getVisibleRectForElement=Xr;var ii=n(7209);function ai(e,t){var n=null,o=null,r=new ii.Z((function(e){var r=(0,a.Z)(e,1)[0].target;if(document.documentElement.contains(r)){var i=r.getBoundingClientRect(),l=i.width,s=i.height,c=Math.floor(l),u=Math.floor(s);n===c&&o===u||Promise.resolve().then((function(){t({width:c,height:u})})),n=c,o=u}}));return e&&r.observe(e),function(){r.disconnect()}}function li(e){return"function"!=typeof e?null:e()}function si(e){return"object"===(0,C.Z)(e)&&e?e:null}var ci=function(e,t){var n=e.children,o=e.disabled,i=e.target,l=e.align,u=e.onAlign,d=e.monitorWindowResize,p=e.monitorBufferTime,f=void 0===p?0:p,m=r().useRef({}),h=r().useRef(),v=r().Children.only(n),b=r().useRef({});b.current.disabled=o,b.current.target=i,b.current.align=l,b.current.onAlign=u;var y=function(e,t){var n=r().useRef(!1),o=r().useRef(null);function i(){window.clearTimeout(o.current)}return[function e(r){if(i(),n.current&&!0!==r)o.current=window.setTimeout((function(){n.current=!1,e()}),t);else{if(!1===function(){var e=b.current,t=e.disabled,n=e.target,o=e.align,r=e.onAlign,i=h.current;if(!t&&n&&i){var a,l=li(n),s=si(n);m.current.element=l,m.current.point=s,m.current.align=o;var c=document.activeElement;return l&&(0,W.Z)(l)?a=ri(i,l,o):s&&(a=function(e,t,n){var o,r,i=_r.getDocument(e),a=i.defaultView||i.parentWindow,l=_r.getWindowScrollLeft(a),s=_r.getWindowScrollTop(a),c=_r.viewportWidth(a),u=_r.viewportHeight(a),d={left:o="pageX"in t?t.pageX:l+t.clientX,top:r="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},p=o>=0&&o<=l+c&&r>=0&&r<=s+u,f=[n.points[0],"cc"];return oi(e,d,or(or({},n),{},{points:f}),p)}(i,s,o)),function(e,t){e!==document.activeElement&&(0,Uo.Z)(t,e)&&"function"==typeof e.focus&&e.focus()}(c,i),r&&a&&r(i,a),!0}return!1}())return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}(0,f),x=(0,a.Z)(y,2),C=x[0],w=x[1],S=r().useState(),$=(0,a.Z)(S,2),E=$[0],O=$[1],k=r().useState(),I=(0,a.Z)(k,2),N=I[0],T=I[1];return(0,s.Z)((function(){O(li(i)),T(si(i))})),r().useEffect((function(){var e,t;m.current.element===E&&((e=m.current.point)===(t=N)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,c.Z)(m.current.align,l)||C()})),r().useEffect((function(){return ai(h.current,C)}),[h.current]),r().useEffect((function(){return ai(E,C)}),[E]),r().useEffect((function(){o?w():C()}),[o]),r().useEffect((function(){if(d)return Oe(window,"resize",C).remove}),[d]),r().useEffect((function(){return function(){w()}}),[]),r().useImperativeHandle(t,(function(){return{forceAlign:function(){return C(!0)}}})),r().isValidElement(v)&&(v=r().cloneElement(v,{ref:(0,g.sQ)(v.ref,h)})),v},ui=r().forwardRef(ci);ui.displayName="Align";const di=ui;var pi=n(3411),fi=["measure","alignPre","align",null,"motion"],gi=o.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,i=e.className,l=e.style,c=e.children,u=e.zIndex,d=e.stretch,p=e.destroyPopupOnHide,g=e.forceRender,m=e.align,h=e.point,v=e.getRootDomNode,b=e.getClassNameFromAlign,y=e.onAlign,x=e.onMouseEnter,C=e.onMouseLeave,S=e.onMouseDown,$=e.onTouchStart,O=e.onClick,k=(0,o.useRef)(),I=(0,o.useRef)(),N=(0,o.useState)(),T=(0,a.Z)(N,2),P=T[0],D=T[1],R=function(e){var t=o.useState({width:0,height:0}),n=(0,a.Z)(t,2),r=n[0],i=n[1];return[o.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),r=o.width,a=o.height;Math.abs(t-r)<1&&Math.abs(n-a)<1&&(t=r,n=a),i({width:t,height:n})}]}(d),Z=(0,a.Z)(R,2),M=Z[0],j=Z[1],z=function(e,t){var n=(0,pi.Z)(null),r=(0,a.Z)(n,2),i=r[0],l=r[1],s=(0,o.useRef)();function c(e){l(e,!0)}function u(){Sn.Z.cancel(s.current)}return(0,o.useEffect)((function(){c("measure")}),[e]),(0,o.useEffect)((function(){"measure"===i&&(d&&j(v())),i&&(s.current=(0,Sn.Z)((0,jn.Z)((0,Mn.Z)().mark((function e(){var t,n;return(0,Mn.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=fi.indexOf(i),(n=fi[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),(0,o.useEffect)((function(){return function(){u()}}),[]),[i,function(e){u(),s.current=(0,Sn.Z)((function(){c((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n),A=(0,a.Z)(z,2),H=A[0],B=A[1],L=(0,o.useState)(0),K=(0,a.Z)(L,2),_=K[0],W=K[1],F=(0,o.useRef)();function V(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function X(e,t){var n=b(t);P!==n&&D(n),W((function(e){return e+1})),"align"===H&&(null==y||y(e,t))}(0,s.Z)((function(){"alignPre"===H&&W(0)}),[H]),(0,s.Z)((function(){"align"===H&&(_<3?V():B((function(){var e;null===(e=F.current)||void 0===e||e.call(F)})))}),[_]);var U=(0,w.Z)({},er(e));function G(){return new Promise((function(e){F.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=U[e];U[e]=function(e,n){return B(),null==t?void 0:t(e,n)}})),o.useEffect((function(){U.motionName||"motion"!==H||B()}),[U.motionName,H]),o.useImperativeHandle(t,(function(){return{forceAlign:V,getElement:function(){return I.current}}}));var Y=(0,w.Z)((0,w.Z)({},M),{},{zIndex:u,opacity:"motion"!==H&&"stable"!==H&&n?0:void 0,pointerEvents:n||"stable"===H?void 0:"none"},l),q=!0;null==m||!m.points||"align"!==H&&"stable"!==H||(q=!1);var Q=c;return o.Children.count(c)>1&&(Q=o.createElement("div",{className:"".concat(r,"-content")},c)),o.createElement(Zn.Z,(0,f.Z)({visible:n,ref:I,leavedClassName:"".concat(r,"-hidden")},U,{onAppearPrepare:G,onEnterPrepare:G,removeOnLeave:p,forceRender:g}),(function(e,t){var n=e.className,a=e.style,l=E()(r,i,P,n);return o.createElement(di,{target:h||v,key:"popup",ref:k,monitorWindowResize:!0,disabled:q,align:m,onAlign:X},o.createElement("div",{ref:t,className:l,onMouseEnter:x,onMouseLeave:C,onMouseDownCapture:S,onTouchStartCapture:$,onClick:O,style:(0,w.Z)((0,w.Z)({},a),Y)},Q))}))}));gi.displayName="PopupInner";const mi=gi;var hi=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,i=e.zIndex,a=e.children,l=e.mobile,s=(l=void 0===l?{}:l).popupClassName,c=l.popupStyle,u=l.popupMotion,d=void 0===u?{}:u,p=l.popupRender,g=e.onClick,m=o.useRef();o.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var h=(0,w.Z)({zIndex:i},c),v=a;return o.Children.count(a)>1&&(v=o.createElement("div",{className:"".concat(n,"-content")},a)),p&&(v=p(v)),o.createElement(Zn.Z,(0,f.Z)({visible:r,ref:m,removeOnLeave:!0},d),(function(e,t){var r=e.className,i=e.style,a=E()(n,s,r);return o.createElement("div",{ref:t,className:a,onClick:g,style:(0,w.Z)((0,w.Z)({},i),h)},v)}))}));hi.displayName="MobilePopupInner";const vi=hi;var bi=["visible","mobile"],yi=o.forwardRef((function(e,t){var n=e.visible,r=e.mobile,i=(0,z.Z)(e,bi),l=(0,o.useState)(n),s=(0,a.Z)(l,2),c=s[0],u=s[1],d=(0,o.useState)(!1),p=(0,a.Z)(d,2),g=p[0],m=p[1],h=(0,w.Z)((0,w.Z)({},i),{},{visible:c});(0,o.useEffect)((function(){u(n),n&&r&&m((0,Jo.Z)())}),[n,r]);var v=g?o.createElement(vi,(0,f.Z)({},h,{mobile:r,ref:t})):o.createElement(mi,(0,f.Z)({},h,{ref:t}));return o.createElement("div",null,o.createElement(tr,h),v)}));yi.displayName="Popup";const xi=yi,Ci=o.createContext(null);function wi(){}var Si=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const $i=(Ei=Yo,Oi=function(e){(0,ot.Z)(n,e);var t=(0,rt.Z)(n);function n(e){var r,i;return(0,tt.Z)(this,n),r=t.call(this,e),(0,S.Z)((0,Xo.Z)(r),"popupRef",o.createRef()),(0,S.Z)((0,Xo.Z)(r),"triggerRef",o.createRef()),(0,S.Z)((0,Xo.Z)(r),"portalContainer",void 0),(0,S.Z)((0,Xo.Z)(r),"attachId",void 0),(0,S.Z)((0,Xo.Z)(r),"clickOutsideHandler",void 0),(0,S.Z)((0,Xo.Z)(r),"touchOutsideHandler",void 0),(0,S.Z)((0,Xo.Z)(r),"contextMenuOutsideHandler1",void 0),(0,S.Z)((0,Xo.Z)(r),"contextMenuOutsideHandler2",void 0),(0,S.Z)((0,Xo.Z)(r),"mouseDownTimeout",void 0),(0,S.Z)((0,Xo.Z)(r),"focusTime",void 0),(0,S.Z)((0,Xo.Z)(r),"preClickTime",void 0),(0,S.Z)((0,Xo.Z)(r),"preTouchTime",void 0),(0,S.Z)((0,Xo.Z)(r),"delayTimer",void 0),(0,S.Z)((0,Xo.Z)(r),"hasPopupMouseDown",void 0),(0,S.Z)((0,Xo.Z)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,S.Z)((0,Xo.Z)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,S.Z)((0,Xo.Z)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,S.Z)((0,Xo.Z)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,S.Z)((0,Xo.Z)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,Uo.Z)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,S.Z)((0,Xo.Z)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,S.Z)((0,Xo.Z)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,S.Z)((0,Xo.Z)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,S.Z)((0,Xo.Z)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,S.Z)((0,Xo.Z)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,S.Z)((0,Xo.Z)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,S.Z)((0,Xo.Z)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,S.Z)((0,Xo.Z)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,S.Z)((0,Xo.Z)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,Uo.Z)(n,t)&&!r.isContextMenuOnly()||(0,Uo.Z)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,S.Z)((0,Xo.Z)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,Go.Z)(r.triggerRef.current);if(t)return t}catch(e){}return d().findDOMNode((0,Xo.Z)(r))})),(0,S.Z)((0,Xo.Z)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,l=n.alignPoint,s=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l=i[a];if(qo(e[l].points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(i,a,e,l)),s&&t.push(s(e)),t.join(" ")})),(0,S.Z)((0,Xo.Z)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,l=e.popupMotion,s=e.popupAnimation,c=e.popupTransitionName,u=e.popupStyle,d=e.mask,p=e.maskAnimation,g=e.maskTransitionName,m=e.maskMotion,h=e.zIndex,v=e.popup,b=e.stretch,y=e.alignPoint,x=e.mobile,C=e.forceRender,w=e.onPopupClick,S=r.state,$=S.popupVisible,E=S.point,O=r.getPopupAlign(),k={};return r.isMouseEnterToShow()&&(k.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(k.onMouseLeave=r.onPopupMouseLeave),k.onMouseDown=r.onPopupMouseDown,k.onTouchStart=r.onPopupMouseDown,o.createElement(xi,(0,f.Z)({prefixCls:t,destroyPopupOnHide:n,visible:$,point:y&&E,className:i,align:O,onAlign:a,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},k,{stretch:b,getRootDomNode:r.getRootDomNode,style:u,mask:d,zIndex:h,transitionName:c,maskAnimation:p,maskTransitionName:g,maskMotion:m,ref:r.popupRef,motion:l,mobile:x,forceRender:C,onClick:w}),"function"==typeof v?v():v)})),(0,S.Z)((0,Xo.Z)(r),"attachParent",(function(e){Sn.Z.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,Sn.Z)((function(){r.attachParent(e)}))})),(0,S.Z)((0,Xo.Z)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,S.Z)((0,Xo.Z)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,S.Z)((0,Xo.Z)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,S.Z)((0,Xo.Z)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},Si.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,nt.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Oe(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Oe(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Oe(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Oe(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Sn.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,w.Z)((0,w.Z)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,r=1e3*t;if(this.clearDelayTimer(),r){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,i),o.clearDelayTimer()}),r)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,i=t.alignPoint,a=t.className,l=t.autoDestroy,s=o.Children.only(n),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var u=E()(s&&s.props&&s.props.className,a);u&&(c.className=u);var d=(0,w.Z)({},c);(0,g.Yr)(s)&&(d.ref=(0,g.sQ)(this.triggerRef,s.ref));var p,f=o.cloneElement(s,d);return(e||this.popupRef.current||r)&&(p=o.createElement(Ei,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&l&&(p=null),o.createElement(Ci.Provider,{value:this.triggerContextValue},f,p)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),n}(o.Component),(0,S.Z)(Oi,"contextType",Ci),(0,S.Z)(Oi,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:function(){return""},getDocument:function(e){return e?e.ownerDocument:window.document},onPopupVisibleChange:wi,afterPopupVisibleChange:wi,onPopupAlign:wi,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),Oi);var Ei,Oi,ki={adjustX:1,adjustY:1},Ii=[0,0];const Ni={topLeft:{points:["bl","tl"],overflow:ki,offset:[0,-4],targetOffset:Ii},topCenter:{points:["bc","tc"],overflow:ki,offset:[0,-4],targetOffset:Ii},topRight:{points:["br","tr"],overflow:ki,offset:[0,-4],targetOffset:Ii},bottomLeft:{points:["tl","bl"],overflow:ki,offset:[0,4],targetOffset:Ii},bottomCenter:{points:["tc","bc"],overflow:ki,offset:[0,4],targetOffset:Ii},bottomRight:{points:["tr","br"],overflow:ki,offset:[0,4],targetOffset:Ii}};var Ti=n(2981);function Pi(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,W.Z)(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function Di(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,Y.Z)(e.querySelectorAll("*")).filter((function(e){return Pi(e,t)}));return Pi(e,t)&&n.unshift(e),n}var Ri=Ti.Z.ESC,Zi=Ti.Z.TAB,Mi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function ji(e,t){var n=e.arrow,r=void 0!==n&&n,i=e.prefixCls,l=void 0===i?"rc-dropdown":i,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,p=void 0===d?"bottomLeft":d,f=e.placements,g=void 0===f?Ni:f,m=e.getPopupContainer,h=e.showAction,v=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,x=e.visible,C=e.trigger,$=void 0===C?["hover"]:C,O=e.autoFocus,k=(0,z.Z)(e,Mi),I=o.useState(),N=(0,a.Z)(I,2),T=N[0],P=N[1],D="visible"in e?x:T,R=o.useRef(null);o.useImperativeHandle(t,(function(){return R.current})),function(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,i=e.onVisibleChange,a=e.autoFocus,l=o.useRef(!1),s=function(){var e,o,a,l;t&&r.current&&(null===(e=r.current)||void 0===e||null===(o=e.triggerRef)||void 0===o||null===(a=o.current)||void 0===a||null===(l=a.focus)||void 0===l||l.call(a),n(!1),"function"==typeof i&&i(!1))},c=function(){var e,t,n,o,i=Di(null===(e=r.current)||void 0===e||null===(t=e.popupRef)||void 0===t||null===(n=t.current)||void 0===n||null===(o=n.getElement)||void 0===o?void 0:o.call(n))[0];return!!(null==i?void 0:i.focus)&&(i.focus(),l.current=!0,!0)},u=function(e){switch(e.keyCode){case Ri:s();break;case Zi:var t=!1;l.current||(t=c()),t?e.preventDefault():s()}};o.useEffect((function(){return t?(window.addEventListener("keydown",u),a&&(0,Sn.Z)(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:D,setTriggerVisible:P,triggerRef:R,onVisibleChange:e.onVisibleChange,autoFocus:O});var Z,M,j,A,H,B,L=function(){var t,n="function"==typeof(t=e.overlay)?t():t;return o.createElement(o.Fragment,null,r&&o.createElement("div",{className:"".concat(l,"-arrow")}),n)},K=v;return K||-1===$.indexOf("contextMenu")||(K=["click"]),o.createElement($i,(0,w.Z)((0,w.Z)({builtinPlacements:g},k),{},{prefixCls:l,ref:R,popupClassName:E()(b,(0,S.Z)({},"".concat(l,"-show-arrow"),r)),popupStyle:y,action:$,showAction:h,hideAction:K||[],popupPlacement:p,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:D,stretch:(H=e.minOverlayWidthMatchTrigger,B=e.alignPoint,("minOverlayWidthMatchTrigger"in e?H:!B)?"minWidth":""),popup:"function"==typeof e.overlay?L:L(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;P(t),"function"==typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;P(!1),n&&n(t)},getPopupContainer:m}),(j=(M=e.children).props?M.props:{},A=E()(j.className,void 0!==(Z=e.openClassName)?Z:"".concat(l,"-open")),D&&M?o.cloneElement(M,{className:A}):M))}const zi=o.forwardRef(ji);var Ai=n(2340),Hi=n(7163),Bi=o.createContext(null);function Li(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ki(e){return Li(o.useContext(Bi),e)}var _i=["children","locked"],Wi=o.createContext(null);function Fi(e){var t=e.children,n=e.locked,r=(0,z.Z)(e,_i),i=o.useContext(Wi),a=(0,O.Z)((function(){return e=i,t=r,n=(0,w.Z)({},e),Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n;var e,t,n}),[i,r],(function(e,t){return!(n||e[0]===t[0]&&(0,c.Z)(e[1],t[1],!0))}));return o.createElement(Wi.Provider,{value:a},t)}var Vi=[],Xi=o.createContext(null);function Ui(){return o.useContext(Xi)}var Gi=o.createContext(Vi);function Yi(e){var t=o.useContext(Gi);return o.useMemo((function(){return void 0!==e?[].concat((0,Y.Z)(t),[e]):t}),[t,e])}var qi=o.createContext(null);const Qi=o.createContext({});var Ji=Ti.Z.LEFT,ea=Ti.Z.RIGHT,ta=Ti.Z.UP,na=Ti.Z.DOWN,oa=Ti.Z.ENTER,ra=Ti.Z.ESC,ia=Ti.Z.HOME,aa=Ti.Z.END,la=[ta,na,Ji,ea];function sa(e,t){return Di(e,!0).filter((function(e){return t.has(e)}))}function ca(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=sa(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var ua="__RC_UTIL_PATH_SPLIT__",da=function(e){return e.join(ua)},pa="rc-menu-more";function fa(e){var t=o.useRef(e);t.current=e;var n=o.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var ga=Math.random().toFixed(5).toString().slice(2),ma=0;function ha(e,t,n,r){var i=o.useContext(Wi),a=i.activeKey,l=i.onActive,s=i.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),l(e)},c.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),s(e)}),c}var va=["item"];function ba(e){var t=e.item,n=(0,z.Z)(e,va);return Object.defineProperty(n,"item",{get:function(){return(0,I.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function ya(e){var t=e.icon,n=e.props,r=e.children;return("function"==typeof t?o.createElement(t,(0,w.Z)({},n)):t)||r||null}function xa(e){var t=o.useContext(Wi),n=t.mode,r=t.rtl,i=t.inlineIndent;return"inline"!==n?null:r?{paddingRight:e*i}:{paddingLeft:e*i}}var Ca=["title","attribute","elementRef"],wa=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Sa=["active"],$a=function(e){(0,ot.Z)(n,e);var t=(0,rt.Z)(n);function n(){return(0,tt.Z)(this,n),t.apply(this,arguments)}return(0,nt.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=(0,z.Z)(e,Ca),a=(0,ze.Z)(i,["eventKey"]);return(0,I.ZP)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(Hi.Z.Item,(0,f.Z)({},n,{title:"string"==typeof t?t:void 0},a,{ref:r}))}}]),n}(o.Component),Ea=function(e){var t,n=e.style,r=e.className,i=e.eventKey,a=(e.warnKey,e.disabled),l=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,p=e.onClick,g=e.onKeyDown,m=e.onFocus,h=(0,z.Z)(e,wa),v=Ki(i),b=o.useContext(Wi),y=b.prefixCls,x=b.onItemClick,C=b.disabled,$=b.overflowDisabled,O=b.itemIcon,k=b.selectedKeys,I=b.onActive,N=o.useContext(Qi)._internalRenderMenuItem,T="".concat(y,"-item"),P=o.useRef(),D=o.useRef(),R=C||a,Z=Yi(i),M=function(e){return{key:i,keyPath:(0,Y.Z)(Z).reverse(),item:P.current,domEvent:e}},j=l||O,A=ha(i,R,u,d),H=A.active,B=(0,z.Z)(A,Sa),L=k.includes(i),K=xa(Z.length),_={};"option"===e.role&&(_["aria-selected"]=L);var W=o.createElement($a,(0,f.Z)({ref:P,elementRef:D,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":$&&v?null:v},h,B,_,{component:"li","aria-disabled":a,style:(0,w.Z)((0,w.Z)({},K),n),className:E()(T,(t={},(0,S.Z)(t,"".concat(T,"-active"),H),(0,S.Z)(t,"".concat(T,"-selected"),L),(0,S.Z)(t,"".concat(T,"-disabled"),R),t),r),onClick:function(e){if(!R){var t=M(e);null==p||p(ba(t)),x(t)}},onKeyDown:function(e){if(null==g||g(e),e.which===Ti.Z.ENTER){var t=M(e);null==p||p(ba(t)),x(t)}},onFocus:function(e){I(i),null==m||m(e)}}),s,o.createElement(ya,{props:(0,w.Z)((0,w.Z)({},e),{},{isSelected:L}),icon:j}));return N&&(W=N(W,e,{selected:L})),W};const Oa=function(e){var t=e.eventKey,n=Ui(),r=Yi(t);return o.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:o.createElement(Ea,e)};var ka=["className","children"],Ia=function(e,t){var n=e.className,r=e.children,i=(0,z.Z)(e,ka),a=o.useContext(Wi),l=a.prefixCls,s=a.mode,c=a.rtl;return o.createElement("ul",(0,f.Z)({className:E()(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),r)},Na=o.forwardRef(Ia);Na.displayName="SubMenuList";const Ta=Na;var Pa=["label","children","key","type"];function Da(e,t){return(0,me.Z)(e).map((function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,l=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a;null==l&&(l="tmp_key-".concat([].concat((0,Y.Z)(t),[n]).join("-")));var s={key:l,eventKey:l};return o.cloneElement(e,s)}return e}))}function Ra(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,C.Z)(e)){var n=e,r=n.label,i=n.children,a=n.key,l=n.type,s=(0,z.Z)(n,Pa),c=null!=a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?o.createElement(Qa,(0,f.Z)({key:c},s,{title:r}),Ra(i)):o.createElement(Fa,(0,f.Z)({key:c},s,{title:r}),Ra(i)):"divider"===l?o.createElement(Ja,(0,f.Z)({key:c},s)):o.createElement(Oa,(0,f.Z)({key:c},s),r)}return null})).filter((function(e){return e}))}function Za(e,t,n){var o=e;return t&&(o=Ra(t)),Da(o,n)}var Ma={adjustX:1,adjustY:1},ja={topLeft:{points:["bl","tl"],overflow:Ma,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ma,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ma,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ma,offset:[4,0]}},za={topLeft:{points:["bl","tl"],overflow:Ma,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ma,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ma,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ma,offset:[4,0]}};function Aa(e,t,n){return t||(n?n[e]||n.other:void 0)}var Ha={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ba(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,l=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,p=o.useContext(Wi),f=p.getPopupContainer,g=p.rtl,m=p.subMenuOpenDelay,h=p.subMenuCloseDelay,v=p.builtinPlacements,b=p.triggerSubMenuAction,y=p.forceSubMenuRender,x=p.rootClassName,C=p.motion,$=p.defaultMotions,O=o.useState(!1),k=(0,a.Z)(O,2),I=k[0],N=k[1],T=g?(0,w.Z)((0,w.Z)({},za),v):(0,w.Z)((0,w.Z)({},ja),v),P=Ha[u],D=Aa(u,C,$),R=o.useRef(D);"inline"!==u&&(R.current=D);var Z=(0,w.Z)((0,w.Z)({},R.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=o.useRef();return o.useEffect((function(){return M.current=(0,Sn.Z)((function(){N(n)})),function(){Sn.Z.cancel(M.current)}}),[n]),o.createElement($i,{prefixCls:t,popupClassName:E()("".concat(t,"-popup"),(0,S.Z)({},"".concat(t,"-rtl"),g),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:f,builtinPlacements:T,popupPlacement:P,popupVisible:I,popup:i,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:m,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:y,popupMotion:Z},r)}function La(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,l="inline",s=o.useContext(Wi),c=s.prefixCls,u=s.forceSubMenuRender,d=s.motion,p=s.defaultMotions,g=s.mode,m=o.useRef(!1);m.current=g===l;var h=o.useState(!m.current),v=(0,a.Z)(h,2),b=v[0],y=v[1],x=!!m.current&&n;o.useEffect((function(){m.current&&y(!1)}),[g]);var C=(0,w.Z)({},Aa(l,d,p));r.length>1&&(C.motionAppear=!1);var S=C.onVisibleChanged;return C.onVisibleChanged=function(e){return m.current||e||y(!0),null==S?void 0:S(e)},b?null:o.createElement(Fi,{mode:l,locked:!m.current},o.createElement(Zn.Z,(0,f.Z)({visible:x},C,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,r=e.style;return o.createElement(Ta,{id:t,className:n,style:r},i)})))}var Ka=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_a=["active"],Wa=function(e){var t,n=e.style,r=e.className,i=e.title,l=e.eventKey,s=(e.warnKey,e.disabled),c=e.internalPopupClose,u=e.children,d=e.itemIcon,p=e.expandIcon,g=e.popupClassName,m=e.popupOffset,h=e.onClick,v=e.onMouseEnter,b=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,C=e.onTitleMouseLeave,$=(0,z.Z)(e,Ka),O=Ki(l),k=o.useContext(Wi),I=k.prefixCls,N=k.mode,T=k.openKeys,P=k.disabled,D=k.overflowDisabled,R=k.activeKey,Z=k.selectedKeys,M=k.itemIcon,j=k.expandIcon,A=k.onItemClick,H=k.onOpenChange,B=k.onActive,L=o.useContext(Qi)._internalRenderSubMenuItem,K=o.useContext(qi).isSubPathKey,_=Yi(),W="".concat(I,"-submenu"),F=P||s,V=o.useRef(),X=o.useRef(),U=d||M,G=p||j,Y=T.includes(l),q=!D&&Y,Q=K(Z,l),J=ha(l,F,x,C),ee=J.active,te=(0,z.Z)(J,_a),ne=o.useState(!1),oe=(0,a.Z)(ne,2),re=oe[0],ie=oe[1],ae=function(e){F||ie(e)},le=o.useMemo((function(){return ee||"inline"!==N&&(re||K([R],l))}),[N,ee,R,re,l,K]),se=xa(_.length),ce=fa((function(e){null==h||h(ba(e)),A(e)})),ue=O&&"".concat(O,"-popup"),de=o.createElement("div",(0,f.Z)({role:"menuitem",style:se,className:"".concat(W,"-title"),tabIndex:F?null:-1,ref:V,title:"string"==typeof i?i:null,"data-menu-id":D&&O?null:O,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":F,onClick:function(e){F||(null==y||y({key:l,domEvent:e}),"inline"===N&&H(l,!Y))},onFocus:function(){B(l)}},te),i,o.createElement(ya,{icon:"horizontal"!==N?G:null,props:(0,w.Z)((0,w.Z)({},e),{},{isOpen:q,isSubMenu:!0})},o.createElement("i",{className:"".concat(W,"-arrow")}))),pe=o.useRef(N);if("inline"!==N&&_.length>1?pe.current="vertical":pe.current=N,!D){var fe=pe.current;de=o.createElement(Ba,{mode:fe,prefixCls:W,visible:!c&&q&&"inline"!==N,popupClassName:g,popupOffset:m,popup:o.createElement(Fi,{mode:"horizontal"===fe?"vertical":fe},o.createElement(Ta,{id:ue,ref:X},u)),disabled:F,onVisibleChange:function(e){"inline"!==N&&H(l,e)}},de)}var ge=o.createElement(Hi.Z.Item,(0,f.Z)({role:"none"},$,{component:"li",style:n,className:E()(W,"".concat(W,"-").concat(N),r,(t={},(0,S.Z)(t,"".concat(W,"-open"),q),(0,S.Z)(t,"".concat(W,"-active"),le),(0,S.Z)(t,"".concat(W,"-selected"),Q),(0,S.Z)(t,"".concat(W,"-disabled"),F),t)),onMouseEnter:function(e){ae(!0),null==v||v({key:l,domEvent:e})},onMouseLeave:function(e){ae(!1),null==b||b({key:l,domEvent:e})}}),de,!D&&o.createElement(La,{id:ue,open:q,keyPath:_},u));return L&&(ge=L(ge,e,{selected:Q,active:le,open:q,disabled:F})),o.createElement(Fi,{onItemClick:ce,mode:"horizontal"===N?"vertical":N,itemIcon:U,expandIcon:G},ge)};function Fa(e){var t,n=e.eventKey,r=e.children,i=Yi(n),a=Da(r,i),l=Ui();return o.useEffect((function(){if(l)return l.registerPath(n,i),function(){l.unregisterPath(n,i)}}),[i]),t=l?a:o.createElement(Wa,e,a),o.createElement(Gi.Provider,{value:i},t)}var Va=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Xa=[],Ua=o.forwardRef((function(e,t){var n,r,i=e,l=i.prefixCls,s=void 0===l?"rc-menu":l,d=i.rootClassName,p=i.style,g=i.className,m=i.tabIndex,h=void 0===m?0:m,v=i.items,b=i.children,y=i.direction,x=i.id,C=i.mode,$=void 0===C?"vertical":C,O=i.inlineCollapsed,k=i.disabled,I=i.disabledOverflow,N=i.subMenuOpenDelay,T=void 0===N?.1:N,P=i.subMenuCloseDelay,D=void 0===P?.1:P,R=i.forceSubMenuRender,Z=i.defaultOpenKeys,M=i.openKeys,j=i.activeKey,A=i.defaultActiveFirst,H=i.selectable,B=void 0===H||H,L=i.multiple,K=void 0!==L&&L,_=i.defaultSelectedKeys,W=i.selectedKeys,F=i.onSelect,V=i.onDeselect,X=i.inlineIndent,U=void 0===X?24:X,G=i.motion,q=i.defaultMotions,Q=i.triggerSubMenuAction,J=void 0===Q?"hover":Q,ee=i.builtinPlacements,te=i.itemIcon,ne=i.expandIcon,oe=i.overflowedIndicator,re=void 0===oe?"...":oe,ie=i.overflowedIndicatorPopupClassName,ae=i.getPopupContainer,le=i.onClick,se=i.onOpenChange,ce=i.onKeyDown,ue=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),de=i._internalRenderSubMenuItem,pe=(0,z.Z)(i,Va),fe=o.useMemo((function(){return Za(b,v,Xa)}),[b,v]),ge=o.useState(!1),me=(0,a.Z)(ge,2),he=me[0],ve=me[1],be=o.useRef(),ye=function(e){var t=(0,Ai.Z)(e,{value:e}),n=(0,a.Z)(t,2),r=n[0],i=n[1];return o.useEffect((function(){ma+=1;var e="".concat(ga,"-").concat(ma);i("rc-menu-uuid-".concat(e))}),[]),r}(x),xe="rtl"===y,Ce=(0,Ai.Z)(Z,{value:M,postState:function(e){return e||Xa}}),we=(0,a.Z)(Ce,2),Se=we[0],$e=we[1],Ee=function(e){function t(){$e(e),null==se||se(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,u.flushSync)(t):t()},Oe=o.useState(Se),ke=(0,a.Z)(Oe,2),Ie=ke[0],Ne=ke[1],Te=o.useRef(!1),Pe=o.useMemo((function(){return"inline"!==$&&"vertical"!==$||!O?[$,!1]:["vertical",O]}),[$,O]),De=(0,a.Z)(Pe,2),Re=De[0],Ze=De[1],Me="inline"===Re,je=o.useState(Re),ze=(0,a.Z)(je,2),Ae=ze[0],He=ze[1],Be=o.useState(Ze),Le=(0,a.Z)(Be,2),Ke=Le[0],_e=Le[1];o.useEffect((function(){He(Re),_e(Ze),Te.current&&(Me?$e(Ie):Ee(Xa))}),[Re,Ze]);var We=o.useState(0),Fe=(0,a.Z)(We,2),Ve=Fe[0],Xe=Fe[1],Ue=Ve>=fe.length-1||"horizontal"!==Ae||I;o.useEffect((function(){Me&&Ne(Se)}),[Se]),o.useEffect((function(){return Te.current=!0,function(){Te.current=!1}}),[]);var Ge=function(){var e=o.useState({}),t=(0,a.Z)(e,2)[1],n=(0,o.useRef)(new Map),r=(0,o.useRef)(new Map),i=o.useState([]),l=(0,a.Z)(i,2),s=l[0],c=l[1],u=(0,o.useRef)(0),d=(0,o.useRef)(!1),p=(0,o.useCallback)((function(e,o){var i=da(o);r.current.set(i,e),n.current.set(e,i),u.current+=1;var a,l=u.current;a=function(){l===u.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,o.useCallback)((function(e,t){var o=da(t);r.current.delete(o),n.current.delete(e)}),[]),g=(0,o.useCallback)((function(e){c(e)}),[]),m=(0,o.useCallback)((function(e,t){var o=(n.current.get(e)||"").split(ua);return t&&s.includes(o[0])&&o.unshift(pa),o}),[s]),h=(0,o.useCallback)((function(e,t){return e.some((function(e){return m(e,!0).includes(t)}))}),[m]),v=(0,o.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(ua),o=new Set;return(0,Y.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return o.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:f,refreshOverflowKeys:g,isSubPathKey:h,getKeyPath:m,getKeys:function(){var e=(0,Y.Z)(n.current.keys());return s.length&&e.push(pa),e},getSubPathKeys:v}}(),Ye=Ge.registerPath,qe=Ge.unregisterPath,Qe=Ge.refreshOverflowKeys,Je=Ge.isSubPathKey,et=Ge.getKeyPath,tt=Ge.getKeys,nt=Ge.getSubPathKeys,ot=o.useMemo((function(){return{registerPath:Ye,unregisterPath:qe}}),[Ye,qe]),rt=o.useMemo((function(){return{isSubPathKey:Je}}),[Je]);o.useEffect((function(){Qe(Ue?Xa:fe.slice(Ve+1).map((function(e){return e.key})))}),[Ve,Ue]);var it=(0,Ai.Z)(j||A&&(null===(n=fe[0])||void 0===n?void 0:n.key),{value:j}),at=(0,a.Z)(it,2),lt=at[0],st=at[1],ct=fa((function(e){st(e)})),ut=fa((function(){st(void 0)}));(0,o.useImperativeHandle)(t,(function(){return{list:be.current,focus:function(e){var t,n,o,r,i=null!=lt?lt:null===(t=fe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=be.current)||void 0===n||null===(o=n.querySelector("li[data-menu-id='".concat(Li(ye,i),"']")))||void 0===o||null===(r=o.focus)||void 0===r||r.call(o,e))}}}));var dt=(0,Ai.Z)(_||[],{value:W,postState:function(e){return Array.isArray(e)?e:null==e?Xa:[e]}}),pt=(0,a.Z)(dt,2),ft=pt[0],gt=pt[1],mt=fa((function(e){null==le||le(ba(e)),function(e){if(B){var t,n=e.key,o=ft.includes(n);t=K?o?ft.filter((function(e){return e!==n})):[].concat((0,Y.Z)(ft),[n]):[n],gt(t);var r=(0,w.Z)((0,w.Z)({},e),{},{selectedKeys:t});o?null==V||V(r):null==F||F(r)}!K&&Se.length&&"inline"!==Ae&&Ee(Xa)}(e)})),ht=fa((function(e,t){var n=Se.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ae){var o=nt(e);n=n.filter((function(e){return!o.has(e)}))}(0,c.Z)(Se,n,!0)||Ee(n,!0)})),vt=fa(ae),bt=function(e,t,n,r,i,a,l,s,c,u){var d=o.useRef(),p=o.useRef();p.current=t;var f=function(){Sn.Z.cancel(d.current)};return o.useEffect((function(){return function(){f()}}),[]),function(o){var g=o.which;if([].concat(la,[oa,ra,ia,aa]).includes(g)){var m,h,v,b=function(){return m=new Set,h=new Map,v=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Li(r,e),"']"));t&&(m.add(t),v.set(t,e),h.set(e,t))})),m};b();var y=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(h.get(t),m),x=v.get(y),C=function(e,t,n,o){var r,i,a,l,s="prev",c="next",u="children",d="parent";if("inline"===e&&o===oa)return{inlineTrigger:!0};var p=(r={},(0,S.Z)(r,ta,s),(0,S.Z)(r,na,c),r),f=(i={},(0,S.Z)(i,Ji,n?c:s),(0,S.Z)(i,ea,n?s:c),(0,S.Z)(i,na,u),(0,S.Z)(i,oa,u),i),g=(a={},(0,S.Z)(a,ta,s),(0,S.Z)(a,na,c),(0,S.Z)(a,oa,u),(0,S.Z)(a,ra,d),(0,S.Z)(a,Ji,n?u:d),(0,S.Z)(a,ea,n?d:u),a);switch(null===(l={inline:p,horizontal:f,vertical:g,inlineSub:p,horizontalSub:g,verticalSub:g}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[o]){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(x,!0).length,n,g);if(!C&&g!==ia&&g!==aa)return;(la.includes(g)||[ia,aa].includes(g))&&o.preventDefault();var w=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=v.get(e);s(o),f(),d.current=(0,Sn.Z)((function(){p.current===o&&t.focus()}))}};if([ia,aa].includes(g)||C.sibling||!y){var $,E,O=sa($=y&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):i.current,m);E=g===ia?O[0]:g===aa?O[O.length-1]:ca($,m,y,C.offset),w(E)}else if(C.inlineTrigger)c(x);else if(C.offset>0)c(x,!0),f(),d.current=(0,Sn.Z)((function(){b();var e=y.getAttribute("aria-controls"),t=ca(document.getElementById(e),m);w(t)}),5);else if(C.offset<0){var k=l(x,!0),I=k[k.length-2],N=h.get(I);c(I,!1),w(N)}}null==u||u(o)}}(Ae,lt,xe,ye,be,tt,et,st,(function(e,t){var n=null!=t?t:!Se.includes(e);ht(e,n)}),ce);o.useEffect((function(){ve(!0)}),[]);var yt=o.useMemo((function(){return{_internalRenderMenuItem:ue,_internalRenderSubMenuItem:de}}),[ue,de]),xt="horizontal"!==Ae||I?fe:fe.map((function(e,t){return o.createElement(Fi,{key:e.key,overflowDisabled:t>Ve},e)})),Ct=o.createElement(Hi.Z,(0,f.Z)({id:x,ref:be,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:Oa,className:E()(s,"".concat(s,"-root"),"".concat(s,"-").concat(Ae),g,(r={},(0,S.Z)(r,"".concat(s,"-inline-collapsed"),Ke),(0,S.Z)(r,"".concat(s,"-rtl"),xe),r),d),dir:y,style:p,role:"menu",tabIndex:h,data:xt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?fe.slice(-t):null;return o.createElement(Fa,{eventKey:pa,title:re,disabled:Ue,internalPopupClose:0===t,popupClassName:ie},n)},maxCount:"horizontal"!==Ae||I?Hi.Z.INVALIDATE:Hi.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Xe(e)},onKeyDown:bt},pe));return o.createElement(Qi.Provider,{value:yt},o.createElement(Bi.Provider,{value:ye},o.createElement(Fi,{prefixCls:s,rootClassName:d,mode:Ae,openKeys:Se,rtl:xe,disabled:k,motion:he?G:null,defaultMotions:he?q:null,activeKey:lt,onActive:ct,onInactive:ut,selectedKeys:ft,inlineIndent:U,subMenuOpenDelay:T,subMenuCloseDelay:D,forceSubMenuRender:R,builtinPlacements:ee,triggerSubMenuAction:J,getPopupContainer:vt,itemIcon:te,expandIcon:ne,onItemClick:mt,onOpenChange:ht},o.createElement(qi.Provider,{value:rt},Ct),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(Xi.Provider,{value:ot},fe)))))})),Ga=["className","title","eventKey","children"],Ya=["children"],qa=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),i=(0,z.Z)(e,Ga),a=o.useContext(Wi).prefixCls,l="".concat(a,"-item-group");return o.createElement("li",(0,f.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:E()(l,t)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},r))};function Qa(e){var t=e.children,n=(0,z.Z)(e,Ya),r=Da(t,Yi(n.eventKey));return Ui()?r:o.createElement(qa,(0,ze.Z)(n,["warnKey"]),r)}function Ja(e){var t=e.className,n=e.style,r=o.useContext(Wi).prefixCls;return Ui()?null:o.createElement("li",{className:E()("".concat(r,"-item-divider"),t),style:n})}var el=Ua;el.Item=Oa,el.SubMenu=Fa,el.ItemGroup=Qa,el.Divider=Ja;const tl=el,nl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var ol=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:nl}))};ol.displayName="EllipsisOutlined";const rl=o.forwardRef(ol);var il=n(3957);const al=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});var ll=n(7289),sl=n(6521);const cl=new gn.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ul=new gn.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),dl=new gn.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),pl=new gn.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),fl=new gn.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),gl=new gn.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ml={zoom:{inKeyframes:cl,outKeyframes:ul},"zoom-big":{inKeyframes:dl,outKeyframes:pl},"zoom-big-fast":{inKeyframes:dl,outKeyframes:pl},"zoom-left":{inKeyframes:new gn.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new gn.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new gn.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new gn.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:fl,outKeyframes:gl},"zoom-down":{inKeyframes:new gn.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new gn.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},hl=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=ml[t];return[(0,sl.R)(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},vl=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:i,lineType:a,menuItemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${i}px ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},bl=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},yl=e=>Object.assign({},(0,Mt.oN)(e)),xl=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:i,colorItemBg:a,colorSubItemBg:l,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:g,menuItemPaddingInline:m,motionDurationMid:h,colorItemTextHover:v,lineType:b,colorSplit:y,colorItemTextDisabled:x,colorDangerItemText:C,colorDangerItemTextHover:w,colorDangerItemTextSelected:S,colorDangerItemBgActive:$,colorDangerItemBgSelected:E,colorItemBgHover:O,menuSubMenuBg:k,colorItemTextSelectedHorizontal:I,colorItemBgSelectedHorizontal:N}=e;return{[`${n}-${t}`]:{color:o,background:a,[`&${n}-root:focus-visible`]:Object.assign({},yl(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},yl(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:k},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:N,"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${g}`,`opacity ${h} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(",")}}}}}},Cl=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,marginXXS:l}=e;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:`calc(100% - ${2*o}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:r+i+a}}},wl=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:g}=e,m={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Cl(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Cl(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:2*o,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Mt.vS),{paddingInline:f})}}]},Sl=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:l,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${i}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${a}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,Mt.Ro)()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$l=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},El=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,lineHeight:l,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:p,borderRadiusLG:f,radiusSubMenuItem:g,menuArrowSize:m,menuArrowOffset:h,lineType:v,menuPanelMaskInset:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},(0,Mt.dF)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(e)),(0,Mt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:[`background ${r}`,`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`].join(","),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:o,lineHeight:l,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Sl(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*o}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:f,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Sl(e)),$l(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})}}),$l(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h})`},"&::after":{transform:`rotate(45deg) translateX(-${h})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ol=(e,t)=>(0,At.Z)("Menu",((e,n)=>{let{overrideComponentToken:o}=n;if(!1===t)return[];const{colorBgElevated:r,colorPrimary:i,colorError:a,colorErrorHover:l,colorTextLightSolid:s}=e,{controlHeightLG:c,fontSize:u}=e,d=u/7*5,p=(0,zt.TS)(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*d+"px",menuPanelMaskInset:-7,menuSubMenuBg:r}),f=new il.C(s).setAlpha(.65).toRgbString(),g=(0,zt.TS)(p,{colorItemText:f,colorItemTextHover:s,colorGroupTitle:f,colorItemTextSelected:s,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:i,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new il.C(s).setAlpha(.25).toRgbString(),colorDangerItemText:a,colorDangerItemTextHover:l,colorDangerItemTextSelected:s,colorDangerItemBgActive:a,colorDangerItemBgSelected:a,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:s,colorItemBgSelectedHorizontal:i},Object.assign({},o));return[El(p),vl(p),wl(p),xl(p,"light"),xl(g,"dark"),bl(p),al(p),(0,ll.oN)(p,"slide-up"),(0,ll.oN)(p,"slide-down"),hl(p,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:i,colorItemTextHover:i,colorItemTextHoverHorizontal:t,colorGroupTitle:a,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:l,colorItemBgHover:f,colorItemBgActive:c,colorSubItemBg:s,colorItemBgSelected:p,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:o,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:r,colorDangerItemBgSelected:r,itemMarginInline:e.marginXXS}}))(e);const kl=o.createContext(null),Il=e=>{const{children:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]),r=o.useContext(kl),i=o.useMemo((()=>Object.assign(Object.assign({},r),n)),[r,n.prefixCls,n.mode,n.selectable]);return o.createElement(kl.Provider,{value:i},t)},Nl=kl;const Tl=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=o.useContext(Ae.E_),l=a("menu",t),s=E()({[`${l}-item-divider-dashed`]:!!r},n);return o.createElement(Ja,Object.assign({className:s},i))},Pl=o.createContext({});var Dl=n(2002),Rl={shiftX:64,adjustY:1},Zl={adjustX:1,shiftY:!0},Ml=[0,0],jl={left:{points:["cr","cl"],overflow:Zl,offset:[-4,0],targetOffset:Ml},right:{points:["cl","cr"],overflow:Zl,offset:[4,0],targetOffset:Ml},top:{points:["bc","tc"],overflow:Rl,offset:[0,-4],targetOffset:Ml},bottom:{points:["tc","bc"],overflow:Rl,offset:[0,4],targetOffset:Ml},topLeft:{points:["bl","tl"],overflow:Rl,offset:[0,-4],targetOffset:Ml},leftTop:{points:["tr","tl"],overflow:Zl,offset:[-4,0],targetOffset:Ml},topRight:{points:["br","tr"],overflow:Rl,offset:[0,-4],targetOffset:Ml},rightTop:{points:["tl","tr"],overflow:Zl,offset:[4,0],targetOffset:Ml},bottomRight:{points:["tr","br"],overflow:Rl,offset:[0,4],targetOffset:Ml},rightBottom:{points:["bl","br"],overflow:Zl,offset:[4,0],targetOffset:Ml},bottomLeft:{points:["tl","bl"],overflow:Rl,offset:[0,4],targetOffset:Ml},leftBottom:{points:["br","bl"],overflow:Zl,offset:[-4,0],targetOffset:Ml}};function zl(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return o.createElement("div",{className:E()("".concat(n,"-content"),a),style:l},o.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}var Al=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Hl=function(e,t){var n=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,a=e.mouseEnterDelay,l=void 0===a?0:a,s=e.mouseLeaveDelay,c=void 0===s?.1:s,u=e.overlayStyle,d=e.prefixCls,p=void 0===d?"rc-tooltip":d,g=e.children,m=e.onVisibleChange,h=e.afterVisibleChange,v=e.transitionName,b=e.animation,y=e.motion,x=e.placement,C=void 0===x?"right":x,S=e.align,$=void 0===S?{}:S,E=e.destroyTooltipOnHide,O=void 0!==E&&E,k=e.defaultVisible,I=e.getTooltipContainer,N=e.overlayInnerStyle,T=(e.arrowContent,e.overlay),P=e.id,D=e.showArrow,R=void 0===D||D,Z=(0,z.Z)(e,Al),M=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return M.current}));var j=(0,w.Z)({},Z);return"visible"in e&&(j.popupVisible=e.visible),o.createElement(Dl.Z,(0,f.Z)({popupClassName:n,prefixCls:p,popup:function(){return o.createElement(zl,{key:"content",prefixCls:p,id:P,overlayInnerStyle:N},T)},action:i,builtinPlacements:jl,popupPlacement:C,ref:M,popupAlign:$,getPopupContainer:I,onPopupVisibleChange:m,afterPopupVisibleChange:h,popupTransitionName:v,popupAnimation:b,popupMotion:y,defaultPopupVisible:k,autoDestroy:O,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:R},j),g)};const Bl=(0,o.forwardRef)(Hl);var Ll=n(8317),Kl=n(819),_l=n(6504),Wl=n(6341);const Fl=(e,t)=>new il.C(e).setAlpha(t).toRgbString(),Vl=(e,t)=>new il.C(e).lighten(t).toHexString(),Xl=e=>{const t=(0,Kl.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]}},Ul=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:Fl(o,.85),colorTextSecondary:Fl(o,.65),colorTextTertiary:Fl(o,.45),colorTextQuaternary:Fl(o,.25),colorFill:Fl(o,.18),colorFillSecondary:Fl(o,.12),colorFillTertiary:Fl(o,.08),colorFillQuaternary:Fl(o,.04),colorBgElevated:Vl(n,12),colorBgContainer:Vl(n,8),colorBgLayout:Vl(n,0),colorBgSpotlight:Vl(n,26),colorBorder:Vl(n,26),colorBorderSecondary:Vl(n,19)}};var Gl=n(749),Yl=n(9415);const ql={defaultConfig:Ke.u_,defaultSeed:Ke.u_.token,useToken:function(){const[e,t,n]=(0,Ke.dQ)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Ll.Z,darkAlgorithm:(e,t)=>{const n=Object.keys(_l.M).map((t=>{const n=(0,Kl.R_)(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),o=null!=t?t:(0,Ll.Z)(e);return Object.assign(Object.assign(Object.assign({},o),n),(0,Wl.Z)(e,{generateColorPalettes:Xl,generateNeutralColorPalettes:Ul}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:(0,Ll.Z)(e),o=n.fontSizeSM,r=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}(null!=t?t:e)),(0,Yl.Z)(o)),{controlHeight:r}),(0,Gl.Z)(Object.assign(Object.assign({},n),{controlHeight:r})))}},Ql=(e,t,n,o,r)=>{const i=e/2,a=i,l=1*n/Math.sqrt(2),s=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,f=2*i-l,g=s,m=2*i-0,h=a,v=i*Math.sqrt(2)+n*(Math.sqrt(2)-2);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:`path('M 0 ${a} A ${n} ${n} 0 0 0 ${l} ${s} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${g} A ${n} ${n} 0 0 0 ${m} ${h} Z')`,content:'""'},"&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Jl=8;function es(e){const t=Jl,{contentRadius:n,limitVerticalRadius:o}=e,r=n>12?n+2:12;return{dropdownArrowOffset:r,dropdownArrowOffsetVertical:o?t:r}}function ts(e,t){return e?t:{}}function ns(e,t){const{componentCls:n,sizePopupArrow:o,borderRadiusXS:r,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:s=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=es({contentRadius:s,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Ql(o,r,i,l,a)),{"&:before":{background:l}})]},ts(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),ts(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),ts(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p}})),ts(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p}}))}}const os={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"]}},rs={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"]}},is=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function as(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i}=e,a=t/2,l={};return Object.keys(os).forEach((e=>{const s=o&&rs[e]||os[e],c=Object.assign(Object.assign({},s),{offset:[0,0]});switch(l[e]=c,is.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-a-r;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=a+r;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-a-r;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=a+r}const u=es({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-u.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":c.offset[0]=u.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":c.offset[1]=-u.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":c.offset[1]=u.dropdownArrowOffset+a}c.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,u,t,n)})),l}const ls=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ss(e,t){return ls.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],l=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const cs=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${u}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,Jl)}},[`${t}-content`]:{position:"relative"}}),ss(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},ns((0,zt.TS)(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},us=(e,t)=>(0,At.Z)("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:o,colorBgDefault:r,borderRadiusOuter:i}=e,a=(0,zt.TS)(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:i>4?4:i});return[cs(a),hl(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}))(e),ds=ls.map((e=>`${e}-inverse`));function ps(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?ls.includes(e):[].concat((0,Y.Z)(ds),(0,Y.Z)(ls)).includes(e)}(t),o=E()({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}const{useToken:fs}=ql;const gs=o.forwardRef(((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:f,destroyTooltipOnHide:g,arrow:m=!0}=e,h=!!m,{token:v}=fs(),{getPopupContainer:b,getPrefixCls:y,direction:x}=o.useContext(Ae.E_),C=o.useRef(null),w=()=>{var e;null===(e=C.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,(()=>({forceAlign:w,forcePopupAlign:()=>{w()}})));const[S,$]=(0,Ai.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),O=()=>{const{title:t,overlay:n}=e;return!t&&!n&&0!==t},k=()=>{var t,n;const{builtinPlacements:o,arrowPointAtCenter:r=!1,autoAdjustOverflow:i=!0}=e;let a=r;return"object"==typeof m&&(a=null!==(n=null!==(t=m.pointAtCenter)&&void 0!==t?t:m.arrowPointAtCenter)&&void 0!==n?n:r),o||as({arrowPointAtCenter:a,autoAdjustOverflow:i,arrowWidth:h?v.sizePopupArrow:0,borderRadius:v.borderRadius,offset:v.marginXXS})},{getPopupContainer:I,placement:N="top",mouseEnterDelay:T=.1,mouseLeaveDelay:P=.1,overlayStyle:D,rootClassName:R}=e,Z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),M=y("tooltip",i),j=y(),z=e["data-popover-inject"];let A=S;"open"in e||"visible"in e||!O()||(A=!1);const H=function(e,t){const n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){const{picked:n,omitted:r}=((e,t)=>{const n={},o=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach((t=>{e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}})(e.props.style),i=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=fn(e,{style:Object.assign(Object.assign({},r),{pointerEvents:"none"}),className:null});return o.createElement("span",{style:i,className:E()(e.props.className,`${t}-disabled-compatible-wrapper`)},a)}return e}(dn(d)&&!pn(d)?d:o.createElement("span",null,d),M),B=H.props,L=B.className&&"string"!=typeof B.className?B.className:E()(B.className,{[a||`${M}-open`]:!0}),[K,_]=us(M,!z),W=ps(M,c),F=Object.assign(Object.assign({},u),W.overlayStyle),V=W.arrowStyle,X=E()(s,{[`${M}-rtl`]:"rtl"===x},W.className,R,_);return K(o.createElement(Bl,Object.assign({},Z,{showArrow:h,placement:N,mouseEnterDelay:T,mouseLeaveDelay:P,prefixCls:M,overlayClassName:X,overlayStyle:Object.assign(Object.assign({},V),D),getTooltipContainer:I||l||b,ref:C,builtinPlacements:k(),overlay:(()=>{const{title:t,overlay:n}=e;return 0===t?t:n||t||""})(),visible:A,onVisibleChange:t=>{var n,o;$(!O()&&t),O()||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=p?p:f,onPopupAlign:(e,t)=>{const n=k(),o=Object.keys(n).find((e=>{var o,r;return n[e].points[0]===(null===(o=t.points)||void 0===o?void 0:o[0])&&n[e].points[1]===(null===(r=t.points)||void 0===r?void 0:r[1])}));if(o){const n=e.getBoundingClientRect(),r={top:"50%",left:"50%"};/top|Bottom/.test(o)?r.top=n.height-t.offset[1]+"px":/Top|bottom/.test(o)&&(r.top=-t.offset[1]+"px"),/left|Right/.test(o)?r.left=n.width-t.offset[0]+"px":/right|Left/.test(o)&&(r.left=-t.offset[0]+"px"),e.style.transformOrigin=`${r.left} ${r.top}`}},overlayInnerStyle:F,arrowContent:o.createElement("span",{className:`${M}-arrow-content`}),motion:{motionName:(0,Ct.mL)(j,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),A?fn(H,{className:L}):H))}));gs._InternalPanelDoNotUseOrYouWillBeFired=function(e){const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:s}=o.useContext(Ae.E_),c=s("tooltip",t),[u,d]=us(c,!0),p=ps(c,a),f=Object.assign(Object.assign({},l),p.overlayStyle),g=p.arrowStyle;return u(o.createElement("div",{className:E()(d,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className),style:g},o.createElement("div",{className:`${c}-arrow`}),o.createElement(zl,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:f}),i)))};const ms=gs,hs=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),vs=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:l}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=o.useContext(hs),{siderCollapsed:f}=o.useContext(Pl);let g=a;void 0===a?g=c?r:"":!1===a&&(g="");const m={title:g};f||p||(m.title=null,m.open=!1);const h=(0,me.Z)(r).length;let v=o.createElement(Oa,Object.assign({},(0,ze.Z)(e,["title","icon","danger"]),{className:E()({[`${s}-item-danger`]:l,[`${s}-item-only-child`]:1===(i?h+1:h)},n),title:"string"==typeof a?a:void 0}),fn(i,{className:E()(dn(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=o.createElement("span",{className:`${s}-title-content`},r);return(!i||dn(r)&&"span"===r.type)&&r&&e&&c&&"string"==typeof r?o.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(p));return d||(v=o.createElement(ms,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),v)),v},bs=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,l=o.useContext(hs),{prefixCls:s,inlineCollapsed:c,theme:u,mode:d}=l,p=Yi();let f;if(r){const e=dn(i)&&"span"===i.type;f=o.createElement(o.Fragment,null,fn(r,{className:E()(dn(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?i:o.createElement("span",{className:`${s}-title-content`},i))}else f=c&&!p.length&&i&&"string"==typeof i?o.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):o.createElement("span",{className:`${s}-title-content`},i);const g=o.useMemo((()=>Object.assign(Object.assign({},l),{firstLevel:!1})),[l]),m="horizontal"===d?[0,8]:[10,0];return o.createElement(hs.Provider,{value:g},o.createElement(Fa,Object.assign({popupOffset:m},(0,ze.Z)(e,["icon"]),{title:f,popupClassName:E()(s,n,`${s}-${a||u}`)})))};var ys=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function xs(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:i,key:a,type:l}=n,s=ys(n,["label","children","key","type"]),c=null!=a?a:`tmp-${t}`;return i||"group"===l?"group"===l?o.createElement(Qa,Object.assign({key:c},s,{title:r}),xs(i)):o.createElement(bs,Object.assign({key:c},s,{title:r}),xs(i)):"divider"===l?o.createElement(Tl,Object.assign({key:c},s)):o.createElement(vs,Object.assign({key:c},s),r)}return null})).filter((e=>e))}function Cs(e){return o.useMemo((()=>e?xs(e):e),[e])}const ws=(0,o.forwardRef)(((e,t)=>{var n,r;const i=o.useContext(Nl),a=i||{},{getPrefixCls:s,getPopupContainer:c,direction:u}=o.useContext(Ae.E_),d=s(),{prefixCls:p,className:f,theme:g="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:b,items:y,children:x,rootClassName:C,mode:w,selectable:S,onClick:$}=e,O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick"]),k=(0,ze.Z)(O,["collapsedWidth"]),I=Cs(y)||x;null===(n=a.validator)||void 0===n||n.call(a,{mode:w});const N=(0,l.Z)((function(){var e;null==$||$.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),T=a.mode||w,P=null!=S?S:a.selectable,D=o.useMemo((()=>void 0!==b?b:v),[v,b]),R={horizontal:{motionName:`${d}-slide-up`},inline:(0,Ct.ZP)(d),other:{motionName:`${d}-zoom-big`}},Z=s("menu",p||a.prefixCls),[M,j]=Ol(Z,!i),z=E()(`${Z}-${g}`,f);let A;if("function"==typeof m)A=m;else{const e=m||a.expandIcon;A=fn(e,{className:E()(`${Z}-submenu-expand-icon`,null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.className)})}const H=o.useMemo((()=>({prefixCls:Z,inlineCollapsed:D||!1,direction:u,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:h})),[Z,D,u,h,g]);return M(o.createElement(Nl.Provider,{value:null},o.createElement(hs.Provider,{value:H},o.createElement(tl,Object.assign({getPopupContainer:c,overflowedIndicator:o.createElement(rl,null),overflowedIndicatorPopupClassName:`${Z}-${g}`,mode:T,selectable:P,onClick:N},k,{inlineCollapsed:D,className:z,prefixCls:Z,direction:u,defaultMotions:R,expandIcon:A,ref:t,rootClassName:E()(C,j)}),I))))})),Ss=ws,$s=(0,o.forwardRef)(((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(Pl);return(0,o.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),o.createElement(Ss,Object.assign({ref:n},e,r))}));$s.Item=vs,$s.SubMenu=bs,$s.Divider=Tl,$s.ItemGroup=Qa;const Es=$s;let Os;function ks(e){let{className:t,direction:n,index:r,marginDirection:i,children:a,split:l,wrap:s}=e;const{horizontalSize:c,verticalSize:u,latestIndex:d,supportFlexGap:p}=o.useContext(Ns);let f={};return p||("vertical"===n?r<d&&(f={marginBottom:c/(l?2:1)}):f=Object.assign(Object.assign({},r<d&&{[i]:c/(l?2:1)}),s&&{paddingBottom:u})),null==a?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:f},a),r<d&&l&&o.createElement("span",{className:`${t}-split`,style:f},l))}var Is=n(3091);const Ns=o.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),Ts={small:8,middle:16,large:24},Ps=e=>{const{getPrefixCls:t,space:n,direction:r}=o.useContext(Ae.E_),{size:i=(null==n?void 0:n.size)||"small",align:a,className:l,rootClassName:s,children:c,direction:u="horizontal",prefixCls:d,split:p,style:f,wrap:g=!1}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),h=(()=>{const[e,t]=o.useState(!1);return o.useEffect((()=>{t((()=>{if(!(0,F.Z)()||!window.document.documentElement)return!1;if(void 0!==Os)return Os;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Os=1===e.scrollHeight,document.body.removeChild(e),Os})())}),[]),e})(),[v,b]=o.useMemo((()=>(Array.isArray(i)?i:[i,i]).map((e=>function(e){return"string"==typeof e?Ts[e]:e||0}(e)))),[i]),y=(0,me.Z)(c,{keepEmpty:!0}),x=void 0===a&&"horizontal"===u?"center":a,C=t("space",d),[w,S]=(0,Is.Z)(C),$=E()(C,S,`${C}-${u}`,{[`${C}-rtl`]:"rtl"===r,[`${C}-align-${x}`]:x},l,s),O=`${C}-item`,k="rtl"===r?"marginLeft":"marginRight";let I=0;const N=y.map(((e,t)=>{null!=e&&(I=t);const n=e&&e.key||`${O}-${t}`;return o.createElement(ks,{className:O,key:n,direction:u,index:t,marginDirection:k,split:p,wrap:g},e)})),T=o.useMemo((()=>({horizontalSize:v,verticalSize:b,latestIndex:I,supportFlexGap:h})),[v,b,I,h]);if(0===y.length)return null;const P={};return g&&(P.flexWrap="wrap",h||(P.marginBottom=-b)),h&&(P.columnGap=v,P.rowGap=b),w(o.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},P),f)},m),o.createElement(Ns.Provider,{value:T},N)))};Ps.Compact=$t.ZP;const Ds=Ps;var Rs=n(1938);const Zs=e=>{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},Ms=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},js=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:g,colorBgElevated:m}=e;return[{[t]:Object.assign(Object.assign({},(0,Mt.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:i/2-r,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ll.fJ},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ll.Qt},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ll.Uw},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:ll.ly}})},ns(e,{colorBg:m,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,Mt.Qy)(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}px`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,Mt.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[(0,ll.oN)(e,"slide-up"),(0,ll.oN)(e,"slide-down"),(0,Rs.Fm)(e,"move-up"),(0,Rs.Fm)(e,"move-down"),hl(e,"zoom-big")]]},zs=(0,At.Z)("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:s,componentCls:c,borderRadiusLG:u}=e,d=(i-a*l)/2,{dropdownArrowOffset:p}=es({contentRadius:u}),f=(0,zt.TS)(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:p,dropdownPaddingVertical:d,dropdownEdgeChildPadding:s});return[js(f),Zs(f),Ms(f)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));const As=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(Ae.E_),{prefixCls:i,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:p,className:f,menu:g,arrow:m,autoFocus:h,overlay:v,trigger:b,align:y,open:x,onOpenChange:C,placement:w,getPopupContainer:S,href:$,icon:O=o.createElement(rl,null),title:k,buttonsRender:I=(e=>e),mouseEnterDelay:N,mouseLeaveDelay:T,overlayClassName:P,overlayStyle:D,destroyPopupOnHide:R,dropdownRender:Z}=e,M=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),j=n("dropdown",i),z=`${j}-button`,[A,H]=zs(j),B={menu:g,arrow:m,autoFocus:h,align:y,disabled:s,trigger:s?[]:b,onOpenChange:C,getPopupContainer:S||t,mouseEnterDelay:N,mouseLeaveDelay:T,overlayClassName:P,overlayStyle:D,destroyPopupOnHide:R,dropdownRender:Z},{compactSize:L,compactItemClassnames:K}=(0,$t.ri)(j,r),_=E()(z,K,f,H);"overlay"in e&&(B.overlay=v),"open"in e&&(B.open=x),B.placement="placement"in e?w:"rtl"===r?"bottomLeft":"bottomRight";const W=o.createElement(Mo,{type:a,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:$,title:k},p),F=o.createElement(Mo,{type:a,danger:l,icon:O}),[V,X]=I([W,F]);return A(o.createElement(Ds.Compact,Object.assign({className:_,size:L,block:!0},M),V,o.createElement(Ls,Object.assign({},B),X)))};As.__ANT_BUTTON=!0;const Hs=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(Ae.E_),{menu:i,arrow:a,prefixCls:s,children:c,trigger:u,disabled:d,dropdownRender:p,getPopupContainer:f,overlayClassName:g,rootClassName:m,open:h,onOpenChange:v,visible:b,onVisibleChange:y,mouseEnterDelay:x=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:w=!0}=e,S=n("dropdown",s),[$,O]=zs(S),{token:k}=ql.useToken(),I=o.Children.only(c),N=fn(I,{className:E()(`${S}-trigger`,{[`${S}-rtl`]:"rtl"===r},I.props.className),disabled:d}),T=d?[]:u;let P;T&&T.includes("contextMenu")&&(P=!0);const[D,R]=(0,Ai.Z)(!1,{value:null!=h?h:b}),Z=(0,l.Z)((e=>{null==v||v(e),null==y||y(e),R(e)})),M=E()(g,m,O,{[`${S}-rtl`]:"rtl"===r}),j=as({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:w,offset:k.marginXXS,arrowWidth:a?k.sizePopupArrow:0,borderRadius:k.borderRadius}),z=o.useCallback((()=>{R(!1)}),[]);return $(o.createElement(zi,Object.assign({alignPoint:P},(0,ze.Z)(e,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:C,visible:D,builtinPlacements:j,arrow:!!a,overlayClassName:M,prefixCls:S,getPopupContainer:f||t,transitionName:(()=>{const t=n(),{placement:o="",transitionName:r}=e;return void 0!==r?r:o.includes("top")?`${t}-slide-down`:`${t}-slide-up`})(),trigger:T,overlay:()=>{const{overlay:t}=e;let n;return n=(null==i?void 0:i.items)?o.createElement(Es,Object.assign({},i)):"function"==typeof t?t():t,p&&(n=p(n)),n=o.Children.only("string"==typeof n?o.createElement("span",null,n):n),o.createElement(Il,{prefixCls:`${S}-menu`,expandIcon:o.createElement("span",{className:`${S}-menu-submenu-arrow`},o.createElement(et.Z,{className:`${S}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:z,validator:e=>{let{mode:t}=e}},o.createElement($t.BR,null,n))},placement:(()=>{const{placement:t}=e;return t?t.includes("Center")?t.slice(0,t.indexOf("Center")):t:"rtl"===r?"bottomRight":"bottomLeft"})(),onVisibleChange:Z}),N))};Hs.Button=As;const Bs=(0,Et.Z)(Hs,"dropdown",(e=>e));Hs._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(Bs,Object.assign({},e),o.createElement("span",null));const Ls=Hs,Ks=Ls;var _s=n(5610);const Ws=o.createContext(null),Fs=Ws.Provider,Vs=Ws,Xs=o.createContext(null),Us=Xs.Provider,Gs=new gn.E4("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Ys=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},(0,Mt.Wf)(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},qs=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:l,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:p,colorBgContainerDisabled:f,colorTextDisabled:g,paddingXS:m,radioDotDisabledColor:h,lineType:v,radioDotDisabledSize:b,wireframe:y,colorWhite:x}=e,C=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,Mt.Wf)(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${v} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:Gs,animationDuration:i,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},(0,Mt.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,\n &:hover ${C}`]:{borderColor:o},[`${t}-input:focus-visible + ${C}`]:Object.assign({},(0,Mt.oN)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:y?o:x,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:o,backgroundColor:y?c:o,"&::after":{transform:`scale(${p/r})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${b/r})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},Qs=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:p,controlHeightLG:f,controlHeightSM:g,paddingXS:m,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,radioCheckedColor:y,radioButtonCheckedBg:x,radioButtonHoverColor:C,radioButtonActiveColor:w,radioSolidCheckedColor:S,colorTextDisabled:$,colorBgContainerDisabled:E,radioDisabledButtonCheckedColor:O,radioDisabledButtonCheckedBg:k}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:n-2*r+"px",background:d,border:`${r}px ${i} ${a}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${o}-group-large &`]:{height:f,fontSize:p,lineHeight:f-2*r+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:g,paddingInline:m-r,paddingBlock:0,lineHeight:g-2*r+"px","&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":Object.assign({},(0,Mt.oN)(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:x,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:w,borderColor:w,"&::before":{backgroundColor:w}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:S,background:y,borderColor:y,"&:hover":{color:S,background:C,borderColor:C},"&:active":{color:S,background:w,borderColor:w}},"&-disabled":{color:$,backgroundColor:E,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:E,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:O,backgroundColor:k,borderColor:a,boxShadow:"none"}}}},Js=(0,At.Z)("Radio",(e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:i,fontSizeLG:a,controlOutline:l,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:p,controlOutlineWidth:f,colorTextLightSolid:g,wireframe:m}=e,h=`0 0 0 ${f}px ${l}`,v=h,b=a,y=b-8,x=m?y:b-2*(4+n),C=d,w=u,S=s,$=c,E=t-n,O=r,k=p,I=(0,zt.TS)(e,{radioFocusShadow:h,radioButtonFocusShadow:v,radioSize:b,radioDotSize:x,radioDotDisabledSize:y,radioCheckedColor:C,radioDotDisabledColor:r,radioSolidCheckedColor:g,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:w,radioButtonHoverColor:S,radioButtonActiveColor:$,radioButtonPaddingHorizontal:E,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:O,radioWrapperMarginRight:k});return[Ys(I),qs(I),Qs(I)]}));const ec=(e,t)=>{var n,r;const i=o.useContext(Vs),a=o.useContext(Xs),{getPrefixCls:l,direction:s}=o.useContext(Ae.E_),c=o.useRef(),u=(0,g.sQ)(t,c),{isFormItemInput:d}=o.useContext(xt.aM),{prefixCls:p,className:f,rootClassName:m,children:h,style:v}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","children","style"]),y=l("radio",p),x="button"===((null==i?void 0:i.optionType)||a)?`${y}-button`:y,[C,w]=Js(y),S=Object.assign({},b),$=o.useContext(yt.Z);i&&(S.name=i.name,S.onChange=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null==i?void 0:i.onChange)||void 0===o||o.call(i,t)},S.checked=e.value===i.value,S.disabled=null!==(n=S.disabled)&&void 0!==n?n:i.disabled),S.disabled=null!==(r=S.disabled)&&void 0!==r?r:$;const O=E()(`${x}-wrapper`,{[`${x}-wrapper-checked`]:S.checked,[`${x}-wrapper-disabled`]:S.disabled,[`${x}-wrapper-rtl`]:"rtl"===s,[`${x}-wrapper-in-form-item`]:d},f,m,w);return C(o.createElement("label",{className:O,style:v,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},o.createElement(zo,Object.assign({},S,{type:"radio",prefixCls:x,ref:u})),void 0!==h?o.createElement("span",null,h):null))},tc=o.forwardRef(ec),nc=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(Ae.E_),i=o.useContext(Be.Z),[a,l]=(0,Ai.Z)(e.defaultValue,{value:e.value}),{prefixCls:s,className:c,rootClassName:u,options:d,buttonStyle:p="outline",disabled:f,children:g,size:m,style:h,id:v,onMouseEnter:b,onMouseLeave:y,onFocus:x,onBlur:C}=e,w=n("radio",s),S=`${w}-group`,[$,O]=Js(w);let k=g;d&&d.length>0&&(k=d.map((e=>"string"==typeof e||"number"==typeof e?o.createElement(tc,{key:e.toString(),prefixCls:w,disabled:f,value:e,checked:a===e},e):o.createElement(tc,{key:`radio-group-value-options-${e.value}`,prefixCls:w,disabled:e.disabled||f,value:e.value,checked:a===e.value,style:e.style},e.label))));const I=m||i,N=E()(S,`${S}-${p}`,{[`${S}-${I}`]:I,[`${S}-rtl`]:"rtl"===r},c,u,O);return $(o.createElement("div",Object.assign({},function(e){return Object.keys(e).reduce(((t,n)=>(!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(t[n]=e[n]),t)),{})}(e),{className:N,style:h,onMouseEnter:b,onMouseLeave:y,onFocus:x,onBlur:C,id:v,ref:t}),o.createElement(Fs,{value:{onChange:t=>{const n=a,o=t.target.value;"value"in e||l(o);const{onChange:r}=e;r&&o!==n&&r(t)},value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},k)))})),oc=o.memo(nc);const rc=(e,t)=>{const{getPrefixCls:n}=o.useContext(Ae.E_),{prefixCls:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls"]),a=n("radio",r);return o.createElement(Us,{value:"button"},o.createElement(tc,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},ic=o.forwardRef(rc),ac=tc;ac.Button=ic,ac.Group=oc,ac.__ANT_RADIO=!0;const lc=ac;var sc=n(112),cc=n(3943),uc=n(9600);function dc(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var pc=n(7893),fc=n(2508),gc=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],mc=function(e,t){var n=e.className,r=e.style,i=e.motion,l=e.motionNodes,s=e.motionType,c=e.onMotionStart,u=e.onMotionEnd,d=e.active,p=e.treeNodeRequiredProps,g=(0,z.Z)(e,gc),m=o.useState(!0),h=(0,a.Z)(m,2),v=h[0],b=h[1],y=o.useContext(sc.k).prefixCls,x=o.useRef(!1),C=function(){x.current||u(),x.current=!0};return(0,o.useEffect)((function(){l&&"hide"===s&&v&&b(!1)}),[l]),(0,o.useEffect)((function(){return l&&c(),function(){l&&C()}}),[]),l?o.createElement(Zn.Z,(0,f.Z)({ref:t,visible:v},i,{motionAppear:"show"===s,onAppearEnd:C,onLeaveEnd:C}),(function(e,t){var n=e.className,r=e.style;return o.createElement("div",{ref:t,className:E()("".concat(y,"-treenode-motion"),n),style:r},l.map((function(e){var t=(0,f.Z)({},(dc(e.data),e.data)),n=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var l=(0,uc.H8)(r,p);return o.createElement(fc.Z,(0,f.Z)({},t,l,{title:n,active:d,data:e.data,key:r,isStart:i,isEnd:a}))})))})):o.createElement(fc.Z,(0,f.Z)({domRef:t,className:n,style:r},g,{active:d}))};mc.displayName="MotionTreeNode";const hc=o.forwardRef(mc);function vc(e,t,n){var o=e.findIndex((function(e){return e.key===n})),r=e[o+1],i=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(i+1,a)}return t.slice(i+1)}var bc=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],yc={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},xc=function(){},Cc="RC_TREE_MOTION_".concat(Math.random()),wc={key:Cc},Sc={key:Cc,level:0,index:0,pos:"0",node:wc,nodes:[wc]},$c={parent:null,children:[],pos:Sc.pos,data:wc,title:null,key:Cc,isStart:[],isEnd:[]};function Ec(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function Oc(e){var t=e.key,n=e.pos;return(0,uc.km)(t,n)}var kc=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),l=e.selectedKeys,s=e.checkedKeys,c=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,p=e.keyEntities,g=e.disabled,m=e.dragging,h=e.dragOverNodeKey,v=e.dropPosition,b=e.motion,y=e.height,x=e.itemHeight,C=e.virtual,w=e.focusable,S=e.activeItem,$=e.focused,E=e.tabIndex,O=e.onKeyDown,k=e.onFocus,I=e.onBlur,N=e.onActiveChange,T=e.onListChangeStart,P=e.onListChangeEnd,D=(0,z.Z)(e,bc),R=o.useRef(null),Z=o.useRef(null);o.useImperativeHandle(t,(function(){return{scrollTo:function(e){R.current.scrollTo(e)},getIndentWidth:function(){return Z.current.offsetWidth}}}));var M=o.useState(i),j=(0,a.Z)(M,2),A=j[0],H=j[1],B=o.useState(r),L=(0,a.Z)(B,2),K=L[0],_=L[1],W=o.useState(r),F=(0,a.Z)(W,2),V=F[0],X=F[1],U=o.useState([]),G=(0,a.Z)(U,2),Y=G[0],q=G[1],Q=o.useState(null),J=(0,a.Z)(Q,2),ee=J[0],te=J[1],ne=o.useRef(r);function oe(){var e=ne.current;_(e),X(e),q([]),te(null),P()}ne.current=r,o.useEffect((function(){H(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var o=t.filter((function(e){return!n.has(e)}));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(A,i);if(null!==e.key)if(e.add){var t=K.findIndex((function(t){return t.key===e.key})),n=Ec(vc(K,r,e.key),C,y,x),o=K.slice();o.splice(t+1,0,$c),X(o),q(n),te("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),l=Ec(vc(r,K,e.key),C,y,x),s=r.slice();s.splice(a+1,0,$c),X(s),q(l),te("hide")}else K!==r&&(_(r),X(r))}),[i,r]),o.useEffect((function(){m||oe()}),[m]);var re=b?V:r,ie={expandedKeys:i,selectedKeys:l,loadedKeys:c,loadingKeys:u,checkedKeys:s,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:v,keyEntities:p};return o.createElement(o.Fragment,null,$&&S&&o.createElement("span",{style:yc,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(S)),o.createElement("div",null,o.createElement("input",{style:yc,disabled:!1===w||g,tabIndex:!1!==w?E:null,onKeyDown:O,onFocus:k,onBlur:I,value:"",onChange:xc,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:Z,className:"".concat(n,"-indent-unit")}))),o.createElement(pc.Z,(0,f.Z)({},D,{data:re,itemKey:Oc,height:y,fullHeight:!1,virtual:C,itemHeight:x,prefixCls:"".concat(n,"-list"),ref:R,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return Oc(e)===Cc}))&&oe()}}),(function(e){var t=e.pos,n=(0,f.Z)({},(dc(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,l=e.isEnd,s=(0,uc.km)(i,t);delete n.key,delete n.children;var c=(0,uc.H8)(s,ie);return o.createElement(hc,(0,f.Z)({},n,c,{title:r,active:!!S&&i===S.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:b,motionNodes:i===Cc?Y:null,motionType:ee,onMotionStart:T,onMotionEnd:oe,treeNodeRequiredProps:ie,onMouseMove:function(){N(null)}}))})))}));kc.displayName="NodeList";const Ic=kc;var Nc=n(7782),Tc=function(e){(0,ot.Z)(n,e);var t=(0,rt.Z)(n);function n(){var e;(0,tt.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,uc.w$)()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=o.createRef(),e.onNodeDragStart=function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=e.props.onDragStart,l=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var s=(0,cc._5)(r,l);e.setState({draggingNodeKey:l,dragChildrenKeys:(0,cc.wA)(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(s),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:(0,uc.F)(n.props)})},e.onNodeDragEnter=function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=o.dragChildrenKeys,l=o.flattenNodes,s=o.indent,c=e.props,u=c.onDragEnter,d=c.onExpand,p=c.allowDrop,f=c.direction,g=n.props,m=g.pos,h=g.eventKey,v=(0,Xo.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==h&&(e.currentMouseOverDroppableNodeKey=h),v){var b=(0,cc.OM)(t,v,n,s,e.dragStartMousePosition,p,l,i,r,f),y=b.dropPosition,x=b.dropLevelOffset,C=b.dropTargetKey,w=b.dropContainerKey,S=b.dropTargetPos,$=b.dropAllowed,E=b.dragOverNodeKey;-1===a.indexOf(C)&&$?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),v.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[m]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var o=(0,Y.Z)(r),a=i[n.props.eventKey];a&&(a.children||[]).length&&(o=(0,cc.L0)(r,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(o),null==d||d(o,{node:(0,uc.F)(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),v.props.eventKey!==C||0!==x?(e.setState({dragOverNodeKey:E,dropPosition:y,dropLevelOffset:x,dropTargetKey:C,dropContainerKey:w,dropTargetPos:S,dropAllowed:$}),null==u||u({event:t,node:(0,uc.F)(n.props),expandedKeys:r})):e.resetDragState()):e.resetDragState()}else e.resetDragState()},e.onNodeDragOver=function(t,n){var o=e.state,r=o.dragChildrenKeys,i=o.flattenNodes,a=o.keyEntities,l=o.expandedKeys,s=o.indent,c=e.props,u=c.onDragOver,d=c.allowDrop,p=c.direction,f=(0,Xo.Z)(e).dragNode;if(f){var g=(0,cc.OM)(t,f,n,s,e.dragStartMousePosition,d,i,a,l,p),m=g.dropPosition,h=g.dropLevelOffset,v=g.dropTargetKey,b=g.dropContainerKey,y=g.dropAllowed,x=g.dropTargetPos,C=g.dragOverNodeKey;-1===r.indexOf(v)&&y&&(f.props.eventKey===v&&0===h?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():m===e.state.dropPosition&&h===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&b===e.state.dropContainerKey&&x===e.state.dropTargetPos&&y===e.state.dropAllowed&&C===e.state.dragOverNodeKey||e.setState({dropPosition:m,dropLevelOffset:h,dropTargetKey:v,dropContainerKey:b,dropTargetPos:x,dropAllowed:y,dragOverNodeKey:C}),null==u||u({event:t,node:(0,uc.F)(n.props)}))}},e.onNodeDragLeave=function(t,n){e.currentMouseOverDroppableNodeKey!==n.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var o=e.props.onDragLeave;null==o||o({event:t,node:(0,uc.F)(n.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,n){var o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==o||o({event:t,node:(0,uc.F)(n.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(t,n){var o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,s=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var d=(0,w.Z)((0,w.Z)({},(0,uc.H8)(s,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===s,data:e.state.keyEntities[s].node}),p=-1!==a.indexOf(s);(0,I.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=(0,cc.yx)(c),g={event:t,node:(0,uc.F)(d),dragNode:e.dragNode?(0,uc.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(f[f.length-1])};r||null==u||u(g),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var o=e.state,r=o.expandedKeys,i=o.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=i.filter((function(e){return e.key===l}))[0],c=(0,uc.F)((0,w.Z)((0,w.Z)({},(0,uc.H8)(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(a?(0,cc._5)(r,l):(0,cc.L0)(r,l)),e.onNodeExpand(t,c)}},e.onNodeClick=function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeDoubleClick=function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeSelect=function(t,n){var o=e.state.selectedKeys,r=e.state,i=r.keyEntities,a=r.fieldNames,l=e.props,s=l.onSelect,c=l.multiple,u=n.selected,d=n[a.key],p=!u,f=(o=p?c?(0,cc.L0)(o,d):[d]:(0,cc._5)(o,d)).map((function(e){var t=i[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:o}),null==s||s(o,{event:"select",selected:p,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,o){var r,i=e.state,a=i.keyEntities,l=i.checkedKeys,s=i.halfCheckedKeys,c=e.props,u=c.checkStrictly,d=c.onCheck,p=n.key,f={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var g=o?(0,cc.L0)(l,p):(0,cc._5)(l,p);r={checked:g,halfChecked:(0,cc._5)(s,p)},f.checkedNodes=g.map((function(e){return a[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:g})}else{var m=(0,Nc.S)([].concat((0,Y.Z)(l),[p]),!0,a),h=m.checkedKeys,v=m.halfCheckedKeys;if(!o){var b=new Set(h);b.delete(p);var y=(0,Nc.S)(Array.from(b),{checked:!1,halfCheckedKeys:v},a);h=y.checkedKeys,v=y.halfCheckedKeys}r=h,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=v,h.forEach((function(e){var t=a[e];if(t){var n=t.node,o=t.pos;f.checkedNodes.push(n),f.checkedNodesPositions.push({node:n,pos:o})}})),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(r,f)},e.onNodeLoad=function(t){var n=t.key,o=new Promise((function(o,r){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,s=i.loadingKeys,c=void 0===s?[]:s,u=e.props,d=u.loadData,p=u.onLoad;return d&&-1===l.indexOf(n)&&-1===c.indexOf(n)?(d(t).then((function(){var r=e.state.loadedKeys,i=(0,cc.L0)(r,n);null==p||p(i,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:i}),e.setState((function(e){return{loadingKeys:(0,cc._5)(e.loadingKeys,n)}})),o()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:(0,cc._5)(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var i=e.state.loadedKeys;(0,I.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,cc.L0)(i,n)}),o()}r(t)})),{loadingKeys:(0,cc.L0)(c,n)}):null}))}));return o.catch((function(){})),o},e.onNodeMouseEnter=function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})},e.onNodeContextMenu=function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null==t||t.apply(void 0,o)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null==t||t.apply(void 0,o)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=e.state,o=n.treeData,r=n.fieldNames,i=(0,uc.oH)(o,t,r);e.setUncontrolledState({expandedKeys:t,flattenNodes:i},!0)},e.onNodeExpand=function(t,n){var o=e.state.expandedKeys,r=e.state,i=r.listChanging,a=r.fieldNames,l=e.props,s=l.onExpand,c=l.loadData,u=n.expanded,d=n[a.key];if(!i){var p=o.indexOf(d),f=!u;if((0,I.ZP)(u&&-1!==p||!u&&-1===p,"Expand state not sync with index check"),o=f?(0,cc.L0)(o,d):(0,cc._5)(o,d),e.setExpandedKeys(o),null==s||s(o,{node:n,expanded:f,nativeEvent:t.nativeEvent}),f&&c){var g=e.onNodeLoad(n);g&&g.then((function(){var t=(0,uc.oH)(e.state.treeData,o,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=e.state.expandedKeys,n=(0,cc._5)(t,d);e.setExpandedKeys(n)}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,o=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),null==o||o(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,o=t.flattenNodes;return null===n?null:o.find((function(e){return e.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,o=n.flattenNodes,r=n.activeKey,i=o.findIndex((function(e){return e.key===r}));-1===i&&t<0&&(i=o.length);var a=o[i=(i+t+o.length)%o.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,o=n.activeKey,r=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,s=l.onKeyDown,c=l.checkable,u=l.selectable;switch(t.which){case Ti.Z.UP:e.offsetActiveKey(-1),t.preventDefault();break;case Ti.Z.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var p=e.getTreeNodeRequiredProps(),f=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,g=(0,uc.F)((0,w.Z)((0,w.Z)({},(0,uc.H8)(o,p)),{},{data:d.data,active:!0}));switch(t.which){case Ti.Z.LEFT:f&&r.includes(o)?e.onNodeExpand({},g):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case Ti.Z.RIGHT:f&&!r.includes(o)?e.onNodeExpand({},g):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case Ti.Z.ENTER:case Ti.Z.SPACE:!c||g.disabled||!1===g.checkable||g.disableCheckbox?c||!u||g.disabled||!1===g.selectable||e.onNodeSelect({},g):e.onNodeCheck({},g,!i.includes(o))}}null==s||s(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(r=!0,a[n]=t[n])})),!r||n&&!i||e.setState((0,w.Z)((0,w.Z)({},a),o))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,nt.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,r=n.focused,i=n.flattenNodes,a=n.keyEntities,l=n.draggingNodeKey,s=n.activeKey,c=n.dropLevelOffset,u=n.dropContainerKey,d=n.dropTargetKey,p=n.dropPosition,g=n.dragOverNodeKey,m=n.indent,h=this.props,v=h.prefixCls,b=h.className,y=h.style,x=h.showLine,w=h.focusable,$=h.tabIndex,O=void 0===$?0:$,k=h.selectable,I=h.showIcon,N=h.icon,T=h.switcherIcon,P=h.draggable,D=h.checkable,R=h.checkStrictly,Z=h.disabled,M=h.motion,j=h.loadData,z=h.filterTreeNode,A=h.height,H=h.itemHeight,B=h.virtual,L=h.titleRender,K=h.dropIndicatorRender,_=h.onContextMenu,W=h.onScroll,F=h.direction,V=h.rootClassName,X=h.rootStyle,U=(0,G.Z)(this.props,{aria:!0,data:!0});return P&&(t="object"===(0,C.Z)(P)?P:"function"==typeof P?{nodeDraggable:P}:{}),o.createElement(sc.k.Provider,{value:{prefixCls:v,selectable:k,showIcon:I,icon:N,switcherIcon:T,draggable:t,draggingNodeKey:l,checkable:D,checkStrictly:R,disabled:Z,keyEntities:a,dropLevelOffset:c,dropContainerKey:u,dropTargetKey:d,dropPosition:p,dragOverNodeKey:g,indent:m,direction:F,dropIndicatorRender:K,loadData:j,filterTreeNode:z,titleRender:L,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},o.createElement("div",{role:"tree",className:E()(v,b,V,(e={},(0,S.Z)(e,"".concat(v,"-show-line"),x),(0,S.Z)(e,"".concat(v,"-focused"),r),(0,S.Z)(e,"".concat(v,"-active-focused"),null!==s),e)),style:X},o.createElement(Ic,(0,f.Z)({ref:this.listRef,prefixCls:v,style:y,data:i,disabled:Z,selectable:k,checkable:!!D,motion:M,dragging:null!==l,height:A,itemHeight:H,virtual:B,focusable:w,focused:r,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_,onScroll:W},this.getTreeNodeRequiredProps(),U))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&t in e||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=(0,uc.w$)(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&((0,I.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,uc.zn)(e.children)),n){r.treeData=n;var l=(0,uc.I8)(n,{fieldNames:a});r.keyEntities=(0,w.Z)((0,S.Z)({},Cc,Sc),l.keyEntities)}var s,c=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?(0,cc.r7)(e.expandedKeys,c):e.expandedKeys;else if(!o&&e.defaultExpandAll){var u=(0,w.Z)({},c);delete u[Cc],r.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,cc.r7)(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var d=(0,uc.oH)(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=d}if(e.selectable&&(i("selectedKeys")?r.selectedKeys=(0,cc.BT)(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=(0,cc.BT)(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?s=(0,cc.E6)(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?s=(0,cc.E6)(e.defaultCheckedKeys)||{}:n&&(s=(0,cc.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var p=s,f=p.checkedKeys,g=void 0===f?[]:f,m=p.halfCheckedKeys,h=void 0===m?[]:m;if(!e.checkStrictly){var v=(0,Nc.S)(g,!0,c);g=v.checkedKeys,h=v.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=h}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(o.Component);Tc.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return o.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1},Tc.TreeNode=fc.Z;const Pc=Tc,Dc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var Rc=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Dc}))};Rc.displayName="HolderOutlined";const Zc=o.forwardRef(Rc);function Mc(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",s={[l]:-n*i+4,["ltr"===a?"right":"left"]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=i+4}return r().createElement("div",{style:s,className:`${o}-drop-indicator`})}const jc={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var zc=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:jc}))};zc.displayName="CaretDownFilled";const Ac=o.forwardRef(zc),Hc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var Bc=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Hc}))};Bc.displayName="FileOutlined";const Lc=o.forwardRef(Bc),Kc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var _c=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Kc}))};_c.displayName="MinusSquareOutlined";const Wc=o.forwardRef(_c),Fc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var Vc=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Fc}))};Vc.displayName="PlusSquareOutlined";const Xc=o.forwardRef(Vc),Uc=new gn.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Gc=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Yc=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),qc=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i}=t,a=(i-t.fontSizeLG)/2,l=t.paddingXS;return{[n]:Object.assign(Object.assign({},(0,Mt.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,Mt.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Uc,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},(0,Mt.oN)(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},Gc(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,marginBlockStart:a},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${i}px`,userSelect:"none"},Yc(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:i/2+"px !important"}}}}})}},Qc=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},Jc=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,i=t.controlHeightSM,a=(0,zt.TS)(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i});return[qc(e,a),Qc(a)]},eu=(0,At.Z)("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,Ao.C2)(`${n}-checkbox`,e)},Jc(n,e),al(e)]})),tu=r().forwardRef(((e,t)=>{const{getPrefixCls:n,direction:i,virtual:a}=r().useContext(Ae.E_),{prefixCls:l,className:s,showIcon:c=!1,showLine:u,switcherIcon:d,blockNode:p=!1,children:f,checkable:g=!1,selectable:m=!0,draggable:h,motion:v}=e,b=n("tree",l),y=n(),x=null!=v?v:Object.assign(Object.assign({},(0,Ct.ZP)(y)),{motionAppear:!1}),C=Object.assign(Object.assign({},e),{checkable:g,selectable:m,showIcon:c,motion:x,blockNode:p,showLine:Boolean(u),dropIndicatorRender:Mc}),[w,S]=eu(b),$=r().useMemo((()=>{if(!h)return!1;let e={};switch(typeof h){case"function":e.nodeDraggable=h;break;case"object":e=Object.assign({},h)}return!1!==e.icon&&(e.icon=e.icon||r().createElement(Zc,null)),e}),[h]);return w(r().createElement(Pc,Object.assign({itemHeight:20,ref:t,virtual:a},C,{prefixCls:b,className:E()({[`${b}-icon-hide`]:!c,[`${b}-block-node`]:p,[`${b}-unselectable`]:!m,[`${b}-rtl`]:"rtl"===i},s,S),direction:i,checkable:g?r().createElement("span",{className:`${b}-checkbox-inner`}):g,selectable:m,switcherIcon:e=>function(e,t,n,r){const{isLeaf:i,expanded:a,loading:l}=n;if(l)return o.createElement(no.Z,{className:`${e}-switcher-loading-icon`});let s;if(r&&"object"==typeof r&&(s=r.showLeafIcon),i){if(!r)return null;if("boolean"!=typeof s&&s){const t="function"==typeof s?s(n):s,o=`${e}-switcher-line-custom-icon`;return dn(t)?fn(t,{className:E()(t.props.className||"",o)}):t}return s?o.createElement(Lc,{className:`${e}-switcher-line-icon`}):o.createElement("span",{className:`${e}-switcher-leaf-line`})}const c=`${e}-switcher-icon`,u="function"==typeof t?t(n):t;return dn(u)?fn(u,{className:E()(u.props.className||"",c)}):u||(r?a?o.createElement(Wc,{className:`${e}-switcher-line-icon`}):o.createElement(Xc,{className:`${e}-switcher-line-icon`}):o.createElement(Ac,{className:c}))}(b,d,e,u),draggable:$}),f))})),nu=tu,ou={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var ru=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:ou}))};ru.displayName="FolderOpenOutlined";const iu=o.forwardRef(ru),au={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var lu=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:au}))};lu.displayName="FolderOutlined";const su=o.forwardRef(lu);var cu;function uu(e,t){e.forEach((function(e){const{key:n,children:o}=e;!1!==t(n,e)&&uu(o||[],t)}))}function du(e,t){const n=(0,Y.Z)(t),o=[];return uu(e,((e,t)=>{const r=n.indexOf(e);return-1!==r&&(o.push(t),n.splice(r,1)),!!n.length})),o}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(cu||(cu={}));var pu=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function fu(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(Lc,null):n?o.createElement(iu,null):o.createElement(su,null)}function gu(e){let{treeData:t,children:n}=e;return t||(0,uc.zn)(n)}const mu=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=pu(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=o.useRef(),s=o.useRef(),[c,u]=o.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,p]=o.useState((()=>(()=>{const{keyEntities:e}=(0,uc.I8)(gu(a));let t;return t=n?Object.keys(e):r?(0,cc.r7)(a.expandedKeys||i||[],e):a.expandedKeys||i,t})()));o.useEffect((()=>{"selectedKeys"in a&&u(a.selectedKeys)}),[a.selectedKeys]),o.useEffect((()=>{"expandedKeys"in a&&p(a.expandedKeys)}),[a.expandedKeys]);const{getPrefixCls:f,direction:g}=o.useContext(Ae.E_),{prefixCls:m,className:h,showIcon:v=!0,expandAction:b="click"}=a,y=pu(a,["prefixCls","className","showIcon","expandAction"]),x=f("tree",m),C=E()(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===g},h);return o.createElement(nu,Object.assign({icon:fu,ref:t,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:x,className:C,expandedKeys:d,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:o}=a,{node:r,nativeEvent:i}=t,{key:c=""}=r,p=gu(a),f=Object.assign(Object.assign({},t),{selected:!0}),g=(null==i?void 0:i.ctrlKey)||(null==i?void 0:i.metaKey),m=null==i?void 0:i.shiftKey;let h;o&&g?(h=e,l.current=c,s.current=h,f.selectedNodes=du(p,h)):o&&m?(h=Array.from(new Set([].concat((0,Y.Z)(s.current||[]),(0,Y.Z)(function(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r}=e;const i=[];let a=cu.None;return o&&o===r?[o]:o&&r?(uu(t,(e=>{if(a===cu.End)return!1;if(function(e){return e===o||e===r}(e)){if(i.push(e),a===cu.None)a=cu.Start;else if(a===cu.Start)return a=cu.End,!1}else a===cu.Start&&i.push(e);return n.includes(e)})),i):[]}({treeData:p,expandedKeys:d,startKey:c,endKey:l.current}))))),f.selectedNodes=du(p,h)):(h=[c],l.current=c,s.current=h,f.selectedNodes=du(p,h)),null===(n=a.onSelect)||void 0===n||n.call(a,h,f),"selectedKeys"in a||u(h)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||p(e),null===(n=a.onExpand)||void 0===n?void 0:n.call(a,e,t)}}))},hu=o.forwardRef(mu),vu=nu;vu.DirectoryTree=hu,vu.TreeNode=fc.Z;const bu=vu;var yu=n(1761);var xu=n(8406);function Cu(e){return!(!e.addonBefore&&!e.addonAfter)}function wu(e){return!!(e.prefix||e.suffix||e.allowClear)}function Su(e,t,n,o){if(n){var r=t;if("click"===t.type){var i=e.cloneNode(!0);return r=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(r)}if(void 0!==o)return r=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=o,void n(r);n(r)}}function $u(e){return null==e?"":String(e)}const Eu=function(e){var t,n=e.inputElement,i=e.prefixCls,a=e.prefix,l=e.suffix,s=e.addonBefore,c=e.addonAfter,u=e.className,d=e.style,p=e.affixWrapperClassName,f=e.groupClassName,g=e.wrapperClassName,m=e.disabled,h=e.readOnly,v=e.focused,b=e.triggerFocus,y=e.allowClear,x=e.value,$=e.handleReset,O=e.hidden,k=e.inputStyle,I=e.classes,N=(0,o.useRef)(null),T=(0,o.cloneElement)(n,{value:x,hidden:O,style:(0,w.Z)((0,w.Z)({},null===(t=n.props)||void 0===t?void 0:t.style),k)});if(wu(e)){var P,D="".concat(i,"-affix-wrapper"),R=E()(D,(P={},(0,S.Z)(P,"".concat(D,"-disabled"),m),(0,S.Z)(P,"".concat(D,"-focused"),v),(0,S.Z)(P,"".concat(D,"-readonly"),h),(0,S.Z)(P,"".concat(D,"-input-with-clear-btn"),l&&y&&x),P),!Cu(e)&&u,p,null==I?void 0:I.affixWrapper),Z=(l||y)&&r().createElement("span",{className:"".concat(i,"-suffix")},function(){var e;if(!y)return null;var t=!m&&!h&&x,n="".concat(i,"-clear-icon"),o="object"===(0,C.Z)(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";return r().createElement("span",{onClick:$,onMouseDown:function(e){return e.preventDefault()},className:E()(n,(e={},(0,S.Z)(e,"".concat(n,"-hidden"),!t),(0,S.Z)(e,"".concat(n,"-has-suffix"),!!l),e)),role:"button",tabIndex:-1},o)}(),l);T=r().createElement("span",{className:R,style:d,hidden:!Cu(e)&&O,onClick:function(e){var t;null!==(t=N.current)&&void 0!==t&&t.contains(e.target)&&(null==b||b())},ref:N},a&&r().createElement("span",{className:"".concat(i,"-prefix")},a),(0,o.cloneElement)(n,{style:null!=k?k:null,value:x,hidden:null}),Z)}if(Cu(e)){var M="".concat(i,"-group"),j="".concat(M,"-addon"),z=E()("".concat(i,"-wrapper"),M,g,null==I?void 0:I.wrapper),A=E()("".concat(i,"-group-wrapper"),u,f,null==I?void 0:I.group);return r().createElement("span",{className:A,style:d,hidden:O},r().createElement("span",{className:z},s&&r().createElement("span",{className:j},s),(0,o.cloneElement)(T,{style:null!=k?k:null,hidden:null}),c&&r().createElement("span",{className:j},c)))}return T};var Ou=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName","classes"],ku=(0,o.forwardRef)((function(e,t){var n=e.autoComplete,i=e.onChange,l=e.onFocus,s=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,d=e.prefixCls,p=void 0===d?"rc-input":d,g=e.disabled,m=e.htmlSize,h=e.className,v=e.maxLength,b=e.suffix,y=e.showCount,x=e.type,w=void 0===x?"text":x,$=e.inputClassName,O=e.classes,k=(0,z.Z)(e,Ou),I=(0,Ai.Z)(e.defaultValue,{value:e.value}),N=(0,a.Z)(I,2),T=N[0],P=N[1],D=(0,o.useState)(!1),R=(0,a.Z)(D,2),Z=R[0],M=R[1],j=(0,o.useRef)(null),A=function(e){j.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}(j.current,e)};(0,o.useImperativeHandle)(t,(function(){return{focus:A,blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=j.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.current}})),(0,o.useEffect)((function(){M((function(e){return(!e||!g)&&e}))}),[g]);var H;return r().createElement(Eu,(0,f.Z)({},k,{prefixCls:p,className:h,inputElement:(H=(0,ze.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","classes","wrapperClassName","htmlSize"]),r().createElement("input",(0,f.Z)({autoComplete:n},H,{onChange:function(t){void 0===e.value&&P(t.target.value),j.current&&Su(j.current,t,i)},onFocus:function(e){M(!0),null==l||l(e)},onBlur:function(e){M(!1),null==s||s(e)},onKeyDown:function(e){c&&"Enter"===e.key&&c(e),null==u||u(e)},className:E()(p,(0,S.Z)({},"".concat(p,"-disabled"),g),$,null==O?void 0:O.input,!Cu(e)&&!wu(e)&&h),ref:j,size:m,type:w}))),handleReset:function(e){P(""),A(),j.current&&Su(j.current,e,i)},value:$u(T),focused:Z,triggerFocus:A,suffix:function(){var e=Number(v)>0;if(b||y){var t=$u(T),n=(0,Y.Z)(t).length,o="object"===(0,C.Z)(y)?y.formatter({value:t,count:n,maxLength:v}):"".concat(n).concat(e?" / ".concat(v):"");return r().createElement(r().Fragment,null,!!y&&r().createElement("span",{className:E()("".concat(p,"-show-count-suffix"),(0,S.Z)({},"".concat(p,"-show-count-has-suffix"),!!b))},o),b)}return null}(),disabled:g,classes:O}))}));const Iu=ku;function Nu(e,t){const n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,o.useEffect)((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}const Tu=(0,o.forwardRef)(((e,t)=>{const{prefixCls:n,bordered:i=!0,status:a,size:l,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:p,addonAfter:f,addonBefore:m,className:h,rootClassName:v,onChange:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange"]),{getPrefixCls:x,direction:C,input:w}=r().useContext(Ae.E_),S=x("input",n),$=(0,o.useRef)(null),[O,k]=en(S),{compactSize:I,compactItemClassnames:N}=(0,$t.ri)(S,C),T=r().useContext(Be.Z),P=I||l||T,D=r().useContext(yt.Z),R=null!=s?s:D,{status:Z,hasFeedback:M,feedbackIcon:j}=(0,o.useContext)(xt.aM),z=(0,wt.F)(Z,a),A=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!M,H=(0,o.useRef)(A);(0,o.useEffect)((()=>{A&&H.current,H.current=A}),[A]);const B=Nu($,!0),L=(M||d)&&r().createElement(r().Fragment,null,d,M&&j);let K;return"object"==typeof p&&(null==p?void 0:p.clearIcon)?K=p:p&&(K={clearIcon:r().createElement(xu.Z,null)}),O(r().createElement(Iu,Object.assign({ref:(0,g.sQ)(t,$),prefixCls:S,autoComplete:null==w?void 0:w.autoComplete},y,{disabled:R,onBlur:e=>{B(),null==c||c(e)},onFocus:e=>{B(),null==u||u(e)},suffix:L,allowClear:K,className:E()(h,v,N),onChange:e=>{B(),null==b||b(e)},addonAfter:f&&r().createElement($t.BR,null,r().createElement(xt.Ux,{override:!0,status:!0},f)),addonBefore:m&&r().createElement($t.BR,null,r().createElement(xt.Ux,{override:!0,status:!0},m)),classes:{input:E()({[`${S}-sm`]:"small"===P,[`${S}-lg`]:"large"===P,[`${S}-rtl`]:"rtl"===C,[`${S}-borderless`]:!i},!A&&(0,wt.Z)(S,z),k),affixWrapper:E()({[`${S}-affix-wrapper-sm`]:"small"===P,[`${S}-affix-wrapper-lg`]:"large"===P,[`${S}-affix-wrapper-rtl`]:"rtl"===C,[`${S}-affix-wrapper-borderless`]:!i},(0,wt.Z)(`${S}-affix-wrapper`,z,M),k),wrapper:E()({[`${S}-group-rtl`]:"rtl"===C},k),group:E()({[`${S}-group-wrapper-sm`]:"small"===P,[`${S}-group-wrapper-lg`]:"large"===P,[`${S}-group-wrapper-rtl`]:"rtl"===C,[`${S}-group-wrapper-disabled`]:R},(0,wt.Z)(`${S}-group-wrapper`,z,M),k)}})))})),Pu=Tu,Du={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var Ru=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Du}))};Ru.displayName="EyeInvisibleOutlined";const Zu=o.forwardRef(Ru),Mu={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 ju=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Mu}))};ju.displayName="EyeOutlined";const zu=o.forwardRef(ju);const Au=e=>e?o.createElement(zu,null):o.createElement(Zu,null),Hu={click:"onClick",hover:"onMouseOver"},Bu=o.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[i,a]=(0,o.useState)((()=>!!r&&n.visible)),l=(0,o.useRef)(null);o.useEffect((()=>{r&&a(n.visible)}),[r,n]);const s=Nu(l),c=()=>{const{disabled:t}=e;t||(i&&s(),a((e=>{var t;const o=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,o)),o})))},{className:u,prefixCls:d,inputPrefixCls:p,size:f}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=o.useContext(Ae.E_),v=h("input",p),b=h("input-password",d),y=n&&(t=>{const{action:n="click",iconRender:r=Au}=e,a=Hu[n]||"",l=r(i),s={[a]:c,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(l)?l:o.createElement("span",null,l),s)})(b),x=E()(b,u,{[`${b}-${f}`]:!!f}),C=Object.assign(Object.assign({},(0,ze.Z)(m,["suffix","iconRender","visibilityToggle"])),{type:i?"text":"password",className:x,prefixCls:v,suffix:y});return f&&(C.size=f),o.createElement(Pu,Object.assign({ref:(0,g.sQ)(t,l)},C))})),Lu=Bu;const Ku=o.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:f,onCompositionStart:m,onCompositionEnd:h}=e,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:y}=o.useContext(Ae.E_),x=o.useContext(Be.Z),C=o.useRef(!1),w=b("input-search",n),S=b("input",r),{compactSize:$}=(0,$t.ri)(w,y),O=$||a||x,k=o.useRef(null),I=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},N=e=>{var t,n;p&&p(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},T="boolean"==typeof s?o.createElement(yu.Z,null):null,P=`${w}-button`;let D;const R=s||{},Z=R.type&&!0===R.type.__ANT_BUTTON;D=Z||"button"===R.type?fn(R,Object.assign({onMouseDown:I,onClick:e=>{var t,n;null===(n=null===(t=null==R?void 0:R.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),N(e)},key:"enterButton"},Z?{className:P,size:O}:{})):o.createElement(Mo,{className:P,type:s?"primary":void 0,size:O,disabled:d,key:"enterButton",onMouseDown:I,onClick:N,loading:u,icon:T},s),c&&(D=[D,fn(c,{key:"addonAfter"})]);const M=E()(w,{[`${w}-rtl`]:"rtl"===y,[`${w}-${O}`]:!!O,[`${w}-with-button`]:!!s},i);return o.createElement(Pu,Object.assign({ref:(0,g.sQ)(k,t),onPressEnter:e=>{C.current||u||N(e)}},v,{size:O,onCompositionStart:e=>{C.current=!0,null==m||m(e)},onCompositionEnd:e=>{C.current=!1,null==h||h(e)},prefixCls:S,addonAfter:D,suffix:l,onChange:e=>{e&&e.target&&"click"===e.type&&p&&p(e.target.value,e),f&&f(e)},className:M,disabled:d}))})),_u=Ku;var Wu,Fu=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Vu={};var Xu=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Uu=o.forwardRef((function(e,t){var n=e,r=n.prefixCls,i=(n.onPressEnter,n.defaultValue),l=n.value,c=n.autoSize,u=n.onResize,d=n.className,p=n.style,g=n.disabled,m=n.onChange,h=(n.onInternalAutoSize,(0,z.Z)(n,Xu)),v=(0,Ai.Z)(i,{value:l,postState:function(e){return null!=e?e:""}}),b=(0,a.Z)(v,2),y=b[0],x=b[1],$=o.useRef();o.useImperativeHandle(t,(function(){return{textArea:$.current}}));var O=o.useMemo((function(){return c&&"object"===(0,C.Z)(c)?[c.minRows,c.maxRows]:[]}),[c]),k=(0,a.Z)(O,2),I=k[0],N=k[1],T=!!c,P=o.useState(2),D=(0,a.Z)(P,2),R=D[0],Z=D[1],M=o.useState(),j=(0,a.Z)(M,2),A=j[0],H=j[1],B=function(){Z(0)};(0,s.Z)((function(){T&&B()}),[l,I,N,T]),(0,s.Z)((function(){if(0===R)Z(1);else if(1===R){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Wu||((Wu=document.createElement("textarea")).setAttribute("tab-index","-1"),Wu.setAttribute("aria-hidden","true"),document.body.appendChild(Wu)),e.getAttribute("wrap")?Wu.setAttribute("wrap",e.getAttribute("wrap")):Wu.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Vu[n])return Vu[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l={sizingStyle:Fu.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(Vu[n]=l),l}(e,t),i=r.paddingSize,a=r.borderSize,l=r.boxSizing,s=r.sizingStyle;Wu.setAttribute("style","".concat(s,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),Wu.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,p=Wu.scrollHeight;if("border-box"===l?p+=a:"content-box"===l&&(p-=i),null!==n||null!==o){Wu.value=" ";var f=Wu.scrollHeight-i;null!==n&&(u=f*n,"border-box"===l&&(u=u+i+a),p=Math.max(u,p)),null!==o&&(d=f*o,"border-box"===l&&(d=d+i+a),c=p>d?"":"hidden",p=Math.min(d,p))}var g={height:p,overflowY:c,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}($.current,!1,I,N);Z(2),H(e)}else!function(){try{if(document.activeElement===$.current){var e=$.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;$.current.setSelectionRange(t,n),$.current.scrollTop=o}}catch(e){}}()}),[R]);var L=o.useRef(),K=function(){Sn.Z.cancel(L.current)};o.useEffect((function(){return K}),[]);var W=T?A:null,F=(0,w.Z)((0,w.Z)({},p),W);return 0!==R&&1!==R||(F.overflowY="hidden",F.overflowX="hidden"),o.createElement(_.Z,{onResize:function(e){2===R&&(null==u||u(e),c&&(K(),L.current=(0,Sn.Z)((function(){B()}))))},disabled:!(c||u)},o.createElement("textarea",(0,f.Z)({},h,{ref:$,style:F,className:E()(r,d,(0,S.Z)({},"".concat(r,"-disabled"),g)),disabled:g,value:y,onChange:function(e){x(e.target.value),null==m||m(e)}})))}));const Gu=Uu;var Yu=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled"];function qu(e,t){return(0,Y.Z)(e||"").slice(0,t).join("")}function Qu(e,t,n,o){var r=n;return e?r=qu(n,o):(0,Y.Z)(t||"").length<n.length&&(0,Y.Z)(n||"").length>o&&(r=t),r}var Ju=r().forwardRef((function(e,t){var n=e.defaultValue,i=e.value,l=e.onFocus,s=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,p=e.onCompositionStart,g=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,b=e.classes,y=e.showCount,x=e.className,w=e.style,S=e.disabled,$=(0,z.Z)(e,Yu),O=(0,Ai.Z)(n,{value:i,defaultValue:n}),k=(0,a.Z)(O,2),I=k[0],N=k[1],T=(0,o.useRef)(null),P=r().useState(!1),D=(0,a.Z)(P,2),R=D[0],Z=D[1],M=r().useState(!1),j=(0,a.Z)(M,2),A=j[0],H=j[1],B=r().useRef(),L=r().useRef(0),K=function(){T.current.textArea.focus()};(0,o.useImperativeHandle)(t,(function(){return{resizableTextArea:T.current,focus:K,blur:function(){T.current.textArea.blur()}}})),(0,o.useEffect)((function(){Z((function(e){return!S&&e}))}),[S]);var _=Number(d)>0,W=$u(I);!A&&_&&null==i&&(W=qu(W,d));var F=r().createElement(Eu,{value:W,allowClear:u,handleReset:function(e){N(""),K(),Su(T.current.textArea,e,c)},suffix:m,prefixCls:v,classes:{affixWrapper:null==b?void 0:b.affixWrapper},disabled:S,focused:R,style:w,inputStyle:{resize:null==w?void 0:w.resize},inputElement:r().createElement(Gu,(0,f.Z)({},$,{onKeyDown:function(e){var t=$.onPressEnter,n=$.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){var t=e.target.value;!A&&_&&(t=Qu(e.target.selectionStart>=d+1||e.target.selectionStart===t.length||!e.target.selectionStart,I,t,d)),N(t),Su(e.currentTarget,e,c,t)},onFocus:function(e){Z(!0),null==l||l(e)},onBlur:function(e){Z(!1),null==s||s(e)},onCompositionStart:function(e){H(!0),B.current=I,L.current=e.currentTarget.selectionStart,null==p||p(e)},onCompositionEnd:function(e){H(!1);var t,n=e.currentTarget.value;_&&(n=Qu(L.current>=d+1||L.current===(null===(t=B.current)||void 0===t?void 0:t.length),B.current,n,d)),n!==I&&(N(n),Su(e.currentTarget,e,c,n)),null==g||g(e)},className:E()(y?"":x,null==b?void 0:b.textarea),style:!y&&w,disabled:S,prefixCls:v,ref:T}))});if(y){var V,X=(0,Y.Z)(W).length;return V="object"===(0,C.Z)(y)?y.formatter({value:W,count:X,maxLength:d}):"".concat(X).concat(_?" / ".concat(d):""),r().createElement("div",{hidden:$.hidden,className:E()("".concat(v,"-show-count"),x,null==b?void 0:b.countWrapper),style:w,"data-count":V},F,r().createElement("span",{className:"".concat(v,"-data-count")},V))}return F}));const ed=Ju;const td=(0,o.forwardRef)(((e,t)=>{var{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:l,allowClear:s}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","size","disabled","status","allowClear"]);const{getPrefixCls:u,direction:d}=o.useContext(Ae.E_),p=o.useContext(Be.Z),f=i||p,g=o.useContext(yt.Z),m=null!=a?a:g,{status:h,hasFeedback:v,feedbackIcon:b}=o.useContext(xt.aM),y=(0,wt.F)(h,l),x=o.useRef(null);o.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=x.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=x.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.blur()}}}));const C=u("input",n);let w;"object"==typeof s&&(null==s?void 0:s.clearIcon)?w=s:s&&(w={clearIcon:o.createElement(xu.Z,null)});const[S,$]=en(C);return S(o.createElement(ed,Object.assign({},c,{disabled:m,allowClear:w,classes:{affixWrapper:E()(`${C}-textarea-affix-wrapper`,{[`${C}-affix-wrapper-rtl`]:"rtl"===d,[`${C}-affix-wrapper-borderless`]:!r,[`${C}-affix-wrapper-sm`]:"small"===f,[`${C}-affix-wrapper-lg`]:"large"===f},(0,wt.Z)(`${C}-affix-wrapper`,y),$),countWrapper:E()(`${C}-textarea`,`${C}-textarea-show-count`,{[`${C}-textarea-show-count-rtl`]:"rtl"===d},$),textarea:E()({[`${C}-borderless`]:!r,[`${C}-sm`]:"small"===f,[`${C}-lg`]:"large"===f},(0,wt.Z)(C,y),$)},prefixCls:C,suffix:v&&o.createElement("span",{className:`${C}-textarea-suffix`},b),ref:x})))})),nd=td,od=Pu;od.Group=e=>{const{getPrefixCls:t,direction:n}=(0,o.useContext)(Ae.E_),{prefixCls:r,className:i=""}=e,a=t("input-group",r),l=t("input"),[s,c]=en(l),u=E()(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},c,i),d=(0,o.useContext)(xt.aM),p=(0,o.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return s(o.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(xt.aM.Provider,{value:p},e.children)))},od.Search=_u,od.TextArea=nd,od.Password=Lu;const rd=od,id=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:i,locale:a}=e;return r?o.createElement("div",{className:`${i}-filter-dropdown-search`},o.createElement(rd,{prefix:o.createElement(yu.Z,null),placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${i}-filter-dropdown-search-input`})):null},ad=e=>{const{keyCode:t}=e;t===Ti.Z.ENTER&&e.stopPropagation()},ld=e=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:ad},e.children);function sd(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function cd(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const s=String(e.value);if(e.children)return{key:s||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:cd({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l})};const c=i?Vo:lc,u={key:void 0!==e.value?s:t,label:o.createElement(o.Fragment,null,o.createElement(c,{checked:r.includes(s)}),o.createElement("span",null,e.text))};return a.trim()?"function"==typeof l?l(a,e)?u:null:sd(a,e.text)?u:null:u}))}const ud=function(e){var t,n;const{tablePrefixCls:r,prefixCls:i,column:a,dropdownPrefixCls:l,columnKey:s,filterMultiple:u,filterMode:d="menu",filterSearch:p=!1,filterState:f,triggerFilter:g,locale:m,children:h,getPopupContainer:v}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:x,defaultFilteredValue:C,filterDropdownVisible:w,onFilterDropdownVisibleChange:S}=a,[$,O]=o.useState(!1),k=!(!f||!(null===(t=f.filteredKeys)||void 0===t?void 0:t.length)&&!f.forceFiltered),I=e=>{O(e),null==y||y(e),null==S||S(e)},N=null!==(n=null!=b?b:w)&&void 0!==n?n:$,T=null==f?void 0:f.filteredKeys,[P,D]=function(e){const t=o.useRef(e),n=Le();return[()=>t.current,e=>{t.current=e,n()}]}(T||[]),R=e=>{let{selectedKeys:t}=e;D(t)},Z=(e,t)=>{let{node:n,checked:o}=t;R(u?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};o.useEffect((()=>{$&&R({selectedKeys:T||[]})}),[T]);const[M,j]=o.useState([]),z=e=>{j(e)},[A,H]=o.useState(""),B=e=>{const{value:t}=e.target;H(t)};o.useEffect((()=>{$||H("")}),[$]);const L=e=>{const t=e&&e.length?e:null;return null!==t||f&&f.filteredKeys?(0,c.Z)(t,null==f?void 0:f.filteredKeys,!0)?null:void g({column:a,key:s,filteredKeys:t}):null},K=()=>{I(!1),L(P())},_=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&L([]),t&&I(!1),H(""),D(x?(C||[]).map((e=>String(e))):[])},W=E()({[`${l}-menu-without-submenu`]:(F=a.filters||[],!F.some((e=>{let{children:t}=e;return t})))});var F;const V=e=>{if(e.target.checked){const e=fd(null==a?void 0:a.filters).map((e=>String(e)));D(e)}else D([])},X=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:t};return e.children&&(o.children=X({filters:e.children})),o}))},U=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>U(e))))||[]})};let G,Y;if("function"==typeof a.filterDropdown)G=a.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:P(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&I(!1),L(P())},clearFilters:_,filters:a.filters,visible:N,close:()=>{I(!1)}});else if(a.filterDropdown)G=a.filterDropdown;else{const e=P()||[],t=()=>0===(a.filters||[]).length?o.createElement(_s.Z,{image:_s.Z.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===d?o.createElement(o.Fragment,null,o.createElement(id,{filterSearch:p,value:A,onChange:B,tablePrefixCls:r,locale:m}),o.createElement("div",{className:`${r}-filter-dropdown-tree`},u?o.createElement(Vo,{checked:e.length===fd(a.filters).length,indeterminate:e.length>0&&e.length<fd(a.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:V},m.filterCheckall):null,o.createElement(bu,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${l}-menu`,onCheck:Z,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:X({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:A.trim()?e=>"function"==typeof p?p(A,U(e)):sd(A,e.title):void 0}))):o.createElement(o.Fragment,null,o.createElement(id,{filterSearch:p,value:A,onChange:B,tablePrefixCls:r,locale:m}),o.createElement(Es,{selectable:!0,multiple:u,prefixCls:`${l}-menu`,className:W,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:z,items:cd({filters:a.filters||[],filterSearch:p,prefixCls:i,filteredKeys:P(),filterMultiple:u,searchValue:A})})),n=()=>x?(0,c.Z)((C||[]).map((e=>String(e))),e,!0):0===e.length;G=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:`${i}-dropdown-btns`},o.createElement(Mo,{type:"link",size:"small",disabled:n(),onClick:()=>_()},m.filterReset),o.createElement(Mo,{type:"primary",size:"small",onClick:K},m.filterConfirm)))}a.filterDropdown&&(G=o.createElement(Il,{selectable:void 0},G)),Y="function"==typeof a.filterIcon?a.filterIcon(k):a.filterIcon?a.filterIcon:o.createElement(Tn,null);const{direction:q}=o.useContext(Ae.E_);return o.createElement("div",{className:`${i}-column`},o.createElement("span",{className:`${r}-column-title`},h),o.createElement(Ks,{dropdownRender:()=>o.createElement(ld,{className:`${i}-dropdown`},G),trigger:["click"],open:N,onOpenChange:e=>{e&&void 0!==T&&D(T||[]),I(e),e||a.filterDropdown||K()},getPopupContainer:v,placement:"rtl"===q?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:E()(`${i}-trigger`,{active:k}),onClick:e=>{e.stopPropagation()}},Y)))};function dd(e,t,n){let o=[];return(e||[]).forEach(((e,r)=>{var i;const a=On(r,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:En(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:En(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat((0,Y.Z)(o),(0,Y.Z)(dd(e.children,t,a))))})),o}function pd(e,t,n,r,i,a,l,s){return n.map(((n,c)=>{const u=On(c,s),{filterMultiple:d=!0,filterMode:p,filterSearch:f}=n;let g=n;if(g.filters||g.filterDropdown){const s=En(g,u),c=r.find((e=>{let{key:t}=e;return s===t}));g=Object.assign(Object.assign({},g),{title:r=>o.createElement(ud,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:c,filterMultiple:d,filterMode:p,filterSearch:f,triggerFilter:a,locale:i,getPopupContainer:l},kn(n.title,r))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:pd(e,t,g.children,r,i,a,l,u)})),g}))}function fd(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat((0,Y.Z)(t),(0,Y.Z)(fd(o))))})),t}function gd(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;const{filters:i,filterDropdown:a}=r;if(a)t[n]=o||null;else if(Array.isArray(o)){const e=fd(i);t[n]=e.filter((e=>o.includes(String(e))))}else t[n]=null})),t}function md(e,t){return t.reduce(((e,t)=>{const{column:{onFilter:n,filters:o},filteredKeys:r}=t;return n&&r&&r.length?e.filter((e=>r.some((t=>{const r=fd(o),i=r.findIndex((e=>String(e)===String(t))),a=-1!==i?r[i]:t;return n(a,e)})))):e}),e)}const hd=e=>e.flatMap((e=>"children"in e?[e].concat((0,Y.Z)(hd(e.children||[]))):[e])),vd=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:l}=e;const s=hd(r||[]),[c,u]=o.useState((()=>dd(s,!0))),d=o.useMemo((()=>{const e=dd(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1})),t){const e=(s||[]).map(((e,t)=>En(e,On(t))));return c.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,c]),p=o.useMemo((()=>gd(d)),[d]),f=e=>{const t=d.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),u(t),i(gd(t),t)};return[e=>pd(t,n,e,d,l,f,a),d,p]};const bd=10,yd=function(e,t,n){const r=n&&"object"==typeof n?n:{},{total:i=0}=r,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["total"]),[l,s]=(0,o.useState)((()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:bd}))),c=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const o=n[t];void 0!==o&&(e[t]=o)}))}return e}(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(e,t)=>{s({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),d(e,o),t(e,o||(null==c?void 0:c.pageSize))}}),d]};var xd=n(865);const Cd={},wd="SELECT_ALL",Sd="SELECT_INVERT",$d="SELECT_NONE",Ed=[];function Od(e,t){let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,Y.Z)(n),(0,Y.Z)(Od(e,t[e]))))})),n}const kd=function(e,t){const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,onChange:l,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:p,columnWidth:f,type:g,selections:m,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:x,data:C,pageData:w,getRecordByKey:S,getRowKey:$,expandType:E,childrenColumnName:O,locale:k,getPopupContainer:I}=e,[N,T]=(0,Ai.Z)(r||i||Ed,{value:r}),P=o.useRef(new Map),D=(0,o.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=S(e);!n&&P.current.has(e)&&(n=P.current.get(e)),t.set(e,n)})),P.current=t}}),[S,n]);o.useEffect((()=>{D(N)}),[N]);const{keyEntities:R}=(0,o.useMemo)((()=>y?{keyEntities:null}:(0,uc.I8)(C,{externalGetKey:$,childrenPropName:O})),[C,$,y,O]),Z=(0,o.useMemo)((()=>Od(O,w)),[w,O]),M=(0,o.useMemo)((()=>{const e=new Map;return Z.forEach(((t,n)=>{const o=$(t,n),r=(a?a(t):null)||{};e.set(o,r)})),e}),[Z,$,a]),j=(0,o.useCallback)((e=>{var t;return!!(null===(t=M.get($(e)))||void 0===t?void 0:t.disabled)}),[M,$]),[z,A]=(0,o.useMemo)((()=>{if(y)return[N||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=(0,Nc.S)(N,!0,R,j);return[e||[],t]}),[N,y,R,j]),H=(0,o.useMemo)((()=>{const e="radio"===g?z.slice(0,1):z;return new Set(e)}),[z,g]),B=(0,o.useMemo)((()=>"radio"===g?new Set:new Set(A)),[A,g]),[L,K]=(0,o.useState)(null);o.useEffect((()=>{t||T(Ed)}),[!!t]);const _=(0,o.useCallback)(((e,t)=>{let o,r;D(e),n?(o=e,r=e.map((e=>P.current.get(e)))):(o=[],r=[],e.forEach((e=>{const t=S(e);void 0!==t&&(o.push(e),r.push(t))}))),T(o),null==l||l(o,r,{type:t})}),[T,S,l,n]),W=(0,o.useCallback)(((e,t,n,o)=>{if(s){const r=n.map((e=>S(e)));s(S(e),t,r,o)}_(n,"single")}),[s,S,_]),F=(0,o.useMemo)((()=>!m||b?null:(!0===m?[wd,Sd,$d]:m).map((e=>e===wd?{key:"all",text:k.selectionAll,onSelect(){_(C.map(((e,t)=>$(e,t))).filter((e=>{const t=M.get(e);return!(null==t?void 0:t.disabled)||H.has(e)})),"all")}}:e===Sd?{key:"invert",text:k.selectInvert,onSelect(){const e=new Set(H);w.forEach(((t,n)=>{const o=$(t,n),r=M.get(o);(null==r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))}));const t=Array.from(e);u&&u(t),_(t,"invert")}}:e===$d?{key:"none",text:k.selectNone,onSelect(){null==d||d(),_(Array.from(H).filter((e=>{const t=M.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(r)),K(null)}})))),[m,H,w,$,u,_]),V=(0,o.useCallback)((e=>{var n;if(!t)return e.filter((e=>e!==Cd));let r=(0,Y.Z)(e);const i=new Set(H),a=Z.map($).filter((e=>!M.get(e).disabled)),l=a.every((e=>i.has(e))),s=a.some((e=>i.has(e))),u=()=>{const e=[];l?a.forEach((t=>{i.delete(t),e.push(t)})):a.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==c||c(!l,t.map((e=>S(e))),e.map((e=>S(e)))),_(t,"all"),K(null)};let d,m;if("radio"!==g){let e;if(F){const t={getPopupContainer:I,items:F.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:n||t,onClick:()=>{null==r||r(a)},label:o}}))};e=o.createElement("div",{className:`${x}-selection-extra`},o.createElement(Ks,{menu:t,getPopupContainer:I},o.createElement("span",null,o.createElement(xd.Z,null))))}const t=Z.map(((e,t)=>{const n=$(e,t),o=M.get(n)||{};return Object.assign({checked:i.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===Z.length,r=n&&t.every((e=>{let{checked:t}=e;return t})),c=n&&t.some((e=>{let{checked:t}=e;return t}));d=!b&&o.createElement("div",{className:`${x}-selection`},o.createElement(Vo,{checked:n?r:!!Z.length&&l,indeterminate:n?!r&&c:!l&&s,onChange:u,disabled:0===Z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(m="radio"===g?(e,t,n)=>{const r=$(t,n),a=i.has(r);return{node:o.createElement(lc,Object.assign({},M.get(r),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(r)||W(r,!0,[r],e.nativeEvent)}})),checked:a}}:(e,t,n)=>{var r;const l=$(t,n),s=i.has(l),c=B.has(l),u=M.get(l);let d;return d="nest"===E?c:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:o.createElement(Vo,Object.assign({},u,{indeterminate:d,checked:s,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t;let o=-1,r=-1;if(n&&y){const e=new Set([L,l]);a.some(((t,n)=>{if(e.has(t)){if(-1!==o)return r=n,!0;o=n}return!1}))}if(-1!==r&&o!==r&&y){const e=a.slice(o,r+1),t=[];s?e.forEach((e=>{i.has(e)&&(t.push(e),i.delete(e))})):e.forEach((e=>{i.has(e)||(t.push(e),i.add(e))}));const n=Array.from(i);null==p||p(!s,n.map((e=>S(e))),t.map((e=>S(e)))),_(n,"multiple")}else{const e=z;if(y){const n=s?(0,cc._5)(e,l):(0,cc.L0)(e,l);W(l,!s,n,t)}else{const n=(0,Nc.S)([].concat((0,Y.Z)(e),[l]),!0,R,j),{checkedKeys:o,halfCheckedKeys:r}=n;let i=o;if(s){const e=new Set(o);e.delete(l),i=(0,Nc.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},R,j).checkedKeys}W(l,!s,i,t)}}K(s?null:l)}})),checked:s}},!r.includes(Cd))if(0===r.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[ae])||void 0===t?void 0:t.columnType)}))){const[e,...t]=r;r=[e,Cd].concat((0,Y.Z)(t))}else r=[Cd].concat((0,Y.Z)(r));const C=r.indexOf(Cd);r=r.filter(((e,t)=>e!==Cd||t===C));const w=r[C-1],O=r[C+1];let k=h;void 0===k&&(void 0!==(null==O?void 0:O.fixed)?k=O.fixed:void 0!==(null==w?void 0:w.fixed)&&(k=w.fixed)),k&&w&&"EXPAND_COLUMN"===(null===(n=w[ae])||void 0===n?void 0:n.columnType)&&void 0===w.fixed&&(w.fixed=k);const N={fixed:k,width:f,className:`${x}-selection-column`,title:t.columnTitle||d,render:(e,t,n)=>{const{node:o,checked:r}=m(e,t,n);return v?v(r,t,n,o):o},[ae]:{className:`${x}-selection-col`}};return r.map((e=>e===Cd?N:e))}),[$,Z,t,z,H,B,f,F,E,L,M,p,W,j]);return[V,H]},Id={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var Nd=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Id}))};Nd.displayName="CaretDownOutlined";const Td=o.forwardRef(Nd),Pd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var Dd=function(e,t){return o.createElement(Xe.Z,(0,w.Z)((0,w.Z)({},e),{},{ref:t,icon:Pd}))};Dd.displayName="CaretUpOutlined";const Rd=o.forwardRef(Dd),Zd="ascend",Md="descend";function jd(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function zd(e){return"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare}function Ad(e,t,n){let o=[];function r(e,t){o.push({column:e,key:En(e,t),multiplePriority:jd(e),sortOrder:e.sortOrder})}return(e||[]).forEach(((e,i)=>{const a=On(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat((0,Y.Z)(o),(0,Y.Z)(Ad(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:En(e,a),multiplePriority:jd(e),sortOrder:e.defaultSortOrder}))})),o}function Hd(e,t,n,r,i,a,l,s){return(t||[]).map(((t,c)=>{const u=On(c,s);let d=t;if(d.sorter){const s=d.sortDirections||i,c=void 0===d.showSorterTooltip?l:d.showSorterTooltip,p=En(d,u),f=n.find((e=>{let{key:t}=e;return t===p})),g=f?f.sortOrder:null,m=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(s,g),h=s.includes(Zd)&&o.createElement(Rd,{className:E()(`${e}-column-sorter-up`,{active:g===Zd})}),v=s.includes(Md)&&o.createElement(Td,{className:E()(`${e}-column-sorter-down`,{active:g===Md})}),{cancelSort:b,triggerAsc:y,triggerDesc:x}=a||{};let C=b;m===Md?C=x:m===Zd&&(C=y);const w="object"==typeof c?c:{title:C};d=Object.assign(Object.assign({},d),{className:E()(d.className,{[`${e}-column-sort`]:g}),title:n=>{const r=o.createElement("div",{className:`${e}-column-sorters`},o.createElement("span",{className:`${e}-column-title`},kn(t.title,n)),o.createElement("span",{className:E()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!h||!v)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},h,v)));return c?o.createElement(ms,Object.assign({},w),r):r},onHeaderCell:n=>{const o=t.onHeaderCell&&t.onHeaderCell(n)||{},i=o.onClick,a=o.onKeyDown;o.onClick=e=>{r({column:t,key:p,sortOrder:m,multiplePriority:jd(t)}),null==i||i(e)},o.onKeyDown=e=>{e.keyCode===Ti.Z.ENTER&&(r({column:t,key:p,sortOrder:m,multiplePriority:jd(t)}),null==a||a(e))};const l=function(e,t){const n=kn(e,{});return"[object Object]"===Object.prototype.toString.call(n)?"":n}(t.title),s=null==l?void 0:l.toString();return g?o["aria-sort"]="ascend"===g?"ascending":"descending":o["aria-label"]=s||"",o.className=E()(o.className,`${e}-column-has-sorters`),o.tabIndex=0,t.ellipsis&&(o.title=(null!=l?l:"").toString()),o}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:Hd(e,d.children,n,r,i,a,l,u)})),d}))}function Bd(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function Ld(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(Bd);return 0===t.length&&e.length?Object.assign(Object.assign({},Bd(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Kd(e,t,n){const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return zd(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:a}=o,l=zd(r);if(l&&a){const n=l(e,t,a);if(0!==n)return a===Zd?n:-n}}return 0})).map((e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:Kd(o,t,n)}):e})):r}function _d(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=kn(e.title,t),"children"in n&&(n.children=_d(n.children,t)),n}))}function Wd(e){return[o.useCallback((t=>_d(t,e)),[e])]}const Fd=Me(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o})),Vd=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(n,o,r)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`-${o}px -${r+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[`\n > ${t}-content,\n > ${t}-header\n `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},Xd=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Mt.vS),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ud=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Gd=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Yd=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:l,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:p,fontSizeSM:f,lineHeight:g,tablePaddingVertical:m,tablePaddingHorizontal:h,tableExpandedRowBg:v,paddingXXS:b}=e,y=o/2-i,x=2*y+3*i,C=`${i}px ${l} ${s}`,w=b-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Gd(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:c,border:C,borderRadius:d,transform:`scale(${o/x})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:w,insetInlineStart:w,height:i},"&::after":{top:w,bottom:w,insetInlineStart:y,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(p*g-3*i)/2-Math.ceil((1.4*f-3*i)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${m}px -${h}px`,padding:`${m}px ${h}px`}}}},qd=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:p,fontSizeSM:f,tablePaddingHorizontal:g,borderRadius:m,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:w,controlItemBgHover:S,controlItemBgActive:$,boxShadowSecondary:E}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,I=`${n}-tree`,N=`${c}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-g/2}px`,padding:`0 ${a}px`,color:p,fontSize:f,borderRadius:m,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[k]:Object.assign(Object.assign({},(0,Mt.Wf)(e)),{minWidth:r,backgroundColor:C,borderRadius:m,boxShadow:E,[`${O}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${l}px 0`,color:x,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${k}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:S},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${k}-search`]:{padding:l,borderBottom:N,"&-input":{input:{minWidth:i},[o]:{color:x}}},[`${k}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${k}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-c}px ${l}px`,overflow:"hidden",borderTop:N}})}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Qd=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l}=e;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${o}`}},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${o}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${o}`}},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${o}`}}}}},Jd=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ep=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},tp=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"}}}}},np=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:i,tableHeaderIconColor:a,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+2*i},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:e.tablePaddingHorizontal/4+"px",[o]:{color:a,fontSize:r,verticalAlign:"baseline","&:hover":{color:l}}}}}},op=e=>{const{componentCls:t}=e,n=(n,o,r,i)=>({[`${t}${t}-${n}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${o}px ${r}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${r/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${r}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`}},[`${t}-selection-column`]:{paddingInlineStart:r/4+"px"}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},rp=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},ip=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},ap=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,r=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},lp=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:i,lineType:a,tableBorderColor:l,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:f,tableHeaderCellSplitColor:g,tableRowHoverBg:m,tableSelectedRowBg:h,tableSelectedRowHoverBg:v,tableFooterTextColor:b,tableFooterBg:y,paddingContentVerticalLG:x}=e,C=`${i}px ${a} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Mt.dF)()),{[t]:Object.assign(Object.assign({},(0,Mt.Wf)(e)),{fontSize:s,background:c,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${x}px ${r}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${r}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:C,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:C,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:f,borderBottom:C,transition:`background ${p} ease`},[`\n &${t}-row:hover > th,\n &${t}-row:hover > td,\n > th${t}-cell-row-hover\n > td${t}-cell-row-hover\n `]:{background:m},[`&${t}-row-selected`]:{"> th, > td":{background:h},"&:hover > th, &:hover > td":{background:v}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:b,background:y}})}},sp=(0,At.Z)("Table",(e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:i,colorBorderSecondary:a,fontSize:l,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:p,colorIcon:f,colorIconHover:g,opacityLoading:m,colorBgContainer:h,borderRadiusLG:v,colorFillContent:b,colorFillSecondary:y,controlInteractiveSize:x}=e,C=new il.C(f),w=new il.C(g),S=t,$=new il.C(y).onBackground(h).toHexShortString(),E=new il.C(b).onBackground(h).toHexShortString(),O=new il.C(p).onBackground(h).toHexShortString(),k=(0,zt.TS)(e,{tableFontSize:l,tableBg:h,tableRadius:v,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:a,tableHeaderTextColor:r,tableHeaderBg:O,tableFooterTextColor:r,tableFooterBg:O,tableHeaderCellSplitColor:a,tableHeaderSortBg:$,tableHeaderSortHoverBg:E,tableHeaderIconColor:C.clone().setAlpha(C.getAlpha()*m).toRgbString(),tableHeaderIconColorHover:w.clone().setAlpha(w.getAlpha()*m).toRgbString(),tableBodySortBg:O,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:h,tableRowHoverBg:O,tableSelectedRowBg:S,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:l,tableFontSizeSmall:l,tableSelectionColumnWidth:d,tableExpandIconBg:h,tableExpandColumnWidth:x+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:i});return[lp(k),Jd(k),ap(k),rp(k),qd(k),Vd(k),ep(k),Yd(k),ap(k),Ud(k),np(k),Qd(k),ip(k),Xd(k),op(k),tp(k)]})),cp=[];function up(e,t){const{getPopupContainer:n}=o.useContext(Ae.E_),{prefixCls:r,className:i,rootClassName:a,style:l,size:s,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:p,rowSelection:f,rowKey:g="key",rowClassName:m,columns:h,children:v,childrenColumnName:b,onChange:y,getPopupContainer:x,loading:C,expandIcon:w,expandable:S,expandedRowRender:$,expandIconColumnIndex:O,indentSize:k,scroll:I,sortDirections:N,locale:T,showSorterTooltip:P=!0}=e,D=o.useMemo((()=>h||be(v)),[h,v]),R=o.useMemo((()=>D.some((e=>e.responsive))),[D]),Z=We(R),M=o.useMemo((()=>{const e=new Set(Object.keys(Z).filter((e=>Z[e])));return D.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[D,Z]),j=(0,ze.Z)(e,["className","style","columns"]),z=o.useContext(Be.Z),{locale:A=Fe.Z,direction:H,renderEmpty:B,getPrefixCls:L}=o.useContext(Ae.E_),K=s||z,_=Object.assign(Object.assign({},A.Table),T),W=d||cp,F=L("table",r),V=L("dropdown",u),X=Object.assign({childrenColumnName:b,expandIconColumnIndex:O},S),{childrenColumnName:U="children"}=X,G=o.useMemo((()=>W.some((e=>null==e?void 0:e[U]))?"nest":$||S&&S.expandedRowRender?"row":null),[W]),q={body:o.useRef()},Q=o.useMemo((()=>"function"==typeof g?g:e=>null==e?void 0:e[g]),[g]),[J]=function(e,t,n){const r=o.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const i=new Map;function a(e){e.forEach(((e,o)=>{const r=n(e,o);i.set(r,e),e&&"object"==typeof e&&t in e&&a(e[t]||[])}))}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]}(W,U,Q),ee={},te=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Object.assign(Object.assign({},ee),e);n&&(ee.resetPagination(),o.pagination.current&&(o.pagination.current=1),p&&p.onChange&&p.onChange(1,o.pagination.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&q.body.current&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),a=function(e,t){var n,o;if("undefined"==typeof window)return 0;const r="scrollTop";let i=0;return $n(e)?i=e.pageYOffset:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!$n(e)&&"number"!=typeof i&&(i=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),i}(i),l=Date.now(),s=()=>{const t=Date.now()-l,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);$n(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?(0,Sn.Z)(s):"function"==typeof o&&o()};(0,Sn.Z)(s)}(0,{getContainer:()=>q.body.current}),null==y||y(o.pagination,o.filters,o.sorter,{currentDataSource:md(Kd(W,o.sorterStates,U),o.filterStates),action:t})},[ne,oe,re,ie]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:i,tableLocale:a,showSorterTooltip:l}=e;const[s,c]=o.useState(Ad(n,!0)),u=o.useMemo((()=>{let e=!0;const t=Ad(n,!1);if(!t.length)return s;const o=[];function r(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o}),[n,s]),d=o.useMemo((()=>{const e=u.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[u]);function p(e){let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat((0,Y.Z)(u.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),r(Ld(t),t)}return[e=>Hd(t,e,u,p,i,a,l),u,d,()=>Ld(u)]}({prefixCls:F,mergedColumns:M,onSorterChange:(e,t)=>{te({sorter:e,sorterStates:t},"sort",!1)},sortDirections:N||["ascend","descend"],tableLocale:_,showSorterTooltip:P}),ae=o.useMemo((()=>Kd(W,oe,U)),[W,oe]);ee.sorter=ie(),ee.sorterStates=oe;const[le,se,ce]=vd({prefixCls:F,locale:_,dropdownPrefixCls:V,mergedColumns:M,onFilterChange:(e,t)=>{te({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||n}),ue=md(ae,se);ee.filters=ce,ee.filterStates=se;const de=o.useMemo((()=>{const e={};return Object.keys(ce).forEach((t=>{null!==ce[t]&&(e[t]=ce[t])})),Object.assign(Object.assign({},re),{filters:e})}),[re,ce]),[pe]=Wd(de),[fe,ge]=yd(ue.length,((e,t)=>{te({pagination:Object.assign(Object.assign({},ee.pagination),{current:e,pageSize:t})},"paginate")}),p);ee.pagination=!1===p?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach((t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)})),n}(fe,p),ee.resetPagination=ge;const me=o.useMemo((()=>{if(!1===p||!fe.pageSize)return ue;const{current:e=1,total:t,pageSize:n=bd}=fe;return ue.length<t?ue.length>n?ue.slice((e-1)*n,e*n):ue:ue.slice((e-1)*n,e*n)}),[!!p,ue,fe&&fe.current,fe&&fe.pageSize,fe&&fe.total]),[he,ve]=kd({prefixCls:F,data:ue,pageData:me,getRowKey:Q,getRecordByKey:J,expandType:G,childrenColumnName:U,locale:_,getPopupContainer:x||n},f);X.__PARENT_RENDER_ICON__=X.expandIcon,X.expandIcon=X.expandIcon||w||function(e){return function(t){let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:l}=t;const s=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:E()(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}(_),"nest"===G&&void 0===X.expandIconColumnIndex?X.expandIconColumnIndex=f?1:0:X.expandIconColumnIndex>0&&f&&(X.expandIconColumnIndex-=1),"number"!=typeof X.indentSize&&(X.indentSize="number"==typeof k?k:15);const ye=o.useCallback((e=>pe(he(le(ne(e))))),[ne,le,he]);let xe,Ce,we;if(!1!==p&&(null==fe?void 0:fe.total)){let e;e=fe.size?fe.size:"small"===K||"middle"===K?"small":void 0;const t=t=>o.createElement(un,Object.assign({},fe,{className:E()(`${F}-pagination ${F}-pagination-${t}`,fe.className),size:e})),n="rtl"===H?"left":"right",{position:r}=fe;if(null!==r&&Array.isArray(r)){const e=r.find((e=>e.includes("top"))),o=r.find((e=>e.includes("bottom"))),i=r.every((e=>"none"==`${e}`));e||o||i||(Ce=t(n)),e&&(xe=t(e.toLowerCase().replace("top",""))),o&&(Ce=t(o.toLowerCase().replace("bottom","")))}else Ce=t(n)}"boolean"==typeof C?we={spinning:C}:"object"==typeof C&&(we=Object.assign({spinning:!0},C));const[Se,$e]=sp(F),Ee=E()(`${F}-wrapper`,{[`${F}-wrapper-rtl`]:"rtl"===H},i,a,$e),Oe=T&&T.emptyText||(null==B?void 0:B("Table"))||o.createElement(He.Z,{componentName:"Table"});return Se(o.createElement("div",{ref:t,className:Ee,style:l},o.createElement(wn,Object.assign({spinning:!1},we),xe,o.createElement(Fd,Object.assign({},j,{columns:M,direction:H,expandable:X,prefixCls:F,className:E()({[`${F}-middle`]:"middle"===K,[`${F}-small`]:"small"===K,[`${F}-bordered`]:c,[`${F}-empty`]:0===W.length}),data:me,rowKey:Q,rowClassName:(e,t,n)=>{let o;return o="function"==typeof m?E()(m(e,t,n)):E()(m),E()({[`${F}-row-selected`]:ve.has(Q(e,t))},o)},emptyText:Oe,internalHooks:De,internalRefs:q,transformColumns:ye})),Ce)))}const dp=o.forwardRef(up);function pp(e,t){const n=o.useRef(0);return n.current+=1,o.createElement(dp,Object.assign({},e,{ref:t,_renderTimes:n.current}))}const fp=o.forwardRef(pp);fp.SELECTION_COLUMN=Cd,fp.EXPAND_COLUMN=i,fp.SELECTION_ALL=wd,fp.SELECTION_INVERT=Sd,fp.SELECTION_NONE=$d,fp.Column=function(e){return null},fp.ColumnGroup=function(e){return null},fp.Summary=K;const gp=fp},2609:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},9601:e=>{e.exports=function(e){return e[1]}},9378:e=>{e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},4819:(e,t)=>{function n(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var o="object"==typeof process&&!0;function r(e,t){if(!e){if(o)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=r;var i=Object.prototype.hasOwnProperty,a=Array.prototype.splice,l=Object.prototype.toString;function s(e){return l.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return u(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===s(e)?new Map(e):"Set"===s(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=c({},f),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,o="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(o)||r(!Array.isArray(o),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),r("object"==typeof o&&null!==o,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var a=e;return u(o).forEach((function(t){if(i.call(n.commands,t)){var r=e===a;a=n.commands[t](o[t],a,o,e),r&&n.isEquals(a,e)&&(a=e)}else{var l="Map"===s(e)?n.update(e.get(t),o[t]):n.update(e[t],o[t]),c="Map"===s(a)?a.get(t):a[t];n.isEquals(l,c)&&(void 0!==l||i.call(e,t))||(a===e&&(a=d(e)),"Map"===s(a)?a.set(t,l):a[t]=l)}})),a},e}();t.Context=p;var f={$push:function(e,t,n){return m(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return m(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,o,i){return function(e,t){r(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+n(e)})),v(t.$splice)}(t,o),e.forEach((function(e){v(e),t===i&&e.length&&(t=d(i)),a.apply(t,e)})),t},$set:function(e,t,n){return function(e){r(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),e},$toggle:function(e,t){h(e,"$toggle");var n=e.length?d(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,o){return h(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===o&&(t=d(o)),delete t[e])})),t},$add:function(e,t,n,o){return b(t,"$add"),h(e,"$add"),"Map"===s(t)?e.forEach((function(e){var n=e[0],r=e[1];t===o&&t.get(n)!==r&&(t=d(o)),t.set(n,r)})):e.forEach((function(e){t!==o||t.has(e)||(t=d(o)),t.add(e)})),t},$remove:function(e,t,n,o){return b(t,"$remove"),h(e,"$remove"),e.forEach((function(e){t===o&&t.has(e)&&(t=d(o)),t.delete(e)})),t},$merge:function(e,t,o,i){var a,l;return a=t,r((l=e)&&"object"==typeof l,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(l)})),r(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+n(a)})),u(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=d(i)),t[n]=e[n])})),t},$apply:function(e,t){var o;return r("function"==typeof(o=e),(function(){return"update(): expected spec of $apply to be a function; got "+n(o)+"."})),e(t)}},g=new p;function m(e,t,o){r(Array.isArray(e),(function(){return"update(): expected target of "+n(o)+" to be an array; got "+n(e)+"."})),h(t[o],o)}function h(e,t){r(Array.isArray(e),(function(){return"update(): expected spec of "+n(t)+" to be an array; got "+n(e)+". Did you forget to wrap your parameter in an array?"}))}function v(e){r(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(e)+". Did you forget to wrap your parameters in an array?"}))}function b(e,t){var o=s(e);r("Map"===o||"Set"===o,(function(){return"update(): "+n(t)+" expects a target of type Set or Map; got "+n(o)}))}t.isEquals=g.update.isEquals,t.extend=g.extend,t.default=g.update,t.default.default=e.exports=c(t.default,t)},1837:(e,t,n)=>{var o=n(8657),r=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var o,s={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,o)&&!l.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:u,props:s,_owner:a.current}}},2322:(e,t,n)=>{e.exports=n(1837)},4333:(e,t,n)=>{function o(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;e=new Error(t.replace(/%s/g,(function(){return n[o++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}n.d(t,{k:()=>o})},2057:(e,t,n)=>{function o(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<i.length;a++){const s=i[a];if(!l(s))return!1;const c=e[s],u=t[s];if(r=n?n.call(o,c,u,s):void 0,!1===r||void 0===r&&c!==u)return!1}return!0}n.d(t,{w:()=>o})},8683:(e,t,n)=>{n.d(t,{PD:()=>$});var o={};function r(e){let t=null;return()=>(null==t&&(t=e()),t)}n.r(o),n.d(o,{FILE:()=>l,HTML:()=>u,TEXT:()=>c,URL:()=>s});class i{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,o=e=>n.add(e);e.forEach(o),t.forEach(o);const r=[];return n.forEach((e=>r.push(e))),r}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,o;return this.entered=(n=this.entered.filter(this.isNodeInDocument),o=e,n.filter((e=>e!==o))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class a{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const o=this.config.exposeProperties[n];null!=o&&(t[n]={value:o(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const l="__NATIVE_FILE__",s="__NATIVE_URL__",c="__NATIVE_TEXT__",u="__NATIVE_HTML__";function d(e,t,n){const o=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=o?o:n}const p={[l]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[u]:{exposeProperties:{html:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[s]:{exposeProperties:{urls:(e,t)=>d(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[c]:{exposeProperties:{text:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function f(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(p).filter((e=>{const n=p[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const g=r((()=>/firefox/i.test(navigator.userAgent))),m=r((()=>Boolean(window.safari)));class h{interpolate(e){const{xs:t,ys:n,c1s:o,c2s:r,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let l,s=0,c=i.length-1;for(;s<=c;){l=Math.floor(.5*(s+c));const o=t[l];if(o<e)s=l+1;else{if(!(o>e))return n[l];c=l-1}}a=Math.max(0,c);const u=e-t[a],d=u*u;return n[a]+o[a]*u+r[a]*d+i[a]*u*d}constructor(e,t){const{length:n}=e,o=[];for(let e=0;e<n;e++)o.push(e);o.sort(((t,n)=>e[t]<e[n]?-1:1));const r=[],i=[],a=[];let l,s;for(let o=0;o<n-1;o++)l=e[o+1]-e[o],s=t[o+1]-t[o],i.push(l),r.push(s),a.push(s/l);const c=[a[0]];for(let e=0;e<i.length-1;e++){const t=a[e],n=a[e+1];if(t*n<=0)c.push(0);else{l=i[e];const o=i[e+1],r=l+o;c.push(3*r/((r+o)/t+(r+l)/n))}}c.push(a[a.length-1]);const u=[],d=[];let p;for(let e=0;e<c.length-1;e++){p=a[e];const t=c[e],n=1/i[e],o=t+c[e+1]-p-p;u.push((p-t-o)*n),d.push(o*n*n)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=u,this.c3s=d}}const v=1;function b(e){const t=e.nodeType===v?e:e.parentElement;if(!t)return null;const{top:n,left:o}=t.getBoundingClientRect();return{x:o,y:n}}function y(e){return{x:e.clientX,y:e.clientY}}class x{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){C(e,t,n[t])}))}return e}class S{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const o=t=>this.handleDragStart(t,e),r=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",r),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",r),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),o=t=>this.handleDragOver(t,e),r=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",r),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",r)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return w({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return w({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(o).some((t=>o[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=p[e];if(!n)throw new Error(`native type ${e} has no configuration`);const o=new a(n);return o.loadDataTransfer(t),o}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&b(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=y(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:o}=e,r=f(o);if(this.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),r=this.sourcePreviewNodes.get(e)||t;if(r){const{anchorX:e,anchorY:i,offsetX:a,offsetY:l}=this.getCurrentSourcePreviewNodeOptions(),s=function(e,t,n,o,r){const i="IMG"===(a=t).nodeName&&(g()||!(null===(l=document.documentElement)||void 0===l?void 0:l.contains(a)));var a,l;const s=b(i?e:t),c={x:n.x-s.x,y:n.y-s.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:p,anchorY:f}=o,{dragPreviewWidth:v,dragPreviewHeight:y}=function(e,t,n,o){let r=e?t.width:n,i=e?t.height:o;return m()&&e&&(i/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:i}}(i,t,u,d),{offsetX:x,offsetY:C}=r,w=0===C||C;return{x:0===x||x?x:new h([0,.5,1],[c.x,c.x/u*v,c.x+v-u]).interpolate(p),y:w?C:(()=>{let e=new h([0,.5,1],[c.y,c.y/d*y,c.y+y-d]).interpolate(f);return m()&&i&&(e+=(window.devicePixelRatio-1)*y),e})()}}(t,r,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:l});o.setDragImage(r,s.x,s.y)}}try{null==o||o.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(r)this.beginDragNativeItem(r);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,o=f(n);o&&this.beginDragNativeItem(o,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:y(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=y(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):f(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:y(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new x(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new i(this.isNodeInDocument)}}const $=function(e,t,n){return new S(e,t,n)}},8225:(e,t,n)=>{n.d(t,{L:()=>o});const o=(0,n(8657).createContext)({dragDropManager:void 0})},2238:(e,t,n)=>{n.d(t,{W:()=>ge});var o=n(2322);function r(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function s(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}if("function"!=typeof e)throw new Error(r(2));var a=e,c=t,u=[],d=u,p=!1;function f(){d===u&&(d=u.slice())}function g(){if(p)throw new Error(r(3));return c}function m(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));var t=!0;return f(),d.push(e),function(){if(t){if(p)throw new Error(r(6));t=!1,f();var n=d.indexOf(e);d.splice(n,1),u=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if(p)throw new Error(r(9));try{p=!0,c=a(c,e)}finally{p=!1}for(var t=u=d,n=0;n<t.length;n++)(0,t[n])();return e}return h({type:l.INIT}),(o={dispatch:h,subscribe:m,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,h({type:l.REPLACE})}})[i]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(r(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[i]=function(){return this},e},o}var c=n(4333);function u(e){return"object"==typeof e}const d="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",f="dnd-core/PUBLISH_DRAG_SOURCE",g="dnd-core/HOVER",m="dnd-core/DROP",h="dnd-core/END_DRAG";function v(e,t){return{type:d,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const b={type:d,payload:{clientOffset:null,sourceClientOffset:null}};function y(e){return function(t=[],n={publishSource:!0}){const{publishSource:o=!0,clientOffset:r,getSourceClientOffset:i}=n,a=e.getMonitor(),l=e.getRegistry();e.dispatch(v(r)),function(e,t,n){(0,c.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,c.k)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,l);const s=function(e,t){let n=null;for(let o=e.length-1;o>=0;o--)if(t.canDragSource(e[o])){n=e[o];break}return n}(t,a);if(null==s)return void e.dispatch(b);let d=null;if(r){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){(0,c.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),d=i(s)}e.dispatch(v(r,d));const f=l.getSource(s).beginDrag(a,s);if(null==f)return;!function(e){(0,c.k)(u(e),"Item must be an object.")}(f),l.pinSource(s);const g=l.getSourceType(s);return{type:p,payload:{itemType:g,item:f,sourceId:s,clientOffset:r||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){x(e,t,n[t])}))}return e}function w(e){return function(t={}){const n=e.getMonitor(),o=e.getRegistry();!function(e){(0,c.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,c.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const r=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);r.forEach(((r,i)=>{const a=function(e,t,n,o){const r=n.getTarget(e);let i=r?r.drop(o,e):void 0;return function(e){(0,c.k)(void 0===e||u(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:o.getDropResult()),i}(r,i,o,n),l={type:m,payload:{dropResult:C({},t,a)}};e.dispatch(l)}))}}function S(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){(0,c.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const o=t.getSourceId();return null!=o&&(n.getSource(o,!0).endDrag(t,o),n.unpinSource()),{type:h}}}function $(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function E(e){return function(t,{clientOffset:n}={}){!function(e){(0,c.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const o=t.slice(0),r=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let o=e.length-1;o>=0;o--){const r=e[o];$(t.getTargetType(r),n)||e.splice(o,1)}}(o,i,r.getItemType()),function(e,t,n){(0,c.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,c.k)(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const o=e[t];(0,c.k)(e.lastIndexOf(o)===t,"Expected targetIds to be unique in the passed array.");const r=n.getTarget(o);(0,c.k)(r,"Expected targetIds to be registered.")}}(o,r,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(o,r,i),{type:g,payload:{targetIds:o,clientOffset:n||null}}}}function O(e){return function(){if(e.getMonitor().isDragging())return{type:f}}}class k{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:y(e),publishDragSource:O(e),hover:E(e),drop:w(e),endDrag:S(e)}}(this);return Object.keys(n).reduce(((o,r)=>{const i=n[r];var a;return o[r]=(a=i,(...n)=>{const o=a.apply(e,n);void 0!==o&&t(o)}),o}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function I(e,t){return{x:e.x-t.x,y:e.y-t.y}}const N=[],T=[];N.__IS_NONE__=!0,T.__IS_ALL__=!0;class P{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;(0,c.k)("function"==typeof e,"listener must be a function."),(0,c.k)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),r=t.stateId;try{const i=r===o||r===o+1&&!function(e,t){return e!==N&&(e===T||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{o=r}}))}subscribeToOffsetChange(e){(0,c.k)("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,c.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return(0,c.k)(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&($(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return(0,c.k)(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const o=this.registry.getTargetType(e),r=this.getItemType();if(r&&!$(o,r))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:o}=e;return t&&n&&o?I((i=o,{x:(r=t).x+i.x,y:r.y+i.y}),n):null;var r,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?I(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const D="undefined"!=typeof global?global:self,R=D.MutationObserver||D.WebKitMutationObserver;function Z(e){return function(){const t=setTimeout(o,0),n=setInterval(o,50);function o(){clearTimeout(t),clearInterval(n),e()}}}const M="function"==typeof R?function(e){let t=1;const n=new R(e),o=document.createTextNode("");return n.observe(o,{characterData:!0}),function(){t=-t,o.data=t}}:Z;class j{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const z=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=M(this.flush),this.requestErrorThrow=Z((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},A=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new j(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(z.registerPendingError),H="dnd-core/ADD_SOURCE",B="dnd-core/ADD_TARGET",L="dnd-core/REMOVE_SOURCE",K="dnd-core/REMOVE_TARGET";function _(e,t){t&&Array.isArray(e)?e.forEach((e=>_(e,!1))):(0,c.k)("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var W;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(W||(W={}));let F=0;function V(e){switch(e[0]){case"S":return W.SOURCE;case"T":return W.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function X(e,t){const n=e.entries();let o=!1;do{const{done:e,value:[,r]}=n.next();if(r===t)return!0;o=!!e}while(!o);return!1}class U{addSource(e,t){_(e),function(e){(0,c.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,c.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,c.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(W.SOURCE,e,t);return this.store.dispatch(function(e){return{type:H,payload:{sourceId:e}}}(n)),n}addTarget(e,t){_(e,!0),function(e){(0,c.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,c.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,c.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(W.TARGET,e,t);return this.store.dispatch(function(e){return{type:B,payload:{targetId:e}}}(n)),n}containsHandler(e){return X(this.dragSources,e)||X(this.dropTargets,e)}getSource(e,t=!1){return(0,c.k)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,c.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,c.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,c.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return V(e)===W.SOURCE}isTargetId(e){return V(e)===W.TARGET}removeSource(e){var t;(0,c.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:L,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},z.enqueueTask(A.create(t))}removeTarget(e){(0,c.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:K,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,c.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,c.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const o=function(e){const t=(F++).toString();switch(e){case W.SOURCE:return`S${t}`;case W.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(o,t),e===W.SOURCE?this.dragSources.set(o,n):e===W.TARGET&&this.dropTargets.set(o,n),o}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const G=(e,t)=>e===t;function Y(e=N,t){switch(t.type){case g:break;case H:case B:case K:case L:return N;default:return T}const{targetIds:n=[],prevTargetIds:o=[]}=t.payload,r=function(e,t){const n=new Map,o=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(o),t.forEach(o);const r=[];return n.forEach(((e,t)=>{1===e&&r.push(t)})),r}(n,o);if(!(r.length>0)&&function(e,t,n=G){if(e.length!==t.length)return!1;for(let o=0;o<e.length;++o)if(!n(e[o],t[o]))return!1;return!0}(n,o))return N;const i=o[o.length-1],a=n[n.length-1];return i!==a&&(i&&r.push(i),a&&r.push(a)),r}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Q={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function J(e=Q,t){const{payload:n}=t;switch(t.type){case d:case p:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case g:return o=e.clientOffset,r=n.clientOffset,!o&&!r||o&&r&&o.x===r.x&&o.y===r.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){q(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case h:case m:return Q;default:return e}var o,r}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ee(e,t,n[t])}))}return e}const ne={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function oe(e=ne,t){const{payload:n}=t;switch(t.type){case p:return te({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case f:return te({},e,{isSourcePublic:!0});case g:return te({},e,{targetIds:n.targetIds});case K:return-1===e.targetIds.indexOf(n.targetId)?e:te({},e,{targetIds:(o=e.targetIds,r=n.targetId,o.filter((e=>e!==r)))});case m:return te({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case h:return te({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var o,r}function re(e=0,t){switch(t.type){case H:case B:return e+1;case L:case K:return e-1;default:return e}}function ie(e=0){return e+1}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ae(e,t,n[t])}))}return e}function se(e={},t){return{dirtyHandlerIds:Y(e.dirtyHandlerIds,{type:t.type,payload:le({},t.payload,{prevTargetIds:(n=e,"dragOperation.targetIds",o=[],"dragOperation.targetIds".split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:J(e.dragOffset,t),refCount:re(e.refCount,t),dragOperation:oe(e.dragOperation,t),stateId:ie(e.stateId)};var n,o}function ce(e,t=void 0,n={},o=!1){const r=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return s(se,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(o),i=new P(r,new U(r)),a=new k(r,i),l=e(a,t,n);return a.receiveBackend(l),a}var ue=n(8657),de=n(8225);let pe=0;const fe=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ge=(0,ue.memo)((function(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children"]);const[r,i]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];return[function(e,t=me(),n,o){const r=t;return r[fe]||(r[fe]={dragDropManager:ce(e,t,n,o)}),r[fe]}(e.backend,e.context,e.options,e.debugMode),!e.context]}(n);return(0,ue.useEffect)((()=>{if(i){const e=me();return++pe,()=>{0==--pe&&(e[fe]=null)}}}),[]),(0,o.jsx)(de.L.Provider,{value:r,children:t})}));function me(){return"undefined"!=typeof global?global:window}},7574:(e,t,n)=>{n.d(t,{J:()=>a});var o=n(9378),r=n(8657),i=n(2976);function a(e,t,n){return function(e,t,n){const[a,l]=function(e,t,n){const[a,l]=(0,r.useState)((()=>t(e))),s=(0,r.useCallback)((()=>{const r=t(e);o(a,r)||(l(r),n&&n())}),[a,e,n]);return(0,i.L)(s),[a,s]}(e,t,n);return(0,i.L)((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(l,{handlerIds:[t]})}),[e,l]),a}(t,e||(()=>({})),(()=>n.reconnect()))}},2689:(e,t,n)=>{n.d(t,{c:()=>x});var o=n(4333),r=n(7574),i=n(2192),a=n(8657);function l(e){return(0,a.useMemo)((()=>e.hooks.dragSource()),[e])}function s(e){return(0,a.useMemo)((()=>e.hooks.dragPreview()),[e])}var c=n(2057),u=n(7164),d=n(4756);class p{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,c.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,c.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,d.p)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,u.d)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,u.d)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var f=n(6402),g=n(2976);let m=!1,h=!1;class v{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,o.k)(!m,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return m=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{m=!1}}isDragging(){if(!this.sourceId)return!1;(0,o.k)(!h,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return h=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{h=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var b=n(4952);class y{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,o=this.monitor,{isDragging:r}=n;return r?r(o):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:o}=e;o&&o(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function x(e,t){const n=(0,i.w)(e,t);(0,o.k)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const c=function(){const e=(0,f.N)();return(0,a.useMemo)((()=>new v(e)),[e])}(),u=function(e,t){const n=(0,f.N)(),o=(0,a.useMemo)((()=>new p(n.getBackend())),[n]);return(0,g.L)((()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource())),[o,e]),(0,g.L)((()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview())),[o,t]),o}(n.options,n.previewOptions);return function(e,t,n){const r=(0,f.N)(),i=function(e,t,n){const o=(0,a.useMemo)((()=>new y(e,t,n)),[t,n]);return(0,a.useEffect)((()=>{o.spec=e}),[e]),o}(e,t,n),l=function(e){return(0,a.useMemo)((()=>{const t=e.type;return(0,o.k)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,g.L)((function(){if(null!=l){const[e,o]=(0,b.w)(l,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}}),[r,t,n,i,l])}(n,c,u),[(0,r.J)(n.collect,c,u),l(u),s(u)]}},6402:(e,t,n)=>{n.d(t,{N:()=>a});var o=n(4333),r=n(8657),i=n(8225);function a(){const{dragDropManager:e}=(0,r.useContext)(i.L);return(0,o.k)(null!=e,"Expected drag drop context"),e}},8533:(e,t,n)=>{n.d(t,{L:()=>b});var o=n(7574),r=n(2192),i=n(8657);function a(e){return(0,i.useMemo)((()=>e.hooks.dropTarget()),[e])}var l=n(2057),s=n(7164),c=n(4756);class u{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,l.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,c.p)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,s.d)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var d=n(6402),p=n(2976),f=n(4333);let g=!1;class m{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,f.k)(!g,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return g=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{g=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var h=n(4952);class v{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function b(e,t){const n=(0,r.w)(e,t),l=function(){const e=(0,d.N)();return(0,i.useMemo)((()=>new m(e)),[e])}(),s=function(e){const t=(0,d.N)(),n=(0,i.useMemo)((()=>new u(t.getBackend())),[t]);return(0,p.L)((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return function(e,t,n){const o=(0,d.N)(),r=function(e,t){const n=(0,i.useMemo)((()=>new v(e,t)),[t]);return(0,i.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return(0,i.useMemo)((()=>((0,f.k)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);(0,p.L)((function(){const[e,i]=(0,h.n)(a,r,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),i}),[o,t,r,n,a.map((e=>e.toString())).join("|")])}(n,l,s),[(0,o.J)(n.collect,l,s),a(s)]}},2976:(e,t,n)=>{n.d(t,{L:()=>r});var o=n(8657);const r="undefined"!=typeof window?o.useLayoutEffect:o.useEffect},2192:(e,t,n)=>{n.d(t,{w:()=>r});var o=n(8657);function r(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,o.useMemo)((()=>"function"==typeof e?e():e),n)}},7164:(e,t,n)=>{function o(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{d:()=>o})},4952:(e,t,n)=>{function o(e,t,n){const o=n.getRegistry(),r=o.addTarget(e,t);return[r,()=>o.removeTarget(r)]}function r(e,t,n){const o=n.getRegistry(),r=o.addSource(e,t);return[r,()=>o.removeSource(r)]}n.d(t,{n:()=>o,w:()=>r})},4756:(e,t,n)=>{n.d(t,{p:()=>i});var o=n(4333),r=n(8657);function i(e){const t={};return Object.keys(e).forEach((n=>{const i=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return(t=null,n=null)=>{if(!(0,r.isValidElement)(t)){const o=t;return e(o,n),o}const i=t;return function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(i),function(e,t){const n=e.ref;return(0,o.k)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,r.cloneElement)(e,{ref:e=>{a(n,e),a(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(i,n?t=>e(t,n):e)}}(i);t[n]=()=>e}})),t}function a(e,t){"function"==typeof e?e(t):e.current=t}}}]);
|
|
3
|
+
//# sourceMappingURL=6844.b08b917c.js.map
|