diff --git a/.github/workflows/build-server.yml b/.github/workflows/build-server.yml index a0cb43e..8fa6345 100644 --- a/.github/workflows/build-server.yml +++ b/.github/workflows/build-server.yml @@ -41,7 +41,7 @@ jobs: with: context: . platforms: linux/amd64,linux/arm64 - file: ./Dockerfile + file: ./packages/server/Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/packages/server/html/assets/RightOutlined-1vddobSS.js b/packages/server/html/assets/RightOutlined-1vddobSS.js new file mode 100644 index 0000000..ff93c1e --- /dev/null +++ b/packages/server/html/assets/RightOutlined-1vddobSS.js @@ -0,0 +1 @@ +import{r as t,b as n,_ as r}from"./index-E_dpsFJ8.js";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const o=l;var e=function(i,a){return t.createElement(n,r({},i,{ref:a,icon:o}))};e.displayName="RightOutlined";const d=t.forwardRef(e);export{d as R}; diff --git a/packages/server/html/assets/RightOutlined-xQhvP3va.js b/packages/server/html/assets/RightOutlined-xQhvP3va.js new file mode 100644 index 0000000..b36d580 --- /dev/null +++ b/packages/server/html/assets/RightOutlined-xQhvP3va.js @@ -0,0 +1 @@ +import{r as t,V as a,D as i}from"./index-rd09DNLi.js";var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const o=r;var c=function(e,n){return t.createElement(a,i({},e,{ref:n,icon:o}))};const d=t.forwardRef(c);export{d as R}; diff --git a/packages/server/html/assets/apps-AIO3h-xl.js b/packages/server/html/assets/apps-AIO3h-xl.js new file mode 100644 index 0000000..5990bae --- /dev/null +++ b/packages/server/html/assets/apps-AIO3h-xl.js @@ -0,0 +1,71 @@ +import{r as i,c as H,R as Ee,_ as Pt,v as K,w as _i,x as le,y as Zn,B as G,K as ee,D as Ie,E as yt,F as er,G as Di,H as bt,d as tr,I as _t,J as ft,L as nr,M as rr,P as zi,Q as xr,S as ji,U as Bi,o as xn,T as Jt,f as Bt,m as Ct,C as it,i as Nt,t as Zt,e as O,k as ar,V as Mt,W as Li,X as Sa,Y as ya,l as ir,Z as or,b as $a,$ as Hi,a0 as hn,a1 as Gn,n as wn,h as En,a2 as Ai,z as Fi,g as wr,a3 as Vi,a4 as Wi,a5 as vn,a6 as Ca,j as ze,a7 as Gi,a8 as xa,a9 as Ki,aa as qi}from"./index-rd09DNLi.js";import{S as Xi,u as wa,g as Kn,a as Ea,b as Ui,B as ki,t as Yi,i as Ia,c as Oa,d as lr,e as Ji,f as Qi,h as Zi,j as eo,k as to,l as no,m as ro,n as ao,o as io,p as oo,F as Ft,I as lo}from"./index-Iwi_JrOa.js";import{p as en,F as co,s as so,c as uo,d as fo,e as mo,i as $n,f as Er,h as vo,E as go,M as ho,g as po,b as bo,k as So,l as yo,j as Ra}from"./index-vsnpN-o-.js";import{m as $o,n as cr,h as jt,R as un,u as qn,o as tn,t as Na,p as Pa,q as Ma,l as Ta,F as _a,r as nn,s as Cn,N as Xn,v as Un,P as Co,W as xo,B as wo}from"./index-sT0Ovbw4.js";import{R as Ir}from"./RightOutlined-xQhvP3va.js";var In=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,c=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(a):r;return i.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),c==null||c(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:i.createElement("span",{className:H(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},Eo=function(t,n,r,a,o){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=Ee.useMemo(function(){if(Pt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),m=Ee.useMemo(function(){return!!(!c&&a&&(r.length||l)&&!(s==="combobox"&&l===""))},[a,c,r.length,l,s]);return{allowClear:m,clearIcon:Ee.createElement(In,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},Da=i.createContext(null);function Io(){return i.useContext(Da)}function Oo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),n=K(t,2),r=n[0],a=n[1],o=i.useRef(null),c=function(){window.clearTimeout(o.current)};i.useEffect(function(){return c},[]);var l=function(u,m){c(),o.current=window.setTimeout(function(){a(u),m&&m()},e)};return[r,l,c]}function za(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Ro(e,t,n,r){var a=i.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},i.useEffect(function(){function o(c){var l;if(!((l=a.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=c.target;s.shadowRoot&&c.composed&&(s=c.composedPath()[0]||s),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(s)&&u!==s})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}var No=function(t,n){var r,a=t.prefixCls,o=t.id,c=t.inputElement,l=t.disabled,s=t.tabIndex,u=t.autoFocus,m=t.autoComplete,f=t.editable,v=t.activeDescendantId,d=t.value,h=t.maxLength,p=t.onKeyDown,g=t.onMouseDown,b=t.onChange,S=t.onPaste,y=t.onCompositionStart,x=t.onCompositionEnd,N=t.open,$=t.attrs,C=c||i.createElement("input",null),E=C,I=E.ref,T=E.props,w=T.onKeyDown,_=T.onChange,M=T.onMouseDown,R=T.onCompositionStart,B=T.onCompositionEnd,k=T.style;return _i(!("maxLength"in C.props)),C=i.cloneElement(C,le(le(le({type:"search"},T),{},{id:o,ref:Zn(n,I),disabled:l,tabIndex:s,autoComplete:m||"off",autoFocus:u,className:H("".concat(a,"-selection-search-input"),(r=C)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":N||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":N?v:void 0},$),{},{value:f?d:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:le(le({},k),{},{opacity:f?null:0}),onKeyDown:function(D){p(D),w&&w(D)},onMouseDown:function(D){g(D),M&&M(D)},onChange:function(D){b(D),_&&_(D)},onCompositionStart:function(D){y(D),R&&R(D)},onCompositionEnd:function(D){x(D),B&&B(D)},onPaste:S})),C},ja=i.forwardRef(No);function Ba(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Po=typeof window<"u"&&window.document&&window.document.documentElement,Mo=Po;function To(e){return e!=null}function _o(e){return!e&&e!==0}function Or(e){return["string","number"].includes(Pt(e))}function La(e){var t=void 0;return e&&(Or(e.title)?t=e.title.toString():Or(e.label)&&(t=e.label.toString())),t}function Do(e,t){Mo?i.useLayoutEffect(e,t):i.useEffect(e,t)}function zo(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Rr=function(t){t.preventDefault(),t.stopPropagation()},jo=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,c=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,m=t.disabled,f=t.mode,v=t.showSearch,d=t.autoFocus,h=t.autoComplete,p=t.activeDescendantId,g=t.tabIndex,b=t.removeIcon,S=t.maxTagCount,y=t.maxTagTextLength,x=t.maxTagPlaceholder,N=x===void 0?function(ue){return"+ ".concat(ue.length," ...")}:x,$=t.tagRender,C=t.onToggleOpen,E=t.onRemove,I=t.onInputChange,T=t.onInputPaste,w=t.onInputKeyDown,_=t.onInputMouseDown,M=t.onInputCompositionStart,R=t.onInputCompositionEnd,B=i.useRef(null),k=i.useState(0),j=K(k,2),D=j[0],ae=j[1],ce=i.useState(!1),te=K(ce,2),F=te[0],A=te[1],q="".concat(r,"-selection"),Z=o||f==="multiple"&&l===!1||f==="tags"?c:"",ie=f==="tags"||f==="multiple"&&l===!1||v&&(o||F);Do(function(){ae(B.current.scrollWidth)},[Z]);var we=function(Y,P,se,ye,ge){return i.createElement("span",{title:La(Y),className:H("".concat(q,"-item"),G({},"".concat(q,"-item-disabled"),se))},i.createElement("span",{className:"".concat(q,"-item-content")},P),ye&&i.createElement(In,{className:"".concat(q,"-item-remove"),onMouseDown:Rr,onClick:ge,customizeIcon:b},"×"))},he=function(Y,P,se,ye,ge){var J=function(be){Rr(be),C(!o)};return i.createElement("span",{onMouseDown:J},$({label:P,value:Y,disabled:se,closable:ye,onClose:ge}))},X=function(Y){var P=Y.disabled,se=Y.label,ye=Y.value,ge=!m&&!P,J=se;if(typeof y=="number"&&(typeof se=="string"||typeof se=="number")){var ne=String(J);ne.length>y&&(J="".concat(ne.slice(0,y),"..."))}var be=function($e){$e&&$e.stopPropagation(),E(Y)};return typeof $=="function"?he(ye,J,P,ge,be):we(Y,J,P,ge,be)},L=function(Y){var P=typeof N=="function"?N(Y):N;return we({title:P},P,!1)},z=i.createElement("div",{className:"".concat(q,"-search"),style:{width:D},onFocus:function(){A(!0)},onBlur:function(){A(!1)}},i.createElement(ja,{ref:s,open:o,prefixCls:r,id:n,inputElement:null,disabled:m,autoFocus:d,autoComplete:h,editable:ie,activeDescendantId:p,value:Z,onKeyDown:w,onMouseDown:_,onChange:I,onPaste:T,onCompositionStart:M,onCompositionEnd:R,tabIndex:g,attrs:en(t,!0)}),i.createElement("span",{ref:B,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},Z," ")),W=i.createElement(co,{prefixCls:"".concat(q,"-overflow"),data:a,renderItem:X,renderRest:L,suffix:z,itemKey:zo,maxCount:S});return i.createElement(i.Fragment,null,W,!a.length&&!Z&&i.createElement("span",{className:"".concat(q,"-placeholder")},u))},Bo=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,c=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,m=t.mode,f=t.open,v=t.values,d=t.placeholder,h=t.tabIndex,p=t.showSearch,g=t.searchValue,b=t.activeValue,S=t.maxLength,y=t.onInputKeyDown,x=t.onInputMouseDown,N=t.onInputChange,$=t.onInputPaste,C=t.onInputCompositionStart,E=t.onInputCompositionEnd,I=t.title,T=i.useState(!1),w=K(T,2),_=w[0],M=w[1],R=m==="combobox",B=R||p,k=v[0],j=g||"";R&&b&&!_&&(j=b),i.useEffect(function(){R&&M(!1)},[R,b]);var D=m!=="combobox"&&!f&&!p?!1:!!j,ae=I===void 0?La(k):I,ce=i.useMemo(function(){return k?null:i.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:D?{visibility:"hidden"}:void 0},d)},[k,D,d,r]);return i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(r,"-selection-search")},i.createElement(ja,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:c,autoFocus:l,autoComplete:s,editable:B,activeDescendantId:u,value:j,onKeyDown:y,onMouseDown:x,onChange:function(F){M(!0),N(F)},onPaste:$,onCompositionStart:C,onCompositionEnd:E,tabIndex:h,attrs:en(t,!0),maxLength:R?S:void 0})),!R&&k?i.createElement("span",{className:"".concat(r,"-selection-item"),title:ae,style:D?{visibility:"hidden"}:void 0},k.label):null,ce)};function Lo(e){return![ee.ESC,ee.SHIFT,ee.BACKSPACE,ee.TAB,ee.WIN_KEY,ee.ALT,ee.META,ee.WIN_KEY_RIGHT,ee.CTRL,ee.SEMICOLON,ee.EQUALS,ee.CAPS_LOCK,ee.CONTEXT_MENU,ee.F1,ee.F2,ee.F3,ee.F4,ee.F5,ee.F6,ee.F7,ee.F8,ee.F9,ee.F10,ee.F11,ee.F12].includes(e)}var Ho=function(t,n){var r=i.useRef(null),a=i.useRef(!1),o=t.prefixCls,c=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,m=t.autoClearSearchValue,f=t.onSearch,v=t.onSearchSubmit,d=t.onToggleOpen,h=t.onInputKeyDown,p=t.domRef;i.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var g=za(0),b=K(g,2),S=b[0],y=b[1],x=function(j){var D=j.which;(D===ee.UP||D===ee.DOWN)&&j.preventDefault(),h&&h(j),D===ee.ENTER&&l==="tags"&&!a.current&&!c&&(v==null||v(j.target.value)),Lo(D)&&d(!0)},N=function(){y(!0)},$=i.useRef(null),C=function(j){f(j,!0,a.current)!==!1&&d(!0)},E=function(){a.current=!0},I=function(j){a.current=!1,l!=="combobox"&&C(j.target.value)},T=function(j){var D=j.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var ae=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(ae,$.current)}$.current=null,C(D)},w=function(j){var D=j.clipboardData,ae=D==null?void 0:D.getData("text");$.current=ae||""},_=function(j){var D=j.target;if(D!==r.current){var ae=document.body.style.msTouchAction!==void 0;ae?setTimeout(function(){r.current.focus()}):r.current.focus()}},M=function(j){var D=S();j.target!==r.current&&!D&&l!=="combobox"&&j.preventDefault(),(l!=="combobox"&&(!s||!D)||!c)&&(c&&m!==!1&&f("",!0,!1),d())},R={inputRef:r,onInputKeyDown:x,onInputMouseDown:N,onInputChange:T,onInputPaste:w,onInputCompositionStart:E,onInputCompositionEnd:I},B=l==="multiple"||l==="tags"?i.createElement(jo,Ie({},t,R)):i.createElement(Bo,Ie({},t,R));return i.createElement("div",{ref:p,className:"".concat(o,"-selector"),onClick:_,onMouseDown:M},B)},Ao=i.forwardRef(Ho),Fo=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Vo=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Wo=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,o=t.children,c=t.popupElement,l=t.animation,s=t.transitionName,u=t.dropdownStyle,m=t.dropdownClassName,f=t.direction,v=f===void 0?"ltr":f,d=t.placement,h=t.builtinPlacements,p=t.dropdownMatchSelectWidth,g=t.dropdownRender,b=t.dropdownAlign,S=t.getPopupContainer,y=t.empty,x=t.getTriggerDOMNode,N=t.onPopupVisibleChange,$=t.onPopupMouseEnter,C=yt(t,Fo),E="".concat(r,"-dropdown"),I=c;g&&(I=g(c));var T=i.useMemo(function(){return h||Vo(p)},[h,p]),w=l?"".concat(E,"-").concat(l):s,_=typeof p=="number",M=i.useMemo(function(){return _?null:p===!1?"minWidth":"width"},[p,_]),R=u;_&&(R=le(le({},R),{},{width:p}));var B=i.useRef(null);return i.useImperativeHandle(n,function(){return{getPopupElement:function(){return B.current}}}),i.createElement($o,Ie({},C,{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:d||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:E,popupTransitionName:w,popup:i.createElement("div",{ref:B,onMouseEnter:$},I),stretch:M,popupAlign:b,popupVisible:a,getPopupContainer:S,popupClassName:H(m,G({},"".concat(E,"-empty"),y)),popupStyle:R,getTriggerDOMNode:x,onPopupVisibleChange:N}),o)},Go=i.forwardRef(Wo);function Nr(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Ha(e,t){var n=e||{},r=n.label,a=n.value,o=n.options,c=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:a||"value",options:o||"options",groupLabel:c||l}}function Ko(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=Ha(n,!1),c=o.label,l=o.value,s=o.options,u=o.groupLabel;function m(f,v){Array.isArray(f)&&f.forEach(function(d){if(v||!(s in d)){var h=d[l];a.push({key:Nr(d,a.length),groupOption:v,data:d,label:d[c],value:h})}else{var p=d[u];p===void 0&&r&&(p=d.label),a.push({key:Nr(d,a.length),group:!0,data:d,label:p}),m(d[s],!0)}})}return m(e,!1),a}function kn(e){var t=le({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return er(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var qo=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function l(s,u){var m=Di(u),f=m[0],v=m.slice(1);if(!f)return[s];var d=s.split(f);return a=a||d.length>1,d.reduce(function(h,p){return[].concat(bt(h),bt(l(p,v)))},[]).filter(Boolean)},c=o(t,n);return a?typeof r<"u"?c.slice(0,r):c:null},sr=i.createContext(null),Xo=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Uo=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Yn=function(t){return t==="tags"||t==="multiple"},ko=i.forwardRef(function(e,t){var n,r,a=e.id,o=e.prefixCls,c=e.className,l=e.showSearch,s=e.tagRender,u=e.direction,m=e.omitDomProps,f=e.displayValues,v=e.onDisplayValuesChange,d=e.emptyOptions,h=e.notFoundContent,p=h===void 0?"Not Found":h,g=e.onClear,b=e.mode,S=e.disabled,y=e.loading,x=e.getInputElement,N=e.getRawInputElement,$=e.open,C=e.defaultOpen,E=e.onDropdownVisibleChange,I=e.activeValue,T=e.onActiveValueChange,w=e.activeDescendantId,_=e.searchValue,M=e.autoClearSearchValue,R=e.onSearch,B=e.onSearchSplit,k=e.tokenSeparators,j=e.allowClear,D=e.suffixIcon,ae=e.clearIcon,ce=e.OptionList,te=e.animation,F=e.transitionName,A=e.dropdownStyle,q=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,ie=e.dropdownRender,we=e.dropdownAlign,he=e.placement,X=e.builtinPlacements,L=e.getPopupContainer,z=e.showAction,W=z===void 0?[]:z,ue=e.onFocus,Y=e.onBlur,P=e.onKeyUp,se=e.onKeyDown,ye=e.onMouseDown,ge=yt(e,Xo),J=Yn(b),ne=(l!==void 0?l:J)||b==="combobox",be=le({},ge);Uo.forEach(function(De){delete be[De]}),m==null||m.forEach(function(De){delete be[De]});var Pe=i.useState(!1),$e=K(Pe,2),He=$e[0],Xe=$e[1];i.useEffect(function(){Xe(cr())},[]);var Le=i.useRef(null),Ve=i.useRef(null),We=i.useRef(null),Te=i.useRef(null),Ue=i.useRef(null),Oe=i.useRef(!1),tt=Oo(),Ge=K(tt,3),Ze=Ge[0],et=Ge[1],st=Ge[2];i.useImperativeHandle(t,function(){var De,Ne;return{focus:(De=Te.current)===null||De===void 0?void 0:De.focus,blur:(Ne=Te.current)===null||Ne===void 0?void 0:Ne.blur,scrollTo:function(St){var rt;return(rt=Ue.current)===null||rt===void 0?void 0:rt.scrollTo(St)}}});var Ae=i.useMemo(function(){var De;if(b!=="combobox")return _;var Ne=(De=f[0])===null||De===void 0?void 0:De.value;return typeof Ne=="string"||typeof Ne=="number"?String(Ne):""},[_,b,f]),nt=b==="combobox"&&typeof x=="function"&&x()||null,qe=typeof N=="function"&&N(),wt=tr(Ve,qe==null||(n=qe.props)===null||n===void 0?void 0:n.ref),xt=i.useState(!1),mt=K(xt,2),me=mt[0],re=mt[1];_t(function(){re(!0)},[]);var Re=jt(!1,{defaultValue:C,value:$}),de=K(Re,2),Je=de[0],lt=de[1],Fe=me?Je:!1,ve=!p&&d;(S||ve&&Fe&&b==="combobox")&&(Fe=!1);var U=ve?!1:Fe,V=i.useCallback(function(De){var Ne=De!==void 0?De:!Fe;S||(lt(Ne),Fe!==Ne&&(E==null||E(Ne)))},[S,Fe,lt,E]),Se=i.useMemo(function(){return(k||[]).some(function(De){return[` +`,`\r +`].includes(De)})},[k]),Me=i.useContext(sr)||{},je=Me.maxCount,ke=Me.rawValues,Qe=function(Ne,ut,St){if(!((ke==null?void 0:ke.size)>=je)){var rt=!0,pt=Ne;T==null||T(null);var Tt=qo(Ne,k,je&&je-ke.size),Lt=St?null:Tt;return b!=="combobox"&&Lt&&(pt="",B==null||B(Lt),V(!1),rt=!1),R&&Ae!==pt&&R(pt,{source:ut?"typing":"effect"}),rt}},vt=function(Ne){!Ne||!Ne.trim()||R(Ne,{source:"submit"})};i.useEffect(function(){!Fe&&!J&&b!=="combobox"&&Qe("",!1,!1)},[Fe]),i.useEffect(function(){Je&&S&<(!1),S&&!Oe.current&&et(!1)},[S]);var pe=za(),fe=K(pe,2),Ke=fe[0],Q=fe[1],oe=function(Ne){var ut=Ke(),St=Ne.which;if(St===ee.ENTER&&(b!=="combobox"&&Ne.preventDefault(),Fe||V(!0)),Q(!!Ae),St===ee.BACKSPACE&&!ut&&J&&!Ae&&f.length){for(var rt=bt(f),pt=null,Tt=rt.length-1;Tt>=0;Tt-=1){var Lt=rt[Tt];if(!Lt.disabled){rt.splice(Tt,1),pt=Lt;break}}pt&&v(rt,{type:"remove",values:[pt]})}for(var Ht=arguments.length,Xt=new Array(Ht>1?Ht-1:0),At=1;At1?ut-1:0),rt=1;rt1?Tt-1:0),Ht=1;Ht0&&arguments[0]!==void 0?arguments[0]:!1;m();var h=function(){l.current.forEach(function(g,b){if(g&&g.offsetParent){var S=zi(g),y=S.offsetHeight;s.current.get(b)!==y&&s.current.set(b,S.offsetHeight)}}),c(function(g){return g+1})};d?h():u.current=ft(h)}function v(d,h){var p=e(d),g=l.current.get(p);h?(l.current.set(p,h),f()):l.current.delete(p),!g!=!h&&(h?t==null||t(d):n==null||n(d))}return i.useEffect(function(){return m},[]),[v,f,s.current,o]}var el=10;function tl(e,t,n,r,a,o,c,l){var s=i.useRef(),u=i.useState(null),m=K(u,2),f=m[0],v=m[1];return _t(function(){if(f&&f.times=0;R-=1){var B=a(t[R]),k=n.get(B);if(k===void 0){S=!0;break}if(M-=k,M<=0)break}switch(N){case"top":x=C-g;break;case"bottom":x=E-b+g;break;default:{var j=e.current.scrollTop,D=j+b;CD&&(y="bottom")}}x!==null&&c(x),x!==f.lastTop&&(S=!0)}S&&v(le(le({},f),{},{times:f.times+1,targetAlign:y,lastTop:x}))}},[f,e.current]),function(d){if(d==null){l();return}if(ft.cancel(s.current),typeof d=="number")c(d);else if(d&&Pt(d)==="object"){var h,p=d.align;"index"in d?h=d.index:h=t.findIndex(function(S){return a(S)===d.key});var g=d.offset,b=g===void 0?0:g;v({times:0,index:h,offset:b,originAlign:p})}}}function nl(e,t,n){var r=e.length,a=t.length,o,c;if(r===0&&a===0)return null;r"u"?"undefined":Pt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Fa=function(e,t){var n=i.useRef(!1),r=i.useRef(null);function a(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var o=i.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=c<0&&o.current.top||c>0&&o.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&a(),!n.current&&s}};function al(e,t,n,r,a){var o=i.useRef(0),c=i.useRef(null),l=i.useRef(null),s=i.useRef(!1),u=Fa(t,n);function m(g,b){ft.cancel(c.current),o.current+=b,l.current=b,!u(b)&&(Tr||g.preventDefault(),c.current=ft(function(){var S=s.current?10:1;a(o.current*S),o.current=0}))}function f(g,b){a(b,!0),Tr||g.preventDefault()}var v=i.useRef(null),d=i.useRef(null);function h(g){if(e){ft.cancel(d.current),d.current=ft(function(){v.current=null},2);var b=g.deltaX,S=g.deltaY,y=g.shiftKey,x=b,N=S;(v.current==="sx"||!v.current&&y&&S&&!b)&&(x=S,N=0,v.current="sx");var $=Math.abs(x),C=Math.abs(N);v.current===null&&(v.current=r&&$>C?"x":"y"),v.current==="y"?m(g,N):f(g,x)}}function p(g){e&&(s.current=g.detail===l.current)}return[h,p]}var il=14/15;function ol(e,t,n){var r=i.useRef(!1),a=i.useRef(0),o=i.useRef(null),c=i.useRef(null),l,s=function(v){if(r.current){var d=Math.ceil(v.touches[0].pageY),h=a.current-d;a.current=d,n(h)&&v.preventDefault(),clearInterval(c.current),c.current=setInterval(function(){h*=il,(!n(h,!0)||Math.abs(h)<=.1)&&clearInterval(c.current)},16)}},u=function(){r.current=!1,l()},m=function(v){l(),v.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(v.touches[0].pageY),o.current=v.target,o.current.addEventListener("touchmove",s),o.current.addEventListener("touchend",u))};l=function(){o.current&&(o.current.removeEventListener("touchmove",s),o.current.removeEventListener("touchend",u))},_t(function(){return e&&t.current.addEventListener("touchstart",m),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",m),l(),clearInterval(c.current)}},[e])}var ll=20;function _r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,ll),Math.floor(n)}function cl(e,t,n,r){var a=i.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=K(a,2),c=o[0],l=o[1],s=function(m){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,v=c.get(m),d=c.get(f);if(v===void 0||d===void 0)for(var h=e.length,p=l.length;po||!!p),w=h==="rtl",_=H(r,G({},"".concat(r,"-rtl"),w),a),M=m||ul,R=i.useRef(),B=i.useRef(),k=i.useState(0),j=K(k,2),D=j[0],ae=j[1],ce=i.useState(0),te=K(ce,2),F=te[0],A=te[1],q=i.useState(!1),Z=K(q,2),ie=Z[0],we=Z[1],he=function(){we(!0)},X=function(){we(!1)},L=i.useCallback(function(Q){return typeof v=="function"?v(Q):Q==null?void 0:Q[v]},[v]),z={getKey:L};function W(Q){ae(function(oe){var xe;typeof Q=="function"?xe=Q(oe):xe=Q;var _e=wt(xe);return R.current.scrollTop=_e,_e})}var ue=i.useRef({start:0,end:M.length}),Y=i.useRef(),P=rl(M,L),se=K(P,1),ye=se[0];Y.current=ye;var ge=Zo(L,null,null),J=K(ge,4),ne=J[0],be=J[1],Pe=J[2],$e=J[3],He=i.useMemo(function(){if(!I)return{scrollHeight:void 0,start:0,end:M.length-1,offset:void 0};if(!T){var Q;return{scrollHeight:((Q=B.current)===null||Q===void 0?void 0:Q.offsetHeight)||0,start:0,end:M.length-1,offset:void 0}}for(var oe=0,xe,_e,at,Et=M.length,gt=0;gt=D&&xe===void 0&&(xe=gt,_e=oe),$t>D+o&&at===void 0&&(at=gt),oe=$t}return xe===void 0&&(xe=0,_e=0,at=Math.ceil(o/c)),at===void 0&&(at=M.length-1),at=Math.min(at+1,M.length-1),{scrollHeight:oe,start:xe,end:at,offset:_e}},[T,I,D,M,$e,o]),Xe=He.scrollHeight,Le=He.start,Ve=He.end,We=He.offset;ue.current.start=Le,ue.current.end=Ve;var Te=i.useState({width:0,height:o}),Ue=K(Te,2),Oe=Ue[0],tt=Ue[1],Ge=function(oe){tt({width:oe.width||oe.offsetWidth,height:oe.height||oe.offsetHeight})},Ze=i.useRef(),et=i.useRef(),st=i.useMemo(function(){return _r(Oe.width,p)},[Oe.width,p]),Ae=i.useMemo(function(){return _r(Oe.height,Xe)},[Oe.height,Xe]),nt=Xe-o,qe=i.useRef(nt);qe.current=nt;function wt(Q){var oe=Q;return Number.isNaN(qe.current)||(oe=Math.min(oe,qe.current)),oe=Math.max(oe,0),oe}var xt=D<=0,mt=D>=nt,me=Fa(xt,mt),re=function(){return{x:w?-F:F,y:D}},Re=i.useRef(re()),de=qn(function(){if(y){var Q=re();(Re.current.x!==Q.x||Re.current.y!==Q.y)&&(y(Q),Re.current=Q)}});function Je(Q,oe){var xe=Q;oe?(xr.flushSync(function(){A(xe)}),de()):W(xe)}function lt(Q){var oe=Q.currentTarget.scrollTop;oe!==D&&W(oe),S==null||S(Q),de()}var Fe=function(oe){var xe=oe,_e=p-Oe.width;return xe=Math.max(xe,0),xe=Math.min(xe,_e),xe},ve=qn(function(Q,oe){oe?(xr.flushSync(function(){A(function(xe){var _e=xe+(w?-Q:Q);return Fe(_e)})}),de()):W(function(xe){var _e=xe+Q;return _e})}),U=al(I,xt,mt,!!p,ve),V=K(U,2),Se=V[0],Me=V[1];ol(I,R,function(Q,oe){return me(Q,oe)?!1:(Se({preventDefault:function(){},deltaY:Q}),!0)}),_t(function(){function Q(xe){I&&xe.preventDefault()}var oe=R.current;return oe.addEventListener("wheel",Se),oe.addEventListener("DOMMouseScroll",Me),oe.addEventListener("MozMousePixelScroll",Q),function(){oe.removeEventListener("wheel",Se),oe.removeEventListener("DOMMouseScroll",Me),oe.removeEventListener("MozMousePixelScroll",Q)}},[I]),_t(function(){p&&A(function(Q){return Fe(Q)})},[Oe.width,p]);var je=function(){var oe,xe;(oe=Ze.current)===null||oe===void 0||oe.delayHidden(),(xe=et.current)===null||xe===void 0||xe.delayHidden()},ke=tl(R,M,Pe,c,L,function(){return be(!0)},W,je);i.useImperativeHandle(t,function(){return{getScrollInfo:re,scrollTo:function(oe){function xe(_e){return _e&&Pt(_e)==="object"&&("left"in _e||"top"in _e)}xe(oe)?(oe.left!==void 0&&A(Fe(oe.left)),ke(oe.top)):ke(oe)}}}),_t(function(){if(x){var Q=M.slice(Le,Ve+1);x(Q,M)}},[Le,Ve,M]);var Qe=cl(M,L,Pe,c),vt=$==null?void 0:$({start:Le,end:Ve,virtual:T,offsetX:F,offsetY:We,rtl:w,getSize:Qe}),pe=Jo(M,Le,Ve,p,ne,f,z),fe=null;o&&(fe=le(G({},s?"height":"maxHeight",o),dl),I&&(fe.overflowY="hidden",p&&(fe.overflowX="hidden"),ie&&(fe.pointerEvents="none")));var Ke={};return w&&(Ke.dir="rtl"),i.createElement("div",Ie({style:le(le({},u),{},{position:"relative"}),className:_},Ke,E),i.createElement(un,{onResize:Ge},i.createElement(b,{className:"".concat(r,"-holder"),style:fe,ref:R,onScroll:lt,onMouseEnter:je},i.createElement(Aa,{prefixCls:r,height:Xe,offsetX:F,offsetY:We,scrollWidth:p,onInnerResize:be,ref:B,innerProps:N,rtl:w,extra:vt},pe))),T&&Xe>o&&i.createElement(Mr,{ref:Ze,prefixCls:r,scrollOffset:D,scrollRange:Xe,rtl:w,onScroll:Je,onStartMove:he,onStopMove:X,spinSize:Ae,containerSize:Oe.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb}),T&&p>Oe.width&&i.createElement(Mr,{ref:et,prefixCls:r,scrollOffset:F,scrollRange:p,rtl:w,onScroll:Je,onStartMove:he,onStopMove:X,spinSize:st,containerSize:Oe.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb}))}var Va=i.forwardRef(fl);Va.displayName="List";function ml(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var vl=["disabled","title","children","style","className"];function Dr(e){return typeof e=="string"||typeof e=="number"}var gl=function(t,n){var r=Io(),a=r.prefixCls,o=r.id,c=r.open,l=r.multiple,s=r.mode,u=r.searchValue,m=r.toggleOpen,f=r.notFoundContent,v=r.onPopupScroll,d=i.useContext(sr),h=d.maxCount,p=d.flattenOptions,g=d.onActiveValue,b=d.defaultActiveFirstOption,S=d.onSelect,y=d.menuItemSelectedIcon,x=d.rawValues,N=d.fieldNames,$=d.virtual,C=d.direction,E=d.listHeight,I=d.listItemHeight,T=d.optionRender,w="".concat(a,"-item"),_=ji(function(){return p},[c,p],function(L,z){return z[0]&&L[1]!==z[1]}),M=i.useRef(null),R=i.useMemo(function(){return l&&typeof h<"u"&&(x==null?void 0:x.size)>=h},[l,h,x==null?void 0:x.size]),B=function(z){z.preventDefault()},k=function(z){var W;(W=M.current)===null||W===void 0||W.scrollTo(typeof z=="number"?{index:z}:z)},j=function(z){for(var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=_.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;te(z);var ue={source:W?"keyboard":"mouse"},Y=_[z];if(!Y){g(null,-1,ue);return}g(Y.value,z,ue)};i.useEffect(function(){F(b!==!1?j(0):-1)},[_.length,u]);var A=i.useCallback(function(L){return x.has(L)&&s!=="combobox"},[s,bt(x).toString(),x.size]);i.useEffect(function(){var L=setTimeout(function(){if(!l&&c&&x.size===1){var W=Array.from(x)[0],ue=_.findIndex(function(Y){var P=Y.data;return P.value===W});ue!==-1&&(F(ue),k(ue))}});if(c){var z;(z=M.current)===null||z===void 0||z.scrollTo(void 0)}return function(){return clearTimeout(L)}},[c,u]);var q=function(z){z!==void 0&&S(z,{selected:!x.has(z)}),l||m(!1)};if(i.useImperativeHandle(n,function(){return{onKeyDown:function(z){var W=z.which,ue=z.ctrlKey;switch(W){case ee.N:case ee.P:case ee.UP:case ee.DOWN:{var Y=0;if(W===ee.UP?Y=-1:W===ee.DOWN?Y=1:ml()&&ue&&(W===ee.N?Y=1:W===ee.P&&(Y=-1)),Y!==0){var P=j(ce+Y,Y);k(P),F(P,!0)}break}case ee.ENTER:{var se,ye=_[ce];ye&&!(ye!=null&&(se=ye.data)!==null&&se!==void 0&&se.disabled)&&!R?q(ye.value):q(void 0),c&&z.preventDefault();break}case ee.ESC:m(!1),c&&z.stopPropagation()}},onKeyUp:function(){},scrollTo:function(z){k(z)}}}),_.length===0)return i.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(w,"-empty"),onMouseDown:B},f);var Z=Object.keys(N).map(function(L){return N[L]}),ie=function(z){return z.label};function we(L,z){var W=L.group;return{role:W?"presentation":"option",id:"".concat(o,"_list_").concat(z)}}var he=function(z){var W=_[z];if(!W)return null;var ue=W.data||{},Y=ue.value,P=W.group,se=en(ue,!0),ye=ie(W);return W?i.createElement("div",Ie({"aria-label":typeof ye=="string"&&!P?ye:null},se,{key:z},we(W,z),{"aria-selected":A(Y)}),Y):null},X={role:"listbox",id:"".concat(o,"_list")};return i.createElement(i.Fragment,null,$&&i.createElement("div",Ie({},X,{style:{height:0,width:0,overflow:"hidden"}}),he(ce-1),he(ce),he(ce+1)),i.createElement(Va,{itemKey:"key",ref:M,data:_,height:E,itemHeight:I,fullHeight:!1,onMouseDown:B,onScroll:v,virtual:$,direction:C,innerProps:$?null:X},function(L,z){var W,ue=L.group,Y=L.groupOption,P=L.data,se=L.label,ye=L.value,ge=P.key;if(ue){var J,ne=(J=P.title)!==null&&J!==void 0?J:Dr(se)?se.toString():void 0;return i.createElement("div",{className:H(w,"".concat(w,"-group")),title:ne},se!==void 0?se:ge)}var be=P.disabled,Pe=P.title;P.children;var $e=P.style,He=P.className,Xe=yt(P,vl),Le=tn(Xe,Z),Ve=A(ye),We=be||!Ve&&R,Te="".concat(w,"-option"),Ue=H(w,Te,He,(W={},G(W,"".concat(Te,"-grouped"),Y),G(W,"".concat(Te,"-active"),ce===z&&!We),G(W,"".concat(Te,"-disabled"),We),G(W,"".concat(Te,"-selected"),Ve),W)),Oe=ie(L),tt=!y||typeof y=="function"||Ve,Ge=typeof Oe=="number"?Oe:Oe||ye,Ze=Dr(Ge)?Ge.toString():void 0;return Pe!==void 0&&(Ze=Pe),i.createElement("div",Ie({},en(Le),$?{}:we(L,z),{"aria-selected":Ve,className:Ue,title:Ze,onMouseMove:function(){ce===z||We||F(z)},onClick:function(){We||q(ye)},style:$e}),i.createElement("div",{className:"".concat(Te,"-content")},typeof T=="function"?T(L,{index:z}):Ge),i.isValidElement(y)||Ve,tt&&i.createElement(In,{className:"".concat(w,"-option-state"),customizeIcon:y,customizeIconProps:{value:ye,disabled:We,isSelected:Ve}},Ve?"✓":null))}))},hl=i.forwardRef(gl);const pl=function(e,t){var n=i.useRef({values:new Map,options:new Map}),r=i.useMemo(function(){var o=n.current,c=o.values,l=o.options,s=e.map(function(f){if(f.label===void 0){var v;return le(le({},f),{},{label:(v=c.get(f.value))===null||v===void 0?void 0:v.label})}return f}),u=new Map,m=new Map;return s.forEach(function(f){u.set(f.value,f),m.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=m,s},[e,t]),a=i.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function zn(e,t){return Ba(e).join("").toUpperCase().includes(t)}const bl=function(e,t,n,r,a){return i.useMemo(function(){if(!n||r===!1)return e;var o=t.options,c=t.label,l=t.value,s=[],u=typeof r=="function",m=n.toUpperCase(),f=u?r:function(d,h){return a?zn(h[a],m):h[o]?zn(h[c!=="children"?c:"label"],m):zn(h[l],m)},v=u?function(d){return kn(d)}:function(d){return d};return e.forEach(function(d){if(d[o]){var h=f(n,v(d));if(h)s.push(d);else{var p=d[o].filter(function(g){return f(n,v(g))});p.length&&s.push(le(le({},d),{},G({},o,p)))}return}f(n,v(d))&&s.push(d)}),s},[e,r,a,n,t])};var zr=0,Sl=Bi();function yl(){var e;return Sl?(e=zr,zr+=1):e="TEST_OR_SSR",e}function $l(e){var t=i.useState(),n=K(t,2),r=n[0],a=n[1];return i.useEffect(function(){a("rc_select_".concat(yl()))},[]),e||r}var Cl=["children","value"],xl=["children"];function wl(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,c=yt(r,Cl);return le({key:n,value:o!==void 0?o:n,children:a},c)}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Na(e).map(function(n,r){if(!i.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,c=a.key,l=a.props,s=l.children,u=yt(l,xl);return t||!o?wl(n):le(le({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},u),{},{options:Wa(s)})}).filter(function(n){return n})}var El=function(t,n,r,a,o){return i.useMemo(function(){var c=t,l=!t;l&&(c=Wa(n));var s=new Map,u=new Map,m=function(d,h,p){p&&typeof p=="string"&&d.set(h[p],h)},f=function v(d){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=0;p2&&arguments[2]!==void 0?arguments[2]:{},Se=V.source,Me=Se===void 0?"keyboard":Se;xt(U),c&&r==="combobox"&&ve!==null&&Me==="keyboard"&&Ae(String(ve))},[c,r]),re=function(U,V,Se){var Me=function(){var xe,_e=He(U);return[D?{label:_e==null?void 0:_e[ie.label],value:U,key:(xe=_e==null?void 0:_e.key)!==null&&xe!==void 0?xe:U}:U,kn(_e)]};if(V&&d){var je=Me(),ke=K(je,2),Qe=ke[0],vt=ke[1];d(Qe,vt)}else if(!V&&h&&Se!=="clear"){var pe=Me(),fe=K(pe,2),Ke=fe[0],Q=fe[1];h(Ke,Q)}},Re=jr(function(ve,U){var V,Se=A?U.selected:!0;Se?V=A?[].concat(bt($e),[ve]):[ve]:V=$e.filter(function(Me){return Me.value!==ve}),Ge(V),re(ve,Se),r==="combobox"?Ae(""):(!Yn||v)&&(L(""),Ae(""))}),de=function(U,V){Ge(U);var Se=V.type,Me=V.values;(Se==="remove"||Se==="clear")&&Me.forEach(function(je){re(je.value,!1,Se)})},Je=function(U,V){if(L(U),Ae(null),V.source==="submit"){var Se=(U||"").trim();if(Se){var Me=Array.from(new Set([].concat(bt(Le),[Se])));Ge(Me),re(Se,!0),L("")}return}V.source!=="blur"&&(r==="combobox"&&Ge(U),m==null||m(U))},lt=function(U){var V=U;r!=="tags"&&(V=U.map(function(Me){var je=ue.get(Me);return je==null?void 0:je.value}).filter(function(Me){return Me!==void 0}));var Se=Array.from(new Set([].concat(bt(Le),bt(V))));Ge(Se),Se.forEach(function(Me){re(Me,!0)})},Fe=i.useMemo(function(){var ve=T!==!1&&g!==!1;return le(le({},z),{},{flattenOptions:tt,onActiveValue:me,defaultActiveFirstOption:mt,onSelect:Re,menuItemSelectedIcon:I,rawValues:Le,fieldNames:ie,virtual:ve,direction:w,listHeight:M,listItemHeight:B,childrenAsData:q,maxCount:ce,optionRender:$})},[ce,z,tt,me,mt,Re,I,Le,ie,T,g,w,M,B,q,$]);return i.createElement(sr.Provider,{value:Fe},i.createElement(ko,Ie({},te,{id:F,prefixCls:o,ref:t,omitDomProps:Ol,mode:r,displayValues:Xe,onDisplayValuesChange:de,direction:w,searchValue:X,onSearch:Je,autoClearSearchValue:v,onSearchSplit:lt,dropdownMatchSelectWidth:g,OptionList:hl,emptyOptions:!tt.length,activeValue:st,activeDescendantId:"".concat(F,"_list_").concat(wt)})))}),fr=Nl;fr.Option=dr;fr.OptGroup=ur;const Pl=()=>{const[,e]=xn(),n=new Jt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ml=Pl,Tl=()=>{const[,e]=xn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:c,contentColor:l}=i.useMemo(()=>({borderColor:new Jt(t).onBackground(a).toHexShortString(),shadowColor:new Jt(n).onBackground(a).toHexShortString(),contentColor:new Jt(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:o},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},_l=Tl,Dl=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:c,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},zl=Bt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Ct(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Dl(a)]});var jl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=Ga,description:o,children:c,imageStyle:l,style:s}=e,u=jl(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:m,direction:f,empty:v}=i.useContext(it),d=m("empty",r),[h,p,g]=zl(d),[b]=Pa("Empty"),S=typeof o<"u"?o:b==null?void 0:b.description,y=typeof S=="string"?S:"empty";let x=null;return typeof a=="string"?x=i.createElement("img",{alt:y,src:a}):x=a,h(i.createElement("div",Object.assign({className:H(p,g,d,v==null?void 0:v.className,{[`${d}-normal`]:a===Ka,[`${d}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),s)},u),i.createElement("div",{className:`${d}-image`,style:l},x),S&&i.createElement("div",{className:`${d}-description`},S),c&&i.createElement("div",{className:`${d}-footer`},c)))};mr.PRESENTED_IMAGE_DEFAULT=Ga;mr.PRESENTED_IMAGE_SIMPLE=Ka;const Yt=mr,Bl=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(it),r=n("empty");switch(t){case"Table":case"List":return Ee.createElement(Yt,{image:Yt.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ee.createElement(Yt,{image:Yt.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return Ee.createElement(Yt,null)}},Ll=Bl,Hl=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Al(e,t){return e||Hl(t)}const Br=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Fl=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${a}${l}bottomLeft, + ${o}${l}bottomLeft + `]:{animationName:so},[` + ${a}${l}topLeft, + ${o}${l}topLeft, + ${a}${l}topRight, + ${o}${l}topRight + `]:{animationName:uo},[`${c}${l}bottomLeft`]:{animationName:fo},[` + ${c}${l}topLeft, + ${c}${l}topRight + `]:{animationName:mo},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Br(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Zt),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Br(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},$n(e,"slide-up"),$n(e,"slide-down"),Er(e,"move-up"),Er(e,"move-down")]},Ut=2,Vl=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Wl=(e,t)=>{const{componentCls:n,iconCls:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,c=Vl(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{[a]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(Ut).mul(2).equal(),paddingBlock:e.calc(c).sub(Ut).equal(),borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${O(Ut)} 0`,lineHeight:O(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:o,marginTop:Ut,marginBottom:Ut,lineHeight:O(e.calc(o).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(Ut).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ar()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:O(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function jn(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Wl(e,t),a]}const Gl=e=>{const{componentCls:t}=e,n=Ct(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ct(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[jn(e),jn(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},jn(r,"lg")]};function Bn(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Nt(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:O(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${O(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:O(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${O(r)}`,"&:after":{display:"none"}}}}}}}function Kl(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Bn(e),Bn(Ct(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${O(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Bn(Ct(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const ql=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:a,zIndexPopupBase:o,colorText:c,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:u,colorBgContainer:m,colorFillSecondary:f,controlHeightLG:v,controlHeightSM:d,colorBgContainerDisabled:h,colorTextDisabled:p}=e;return{zIndexPopup:o+50,optionSelectedColor:c,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:u,optionPadding:`${(r-t*n)/2}px ${a}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:v,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:d,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:p,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},qa=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${O(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${O(a)} ${t.activeShadowColor}`,outline:0}}}},Lr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qa(e,t))}),Xl=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},qa(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Lr(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Lr(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${O(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Xa=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${O(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Hr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Xa(e,t))}),Ul=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Xa(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Hr(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Hr(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${O(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),kl=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${O(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),Yl=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Xl(e)),Ul(e)),kl(e))}),Jl=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ql=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Zl=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Jl(e)),Ql(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Zt),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Zt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ar()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},ec=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Zl(e),Kl(e),Gl(e),Fl(e),{[`${t}-rtl`]:{direction:"rtl"}},Ma(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},tc=Bt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ct(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[ec(r),Yl(r)]},ql,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var nc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const rc=nc;var ac=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:rc}))};const ic=i.forwardRef(ac);var oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const lc=oc;var cc=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:lc}))};const Ua=i.forwardRef(cc);function sc(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:c,hasFeedback:l,prefixCls:s,showSuffixIcon:u,feedbackIcon:m,showArrow:f,componentName:v}=e;const d=n??i.createElement(Li,null),h=S=>t===null&&!l&&!f?null:i.createElement(i.Fragment,null,u!==!1&&S,l&&m);let p=null;if(t!==void 0)p=h(t);else if(o)p=h(i.createElement(ya,{spin:!0}));else{const S=`${s}-suffix`;p=y=>{let{open:x,showSearch:N}=y;return h(x&&N?i.createElement(Xi,{className:S}):i.createElement(Ua,{className:S}))}}let g=null;r!==void 0?g=r:c?g=i.createElement(ic,null):g=null;let b=null;return a!==void 0?b=a:b=i.createElement(Sa,null),{clearIcon:d,suffixIcon:p,itemIcon:g,removeIcon:b}}function uc(e,t){return t!==void 0?t:e!==null}var dc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:c,getPopupContainer:l,popupClassName:s,dropdownClassName:u,listHeight:m=256,placement:f,listItemHeight:v,size:d,disabled:h,notFoundContent:p,status:g,builtinPlacements:b,dropdownMatchSelectWidth:S,popupMatchSelectWidth:y,direction:x,style:N,allowClear:$,variant:C,dropdownStyle:E,transitionName:I,tagRender:T,maxCount:w}=e,_=dc(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:R,renderEmpty:B,direction:k,virtual:j,popupMatchSelectWidth:D,popupOverflow:ae,select:ce}=i.useContext(it),[,te]=xn(),F=v??(te==null?void 0:te.controlHeight),A=R("select",r),q=R(),Z=x??k,{compactSize:ie,compactItemClassnames:we}=Ta(A,Z),[he,X]=wa(C,a),L=ir(A),[z,W,ue]=tc(A,L),Y=i.useMemo(()=>{const{mode:Ae}=e;if(Ae!=="combobox")return Ae===ka?"combobox":Ae},[e.mode]),P=Y==="multiple"||Y==="tags",se=uc(e.suffixIcon,e.showArrow),ye=(n=y??S)!==null&&n!==void 0?n:D,{status:ge,hasFeedback:J,isFormItemInput:ne,feedbackIcon:be}=i.useContext(_a),Pe=Ea(ge,g);let $e;p!==void 0?$e=p:Y==="combobox"?$e=null:$e=(B==null?void 0:B("Select"))||i.createElement(Ll,{componentName:"Select"});const{suffixIcon:He,itemIcon:Xe,removeIcon:Le,clearIcon:Ve}=sc(Object.assign(Object.assign({},_),{multiple:P,hasFeedback:J,feedbackIcon:be,showSuffixIcon:se,prefixCls:A,componentName:"Select"})),We=$===!0?{clearIcon:Ve}:$,Te=tn(_,["suffixIcon","itemIcon"]),Ue=H(s||u,{[`${A}-dropdown-${Z}`]:Z==="rtl"},c,ue,L,W),Oe=nn(Ae=>{var nt;return(nt=d??ie)!==null&&nt!==void 0?nt:Ae}),tt=i.useContext(or),Ge=h??tt,Ze=H({[`${A}-lg`]:Oe==="large",[`${A}-sm`]:Oe==="small",[`${A}-rtl`]:Z==="rtl",[`${A}-${he}`]:X,[`${A}-in-form-item`]:ne},Kn(A,Pe,J),we,ce==null?void 0:ce.className,o,c,ue,L,W),et=i.useMemo(()=>f!==void 0?f:Z==="rtl"?"bottomRight":"bottomLeft",[f,Z]),[st]=$a("SelectLike",E==null?void 0:E.zIndex);return z(i.createElement(fr,Object.assign({ref:t,virtual:j,showSearch:ce==null?void 0:ce.showSearch},Te,{style:Object.assign(Object.assign({},ce==null?void 0:ce.style),N),dropdownMatchSelectWidth:ye,transitionName:Cn(q,"slide-up",I),builtinPlacements:Al(b,ae),listHeight:m,listItemHeight:F,mode:Y,prefixCls:A,placement:et,direction:Z,suffixIcon:He,menuItemSelectedIcon:Xe,removeIcon:Le,allowClear:We,notFoundContent:$e,className:Ze,getPopupContainer:l||M,dropdownClassName:Ue,disabled:Ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:st}),maxCount:P?w:void 0,tagRender:P?T:void 0})))},rn=i.forwardRef(fc),mc=vo(rn);rn.SECRET_COMBOBOX_MODE_DO_NOT_USE=ka;rn.Option=dr;rn.OptGroup=ur;rn._InternalPanelDoNotUseOrYouWillBeFired=mc;const On=rn;function vc(){const[,e]=i.useReducer(t=>t+1,0);return e}function gc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=i.useRef({}),n=vc(),r=Ui();return _t(()=>{const a=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}var hc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const pc=hc;var bc=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:pc}))};const Ar=i.forwardRef(bc),Sc=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,c=H({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),l=H({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),s=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:H(t,c,l,n),style:Object.assign(Object.assign({},s),r)})},Rn=Sc,yc=new Hi("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Nn=e=>({height:e,lineHeight:O(e)}),Qt=e=>Object.assign({width:e},Nn(e)),$c=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:yc,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ln=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Nn(e)),Cc=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Qt(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Qt(a)),[`${t}${t}-sm`]:Object.assign({},Qt(o))}},xc=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:c,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},Ln(t,l)),[`${r}-lg`]:Object.assign({},Ln(a,l)),[`${r}-sm`]:Object.assign({},Ln(o,l))}},Fr=e=>Object.assign({width:e},Nn(e)),wc=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:a},Fr(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Fr(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Hn=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},An=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Nn(e)),Ec=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:c,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},An(r,l))},Hn(e,r,n)),{[`${n}-lg`]:Object.assign({},An(a,l))}),Hn(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},An(o,l))}),Hn(e,o,`${n}-sm`))},Ic=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:c,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:m,gradientFromColor:f,padding:v,marginSM:d,borderRadius:h,titleHeight:p,blockRadius:g,paragraphLiHeight:b,controlHeightXS:S,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Qt(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Qt(u)),[`${n}-sm`]:Object.assign({},Qt(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:m}},[`${a}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:d,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ec(e)),Cc(e)),xc(e)),wc(e)),[`${t}${t}-block`]:{width:"100%",[`${o}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${r}, + ${a} > li, + ${n}, + ${o}, + ${c}, + ${l} + `]:Object.assign({},$c(e))}}},Oc=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},an=Bt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ct(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ic(r)]},Oc,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Rc=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:c="default"}=e,{getPrefixCls:l}=i.useContext(it),s=l("skeleton",t),[u,m,f]=an(s),v=tn(e,["prefixCls","className"]),d=H(s,`${s}-element`,{[`${s}-active`]:a},n,r,m,f);return u(i.createElement("div",{className:d},i.createElement(Rn,Object.assign({prefixCls:`${s}-avatar`,shape:o,size:c},v))))},Nc=Rc,Pc=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:c="default"}=e,{getPrefixCls:l}=i.useContext(it),s=l("skeleton",t),[u,m,f]=an(s),v=tn(e,["prefixCls"]),d=H(s,`${s}-element`,{[`${s}-active`]:a,[`${s}-block`]:o},n,r,m,f);return u(i.createElement("div",{className:d},i.createElement(Rn,Object.assign({prefixCls:`${s}-button`,size:c},v))))},Mc=Pc,Tc="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",_c=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:c}=i.useContext(it),l=c("skeleton",t),[s,u,m]=an(l),f=H(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,m);return s(i.createElement("div",{className:f},i.createElement("div",{className:H(`${l}-image`,n),style:a},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},i.createElement("path",{d:Tc,className:`${l}-image-path`})))))},Dc=_c,zc=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:c="default"}=e,{getPrefixCls:l}=i.useContext(it),s=l("skeleton",t),[u,m,f]=an(s),v=tn(e,["prefixCls"]),d=H(s,`${s}-element`,{[`${s}-active`]:a,[`${s}-block`]:o},n,r,m,f);return u(i.createElement("div",{className:d},i.createElement(Rn,Object.assign({prefixCls:`${s}-input`,size:c},v))))},jc=zc;var Bc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const Lc=Bc;var Hc=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:Lc}))};const Ac=i.forwardRef(Hc),Fc=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:c}=e,{getPrefixCls:l}=i.useContext(it),s=l("skeleton",t),[u,m,f]=an(s),v=H(s,`${s}-element`,{[`${s}-active`]:o},m,n,r,f),d=c??i.createElement(Ac,null);return u(i.createElement("div",{className:v},i.createElement("div",{className:H(`${s}-image`,n),style:a},d)))},Vc=Fc,Wc=e=>{const t=l=>{const{width:s,rows:u=2}=e;if(Array.isArray(s))return s[l];if(u-1===l)return s},{prefixCls:n,className:r,style:a,rows:o}=e,c=bt(Array(o)).map((l,s)=>i.createElement("li",{key:s,style:{width:t(s)}}));return i.createElement("ul",{className:H(n,r),style:a},c)},Gc=Wc,Kc=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return i.createElement("h3",{className:H(t,n),style:Object.assign({width:r},a)})},qc=Kc;function Fn(e){return e&&typeof e=="object"?e:{}}function Xc(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Uc(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function kc(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const on=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:c,avatar:l=!1,title:s=!0,paragraph:u=!0,active:m,round:f}=e,{getPrefixCls:v,direction:d,skeleton:h}=i.useContext(it),p=v("skeleton",t),[g,b,S]=an(p);if(n||!("loading"in e)){const y=!!l,x=!!s,N=!!u;let $;if(y){const I=Object.assign(Object.assign({prefixCls:`${p}-avatar`},Xc(x,N)),Fn(l));$=i.createElement("div",{className:`${p}-header`},i.createElement(Rn,Object.assign({},I)))}let C;if(x||N){let I;if(x){const w=Object.assign(Object.assign({prefixCls:`${p}-title`},Uc(y,N)),Fn(s));I=i.createElement(qc,Object.assign({},w))}let T;if(N){const w=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},kc(y,x)),Fn(u));T=i.createElement(Gc,Object.assign({},w))}C=i.createElement("div",{className:`${p}-content`},I,T)}const E=H(p,{[`${p}-with-avatar`]:y,[`${p}-active`]:m,[`${p}-rtl`]:d==="rtl",[`${p}-round`]:f},h==null?void 0:h.className,r,a,b,S);return g(i.createElement("div",{className:E,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},$,C))}return typeof c<"u"?c:null};on.Button=Mc;on.Avatar=Nc;on.Input=jc;on.Image=Dc;on.Node=Vc;const Yc=on;var Jc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Qc=Jc;var Zc=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:Qc}))};const Ya=i.forwardRef(Zc),Pn=i.createContext(null);var es=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,c=o===void 0?{}:o,l=c.size,s=c.align,u=s===void 0?"center":s,m=i.useState(),f=K(m,2),v=f[0],d=f[1],h=i.useRef(),p=Ee.useCallback(function(b){return typeof l=="function"?l(b):typeof l=="number"?l:b},[l]);function g(){ft.cancel(h.current)}return i.useEffect(function(){var b={};if(n)if(r){b.width=p(n.width);var S=a?"right":"left";u==="start"&&(b[S]=n[S]),u==="center"&&(b[S]=n[S]+n.width/2,b.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(b[S]=n[S]+n.width,b.transform="translateX(-100%)")}else b.height=p(n.height),u==="start"&&(b.top=n.top),u==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),u==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return g(),h.current=ft(function(){d(b)}),g},[n,r,a,u,p]),{style:v}},Vr={width:0,height:0,left:0,top:0};function ts(e,t,n){return i.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Vr,c=o.left+o.width,l=0;lR?(_=T,$.current="x"):(_=w,$.current="y"),t(-_,-_)&&I.preventDefault()}var E=i.useRef(null);E.current={onTouchStart:y,onTouchMove:x,onTouchEnd:N,onWheel:C},i.useEffect(function(){function I(M){E.current.onTouchStart(M)}function T(M){E.current.onTouchMove(M)}function w(M){E.current.onTouchEnd(M)}function _(M){E.current.onWheel(M)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",w,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",w)}},[])}function Ja(e){var t=i.useState(0),n=K(t,2),r=n[0],a=n[1],o=i.useRef(0),c=i.useRef();return c.current=e,hn(function(){var l;(l=c.current)===null||l===void 0||l.call(c)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function as(e){var t=i.useRef([]),n=i.useState({}),r=K(n,2),a=r[1],o=i.useRef(typeof e=="function"?e():e),c=Ja(function(){var s=o.current;t.current.forEach(function(u){s=u(s)}),t.current=[],o.current=s,a({})});function l(s){t.current.push(s),c()}return[o.current,l]}var qr={width:0,height:0,left:0,top:0,right:0};function is(e,t,n,r,a,o,c){var l=c.tabs,s=c.tabPosition,u=c.rtl,m,f,v;return["top","bottom"].includes(s)?(m="width",f=u?"right":"left",v=Math.abs(n)):(m="height",f="top",v=-n),i.useMemo(function(){if(!l.length)return[0,0];for(var d=l.length,h=d,p=0;pv+t){h=p-1;break}}for(var b=0,S=d-1;S>=0;S-=1){var y=e.get(l[S].key)||qr;if(y[f]=h?[0,0]:[b,h]},[e,t,r,a,o,v,s,l.map(function(d){return d.key}).join("_"),u])}function Xr(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var os="TABS_DQ";function Qa(e){return String(e).replace(/"/g,os)}function Za(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var ei=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),Ur=i.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,c={};return Pt(a)==="object"&&!i.isValidElement(a)?c=a:c.right=a,n==="right"&&(o=c.right),n==="left"&&(o=c.left),o?i.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),ls=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,c=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,u=e.moreTransitionName,m=e.style,f=e.className,v=e.editable,d=e.tabBarGutter,h=e.rtl,p=e.removeAriaLabel,g=e.onTabClick,b=e.getPopupContainer,S=e.popupClassName,y=i.useState(!1),x=K(y,2),N=x[0],$=x[1],C=i.useState(null),E=K(C,2),I=E[0],T=E[1],w="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),M=I!==null?"".concat(w,"-").concat(I):null,R=o==null?void 0:o.dropdownAriaLabel;function B(F,A){F.preventDefault(),F.stopPropagation(),v.onEdit("remove",{key:A,event:F})}var k=i.createElement(go,{onClick:function(A){var q=A.key,Z=A.domEvent;g(q,Z),$(!1)},prefixCls:"".concat(_,"-menu"),id:w,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[I],"aria-label":R!==void 0?R:"expanded dropdown"},a.map(function(F){var A=F.closable,q=F.disabled,Z=F.closeIcon,ie=F.key,we=F.label,he=Za(A,Z,v,q);return i.createElement(ho,{key:ie,id:"".concat(w,"-").concat(ie),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ie),disabled:q},i.createElement("span",null,we),he&&i.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(L){L.stopPropagation(),B(L,ie)}},Z||v.removeIcon||"×"))}));function j(F){for(var A=a.filter(function(he){return!he.disabled}),q=A.findIndex(function(he){return he.key===I})||0,Z=A.length,ie=0;iefe?"left":"right"})}),M=K(_,2),R=M[0],B=M[1],k=Wr(0,function(pe,fe){!w&&p&&p({direction:pe>fe?"top":"bottom"})}),j=K(k,2),D=j[0],ae=j[1],ce=i.useState([0,0]),te=K(ce,2),F=te[0],A=te[1],q=i.useState([0,0]),Z=K(q,2),ie=Z[0],we=Z[1],he=i.useState([0,0]),X=K(he,2),L=X[0],z=X[1],W=i.useState([0,0]),ue=K(W,2),Y=ue[0],P=ue[1],se=as(new Map),ye=K(se,2),ge=ye[0],J=ye[1],ne=ts(y,ge,ie[0]),be=gn(F,w),Pe=gn(ie,w),$e=gn(L,w),He=gn(Y,w),Xe=beTe?Te:pe}var Oe=i.useRef(null),tt=i.useState(),Ge=K(tt,2),Ze=Ge[0],et=Ge[1];function st(){et(Date.now())}function Ae(){Oe.current&&clearTimeout(Oe.current)}rs(C,function(pe,fe){function Ke(Q,oe){Q(function(xe){var _e=Ue(xe+oe);return _e})}return Xe?(w?Ke(B,pe):Ke(ae,fe),Ae(),st(),!0):!1}),i.useEffect(function(){return Ae(),Ze&&(Oe.current=setTimeout(function(){et(0)},100)),Ae},[Ze]);var nt=is(ne,Le,w?R:D,Pe,$e,He,le(le({},e),{},{tabs:y})),qe=K(nt,2),wt=qe[0],xt=qe[1],mt=qn(function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,fe=ne.get(pe)||{width:0,height:0,left:0,right:0,top:0};if(w){var Ke=R;l?fe.rightR+Le&&(Ke=fe.right+fe.width-Le):fe.left<-R?Ke=-fe.left:fe.left+fe.width>-R+Le&&(Ke=-(fe.left+fe.width-Le)),ae(0),B(Ue(Ke))}else{var Q=D;fe.top<-D?Q=-fe.top:fe.top+fe.height>-D+Le&&(Q=-(fe.top+fe.height-Le)),B(0),ae(Ue(Q))}}),me={};f==="top"||f==="bottom"?me[l?"marginRight":"marginLeft"]=v:me.marginTop=v;var re=y.map(function(pe,fe){var Ke=pe.key;return i.createElement(ss,{id:a,prefixCls:S,key:Ke,tab:pe,style:fe===0?void 0:me,closable:pe.closable,editable:u,active:Ke===c,renderWrapper:d,removeAriaLabel:m==null?void 0:m.removeAriaLabel,onClick:function(oe){h(Ke,oe)},onFocus:function(){mt(Ke),st(),C.current&&(l||(C.current.scrollLeft=0),C.current.scrollTop=0)}})}),Re=function(){return J(function(){var fe,Ke=new Map,Q=(fe=E.current)===null||fe===void 0?void 0:fe.getBoundingClientRect();return y.forEach(function(oe){var xe,_e=oe.key,at=(xe=E.current)===null||xe===void 0?void 0:xe.querySelector('[data-node-key="'.concat(Qa(_e),'"]'));if(at){var Et=us(at,Q),gt=K(Et,4),ht=gt[0],Dt=gt[1],It=gt[2],$t=gt[3];Ke.set(_e,{width:ht,height:Dt,left:It,top:$t})}}),Ke})};i.useEffect(function(){Re()},[y.map(function(pe){return pe.key}).join("_")]);var de=Ja(function(){var pe=kt(x),fe=kt(N),Ke=kt($);A([pe[0]-fe[0]-Ke[0],pe[1]-fe[1]-Ke[1]]);var Q=kt(T);z(Q);var oe=kt(I);P(oe);var xe=kt(E);we([xe[0]-Q[0],xe[1]-Q[1]]),Re()}),Je=y.slice(0,wt),lt=y.slice(xt+1),Fe=[].concat(bt(Je),bt(lt)),ve=ne.get(c),U=es({activeTabOffset:ve,horizontal:w,indicator:g,rtl:l}),V=U.style;i.useEffect(function(){mt()},[c,We,Te,Xr(ve),Xr(ne),w]),i.useEffect(function(){de()},[l]);var Se=!!Fe.length,Me="".concat(S,"-nav-wrap"),je,ke,Qe,vt;return w?l?(ke=R>0,je=R!==Te):(je=R<0,ke=R!==We):(Qe=D<0,vt=D!==We),i.createElement(un,{onResize:de},i.createElement("div",{ref:tr(t,x),role:"tablist",className:H("".concat(S,"-nav"),n),style:r,onKeyDown:function(){st()}},i.createElement(Ur,{ref:N,position:"left",extra:s,prefixCls:S}),i.createElement(un,{onResize:de},i.createElement("div",{className:H(Me,G(G(G(G({},"".concat(Me,"-ping-left"),je),"".concat(Me,"-ping-right"),ke),"".concat(Me,"-ping-top"),Qe),"".concat(Me,"-ping-bottom"),vt)),ref:C},i.createElement(un,{onResize:de},i.createElement("div",{ref:E,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(D,"px)"),transition:Ze?"none":void 0}},re,i.createElement(ei,{ref:T,prefixCls:S,locale:m,editable:u,style:le(le({},re.length===0?void 0:me),{},{visibility:Se?"hidden":null})}),i.createElement("div",{className:H("".concat(S,"-ink-bar"),G({},"".concat(S,"-ink-bar-animated"),o.inkBar)),style:V}))))),i.createElement(cs,Ie({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:I,prefixCls:S,tabs:Fe,className:!Se&&Ve,tabMoving:!!Ze})),i.createElement(Ur,{ref:$,position:"right",extra:s,prefixCls:S})))}),ti=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,c=e.active,l=e.tabKey,s=e.children;return i.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!c,style:a,className:H(n,c&&"".concat(n,"-active"),r),ref:t},s)}),ds=["renderTabBar"],fs=["label","key"],ms=function(t){var n=t.renderTabBar,r=yt(t,ds),a=i.useContext(Pn),o=a.tabs;if(n){var c=le(le({},r),{},{panes:o.map(function(l){var s=l.label,u=l.key,m=yt(l,fs);return i.createElement(ti,Ie({tab:s,key:u,tabKey:u},m))})});return n(c,kr)}return i.createElement(kr,r)},vs=["key","forceRender","style","className","destroyInactiveTabPane"],gs=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,c=t.destroyInactiveTabPane,l=i.useContext(Pn),s=l.prefixCls,u=l.tabs,m=a.tabPane,f="".concat(s,"-tabpane");return i.createElement("div",{className:H("".concat(s,"-content-holder"))},i.createElement("div",{className:H("".concat(s,"-content"),"".concat(s,"-content-").concat(o),G({},"".concat(s,"-content-animated"),m))},u.map(function(v){var d=v.key,h=v.forceRender,p=v.style,g=v.className,b=v.destroyInactiveTabPane,S=yt(v,vs),y=d===r;return i.createElement(Gn,Ie({key:d,visible:y,forceRender:h,removeOnLeave:!!(c||b),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(x,N){var $=x.style,C=x.className;return i.createElement(ti,Ie({},S,{prefixCls:f,id:n,tabKey:d,animated:m,active:y,style:le(le({},p),$),className:H(g,C),ref:N}))})})))};function hs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=le({inkBar:!0},Pt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ps=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Yr=0,bs=i.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,c=e.items,l=e.direction,s=e.activeKey,u=e.defaultActiveKey,m=e.editable,f=e.animated,v=e.tabPosition,d=v===void 0?"top":v,h=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,b=e.locale,S=e.moreIcon,y=e.moreTransitionName,x=e.destroyInactiveTabPane,N=e.renderTabBar,$=e.onChange,C=e.onTabClick,E=e.onTabScroll,I=e.getPopupContainer,T=e.popupClassName,w=e.indicator,_=yt(e,ps),M=i.useMemo(function(){return(c||[]).filter(function(P){return P&&Pt(P)==="object"&&"key"in P})},[c]),R=l==="rtl",B=hs(f),k=i.useState(!1),j=K(k,2),D=j[0],ae=j[1];i.useEffect(function(){ae(cr())},[]);var ce=jt(function(){var P;return(P=M[0])===null||P===void 0?void 0:P.key},{value:s,defaultValue:u}),te=K(ce,2),F=te[0],A=te[1],q=i.useState(function(){return M.findIndex(function(P){return P.key===F})}),Z=K(q,2),ie=Z[0],we=Z[1];i.useEffect(function(){var P=M.findIndex(function(ye){return ye.key===F});if(P===-1){var se;P=Math.max(0,Math.min(ie,M.length-1)),A((se=M[P])===null||se===void 0?void 0:se.key)}we(P)},[M.map(function(P){return P.key}).join("_"),F,ie]);var he=jt(null,{value:n}),X=K(he,2),L=X[0],z=X[1];i.useEffect(function(){n||(z("rc-tabs-".concat(Yr)),Yr+=1)},[]);function W(P,se){C==null||C(P,se);var ye=P!==F;A(P),ye&&($==null||$(P))}var ue={id:L,activeKey:F,animated:B,tabPosition:d,rtl:R,mobile:D},Y=le(le({},ue),{},{editable:m,locale:b,moreIcon:S,moreTransitionName:y,tabBarGutter:h,onTabClick:W,onTabScroll:E,extra:g,style:p,panes:null,getPopupContainer:I,popupClassName:T,indicator:w});return i.createElement(Pn.Provider,{value:{tabs:M,prefixCls:a}},i.createElement("div",Ie({ref:t,id:n,className:H(a,"".concat(a,"-").concat(d),G(G(G({},"".concat(a,"-mobile"),D),"".concat(a,"-editable"),m),"".concat(a,"-rtl"),R),o)},_),i.createElement(ms,Ie({},Y,{renderTabBar:N})),i.createElement(gs,Ie({destroyInactiveTabPane:x},ue,{animated:B}))))});const Ss={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ys(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Ss),{motionName:Cn(e,"switch")})),n}var $s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function xs(e,t){if(e)return e;const n=Na(t).map(r=>{if(i.isValidElement(r)){const{key:a,props:o}=r,c=o||{},{tab:l}=c,s=$s(c,["tab"]);return Object.assign(Object.assign({key:String(a)},s),{label:l})}return null});return Cs(n)}const ws=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[$n(e,"slide-up"),$n(e,"slide-down")]]},Es=ws,Is=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${O(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:O(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:O(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${O(e.borderRadiusLG)} 0 0 ${O(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Os=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${O(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Zt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${O(e.paddingXXS)} ${O(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Rs=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:c,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${O(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:O(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ns=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${O(e.borderRadius)} ${O(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${O(e.borderRadius)} ${O(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${O(e.borderRadius)} ${O(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${O(e.borderRadius)} 0 0 ${O(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ps=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:c,itemSelectedColor:l,itemColor:s}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},wn(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},Ms=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:O(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:O(e.marginXS)},marginLeft:{_skip_check_:!0,value:O(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ts=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:c,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${O(e.paddingXS)}`,background:"transparent",border:`${O(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:c}},wn(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ps(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},_s=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Ds=Bt("Tabs",e=>{const t=Ct(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${O(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${O(e.horizontalItemGutter)}`});return[Ns(t),Ms(t),Rs(t),Os(t),Is(t),Ts(t),Es(t)]},_s),zs=()=>null,js=zs;var Bs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,o,c,l;const{type:s,className:u,rootClassName:m,size:f,onEdit:v,hideAdd:d,centered:h,addIcon:p,moreIcon:g,popupClassName:b,children:S,items:y,animated:x,style:N,indicatorSize:$,indicator:C}=e,E=Bs(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=E,{direction:T,tabs:w,getPrefixCls:_,getPopupContainer:M}=i.useContext(it),R=_("tabs",I),B=ir(R),[k,j,D]=Ds(R,B);let ae;s==="editable-card"&&(ae={onEdit:(ie,we)=>{let{key:he,event:X}=we;v==null||v(ie==="add"?X:he,ie)},removeIcon:i.createElement(Sa,null),addIcon:(p??(w==null?void 0:w.addIcon))||i.createElement(Ya,null),showAdd:d!==!0});const ce=_(),te=nn(f),F=xs(y,S),A=ys(R,x),q=Object.assign(Object.assign({},w==null?void 0:w.style),N),Z={align:(t=C==null?void 0:C.align)!==null&&t!==void 0?t:(n=w==null?void 0:w.indicator)===null||n===void 0?void 0:n.align,size:(c=(a=(r=C==null?void 0:C.size)!==null&&r!==void 0?r:$)!==null&&a!==void 0?a:(o=w==null?void 0:w.indicator)===null||o===void 0?void 0:o.size)!==null&&c!==void 0?c:w==null?void 0:w.indicatorSize};return k(i.createElement(bs,Object.assign({direction:T,getPopupContainer:M,moreTransitionName:`${ce}-slide-up`},E,{items:F,className:H({[`${R}-${te}`]:te,[`${R}-card`]:["card","editable-card"].includes(s),[`${R}-editable-card`]:s==="editable-card",[`${R}-centered`]:h},w==null?void 0:w.className,u,m,j,D,B),popupClassName:H(b,j,D,B),style:q,editable:ae,moreIcon:(l=g??(w==null?void 0:w.moreIcon))!==null&&l!==void 0?l:i.createElement(bo,null),prefixCls:R,animated:A,indicator:Z})))};ni.TabPane=js;const Ls=ni;var Hs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=Hs(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=i.useContext(it),c=o("card",t),l=H(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},a,{className:l}))},ri=As,Fs=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${O(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)} 0 0`},En()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Zt),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Vs=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${O(a)} 0 0 0 ${n}, + 0 ${O(a)} 0 0 ${n}, + ${O(a)} ${O(a)} 0 0 ${n}, + ${O(a)} 0 0 0 ${n} inset, + 0 ${O(a)} 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Ws=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${O(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)}`},En()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:O(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:O(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${O(e.lineWidth)} ${e.lineType} ${o}`}}})},Gs=e=>Object.assign(Object.assign({margin:`${O(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},En()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Zt),"&-description":{color:e.colorTextDescription}}),Ks=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${O(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${O(e.padding)} ${O(n)}`}}},qs=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Xs=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:a,colorBorderSecondary:o,boxShadowTertiary:c,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},Nt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:c},[`${n}-head`]:Fs(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)}`},En()),[`${n}-grid`]:Vs(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:Ws(e),[`${n}-meta`]:Gs(e)}),[`${n}-bordered`]:{border:`${O(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${O(e.borderRadiusLG)} ${O(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:a}}},[`${n}-type-inner`]:Ks(e),[`${n}-loading`]:qs(e),[`${n}-rtl`]:{direction:"rtl"}}},Us=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${O(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ks=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),Ys=Bt("Card",e=>{const t=Ct(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Xs(t),Us(t)]},ks);var Jr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return i.createElement("ul",{className:t,style:r},n.map((a,o)=>{const c=`action-${o}`;return i.createElement("li",{style:{width:`${100/n.length}%`},key:c},i.createElement("span",null,a))}))},Qs=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:c,headStyle:l={},bodyStyle:s={},title:u,loading:m,bordered:f=!0,size:v,type:d,cover:h,actions:p,tabList:g,children:b,activeTabKey:S,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:N,tabProps:$={},classNames:C,styles:E}=e,I=Jr(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:T,direction:w,card:_}=i.useContext(it),M=ge=>{var J;(J=e.onTabChange)===null||J===void 0||J.call(e,ge)},R=ge=>{var J;return H((J=_==null?void 0:_.classNames)===null||J===void 0?void 0:J[ge],C==null?void 0:C[ge])},B=ge=>{var J;return Object.assign(Object.assign({},(J=_==null?void 0:_.styles)===null||J===void 0?void 0:J[ge]),E==null?void 0:E[ge])},k=i.useMemo(()=>{let ge=!1;return i.Children.forEach(b,J=>{J&&J.type&&J.type===ri&&(ge=!0)}),ge},[b]),j=T("card",n),[D,ae,ce]=Ys(j),te=i.createElement(Yc,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),F=S!==void 0,A=Object.assign(Object.assign({},$),{[F?"activeKey":"defaultActiveKey"]:F?S:y,tabBarExtraContent:x});let q;const Z=nn(v),ie=!Z||Z==="default"?"large":Z,we=g?i.createElement(Ls,Object.assign({size:ie},A,{className:`${j}-head-tabs`,onChange:M,items:g.map(ge=>{var{tab:J}=ge,ne=Jr(ge,["tab"]);return Object.assign({label:J},ne)})})):null;if(u||c||we){const ge=H(`${j}-head`,R("header")),J=H(`${j}-head-title`,R("title")),ne=H(`${j}-extra`,R("extra")),be=Object.assign(Object.assign({},l),B("header"));q=i.createElement("div",{className:ge,style:be},i.createElement("div",{className:`${j}-head-wrapper`},u&&i.createElement("div",{className:J,style:B("title")},u),c&&i.createElement("div",{className:ne,style:B("extra")},c)),we)}const he=H(`${j}-cover`,R("cover")),X=h?i.createElement("div",{className:he,style:B("cover")},h):null,L=H(`${j}-body`,R("body")),z=Object.assign(Object.assign({},s),B("body")),W=i.createElement("div",{className:L,style:z},m?te:b),ue=H(`${j}-actions`,R("actions")),Y=p&&p.length?i.createElement(Js,{actionClasses:ue,actionStyle:B("actions"),actions:p}):null,P=tn(I,["onTabChange"]),se=H(j,_==null?void 0:_.className,{[`${j}-loading`]:m,[`${j}-bordered`]:f,[`${j}-hoverable`]:N,[`${j}-contain-grid`]:k,[`${j}-contain-tabs`]:g&&g.length,[`${j}-${Z}`]:Z,[`${j}-type-${d}`]:!!d,[`${j}-rtl`]:w==="rtl"},r,a,ae,ce),ye=Object.assign(Object.assign({},_==null?void 0:_.style),o);return D(i.createElement("div",Object.assign({ref:t},P,{className:se,style:ye}),q,X,W,Y))}),Zs=Qs;var eu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,c=eu(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=i.useContext(it),s=l("card",t),u=H(`${s}-meta`,n),m=r?i.createElement("div",{className:`${s}-meta-avatar`},r):null,f=a?i.createElement("div",{className:`${s}-meta-title`},a):null,v=o?i.createElement("div",{className:`${s}-meta-description`},o):null,d=f||v?i.createElement("div",{className:`${s}-meta-detail`},f,v):null;return i.createElement("div",Object.assign({},c,{className:u}),m,d)},nu=tu,vr=Zs;vr.Grid=ri;vr.Meta=nu;const ru=vr;var au={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const iu=au;var ou=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:iu}))};const lu=i.forwardRef(ou);function Jn(){return typeof BigInt=="function"}function ai(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Kt(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",c=a[1]||"0";o==="0"&&c==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:o,decimalStr:c,fullStr:"".concat(l).concat(r)}}function gr(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Gt(e){var t=String(e);if(gr(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&hr(t)?t.length-t.indexOf(".")-1:0}function Mn(e){var t=String(e);if(gr(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Jn()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Kt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),su=function(){function e(t){if(rr(this,e),G(this,"origin",""),G(this,"number",void 0),G(this,"empty",void 0),ai(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return nr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Mn(this.number):this.origin}}]),e}();function Rt(e){return Jn()?new cu(e):new su(e)}function bn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Kt(e),o=a.negativeStr,c=a.integerStr,l=a.decimalStr,s="".concat(t).concat(l),u="".concat(o).concat(c);if(n>=0){var m=Number(l[n]);if(m>=5&&!r){var f=Rt(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-m));return bn(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?u:"".concat(u).concat(s)}function uu(e,t){var n=i.useRef(null);function r(){try{var o=e.selectionStart,c=e.selectionEnd,l=e.value,s=l.substring(0,o),u=l.substring(c);n.current={start:o,end:c,value:l,beforeTxt:s,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,c=n.current,l=c.beforeTxt,s=c.afterTxt,u=c.start,m=o.length;if(o.endsWith(s))m=o.length-n.current.afterTxt.length;else if(o.startsWith(l))m=l.length;else{var f=l[u-1],v=o.indexOf(f,u-1);v!==-1&&(m=v+1)}e.setSelectionRange(m,m)}catch(d){er(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(d.message))}}return[r,a]}var du=function(){var t=i.useState(!1),n=K(t,2),r=n[0],a=n[1];return _t(function(){a(cr())},[]),r},fu=200,mu=600;function vu(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,c=e.onStep,l=i.useRef(),s=i.useRef([]),u=i.useRef();u.current=c;var m=function(){clearTimeout(l.current)},f=function(y,x){y.preventDefault(),m(),u.current(x);function N(){u.current(x),l.current=setTimeout(N,fu)}l.current=setTimeout(N,mu)};i.useEffect(function(){return function(){m(),s.current.forEach(function(S){return ft.cancel(S)})}},[]);var v=du();if(v)return null;var d="".concat(t,"-handler"),h=H(d,"".concat(d,"-up"),G({},"".concat(d,"-up-disabled"),a)),p=H(d,"".concat(d,"-down"),G({},"".concat(d,"-down-disabled"),o)),g=function(){return s.current.push(ft(m))},b={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return i.createElement("div",{className:"".concat(d,"-wrap")},i.createElement("span",Ie({},b,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",Ie({},b,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:p}),r||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Qr(e){var t=typeof e=="number"?Mn(e):Kt(e).fullStr,n=t.includes(".");return n?Kt(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const gu=function(){var e=i.useRef(0),t=function(){ft.cancel(e.current)};return i.useEffect(function(){return t},[]),function(n){t(),e.current=ft(function(){n()})}};var hu=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],pu=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Zr=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},ea=function(t){var n=Rt(t);return n.isInvalidate()?null:n},bu=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-input-number":r,o=e.className,c=e.style,l=e.min,s=e.max,u=e.step,m=u===void 0?1:u,f=e.defaultValue,v=e.value,d=e.disabled,h=e.readOnly,p=e.upHandler,g=e.downHandler,b=e.keyboard,S=e.changeOnWheel,y=S===void 0?!1:S,x=e.controls,N=x===void 0?!0:x;e.classNames;var $=e.stringMode,C=e.parser,E=e.formatter,I=e.precision,T=e.decimalSeparator,w=e.onChange,_=e.onInput,M=e.onPressEnter,R=e.onStep,B=e.changeOnBlur,k=B===void 0?!0:B,j=yt(e,hu),D="".concat(a,"-input"),ae=i.useRef(null),ce=i.useState(!1),te=K(ce,2),F=te[0],A=te[1],q=i.useRef(!1),Z=i.useRef(!1),ie=i.useRef(!1),we=i.useState(function(){return Rt(v??f)}),he=K(we,2),X=he[0],L=he[1];function z(me){v===void 0&&L(me)}var W=i.useCallback(function(me,re){if(!re)return I>=0?I:Math.max(Gt(me),Gt(m))},[I,m]),ue=i.useCallback(function(me){var re=String(me);if(C)return C(re);var Re=re;return T&&(Re=Re.replace(T,".")),Re.replace(/[^\w.-]+/g,"")},[C,T]),Y=i.useRef(""),P=i.useCallback(function(me,re){if(E)return E(me,{userTyping:re,input:String(Y.current)});var Re=typeof me=="number"?Mn(me):me;if(!re){var de=W(Re,re);if(hr(Re)&&(T||de>=0)){var Je=T||".";Re=bn(Re,Je,de)}}return Re},[E,W,T]),se=i.useState(function(){var me=f??v;return X.isInvalidate()&&["string","number"].includes(Pt(me))?Number.isNaN(me)?"":me:P(X.toString(),!1)}),ye=K(se,2),ge=ye[0],J=ye[1];Y.current=ge;function ne(me,re){J(P(me.isInvalidate()?me.toString(!1):me.toString(!re),re))}var be=i.useMemo(function(){return ea(s)},[s,I]),Pe=i.useMemo(function(){return ea(l)},[l,I]),$e=i.useMemo(function(){return!be||!X||X.isInvalidate()?!1:be.lessEquals(X)},[be,X]),He=i.useMemo(function(){return!Pe||!X||X.isInvalidate()?!1:X.lessEquals(Pe)},[Pe,X]),Xe=uu(ae.current,F),Le=K(Xe,2),Ve=Le[0],We=Le[1],Te=function(re){return be&&!re.lessEquals(be)?be:Pe&&!Pe.lessEquals(re)?Pe:null},Ue=function(re){return!Te(re)},Oe=function(re,Re){var de=re,Je=Ue(de)||de.isEmpty();if(!de.isEmpty()&&!Re&&(de=Te(de)||de,Je=!0),!h&&!d&&Je){var lt=de.toString(),Fe=W(lt,Re);return Fe>=0&&(de=Rt(bn(lt,".",Fe)),Ue(de)||(de=Rt(bn(lt,".",Fe,!0)))),de.equals(X)||(z(de),w==null||w(de.isEmpty()?null:Zr($,de)),v===void 0&&ne(de,Re)),de}return X},tt=gu(),Ge=function me(re){if(Ve(),Y.current=re,J(re),!Z.current){var Re=ue(re),de=Rt(Re);de.isNaN()||Oe(de,!0)}_==null||_(re),tt(function(){var Je=re;C||(Je=re.replace(/。/g,".")),Je!==re&&me(Je)})},Ze=function(){Z.current=!0},et=function(){Z.current=!1,Ge(ae.current.value)},st=function(re){Ge(re.target.value)},Ae=function(re){var Re;if(!(re&&$e||!re&&He)){q.current=!1;var de=Rt(ie.current?Qr(m):m);re||(de=de.negate());var Je=(X||Rt(0)).add(de.toString()),lt=Oe(Je,!1);R==null||R(Zr($,lt),{offset:ie.current?Qr(m):m,type:re?"up":"down"}),(Re=ae.current)===null||Re===void 0||Re.focus()}},nt=function(re){var Re=Rt(ue(ge)),de=Re;Re.isNaN()?de=Oe(X,re):de=Oe(Re,re),v!==void 0?ne(X,!1):de.isNaN()||ne(de,!1)},qe=function(){q.current=!0},wt=function(re){var Re=re.key,de=re.shiftKey;q.current=!0,ie.current=de,Re==="Enter"&&(Z.current||(q.current=!1),nt(!1),M==null||M(re)),b!==!1&&!Z.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Re)&&(Ae(Re==="Up"||Re==="ArrowUp"),re.preventDefault())},xt=function(){q.current=!1,ie.current=!1};i.useEffect(function(){if(y&&F){var me=function(de){Ae(de.deltaY<0),de.preventDefault()},re=ae.current;if(re)return re.addEventListener("wheel",me,{passive:!1}),function(){return re.removeEventListener("wheel",me)}}});var mt=function(){k&&nt(!1),A(!1),q.current=!1};return hn(function(){X.isInvalidate()||ne(X,!1)},[I,E]),hn(function(){var me=Rt(v);L(me);var re=Rt(ue(ge));(!me.equals(re)||!q.current||E)&&ne(me,q.current)},[v]),hn(function(){E&&We()},[ge]),i.createElement("div",{className:H(a,o,(n={},G(n,"".concat(a,"-focused"),F),G(n,"".concat(a,"-disabled"),d),G(n,"".concat(a,"-readonly"),h),G(n,"".concat(a,"-not-a-number"),X.isNaN()),G(n,"".concat(a,"-out-of-range"),!X.isInvalidate()&&!Ue(X)),n)),style:c,onFocus:function(){A(!0)},onBlur:mt,onKeyDown:wt,onKeyUp:xt,onCompositionStart:Ze,onCompositionEnd:et,onBeforeInput:qe},N&&i.createElement(vu,{prefixCls:a,upNode:p,downNode:g,upDisabled:$e,downDisabled:He,onStep:Ae}),i.createElement("div",{className:"".concat(D,"-wrap")},i.createElement("input",Ie({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:m},j,{ref:Zn(ae,t),className:D,value:ge,onChange:st,disabled:d,readOnly:h}))))}),ii=i.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=e.value,c=e.prefix,l=e.suffix,s=e.addonBefore,u=e.addonAfter,m=e.className,f=e.classNames,v=yt(e,pu),d=i.useRef(null),h=function(g){d.current&&Yi(d.current,g)};return i.createElement(ki,{className:m,triggerFocus:h,prefixCls:a,value:o,disabled:n,style:r,prefix:c,suffix:l,addonAfter:u,addonBefore:s,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},i.createElement(bu,Ie({prefixCls:a,disabled:n,ref:Zn(d,t),className:f==null?void 0:f.input},v)))});ii.displayName="InputNumber";const Su=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},Ia(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Jt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},ta=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},yu=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,fontSizeLG:o,controlHeightLG:c,controlHeightSM:l,colorError:s,paddingInlineSM:u,paddingBlockSM:m,paddingBlockLG:f,paddingInlineLG:v,colorTextDescription:d,motionDurationMid:h,handleHoverColor:p,paddingInline:g,paddingBlock:b,handleBg:S,handleActiveBg:y,colorTextDisabled:x,borderRadiusSM:N,borderRadiusLG:$,controlWidth:C,handleOpacity:E,handleBorderColor:I,filledHandleBg:T,lineHeightLG:w,calc:_}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),lr(e)),{display:"inline-block",width:C,margin:0,padding:0,borderRadius:a}),Ji(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${O(n)} ${r} ${I}`}}})),Qi(e,{[`${t}-handler-wrap`]:{background:T,[`${t}-handler-down`]:{borderBlockStart:`${O(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),Zi(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:w,borderRadius:$,[`input${t}-input`]:{height:_(c).sub(_(n).mul(2)).equal(),padding:`${O(f)} ${O(v)}`}},"&-sm":{padding:0,borderRadius:N,[`input${t}-input`]:{height:_(l).sub(_(n).mul(2)).equal(),padding:`${O(m)} ${O(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Nt(e)),eo(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:N}}},to(e)),no(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{width:"100%",padding:`${O(b)} ${O(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),ro(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:E,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${O(n)} ${r} ${I}`,transition:`all ${h} linear`,"&:active":{background:y},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ar()),{color:d,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},ta(e,"lg")),ta(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:x}})}]},$u=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:c,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:u,paddingBlockLG:m,paddingBlockSM:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${O(n)} 0`}},lr(e)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:c,paddingInlineStart:s,[`input${t}-input`]:{padding:`${O(m)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${O(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:a}}})}},Cu=Bt("InputNumber",e=>{const t=Ct(e,Oa(e));return[yu(t),$u(t),Ma(t)]},Su,{unitless:{handleOpacity:!0}});var xu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=i.useContext(it),a=i.useRef(null);i.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:c,size:l,disabled:s,prefixCls:u,addonBefore:m,addonAfter:f,prefix:v,bordered:d,readOnly:h,status:p,controls:g,variant:b}=e,S=xu(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),y=n("input-number",u),x=ir(y),[N,$,C]=Cu(y,x),{compactSize:E,compactItemClassnames:I}=Ta(y,r);let T=i.createElement(lu,{className:`${y}-handler-up-inner`}),w=i.createElement(Ua,{className:`${y}-handler-down-inner`});const _=typeof g=="boolean"?g:void 0;typeof g=="object"&&(T=typeof g.upIcon>"u"?T:i.createElement("span",{className:`${y}-handler-up-inner`},g.upIcon),w=typeof g.downIcon>"u"?w:i.createElement("span",{className:`${y}-handler-down-inner`},g.downIcon));const{hasFeedback:M,status:R,isFormItemInput:B,feedbackIcon:k}=i.useContext(_a),j=Ea(R,p),D=nn(we=>{var he;return(he=l??E)!==null&&he!==void 0?he:we}),ae=i.useContext(or),ce=s??ae,[te,F]=wa(b,d),A=M&&i.createElement(i.Fragment,null,k),q=H({[`${y}-lg`]:D==="large",[`${y}-sm`]:D==="small",[`${y}-rtl`]:r==="rtl",[`${y}-in-form-item`]:B},$),Z=`${y}-group`,ie=i.createElement(ii,Object.assign({ref:a,disabled:ce,className:H(C,x,o,c,I),upHandler:T,downHandler:w,prefixCls:y,readOnly:h,controls:_,prefix:v,suffix:A,addonAfter:f&&i.createElement(Xn,null,i.createElement(Un,{override:!0,status:!0},f)),addonBefore:m&&i.createElement(Xn,null,i.createElement(Un,{override:!0,status:!0},m)),classNames:{input:q,variant:H({[`${y}-${te}`]:F},Kn(y,j,M)),affixWrapper:H({[`${y}-affix-wrapper-sm`]:D==="small",[`${y}-affix-wrapper-lg`]:D==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl"},$),wrapper:H({[`${Z}-rtl`]:r==="rtl"},$),groupWrapper:H({[`${y}-group-wrapper-sm`]:D==="small",[`${y}-group-wrapper-lg`]:D==="large",[`${y}-group-wrapper-rtl`]:r==="rtl",[`${y}-group-wrapper-${te}`]:F},Kn(`${y}-group-wrapper`,j,M),$)}},S));return N(ie)}),li=oi,wu=e=>i.createElement(Ai,{theme:{components:{InputNumber:{handleVisible:!0}}}},i.createElement(oi,Object.assign({},e)));li._InternalPanelDoNotUseOrYouWillBeFired=wu;const na=li;var ra=i.createContext(null),ci=i.createContext({}),Eu=function(t){var n=t.prefixCls,r=t.className,a=t.style,o=t.children,c=t.containerRef,l=t.id,s=t.onMouseEnter,u=t.onMouseOver,m=t.onMouseLeave,f=t.onClick,v=t.onKeyDown,d=t.onKeyUp,h={onMouseEnter:s,onMouseOver:u,onMouseLeave:m,onClick:f,onKeyDown:v,onKeyUp:d},p=i.useContext(ci),g=p.panel,b=tr(g,c);return i.createElement(i.Fragment,null,i.createElement("div",Ie({id:l,className:H("".concat(n,"-content"),r),style:le({},a),"aria-modal":"true",role:"dialog",ref:b},h),o))};function aa(e){return typeof e=="string"&&String(Number(e))===e?(er(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var ia={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Iu(e,t){var n,r,a,o=e.prefixCls,c=e.open,l=e.placement,s=e.inline,u=e.push,m=e.forceRender,f=e.autoFocus,v=e.keyboard,d=e.classNames,h=e.rootClassName,p=e.rootStyle,g=e.zIndex,b=e.className,S=e.id,y=e.style,x=e.motion,N=e.width,$=e.height,C=e.children,E=e.mask,I=e.maskClosable,T=e.maskMotion,w=e.maskClassName,_=e.maskStyle,M=e.afterOpenChange,R=e.onClose,B=e.onMouseEnter,k=e.onMouseOver,j=e.onMouseLeave,D=e.onClick,ae=e.onKeyDown,ce=e.onKeyUp,te=e.styles,F=i.useRef(),A=i.useRef(),q=i.useRef();i.useImperativeHandle(t,function(){return F.current});var Z=function(be){var Pe=be.keyCode,$e=be.shiftKey;switch(Pe){case ee.TAB:{if(Pe===ee.TAB){if(!$e&&document.activeElement===q.current){var He;(He=A.current)===null||He===void 0||He.focus({preventScroll:!0})}else if($e&&document.activeElement===A.current){var Xe;(Xe=q.current)===null||Xe===void 0||Xe.focus({preventScroll:!0})}}break}case ee.ESC:{R&&v&&(be.stopPropagation(),R(be));break}}};i.useEffect(function(){if(c&&f){var ne;(ne=F.current)===null||ne===void 0||ne.focus({preventScroll:!0})}},[c]);var ie=i.useState(!1),we=K(ie,2),he=we[0],X=we[1],L=i.useContext(ra),z;u===!1?z={distance:0}:u===!0?z={}:z=u||{};var W=(n=(r=(a=z)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:L==null?void 0:L.pushDistance)!==null&&n!==void 0?n:180,ue=i.useMemo(function(){return{pushDistance:W,push:function(){X(!0)},pull:function(){X(!1)}}},[W]);i.useEffect(function(){if(c){var ne;L==null||(ne=L.push)===null||ne===void 0||ne.call(L)}else{var be;L==null||(be=L.pull)===null||be===void 0||be.call(L)}},[c]),i.useEffect(function(){return function(){var ne;L==null||(ne=L.pull)===null||ne===void 0||ne.call(L)}},[]);var Y=E&&i.createElement(Gn,Ie({key:"mask"},T,{visible:c}),function(ne,be){var Pe=ne.className,$e=ne.style;return i.createElement("div",{className:H("".concat(o,"-mask"),Pe,d==null?void 0:d.mask,w),style:le(le(le({},$e),_),te==null?void 0:te.mask),onClick:I&&c?R:void 0,ref:be})}),P=typeof x=="function"?x(l):x,se={};if(he&&W)switch(l){case"top":se.transform="translateY(".concat(W,"px)");break;case"bottom":se.transform="translateY(".concat(-W,"px)");break;case"left":se.transform="translateX(".concat(W,"px)");break;default:se.transform="translateX(".concat(-W,"px)");break}l==="left"||l==="right"?se.width=aa(N):se.height=aa($);var ye={onMouseEnter:B,onMouseOver:k,onMouseLeave:j,onClick:D,onKeyDown:ae,onKeyUp:ce},ge=i.createElement(Gn,Ie({key:"panel"},P,{visible:c,forceRender:m,onVisibleChanged:function(be){M==null||M(be)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(ne,be){var Pe=ne.className,$e=ne.style;return i.createElement("div",Ie({className:H("".concat(o,"-content-wrapper"),d==null?void 0:d.wrapper,Pe),style:le(le(le({},se),$e),te==null?void 0:te.wrapper)},en(e,{data:!0})),i.createElement(Eu,Ie({id:S,containerRef:be,prefixCls:o,className:H(b,d==null?void 0:d.content),style:le(le({},y),te==null?void 0:te.content)},ye),C))}),J=le({},p);return g&&(J.zIndex=g),i.createElement(ra.Provider,{value:ue},i.createElement("div",{className:H(o,"".concat(o,"-").concat(l),h,G(G({},"".concat(o,"-open"),c),"".concat(o,"-inline"),s)),style:J,tabIndex:-1,ref:F,onKeyDown:Z},Y,i.createElement("div",{tabIndex:0,ref:A,style:ia,"aria-hidden":"true","data-sentinel":"start"}),ge,i.createElement("div",{tabIndex:0,ref:q,style:ia,"aria-hidden":"true","data-sentinel":"end"})))}var Ou=i.forwardRef(Iu),Ru=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,c=t.placement,l=c===void 0?"right":c,s=t.autoFocus,u=s===void 0?!0:s,m=t.keyboard,f=m===void 0?!0:m,v=t.width,d=v===void 0?378:v,h=t.mask,p=h===void 0?!0:h,g=t.maskClosable,b=g===void 0?!0:g,S=t.getContainer,y=t.forceRender,x=t.afterOpenChange,N=t.destroyOnClose,$=t.onMouseEnter,C=t.onMouseOver,E=t.onMouseLeave,I=t.onClick,T=t.onKeyDown,w=t.onKeyUp,_=t.panelRef,M=i.useState(!1),R=K(M,2),B=R[0],k=R[1],j=i.useState(!1),D=K(j,2),ae=D[0],ce=D[1];_t(function(){ce(!0)},[]);var te=ae?r:!1,F=i.useRef(),A=i.useRef();_t(function(){te&&(A.current=document.activeElement)},[te]);var q=function(X){var L;if(k(X),x==null||x(X),!X&&A.current&&!((L=F.current)!==null&&L!==void 0&&L.contains(A.current))){var z;(z=A.current)===null||z===void 0||z.focus({preventScroll:!0})}},Z=i.useMemo(function(){return{panel:_}},[_]);if(!y&&!B&&!te&&N)return null;var ie={onMouseEnter:$,onMouseOver:C,onMouseLeave:E,onClick:I,onKeyDown:T,onKeyUp:w},we=le(le({},t),{},{open:te,prefixCls:o,placement:l,autoFocus:u,keyboard:f,width:d,mask:p,maskClosable:b,inline:S===!1,afterOpenChange:q,ref:F},ie);return i.createElement(ci.Provider,{value:Z},i.createElement(Co,{open:te||y||B,autoDestroy:!1,getContainer:S,autoLock:p&&(te||B)},i.createElement(Ou,we)))};const Nu=e=>{var t,n;const{prefixCls:r,title:a,footer:o,extra:c,closeIcon:l,closable:s,onClose:u,headerStyle:m,bodyStyle:f,footerStyle:v,children:d,classNames:h,styles:p}=e,{drawer:g}=i.useContext(it),b=i.useCallback($=>i.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},$),[u]),[S,y]=So(s,typeof l<"u"?l:g==null?void 0:g.closeIcon,b,void 0,!0),x=i.useMemo(()=>{var $,C;return!a&&!S?null:i.createElement("div",{style:Object.assign(Object.assign(Object.assign({},($=g==null?void 0:g.styles)===null||$===void 0?void 0:$.header),m),p==null?void 0:p.header),className:H(`${r}-header`,{[`${r}-header-close-only`]:S&&!a&&!c},(C=g==null?void 0:g.classNames)===null||C===void 0?void 0:C.header,h==null?void 0:h.header)},i.createElement("div",{className:`${r}-header-title`},y,a&&i.createElement("div",{className:`${r}-title`},a)),c&&i.createElement("div",{className:`${r}-extra`},c))},[S,y,c,m,r,a]),N=i.useMemo(()=>{var $,C;if(!o)return null;const E=`${r}-footer`;return i.createElement("div",{className:H(E,($=g==null?void 0:g.classNames)===null||$===void 0?void 0:$.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(C=g==null?void 0:g.styles)===null||C===void 0?void 0:C.footer),v),p==null?void 0:p.footer)},o)},[o,v,r]);return i.createElement(i.Fragment,null,x,i.createElement("div",{className:H(`${r}-body`,h==null?void 0:h.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),f),p==null?void 0:p.body)},d),N)},si=Nu,Pu=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},ui=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),di=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},ui({opacity:e},{opacity:1})),Mu=(e,t)=>[di(.7,t),ui({transform:Pu(e)},{transform:"none"})],Tu=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:di(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:Mu(a,n)}),{})}}},_u=Tu,Du=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:c,padding:l,paddingLG:s,fontSizeLG:u,lineHeightLG:m,lineWidth:f,lineType:v,colorSplit:d,marginSM:h,colorIcon:p,colorIconHover:g,colorText:b,fontWeightStrong:S,footerPaddingBlock:y,footerPaddingInline:x}=e,N=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[N]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${N}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${N}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${N}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${N}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${O(l)} ${O(s)}`,fontSize:u,lineHeight:m,borderBottom:`${O(f)} ${v} ${d}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:p,fontWeight:S,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${c}`,textRendering:"auto","&:focus, &:hover":{color:g,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:m},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${O(y)} ${O(x)}`,borderTop:`${O(f)} ${v} ${d}`},"&-rtl":{direction:"rtl"}}}},zu=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),fi=Bt("Drawer",e=>{const t=Ct(e,{});return[Du(t),_u(t)]},zu);var mi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:c=ju,open:l,afterOpenChange:s,onClose:u,prefixCls:m,getContainer:f,style:v,className:d,visible:h,afterVisibleChange:p,maskStyle:g,drawerStyle:b,contentWrapperStyle:S}=e,y=mi(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:x,getPrefixCls:N,direction:$,drawer:C}=i.useContext(it),E=N("drawer",m),[I,T,w]=fi(E),_=f===void 0&&x?()=>x(document.body):f,M=H({"no-mask":!o,[`${E}-rtl`]:$==="rtl"},t,T,w),R=i.useMemo(()=>n??(a==="large"?736:378),[n,a]),B=i.useMemo(()=>r??(a==="large"?736:378),[r,a]),k={motionName:Cn(E,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},j=Z=>({motionName:Cn(E,`panel-motion-${Z}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),D=yo(),[ae,ce]=$a("Drawer",y.zIndex),{classNames:te={},styles:F={}}=y,{classNames:A={},styles:q={}}=C||{};return I(i.createElement(Xn,null,i.createElement(Un,{status:!0,override:!0},i.createElement(Fi.Provider,{value:ce},i.createElement(Ru,Object.assign({prefixCls:E,onClose:u,maskMotion:k,motion:j},y,{classNames:{mask:H(te.mask,A.mask),content:H(te.content,A.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},F.mask),g),q.mask),content:Object.assign(Object.assign(Object.assign({},F.content),b),q.content),wrapper:Object.assign(Object.assign(Object.assign({},F.wrapper),S),q.wrapper)},open:l??h,mask:o,push:c,width:R,height:B,style:Object.assign(Object.assign({},C==null?void 0:C.style),v),className:H(C==null?void 0:C.className,d),rootClassName:M,getContainer:_,afterOpenChange:s??p,panelRef:D,zIndex:ae}),i.createElement(si,Object.assign({prefixCls:E},y,{onClose:u})))))))},Bu=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=mi(e,["prefixCls","style","className","placement"]),{getPrefixCls:c}=i.useContext(it),l=c("drawer",t),[s,u,m]=fi(l),f=H(l,`${l}-pure`,`${l}-${a}`,u,m,r);return s(i.createElement("div",{className:f,style:n},i.createElement(si,Object.assign({prefixCls:l},o))))};vi._InternalPanelDoNotUseOrYouWillBeFired=Bu;const Lu=vi;var Hu={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"};const Au=Hu;var Fu=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:Au}))};const oa=i.forwardRef(Fu);var Vu={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"};const Wu=Vu;var Gu=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:Wu}))};const la=i.forwardRef(Gu);var Ku={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:"页码"},qu=["10","20","50","100"],Xu=function(t){var n=t.pageSizeOptions,r=n===void 0?qu:n,a=t.locale,o=t.changeSize,c=t.pageSize,l=t.goButton,s=t.quickGo,u=t.rootPrefixCls,m=t.selectComponentClass,f=t.selectPrefixCls,v=t.disabled,d=t.buildOptionText,h=Ee.useState(""),p=K(h,2),g=p[0],b=p[1],S=function(){return!g||Number.isNaN(g)?void 0:Number(g)},y=typeof d=="function"?d:function(R){return"".concat(R," ").concat(a.items_per_page)},x=function(B){o==null||o(Number(B))},N=function(B){b(B.target.value)},$=function(B){l||g===""||(b(""),!(B.relatedTarget&&(B.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||B.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(s==null||s(S())))},C=function(B){g!==""&&(B.keyCode===ee.ENTER||B.type==="click")&&(b(""),s==null||s(S()))},E=function(){return r.some(function(B){return B.toString()===c.toString()})?r:r.concat([c.toString()]).sort(function(B,k){var j=Number.isNaN(Number(B))?0:Number(B),D=Number.isNaN(Number(k))?0:Number(k);return j-D})},I="".concat(u,"-options");if(!o&&!s)return null;var T=null,w=null,_=null;if(o&&m){var M=E().map(function(R,B){return Ee.createElement(m.Option,{key:B,value:R.toString()},y(R))});T=Ee.createElement(m,{disabled:v,prefixCls:f,showSearch:!1,className:"".concat(I,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(c||r[0]).toString(),onChange:x,getPopupContainer:function(B){return B.parentNode},"aria-label":a.page_size,defaultOpen:!1},M)}return s&&(l&&(_=typeof l=="boolean"?Ee.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:v,className:"".concat(I,"-quick-jumper-button")},a.jump_to_confirm):Ee.createElement("span",{onClick:C,onKeyUp:C},l)),w=Ee.createElement("div",{className:"".concat(I,"-quick-jumper")},a.jump_to,Ee.createElement("input",{disabled:v,type:"text",value:g,onChange:N,onKeyUp:C,onBlur:$,"aria-label":a.page}),a.page,_)),Ee.createElement("li",{className:I},T,w)},cn=function(t){var n,r=t.rootPrefixCls,a=t.page,o=t.active,c=t.className,l=t.showTitle,s=t.onClick,u=t.onKeyPress,m=t.itemRender,f="".concat(r,"-item"),v=H(f,"".concat(f,"-").concat(a),(n={},G(n,"".concat(f,"-active"),o),G(n,"".concat(f,"-disabled"),!a),n),c),d=function(){s(a)},h=function(b){u(b,s,a)},p=m(a,"page",Ee.createElement("a",{rel:"nofollow"},a));return p?Ee.createElement("li",{title:l?String(a):null,className:v,onClick:d,onKeyDown:h,tabIndex:0},p):null},Uu=function(t,n,r){return r};function ca(){}function sa(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Vt(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var ku=function(t){var n,r=t.prefixCls,a=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,c=o===void 0?"rc-select":o,l=t.className,s=t.selectComponentClass,u=t.current,m=t.defaultCurrent,f=m===void 0?1:m,v=t.total,d=v===void 0?0:v,h=t.pageSize,p=t.defaultPageSize,g=p===void 0?10:p,b=t.onChange,S=b===void 0?ca:b,y=t.hideOnSinglePage,x=t.showPrevNextJumpers,N=x===void 0?!0:x,$=t.showQuickJumper,C=t.showLessItems,E=t.showTitle,I=E===void 0?!0:E,T=t.onShowSizeChange,w=T===void 0?ca:T,_=t.locale,M=_===void 0?Ku:_,R=t.style,B=t.totalBoundaryShowSizeChanger,k=B===void 0?50:B,j=t.disabled,D=t.simple,ae=t.showTotal,ce=t.showSizeChanger,te=t.pageSizeOptions,F=t.itemRender,A=F===void 0?Uu:F,q=t.jumpPrevIcon,Z=t.jumpNextIcon,ie=t.prevIcon,we=t.nextIcon,he=Ee.useRef(null),X=jt(10,{value:h,defaultValue:g}),L=K(X,2),z=L[0],W=L[1],ue=jt(1,{value:u,defaultValue:f,postState:function(Be){return Math.max(1,Math.min(Be,Vt(void 0,z,d)))}}),Y=K(ue,2),P=Y[0],se=Y[1],ye=Ee.useState(P),ge=K(ye,2),J=ge[0],ne=ge[1];i.useEffect(function(){ne(P)},[P]);var be=Math.max(1,P-(C?3:5)),Pe=Math.min(Vt(void 0,z,d),P+(C?3:5));function $e(Ce,Be){var Ye=Ce||Ee.createElement("button",{type:"button","aria-label":Be,className:"".concat(a,"-item-link")});return typeof Ce=="function"&&(Ye=Ee.createElement(Ce,le({},t))),Ye}function He(Ce){var Be=Ce.target.value,Ye=Vt(void 0,z,d),Ot;return Be===""?Ot=Be:Number.isNaN(Number(Be))?Ot=J:Be>=Ye?Ot=Ye:Ot=Number(Be),Ot}function Xe(Ce){return sa(Ce)&&Ce!==P&&sa(d)&&d>0}var Le=d>z?$:!1;function Ve(Ce){(Ce.keyCode===ee.UP||Ce.keyCode===ee.DOWN)&&Ce.preventDefault()}function We(Ce){var Be=He(Ce);switch(Be!==J&&ne(Be),Ce.keyCode){case ee.ENTER:Oe(Be);break;case ee.UP:Oe(Be-1);break;case ee.DOWN:Oe(Be+1);break}}function Te(Ce){Oe(He(Ce))}function Ue(Ce){var Be=Vt(Ce,z,d),Ye=P>Be&&Be!==0?Be:P;W(Ce),ne(Ye),w==null||w(P,Ce),se(Ye),S==null||S(Ye,Ce)}function Oe(Ce){if(Xe(Ce)&&!j){var Be=Vt(void 0,z,d),Ye=Ce;return Ce>Be?Ye=Be:Ce<1&&(Ye=1),Ye!==J&&ne(Ye),se(Ye),S==null||S(Ye,z),Ye}return P}var tt=P>1,Ge=Pk;function et(){tt&&Oe(P-1)}function st(){Ge&&Oe(P+1)}function Ae(){Oe(be)}function nt(){Oe(Pe)}function qe(Ce,Be){if(Ce.key==="Enter"||Ce.charCode===ee.ENTER||Ce.keyCode===ee.ENTER){for(var Ye=arguments.length,Ot=new Array(Ye>2?Ye-2:0),qt=2;qtd?d:P*z])),ve=null,U=Vt(void 0,z,d);if(y&&d<=z)return null;var V=[],Se={rootPrefixCls:a,onClick:Oe,onKeyPress:qe,showTitle:I,itemRender:A,page:-1},Me=P-1>0?P-1:0,je=P+1=pe*2&&P!==3&&(V[0]=Ee.cloneElement(V[0],{className:H("".concat(a,"-item-after-jump-prev"),V[0].props.className)}),V.unshift(Je)),U-P>=pe*2&&P!==U-2){var gt=V[V.length-1];V[V.length-1]=Ee.cloneElement(gt,{className:H("".concat(a,"-item-before-jump-next"),gt.props.className)}),V.push(ve)}_e!==1&&V.unshift(Ee.createElement(cn,Ie({},Se,{key:1,page:1}))),at!==U&&V.push(Ee.createElement(cn,Ie({},Se,{key:U,page:U})))}var ht=re(Me);if(ht){var Dt=!tt||!U;ht=Ee.createElement("li",{title:I?M.prev_page:null,onClick:et,tabIndex:Dt?null:0,onKeyDown:wt,className:H("".concat(a,"-prev"),G({},"".concat(a,"-disabled"),Dt)),"aria-disabled":Dt},ht)}var It=Re(je);if(It){var $t,ln;D?($t=!Ge,ln=tt?0:null):($t=!Ge||!U,ln=$t?null:0),It=Ee.createElement("li",{title:I?M.next_page:null,onClick:st,tabIndex:ln,onKeyDown:xt,className:H("".concat(a,"-next"),G({},"".concat(a,"-disabled"),$t)),"aria-disabled":$t},It)}var _n=H(a,l,(n={},G(n,"".concat(a,"-simple"),D),G(n,"".concat(a,"-disabled"),j),n));return Ee.createElement("ul",Ie({className:_n,style:R,ref:he},lt),Fe,ht,D?vt:V,It,Ee.createElement(Xu,{locale:M,rootPrefixCls:a,disabled:j,selectComponentClass:s,selectPrefixCls:c,changeSize:Ze?Ue:null,pageSize:z,pageSizeOptions:te,quickGo:Le?Oe:null,goButton:Qe}))};const gi=e=>i.createElement(On,Object.assign({},e,{showSearch:!0,size:"small"})),hi=e=>i.createElement(On,Object.assign({},e,{showSearch:!0,size:"middle"}));gi.Option=On.Option;hi.Option=On.Option;const Yu=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ju=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:O(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:O(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:O(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:O(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:O(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:O(e.itemSizeSM),input:Object.assign(Object.assign({},ao(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Qu=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:O(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:O(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${O(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${O(e.inputOutlineOffset)} 0 ${O(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Zu=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}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${O(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${O(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:O(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},lr(e)),io(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},oo(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},ed=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:O(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${O(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${O(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},td=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:O(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ed(e)),Zu(e)),Qu(e)),Ju(e)),Yu(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"}}},nd=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},wn(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},wr(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},wr(e))}}}},pi=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ia(e)),bi=e=>Ct(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Oa(e)),rd=Bt("Pagination",e=>{const t=bi(e);return[td(t),nd(t)]},pi),ad=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${O(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},id=Vi(["Pagination","bordered"],e=>{const t=bi(e);return[ad(t)]},pi);var od=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:a,style:o,size:c,locale:l,selectComponentClass:s,responsive:u,showSizeChanger:m}=e,f=od(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:v}=gc(u),[,d]=xn(),{getPrefixCls:h,direction:p,pagination:g={}}=i.useContext(it),b=h("pagination",t),[S,y,x]=rd(b),N=m??g.showSizeChanger,$=i.useMemo(()=>{const R=i.createElement("span",{className:`${b}-item-ellipsis`},"•••"),B=i.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},p==="rtl"?i.createElement(Ir,null):i.createElement(Ar,null)),k=i.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},p==="rtl"?i.createElement(Ar,null):i.createElement(Ir,null)),j=i.createElement("a",{className:`${b}-item-link`},i.createElement("div",{className:`${b}-item-container`},p==="rtl"?i.createElement(la,{className:`${b}-item-link-icon`}):i.createElement(oa,{className:`${b}-item-link-icon`}),R)),D=i.createElement("a",{className:`${b}-item-link`},i.createElement("div",{className:`${b}-item-container`},p==="rtl"?i.createElement(oa,{className:`${b}-item-link-icon`}):i.createElement(la,{className:`${b}-item-link-icon`}),R));return{prevIcon:B,nextIcon:k,jumpPrevIcon:j,jumpNextIcon:D}},[p,b]),[C]=Pa("Pagination",Wi),E=Object.assign(Object.assign({},C),l),I=nn(c),T=I==="small"||!!(v&&!I&&u),w=h("select",n),_=H({[`${b}-mini`]:T,[`${b}-rtl`]:p==="rtl",[`${b}-bordered`]:d.wireframe},g==null?void 0:g.className,r,a,y,x),M=Object.assign(Object.assign({},g==null?void 0:g.style),o);return S(i.createElement(i.Fragment,null,d.wireframe&&i.createElement(id,{prefixCls:b}),i.createElement(ku,Object.assign({},$,f,{style:M,prefixCls:b,selectPrefixCls:w,className:_,selectComponentClass:s||(T?gi:hi),locale:E,showSizeChanger:N}))))},cd=ld;var sd=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Si=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,c=e.checked,l=e.defaultChecked,s=e.disabled,u=e.loadingIcon,m=e.checkedChildren,f=e.unCheckedChildren,v=e.onClick,d=e.onChange,h=e.onKeyDown,p=yt(e,sd),g=jt(!1,{value:c,defaultValue:l}),b=K(g,2),S=b[0],y=b[1];function x(E,I){var T=S;return s||(T=E,y(T),d==null||d(T,I)),T}function N(E){E.which===ee.LEFT?x(!1,E):E.which===ee.RIGHT&&x(!0,E),h==null||h(E)}function $(E){var I=x(!S,E);v==null||v(I,E)}var C=H(a,o,(n={},G(n,"".concat(a,"-checked"),S),G(n,"".concat(a,"-disabled"),s),n));return i.createElement("button",Ie({},p,{type:"button",role:"switch","aria-checked":S,disabled:s,className:C,ref:t,onKeyDown:N,onClick:$}),u,i.createElement("span",{className:"".concat(a,"-inner")},i.createElement("span",{className:"".concat(a,"-inner-checked")},m),i.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});Si.displayName="Switch";const ud=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:c,handleSizeSM:l,calc:s}=e,u=`${t}-inner`,m=O(s(l).add(s(r).mul(2)).equal()),f=O(s(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:O(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:o,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${f})`,marginInlineEnd:`calc(100% - ${m} + ${f})`},[`${u}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:c,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${f})`,marginInlineEnd:`calc(-100% + ${m} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${O(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},dd=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},fd=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:c}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${O(c(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},md=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:c,calc:l}=e,s=`${t}-inner`,u=O(l(c).add(l(r).mul(2)).equal()),m=O(l(o).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${m})`,marginInlineEnd:`calc(100% - ${u} + ${m})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${m})`,marginInlineEnd:`calc(-100% + ${u} - ${m})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},vd=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${O(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),wn(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},gd=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,c=r/2,l=2,s=o-l*2,u=c-l*2;return{trackHeight:o,trackHeightSM:c,trackMinWidth:s*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:a,handleSize:s,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Jt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},hd=Bt("Switch",e=>{const t=Ct(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[vd(t),md(t),fd(t),dd(t),ud(t)]},gd);var pd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:c,rootClassName:l,style:s,checked:u,value:m,defaultChecked:f,defaultValue:v,onChange:d}=e,h=pd(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,g]=jt(!1,{value:u??m,defaultValue:f??v}),{getPrefixCls:b,direction:S,switch:y}=i.useContext(it),x=i.useContext(or),N=(a??x)||o,$=b("switch",n),C=i.createElement("div",{className:`${$}-handle`},o&&i.createElement(ya,{className:`${$}-loading-icon`})),[E,I,T]=hd($),w=nn(r),_=H(y==null?void 0:y.className,{[`${$}-small`]:w==="small",[`${$}-loading`]:o,[`${$}-rtl`]:S==="rtl"},c,l,I,T),M=Object.assign(Object.assign({},y==null?void 0:y.style),s),R=function(){g(arguments.length<=0?void 0:arguments[0]),d==null||d.apply(void 0,arguments)};return E(i.createElement(xo,{component:"Switch"},i.createElement(Si,Object.assign({},h,{checked:p,onChange:R,prefixCls:$,className:_,style:M,disabled:N,ref:t,loadingIcon:C}))))});yi.__ANT_SWITCH=!0;const bd=yi;var Sd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const yd=Sd;var $d=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:yd}))};const Cd=i.forwardRef($d);var xd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const wd=xd;var Ed=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:wd}))};const ua=i.forwardRef(Ed);var Id={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const Od=Id;var Rd=function(t,n){return i.createElement(Mt,Ie({},t,{ref:n,icon:Od}))};const Nd=i.forwardRef(Rd);var Pd=function(e){return function(t,n){var r=i.useRef(!1);e(function(){return function(){r.current=!1}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n)}},dt=function(){return dt=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0)&&!(a=r.next()).done;)o.push(a.value)}catch(l){c={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return o}function ct(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r-1&&(a=setTimeout(function(){Sn.delete(e)},t)),Sn.set(e,dt(dt({},n),{timer:a}))},Bd=function(e){return Sn.get(e)},yn=new Map,Ld=function(e){return yn.get(e)},Hd=function(e,t){yn.set(e,t),t.then(function(n){return yn.delete(e),n}).catch(function(){yn.delete(e)})},Wt={},Ad=function(e,t){Wt[e]&&Wt[e].forEach(function(n){return n(t)})},Vn=function(e,t){return Wt[e]||(Wt[e]=[]),Wt[e].push(t),function(){var r=Wt[e].indexOf(t);Wt[e].splice(r,1)}},Fd=function(e,t){var n=t.cacheKey,r=t.cacheTime,a=r===void 0?5*60*1e3:r,o=t.staleTime,c=o===void 0?0:o,l=t.setCache,s=t.getCache,u=i.useRef(),m=i.useRef(),f=function(d,h){l?l(h):jd(d,a,h),Ad(d,h.data)},v=function(d,h){return h===void 0&&(h=[]),s?s(h):Bd(d)};return Ci(function(){if(n){var d=v(n);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(c===-1||new Date().getTime()-d.time<=c)&&(e.state.loading=!1)),u.current=Vn(n,function(h){e.setState({data:h})})}},[]),br(function(){var d;(d=u.current)===null||d===void 0||d.call(u)}),n?{onBefore:function(d){var h=v(n,d);return!h||!Object.hasOwnProperty.call(h,"data")?{}:c===-1||new Date().getTime()-h.time<=c?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(d,h){var p=Ld(n);return p&&p!==m.current?{servicePromise:p}:(p=d.apply(void 0,ct([],ot(h),!1)),m.current=p,Hd(n,p),{servicePromise:p})},onSuccess:function(d,h){var p;n&&((p=u.current)===null||p===void 0||p.call(u),f(n,{data:d,params:h,time:new Date().getTime()}),u.current=Vn(n,function(g){e.setState({data:g})}))},onMutate:function(d){var h;n&&((h=u.current)===null||h===void 0||h.call(u),f(n,{data:d,params:e.state.params,time:new Date().getTime()}),u.current=Vn(n,function(p){e.setState({data:p})}))}}:{}};const Vd=Fd;function Wd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Sr=Wd,Gd=typeof vn=="object"&&vn&&vn.Object===Object&&vn,Kd=Gd,qd=Kd,Xd=typeof self=="object"&&self&&self.Object===Object&&self,Ud=qd||Xd||Function("return this")(),wi=Ud,kd=wi,Yd=function(){return kd.Date.now()},Jd=Yd,Qd=/\s/;function Zd(e){for(var t=e.length;t--&&Qd.test(e.charAt(t)););return t}var ef=Zd,tf=ef,nf=/^\s+/;function rf(e){return e&&e.slice(0,tf(e)+1).replace(nf,"")}var af=rf,of=wi,lf=of.Symbol,Ei=lf,da=Ei,Ii=Object.prototype,cf=Ii.hasOwnProperty,sf=Ii.toString,sn=da?da.toStringTag:void 0;function uf(e){var t=cf.call(e,sn),n=e[sn];try{e[sn]=void 0;var r=!0}catch{}var a=sf.call(e);return r&&(t?e[sn]=n:delete e[sn]),a}var df=uf,ff=Object.prototype,mf=ff.toString;function vf(e){return mf.call(e)}var gf=vf,fa=Ei,hf=df,pf=gf,bf="[object Null]",Sf="[object Undefined]",ma=fa?fa.toStringTag:void 0;function yf(e){return e==null?e===void 0?Sf:bf:ma&&ma in Object(e)?hf(e):pf(e)}var $f=yf;function Cf(e){return e!=null&&typeof e=="object"}var xf=Cf,wf=$f,Ef=xf,If="[object Symbol]";function Of(e){return typeof e=="symbol"||Ef(e)&&wf(e)==If}var Rf=Of,Nf=af,va=Sr,Pf=Rf,ga=NaN,Mf=/^[-+]0x[0-9a-f]+$/i,Tf=/^0b[01]+$/i,_f=/^0o[0-7]+$/i,Df=parseInt;function zf(e){if(typeof e=="number")return e;if(Pf(e))return ga;if(va(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=va(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Nf(e);var n=Tf.test(e);return n||_f.test(e)?Df(e.slice(2),n?2:8):Mf.test(e)?ga:+e}var jf=zf,Bf=Sr,Wn=Jd,ha=jf,Lf="Expected a function",Hf=Math.max,Af=Math.min;function Ff(e,t,n){var r,a,o,c,l,s,u=0,m=!1,f=!1,v=!0;if(typeof e!="function")throw new TypeError(Lf);t=ha(t)||0,Bf(n)&&(m=!!n.leading,f="maxWait"in n,o=f?Hf(ha(n.maxWait)||0,t):o,v="trailing"in n?!!n.trailing:v);function d($){var C=r,E=a;return r=a=void 0,u=$,c=e.apply(E,C),c}function h($){return u=$,l=setTimeout(b,t),m?d($):c}function p($){var C=$-s,E=$-u,I=t-C;return f?Af(I,o-E):I}function g($){var C=$-s,E=$-u;return s===void 0||C>=t||C<0||f&&E>=o}function b(){var $=Wn();if(g($))return S($);l=setTimeout(b,p($))}function S($){return l=void 0,v&&r?d($):(r=a=void 0,c)}function y(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function x(){return l===void 0?c:S(Wn())}function N(){var $=Wn(),C=g($);if(r=arguments,a=this,s=$,C){if(l===void 0)return h(s);if(f)return clearTimeout(l),l=setTimeout(b,t),d(s)}return l===void 0&&(l=setTimeout(b,t)),c}return N.cancel=y,N.flush=x,N}var Oi=Ff;const Vf=Ca(Oi);var Wf=function(e,t){var n=t.debounceWait,r=t.debounceLeading,a=t.debounceTrailing,o=t.debounceMaxWait,c=i.useRef(),l=i.useMemo(function(){var s={};return r!==void 0&&(s.leading=r),a!==void 0&&(s.trailing=a),o!==void 0&&(s.maxWait=o),s},[r,a,o]);return i.useEffect(function(){if(n){var s=e.runAsync.bind(e);return c.current=Vf(function(u){u()},n,l),e.runAsync=function(){for(var u=[],m=0;m-1&&fn.splice(n,1)}}if(Tn){var pa=function(){if(!(!yr()||!Qf()))for(var e=0;eC&&(N=Math.max(1,C));var E=ot(s.params||[]),I=E[0],T=I===void 0?{}:I,w=E.slice(1);s.run.apply(s,ct([dt(dt({},T),{current:N,pageSize:$})],ot(w),!1))},b=function(y){g(y,d)},S=function(y){g(f,y)};return dt(dt({},s),{pagination:{current:f,pageSize:d,total:h,totalPage:p,onChange:zt(g),changeCurrent:zt(b),changePageSize:zt(S)}})};function bm(e,t){const{onOpen:n,onClose:r}=t||{},[a,o]=i.useState(e??!1),c=i.useCallback(()=>{o(u=>u||(n==null||n(),!0))},[n]),l=i.useCallback(()=>{o(u=>u&&(r==null||r(),!1))},[r]),s=i.useCallback(()=>{a?l():c()},[l,c,a]);return[a,{open:c,close:l,toggle:s}]}const Sm=({actionRef:e,onFinish:t})=>{const[n]=Ft.useForm(),[r,a]=i.useState(),o=!!r,[c,{open:l,close:s}]=bm(),u=Ft.useWatch("rateLimitEnabled",n),m=i.useMemo(()=>o?r:{rateLimitEnabled:!1,rateLimitCount:1,rateLimitDuration:60},[o,r]),f=()=>{s(),n.resetFields()},v=Ri(async()=>{const d=await n.validateFields();if(!d)return!1;let h=!0;if(!o){const{error:p}=await Gi(d);p||(xa.success("App created successfully"),n.resetFields()),h=!p}return h&&t&&(s(),t()),h},{manual:!0});return i.useEffect(()=>{e!=null&&e.current||(e.current={openModal:d=>{a(d),n.setFieldsValue({name:d==null?void 0:d.name}),l()}})},[n,l]),ze.jsx(Ra,{title:o?"Edit app":"Create app",open:c,onCancel:f,okButtonProps:{htmlType:"submit",loading:v.loading},onOk:v.run,children:ze.jsxs(Ft,{labelCol:{span:5},form:n,initialValues:m,children:[ze.jsx(Ft.Item,{label:"Name",name:"name",rules:[{required:!0,message:"Please input app name!"}],children:ze.jsx(lo,{placeholder:"App name",maxLength:12})}),ze.jsxs(Ft.Item,{noStyle:!0,children:[ze.jsx(Ft.Item,{label:"Rate limit",name:"rateLimitEnabled",children:ze.jsx(bd,{})}),u&&ze.jsxs("div",{className:"flex items-center space-x-2",children:[ze.jsx(Ft.Item,{name:"rateLimitCount",className:"!mb-0",rules:[{required:!0,message:"Required!"}],children:ze.jsx(na,{placeholder:"Limit count"})}),ze.jsx("span",{children:"messages per"}),ze.jsx(Ft.Item,{name:"rateLimitDuration",className:"!mb-0",rules:[{required:!0,message:"Required!"}],children:ze.jsx(na,{placeholder:"per second"})}),ze.jsx("span",{children:"seconds / phone"})]})]})]})})},{useModal:ym}=Ra,ba=12,Im=()=>{var v,d,h,p;const[e,t]=ym(),[n,r]=xa.useMessage(),[a,o]=i.useState(null),c=i.useRef(),l=pm(async({current:g,pageSize:b})=>{const{error:S,data:y}=await Ki({limit:b,offset:(g-1)*b});return S?[]:y},{defaultPageSize:ba}),s=g=>{e.confirm({title:`Delete app "${g.name}"?`,content:"This operation is irreversible.",okButtonProps:{danger:!0},onOk:async()=>{const{error:b}=await qi(g.id);b||(n.success("App deleted successfully."),l.refresh())}})},u=()=>{var g;(g=c.current)==null||g.openModal()};function m(g){g&&(navigator.clipboard.writeText(g),n.success("Copied to clipboard."))}const f=ze.jsxs(wo,{type:"dashed",className:"flex items-center",onClick:()=>u(),children:[ze.jsx(Ya,{})," Create an App"]});return ze.jsxs(ze.Fragment,{children:[!!((v=l.data)!=null&&v.list.length)&&f,ze.jsx("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:(d=l.data)==null?void 0:d.list.map(g=>ze.jsx(ru,{title:g.name,actions:[ze.jsx(Nd,{className:"cursor-pointer",onClick:()=>o(g)}),ze.jsx(Cd,{className:"!hover:text-red-500 cursor-pointer",onClick:()=>s(g)})],children:ze.jsxs("div",{className:"text-xs italic",children:["created at: ",g.createdAt]})},g.id))}),ze.jsx(cd,{hideOnSinglePage:!0,total:(h=l.data)==null?void 0:h.total,pageSize:l.pagination.pageSize,current:l.pagination.current,onChange:g=>l.run({current:g,pageSize:ba})}),!l.loading&&((p=l.data)==null?void 0:p.list.length)===0&&ze.jsx(Yt,{className:"my-10 flex flex-col items-center justify-center",description:"No apps found.",children:f}),ze.jsxs(Lu,{title:"App API Key",width:360,open:a!==null,onClose:()=>o(null),children:[ze.jsx("div",{children:"App ID:"}),ze.jsxs("div",{className:"py-1 flex items-center",children:[ze.jsx("div",{className:"truncate",children:a==null?void 0:a.appId}),ze.jsx(ua,{className:"ml-2 cursor-pointer hover:text-primary",onClick:()=>m(a==null?void 0:a.appId)})]}),ze.jsx("div",{className:"mt-4",children:"App Secret:"}),ze.jsxs("div",{className:"py-1 flex items-center",children:[ze.jsx("div",{className:"truncate",children:a==null?void 0:a.appSecret}),ze.jsx(ua,{className:"ml-2 cursor-pointer hover:text-primary",onClick:()=>m(a==null?void 0:a.appSecret)})]})]}),ze.jsx(Sm,{actionRef:c,onFinish:()=>l.refresh()}),t,r]})};export{Im as default}; diff --git a/packages/server/html/assets/apps-AVUwaAFt.js b/packages/server/html/assets/apps-AVUwaAFt.js deleted file mode 100644 index d4ae92f..0000000 --- a/packages/server/html/assets/apps-AVUwaAFt.js +++ /dev/null @@ -1,78 +0,0 @@ -import{r as o,n as F,_ as Ie,c as H,o as k,R as de,p as xt,q as zi,v as bt,w as oe,x as tt,y as ia,f as It,C as Ze,i as Wt,z as ji,B as ba,D as ot,E as Li,b as Sa,F as Tt,G as ht,H as ya,I as Ca,J as Bi,K as Hi,L as Xr,M as Xa,l as _n,T as sn,t as un,d as P,h as $a,P as wa,Q as En,S as la,k as zn,e as jn,U as Yr,g as Ya,V as Ai,W as Vi,X as Qr,Y as wn,Z as Jr,j as Ae,$ as Fi,a0 as ki,a1 as Wi}from"./index-WagZkOpk.js";import{S as Gi,u as Zr,g as sa,a as eo,b as Ki,B as Ui,t as qi,i as to,c as no,d as xa,e as Xi,f as Yi,h as Qi,j as Ji,k as Zi,l as el,m as tl,n as nl,o as al,p as rl,F as kt,I as ol}from"./index-V6vQ-AEm.js";import{K as ne,I as il,C as Ea,p as dn,F as ll,s as sl,c as cl,d as ul,e as dl,i as Pn,f as Qa,h as fl,E as ml,M as vl,g as gl,b as pl,k as hl,l as bl,R as Ja,L as Za,j as ao}from"./index-Ax4WZORO.js";import{g as _t,m as wt,K as ca,r as Sl,f as Cn,s as yl,v as ro,E as Cl,L as Na,w as $l,x as Ia,l as Bt,R as pn,d as ua,o as fn,t as Mn,y as oo,D as io,A as zt,q as lo,F as so,G as mn,u as co,H as Dn,N as da,I as fa,P as wl,z as xl,J as El,M as Nl,W as Il,B as Ol}from"./index-rndVcMSc.js";var uo=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.style,r=e.className,i=e.duration,s=i===void 0?4.5:i,l=e.eventKey,u=e.content,c=e.closable,m=e.closeIcon,f=m===void 0?"x":m,v=e.props,d=e.onClick,g=e.onNoticeClose,h=e.times,p=e.hovering,b=o.useState(!1),S=F(b,2),C=S[0],N=S[1],O=p||C,y=function(){g(l)},$=function(I){(I.key==="Enter"||I.code==="Enter"||I.keyCode===ne.ENTER)&&y()};o.useEffect(function(){if(!O&&s>0){var w=setTimeout(function(){y()},s*1e3);return function(){clearTimeout(w)}}},[s,O,h]);var E="".concat(n,"-notice");return o.createElement("div",Ie({},v,{ref:t,className:H(E,r,k({},"".concat(E,"-closable"),c)),style:a,onMouseEnter:function(I){var x;N(!0),v==null||(x=v.onMouseEnter)===null||x===void 0||x.call(v,I)},onMouseLeave:function(I){var x;N(!1),v==null||(x=v.onMouseLeave)===null||x===void 0||x.call(v,I)},onClick:d}),o.createElement("div",{className:"".concat(E,"-content")},u),c&&o.createElement("a",{tabIndex:0,className:"".concat(E,"-close"),onKeyDown:$,onClick:function(I){I.preventDefault(),I.stopPropagation(),y()}},f))}),fo=de.createContext({}),Rl=function(t){var n=t.children,a=t.classNames;return de.createElement(fo.Provider,{value:{classNames:a}},n)},er=8,tr=3,nr=16,Pl=function(t){var n={offset:er,threshold:tr,gap:nr};if(t&&xt(t)==="object"){var a,r,i;n.offset=(a=t.offset)!==null&&a!==void 0?a:er,n.threshold=(r=t.threshold)!==null&&r!==void 0?r:tr,n.gap=(i=t.gap)!==null&&i!==void 0?i:nr}return[!!t,n]},Ml=["className","style","classNames","styles"],mo=function(t){var n,a=t.configList,r=t.placement,i=t.prefixCls,s=t.className,l=t.style,u=t.motion,c=t.onAllNoticeRemoved,m=t.onNoticeClose,f=t.stack,v=o.useContext(fo),d=v.classNames,g=o.useRef({}),h=o.useState(null),p=F(h,2),b=p[0],S=p[1],C=o.useState([]),N=F(C,2),O=N[0],y=N[1],$=a.map(function(_){return{config:_,key:String(_.key)}}),E=Pl(f),w=F(E,2),I=w[0],x=w[1],D=x.offset,M=x.threshold,R=x.gap,L=I&&(O.length>0||$.length<=M),Y=typeof u=="function"?u(r):u;return o.useEffect(function(){I&&O.length>1&&y(function(_){return _.filter(function(z){return $.some(function(te){var le=te.key;return z===le})})})},[O,$,I]),o.useEffect(function(){var _;if(I&&g.current[(_=$[$.length-1])===null||_===void 0?void 0:_.key]){var z;S(g.current[(z=$[$.length-1])===null||z===void 0?void 0:z.key])}},[$,I]),de.createElement(zi,Ie({key:r,className:H(i,"".concat(i,"-").concat(r),d==null?void 0:d.list,s,(n={},k(n,"".concat(i,"-stack"),!!I),k(n,"".concat(i,"-stack-expanded"),L),n)),style:l,keys:$,motionAppear:!0},Y,{onAllRemoved:function(){c(r)}}),function(_,z){var te=_.config,le=_.className,ae=_.style,V=_.index,A=te,U=A.key,Z=A.times,W=String(U),ve=te,me=ve.className,K=ve.style,B=ve.classNames,j=ve.styles,G=bt(ve,Ml),se=$.findIndex(function(ke){return ke.key===W}),q={};if(I){var T=$.length-1-(se>-1?se:V-1),ce=r==="top"||r==="bottom"?"-50%":"0";if(T>0){var pe,ue,X;q.height=L?(pe=g.current[W])===null||pe===void 0?void 0:pe.offsetHeight:b==null?void 0:b.offsetHeight;for(var Q=0,ge=0;ge-1?g.current[W]=Pe:delete g.current[W]},prefixCls:i,classNames:B,styles:j,className:H(me,d==null?void 0:d.notice),style:K,times:Z,key:U,eventKey:U,onNoticeClose:m,hovering:I&&O.length>0})))})};mo.displayName="NoticeList";var vo=o.forwardRef(function(e,t){var n=e.prefixCls,a=n===void 0?"rc-notification":n,r=e.container,i=e.motion,s=e.maxCount,l=e.className,u=e.style,c=e.onAllRemoved,m=e.stack,f=e.renderNotifications,v=o.useState([]),d=F(v,2),g=d[0],h=d[1],p=function(w){var I,x=g.find(function(D){return D.key===w});x==null||(I=x.onClose)===null||I===void 0||I.call(x),h(function(D){return D.filter(function(M){return M.key!==w})})};o.useImperativeHandle(t,function(){return{open:function(w){h(function(I){var x=tt(I),D=x.findIndex(function(L){return L.key===w.key}),M=oe({},w);if(D>=0){var R;M.times=(((R=I[D])===null||R===void 0?void 0:R.times)||0)+1,x[D]=M}else M.times=0,x.push(M);return s>0&&x.length>s&&(x=x.slice(-s)),x})},close:function(w){p(w)},destroy:function(){h([])}}});var b=o.useState({}),S=F(b,2),C=S[0],N=S[1];o.useEffect(function(){var E={};g.forEach(function(w){var I=w.placement,x=I===void 0?"topRight":I;x&&(E[x]=E[x]||[],E[x].push(w))}),Object.keys(C).forEach(function(w){E[w]=E[w]||[]}),N(E)},[g]);var O=function(w){N(function(I){var x=oe({},I),D=x[w]||[];return D.length||delete x[w],x})},y=o.useRef(!1);if(o.useEffect(function(){Object.keys(C).length>0?y.current=!0:y.current&&(c==null||c(),y.current=!1)},[C]),!r)return null;var $=Object.keys(C);return ia.createPortal(o.createElement(o.Fragment,null,$.map(function(E){var w=C[E],I=o.createElement(mo,{key:E,configList:w,placement:E,prefixCls:a,className:l==null?void 0:l(E),style:u==null?void 0:u(E),motion:i,onNoticeClose:p,onAllNoticeRemoved:O,stack:m});return f?f(I,{prefixCls:a,key:E}):I})),r)});vo.displayName="Notifications";var Dl=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Tl=function(){return document.body},ar=0;function _l(){for(var e={},t=arguments.length,n=new Array(t),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Tl:t,a=e.motion,r=e.prefixCls,i=e.maxCount,s=e.className,l=e.style,u=e.onAllRemoved,c=e.stack,m=e.renderNotifications,f=bt(e,Dl),v=o.useState(),d=F(v,2),g=d[0],h=d[1],p=o.useRef(),b=o.createElement(vo,{container:g,ref:p,prefixCls:r,motion:a,maxCount:i,className:s,style:l,onAllRemoved:u,stack:c,renderNotifications:m}),S=o.useState([]),C=F(S,2),N=C[0],O=C[1],y=o.useMemo(function(){return{open:function(E){var w=_l(f,E);(w.key===null||w.key===void 0)&&(w.key="rc-notification-".concat(ar),ar+=1),O(function(I){return[].concat(tt(I),[{type:"open",config:w}])})},close:function(E){O(function(w){return[].concat(tt(w),[{type:"close",key:E}])})},destroy:function(){O(function(E){return[].concat(tt(E),[{type:"destroy"}])})}}},[]);return o.useEffect(function(){h(n())}),o.useEffect(function(){p.current&&N.length&&(N.forEach(function($){switch($.type){case"open":p.current.open($.config);break;case"close":p.current.close($.key);break;case"destroy":p.current.destroy();break}}),O(function($){return $.filter(function(E){return!N.includes(E)})}))},[N]),[y,b]}const jl=e=>{const{componentCls:t,iconCls:n,boxShadow:a,colorText:r,colorSuccess:i,colorError:s,colorWarning:l,colorInfo:u,fontSizeLG:c,motionEaseInOutCirc:m,motionDurationSlow:f,marginXS:v,paddingXS:d,borderRadiusLG:g,zIndexPopup:h,contentPadding:p,contentBg:b}=e,S=`${t}-notice`,C=new ca("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:d,transform:"translateY(0)",opacity:1}}),N=new ca("MessageMoveOut",{"0%":{maxHeight:e.height,padding:d,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),O={padding:d,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:v,fontSize:c},[`${S}-content`]:{display:"inline-block",padding:p,background:b,borderRadius:g,boxShadow:a,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, - ${t}-loading > ${n}`]:{color:u}};return[{[t]:Object.assign(Object.assign({},It(e)),{color:r,position:"fixed",top:v,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:m},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:N,animationDuration:f,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${S}-wrapper`]:Object.assign({},O)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},O),{padding:0,textAlign:"start"})}]},Ll=e=>({zIndexPopup:e.zIndexPopupBase+Sl+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),go=_t("Message",e=>{const t=wt(e,{height:150});return[jl(t)]},Ll);var Bl=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,type:n,icon:a,children:r}=e;return o.createElement("div",{className:H(`${t}-custom-content`,`${t}-${n}`)},a||Hl[n],o.createElement("span",null,r))},Al=e=>{const{prefixCls:t,className:n,type:a,icon:r,content:i}=e,s=Bl(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=o.useContext(Ze),u=t||l("message"),c=Cn(u),[m,f,v]=go(u,c);return m(o.createElement(uo,Object.assign({},s,{prefixCls:u,className:H(n,f,`${u}-notice-pure-panel`,v,c),eventKey:"pure",duration:null,content:o.createElement(po,{prefixCls:u,type:a,icon:r},i)})))},Vl=Al;function Fl(e,t){return{motionName:t??`${e}-move-up`}}function Oa(e){let t;const n=new Promise(r=>{t=e(()=>{r(!0)})}),a=()=>{t==null||t()};return a.then=(r,i)=>n.then(r,i),a.promise=n,a}var kl=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{let{children:t,prefixCls:n}=e;const a=Cn(n),[r,i,s]=go(n,a);return r(o.createElement(Rl,{classNames:{list:H(i,s,a)}},t))},Ul=(e,t)=>{let{prefixCls:n,key:a}=t;return o.createElement(Kl,{prefixCls:n,key:a},e)},ql=o.forwardRef((e,t)=>{const{top:n,prefixCls:a,getContainer:r,maxCount:i,duration:s=Gl,rtl:l,transitionName:u,onAllRemoved:c}=e,{getPrefixCls:m,getPopupContainer:f,message:v,direction:d}=o.useContext(Ze),g=a||m("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??Wl}),p=()=>H({[`${g}-rtl`]:l??d==="rtl"}),b=()=>Fl(g,u),S=o.createElement("span",{className:`${g}-close-x`},o.createElement(Ea,{className:`${g}-close-icon`})),[C,N]=zl({prefixCls:g,style:h,className:p,motion:b,closable:!1,closeIcon:S,duration:s,getContainer:()=>(r==null?void 0:r())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:Ul});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:g,message:v})),N});let rr=0;function ho(e){const t=o.useRef(null),n=Wt("Message");return[o.useMemo(()=>{const r=c=>{var m;(m=t.current)===null||m===void 0||m.close(c)},i=c=>{if(!t.current){n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const $=()=>{};return $.then=()=>{},$}const{open:m,prefixCls:f,message:v}=t.current,d=`${f}-notice`,{content:g,icon:h,type:p,key:b,className:S,style:C,onClose:N}=c,O=kl(c,["content","icon","type","key","className","style","onClose"]);let y=b;return y==null&&(rr+=1,y=`antd-message-${rr}`),Oa($=>(m(Object.assign(Object.assign({},O),{key:y,content:o.createElement(po,{prefixCls:f,type:p,icon:h},g),placement:"top",className:H(p&&`${d}-${p}`,S,v==null?void 0:v.className),style:Object.assign(Object.assign({},v==null?void 0:v.style),C),onClose:()=>{N==null||N(),$()}})),()=>{r(y)}))},l={open:i,destroy:c=>{var m;c!==void 0?r(c):(m=t.current)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const m=(f,v,d)=>{let g;f&&typeof f=="object"&&"content"in f?g=f:g={content:f};let h,p;typeof v=="function"?p=v:(h=v,p=d);const b=Object.assign(Object.assign({onClose:p,duration:h},g),{type:c});return i(b)};l[c]=m}),l},[]),o.createElement(ql,Object.assign({key:"message-holder"},e,{ref:t}))]}function Xl(e){return ho(e)}const Yl=de.createContext({});var Ln=function(t){var n=t.className,a=t.customizeIcon,r=t.customizeIconProps,i=t.children,s=t.onMouseDown,l=t.onClick,u=typeof a=="function"?a(r):a;return o.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),s==null||s(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},u!==void 0?u:o.createElement("span",{className:H(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Ql=function(t,n,a,r,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,c=de.useMemo(function(){if(xt(r)==="object")return r.clearIcon;if(i)return i},[r,i]),m=de.useMemo(function(){return!!(!s&&r&&(a.length||l)&&!(u==="combobox"&&l===""))},[r,s,a.length,l,u]);return{allowClear:m,clearIcon:de.createElement(Ln,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},bo=o.createContext(null);function Jl(){return o.useContext(bo)}function Zl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=o.useState(!1),n=F(t,2),a=n[0],r=n[1],i=o.useRef(null),s=function(){window.clearTimeout(i.current)};o.useEffect(function(){return s},[]);var l=function(c,m){s(),i.current=window.setTimeout(function(){r(c),m&&m()},e)};return[a,l,s]}function So(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function a(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},a]}function es(e,t,n,a){var r=o.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:a},o.useEffect(function(){function i(s){var l;if(!((l=r.current)!==null&&l!==void 0&&l.customizedTrigger)){var u=s.target;u.shadowRoot&&s.composed&&(u=s.composedPath()[0]||u),r.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(u)&&c!==u})&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var ts=function(t,n){var a,r=t.prefixCls,i=t.id,s=t.inputElement,l=t.disabled,u=t.tabIndex,c=t.autoFocus,m=t.autoComplete,f=t.editable,v=t.activeDescendantId,d=t.value,g=t.maxLength,h=t.onKeyDown,p=t.onMouseDown,b=t.onChange,S=t.onPaste,C=t.onCompositionStart,N=t.onCompositionEnd,O=t.open,y=t.attrs,$=s||o.createElement("input",null),E=$,w=E.ref,I=E.props,x=I.onKeyDown,D=I.onChange,M=I.onMouseDown,R=I.onCompositionStart,L=I.onCompositionEnd,Y=I.style;return ji(!("maxLength"in $.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),$=o.cloneElement($,oe(oe(oe({type:"search"},I),{},{id:i,ref:ba(n,w),disabled:l,tabIndex:u,autoComplete:m||"off",autoFocus:c,className:H("".concat(r,"-selection-search-input"),(a=$)===null||a===void 0||(a=a.props)===null||a===void 0?void 0:a.className),role:"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":O?v:void 0},y),{},{value:f?d:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:oe(oe({},Y),{},{opacity:f?null:0}),onKeyDown:function(z){h(z),x&&x(z)},onMouseDown:function(z){p(z),M&&M(z)},onChange:function(z){b(z),D&&D(z)},onCompositionStart:function(z){C(z),R&&R(z)},onCompositionEnd:function(z){N(z),L&&L(z)},onPaste:S})),$},Ra=o.forwardRef(ts);Ra.displayName="Input";function Pa(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var ns=typeof window<"u"&&window.document&&window.document.documentElement,as=ns;function rs(e){return e!=null}function os(e){return!e&&e!==0}function or(e){return["string","number"].includes(xt(e))}function yo(e){var t=void 0;return e&&(or(e.title)?t=e.title.toString():or(e.label)&&(t=e.label.toString())),t}function is(e,t){as?o.useLayoutEffect(e,t):o.useEffect(e,t)}function ls(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var ir=function(t){t.preventDefault(),t.stopPropagation()},ss=function(t){var n=t.id,a=t.prefixCls,r=t.values,i=t.open,s=t.searchValue,l=t.autoClearSearchValue,u=t.inputRef,c=t.placeholder,m=t.disabled,f=t.mode,v=t.showSearch,d=t.autoFocus,g=t.autoComplete,h=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,S=t.maxTagCount,C=t.maxTagTextLength,N=t.maxTagPlaceholder,O=N===void 0?function(se){return"+ ".concat(se.length," ...")}:N,y=t.tagRender,$=t.onToggleOpen,E=t.onRemove,w=t.onInputChange,I=t.onInputPaste,x=t.onInputKeyDown,D=t.onInputMouseDown,M=t.onInputCompositionStart,R=t.onInputCompositionEnd,L=o.useRef(null),Y=o.useState(0),_=F(Y,2),z=_[0],te=_[1],le=o.useState(!1),ae=F(le,2),V=ae[0],A=ae[1],U="".concat(a,"-selection"),Z=i||f==="multiple"&&l===!1||f==="tags"?s:"",W=f==="tags"||f==="multiple"&&l===!1||v&&(i||V);is(function(){te(L.current.scrollWidth)},[Z]);var ve=function(q,T,ce,pe,ue){return o.createElement("span",{title:yo(q),className:H("".concat(U,"-item"),k({},"".concat(U,"-item-disabled"),ce))},o.createElement("span",{className:"".concat(U,"-item-content")},T),pe&&o.createElement(Ln,{className:"".concat(U,"-item-remove"),onMouseDown:ir,onClick:ue,customizeIcon:b},"×"))},me=function(q,T,ce,pe,ue){var X=function(ge){ir(ge),$(!i)};return o.createElement("span",{onMouseDown:X},y({label:T,value:q,disabled:ce,closable:pe,onClose:ue}))},K=function(q){var T=q.disabled,ce=q.label,pe=q.value,ue=!m&&!T,X=ce;if(typeof C=="number"&&(typeof ce=="string"||typeof ce=="number")){var Q=String(X);Q.length>C&&(X="".concat(Q.slice(0,C),"..."))}var ge=function(xe){xe&&xe.stopPropagation(),E(q)};return typeof y=="function"?me(pe,X,T,ue,ge):ve(q,X,T,ue,ge)},B=function(q){var T=typeof O=="function"?O(q):O;return ve({title:T},T,!1)},j=o.createElement("div",{className:"".concat(U,"-search"),style:{width:z},onFocus:function(){A(!0)},onBlur:function(){A(!1)}},o.createElement(Ra,{ref:u,open:i,prefixCls:a,id:n,inputElement:null,disabled:m,autoFocus:d,autoComplete:g,editable:W,activeDescendantId:h,value:Z,onKeyDown:x,onMouseDown:D,onChange:w,onPaste:I,onCompositionStart:M,onCompositionEnd:R,tabIndex:p,attrs:dn(t,!0)}),o.createElement("span",{ref:L,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},Z," ")),G=o.createElement(ll,{prefixCls:"".concat(U,"-overflow"),data:r,renderItem:K,renderRest:B,suffix:j,itemKey:ls,maxCount:S});return o.createElement(o.Fragment,null,G,!r.length&&!Z&&o.createElement("span",{className:"".concat(U,"-placeholder")},c))},cs=function(t){var n=t.inputElement,a=t.prefixCls,r=t.id,i=t.inputRef,s=t.disabled,l=t.autoFocus,u=t.autoComplete,c=t.activeDescendantId,m=t.mode,f=t.open,v=t.values,d=t.placeholder,g=t.tabIndex,h=t.showSearch,p=t.searchValue,b=t.activeValue,S=t.maxLength,C=t.onInputKeyDown,N=t.onInputMouseDown,O=t.onInputChange,y=t.onInputPaste,$=t.onInputCompositionStart,E=t.onInputCompositionEnd,w=t.title,I=o.useState(!1),x=F(I,2),D=x[0],M=x[1],R=m==="combobox",L=R||h,Y=v[0],_=p||"";R&&b&&!D&&(_=b),o.useEffect(function(){R&&M(!1)},[R,b]);var z=m!=="combobox"&&!f&&!h?!1:!!_,te=w===void 0?yo(Y):w,le=o.useMemo(function(){return Y?null:o.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},d)},[Y,z,d,a]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(a,"-selection-search")},o.createElement(Ra,{ref:i,prefixCls:a,id:r,open:f,inputElement:n,disabled:s,autoFocus:l,autoComplete:u,editable:L,activeDescendantId:c,value:_,onKeyDown:C,onMouseDown:N,onChange:function(V){M(!0),O(V)},onPaste:y,onCompositionStart:$,onCompositionEnd:E,tabIndex:g,attrs:dn(t,!0),maxLength:R?S:void 0})),!R&&Y?o.createElement("span",{className:"".concat(a,"-selection-item"),title:te,style:z?{visibility:"hidden"}:void 0},Y.label):null,le)};function us(e){return![ne.ESC,ne.SHIFT,ne.BACKSPACE,ne.TAB,ne.WIN_KEY,ne.ALT,ne.META,ne.WIN_KEY_RIGHT,ne.CTRL,ne.SEMICOLON,ne.EQUALS,ne.CAPS_LOCK,ne.CONTEXT_MENU,ne.F1,ne.F2,ne.F3,ne.F4,ne.F5,ne.F6,ne.F7,ne.F8,ne.F9,ne.F10,ne.F11,ne.F12].includes(e)}var ds=function(t,n){var a=o.useRef(null),r=o.useRef(!1),i=t.prefixCls,s=t.open,l=t.mode,u=t.showSearch,c=t.tokenWithEnter,m=t.autoClearSearchValue,f=t.onSearch,v=t.onSearchSubmit,d=t.onToggleOpen,g=t.onInputKeyDown,h=t.domRef;o.useImperativeHandle(n,function(){return{focus:function(){a.current.focus()},blur:function(){a.current.blur()}}});var p=So(0),b=F(p,2),S=b[0],C=b[1],N=function(_){var z=_.which;(z===ne.UP||z===ne.DOWN)&&_.preventDefault(),g&&g(_),z===ne.ENTER&&l==="tags"&&!r.current&&!s&&(v==null||v(_.target.value)),us(z)&&d(!0)},O=function(){C(!0)},y=o.useRef(null),$=function(_){f(_,!0,r.current)!==!1&&d(!0)},E=function(){r.current=!0},w=function(_){r.current=!1,l!=="combobox"&&$(_.target.value)},I=function(_){var z=_.target.value;if(c&&y.current&&/[\r\n]/.test(y.current)){var te=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(te,y.current)}y.current=null,$(z)},x=function(_){var z=_.clipboardData,te=z==null?void 0:z.getData("text");y.current=te||""},D=function(_){var z=_.target;if(z!==a.current){var te=document.body.style.msTouchAction!==void 0;te?setTimeout(function(){a.current.focus()}):a.current.focus()}},M=function(_){var z=S();_.target!==a.current&&!z&&l!=="combobox"&&_.preventDefault(),(l!=="combobox"&&(!u||!z)||!s)&&(s&&m!==!1&&f("",!0,!1),d())},R={inputRef:a,onInputKeyDown:N,onInputMouseDown:O,onInputChange:I,onInputPaste:x,onInputCompositionStart:E,onInputCompositionEnd:w},L=l==="multiple"||l==="tags"?o.createElement(ss,Ie({},t,R)):o.createElement(cs,Ie({},t,R));return o.createElement("div",{ref:h,className:"".concat(i,"-selector"),onClick:D,onMouseDown:M},L)},Co=o.forwardRef(ds);Co.displayName="Selector";var fs=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ms=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},vs=function(t,n){var a=t.prefixCls;t.disabled;var r=t.visible,i=t.children,s=t.popupElement,l=t.animation,u=t.transitionName,c=t.dropdownStyle,m=t.dropdownClassName,f=t.direction,v=f===void 0?"ltr":f,d=t.placement,g=t.builtinPlacements,h=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,S=t.getPopupContainer,C=t.empty,N=t.getTriggerDOMNode,O=t.onPopupVisibleChange,y=t.onPopupMouseEnter,$=bt(t,fs),E="".concat(a,"-dropdown"),w=s;p&&(w=p(s));var I=o.useMemo(function(){return g||ms(h)},[g,h]),x=l?"".concat(E,"-").concat(l):u,D=typeof h=="number",M=o.useMemo(function(){return D?null:h===!1?"minWidth":"width"},[h,D]),R=c;D&&(R=oe(oe({},R),{},{width:h}));var L=o.useRef(null);return o.useImperativeHandle(n,function(){return{getPopupElement:function(){return L.current}}}),o.createElement($l,Ie({},$,{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:d||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:E,popupTransitionName:x,popup:o.createElement("div",{ref:L,onMouseEnter:y},w),stretch:M,popupAlign:b,popupVisible:r,getPopupContainer:S,popupClassName:H(m,k({},"".concat(E,"-empty"),C)),popupStyle:R,getTriggerDOMNode:N,onPopupVisibleChange:O}),i)},$o=o.forwardRef(vs);$o.displayName="SelectTrigger";function lr(e,t){var n=e.key,a;return"value"in e&&(a=e.value),n??(a!==void 0?a:"rc-index-key-".concat(t))}function wo(e,t){var n=e||{},a=n.label,r=n.value,i=n.options,s=n.groupLabel,l=a||(t?"children":"label");return{label:l,value:r||"value",options:i||"options",groupLabel:s||l}}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,a=t.childrenAsData,r=[],i=wo(n,!1),s=i.label,l=i.value,u=i.options,c=i.groupLabel;function m(f,v){Array.isArray(f)&&f.forEach(function(d){if(v||!(u in d)){var g=d[l];r.push({key:lr(d,r.length),groupOption:v,data:d,label:d[s],value:g})}else{var h=d[c];h===void 0&&a&&(h=d.label),r.push({key:lr(d,r.length),group:!0,data:d,label:h}),m(d[u],!0)}})}return m(e,!1),r}function ma(e){var t=oe({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ot(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var ps=function(t,n,a){if(!n||!n.length)return null;var r=!1,i=function l(u,c){var m=Li(c),f=m[0],v=m.slice(1);if(!f)return[u];var d=u.split(f);return r=r||d.length>1,d.reduce(function(g,h){return[].concat(tt(g),tt(l(h,v)))},[]).filter(Boolean)},s=i(t,n);return r?typeof a<"u"?s.slice(0,a):s:null},Ma=o.createContext(null),hs=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],bs=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Tn=function(t){return t==="tags"||t==="multiple"},xo=o.forwardRef(function(e,t){var n,a,r=e.id,i=e.prefixCls,s=e.className,l=e.showSearch,u=e.tagRender,c=e.direction,m=e.omitDomProps,f=e.displayValues,v=e.onDisplayValuesChange,d=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,p=e.onClear,b=e.mode,S=e.disabled,C=e.loading,N=e.getInputElement,O=e.getRawInputElement,y=e.open,$=e.defaultOpen,E=e.onDropdownVisibleChange,w=e.activeValue,I=e.onActiveValueChange,x=e.activeDescendantId,D=e.searchValue,M=e.autoClearSearchValue,R=e.onSearch,L=e.onSearchSplit,Y=e.tokenSeparators,_=e.allowClear,z=e.suffixIcon,te=e.clearIcon,le=e.OptionList,ae=e.animation,V=e.transitionName,A=e.dropdownStyle,U=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,W=e.dropdownRender,ve=e.dropdownAlign,me=e.placement,K=e.builtinPlacements,B=e.getPopupContainer,j=e.showAction,G=j===void 0?[]:j,se=e.onFocus,q=e.onBlur,T=e.onKeyUp,ce=e.onKeyDown,pe=e.onMouseDown,ue=bt(e,hs),X=Tn(b),Q=(l!==void 0?l:X)||b==="combobox",ge=oe({},ue);bs.forEach(function(je){delete ge[je]}),m==null||m.forEach(function(je){delete ge[je]});var Oe=o.useState(!1),xe=F(Oe,2),Ve=xe[0],ke=xe[1];o.useEffect(function(){ke(Ia())},[]);var Pe=o.useRef(null),Ge=o.useRef(null),Ke=o.useRef(null),ze=o.useRef(null),Ue=o.useRef(null),Fe=o.useRef(!1),ct=Zl(),Le=F(ct,3),qe=Le[0],Xe=Le[1],St=Le[2];o.useImperativeHandle(t,function(){var je,Me;return{focus:(je=ze.current)===null||je===void 0?void 0:je.focus,blur:(Me=ze.current)===null||Me===void 0?void 0:Me.blur,scrollTo:function($t){var rt;return(rt=Ue.current)===null||rt===void 0?void 0:rt.scrollTo($t)}}});var Te=o.useMemo(function(){var je;if(b!=="combobox")return D;var Me=(je=f[0])===null||je===void 0?void 0:je.value;return typeof Me=="string"||typeof Me=="number"?String(Me):""},[D,b,f]),nt=b==="combobox"&&typeof N=="function"&&N()||null,Ye=typeof O=="function"&&O(),Et=Sa(Ge,Ye==null||(n=Ye.props)===null||n===void 0?void 0:n.ref),ft=o.useState(!1),yt=F(ft,2),he=yt[0],ie=yt[1];Tt(function(){ie(!0)},[]);var Re=Bt(!1,{defaultValue:$,value:y}),ye=F(Re,2),Je=ye[0],at=ye[1],We=he?Je:!1,Se=!h&&d;(S||Se&&We&&b==="combobox")&&(We=!1);var Ce=Se?!1:We,ee=o.useCallback(function(je){var Me=je!==void 0?je:!We;S||(at(Me),We!==Me&&(E==null||E(Me)))},[S,We,at,E]),re=o.useMemo(function(){return(Y||[]).some(function(je){return[` -`,`\r -`].includes(je)})},[Y]),be=o.useContext(Ma)||{},_e=be.maxCount,et=be.rawValues,it=function(Me,gt,$t){if(!((et==null?void 0:et.size)>=_e)){var rt=!0,Ct=Me;I==null||I(null);var Dt=ps(Me,Y,_e&&_e-et.size),At=$t?null:Dt;return b!=="combobox"&&At&&(Ct="",L==null||L(At),ee(!1),rt=!1),R&&Te!==Ct&&R(Ct,{source:gt?"typing":"effect"}),rt}},ut=function(Me){!Me||!Me.trim()||R(Me,{source:"submit"})};o.useEffect(function(){!We&&!X&&b!=="combobox"&&it("",!1,!1)},[We]),o.useEffect(function(){Je&&S&&at(!1),S&&!Fe.current&&Xe(!1)},[S]);var we=So(),$e=F(we,2),De=$e[0],J=$e[1],fe=function(Me){var gt=De(),$t=Me.which;if($t===ne.ENTER&&(b!=="combobox"&&Me.preventDefault(),We||ee(!0)),J(!!Te),$t===ne.BACKSPACE&&!gt&&X&&!Te&&f.length){for(var rt=tt(f),Ct=null,Dt=rt.length-1;Dt>=0;Dt-=1){var At=rt[Dt];if(!At.disabled){rt.splice(Dt,1),Ct=At;break}}Ct&&v(rt,{type:"remove",values:[Ct]})}for(var Vt=arguments.length,nn=new Array(Vt>1?Vt-1:0),Ft=1;Ft1?gt-1:0),rt=1;rt1?Dt-1:0),Vt=1;Vt0&&arguments[0]!==void 0?arguments[0]:!1;m();var g=function(){l.current.forEach(function(p,b){if(p&&p.offsetParent){var S=Bi(p),C=S.offsetHeight;u.current.get(b)!==C&&u.current.set(b,S.offsetHeight)}}),s(function(p){return p+1})};d?g():c.current=ht(g)}function v(d,g){var h=e(d),p=l.current.get(h);g?(l.current.set(h,g),f()):l.current.delete(h),!p!=!g&&(g?t==null||t(d):n==null||n(d))}return o.useEffect(function(){return m},[]),[v,f,u.current,i]}var cr=10;function ws(e,t,n,a,r,i,s,l){var u=o.useRef(),c=o.useState(null),m=F(c,2),f=m[0],v=m[1];return Tt(function(){if(f&&f.times=0;R-=1){var L=r(t[R]),Y=n.get(L);if(Y===void 0){S=!0;break}if(M-=Y,M<=0)break}switch(O){case"top":N=$-p;break;case"bottom":N=E-b+p;break;default:{var _=e.current.scrollTop,z=_+b;$<_?C="top":E>z&&(C="bottom")}}N!==null&&s(N),N!==f.lastTop&&(S=!0)}S&&v(oe(oe({},f),{},{times:f.times+1,targetAlign:C,lastTop:N}))}else(f==null?void 0:f.times)===cr&&ot(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(d){if(d==null){l();return}if(ht.cancel(u.current),typeof d=="number")s(d);else if(d&&xt(d)==="object"){var g,h=d.align;"index"in d?g=d.index:g=t.findIndex(function(S){return r(S)===d.key});var p=d.offset,b=p===void 0?0:p;v({times:0,index:g,offset:b,originAlign:h})}}}function xs(e,t,n){var a=e.length,r=t.length,i,s;if(a===0&&r===0)return null;a"u"?"undefined":xt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const No=function(e,t){var n=o.useRef(!1),a=o.useRef(null);function r(){clearTimeout(a.current),n.current=!0,a.current=setTimeout(function(){n.current=!1},50)}var i=o.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=s<0&&i.current.top||s>0&&i.current.bottom;return l&&u?(clearTimeout(a.current),n.current=!1):(!u||n.current)&&r(),!n.current&&u}};function Ns(e,t,n,a,r){var i=o.useRef(0),s=o.useRef(null),l=o.useRef(null),u=o.useRef(!1),c=No(t,n);function m(p,b){ht.cancel(s.current),i.current+=b,l.current=b,!c(b)&&(ur||p.preventDefault(),s.current=ht(function(){var S=u.current?10:1;r(i.current*S),i.current=0}))}function f(p,b){r(b,!0),ur||p.preventDefault()}var v=o.useRef(null),d=o.useRef(null);function g(p){if(e){ht.cancel(d.current),d.current=ht(function(){v.current=null},2);var b=p.deltaX,S=p.deltaY,C=p.shiftKey,N=b,O=S;(v.current==="sx"||!v.current&&C&&S&&!b)&&(N=S,O=0,v.current="sx");var y=Math.abs(N),$=Math.abs(O);v.current===null&&(v.current=a&&y>$?"x":"y"),v.current==="y"?m(p,O):f(p,N)}}function h(p){e&&(u.current=p.detail===l.current)}return[g,h]}var Is=14/15;function Os(e,t,n){var a=o.useRef(!1),r=o.useRef(0),i=o.useRef(null),s=o.useRef(null),l,u=function(v){if(a.current){var d=Math.ceil(v.touches[0].pageY),g=r.current-d;r.current=d,n(g)&&v.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){g*=Is,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(s.current)},16)}},c=function(){a.current=!1,l()},m=function(v){l(),v.touches.length===1&&!a.current&&(a.current=!0,r.current=Math.ceil(v.touches[0].pageY),i.current=v.target,i.current.addEventListener("touchmove",u),i.current.addEventListener("touchend",c))};l=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",c))},Tt(function(){return e&&t.current.addEventListener("touchstart",m),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",m),l(),clearInterval(s.current)}},[e])}var Rs=20;function dr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Rs),Math.floor(n)}function Ps(e,t,n,a){var r=o.useMemo(function(){return[new Map,[]]},[e,n.id,a]),i=F(r,2),s=i[0],l=i[1],u=function(m){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,v=s.get(m),d=s.get(f);if(v===void 0||d===void 0)for(var g=e.length,h=l.length;hi||!!h),x=g==="rtl",D=H(a,k({},"".concat(a,"-rtl"),x),r),M=m||Ds,R=o.useRef(),L=o.useRef(),Y=o.useState(0),_=F(Y,2),z=_[0],te=_[1],le=o.useState(0),ae=F(le,2),V=ae[0],A=ae[1],U=o.useState(!1),Z=F(U,2),W=Z[0],ve=Z[1],me=function(){ve(!0)},K=function(){ve(!1)},B=o.useCallback(function(J){return typeof v=="function"?v(J):J==null?void 0:J[v]},[v]),j={getKey:B};function G(J){te(function(fe){var Ne;typeof J=="function"?Ne=J(fe):Ne=J;var Be=Et(Ne);return R.current.scrollTop=Be,Be})}var se=o.useRef({start:0,end:M.length}),q=o.useRef(),T=Es(M,B),ce=F(T,1),pe=ce[0];q.current=pe;var ue=$s(B,null,null),X=F(ue,4),Q=X[0],ge=X[1],Oe=X[2],xe=X[3],Ve=o.useMemo(function(){if(!w)return{scrollHeight:void 0,start:0,end:M.length-1,offset:void 0};if(!I){var J;return{scrollHeight:((J=L.current)===null||J===void 0?void 0:J.offsetHeight)||0,start:0,end:M.length-1,offset:void 0}}for(var fe=0,Ne,Be,lt,jt=M.length,mt=0;mt=z&&Ne===void 0&&(Ne=mt,Be=fe),Rt>z+i&<===void 0&&(lt=mt),fe=Rt}return Ne===void 0&&(Ne=0,Be=0,lt=Math.ceil(i/s)),lt===void 0&&(lt=M.length-1),lt=Math.min(lt+1,M.length-1),{scrollHeight:fe,start:Ne,end:lt,offset:Be}},[I,w,z,M,xe,i]),ke=Ve.scrollHeight,Pe=Ve.start,Ge=Ve.end,Ke=Ve.offset;se.current.start=Pe,se.current.end=Ge;var ze=o.useState({width:0,height:i}),Ue=F(ze,2),Fe=Ue[0],ct=Ue[1],Le=function(fe){ct({width:fe.width||fe.offsetWidth,height:fe.height||fe.offsetHeight})},qe=o.useRef(),Xe=o.useRef(),St=o.useMemo(function(){return dr(Fe.width,h)},[Fe.width,h]),Te=o.useMemo(function(){return dr(Fe.height,ke)},[Fe.height,ke]),nt=ke-i,Ye=o.useRef(nt);Ye.current=nt;function Et(J){var fe=J;return Number.isNaN(Ye.current)||(fe=Math.min(fe,Ye.current)),fe=Math.max(fe,0),fe}var ft=z<=0,yt=z>=nt,he=No(ft,yt),ie=function(){return{x:x?-V:V,y:z}},Re=o.useRef(ie()),ye=ua(function(){if(C){var J=ie();(Re.current.x!==J.x||Re.current.y!==J.y)&&(C(J),Re.current=J)}});function Je(J,fe){var Ne=J;fe?(ia.flushSync(function(){A(Ne)}),ye()):G(Ne)}function at(J){var fe=J.currentTarget.scrollTop;fe!==z&&G(fe),S==null||S(J),ye()}var We=function(fe){var Ne=fe,Be=h-Fe.width;return Ne=Math.max(Ne,0),Ne=Math.min(Ne,Be),Ne},Se=ua(function(J,fe){fe?(ia.flushSync(function(){A(function(Ne){var Be=Ne+(x?-J:J);return We(Be)})}),ye()):G(function(Ne){var Be=Ne+J;return Be})}),Ce=Ns(w,ft,yt,!!h,Se),ee=F(Ce,2),re=ee[0],be=ee[1];Os(w,R,function(J,fe){return he(J,fe)?!1:(re({preventDefault:function(){},deltaY:J}),!0)}),Tt(function(){function J(Ne){w&&Ne.preventDefault()}var fe=R.current;return fe.addEventListener("wheel",re),fe.addEventListener("DOMMouseScroll",be),fe.addEventListener("MozMousePixelScroll",J),function(){fe.removeEventListener("wheel",re),fe.removeEventListener("DOMMouseScroll",be),fe.removeEventListener("MozMousePixelScroll",J)}},[w]),Tt(function(){h&&A(function(J){return We(J)})},[Fe.width,h]);var _e=function(){var fe,Ne;(fe=qe.current)===null||fe===void 0||fe.delayHidden(),(Ne=Xe.current)===null||Ne===void 0||Ne.delayHidden()},et=ws(R,M,Oe,s,B,function(){return ge(!0)},G,_e);o.useImperativeHandle(t,function(){return{getScrollInfo:ie,scrollTo:function(fe){function Ne(Be){return Be&&xt(Be)==="object"&&("left"in Be||"top"in Be)}Ne(fe)?(fe.left!==void 0&&A(We(fe.left)),et(fe.top)):et(fe)}}}),Tt(function(){if(N){var J=M.slice(Pe,Ge+1);N(J,M)}},[Pe,Ge,M]);var it=Ps(M,B,Oe,s),ut=y==null?void 0:y({start:Pe,end:Ge,virtual:I,offsetX:V,offsetY:Ke,rtl:x,getSize:it}),we=ys(M,Pe,Ge,h,Q,f,j),$e=null;i&&($e=oe(k({},u?"height":"maxHeight",i),Ts),w&&($e.overflowY="hidden",h&&($e.overflowX="hidden"),W&&($e.pointerEvents="none")));var De={};return x&&(De.dir="rtl"),o.createElement("div",Ie({style:oe(oe({},c),{},{position:"relative"}),className:D},De,E),o.createElement(pn,{onResize:Le},o.createElement(b,{className:"".concat(a,"-holder"),style:$e,ref:R,onScroll:at,onMouseEnter:_e},o.createElement(Eo,{prefixCls:a,height:ke,offsetX:V,offsetY:Ke,scrollWidth:h,onInnerResize:ge,ref:L,innerProps:O,rtl:x,extra:ut},we))),I&&ke>i&&o.createElement(va,{ref:qe,prefixCls:a,scrollOffset:z,scrollRange:ke,rtl:x,onScroll:Je,onStartMove:me,onStopMove:K,spinSize:Te,containerSize:Fe.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb}),I&&h>Fe.width&&o.createElement(va,{ref:Xe,prefixCls:a,scrollOffset:V,scrollRange:h,rtl:x,onScroll:Je,onStartMove:me,onStopMove:K,spinSize:St,containerSize:Fe.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb}))}var Io=o.forwardRef(_s);Io.displayName="List";function zs(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var js=["disabled","title","children","style","className"];function fr(e){return typeof e=="string"||typeof e=="number"}var Ls=function(t,n){var a=Jl(),r=a.prefixCls,i=a.id,s=a.open,l=a.multiple,u=a.mode,c=a.searchValue,m=a.toggleOpen,f=a.notFoundContent,v=a.onPopupScroll,d=o.useContext(Ma),g=d.maxCount,h=d.flattenOptions,p=d.onActiveValue,b=d.defaultActiveFirstOption,S=d.onSelect,C=d.menuItemSelectedIcon,N=d.rawValues,O=d.fieldNames,y=d.virtual,$=d.direction,E=d.listHeight,w=d.listItemHeight,I=d.optionRender,x="".concat(r,"-item"),D=Hi(function(){return h},[s,h],function(B,j){return j[0]&&B[1]!==j[1]}),M=o.useRef(null),R=o.useMemo(function(){return l&&typeof g<"u"&&(N==null?void 0:N.size)>=g},[l,g,N==null?void 0:N.size]),L=function(j){j.preventDefault()},Y=function(j){var G;(G=M.current)===null||G===void 0||G.scrollTo(typeof j=="number"?{index:j}:j)},_=function(j){for(var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,se=D.length,q=0;q1&&arguments[1]!==void 0?arguments[1]:!1;ae(j);var se={source:G?"keyboard":"mouse"},q=D[j];if(!q){p(null,-1,se);return}p(q.value,j,se)};o.useEffect(function(){V(b!==!1?_(0):-1)},[D.length,c]);var A=o.useCallback(function(B){return N.has(B)&&u!=="combobox"},[u,tt(N).toString(),N.size]);o.useEffect(function(){var B=setTimeout(function(){if(!l&&s&&N.size===1){var G=Array.from(N)[0],se=D.findIndex(function(q){var T=q.data;return T.value===G});se!==-1&&(V(se),Y(se))}});if(s){var j;(j=M.current)===null||j===void 0||j.scrollTo(void 0)}return function(){return clearTimeout(B)}},[s,c]);var U=function(j){j!==void 0&&S(j,{selected:!N.has(j)}),l||m(!1)};if(o.useImperativeHandle(n,function(){return{onKeyDown:function(j){var G=j.which,se=j.ctrlKey;switch(G){case ne.N:case ne.P:case ne.UP:case ne.DOWN:{var q=0;if(G===ne.UP?q=-1:G===ne.DOWN?q=1:zs()&&se&&(G===ne.N?q=1:G===ne.P&&(q=-1)),q!==0){var T=_(le+q,q);Y(T),V(T,!0)}break}case ne.ENTER:{var ce,pe=D[le];pe&&!(pe!=null&&(ce=pe.data)!==null&&ce!==void 0&&ce.disabled)&&!R?U(pe.value):U(void 0),s&&j.preventDefault();break}case ne.ESC:m(!1),s&&j.stopPropagation()}},onKeyUp:function(){},scrollTo:function(j){Y(j)}}}),D.length===0)return o.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(x,"-empty"),onMouseDown:L},f);var Z=Object.keys(O).map(function(B){return O[B]}),W=function(j){return j.label};function ve(B,j){var G=B.group;return{role:G?"presentation":"option",id:"".concat(i,"_list_").concat(j)}}var me=function(j){var G=D[j];if(!G)return null;var se=G.data||{},q=se.value,T=G.group,ce=dn(se,!0),pe=W(G);return G?o.createElement("div",Ie({"aria-label":typeof pe=="string"&&!T?pe:null},ce,{key:j},ve(G,j),{"aria-selected":A(q)}),q):null},K={role:"listbox",id:"".concat(i,"_list")};return o.createElement(o.Fragment,null,y&&o.createElement("div",Ie({},K,{style:{height:0,width:0,overflow:"hidden"}}),me(le-1),me(le),me(le+1)),o.createElement(Io,{itemKey:"key",ref:M,data:D,height:E,itemHeight:w,fullHeight:!1,onMouseDown:L,onScroll:v,virtual:y,direction:$,innerProps:y?null:K},function(B,j){var G,se=B.group,q=B.groupOption,T=B.data,ce=B.label,pe=B.value,ue=T.key;if(se){var X,Q=(X=T.title)!==null&&X!==void 0?X:fr(ce)?ce.toString():void 0;return o.createElement("div",{className:H(x,"".concat(x,"-group")),title:Q},ce!==void 0?ce:ue)}var ge=T.disabled,Oe=T.title;T.children;var xe=T.style,Ve=T.className,ke=bt(T,js),Pe=fn(ke,Z),Ge=A(pe),Ke=ge||!Ge&&R,ze="".concat(x,"-option"),Ue=H(x,ze,Ve,(G={},k(G,"".concat(ze,"-grouped"),q),k(G,"".concat(ze,"-active"),le===j&&!Ke),k(G,"".concat(ze,"-disabled"),Ke),k(G,"".concat(ze,"-selected"),Ge),G)),Fe=W(B),ct=!C||typeof C=="function"||Ge,Le=typeof Fe=="number"?Fe:Fe||pe,qe=fr(Le)?Le.toString():void 0;return Oe!==void 0&&(qe=Oe),o.createElement("div",Ie({},dn(Pe),y?{}:ve(B,j),{"aria-selected":Ge,className:Ue,title:qe,onMouseMove:function(){le===j||Ke||V(j)},onClick:function(){Ke||U(pe)},style:xe}),o.createElement("div",{className:"".concat(ze,"-content")},typeof I=="function"?I(B,{index:j}):Le),o.isValidElement(C)||Ge,ct&&o.createElement(Ln,{className:"".concat(x,"-option-state"),customizeIcon:C,customizeIconProps:{value:pe,disabled:Ke,isSelected:Ge}},Ge?"✓":null))}))},Oo=o.forwardRef(Ls);Oo.displayName="OptionList";const Bs=function(e,t){var n=o.useRef({values:new Map,options:new Map}),a=o.useMemo(function(){var i=n.current,s=i.values,l=i.options,u=e.map(function(f){if(f.label===void 0){var v;return oe(oe({},f),{},{label:(v=s.get(f.value))===null||v===void 0?void 0:v.label})}return f}),c=new Map,m=new Map;return u.forEach(function(f){c.set(f.value,f),m.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=c,n.current.options=m,u},[e,t]),r=o.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[a,r]};function Yn(e,t){return Pa(e).join("").toUpperCase().includes(t)}const Hs=function(e,t,n,a,r){return o.useMemo(function(){if(!n||a===!1)return e;var i=t.options,s=t.label,l=t.value,u=[],c=typeof a=="function",m=n.toUpperCase(),f=c?a:function(d,g){return r?Yn(g[r],m):g[i]?Yn(g[s!=="children"?s:"label"],m):Yn(g[l],m)},v=c?function(d){return ma(d)}:function(d){return d};return e.forEach(function(d){if(d[i]){var g=f(n,v(d));if(g)u.push(d);else{var h=d[i].filter(function(p){return f(n,v(p))});h.length&&u.push(oe(oe({},d),{},k({},i,h)))}return}f(n,v(d))&&u.push(d)}),u},[e,a,r,n,t])};var mr=0,As=Xr();function Vs(){var e;return As?(e=mr,mr+=1):e="TEST_OR_SSR",e}function Fs(e){var t=o.useState(),n=F(t,2),a=n[0],r=n[1];return o.useEffect(function(){r("rc_select_".concat(Vs()))},[]),e||a}var ks=["children","value"],Ws=["children"];function Gs(e){var t=e,n=t.key,a=t.props,r=a.children,i=a.value,s=bt(a,ks);return oe({key:n,value:i!==void 0?i:n,children:r},s)}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Mn(e).map(function(n,a){if(!o.isValidElement(n)||!n.type)return null;var r=n,i=r.type.isSelectOptGroup,s=r.key,l=r.props,u=l.children,c=bt(l,Ws);return t||!i?Gs(n):oe(oe({key:"__RC_SELECT_GRP__".concat(s===null?a:s,"__"),label:s},c),{},{options:_a(u)})}).filter(function(n){return n})}var Ks=function(t,n,a,r,i){return o.useMemo(function(){var s=t,l=!t;l&&(s=_a(n));var u=new Map,c=new Map,m=function(d,g,h){h&&typeof h=="string"&&d.set(g[h],g)},f=function v(d){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h1&&arguments[1]!==void 0?arguments[1]:!1,s=0;s2&&arguments[2]!==void 0?arguments[2]:{},re=ee.source,be=re===void 0?"keyboard":re;ft(Ce),s&&a==="combobox"&&Se!==null&&be==="keyboard"&&Te(String(Se))},[s,a]),ie=function(Ce,ee,re){var be=function(){var Ne,Be=Ve(Ce);return[z?{label:Be==null?void 0:Be[W.label],value:Ce,key:(Ne=Be==null?void 0:Be.key)!==null&&Ne!==void 0?Ne:Ce}:Ce,ma(Be)]};if(ee&&d){var _e=be(),et=F(_e,2),it=et[0],ut=et[1];d(it,ut)}else if(!ee&&g&&re!=="clear"){var we=be(),$e=F(we,2),De=$e[0],J=$e[1];g(De,J)}},Re=vr(function(Se,Ce){var ee,re=A?Ce.selected:!0;re?ee=A?[].concat(tt(xe),[Se]):[Se]:ee=xe.filter(function(be){return be.value!==Se}),Le(ee),ie(Se,re),a==="combobox"?Te(""):(!Tn||v)&&(B(""),Te(""))}),ye=function(Ce,ee){Le(Ce);var re=ee.type,be=ee.values;(re==="remove"||re==="clear")&&be.forEach(function(_e){ie(_e.value,!1,re)})},Je=function(Ce,ee){if(B(Ce),Te(null),ee.source==="submit"){var re=(Ce||"").trim();if(re){var be=Array.from(new Set([].concat(tt(Pe),[re])));Le(be),ie(re,!0),B("")}return}ee.source!=="blur"&&(a==="combobox"&&Le(Ce),m==null||m(Ce))},at=function(Ce){var ee=Ce;a!=="tags"&&(ee=Ce.map(function(be){var _e=se.get(be);return _e==null?void 0:_e.value}).filter(function(be){return be!==void 0}));var re=Array.from(new Set([].concat(tt(Pe),tt(ee))));Le(re),re.forEach(function(be){ie(be,!0)})},We=o.useMemo(function(){var Se=I!==!1&&p!==!1;return oe(oe({},j),{},{flattenOptions:ct,onActiveValue:he,defaultActiveFirstOption:yt,onSelect:Re,menuItemSelectedIcon:w,rawValues:Pe,fieldNames:W,virtual:Se,direction:x,listHeight:M,listItemHeight:L,childrenAsData:U,maxCount:le,optionRender:y})},[le,j,ct,he,yt,Re,w,Pe,W,I,p,x,M,L,U,y]);return Us(e),qs(q,W),o.createElement(Ma.Provider,{value:We},o.createElement(xo,Ie({},ae,{id:V,prefixCls:i,ref:t,omitDomProps:Ys,mode:a,displayValues:ke,onDisplayValuesChange:ye,direction:x,searchValue:K,onSearch:Je,autoClearSearchValue:v,onSearchSplit:at,dropdownMatchSelectWidth:p,OptionList:Oo,emptyOptions:!ct.length,activeValue:St,activeDescendantId:"".concat(V,"_list_").concat(Et)})))});Ro.displayName="Select";var za=Ro;za.Option=Ta;za.OptGroup=Da;const Po=()=>{const[,e]=_n(),n=new sn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};Po.displayName="EmptyImage";const Js=Po,Mo=()=>{const[,e]=_n(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:a,colorBgContainer:r}=e,{borderColor:i,shadowColor:s,contentColor:l}=o.useMemo(()=>({borderColor:new sn(t).onBackground(r).toHexShortString(),shadowColor:new sn(n).onBackground(r).toHexShortString(),contentColor:new sn(a).onBackground(r).toHexShortString()}),[t,n,a,r]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:i},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};Mo.displayName="SimpleImage";const Zs=Mo,ec=e=>{const{componentCls:t,margin:n,marginXS:a,marginXL:r,fontSize:i,lineHeight:s}=e;return{[t]:{marginInline:a,fontSize:i,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:a,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:a,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},tc=_t("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:a}=e,r=wt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:a(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:a(n).mul(.875).equal()});return[ec(r)]});var nc=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:a,image:r=Do,description:i,children:s,imageStyle:l,style:u}=e,c=nc(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:m,direction:f,empty:v}=o.useContext(Ze),d=m("empty",a),[g,h,p]=tc(d),[b]=oo("Empty"),S=typeof i<"u"?i:b==null?void 0:b.description,C=typeof S=="string"?S:"empty";let N=null;return typeof r=="string"?N=o.createElement("img",{alt:C,src:r}):N=r,g(o.createElement("div",Object.assign({className:H(h,p,d,v==null?void 0:v.className,{[`${d}-normal`]:r===To,[`${d}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),u)},c),o.createElement("div",{className:`${d}-image`,style:l},N),S&&o.createElement("div",{className:`${d}-description`},S),s&&o.createElement("div",{className:`${d}-footer`},s)))};Bn.PRESENTED_IMAGE_DEFAULT=Do;Bn.PRESENTED_IMAGE_SIMPLE=To;Bn.displayName="Empty";const on=Bn,ac=e=>{const{componentName:t}=e,{getPrefixCls:n}=o.useContext(Ze),a=n("empty");switch(t){case"Table":case"List":return de.createElement(on,{image:on.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(on,{image:on.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return de.createElement(on,null)}},rc=ac,oc=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function ic(e,t){return e||oc(t)}const gr=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:a,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:a,boxSizing:"border-box"}},lc=e=>{const{antCls:t,componentCls:n}=e,a=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},It(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - ${r}${l}bottomLeft, - ${i}${l}bottomLeft - `]:{animationName:sl},[` - ${r}${l}topLeft, - ${i}${l}topLeft, - ${r}${l}topRight, - ${i}${l}topRight - `]:{animationName:cl},[`${s}${l}bottomLeft`]:{animationName:ul},[` - ${s}${l}topLeft, - ${s}${l}topRight - `]:{animationName:dl},"&-hidden":{display:"none"},[`${a}`]:Object.assign(Object.assign({},gr(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},un),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${a}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${a}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${a}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${a}-option-selected:not(${a}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${a}-option-selected:not(${a}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${a}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},gr(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Pn(e,"slide-up"),Pn(e,"slide-down"),Qa(e,"move-up"),Qa(e,"move-down")]},an=2,sc=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:a}=e;return e.calc(n).sub(t).div(2).sub(a).equal()},cc=(e,t)=>{const{componentCls:n,iconCls:a}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,s=sc(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(an).mul(2).equal(),paddingBlock:e.calc(s).sub(an).equal(),borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${P(an)} 0`,lineHeight:P(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:an,marginBottom:an,lineHeight:P(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(an).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},$a()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${a}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:P(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function Qn(e,t){const{componentCls:n}=e,a=t?`${n}-${t}`:"",r={[`${n}-multiple${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[cc(e,t),r]}const uc=e=>{const{componentCls:t}=e,n=wt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),a=wt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Qn(e),Qn(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Qn(a,"lg")]};function Jn(e,t){const{componentCls:n,inputPaddingHorizontalBase:a,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},It(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:a,insetInlineEnd:a,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{padding:0,lineHeight:P(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${P(a)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:P(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${P(a)}`,"&:after":{display:"none"}}}}}}}function dc(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Jn(e),Jn(wt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${P(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Jn(wt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const fc=e=>{const{fontSize:t,lineHeight:n,controlHeight:a,controlPaddingHorizontal:r,zIndexPopupBase:i,colorText:s,fontWeightStrong:l,controlItemBgActive:u,controlItemBgHover:c,colorBgContainer:m,colorFillSecondary:f,controlHeightLG:v,controlHeightSM:d,colorBgContainerDisabled:g,colorTextDisabled:h}=e;return{zIndexPopup:i+50,optionSelectedColor:s,optionSelectedFontWeight:l,optionSelectedBg:u,optionActiveBg:c,optionPadding:`${(a-t*n)/2}px ${r}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:m,clearBg:m,singleItemHeightLG:v,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:d,multipleItemHeightLG:a,multipleSelectorBgDisabled:g,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},_o=(e,t)=>{const{componentCls:n,antCls:a,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${P(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${a}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${P(r)} ${t.activeShadowColor}`,outline:0}}}},pr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},_o(e,t))}),mc=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},_o(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),pr(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),pr(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${P(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),zo=(e,t)=>{const{componentCls:n,antCls:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${P(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${a}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},hr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},zo(e,t))}),vc=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},zo(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),hr(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),hr(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${P(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),gc=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${P(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),pc=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},mc(e)),vc(e)),gc(e))}),hc=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},bc=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Sc=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:a,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},It(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},hc(e)),bc(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},un),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},un),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},$a()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:a,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:a,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(a).add(e.fontSize).add(e.paddingXS).equal()}}}},yc=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Sc(e),dc(e),uc(e),lc(e),{[`${t}-rtl`]:{direction:"rtl"}},io(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Cc=_t("Select",(e,t)=>{let{rootPrefixCls:n}=t;const a=wt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[yc(a),pc(a)]},fc,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var $c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const wc=$c;var jo=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:wc}))};jo.displayName="CheckOutlined";const xc=o.forwardRef(jo);var Ec={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Nc=Ec;var Lo=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:Nc}))};Lo.displayName="DownOutlined";const Bo=o.forwardRef(Lo);function Ic(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:a,removeIcon:r,loading:i,multiple:s,hasFeedback:l,prefixCls:u,showSuffixIcon:c,feedbackIcon:m,showArrow:f,componentName:v}=e;Wt(v).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const d=n??o.createElement(ro,null),g=S=>t===null&&!l&&!f?null:o.createElement(o.Fragment,null,c!==!1&&S,l&&m);let h=null;if(t!==void 0)h=g(t);else if(i)h=g(o.createElement(Na,{spin:!0}));else{const S=`${u}-suffix`;h=C=>{let{open:N,showSearch:O}=C;return g(N&&O?o.createElement(Gi,{className:S}):o.createElement(Bo,{className:S}))}}let p=null;a!==void 0?p=a:s?p=o.createElement(xc,null):p=null;let b=null;return r!==void 0?b=r:b=o.createElement(Ea,null),{clearIcon:d,suffixIcon:h,itemIcon:p,removeIcon:b}}function Oc(e,t){return t!==void 0?t:e!==null}var Rc=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:a,bordered:r,className:i,rootClassName:s,getPopupContainer:l,popupClassName:u,dropdownClassName:c,listHeight:m=256,placement:f,listItemHeight:v,size:d,disabled:g,notFoundContent:h,status:p,builtinPlacements:b,dropdownMatchSelectWidth:S,popupMatchSelectWidth:C,direction:N,style:O,allowClear:y,variant:$,dropdownStyle:E,transitionName:w,tagRender:I,maxCount:x}=e,D=Rc(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:R,renderEmpty:L,direction:Y,virtual:_,popupMatchSelectWidth:z,popupOverflow:te,select:le}=o.useContext(Ze),[,ae]=_n(),V=v??(ae==null?void 0:ae.controlHeight),A=R("select",a),U=R(),Z=N??Y,{compactSize:W,compactItemClassnames:ve}=lo(A,Z),[me,K]=Zr($,r),B=Cn(A),[j,G,se]=Cc(A,B),q=o.useMemo(()=>{const{mode:Te}=e;if(Te!=="combobox")return Te===Ho?"combobox":Te},[e.mode]),T=q==="multiple"||q==="tags",ce=Oc(e.suffixIcon,e.showArrow),pe=(n=C??S)!==null&&n!==void 0?n:z,{status:ue,hasFeedback:X,isFormItemInput:Q,feedbackIcon:ge}=o.useContext(so),Oe=eo(ue,p);let xe;h!==void 0?xe=h:q==="combobox"?xe=null:xe=(L==null?void 0:L("Select"))||o.createElement(rc,{componentName:"Select"});const{suffixIcon:Ve,itemIcon:ke,removeIcon:Pe,clearIcon:Ge}=Ic(Object.assign(Object.assign({},D),{multiple:T,hasFeedback:X,feedbackIcon:ge,showSuffixIcon:ce,prefixCls:A,componentName:"Select"})),Ke=y===!0?{clearIcon:Ge}:y,ze=fn(D,["suffixIcon","itemIcon"]),Ue=H(u||c,{[`${A}-dropdown-${Z}`]:Z==="rtl"},s,se,B,G),Fe=mn(Te=>{var nt;return(nt=d??W)!==null&&nt!==void 0?nt:Te}),ct=o.useContext(wa),Le=g??ct,qe=H({[`${A}-lg`]:Fe==="large",[`${A}-sm`]:Fe==="small",[`${A}-rtl`]:Z==="rtl",[`${A}-${me}`]:K,[`${A}-in-form-item`]:Q},sa(A,Oe,X),ve,le==null?void 0:le.className,i,s,se,B,G),Xe=o.useMemo(()=>f!==void 0?f:Z==="rtl"?"bottomRight":"bottomLeft",[f,Z]);{const Te=Wt("Select");Te.deprecated(!c,"dropdownClassName","popupClassName"),Te.deprecated(S===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),Te(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),Te.deprecated(!("bordered"in e),"bordered","variant"),Te(!(typeof x<"u"&&!T),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[St]=co("SelectLike",E==null?void 0:E.zIndex);return j(o.createElement(za,Object.assign({ref:t,virtual:_,showSearch:le==null?void 0:le.showSearch},ze,{style:Object.assign(Object.assign({},le==null?void 0:le.style),O),dropdownMatchSelectWidth:pe,transitionName:Dn(U,"slide-up",w),builtinPlacements:ic(b,te),listHeight:m,listItemHeight:V,mode:q,prefixCls:A,placement:Xe,direction:Z,suffixIcon:Ve,menuItemSelectedIcon:ke,removeIcon:Pe,allowClear:Ke,notFoundContent:xe,className:qe,getPopupContainer:l||M,dropdownClassName:Ue,disabled:Le,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:St}),maxCount:T?x:void 0,tagRender:T?I:void 0})))};Ao.displayName="Select";const Qt=o.forwardRef(Ao),Pc=fl(Qt);Qt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ho;Qt.Option=Ta;Qt.OptGroup=Da;Qt._InternalPanelDoNotUseOrYouWillBeFired=Pc;Qt.displayName="Select";const Hn=Qt;function Mc(){const[,e]=o.useReducer(t=>t+1,0);return e}function Dc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=o.useRef({}),n=Mc(),a=Ki();return Tt(()=>{const r=a.subscribe(i=>{t.current=i,e&&n()});return()=>a.unsubscribe(r)},[]),t.current}const Tc=e=>{const{prefixCls:t,className:n,style:a,size:r,shape:i}=e,s=H({[`${t}-lg`]:r==="large",[`${t}-sm`]:r==="small"}),l=H({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),u=o.useMemo(()=>typeof r=="number"?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return o.createElement("span",{className:H(t,s,l,n),style:Object.assign(Object.assign({},u),a)})},An=Tc,_c=new ca("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Vn=e=>({height:e,lineHeight:P(e)}),cn=e=>Object.assign({width:e},Vn(e)),zc=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_c,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Zn=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Vn(e)),jc=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:a,controlHeightLG:r,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},cn(a)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},cn(r)),[`${t}${t}-sm`]:Object.assign({},cn(i))}},Lc=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:a,controlHeightLG:r,controlHeightSM:i,gradientFromColor:s,calc:l}=e;return{[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},Zn(t,l)),[`${a}-lg`]:Object.assign({},Zn(r,l)),[`${a}-sm`]:Object.assign({},Zn(i,l))}},br=e=>Object.assign({width:e},Vn(e)),Bc=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:a,borderRadiusSM:r,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:a,borderRadius:r},br(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},br(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ea=(e,t,n)=>{const{skeletonButtonCls:a}=e;return{[`${n}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${a}-round`]:{borderRadius:t}}},ta=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Vn(e)),Hc=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:a,controlHeightLG:r,controlHeightSM:i,gradientFromColor:s,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:l(a).mul(2).equal(),minWidth:l(a).mul(2).equal()},ta(a,l))},ea(e,a,n)),{[`${n}-lg`]:Object.assign({},ta(r,l))}),ea(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ta(i,l))}),ea(e,i,`${n}-sm`))},Ac=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:a,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:s,skeletonImageCls:l,controlHeight:u,controlHeightLG:c,controlHeightSM:m,gradientFromColor:f,padding:v,marginSM:d,borderRadius:g,titleHeight:h,blockRadius:p,paragraphLiHeight:b,controlHeightXS:S,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},cn(u)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},cn(c)),[`${n}-sm`]:Object.assign({},cn(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${a}`]:{width:"100%",height:h,background:f,borderRadius:p,[`+ ${r}`]:{marginBlockStart:m}},[`${r}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:p,"+ li":{marginBlockStart:S}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${a}, ${r} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[`${a}`]:{marginBlockStart:d,[`+ ${r}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Hc(e)),jc(e)),Lc(e)),Bc(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${s}`]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${a}, - ${r} > li, - ${n}, - ${i}, - ${s}, - ${l} - `]:Object.assign({},zc(e))}}},Vc=e=>{const{colorFillContent:t,colorFill:n}=e,a=t,r=n;return{color:a,colorGradientEnd:r,gradientFromColor:a,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},vn=_t("Skeleton",e=>{const{componentCls:t,calc:n}=e,a=wt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ac(a)]},Vc,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Fc=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,shape:i="circle",size:s="default"}=e,{getPrefixCls:l}=o.useContext(Ze),u=l("skeleton",t),[c,m,f]=vn(u),v=fn(e,["prefixCls","className"]),d=H(u,`${u}-element`,{[`${u}-active`]:r},n,a,m,f);return c(o.createElement("div",{className:d},o.createElement(An,Object.assign({prefixCls:`${u}-avatar`,shape:i,size:s},v))))},kc=Fc,Wc=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,block:i=!1,size:s="default"}=e,{getPrefixCls:l}=o.useContext(Ze),u=l("skeleton",t),[c,m,f]=vn(u),v=fn(e,["prefixCls"]),d=H(u,`${u}-element`,{[`${u}-active`]:r,[`${u}-block`]:i},n,a,m,f);return c(o.createElement("div",{className:d},o.createElement(An,Object.assign({prefixCls:`${u}-button`,size:s},v))))},Gc=Wc,Kc="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Uc=e=>{const{prefixCls:t,className:n,rootClassName:a,style:r,active:i}=e,{getPrefixCls:s}=o.useContext(Ze),l=s("skeleton",t),[u,c,m]=vn(l),f=H(l,`${l}-element`,{[`${l}-active`]:i},n,a,c,m);return u(o.createElement("div",{className:f},o.createElement("div",{className:H(`${l}-image`,n),style:r},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},o.createElement("path",{d:Kc,className:`${l}-image-path`})))))},qc=Uc,Xc=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,block:i,size:s="default"}=e,{getPrefixCls:l}=o.useContext(Ze),u=l("skeleton",t),[c,m,f]=vn(u),v=fn(e,["prefixCls"]),d=H(u,`${u}-element`,{[`${u}-active`]:r,[`${u}-block`]:i},n,a,m,f);return c(o.createElement("div",{className:d},o.createElement(An,Object.assign({prefixCls:`${u}-input`,size:s},v))))},Yc=Xc;var Qc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const Jc=Qc;var Vo=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:Jc}))};Vo.displayName="DotChartOutlined";const Zc=o.forwardRef(Vo),eu=e=>{const{prefixCls:t,className:n,rootClassName:a,style:r,active:i,children:s}=e,{getPrefixCls:l}=o.useContext(Ze),u=l("skeleton",t),[c,m,f]=vn(u),v=H(u,`${u}-element`,{[`${u}-active`]:i},m,n,a,f),d=s??o.createElement(Zc,null);return c(o.createElement("div",{className:v},o.createElement("div",{className:H(`${u}-image`,n),style:r},d)))},tu=eu,nu=e=>{const t=l=>{const{width:u,rows:c=2}=e;if(Array.isArray(u))return u[l];if(c-1===l)return u},{prefixCls:n,className:a,style:r,rows:i}=e,s=tt(Array(i)).map((l,u)=>o.createElement("li",{key:u,style:{width:t(u)}}));return o.createElement("ul",{className:H(n,a),style:r},s)},au=nu,ru=e=>{let{prefixCls:t,className:n,width:a,style:r}=e;return o.createElement("h3",{className:H(t,n),style:Object.assign({width:a},r)})},ou=ru;function na(e){return e&&typeof e=="object"?e:{}}function iu(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lu(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function su(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Jt=e=>{const{prefixCls:t,loading:n,className:a,rootClassName:r,style:i,children:s,avatar:l=!1,title:u=!0,paragraph:c=!0,active:m,round:f}=e,{getPrefixCls:v,direction:d,skeleton:g}=o.useContext(Ze),h=v("skeleton",t),[p,b,S]=vn(h);if(n||!("loading"in e)){const C=!!l,N=!!u,O=!!c;let y;if(C){const w=Object.assign(Object.assign({prefixCls:`${h}-avatar`},iu(N,O)),na(l));y=o.createElement("div",{className:`${h}-header`},o.createElement(An,Object.assign({},w)))}let $;if(N||O){let w;if(N){const x=Object.assign(Object.assign({prefixCls:`${h}-title`},lu(C,O)),na(u));w=o.createElement(ou,Object.assign({},x))}let I;if(O){const x=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},su(C,N)),na(c));I=o.createElement(au,Object.assign({},x))}$=o.createElement("div",{className:`${h}-content`},w,I)}const E=H(h,{[`${h}-with-avatar`]:C,[`${h}-active`]:m,[`${h}-rtl`]:d==="rtl",[`${h}-round`]:f},g==null?void 0:g.className,a,r,b,S);return p(o.createElement("div",{className:E,style:Object.assign(Object.assign({},g==null?void 0:g.style),i)},y,$))}return typeof s<"u"?s:null};Jt.Button=Gc;Jt.Avatar=kc;Jt.Input=Yc;Jt.Image=qc;Jt.Node=tu;Jt.displayName="Skeleton";const cu=Jt;var uu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const du=uu;var Fo=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:du}))};Fo.displayName="PlusOutlined";const ko=o.forwardRef(Fo),Fn=o.createContext(null);var fu=function(t){var n=t.activeTabOffset,a=t.horizontal,r=t.rtl,i=t.indicator,s=i===void 0?{}:i,l=s.size,u=s.align,c=u===void 0?"center":u,m=o.useState(),f=F(m,2),v=f[0],d=f[1],g=o.useRef(),h=de.useCallback(function(b){return typeof l=="function"?l(b):typeof l=="number"?l:b},[l]);function p(){ht.cancel(g.current)}return o.useEffect(function(){var b={};if(n)if(a){b.width=h(n.width);var S=r?"right":"left";c==="start"&&(b[S]=n[S]),c==="center"&&(b[S]=n[S]+n.width/2,b.transform=r?"translateX(50%)":"translateX(-50%)"),c==="end"&&(b[S]=n[S]+n.width,b.transform="translateX(-100%)")}else b.height=h(n.height),c==="start"&&(b.top=n.top),c==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),c==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return p(),g.current=ht(function(){d(b)}),p},[n,a,r,c,h]),{style:v}},Sr={width:0,height:0,left:0,top:0};function mu(e,t,n){return o.useMemo(function(){for(var a,r=new Map,i=t.get((a=e[0])===null||a===void 0?void 0:a.key)||Sr,s=i.left+i.width,l=0;lR?(D=I,y.current="x"):(D=x,y.current="y"),t(-D,-D)&&w.preventDefault()}var E=o.useRef(null);E.current={onTouchStart:C,onTouchMove:N,onTouchEnd:O,onWheel:$},o.useEffect(function(){function w(M){E.current.onTouchStart(M)}function I(M){E.current.onTouchMove(M)}function x(M){E.current.onTouchEnd(M)}function D(M){E.current.onWheel(M)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",x,{passive:!1}),e.current.addEventListener("touchstart",w,{passive:!1}),e.current.addEventListener("wheel",D),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",x)}},[])}function Wo(e){var t=o.useState(0),n=F(t,2),a=n[0],r=n[1],i=o.useRef(0),s=o.useRef();return s.current=e,En(function(){var l;(l=s.current)===null||l===void 0||l.call(s)},[a]),function(){i.current===a&&(i.current+=1,r(i.current))}}function pu(e){var t=o.useRef([]),n=o.useState({}),a=F(n,2),r=a[1],i=o.useRef(typeof e=="function"?e():e),s=Wo(function(){var u=i.current;t.current.forEach(function(c){u=c(u)}),t.current=[],i.current=u,r({})});function l(u){t.current.push(u),s()}return[i.current,l]}var wr={width:0,height:0,left:0,top:0,right:0};function hu(e,t,n,a,r,i,s){var l=s.tabs,u=s.tabPosition,c=s.rtl,m,f,v;return["top","bottom"].includes(u)?(m="width",f=c?"right":"left",v=Math.abs(n)):(m="height",f="top",v=-n),o.useMemo(function(){if(!l.length)return[0,0];for(var d=l.length,g=d,h=0;hv+t){g=h-1;break}}for(var b=0,S=d-1;S>=0;S-=1){var C=e.get(l[S].key)||wr;if(C[f]=g?[0,0]:[b,g]},[e,t,a,r,i,v,u,l.map(function(d){return d.key}).join("_"),c])}function xr(e){var t;return e instanceof Map?(t={},e.forEach(function(n,a){t[a]=n})):t=e,JSON.stringify(t)}var bu="TABS_DQ";function Go(e){return String(e).replace(/"/g,bu)}function Ko(e,t,n,a){return!(!n||a||e===!1||e===void 0&&(t===!1||t===null))}var Uo=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.editable,r=e.locale,i=e.style;return!a||a.showAdd===!1?null:o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(r==null?void 0:r.addAriaLabel)||"Add tab",onClick:function(l){a.onEdit("add",{event:l})}},a.addIcon||"+")}),ga=o.forwardRef(function(e,t){var n=e.position,a=e.prefixCls,r=e.extra;if(!r)return null;var i,s={};return xt(r)==="object"&&!o.isValidElement(r)?s=r:s.right=r,n==="right"&&(i=s.right),n==="left"&&(i=s.left),i?o.createElement("div",{className:"".concat(a,"-extra-content"),ref:t},i):null});ga.displayName="ExtraContent";var Su=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.id,r=e.tabs,i=e.locale,s=e.mobile,l=e.moreIcon,u=l===void 0?"More":l,c=e.moreTransitionName,m=e.style,f=e.className,v=e.editable,d=e.tabBarGutter,g=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,S=e.popupClassName,C=o.useState(!1),N=F(C,2),O=N[0],y=N[1],$=o.useState(null),E=F($,2),w=E[0],I=E[1],x="".concat(a,"-more-popup"),D="".concat(n,"-dropdown"),M=w!==null?"".concat(x,"-").concat(w):null,R=i==null?void 0:i.dropdownAriaLabel;function L(V,A){V.preventDefault(),V.stopPropagation(),v.onEdit("remove",{key:A,event:V})}var Y=o.createElement(ml,{onClick:function(A){var U=A.key,Z=A.domEvent;p(U,Z),y(!1)},prefixCls:"".concat(D,"-menu"),id:x,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[w],"aria-label":R!==void 0?R:"expanded dropdown"},r.map(function(V){var A=V.closable,U=V.disabled,Z=V.closeIcon,W=V.key,ve=V.label,me=Ko(A,Z,v,U);return o.createElement(vl,{key:W,id:"".concat(x,"-").concat(W),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(W),disabled:U},o.createElement("span",null,ve),me&&o.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(B){B.stopPropagation(),L(B,W)}},Z||v.removeIcon||"×"))}));function _(V){for(var A=r.filter(function(me){return!me.disabled}),U=A.findIndex(function(me){return me.key===w})||0,Z=A.length,W=0;W$e?"left":"right"})}),M=F(D,2),R=M[0],L=M[1],Y=yr(0,function(we,$e){!x&&h&&h({direction:we>$e?"top":"bottom"})}),_=F(Y,2),z=_[0],te=_[1],le=o.useState([0,0]),ae=F(le,2),V=ae[0],A=ae[1],U=o.useState([0,0]),Z=F(U,2),W=Z[0],ve=Z[1],me=o.useState([0,0]),K=F(me,2),B=K[0],j=K[1],G=o.useState([0,0]),se=F(G,2),q=se[0],T=se[1],ce=pu(new Map),pe=F(ce,2),ue=pe[0],X=pe[1],Q=mu(C,ue,W[0]),ge=xn(V,x),Oe=xn(W,x),xe=xn(B,x),Ve=xn(q,x),ke=geze?ze:we}var Fe=o.useRef(null),ct=o.useState(),Le=F(ct,2),qe=Le[0],Xe=Le[1];function St(){Xe(Date.now())}function Te(){Fe.current&&clearTimeout(Fe.current)}gu($,function(we,$e){function De(J,fe){J(function(Ne){var Be=Ue(Ne+fe);return Be})}return ke?(x?De(L,we):De(te,$e),Te(),St(),!0):!1}),o.useEffect(function(){return Te(),qe&&(Fe.current=setTimeout(function(){Xe(0)},100)),Te},[qe]);var nt=hu(Q,Pe,x?R:z,Oe,xe,Ve,oe(oe({},e),{},{tabs:C})),Ye=F(nt,2),Et=Ye[0],ft=Ye[1],yt=ua(function(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,$e=Q.get(we)||{width:0,height:0,left:0,right:0,top:0};if(x){var De=R;l?$e.rightR+Pe&&(De=$e.right+$e.width-Pe):$e.left<-R?De=-$e.left:$e.left+$e.width>-R+Pe&&(De=-($e.left+$e.width-Pe)),te(0),L(Ue(De))}else{var J=z;$e.top<-z?J=-$e.top:$e.top+$e.height>-z+Pe&&(J=-($e.top+$e.height-Pe)),L(0),te(Ue(J))}}),he={};f==="top"||f==="bottom"?he[l?"marginRight":"marginLeft"]=v:he.marginTop=v;var ie=C.map(function(we,$e){var De=we.key;return o.createElement(Cu,{id:r,prefixCls:S,key:De,tab:we,style:$e===0?void 0:he,closable:we.closable,editable:c,active:De===s,renderWrapper:d,removeAriaLabel:m==null?void 0:m.removeAriaLabel,onClick:function(fe){g(De,fe)},onFocus:function(){yt(De),St(),$.current&&(l||($.current.scrollLeft=0),$.current.scrollTop=0)}})}),Re=function(){return X(function(){var $e,De=new Map,J=($e=E.current)===null||$e===void 0?void 0:$e.getBoundingClientRect();return C.forEach(function(fe){var Ne,Be=fe.key,lt=(Ne=E.current)===null||Ne===void 0?void 0:Ne.querySelector('[data-node-key="'.concat(Go(Be),'"]'));if(lt){var jt=$u(lt,J),mt=F(jt,4),vt=mt[0],Ht=mt[1],Ot=mt[2],Rt=mt[3];De.set(Be,{width:vt,height:Ht,left:Ot,top:Rt})}}),De})};o.useEffect(function(){Re()},[C.map(function(we){return we.key}).join("_")]);var ye=Wo(function(){var we=rn(N),$e=rn(O),De=rn(y);A([we[0]-$e[0]-De[0],we[1]-$e[1]-De[1]]);var J=rn(I);j(J);var fe=rn(w);T(fe);var Ne=rn(E);ve([Ne[0]-J[0],Ne[1]-J[1]]),Re()}),Je=C.slice(0,Et),at=C.slice(ft+1),We=[].concat(tt(Je),tt(at)),Se=Q.get(s),Ce=fu({activeTabOffset:Se,horizontal:x,indicator:p,rtl:l}),ee=Ce.style;o.useEffect(function(){yt()},[s,Ke,ze,xr(Se),xr(Q),x]),o.useEffect(function(){ye()},[l]);var re=!!We.length,be="".concat(S,"-nav-wrap"),_e,et,it,ut;return x?l?(et=R>0,_e=R!==ze):(_e=R<0,et=R!==Ke):(it=z<0,ut=z!==Ke),o.createElement(pn,{onResize:ye},o.createElement("div",{ref:Sa(t,N),role:"tablist",className:H("".concat(S,"-nav"),n),style:a,onKeyDown:function(){St()}},o.createElement(ga,{ref:O,position:"left",extra:u,prefixCls:S}),o.createElement(pn,{onResize:ye},o.createElement("div",{className:H(be,k(k(k(k({},"".concat(be,"-ping-left"),_e),"".concat(be,"-ping-right"),et),"".concat(be,"-ping-top"),it),"".concat(be,"-ping-bottom"),ut)),ref:$},o.createElement(pn,{onResize:ye},o.createElement("div",{ref:E,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(z,"px)"),transition:qe?"none":void 0}},ie,o.createElement(Uo,{ref:I,prefixCls:S,locale:m,editable:c,style:oe(oe({},ie.length===0?void 0:he),{},{visibility:re?"hidden":null})}),o.createElement("div",{className:H("".concat(S,"-ink-bar"),k({},"".concat(S,"-ink-bar-animated"),i.inkBar)),style:ee}))))),o.createElement(yu,Ie({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:w,prefixCls:S,tabs:We,className:!re&&Ge,tabMoving:!!qe})),o.createElement(ga,{ref:y,position:"right",extra:u,prefixCls:S})))}),ja=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.className,r=e.style,i=e.id,s=e.active,l=e.tabKey,u=e.children;return o.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!s,style:r,className:H(n,s&&"".concat(n,"-active"),a),ref:t},u)});ja.displayName="TabPane";var wu=["renderTabBar"],xu=["label","key"],qo=function(t){var n=t.renderTabBar,a=bt(t,wu),r=o.useContext(Fn),i=r.tabs;if(n){var s=oe(oe({},a),{},{panes:i.map(function(l){var u=l.label,c=l.key,m=bt(l,xu);return o.createElement(ja,Ie({tab:u,key:c,tabKey:c},m))})});return n(s,Er)}return o.createElement(Er,a)};qo.displayName="TabNavListWrapper";var Eu=["key","forceRender","style","className","destroyInactiveTabPane"],Nu=function(t){var n=t.id,a=t.activeKey,r=t.animated,i=t.tabPosition,s=t.destroyInactiveTabPane,l=o.useContext(Fn),u=l.prefixCls,c=l.tabs,m=r.tabPane,f="".concat(u,"-tabpane");return o.createElement("div",{className:H("".concat(u,"-content-holder"))},o.createElement("div",{className:H("".concat(u,"-content"),"".concat(u,"-content-").concat(i),k({},"".concat(u,"-content-animated"),m))},c.map(function(v){var d=v.key,g=v.forceRender,h=v.style,p=v.className,b=v.destroyInactiveTabPane,S=bt(v,Eu),C=d===a;return o.createElement(la,Ie({key:d,visible:C,forceRender:g,removeOnLeave:!!(s||b),leavedClassName:"".concat(f,"-hidden")},r.tabPaneMotion),function(N,O){var y=N.style,$=N.className;return o.createElement(ja,Ie({},S,{prefixCls:f,id:n,tabKey:d,animated:m,active:C,style:oe(oe({},h),y),className:H(p,$),ref:O}))})})))};function Iu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=oe({inkBar:!0},xt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(ot(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var Ou=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Nr=0,Xo=o.forwardRef(function(e,t){var n=e.id,a=e.prefixCls,r=a===void 0?"rc-tabs":a,i=e.className,s=e.items,l=e.direction,u=e.activeKey,c=e.defaultActiveKey,m=e.editable,f=e.animated,v=e.tabPosition,d=v===void 0?"top":v,g=e.tabBarGutter,h=e.tabBarStyle,p=e.tabBarExtraContent,b=e.locale,S=e.moreIcon,C=e.moreTransitionName,N=e.destroyInactiveTabPane,O=e.renderTabBar,y=e.onChange,$=e.onTabClick,E=e.onTabScroll,w=e.getPopupContainer,I=e.popupClassName,x=e.indicator,D=bt(e,Ou),M=o.useMemo(function(){return(s||[]).filter(function(T){return T&&xt(T)==="object"&&"key"in T})},[s]),R=l==="rtl",L=Iu(f),Y=o.useState(!1),_=F(Y,2),z=_[0],te=_[1];o.useEffect(function(){te(Ia())},[]);var le=Bt(function(){var T;return(T=M[0])===null||T===void 0?void 0:T.key},{value:u,defaultValue:c}),ae=F(le,2),V=ae[0],A=ae[1],U=o.useState(function(){return M.findIndex(function(T){return T.key===V})}),Z=F(U,2),W=Z[0],ve=Z[1];o.useEffect(function(){var T=M.findIndex(function(pe){return pe.key===V});if(T===-1){var ce;T=Math.max(0,Math.min(W,M.length-1)),A((ce=M[T])===null||ce===void 0?void 0:ce.key)}ve(T)},[M.map(function(T){return T.key}).join("_"),V,W]);var me=Bt(null,{value:n}),K=F(me,2),B=K[0],j=K[1];o.useEffect(function(){n||(j("rc-tabs-".concat(Nr)),Nr+=1)},[]);function G(T,ce){$==null||$(T,ce);var pe=T!==V;A(T),pe&&(y==null||y(T))}var se={id:B,activeKey:V,animated:L,tabPosition:d,rtl:R,mobile:z},q=oe(oe({},se),{},{editable:m,locale:b,moreIcon:S,moreTransitionName:C,tabBarGutter:g,onTabClick:G,onTabScroll:E,extra:p,style:h,panes:null,getPopupContainer:w,popupClassName:I,indicator:x});return o.createElement(Fn.Provider,{value:{tabs:M,prefixCls:r}},o.createElement("div",Ie({ref:t,id:n,className:H(r,"".concat(r,"-").concat(d),k(k(k({},"".concat(r,"-mobile"),z),"".concat(r,"-editable"),m),"".concat(r,"-rtl"),R),i)},D),o.createElement(qo,Ie({},q,{renderTabBar:O})),o.createElement(Nu,Ie({destroyInactiveTabPane:N},se,{animated:L}))))});Xo.displayName="Tabs";const Ru={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Ru),{motionName:Dn(e,"switch")})),n}var Mu=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);rt)}function Tu(e,t){if(Wt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=Mn(t).map(a=>{if(o.isValidElement(a)){const{key:r,props:i}=a,s=i||{},{tab:l}=s,u=Mu(s,["tab"]);return Object.assign(Object.assign({key:String(r)},u),{label:l})}return null});return Du(n)}const _u=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Pn(e,"slide-up"),Pn(e,"slide-down")]]},zu=_u,ju=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:a,border:`${P(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:P(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:P(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${P(e.borderRadiusLG)} 0 0 ${P(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Lu=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},It(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${P(a)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},un),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${P(e.paddingXXS)} ${P(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Bu=e=>{const{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:s,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${P(e.lineWidth)} ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:P(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${P(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${P(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Hu=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${P(e.borderRadius)} ${P(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${P(e.borderRadius)} ${P(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${P(e.borderRadius)} ${P(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${P(e.borderRadius)} 0 0 ${P(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}}}}}},Au=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:s,itemSelectedColor:l,itemColor:u}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:u,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},zn(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:a},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Vu=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:r,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:P(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:P(e.marginXS)},marginLeft:{_skip_check_:!0,value:P(i(e.marginXXS).mul(-1).equal())},[a]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Fu=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:r,itemHoverColor:i,itemActiveColor:s,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},It(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${P(e.paddingXS)}`,background:"transparent",border:`${P(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:s}},zn(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Au(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},ku=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Wu=_t("Tabs",e=>{const t=wt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${P(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${P(e.horizontalItemGutter)}`});return[Hu(t),Vu(t),Bu(t),Lu(t),ju(t),Fu(t),zu(t)]},ku),Yo=()=>null;Yo.displayName="DeprecatedTabPane";const Gu=Yo;var Ku=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var t,n,a,r,i,s,l;const{type:u,className:c,rootClassName:m,size:f,onEdit:v,hideAdd:d,centered:g,addIcon:h,moreIcon:p,popupClassName:b,children:S,items:C,animated:N,style:O,indicatorSize:y,indicator:$}=e,E=Ku(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:w}=E,{direction:I,tabs:x,getPrefixCls:D,getPopupContainer:M}=o.useContext(Ze),R=D("tabs",w),L=Cn(R),[Y,_,z]=Wu(R,L);let te;u==="editable-card"&&(te={onEdit:(W,ve)=>{let{key:me,event:K}=ve;v==null||v(W==="add"?K:me,W)},removeIcon:o.createElement(Ea,null),addIcon:(h??(x==null?void 0:x.addIcon))||o.createElement(ko,null),showAdd:d!==!0});const le=D();{const W=Wt("Tabs");W(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),W(!(y||x!=null&&x.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const ae=mn(f),V=Tu(C,S),A=Pu(R,N),U=Object.assign(Object.assign({},x==null?void 0:x.style),O),Z={align:(t=$==null?void 0:$.align)!==null&&t!==void 0?t:(n=x==null?void 0:x.indicator)===null||n===void 0?void 0:n.align,size:(s=(r=(a=$==null?void 0:$.size)!==null&&a!==void 0?a:y)!==null&&r!==void 0?r:(i=x==null?void 0:x.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:x==null?void 0:x.indicatorSize};return Y(o.createElement(Xo,Object.assign({direction:I,getPopupContainer:M,moreTransitionName:`${le}-slide-up`},E,{items:V,className:H({[`${R}-${ae}`]:ae,[`${R}-card`]:["card","editable-card"].includes(u),[`${R}-editable-card`]:u==="editable-card",[`${R}-centered`]:g},x==null?void 0:x.className,c,m,_,z,L),popupClassName:H(b,_,z,L),style:U,editable:te,moreIcon:(l=p??(x==null?void 0:x.moreIcon))!==null&&l!==void 0?l:o.createElement(pl,null),prefixCls:R,animated:A,indicator:Z})))};La.TabPane=Gu;La.displayName="Tabs";const Uu=La;var qu=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var{prefixCls:t,className:n,hoverable:a=!0}=e,r=qu(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=o.useContext(Ze),s=i("card",t),l=H(`${s}-grid`,n,{[`${s}-grid-hoverable`]:a});return o.createElement("div",Object.assign({},r,{className:l}))},Qo=Xu,Yu=e=>{const{antCls:t,componentCls:n,headerHeight:a,cardPaddingBase:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${P(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${P(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)} 0 0`},jn()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},un),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${P(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Qu=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${P(r)} 0 0 0 ${n}, - 0 ${P(r)} 0 0 ${n}, - ${P(r)} ${P(r)} 0 0 ${n}, - ${P(r)} 0 0 0 ${n} inset, - 0 ${P(r)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},Ju=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:s,borderTop:`${P(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)}`},jn()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:P(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:P(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${P(e.lineWidth)} ${e.lineType} ${i}`}}})},Zu=e=>Object.assign(Object.assign({margin:`${P(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},jn()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},un),"&-description":{color:e.colorTextDescription}}),ed=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${P(n)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${P(e.padding)} ${P(n)}`}}},td=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},nd=e=>{const{antCls:t,componentCls:n,cardShadow:a,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:s,cardPaddingBase:l,extraColor:u}=e;return{[n]:Object.assign(Object.assign({},It(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:s},[`${n}-head`]:Yu(e),[`${n}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)}`},jn()),[`${n}-grid`]:Qu(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:Ju(e),[`${n}-meta`]:Zu(e)}),[`${n}-bordered`]:{border:`${P(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${n}-contain-grid`]:{borderRadius:`${P(e.borderRadiusLG)} ${P(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:r}}},[`${n}-type-inner`]:ed(e),[`${n}-loading`]:td(e),[`${n}-rtl`]:{direction:"rtl"}}},ad=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:a,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${P(n)}`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},rd=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),od=_t("Card",e=>{const t=wt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[nd(t),ad(t)]},rd);var Ir=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{actionClasses:t,actions:n=[],actionStyle:a}=e;return o.createElement("ul",{className:t,style:a},n.map((r,i)=>{const s=`action-${i}`;return o.createElement("li",{style:{width:`${100/n.length}%`},key:s},o.createElement("span",null,r))}))},ld=o.forwardRef((e,t)=>{const{prefixCls:n,className:a,rootClassName:r,style:i,extra:s,headStyle:l={},bodyStyle:u={},title:c,loading:m,bordered:f=!0,size:v,type:d,cover:g,actions:h,tabList:p,children:b,activeTabKey:S,defaultActiveTabKey:C,tabBarExtraContent:N,hoverable:O,tabProps:y={},classNames:$,styles:E}=e,w=Ir(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:x,card:D}=o.useContext(Ze);{const ue=Wt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(X=>{let[Q,ge]=X;ue.deprecated(!(Q in e),Q,ge)})}const M=ue=>{var X;(X=e.onTabChange)===null||X===void 0||X.call(e,ue)},R=ue=>{var X;return H((X=D==null?void 0:D.classNames)===null||X===void 0?void 0:X[ue],$==null?void 0:$[ue])},L=ue=>{var X;return Object.assign(Object.assign({},(X=D==null?void 0:D.styles)===null||X===void 0?void 0:X[ue]),E==null?void 0:E[ue])},Y=o.useMemo(()=>{let ue=!1;return o.Children.forEach(b,X=>{X&&X.type&&X.type===Qo&&(ue=!0)}),ue},[b]),_=I("card",n),[z,te,le]=od(_),ae=o.createElement(cu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),V=S!==void 0,A=Object.assign(Object.assign({},y),{[V?"activeKey":"defaultActiveKey"]:V?S:C,tabBarExtraContent:N});let U;const Z=mn(v),W=!Z||Z==="default"?"large":Z,ve=p?o.createElement(Uu,Object.assign({size:W},A,{className:`${_}-head-tabs`,onChange:M,items:p.map(ue=>{var{tab:X}=ue,Q=Ir(ue,["tab"]);return Object.assign({label:X},Q)})})):null;if(c||s||ve){const ue=H(`${_}-head`,R("header")),X=H(`${_}-head-title`,R("title")),Q=H(`${_}-extra`,R("extra")),ge=Object.assign(Object.assign({},l),L("header"));U=o.createElement("div",{className:ue,style:ge},o.createElement("div",{className:`${_}-head-wrapper`},c&&o.createElement("div",{className:X,style:L("title")},c),s&&o.createElement("div",{className:Q,style:L("extra")},s)),ve)}const me=H(`${_}-cover`,R("cover")),K=g?o.createElement("div",{className:me,style:L("cover")},g):null,B=H(`${_}-body`,R("body")),j=Object.assign(Object.assign({},u),L("body")),G=o.createElement("div",{className:B,style:j},m?ae:b),se=H(`${_}-actions`,R("actions")),q=h&&h.length?o.createElement(id,{actionClasses:se,actionStyle:L("actions"),actions:h}):null,T=fn(w,["onTabChange"]),ce=H(_,D==null?void 0:D.className,{[`${_}-loading`]:m,[`${_}-bordered`]:f,[`${_}-hoverable`]:O,[`${_}-contain-grid`]:Y,[`${_}-contain-tabs`]:p&&p.length,[`${_}-${Z}`]:Z,[`${_}-type-${d}`]:!!d,[`${_}-rtl`]:x==="rtl"},a,r,te,le),pe=Object.assign(Object.assign({},D==null?void 0:D.style),i);return z(o.createElement("div",Object.assign({ref:t},T,{className:ce,style:pe}),U,K,G,q))}),sd=ld;var cd=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,avatar:a,title:r,description:i}=e,s=cd(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=o.useContext(Ze),u=l("card",t),c=H(`${u}-meta`,n),m=a?o.createElement("div",{className:`${u}-meta-avatar`},a):null,f=r?o.createElement("div",{className:`${u}-meta-title`},r):null,v=i?o.createElement("div",{className:`${u}-meta-description`},i):null,d=f||v?o.createElement("div",{className:`${u}-meta-detail`},f,v):null;return o.createElement("div",Object.assign({},s,{className:c}),m,d)},dd=ud,kn=sd;kn.Grid=Qo;kn.Meta=dd;kn.displayName="Card";const fd=kn;var md={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const vd=md;var Jo=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:vd}))};Jo.displayName="UpOutlined";const gd=o.forwardRef(Jo);function pa(){return typeof BigInt=="function"}function Zo(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Yt(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var a=t||"0",r=a.split("."),i=r[0]||"0",s=r[1]||"0";i==="0"&&s==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:a,integerStr:i,decimalStr:s,fullStr:"".concat(l).concat(a)}}function Ba(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function qt(e){var t=String(e);if(Ba(e)){var n=Number(t.slice(t.indexOf("e-")+2)),a=t.match(/\.(\d+)/);return a!=null&&a[1]&&(n+=a[1].length),n}return t.includes(".")&&Ha(t)?t.length-t.indexOf(".")-1:0}function Wn(e){var t=String(e);if(Ba(e)){if(e>Number.MAX_SAFE_INTEGER)return String(pa()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Yt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),hd=function(){function e(t){if(Ca(this,e),k(this,"origin",""),k(this,"number",void 0),k(this,"empty",void 0),Zo(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return ya(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var a=Number(n);if(Number.isNaN(a))return this;var r=this.number+a;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Wn(this.number):this.origin}}]),e}();function Mt(e){return pa()?new pd(e):new hd(e)}function In(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var r=Yt(e),i=r.negativeStr,s=r.integerStr,l=r.decimalStr,u="".concat(t).concat(l),c="".concat(i).concat(s);if(n>=0){var m=Number(l[n]);if(m>=5&&!a){var f=Mt(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-m));return In(f.toString(),t,n,a)}return n===0?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return u===".0"?c:"".concat(c).concat(u)}function bd(e,t){var n=o.useRef(null);function a(){try{var i=e.selectionStart,s=e.selectionEnd,l=e.value,u=l.substring(0,i),c=l.substring(s);n.current={start:i,end:s,value:l,beforeTxt:u,afterTxt:c}}catch{}}function r(){if(e&&n.current&&t)try{var i=e.value,s=n.current,l=s.beforeTxt,u=s.afterTxt,c=s.start,m=i.length;if(i.endsWith(u))m=i.length-n.current.afterTxt.length;else if(i.startsWith(l))m=l.length;else{var f=l[c-1],v=i.indexOf(f,c-1);v!==-1&&(m=v+1)}e.setSelectionRange(m,m)}catch(d){ot(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(d.message))}}return[a,r]}var Sd=function(){var t=o.useState(!1),n=F(t,2),a=n[0],r=n[1];return Tt(function(){r(Ia())},[]),a},yd=200,Cd=600;function $d(e){var t=e.prefixCls,n=e.upNode,a=e.downNode,r=e.upDisabled,i=e.downDisabled,s=e.onStep,l=o.useRef(),u=o.useRef([]),c=o.useRef();c.current=s;var m=function(){clearTimeout(l.current)},f=function(C,N){C.preventDefault(),m(),c.current(N);function O(){c.current(N),l.current=setTimeout(O,yd)}l.current=setTimeout(O,Cd)};o.useEffect(function(){return function(){m(),u.current.forEach(function(S){return ht.cancel(S)})}},[]);var v=Sd();if(v)return null;var d="".concat(t,"-handler"),g=H(d,"".concat(d,"-up"),k({},"".concat(d,"-up-disabled"),r)),h=H(d,"".concat(d,"-down"),k({},"".concat(d,"-down-disabled"),i)),p=function(){return u.current.push(ht(m))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return o.createElement("div",{className:"".concat(d,"-wrap")},o.createElement("span",Ie({},b,{onMouseDown:function(C){f(C,!0)},"aria-label":"Increase Value","aria-disabled":r,className:g}),n||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),o.createElement("span",Ie({},b,{onMouseDown:function(C){f(C,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:h}),a||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Or(e){var t=typeof e=="number"?Wn(e):Yt(e).fullStr,n=t.includes(".");return n?Yt(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const wd=function(){var e=o.useRef(0),t=function(){ht.cancel(e.current)};return o.useEffect(function(){return t},[]),function(n){t(),e.current=ht(function(){n()})}};var xd=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Ed=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Rr=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Pr=function(t){var n=Mt(t);return n.isInvalidate()?null:n},Nd=o.forwardRef(function(e,t){var n,a=e.prefixCls,r=a===void 0?"rc-input-number":a,i=e.className,s=e.style,l=e.min,u=e.max,c=e.step,m=c===void 0?1:c,f=e.defaultValue,v=e.value,d=e.disabled,g=e.readOnly,h=e.upHandler,p=e.downHandler,b=e.keyboard,S=e.changeOnWheel,C=S===void 0?!1:S,N=e.controls,O=N===void 0?!0:N;e.classNames;var y=e.stringMode,$=e.parser,E=e.formatter,w=e.precision,I=e.decimalSeparator,x=e.onChange,D=e.onInput,M=e.onPressEnter,R=e.onStep,L=e.changeOnBlur,Y=L===void 0?!0:L,_=bt(e,xd),z="".concat(r,"-input"),te=o.useRef(null),le=o.useState(!1),ae=F(le,2),V=ae[0],A=ae[1],U=o.useRef(!1),Z=o.useRef(!1),W=o.useRef(!1),ve=o.useState(function(){return Mt(v??f)}),me=F(ve,2),K=me[0],B=me[1];function j(he){v===void 0&&B(he)}var G=o.useCallback(function(he,ie){if(!ie)return w>=0?w:Math.max(qt(he),qt(m))},[w,m]),se=o.useCallback(function(he){var ie=String(he);if($)return $(ie);var Re=ie;return I&&(Re=Re.replace(I,".")),Re.replace(/[^\w.-]+/g,"")},[$,I]),q=o.useRef(""),T=o.useCallback(function(he,ie){if(E)return E(he,{userTyping:ie,input:String(q.current)});var Re=typeof he=="number"?Wn(he):he;if(!ie){var ye=G(Re,ie);if(Ha(Re)&&(I||ye>=0)){var Je=I||".";Re=In(Re,Je,ye)}}return Re},[E,G,I]),ce=o.useState(function(){var he=f??v;return K.isInvalidate()&&["string","number"].includes(xt(he))?Number.isNaN(he)?"":he:T(K.toString(),!1)}),pe=F(ce,2),ue=pe[0],X=pe[1];q.current=ue;function Q(he,ie){X(T(he.isInvalidate()?he.toString(!1):he.toString(!ie),ie))}var ge=o.useMemo(function(){return Pr(u)},[u,w]),Oe=o.useMemo(function(){return Pr(l)},[l,w]),xe=o.useMemo(function(){return!ge||!K||K.isInvalidate()?!1:ge.lessEquals(K)},[ge,K]),Ve=o.useMemo(function(){return!Oe||!K||K.isInvalidate()?!1:K.lessEquals(Oe)},[Oe,K]),ke=bd(te.current,V),Pe=F(ke,2),Ge=Pe[0],Ke=Pe[1],ze=function(ie){return ge&&!ie.lessEquals(ge)?ge:Oe&&!Oe.lessEquals(ie)?Oe:null},Ue=function(ie){return!ze(ie)},Fe=function(ie,Re){var ye=ie,Je=Ue(ye)||ye.isEmpty();if(!ye.isEmpty()&&!Re&&(ye=ze(ye)||ye,Je=!0),!g&&!d&&Je){var at=ye.toString(),We=G(at,Re);return We>=0&&(ye=Mt(In(at,".",We)),Ue(ye)||(ye=Mt(In(at,".",We,!0)))),ye.equals(K)||(j(ye),x==null||x(ye.isEmpty()?null:Rr(y,ye)),v===void 0&&Q(ye,Re)),ye}return K},ct=wd(),Le=function he(ie){if(Ge(),q.current=ie,X(ie),!Z.current){var Re=se(ie),ye=Mt(Re);ye.isNaN()||Fe(ye,!0)}D==null||D(ie),ct(function(){var Je=ie;$||(Je=ie.replace(/。/g,".")),Je!==ie&&he(Je)})},qe=function(){Z.current=!0},Xe=function(){Z.current=!1,Le(te.current.value)},St=function(ie){Le(ie.target.value)},Te=function(ie){var Re;if(!(ie&&xe||!ie&&Ve)){U.current=!1;var ye=Mt(W.current?Or(m):m);ie||(ye=ye.negate());var Je=(K||Mt(0)).add(ye.toString()),at=Fe(Je,!1);R==null||R(Rr(y,at),{offset:W.current?Or(m):m,type:ie?"up":"down"}),(Re=te.current)===null||Re===void 0||Re.focus()}},nt=function(ie){var Re=Mt(se(ue)),ye=Re;Re.isNaN()?ye=Fe(K,ie):ye=Fe(Re,ie),v!==void 0?Q(K,!1):ye.isNaN()||Q(ye,!1)},Ye=function(){U.current=!0},Et=function(ie){var Re=ie.key,ye=ie.shiftKey;U.current=!0,W.current=ye,Re==="Enter"&&(Z.current||(U.current=!1),nt(!1),M==null||M(ie)),b!==!1&&!Z.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Re)&&(Te(Re==="Up"||Re==="ArrowUp"),ie.preventDefault())},ft=function(){U.current=!1,W.current=!1};o.useEffect(function(){if(C&&V){var he=function(ye){Te(ye.deltaY<0),ye.preventDefault()},ie=te.current;if(ie)return ie.addEventListener("wheel",he,{passive:!1}),function(){return ie.removeEventListener("wheel",he)}}});var yt=function(){Y&&nt(!1),A(!1),U.current=!1};return En(function(){K.isInvalidate()||Q(K,!1)},[w,E]),En(function(){var he=Mt(v);B(he);var ie=Mt(se(ue));(!he.equals(ie)||!U.current||E)&&Q(he,U.current)},[v]),En(function(){E&&Ke()},[ue]),o.createElement("div",{className:H(r,i,(n={},k(n,"".concat(r,"-focused"),V),k(n,"".concat(r,"-disabled"),d),k(n,"".concat(r,"-readonly"),g),k(n,"".concat(r,"-not-a-number"),K.isNaN()),k(n,"".concat(r,"-out-of-range"),!K.isInvalidate()&&!Ue(K)),n)),style:s,onFocus:function(){A(!0)},onBlur:yt,onKeyDown:Et,onKeyUp:ft,onCompositionStart:qe,onCompositionEnd:Xe,onBeforeInput:Ye},O&&o.createElement($d,{prefixCls:r,upNode:h,downNode:p,upDisabled:xe,downDisabled:Ve,onStep:Te}),o.createElement("div",{className:"".concat(z,"-wrap")},o.createElement("input",Ie({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":u,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:m},_,{ref:ba(te,t),className:z,value:ue,onChange:St,disabled:d,readOnly:g}))))}),ei=o.forwardRef(function(e,t){var n=e.disabled,a=e.style,r=e.prefixCls,i=e.value,s=e.prefix,l=e.suffix,u=e.addonBefore,c=e.addonAfter,m=e.className,f=e.classNames,v=bt(e,Ed),d=o.useRef(null),g=function(p){d.current&&qi(d.current,p)};return o.createElement(Ui,{className:m,triggerFocus:g,prefixCls:r,value:i,disabled:n,style:a,prefix:s,suffix:l,addonAfter:c,addonBefore:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},o.createElement(Nd,Ie({prefixCls:r,disabled:n,ref:ba(d,t),className:f==null?void 0:f.input},v)))});ei.displayName="InputNumber";const Id=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},to(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new sn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},Mr=(e,t)=>{let{componentCls:n,borderRadiusSM:a,borderRadiusLG:r}=e;const i=t==="lg"?r:a;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},Od=e=>{const{componentCls:t,lineWidth:n,lineType:a,borderRadius:r,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:u,paddingInlineSM:c,paddingBlockSM:m,paddingBlockLG:f,paddingInlineLG:v,colorTextDescription:d,motionDurationMid:g,handleHoverColor:h,paddingInline:p,paddingBlock:b,handleBg:S,handleActiveBg:C,colorTextDisabled:N,borderRadiusSM:O,borderRadiusLG:y,controlWidth:$,handleOpacity:E,handleBorderColor:w,filledHandleBg:I,lineHeightLG:x,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},It(e)),xa(e)),{display:"inline-block",width:$,margin:0,padding:0,borderRadius:r}),Xi(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${P(n)} ${a} ${w}`}}})),Yi(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${P(n)} ${a} ${w}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),Qi(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:x,borderRadius:y,[`input${t}-input`]:{height:D(s).sub(D(n).mul(2)).equal(),padding:`${P(f)} ${P(v)}`}},"&-sm":{padding:0,borderRadius:O,[`input${t}-input`]:{height:D(l).sub(D(n).mul(2)).equal(),padding:`${P(m)} ${P(c)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},It(e)),Ji(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:O}}},Zi(e)),el(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},It(e)),{width:"100%",padding:`${P(b)} ${P(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),tl(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,opacity:E,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${g} linear ${g}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${P(n)} ${a} ${w}`,transition:`all ${g} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},$a()),{color:d,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},Mr(e,"lg")),Mr(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:N}})}]},Rd=e=>{const{componentCls:t,paddingBlock:n,paddingInline:a,inputAffixPadding:r,controlWidth:i,borderRadiusLG:s,borderRadiusSM:l,paddingInlineLG:u,paddingInlineSM:c,paddingBlockLG:m,paddingBlockSM:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${P(n)} 0`}},xa(e)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:a,"&-lg":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${P(m)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${P(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:a,marginInlineStart:r}}})}},Pd=_t("InputNumber",e=>{const t=wt(e,no(e));return[Od(t),Rd(t),io(t)]},Id,{unitless:{handleOpacity:!0}});var Md=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{{const{deprecated:ve}=Wt("InputNumber");ve(!("bordered"in e),"bordered","variant")}const{getPrefixCls:n,direction:a}=o.useContext(Ze),r=o.useRef(null);o.useImperativeHandle(t,()=>r.current);const{className:i,rootClassName:s,size:l,disabled:u,prefixCls:c,addonBefore:m,addonAfter:f,prefix:v,bordered:d,readOnly:g,status:h,controls:p,variant:b}=e,S=Md(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),N=Cn(C),[O,y,$]=Pd(C,N),{compactSize:E,compactItemClassnames:w}=lo(C,a);let I=o.createElement(gd,{className:`${C}-handler-up-inner`}),x=o.createElement(Bo,{className:`${C}-handler-down-inner`});const D=typeof p=="boolean"?p:void 0;typeof p=="object"&&(I=typeof p.upIcon>"u"?I:o.createElement("span",{className:`${C}-handler-up-inner`},p.upIcon),x=typeof p.downIcon>"u"?x:o.createElement("span",{className:`${C}-handler-down-inner`},p.downIcon));const{hasFeedback:M,status:R,isFormItemInput:L,feedbackIcon:Y}=o.useContext(so),_=eo(R,h),z=mn(ve=>{var me;return(me=l??E)!==null&&me!==void 0?me:ve}),te=o.useContext(wa),le=u??te,[ae,V]=Zr(b,d),A=M&&o.createElement(o.Fragment,null,Y),U=H({[`${C}-lg`]:z==="large",[`${C}-sm`]:z==="small",[`${C}-rtl`]:a==="rtl",[`${C}-in-form-item`]:L},y),Z=`${C}-group`,W=o.createElement(ei,Object.assign({ref:r,disabled:le,className:H($,N,i,s,w),upHandler:I,downHandler:x,prefixCls:C,readOnly:g,controls:D,prefix:v,suffix:A,addonAfter:f&&o.createElement(da,null,o.createElement(fa,{override:!0,status:!0},f)),addonBefore:m&&o.createElement(da,null,o.createElement(fa,{override:!0,status:!0},m)),classNames:{input:U,variant:H({[`${C}-${ae}`]:V},sa(C,_,M)),affixWrapper:H({[`${C}-affix-wrapper-sm`]:z==="small",[`${C}-affix-wrapper-lg`]:z==="large",[`${C}-affix-wrapper-rtl`]:a==="rtl"},y),wrapper:H({[`${Z}-rtl`]:a==="rtl"},y),groupWrapper:H({[`${C}-group-wrapper-sm`]:z==="small",[`${C}-group-wrapper-lg`]:z==="large",[`${C}-group-wrapper-rtl`]:a==="rtl",[`${C}-group-wrapper-${ae}`]:V},sa(`${C}-group-wrapper`,_,M),y)}},S));return O(W)}),Aa=ti,Dd=e=>o.createElement(Yr,{theme:{components:{InputNumber:{handleVisible:!0}}}},o.createElement(ti,Object.assign({},e)));Aa.displayName="InputNumber";Aa._InternalPanelDoNotUseOrYouWillBeFired=Dd;const Dr=Aa;var Tr=o.createContext(null),ni=o.createContext({}),ai=function(t){var n=t.prefixCls,a=t.className,r=t.style,i=t.children,s=t.containerRef,l=t.id,u=t.onMouseEnter,c=t.onMouseOver,m=t.onMouseLeave,f=t.onClick,v=t.onKeyDown,d=t.onKeyUp,g={onMouseEnter:u,onMouseOver:c,onMouseLeave:m,onClick:f,onKeyDown:v,onKeyUp:d},h=o.useContext(ni),p=h.panel,b=Sa(p,s);return o.createElement(o.Fragment,null,o.createElement("div",Ie({id:l,className:H("".concat(n,"-content"),a),style:oe({},r),"aria-modal":"true",role:"dialog",ref:b},g),i))};ai.displayName="DrawerPanel";function _r(e){return typeof e=="string"&&String(Number(e))===e?(ot(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Td(e){ot(!("wrapperClassName"in e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),ot(Xr()||!e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var zr={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function _d(e,t){var n,a,r,i=e.prefixCls,s=e.open,l=e.placement,u=e.inline,c=e.push,m=e.forceRender,f=e.autoFocus,v=e.keyboard,d=e.classNames,g=e.rootClassName,h=e.rootStyle,p=e.zIndex,b=e.className,S=e.id,C=e.style,N=e.motion,O=e.width,y=e.height,$=e.children,E=e.mask,w=e.maskClosable,I=e.maskMotion,x=e.maskClassName,D=e.maskStyle,M=e.afterOpenChange,R=e.onClose,L=e.onMouseEnter,Y=e.onMouseOver,_=e.onMouseLeave,z=e.onClick,te=e.onKeyDown,le=e.onKeyUp,ae=e.styles,V=o.useRef(),A=o.useRef(),U=o.useRef();o.useImperativeHandle(t,function(){return V.current});var Z=function(ge){var Oe=ge.keyCode,xe=ge.shiftKey;switch(Oe){case ne.TAB:{if(Oe===ne.TAB){if(!xe&&document.activeElement===U.current){var Ve;(Ve=A.current)===null||Ve===void 0||Ve.focus({preventScroll:!0})}else if(xe&&document.activeElement===A.current){var ke;(ke=U.current)===null||ke===void 0||ke.focus({preventScroll:!0})}}break}case ne.ESC:{R&&v&&(ge.stopPropagation(),R(ge));break}}};o.useEffect(function(){if(s&&f){var Q;(Q=V.current)===null||Q===void 0||Q.focus({preventScroll:!0})}},[s]);var W=o.useState(!1),ve=F(W,2),me=ve[0],K=ve[1],B=o.useContext(Tr),j;c===!1?j={distance:0}:c===!0?j={}:j=c||{};var G=(n=(a=(r=j)===null||r===void 0?void 0:r.distance)!==null&&a!==void 0?a:B==null?void 0:B.pushDistance)!==null&&n!==void 0?n:180,se=o.useMemo(function(){return{pushDistance:G,push:function(){K(!0)},pull:function(){K(!1)}}},[G]);o.useEffect(function(){if(s){var Q;B==null||(Q=B.push)===null||Q===void 0||Q.call(B)}else{var ge;B==null||(ge=B.pull)===null||ge===void 0||ge.call(B)}},[s]),o.useEffect(function(){return function(){var Q;B==null||(Q=B.pull)===null||Q===void 0||Q.call(B)}},[]);var q=E&&o.createElement(la,Ie({key:"mask"},I,{visible:s}),function(Q,ge){var Oe=Q.className,xe=Q.style;return o.createElement("div",{className:H("".concat(i,"-mask"),Oe,d==null?void 0:d.mask,x),style:oe(oe(oe({},xe),D),ae==null?void 0:ae.mask),onClick:w&&s?R:void 0,ref:ge})}),T=typeof N=="function"?N(l):N,ce={};if(me&&G)switch(l){case"top":ce.transform="translateY(".concat(G,"px)");break;case"bottom":ce.transform="translateY(".concat(-G,"px)");break;case"left":ce.transform="translateX(".concat(G,"px)");break;default:ce.transform="translateX(".concat(-G,"px)");break}l==="left"||l==="right"?ce.width=_r(O):ce.height=_r(y);var pe={onMouseEnter:L,onMouseOver:Y,onMouseLeave:_,onClick:z,onKeyDown:te,onKeyUp:le},ue=o.createElement(la,Ie({key:"panel"},T,{visible:s,forceRender:m,onVisibleChanged:function(ge){M==null||M(ge)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(Q,ge){var Oe=Q.className,xe=Q.style;return o.createElement("div",Ie({className:H("".concat(i,"-content-wrapper"),d==null?void 0:d.wrapper,Oe),style:oe(oe(oe({},ce),xe),ae==null?void 0:ae.wrapper)},dn(e,{data:!0})),o.createElement(ai,Ie({id:S,containerRef:ge,prefixCls:i,className:H(b,d==null?void 0:d.content),style:oe(oe({},C),ae==null?void 0:ae.content)},pe),$))}),X=oe({},h);return p&&(X.zIndex=p),o.createElement(Tr.Provider,{value:se},o.createElement("div",{className:H(i,"".concat(i,"-").concat(l),g,k(k({},"".concat(i,"-open"),s),"".concat(i,"-inline"),u)),style:X,tabIndex:-1,ref:V,onKeyDown:Z},q,o.createElement("div",{tabIndex:0,ref:A,style:zr,"aria-hidden":"true","data-sentinel":"start"}),ue,o.createElement("div",{tabIndex:0,ref:U,style:zr,"aria-hidden":"true","data-sentinel":"end"})))}var ri=o.forwardRef(_d);ri.displayName="DrawerPopup";var oi=function(t){var n=t.open,a=n===void 0?!1:n,r=t.prefixCls,i=r===void 0?"rc-drawer":r,s=t.placement,l=s===void 0?"right":s,u=t.autoFocus,c=u===void 0?!0:u,m=t.keyboard,f=m===void 0?!0:m,v=t.width,d=v===void 0?378:v,g=t.mask,h=g===void 0?!0:g,p=t.maskClosable,b=p===void 0?!0:p,S=t.getContainer,C=t.forceRender,N=t.afterOpenChange,O=t.destroyOnClose,y=t.onMouseEnter,$=t.onMouseOver,E=t.onMouseLeave,w=t.onClick,I=t.onKeyDown,x=t.onKeyUp,D=t.panelRef,M=o.useState(!1),R=F(M,2),L=R[0],Y=R[1];Td(t);var _=o.useState(!1),z=F(_,2),te=z[0],le=z[1];Tt(function(){le(!0)},[]);var ae=te?a:!1,V=o.useRef(),A=o.useRef();Tt(function(){ae&&(A.current=document.activeElement)},[ae]);var U=function(K){var B;if(Y(K),N==null||N(K),!K&&A.current&&!((B=V.current)!==null&&B!==void 0&&B.contains(A.current))){var j;(j=A.current)===null||j===void 0||j.focus({preventScroll:!0})}},Z=o.useMemo(function(){return{panel:D}},[D]);if(!C&&!L&&!ae&&O)return null;var W={onMouseEnter:y,onMouseOver:$,onMouseLeave:E,onClick:w,onKeyDown:I,onKeyUp:x},ve=oe(oe({},t),{},{open:ae,prefixCls:i,placement:l,autoFocus:c,keyboard:f,width:d,mask:h,maskClosable:b,inline:S===!1,afterOpenChange:U,ref:V},W);return o.createElement(ni.Provider,{value:Z},o.createElement(wl,{open:ae||C||L,autoDestroy:!1,getContainer:S,autoLock:h&&(ae||L)},o.createElement(ri,ve)))};oi.displayName="Drawer";const zd=e=>{var t,n;const{prefixCls:a,title:r,footer:i,extra:s,closeIcon:l,closable:u,onClose:c,headerStyle:m,bodyStyle:f,footerStyle:v,children:d,classNames:g,styles:h}=e,{drawer:p}=o.useContext(Ze),b=o.useCallback(y=>o.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${a}-close`},y),[c]),[S,C]=hl(u,typeof l<"u"?l:p==null?void 0:p.closeIcon,b,void 0,!0),N=o.useMemo(()=>{var y,$;return!r&&!S?null:o.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(y=p==null?void 0:p.styles)===null||y===void 0?void 0:y.header),m),h==null?void 0:h.header),className:H(`${a}-header`,{[`${a}-header-close-only`]:S&&!r&&!s},($=p==null?void 0:p.classNames)===null||$===void 0?void 0:$.header,g==null?void 0:g.header)},o.createElement("div",{className:`${a}-header-title`},C,r&&o.createElement("div",{className:`${a}-title`},r)),s&&o.createElement("div",{className:`${a}-extra`},s))},[S,C,s,m,a,r]),O=o.useMemo(()=>{var y,$;if(!i)return null;const E=`${a}-footer`;return o.createElement("div",{className:H(E,(y=p==null?void 0:p.classNames)===null||y===void 0?void 0:y.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},($=p==null?void 0:p.styles)===null||$===void 0?void 0:$.footer),v),h==null?void 0:h.footer)},i)},[i,v,a]);return o.createElement(o.Fragment,null,N,o.createElement("div",{className:H(`${a}-body`,g==null?void 0:g.body,(t=p==null?void 0:p.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=p==null?void 0:p.styles)===null||n===void 0?void 0:n.body),f),h==null?void 0:h.body)},d),O)},ii=zd,jd=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},li=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),si=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},li({opacity:e},{opacity:1})),Ld=(e,t)=>[si(.7,t),li({transform:jd(e)},{transform:"none"})],Bd=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:si(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((a,r)=>Object.assign(Object.assign({},a),{[`&-${r}`]:Ld(r,n)}),{})}}},Hd=Bd,Ad=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:a,colorBgElevated:r,motionDurationSlow:i,motionDurationMid:s,padding:l,paddingLG:u,fontSizeLG:c,lineHeightLG:m,lineWidth:f,lineType:v,colorSplit:d,marginSM:g,colorIcon:h,colorIconHover:p,colorText:b,fontWeightStrong:S,footerPaddingBlock:C,footerPaddingInline:N}=e,O=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:a,pointerEvents:"auto"},[O]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${P(l)} ${P(u)}`,fontSize:c,lineHeight:m,borderBottom:`${P(f)} ${v} ${d}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:g,color:h,fontWeight:S,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${s}`,textRendering:"auto","&:focus, &:hover":{color:p,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:m},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${P(C)} ${P(N)}`,borderTop:`${P(f)} ${v} ${d}`},"&-rtl":{direction:"rtl"}}}},Vd=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),ci=_t("Drawer",e=>{const t=wt(e,{});return[Ad(t),Hd(t)]},Vd);var ui=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var t;const{rootClassName:n,width:a,height:r,size:i="default",mask:s=!0,push:l=Fd,open:u,afterOpenChange:c,onClose:m,prefixCls:f,getContainer:v,style:d,className:g,visible:h,afterVisibleChange:p,maskStyle:b,drawerStyle:S,contentWrapperStyle:C}=e,N=ui(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:O,getPrefixCls:y,direction:$,drawer:E}=o.useContext(Ze),w=y("drawer",f),[I,x,D]=ci(w),M=v===void 0&&O?()=>O(document.body):v,R=H({"no-mask":!s,[`${w}-rtl`]:$==="rtl"},n,x,D);{const W=Wt("Drawer");[["visible","open"],["afterVisibleChange","afterOpenChange"],["headerStyle","styles.header"],["bodyStyle","styles.body"],["footerStyle","styles.footer"],["contentWrapperStyle","styles.wrapper"],["maskStyle","styles.mask"],["drawerStyle","styles.content"]].forEach(ve=>{let[me,K]=ve;W.deprecated(!(me in e),me,K)}),M!==void 0&&((t=e.style)===null||t===void 0?void 0:t.position)==="absolute"&&W(!1,"breaking","`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.")}const L=o.useMemo(()=>a??(i==="large"?736:378),[a,i]),Y=o.useMemo(()=>r??(i==="large"?736:378),[r,i]),_={motionName:Dn(w,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},z=W=>({motionName:Dn(w,`panel-motion-${W}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),te=bl(),[le,ae]=co("Drawer",N.zIndex),{classNames:V={},styles:A={}}=N,{classNames:U={},styles:Z={}}=E||{};return I(o.createElement(da,null,o.createElement(fa,{status:!0,override:!0},o.createElement(xl.Provider,{value:ae},o.createElement(oi,Object.assign({prefixCls:w,onClose:m,maskMotion:_,motion:z},N,{classNames:{mask:H(V.mask,U.mask),content:H(V.content,U.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},A.mask),b),Z.mask),content:Object.assign(Object.assign(Object.assign({},A.content),S),Z.content),wrapper:Object.assign(Object.assign(Object.assign({},A.wrapper),C),Z.wrapper)},open:u??h,mask:s,push:l,width:L,height:Y,style:Object.assign(Object.assign({},E==null?void 0:E.style),d),className:H(E==null?void 0:E.className,g),rootClassName:R,getContainer:M,afterOpenChange:c??p,panelRef:te,zIndex:le}),o.createElement(ii,Object.assign({prefixCls:w},N,{onClose:m})))))))},kd=e=>{const{prefixCls:t,style:n,className:a,placement:r="right"}=e,i=ui(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=o.useContext(Ze),l=s("drawer",t),[u,c,m]=ci(l),f=H(l,`${l}-pure`,`${l}-${r}`,c,m,a);return u(o.createElement("div",{className:f,style:n},o.createElement(ii,Object.assign({prefixCls:l},i))))};Va._InternalPanelDoNotUseOrYouWillBeFired=kd;Va.displayName="Drawer";const Wd=Va;var Gd={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"};const Kd=Gd;var di=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:Kd}))};di.displayName="DoubleLeftOutlined";const jr=o.forwardRef(di);var Ud={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"};const qd=Ud;var fi=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:qd}))};fi.displayName="DoubleRightOutlined";const Lr=o.forwardRef(fi);var Xd={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:"页码"},Yd=["10","20","50","100"],mi=function(t){var n=t.pageSizeOptions,a=n===void 0?Yd:n,r=t.locale,i=t.changeSize,s=t.pageSize,l=t.goButton,u=t.quickGo,c=t.rootPrefixCls,m=t.selectComponentClass,f=t.selectPrefixCls,v=t.disabled,d=t.buildOptionText,g=de.useState(""),h=F(g,2),p=h[0],b=h[1],S=function(){return!p||Number.isNaN(p)?void 0:Number(p)},C=typeof d=="function"?d:function(R){return"".concat(R," ").concat(r.items_per_page)},N=function(L){i==null||i(Number(L))},O=function(L){b(L.target.value)},y=function(L){l||p===""||(b(""),!(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||L.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(u==null||u(S())))},$=function(L){p!==""&&(L.keyCode===ne.ENTER||L.type==="click")&&(b(""),u==null||u(S()))},E=function(){return a.some(function(L){return L.toString()===s.toString()})?a:a.concat([s.toString()]).sort(function(L,Y){var _=Number.isNaN(Number(L))?0:Number(L),z=Number.isNaN(Number(Y))?0:Number(Y);return _-z})},w="".concat(c,"-options");if(!i&&!u)return null;var I=null,x=null,D=null;if(i&&m){var M=E().map(function(R,L){return de.createElement(m.Option,{key:L,value:R.toString()},C(R))});I=de.createElement(m,{disabled:v,prefixCls:f,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(s||a[0]).toString(),onChange:N,getPopupContainer:function(L){return L.parentNode},"aria-label":r.page_size,defaultOpen:!1},M)}return u&&(l&&(D=typeof l=="boolean"?de.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:v,className:"".concat(w,"-quick-jumper-button")},r.jump_to_confirm):de.createElement("span",{onClick:$,onKeyUp:$},l)),x=de.createElement("div",{className:"".concat(w,"-quick-jumper")},r.jump_to,de.createElement("input",{disabled:v,type:"text",value:p,onChange:O,onKeyUp:$,onBlur:y,"aria-label":r.page}),r.page,D)),de.createElement("li",{className:w},I,x)};mi.displayName="Options";var ln=function(t){var n,a=t.rootPrefixCls,r=t.page,i=t.active,s=t.className,l=t.showTitle,u=t.onClick,c=t.onKeyPress,m=t.itemRender,f="".concat(a,"-item"),v=H(f,"".concat(f,"-").concat(r),(n={},k(n,"".concat(f,"-active"),i),k(n,"".concat(f,"-disabled"),!r),n),s),d=function(){u(r)},g=function(b){c(b,u,r)},h=m(r,"page",de.createElement("a",{rel:"nofollow"},r));return h?de.createElement("li",{title:l?String(r):null,className:v,onClick:d,onKeyDown:g,tabIndex:0},h):null};ln.displayName="Pager";var Qd=function(t,n,a){return a};function aa(){}function Br(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Kt(e,t,n){var a=typeof e>"u"?t:e;return Math.floor((n-1)/a)+1}var vi=function(t){var n,a=t.prefixCls,r=a===void 0?"rc-pagination":a,i=t.selectPrefixCls,s=i===void 0?"rc-select":i,l=t.className,u=t.selectComponentClass,c=t.current,m=t.defaultCurrent,f=m===void 0?1:m,v=t.total,d=v===void 0?0:v,g=t.pageSize,h=t.defaultPageSize,p=h===void 0?10:h,b=t.onChange,S=b===void 0?aa:b,C=t.hideOnSinglePage,N=t.showPrevNextJumpers,O=N===void 0?!0:N,y=t.showQuickJumper,$=t.showLessItems,E=t.showTitle,w=E===void 0?!0:E,I=t.onShowSizeChange,x=I===void 0?aa:I,D=t.locale,M=D===void 0?Xd:D,R=t.style,L=t.totalBoundaryShowSizeChanger,Y=L===void 0?50:L,_=t.disabled,z=t.simple,te=t.showTotal,le=t.showSizeChanger,ae=t.pageSizeOptions,V=t.itemRender,A=V===void 0?Qd:V,U=t.jumpPrevIcon,Z=t.jumpNextIcon,W=t.prevIcon,ve=t.nextIcon,me=de.useRef(null),K=Bt(10,{value:g,defaultValue:p}),B=F(K,2),j=B[0],G=B[1],se=Bt(1,{value:c,defaultValue:f,postState:function(He){return Math.max(1,Math.min(He,Kt(void 0,j,d)))}}),q=F(se,2),T=q[0],ce=q[1],pe=de.useState(T),ue=F(pe,2),X=ue[0],Q=ue[1];o.useEffect(function(){Q(T)},[T]);var ge=S!==aa,Oe="current"in t;ot(Oe?ge:!0,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var xe=Math.max(1,T-($?3:5)),Ve=Math.min(Kt(void 0,j,d),T+($?3:5));function ke(Ee,He){var Qe=Ee||de.createElement("button",{type:"button","aria-label":He,className:"".concat(r,"-item-link")});return typeof Ee=="function"&&(Qe=de.createElement(Ee,oe({},t))),Qe}function Pe(Ee){var He=Ee.target.value,Qe=Kt(void 0,j,d),Pt;return He===""?Pt=He:Number.isNaN(Number(He))?Pt=X:He>=Qe?Pt=Qe:Pt=Number(He),Pt}function Ge(Ee){return Br(Ee)&&Ee!==T&&Br(d)&&d>0}var Ke=d>j?y:!1;function ze(Ee){(Ee.keyCode===ne.UP||Ee.keyCode===ne.DOWN)&&Ee.preventDefault()}function Ue(Ee){var He=Pe(Ee);switch(He!==X&&Q(He),Ee.keyCode){case ne.ENTER:Le(He);break;case ne.UP:Le(He-1);break;case ne.DOWN:Le(He+1);break}}function Fe(Ee){Le(Pe(Ee))}function ct(Ee){var He=Kt(Ee,j,d),Qe=T>He&&He!==0?He:T;G(Ee),Q(Qe),x==null||x(T,Ee),ce(Qe),S==null||S(Qe,Ee)}function Le(Ee){if(Ge(Ee)&&!_){var He=Kt(void 0,j,d),Qe=Ee;return Ee>He?Qe=He:Ee<1&&(Qe=1),Qe!==X&&Q(Qe),ce(Qe),S==null||S(Qe,j),Qe}return T}var qe=T>1,Xe=TY;function Te(){qe&&Le(T-1)}function nt(){Xe&&Le(T+1)}function Ye(){Le(xe)}function Et(){Le(Ve)}function ft(Ee,He){if(Ee.key==="Enter"||Ee.charCode===ne.ENTER||Ee.keyCode===ne.ENTER){for(var Qe=arguments.length,Pt=new Array(Qe>2?Qe-2:0),tn=2;tnd?d:T*j])),ee=null,re=Kt(void 0,j,d);if(C&&d<=j)return null;var be=[],_e={rootPrefixCls:r,onClick:Le,onKeyPress:ft,showTitle:w,itemRender:A,page:-1},et=T-1>0?T-1:0,it=T+1=De*2&&T!==3&&(be[0]=de.cloneElement(be[0],{className:H("".concat(r,"-item-after-jump-prev"),be[0].props.className)}),be.unshift(We)),re-T>=De*2&&T!==re-2){var Ht=be[be.length-1];be[be.length-1]=de.cloneElement(Ht,{className:H("".concat(r,"-item-before-jump-next"),Ht.props.className)}),be.push(ee)}jt!==1&&be.unshift(de.createElement(ln,Ie({},_e,{key:1,page:1}))),mt!==re&&be.push(de.createElement(ln,Ie({},_e,{key:re,page:re})))}var Ot=ye(et);if(Ot){var Rt=!qe||!re;Ot=de.createElement("li",{title:w?M.prev_page:null,onClick:Te,tabIndex:Rt?null:0,onKeyDown:yt,className:H("".concat(r,"-prev"),k({},"".concat(r,"-disabled"),Rt)),"aria-disabled":Rt},Ot)}var Zt=Je(it);if(Zt){var Gt,en;z?(Gt=!Xe,en=qe?0:null):(Gt=!Xe||!re,en=Gt?null:0),Zt=de.createElement("li",{title:w?M.next_page:null,onClick:nt,tabIndex:en,onKeyDown:he,className:H("".concat(r,"-next"),k({},"".concat(r,"-disabled"),Gt)),"aria-disabled":Gt},Zt)}var qn=H(r,l,(n={},k(n,"".concat(r,"-simple"),z),k(n,"".concat(r,"-disabled"),_),n));return de.createElement("ul",Ie({className:qn,style:R,ref:me},Se),Ce,Ot,z?$e:be,Zt,de.createElement(mi,{locale:M,rootPrefixCls:r,disabled:_,selectComponentClass:u,selectPrefixCls:s,changeSize:St?ct:null,pageSize:j,pageSizeOptions:ae,quickGo:Ke?Le:null,goButton:we}))};vi.displayName="Pagination";const gi=e=>o.createElement(Hn,Object.assign({},e,{showSearch:!0,size:"small"})),pi=e=>o.createElement(Hn,Object.assign({},e,{showSearch:!0,size:"middle"}));gi.Option=Hn.Option;pi.Option=Hn.Option;const Jd=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Zd=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:P(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:P(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:P(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:P(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:P(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:P(e.itemSizeSM),input:Object.assign(Object.assign({},nl(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ef=e=>{const{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:P(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:P(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${P(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${P(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${P(e.inputOutlineOffset)} 0 ${P(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},tf=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}}},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${P(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${P(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:P(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},xa(e)),al(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},rl(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},nf=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:P(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${P(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${P(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},af=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},It(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:P(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),nf(e)),tf(e)),ef(e)),Zd(e)),Jd(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"}}},rf=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},zn(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ya(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ya(e))}}}},hi=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},to(e)),bi=e=>wt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},no(e)),of=_t("Pagination",e=>{const t=bi(e);return[af(t),rf(t)]},hi),lf=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${P(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},sf=El(["Pagination","bordered"],e=>{const t=bi(e);return[lf(t)]},hi);var cf=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,selectPrefixCls:n,className:a,rootClassName:r,style:i,size:s,locale:l,selectComponentClass:u,responsive:c,showSizeChanger:m}=e,f=cf(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:v}=Dc(c),[,d]=_n(),{getPrefixCls:g,direction:h,pagination:p={}}=o.useContext(Ze),b=g("pagination",t),[S,C,N]=of(b),O=m??p.showSizeChanger,y=o.useMemo(()=>{const R=o.createElement("span",{className:`${b}-item-ellipsis`},"•••"),L=o.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?o.createElement(Ja,null):o.createElement(Za,null)),Y=o.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?o.createElement(Za,null):o.createElement(Ja,null)),_=o.createElement("a",{className:`${b}-item-link`},o.createElement("div",{className:`${b}-item-container`},h==="rtl"?o.createElement(Lr,{className:`${b}-item-link-icon`}):o.createElement(jr,{className:`${b}-item-link-icon`}),R)),z=o.createElement("a",{className:`${b}-item-link`},o.createElement("div",{className:`${b}-item-container`},h==="rtl"?o.createElement(jr,{className:`${b}-item-link-icon`}):o.createElement(Lr,{className:`${b}-item-link-icon`}),R));return{prevIcon:L,nextIcon:Y,jumpPrevIcon:_,jumpNextIcon:z}},[h,b]),[$]=oo("Pagination",Ai),E=Object.assign(Object.assign({},$),l),w=mn(s),I=w==="small"||!!(v&&!w&&c),x=g("select",n),D=H({[`${b}-mini`]:I,[`${b}-rtl`]:h==="rtl",[`${b}-bordered`]:d.wireframe},p==null?void 0:p.className,a,r,C,N),M=Object.assign(Object.assign({},p==null?void 0:p.style),i);return S(o.createElement(o.Fragment,null,d.wireframe&&o.createElement(sf,{prefixCls:b}),o.createElement(vi,Object.assign({},y,f,{style:M,prefixCls:b,selectPrefixCls:x,className:D,selectComponentClass:u||(I?gi:pi),locale:E,showSizeChanger:O}))))};Si.displayName="Pagination";const uf=Si;let Nt=null,Xt=e=>e(),Sn=[],yn={};function Hr(){const{getContainer:e,duration:t,rtl:n,maxCount:a,top:r}=yn,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:a,top:r}}const df=de.forwardRef((e,t)=>{const{messageConfig:n,sync:a}=e,{getPrefixCls:r}=o.useContext(Ze),i=yn.prefixCls||r("message"),s=o.useContext(Yl),[l,u]=ho(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),s.message));return de.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(m=>{c[m]=function(){return a(),l[m].apply(l,arguments)}}),{instance:c,sync:a}}),u}),ff=de.forwardRef((e,t)=>{const[n,a]=de.useState(Hr),r=()=>{a(Hr)};de.useEffect(r,[]);const i=Qr(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),u=i.getTheme(),c=de.createElement(df,{ref:t,sync:r,messageConfig:n});return de.createElement(Yr,{prefixCls:s,iconPrefixCls:l,theme:u},i.holderRender?i.holderRender(c):c)});function Gn(){if(!Nt){const e=document.createDocumentFragment(),t={fragment:e};Nt=t,Xt(()=>{Nl(de.createElement(ff,{ref:n=>{const{instance:a,sync:r}=n||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=r,Gn())})}}),e)});return}Nt.instance&&(Sn.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Xt(()=>{const a=Nt.instance.open(Object.assign(Object.assign({},yn),e.config));a==null||a.then(e.resolve),e.setCloseFn(a)});break}case"destroy":Xt(()=>{Nt==null||Nt.instance.destroy(e.key)});break;default:Xt(()=>{var a;const r=(a=Nt.instance)[t].apply(a,tt(e.args));r==null||r.then(e.resolve),e.setCloseFn(r)})}}),Sn=[])}function mf(e){yn=Object.assign(Object.assign({},yn),e),Xt(()=>{var t;(t=Nt==null?void 0:Nt.sync)===null||t===void 0||t.call(Nt)})}function vf(e){const t=Oa(n=>{let a;const r={type:"open",config:e,resolve:n,setCloseFn:i=>{a=i}};return Sn.push(r),()=>{a?Xt(()=>{a()}):r.skipped=!0}});return Gn(),t}function gf(e,t){Qr().holderRender||Vi("message");const a=Oa(r=>{let i;const s={type:e,args:t,resolve:r,setCloseFn:l=>{i=l}};return Sn.push(s),()=>{i?Xt(()=>{i()}):s.skipped=!0}});return Gn(),a}function pf(e){Sn.push({type:"destroy",key:e}),Gn()}const hf=["success","info","warning","error","loading"],bf={open:vf,destroy:pf,config:mf,useMessage:Xl,_InternalPanelDoNotUseOrYouWillBeFired:Vl},Fa=bf;hf.forEach(e=>{Fa[e]=function(){for(var t=arguments.length,n=new Array(t),a=0;a{const{componentCls:t,trackHeightSM:n,trackPadding:a,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:s,handleSizeSM:l,calc:u}=e,c=`${t}-inner`,m=P(u(l).add(u(a).mul(2)).equal()),f=P(u(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:P(n),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${f})`,marginInlineEnd:`calc(100% - ${m} + ${f})`},[`${c}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:u(u(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:s,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${f})`,marginInlineEnd:`calc(-100% + ${m} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${P(u(l).add(a).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:u(e.marginXXS).div(2).equal(),marginInlineEnd:u(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:u(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:u(e.marginXXS).div(2).equal()}}}}}}},Cf=e=>{const{componentCls:t,handleSize:n,calc:a}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:a(a(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},$f=e=>{const{componentCls:t,trackPadding:n,handleBg:a,handleShadow:r,handleSize:i,calc:s}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:a,borderRadius:s(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${P(s(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},wf=e=>{const{componentCls:t,trackHeight:n,trackPadding:a,innerMinMargin:r,innerMaxMargin:i,handleSize:s,calc:l}=e,u=`${t}-inner`,c=P(l(s).add(l(a).mul(2)).equal()),m=P(l(i).mul(2).equal());return{[t]:{[u]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${u}-checked, ${u}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${m})`,marginInlineEnd:`calc(100% - ${c} + ${m})`},[`${u}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${u}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${m})`,marginInlineEnd:`calc(-100% + ${c} - ${m})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:l(a).mul(2).equal(),marginInlineEnd:l(a).mul(-1).mul(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:l(a).mul(-1).mul(2).equal(),marginInlineEnd:l(a).mul(2).equal()}}}}}},xf=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:a}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},It(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:a,height:n,lineHeight:`${P(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),zn(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Ef=e=>{const{fontSize:t,lineHeight:n,controlHeight:a,colorWhite:r}=e,i=t*n,s=a/2,l=2,u=i-l*2,c=s-l*2;return{trackHeight:i,trackHeightSM:s,trackMinWidth:u*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:r,handleSize:u,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new sn("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:u/2,innerMaxMargin:u+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},Nf=_t("Switch",e=>{const t=wt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[xf(t),wf(t),$f(t),Cf(t),yf(t)]},Ef);var If=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:a,disabled:r,loading:i,className:s,rootClassName:l,style:u,checked:c,value:m,defaultChecked:f,defaultValue:v,onChange:d}=e,g=If(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,p]=Bt(!1,{value:c??m,defaultValue:f??v}),{getPrefixCls:b,direction:S,switch:C}=o.useContext(Ze),N=o.useContext(wa),O=(r??N)||i,y=b("switch",n),$=o.createElement("div",{className:`${y}-handle`},i&&o.createElement(Na,{className:`${y}-loading-icon`})),[E,w,I]=Nf(y),x=mn(a),D=H(C==null?void 0:C.className,{[`${y}-small`]:x==="small",[`${y}-loading`]:i,[`${y}-rtl`]:S==="rtl"},s,l,w,I),M=Object.assign(Object.assign({},C==null?void 0:C.style),u),R=function(){p(arguments.length<=0?void 0:arguments[0]),d==null||d.apply(void 0,arguments)};return E(o.createElement(Il,{component:"Switch"},o.createElement(yi,Object.assign({},g,{checked:h,onChange:R,prefixCls:y,className:D,style:M,disabled:O,ref:t,loadingIcon:$}))))});ka.__ANT_SWITCH=!0;ka.displayName="Switch";const Of=ka;var Rf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Pf=Rf;var Ci=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:Pf}))};Ci.displayName="DeleteOutlined";const Mf=o.forwardRef(Ci);var Df={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Tf=Df;var $i=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:Tf}))};$i.displayName="CopyOutlined";const Ar=o.forwardRef($i);var _f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const zf=_f;var wi=function(t,n){return o.createElement(zt,Ie({},t,{ref:n,icon:zf}))};wi.displayName="SettingOutlined";const jf=o.forwardRef(wi);var Lf=function(e){return function(t,n){var a=o.useRef(!1);e(function(){return function(){a.current=!1}},[]),e(function(){if(!a.current)a.current=!0;else return t()},n)}},pt=function(){return pt=Object.assign||function(t){for(var n,a=1,r=arguments.length;a0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return i}function dt(e,t,n){if(n||arguments.length===2)for(var a=0,r=t.length,i;a-1&&(r=setTimeout(function(){On.delete(e)},t)),On.set(e,pt(pt({},n),{timer:r}))},kf=function(e){return On.get(e)},Rn=new Map,Wf=function(e){return Rn.get(e)},Gf=function(e,t){Rn.set(e,t),t.then(function(n){return Rn.delete(e),n}).catch(function(){Rn.delete(e)})},Ut={},Kf=function(e,t){Ut[e]&&Ut[e].forEach(function(n){return n(t)})},ra=function(e,t){return Ut[e]||(Ut[e]=[]),Ut[e].push(t),function(){var a=Ut[e].indexOf(t);Ut[e].splice(a,1)}},Uf=function(e,t){var n=t.cacheKey,a=t.cacheTime,r=a===void 0?5*60*1e3:a,i=t.staleTime,s=i===void 0?0:i,l=t.setCache,u=t.getCache,c=o.useRef(),m=o.useRef(),f=function(d,g){l?l(g):Ff(d,r,g),Kf(d,g.data)},v=function(d,g){return g===void 0&&(g=[]),u?u(g):kf(d)};return Ei(function(){if(n){var d=v(n);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(s===-1||new Date().getTime()-d.time<=s)&&(e.state.loading=!1)),c.current=ra(n,function(g){e.setState({data:g})})}},[]),Ga(function(){var d;(d=c.current)===null||d===void 0||d.call(c)}),n?{onBefore:function(d){var g=v(n,d);return!g||!Object.hasOwnProperty.call(g,"data")?{}:s===-1||new Date().getTime()-g.time<=s?{loading:!1,data:g==null?void 0:g.data,error:void 0,returnNow:!0}:{data:g==null?void 0:g.data,error:void 0}},onRequest:function(d,g){var h=Wf(n);return h&&h!==m.current?{servicePromise:h}:(h=d.apply(void 0,dt([],st(g),!1)),m.current=h,Gf(n,h),{servicePromise:h})},onSuccess:function(d,g){var h;n&&((h=c.current)===null||h===void 0||h.call(c),f(n,{data:d,params:g,time:new Date().getTime()}),c.current=ra(n,function(p){e.setState({data:p})}))},onMutate:function(d){var g;n&&((g=c.current)===null||g===void 0||g.call(c),f(n,{data:d,params:e.state.params,time:new Date().getTime()}),c.current=ra(n,function(h){e.setState({data:h})}))}}:{}};const qf=Uf;function Xf(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ka=Xf,Yf=typeof wn=="object"&&wn&&wn.Object===Object&&wn,Qf=Yf,Jf=Qf,Zf=typeof self=="object"&&self&&self.Object===Object&&self,em=Jf||Zf||Function("return this")(),Ii=em,tm=Ii,nm=function(){return tm.Date.now()},am=nm,rm=/\s/;function om(e){for(var t=e.length;t--&&rm.test(e.charAt(t)););return t}var im=om,lm=im,sm=/^\s+/;function cm(e){return e&&e.slice(0,lm(e)+1).replace(sm,"")}var um=cm,dm=Ii,fm=dm.Symbol,Oi=fm,Vr=Oi,Ri=Object.prototype,mm=Ri.hasOwnProperty,vm=Ri.toString,gn=Vr?Vr.toStringTag:void 0;function gm(e){var t=mm.call(e,gn),n=e[gn];try{e[gn]=void 0;var a=!0}catch{}var r=vm.call(e);return a&&(t?e[gn]=n:delete e[gn]),r}var pm=gm,hm=Object.prototype,bm=hm.toString;function Sm(e){return bm.call(e)}var ym=Sm,Fr=Oi,Cm=pm,$m=ym,wm="[object Null]",xm="[object Undefined]",kr=Fr?Fr.toStringTag:void 0;function Em(e){return e==null?e===void 0?xm:wm:kr&&kr in Object(e)?Cm(e):$m(e)}var Nm=Em;function Im(e){return e!=null&&typeof e=="object"}var Om=Im,Rm=Nm,Pm=Om,Mm="[object Symbol]";function Dm(e){return typeof e=="symbol"||Pm(e)&&Rm(e)==Mm}var Tm=Dm,_m=um,Wr=Ka,zm=Tm,Gr=NaN,jm=/^[-+]0x[0-9a-f]+$/i,Lm=/^0b[01]+$/i,Bm=/^0o[0-7]+$/i,Hm=parseInt;function Am(e){if(typeof e=="number")return e;if(zm(e))return Gr;if(Wr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_m(e);var n=Lm.test(e);return n||Bm.test(e)?Hm(e.slice(2),n?2:8):jm.test(e)?Gr:+e}var Vm=Am,Fm=Ka,oa=am,Kr=Vm,km="Expected a function",Wm=Math.max,Gm=Math.min;function Km(e,t,n){var a,r,i,s,l,u,c=0,m=!1,f=!1,v=!0;if(typeof e!="function")throw new TypeError(km);t=Kr(t)||0,Fm(n)&&(m=!!n.leading,f="maxWait"in n,i=f?Wm(Kr(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v);function d(y){var $=a,E=r;return a=r=void 0,c=y,s=e.apply(E,$),s}function g(y){return c=y,l=setTimeout(b,t),m?d(y):s}function h(y){var $=y-u,E=y-c,w=t-$;return f?Gm(w,i-E):w}function p(y){var $=y-u,E=y-c;return u===void 0||$>=t||$<0||f&&E>=i}function b(){var y=oa();if(p(y))return S(y);l=setTimeout(b,h(y))}function S(y){return l=void 0,v&&a?d(y):(a=r=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,a=u=r=l=void 0}function N(){return l===void 0?s:S(oa())}function O(){var y=oa(),$=p(y);if(a=arguments,r=this,u=y,$){if(l===void 0)return g(u);if(f)return clearTimeout(l),l=setTimeout(b,t),d(u)}return l===void 0&&(l=setTimeout(b,t)),s}return O.cancel=C,O.flush=N,O}var Pi=Km;const Um=Jr(Pi);var qm=function(e,t){var n=t.debounceWait,a=t.debounceLeading,r=t.debounceTrailing,i=t.debounceMaxWait,s=o.useRef(),l=o.useMemo(function(){var u={};return a!==void 0&&(u.leading=a),r!==void 0&&(u.trailing=r),i!==void 0&&(u.maxWait=i),u},[a,r,i]);return o.useEffect(function(){if(n){var u=e.runAsync.bind(e);return s.current=Um(function(c){c()},n,l),e.runAsync=function(){for(var c=[],m=0;m-1&&bn.splice(n,1)}}if(Un){var Ur=function(){if(!(!Ua()||!av()))for(var e=0;e$&&(O=Math.max(1,$));var E=st(u.params||[]),w=E[0],I=w===void 0?{}:w,x=E.slice(1);u.run.apply(u,dt([pt(pt({},I),{current:O,pageSize:y})],st(x),!1))},b=function(C){p(C,d)},S=function(C){p(f,C)};return pt(pt({},u),{pagination:{current:f,pageSize:d,total:g,totalPage:h,onChange:Lt(p),changeCurrent:Lt(b),changePageSize:Lt(S)}})};function wv(e,t){const{onOpen:n,onClose:a}=t||{},[r,i]=o.useState(e??!1),s=o.useCallback(()=>{i(c=>c||(n==null||n(),!0))},[n]),l=o.useCallback(()=>{i(c=>c&&(a==null||a(),!1))},[a]),u=o.useCallback(()=>{r?l():s()},[l,s,r]);return[r,{open:s,close:l,toggle:u}]}const xv=({actionRef:e,onFinish:t})=>{const[n]=kt.useForm(),[a,r]=o.useState(),i=!!a,[s,{open:l,close:u}]=wv(),c=kt.useWatch("rateLimitEnabled",n),m=o.useMemo(()=>i?a:{rateLimitEnabled:!1,rateLimitCount:1,rateLimitDuration:60},[i,a]),f=()=>{u(),n.resetFields()},v=Mi(async()=>{const d=await n.validateFields();if(!d)return!1;let g=!0;if(!i){const{error:h}=await Fi(d);h||(Fa.success("App created successfully"),n.resetFields()),g=!h}return g&&t&&(u(),t()),g},{manual:!0});return o.useEffect(()=>{e!=null&&e.current||(e.current={openModal:d=>{r(d),n.setFieldsValue({name:d==null?void 0:d.name}),l()}})},[n,l]),Ae.jsxDEV(ao,{title:i?"Edit app":"Create app",open:s,onCancel:f,okButtonProps:{htmlType:"submit",loading:v.loading},onOk:v.run,children:Ae.jsxDEV(kt,{labelCol:{span:5},form:n,initialValues:m,children:[Ae.jsxDEV(kt.Item,{label:"Name",name:"name",rules:[{required:!0,message:"Please input app name!"}],children:Ae.jsxDEV(ol,{placeholder:"App name",maxLength:12},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:95,columnNumber:9},void 0),Ae.jsxDEV(kt.Item,{noStyle:!0,children:[Ae.jsxDEV(kt.Item,{label:"Rate limit",name:"rateLimitEnabled",children:Ae.jsxDEV(Of,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:100,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:99,columnNumber:11},void 0),c&&Ae.jsxDEV("div",{className:"flex items-center space-x-2",children:[Ae.jsxDEV(kt.Item,{name:"rateLimitCount",className:"!mb-0",rules:[{required:!0,message:"Required!"}],children:Ae.jsxDEV(Dr,{placeholder:"Limit count"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:105,columnNumber:17},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:104,columnNumber:15},void 0),Ae.jsxDEV("span",{children:"messages per"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:107,columnNumber:15},void 0),Ae.jsxDEV(kt.Item,{name:"rateLimitDuration",className:"!mb-0",rules:[{required:!0,message:"Required!"}],children:Ae.jsxDEV(Dr,{placeholder:"per second"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:109,columnNumber:17},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:108,columnNumber:15},void 0),Ae.jsxDEV("span",{children:"seconds / phone"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:111,columnNumber:15},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:103,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:98,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:94,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:84,columnNumber:5},void 0)},{useModal:Ev}=ao,qr=12,Pv=()=>{var v,d,g,h;const[e,t]=Ev(),[n,a]=Fa.useMessage(),[r,i]=o.useState(null),s=o.useRef(),l=$v(async({current:p,pageSize:b})=>{const{error:S,data:C}=await ki({limit:b,offset:(p-1)*b});return S?[]:C},{defaultPageSize:qr}),u=p=>{e.confirm({title:`Delete app "${p.name}"?`,content:"This operation is irreversible.",okButtonProps:{danger:!0},onOk:async()=>{const{error:b}=await Wi(p.id);b||(n.success("App deleted successfully."),l.refresh())}})},c=()=>{var p;(p=s.current)==null||p.openModal()};function m(p){p&&(navigator.clipboard.writeText(p),n.success("Copied to clipboard."))}const f=Ae.jsxDEV(Ol,{type:"dashed",className:"flex items-center",onClick:()=>c(),children:[Ae.jsxDEV(ko,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:57,columnNumber:7},void 0)," Create an App"]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:56,columnNumber:5},void 0);return Ae.jsxDEV(Ae.Fragment,{children:[!!((v=l.data)!=null&&v.list.length)&&f,Ae.jsxDEV("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:(d=l.data)==null?void 0:d.list.map(p=>Ae.jsxDEV(fd,{title:p.name,actions:[Ae.jsxDEV(jf,{className:"cursor-pointer",onClick:()=>i(p)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:71,columnNumber:15},void 0),Ae.jsxDEV(Mf,{className:"!hover:text-red-500 cursor-pointer",onClick:()=>u(p)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:72,columnNumber:15},void 0)],children:Ae.jsxDEV("div",{className:"text-xs italic",children:["created at: ",p.createdAt]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:75,columnNumber:13},void 0)},p.id,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:66,columnNumber:11},void 0))},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:64,columnNumber:7},void 0),Ae.jsxDEV(uf,{hideOnSinglePage:!0,total:(g=l.data)==null?void 0:g.total,pageSize:l.pagination.pageSize,current:l.pagination.current,onChange:p=>l.run({current:p,pageSize:qr})},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:79,columnNumber:7},void 0),!l.loading&&((h=l.data)==null?void 0:h.list.length)===0&&Ae.jsxDEV(on,{className:"my-10 flex flex-col items-center justify-center",description:"No apps found.",children:f},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:87,columnNumber:9},void 0),Ae.jsxDEV(Wd,{title:"App API Key",width:360,open:r!==null,onClose:()=>i(null),children:[Ae.jsxDEV("div",{children:"App ID:"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:92,columnNumber:9},void 0),Ae.jsxDEV("div",{className:"py-1 flex items-center",children:[Ae.jsxDEV("div",{className:"truncate",children:r==null?void 0:r.appId},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:94,columnNumber:11},void 0),Ae.jsxDEV(Ar,{className:"ml-2 cursor-pointer hover:text-primary",onClick:()=>m(r==null?void 0:r.appId)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:95,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:93,columnNumber:9},void 0),Ae.jsxDEV("div",{className:"mt-4",children:"App Secret:"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:97,columnNumber:9},void 0),Ae.jsxDEV("div",{className:"py-1 flex items-center",children:[Ae.jsxDEV("div",{className:"truncate",children:r==null?void 0:r.appSecret},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:99,columnNumber:11},void 0),Ae.jsxDEV(Ar,{className:"ml-2 cursor-pointer hover:text-primary",onClick:()=>m(r==null?void 0:r.appSecret)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:100,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:98,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:91,columnNumber:7},void 0),Ae.jsxDEV(xv,{actionRef:s,onFinish:()=>l.refresh()},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:106,columnNumber:7},void 0),t,a]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:62,columnNumber:5},void 0)};export{Pv as default}; diff --git a/packages/server/html/assets/apps-rSw3poyS.js b/packages/server/html/assets/apps-rSw3poyS.js new file mode 100644 index 0000000..ef2b781 --- /dev/null +++ b/packages/server/html/assets/apps-rSw3poyS.js @@ -0,0 +1,71 @@ +import{r as i,c as H,R as Ie,w as Et,x as G,y as fo,B as oe,D as ua,E as W,K as ne,_ as Ne,F as Ct,G as at,H as mo,I as yt,e as da,J as Dt,L as pt,M as fa,P as ma,Q as vo,S as La,U as go,V as Tr,W as Ha,q as Rn,T as on,h as Bt,m as wt,C as it,k as Pt,t as sn,f as N,l as va,b as Tt,n as qt,X as po,Y as _r,Z as zr,o as ga,$ as pa,d as jr,a0 as ho,a1 as yn,a2 as ea,p as Pn,i as Mn,a3 as bo,z as So,g as Aa,a4 as yo,a5 as $o,a6 as bn,a7 as Br,j as He,a8 as Co,a9 as Lr,aa as wo,ab as xo}from"./index-E_dpsFJ8.js";import{S as Eo,u as Hr,g as ta,a as Ar,b as Io,B as No,t as Oo,i as Vr,c as Fr,d as ha,e as Ro,f as Po,h as Mo,j as Do,k as To,l as _o,m as zo,n as jo,o as Bo,p as Lo,F as Ft,I as Ho}from"./index-iXhorHYD.js";import{p as cn,F as Ao,s as Vo,c as Fo,d as Wo,e as ko,i as En,f as Va,h as Go,E as Ko,M as Uo,g as qo,b as Xo,k as Yo,l as Jo,L as Fa,j as Wr}from"./index-o-gj_Z6r.js";import{m as Qo,n as ba,h as jt,R as vn,u as na,o as un,t as In,p as kr,q as Gr,l as Kr,F as Ur,r as dn,s as Nn,N as aa,v as ra,P as Zo,W as el,B as tl}from"./index-fFfiboOG.js";import{R as Wa}from"./RightOutlined-1vddobSS.js";var Dn=function(t){var n=t.className,a=t.customizeIcon,r=t.customizeIconProps,o=t.children,s=t.onMouseDown,l=t.onClick,c=typeof a=="function"?a(r):a;return i.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),s==null||s(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:i.createElement("span",{className:H(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},nl=function(t,n,a,r,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=Ie.useMemo(function(){if(Et(r)==="object")return r.clearIcon;if(o)return o},[r,o]),m=Ie.useMemo(function(){return!!(!s&&r&&(a.length||l)&&!(c==="combobox"&&l===""))},[r,s,a.length,l,c]);return{allowClear:m,clearIcon:Ie.createElement(Dn,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},qr=i.createContext(null);function al(){return i.useContext(qr)}function rl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),n=G(t,2),a=n[0],r=n[1],o=i.useRef(null),s=function(){window.clearTimeout(o.current)};i.useEffect(function(){return s},[]);var l=function(u,m){s(),o.current=window.setTimeout(function(){r(u),m&&m()},e)};return[a,l,s]}function Xr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function a(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},a]}function il(e,t,n,a){var r=i.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:a},i.useEffect(function(){function o(s){var l;if(!((l=r.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),r.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}var ol=function(t,n){var a,r=t.prefixCls,o=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,m=t.autoComplete,f=t.editable,v=t.activeDescendantId,d=t.value,p=t.maxLength,h=t.onKeyDown,g=t.onMouseDown,b=t.onChange,S=t.onPaste,y=t.onCompositionStart,w=t.onCompositionEnd,R=t.open,$=t.attrs,C=s||i.createElement("input",null),E=C,I=E.ref,P=E.props,x=P.onKeyDown,T=P.onChange,D=P.onMouseDown,O=P.onCompositionStart,B=P.onCompositionEnd,X=P.style;return fo(!("maxLength"in C.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),C=i.cloneElement(C,oe(oe(oe({type:"search"},P),{},{id:o,ref:ua(n,I),disabled:l,tabIndex:c,autoComplete:m||"off",autoFocus:u,className:H("".concat(r,"-selection-search-input"),(a=C)===null||a===void 0||(a=a.props)===null||a===void 0?void 0:a.className),role:"combobox","aria-expanded":R||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":R?v:void 0},$),{},{value:f?d:"",maxLength:p,readOnly:!f,unselectable:f?null:"on",style:oe(oe({},X),{},{opacity:f?null:0}),onKeyDown:function(_){h(_),x&&x(_)},onMouseDown:function(_){g(_),D&&D(_)},onChange:function(_){b(_),T&&T(_)},onCompositionStart:function(_){y(_),O&&O(_)},onCompositionEnd:function(_){w(_),B&&B(_)},onPaste:S})),C},Sa=i.forwardRef(ol);Sa.displayName="Input";function ya(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var ll=typeof window<"u"&&window.document&&window.document.documentElement,sl=ll;function cl(e){return e!=null}function ul(e){return!e&&e!==0}function ka(e){return["string","number"].includes(Et(e))}function Yr(e){var t=void 0;return e&&(ka(e.title)?t=e.title.toString():ka(e.label)&&(t=e.label.toString())),t}function dl(e,t){sl?i.useLayoutEffect(e,t):i.useEffect(e,t)}function fl(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Ga=function(t){t.preventDefault(),t.stopPropagation()},ml=function(t){var n=t.id,a=t.prefixCls,r=t.values,o=t.open,s=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,m=t.disabled,f=t.mode,v=t.showSearch,d=t.autoFocus,p=t.autoComplete,h=t.activeDescendantId,g=t.tabIndex,b=t.removeIcon,S=t.maxTagCount,y=t.maxTagTextLength,w=t.maxTagPlaceholder,R=w===void 0?function(de){return"+ ".concat(de.length," ...")}:w,$=t.tagRender,C=t.onToggleOpen,E=t.onRemove,I=t.onInputChange,P=t.onInputPaste,x=t.onInputKeyDown,T=t.onInputMouseDown,D=t.onInputCompositionStart,O=t.onInputCompositionEnd,B=i.useRef(null),X=i.useState(0),j=G(X,2),_=j[0],ie=j[1],se=i.useState(!1),re=G(se,2),V=re[0],A=re[1],K="".concat(a,"-selection"),Q=o||f==="multiple"&&l===!1||f==="tags"?s:"",U=f==="tags"||f==="multiple"&&l===!1||v&&(o||V);dl(function(){ie(B.current.scrollWidth)},[Q]);var $e=function(Y,M,ce,Ce,fe){return i.createElement("span",{title:Yr(Y),className:H("".concat(K,"-item"),W({},"".concat(K,"-item-disabled"),ce))},i.createElement("span",{className:"".concat(K,"-item-content")},M),Ce&&i.createElement(Dn,{className:"".concat(K,"-item-remove"),onMouseDown:Ga,onClick:fe,customizeIcon:b},"×"))},ue=function(Y,M,ce,Ce,fe){var J=function(pe){Ga(pe),C(!o)};return i.createElement("span",{onMouseDown:J},$({label:M,value:Y,disabled:ce,closable:Ce,onClose:fe}))},k=function(Y){var M=Y.disabled,ce=Y.label,Ce=Y.value,fe=!m&&!M,J=ce;if(typeof y=="number"&&(typeof ce=="string"||typeof ce=="number")){var Z=String(J);Z.length>y&&(J="".concat(Z.slice(0,y),"..."))}var pe=function(xe){xe&&xe.stopPropagation(),E(Y)};return typeof $=="function"?ue(Ce,J,M,fe,pe):$e(Y,J,M,fe,pe)},L=function(Y){var M=typeof R=="function"?R(Y):R;return $e({title:M},M,!1)},z=i.createElement("div",{className:"".concat(K,"-search"),style:{width:_},onFocus:function(){A(!0)},onBlur:function(){A(!1)}},i.createElement(Sa,{ref:c,open:o,prefixCls:a,id:n,inputElement:null,disabled:m,autoFocus:d,autoComplete:p,editable:U,activeDescendantId:h,value:Q,onKeyDown:x,onMouseDown:T,onChange:I,onPaste:P,onCompositionStart:D,onCompositionEnd:O,tabIndex:g,attrs:cn(t,!0)}),i.createElement("span",{ref:B,className:"".concat(K,"-search-mirror"),"aria-hidden":!0},Q," ")),F=i.createElement(Ao,{prefixCls:"".concat(K,"-overflow"),data:r,renderItem:k,renderRest:L,suffix:z,itemKey:fl,maxCount:S});return i.createElement(i.Fragment,null,F,!r.length&&!Q&&i.createElement("span",{className:"".concat(K,"-placeholder")},u))},vl=function(t){var n=t.inputElement,a=t.prefixCls,r=t.id,o=t.inputRef,s=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,m=t.mode,f=t.open,v=t.values,d=t.placeholder,p=t.tabIndex,h=t.showSearch,g=t.searchValue,b=t.activeValue,S=t.maxLength,y=t.onInputKeyDown,w=t.onInputMouseDown,R=t.onInputChange,$=t.onInputPaste,C=t.onInputCompositionStart,E=t.onInputCompositionEnd,I=t.title,P=i.useState(!1),x=G(P,2),T=x[0],D=x[1],O=m==="combobox",B=O||h,X=v[0],j=g||"";O&&b&&!T&&(j=b),i.useEffect(function(){O&&D(!1)},[O,b]);var _=m!=="combobox"&&!f&&!h?!1:!!j,ie=I===void 0?Yr(X):I,se=i.useMemo(function(){return X?null:i.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:_?{visibility:"hidden"}:void 0},d)},[X,_,d,a]);return i.createElement(i.Fragment,null,i.createElement("span",{className:"".concat(a,"-selection-search")},i.createElement(Sa,{ref:o,prefixCls:a,id:r,open:f,inputElement:n,disabled:s,autoFocus:l,autoComplete:c,editable:B,activeDescendantId:u,value:j,onKeyDown:y,onMouseDown:w,onChange:function(V){D(!0),R(V)},onPaste:$,onCompositionStart:C,onCompositionEnd:E,tabIndex:p,attrs:cn(t,!0),maxLength:O?S:void 0})),!O&&X?i.createElement("span",{className:"".concat(a,"-selection-item"),title:ie,style:_?{visibility:"hidden"}:void 0},X.label):null,se)};function gl(e){return![ne.ESC,ne.SHIFT,ne.BACKSPACE,ne.TAB,ne.WIN_KEY,ne.ALT,ne.META,ne.WIN_KEY_RIGHT,ne.CTRL,ne.SEMICOLON,ne.EQUALS,ne.CAPS_LOCK,ne.CONTEXT_MENU,ne.F1,ne.F2,ne.F3,ne.F4,ne.F5,ne.F6,ne.F7,ne.F8,ne.F9,ne.F10,ne.F11,ne.F12].includes(e)}var pl=function(t,n){var a=i.useRef(null),r=i.useRef(!1),o=t.prefixCls,s=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,m=t.autoClearSearchValue,f=t.onSearch,v=t.onSearchSubmit,d=t.onToggleOpen,p=t.onInputKeyDown,h=t.domRef;i.useImperativeHandle(n,function(){return{focus:function(){a.current.focus()},blur:function(){a.current.blur()}}});var g=Xr(0),b=G(g,2),S=b[0],y=b[1],w=function(j){var _=j.which;(_===ne.UP||_===ne.DOWN)&&j.preventDefault(),p&&p(j),_===ne.ENTER&&l==="tags"&&!r.current&&!s&&(v==null||v(j.target.value)),gl(_)&&d(!0)},R=function(){y(!0)},$=i.useRef(null),C=function(j){f(j,!0,r.current)!==!1&&d(!0)},E=function(){r.current=!0},I=function(j){r.current=!1,l!=="combobox"&&C(j.target.value)},P=function(j){var _=j.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var ie=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(ie,$.current)}$.current=null,C(_)},x=function(j){var _=j.clipboardData,ie=_==null?void 0:_.getData("text");$.current=ie||""},T=function(j){var _=j.target;if(_!==a.current){var ie=document.body.style.msTouchAction!==void 0;ie?setTimeout(function(){a.current.focus()}):a.current.focus()}},D=function(j){var _=S();j.target!==a.current&&!_&&l!=="combobox"&&j.preventDefault(),(l!=="combobox"&&(!c||!_)||!s)&&(s&&m!==!1&&f("",!0,!1),d())},O={inputRef:a,onInputKeyDown:w,onInputMouseDown:R,onInputChange:P,onInputPaste:x,onInputCompositionStart:E,onInputCompositionEnd:I},B=l==="multiple"||l==="tags"?i.createElement(ml,Ne({},t,O)):i.createElement(vl,Ne({},t,O));return i.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:T,onMouseDown:D},B)},Jr=i.forwardRef(pl);Jr.displayName="Selector";var hl=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],bl=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Sl=function(t,n){var a=t.prefixCls;t.disabled;var r=t.visible,o=t.children,s=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,m=t.dropdownClassName,f=t.direction,v=f===void 0?"ltr":f,d=t.placement,p=t.builtinPlacements,h=t.dropdownMatchSelectWidth,g=t.dropdownRender,b=t.dropdownAlign,S=t.getPopupContainer,y=t.empty,w=t.getTriggerDOMNode,R=t.onPopupVisibleChange,$=t.onPopupMouseEnter,C=Ct(t,hl),E="".concat(a,"-dropdown"),I=s;g&&(I=g(s));var P=i.useMemo(function(){return p||bl(h)},[p,h]),x=l?"".concat(E,"-").concat(l):c,T=typeof h=="number",D=i.useMemo(function(){return T?null:h===!1?"minWidth":"width"},[h,T]),O=u;T&&(O=oe(oe({},O),{},{width:h}));var B=i.useRef(null);return i.useImperativeHandle(n,function(){return{getPopupElement:function(){return B.current}}}),i.createElement(Qo,Ne({},C,{showAction:R?["click"]:[],hideAction:R?["click"]:[],popupPlacement:d||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:E,popupTransitionName:x,popup:i.createElement("div",{ref:B,onMouseEnter:$},I),stretch:D,popupAlign:b,popupVisible:r,getPopupContainer:S,popupClassName:H(m,W({},"".concat(E,"-empty"),y)),popupStyle:O,getTriggerDOMNode:w,onPopupVisibleChange:R}),o)},Qr=i.forwardRef(Sl);Qr.displayName="SelectTrigger";function Ka(e,t){var n=e.key,a;return"value"in e&&(a=e.value),n??(a!==void 0?a:"rc-index-key-".concat(t))}function Zr(e,t){var n=e||{},a=n.label,r=n.value,o=n.options,s=n.groupLabel,l=a||(t?"children":"label");return{label:l,value:r||"value",options:o||"options",groupLabel:s||l}}function yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,a=t.childrenAsData,r=[],o=Zr(n,!1),s=o.label,l=o.value,c=o.options,u=o.groupLabel;function m(f,v){Array.isArray(f)&&f.forEach(function(d){if(v||!(c in d)){var p=d[l];r.push({key:Ka(d,r.length),groupOption:v,data:d,label:d[s],value:p})}else{var h=d[u];h===void 0&&a&&(h=d.label),r.push({key:Ka(d,r.length),group:!0,data:d,label:h}),m(d[c],!0)}})}return m(e,!1),r}function ia(e){var t=oe({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return at(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var $l=function(t,n,a){if(!n||!n.length)return null;var r=!1,o=function l(c,u){var m=mo(u),f=m[0],v=m.slice(1);if(!f)return[c];var d=c.split(f);return r=r||d.length>1,d.reduce(function(p,h){return[].concat(yt(p),yt(l(h,v)))},[]).filter(Boolean)},s=o(t,n);return r?typeof a<"u"?s.slice(0,a):s:null},$a=i.createContext(null),Cl=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],wl=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],On=function(t){return t==="tags"||t==="multiple"},ei=i.forwardRef(function(e,t){var n,a,r=e.id,o=e.prefixCls,s=e.className,l=e.showSearch,c=e.tagRender,u=e.direction,m=e.omitDomProps,f=e.displayValues,v=e.onDisplayValuesChange,d=e.emptyOptions,p=e.notFoundContent,h=p===void 0?"Not Found":p,g=e.onClear,b=e.mode,S=e.disabled,y=e.loading,w=e.getInputElement,R=e.getRawInputElement,$=e.open,C=e.defaultOpen,E=e.onDropdownVisibleChange,I=e.activeValue,P=e.onActiveValueChange,x=e.activeDescendantId,T=e.searchValue,D=e.autoClearSearchValue,O=e.onSearch,B=e.onSearchSplit,X=e.tokenSeparators,j=e.allowClear,_=e.suffixIcon,ie=e.clearIcon,se=e.OptionList,re=e.animation,V=e.transitionName,A=e.dropdownStyle,K=e.dropdownClassName,Q=e.dropdownMatchSelectWidth,U=e.dropdownRender,$e=e.dropdownAlign,ue=e.placement,k=e.builtinPlacements,L=e.getPopupContainer,z=e.showAction,F=z===void 0?[]:z,de=e.onFocus,Y=e.onBlur,M=e.onKeyUp,ce=e.onKeyDown,Ce=e.onMouseDown,fe=Ct(e,Cl),J=On(b),Z=(l!==void 0?l:J)||b==="combobox",pe=oe({},fe);wl.forEach(function(ze){delete pe[ze]}),m==null||m.forEach(function(ze){delete pe[ze]});var Me=i.useState(!1),xe=G(Me,2),We=xe[0],Ke=xe[1];i.useEffect(function(){Ke(ba())},[]);var Ae=i.useRef(null),ke=i.useRef(null),Ge=i.useRef(null),_e=i.useRef(null),Ue=i.useRef(null),Ve=i.useRef(!1),st=rl(),je=G(st,3),qe=je[0],Xe=je[1],ht=je[2];i.useImperativeHandle(t,function(){var ze,Re;return{focus:(ze=_e.current)===null||ze===void 0?void 0:ze.focus,blur:(Re=_e.current)===null||Re===void 0?void 0:Re.blur,scrollTo:function($t){var nt;return(nt=Ue.current)===null||nt===void 0?void 0:nt.scrollTo($t)}}});var De=i.useMemo(function(){var ze;if(b!=="combobox")return T;var Re=(ze=f[0])===null||ze===void 0?void 0:ze.value;return typeof Re=="string"||typeof Re=="number"?String(Re):""},[T,b,f]),et=b==="combobox"&&typeof w=="function"&&w()||null,Ye=typeof R=="function"&&R(),xt=da(ke,Ye==null||(n=Ye.props)===null||n===void 0?void 0:n.ref),dt=i.useState(!1),bt=G(dt,2),me=bt[0],ae=bt[1];Dt(function(){ae(!0)},[]);var Oe=jt(!1,{defaultValue:C,value:$}),he=G(Oe,2),Qe=he[0],tt=he[1],Fe=me?Qe:!1,ge=!h&&d;(S||ge&&Fe&&b==="combobox")&&(Fe=!1);var be=ge?!1:Fe,ee=i.useCallback(function(ze){var Re=ze!==void 0?ze:!Fe;S||(tt(Re),Fe!==Re&&(E==null||E(Re)))},[S,Fe,tt,E]),te=i.useMemo(function(){return(X||[]).some(function(ze){return[` +`,`\r +`].includes(ze)})},[X]),ve=i.useContext($a)||{},Te=ve.maxCount,Ze=ve.rawValues,rt=function(Re,vt,$t){if(!((Ze==null?void 0:Ze.size)>=Te)){var nt=!0,St=Re;P==null||P(null);var Mt=$l(Re,X,Te&&Te-Ze.size),Ht=$t?null:Mt;return b!=="combobox"&&Ht&&(St="",B==null||B(Ht),ee(!1),nt=!1),O&&De!==St&&O(St,{source:vt?"typing":"effect"}),nt}},ct=function(Re){!Re||!Re.trim()||O(Re,{source:"submit"})};i.useEffect(function(){!Fe&&!J&&b!=="combobox"&&rt("",!1,!1)},[Fe]),i.useEffect(function(){Qe&&S&&tt(!1),S&&!Ve.current&&Xe(!1)},[S]);var ye=Xr(),Se=G(ye,2),Pe=Se[0],q=Se[1],le=function(Re){var vt=Pe(),$t=Re.which;if($t===ne.ENTER&&(b!=="combobox"&&Re.preventDefault(),Fe||ee(!0)),q(!!De),$t===ne.BACKSPACE&&!vt&&J&&!De&&f.length){for(var nt=yt(f),St=null,Mt=nt.length-1;Mt>=0;Mt-=1){var Ht=nt[Mt];if(!Ht.disabled){nt.splice(Mt,1),St=Ht;break}}St&&v(nt,{type:"remove",values:[St]})}for(var At=arguments.length,en=new Array(At>1?At-1:0),Vt=1;Vt1?vt-1:0),nt=1;nt1?Mt-1:0),At=1;At0&&arguments[0]!==void 0?arguments[0]:!1;m();var p=function(){l.current.forEach(function(g,b){if(g&&g.offsetParent){var S=vo(g),y=S.offsetHeight;c.current.get(b)!==y&&c.current.set(b,S.offsetHeight)}}),s(function(g){return g+1})};d?p():u.current=pt(p)}function v(d,p){var h=e(d),g=l.current.get(h);p?(l.current.set(h,p),f()):l.current.delete(h),!g!=!p&&(p?t==null||t(d):n==null||n(d))}return i.useEffect(function(){return m},[]),[v,f,c.current,o]}var qa=10;function Ol(e,t,n,a,r,o,s,l){var c=i.useRef(),u=i.useState(null),m=G(u,2),f=m[0],v=m[1];return Dt(function(){if(f&&f.times=0;O-=1){var B=r(t[O]),X=n.get(B);if(X===void 0){S=!0;break}if(D-=X,D<=0)break}switch(R){case"top":w=C-g;break;case"bottom":w=E-b+g;break;default:{var j=e.current.scrollTop,_=j+b;C_&&(y="bottom")}}w!==null&&s(w),w!==f.lastTop&&(S=!0)}S&&v(oe(oe({},f),{},{times:f.times+1,targetAlign:y,lastTop:w}))}else(f==null?void 0:f.times)===qa&&at(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(d){if(d==null){l();return}if(pt.cancel(c.current),typeof d=="number")s(d);else if(d&&Et(d)==="object"){var p,h=d.align;"index"in d?p=d.index:p=t.findIndex(function(S){return r(S)===d.key});var g=d.offset,b=g===void 0?0:g;v({times:0,index:p,offset:b,originAlign:h})}}}function Rl(e,t,n){var a=e.length,r=t.length,o,s;if(a===0&&r===0)return null;a"u"?"undefined":Et(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ni=function(e,t){var n=i.useRef(!1),a=i.useRef(null);function r(){clearTimeout(a.current),n.current=!0,a.current=setTimeout(function(){n.current=!1},50)}var o=i.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=s<0&&o.current.top||s>0&&o.current.bottom;return l&&c?(clearTimeout(a.current),n.current=!1):(!c||n.current)&&r(),!n.current&&c}};function Ml(e,t,n,a,r){var o=i.useRef(0),s=i.useRef(null),l=i.useRef(null),c=i.useRef(!1),u=ni(t,n);function m(g,b){pt.cancel(s.current),o.current+=b,l.current=b,!u(b)&&(Xa||g.preventDefault(),s.current=pt(function(){var S=c.current?10:1;r(o.current*S),o.current=0}))}function f(g,b){r(b,!0),Xa||g.preventDefault()}var v=i.useRef(null),d=i.useRef(null);function p(g){if(e){pt.cancel(d.current),d.current=pt(function(){v.current=null},2);var b=g.deltaX,S=g.deltaY,y=g.shiftKey,w=b,R=S;(v.current==="sx"||!v.current&&y&&S&&!b)&&(w=S,R=0,v.current="sx");var $=Math.abs(w),C=Math.abs(R);v.current===null&&(v.current=a&&$>C?"x":"y"),v.current==="y"?m(g,R):f(g,w)}}function h(g){e&&(c.current=g.detail===l.current)}return[p,h]}var Dl=14/15;function Tl(e,t,n){var a=i.useRef(!1),r=i.useRef(0),o=i.useRef(null),s=i.useRef(null),l,c=function(v){if(a.current){var d=Math.ceil(v.touches[0].pageY),p=r.current-d;r.current=d,n(p)&&v.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){p*=Dl,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(s.current)},16)}},u=function(){a.current=!1,l()},m=function(v){l(),v.touches.length===1&&!a.current&&(a.current=!0,r.current=Math.ceil(v.touches[0].pageY),o.current=v.target,o.current.addEventListener("touchmove",c),o.current.addEventListener("touchend",u))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},Dt(function(){return e&&t.current.addEventListener("touchstart",m),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",m),l(),clearInterval(s.current)}},[e])}var _l=20;function Ya(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,_l),Math.floor(n)}function zl(e,t,n,a){var r=i.useMemo(function(){return[new Map,[]]},[e,n.id,a]),o=G(r,2),s=o[0],l=o[1],c=function(m){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,v=s.get(m),d=s.get(f);if(v===void 0||d===void 0)for(var p=e.length,h=l.length;ho||!!h),x=p==="rtl",T=H(a,W({},"".concat(a,"-rtl"),x),r),D=m||Bl,O=i.useRef(),B=i.useRef(),X=i.useState(0),j=G(X,2),_=j[0],ie=j[1],se=i.useState(0),re=G(se,2),V=re[0],A=re[1],K=i.useState(!1),Q=G(K,2),U=Q[0],$e=Q[1],ue=function(){$e(!0)},k=function(){$e(!1)},L=i.useCallback(function(q){return typeof v=="function"?v(q):q==null?void 0:q[v]},[v]),z={getKey:L};function F(q){ie(function(le){var Ee;typeof q=="function"?Ee=q(le):Ee=q;var Be=xt(Ee);return O.current.scrollTop=Be,Be})}var de=i.useRef({start:0,end:D.length}),Y=i.useRef(),M=Pl(D,L),ce=G(M,1),Ce=ce[0];Y.current=Ce;var fe=Nl(L,null,null),J=G(fe,4),Z=J[0],pe=J[1],Me=J[2],xe=J[3],We=i.useMemo(function(){if(!I)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};if(!P){var q;return{scrollHeight:((q=B.current)===null||q===void 0?void 0:q.offsetHeight)||0,start:0,end:D.length-1,offset:void 0}}for(var le=0,Ee,Be,ot,_t=D.length,ft=0;ft<_t;ft+=1){var mt=D[ft],Lt=L(mt),It=Me.get(Lt),Nt=le+(It===void 0?s:It);Nt>=_&&Ee===void 0&&(Ee=ft,Be=le),Nt>_+o&&ot===void 0&&(ot=ft),le=Nt}return Ee===void 0&&(Ee=0,Be=0,ot=Math.ceil(o/s)),ot===void 0&&(ot=D.length-1),ot=Math.min(ot+1,D.length-1),{scrollHeight:le,start:Ee,end:ot,offset:Be}},[P,I,_,D,xe,o]),Ke=We.scrollHeight,Ae=We.start,ke=We.end,Ge=We.offset;de.current.start=Ae,de.current.end=ke;var _e=i.useState({width:0,height:o}),Ue=G(_e,2),Ve=Ue[0],st=Ue[1],je=function(le){st({width:le.width||le.offsetWidth,height:le.height||le.offsetHeight})},qe=i.useRef(),Xe=i.useRef(),ht=i.useMemo(function(){return Ya(Ve.width,h)},[Ve.width,h]),De=i.useMemo(function(){return Ya(Ve.height,Ke)},[Ve.height,Ke]),et=Ke-o,Ye=i.useRef(et);Ye.current=et;function xt(q){var le=q;return Number.isNaN(Ye.current)||(le=Math.min(le,Ye.current)),le=Math.max(le,0),le}var dt=_<=0,bt=_>=et,me=ni(dt,bt),ae=function(){return{x:x?-V:V,y:_}},Oe=i.useRef(ae()),he=na(function(){if(y){var q=ae();(Oe.current.x!==q.x||Oe.current.y!==q.y)&&(y(q),Oe.current=q)}});function Qe(q,le){var Ee=q;le?(La.flushSync(function(){A(Ee)}),he()):F(Ee)}function tt(q){var le=q.currentTarget.scrollTop;le!==_&&F(le),S==null||S(q),he()}var Fe=function(le){var Ee=le,Be=h-Ve.width;return Ee=Math.max(Ee,0),Ee=Math.min(Ee,Be),Ee},ge=na(function(q,le){le?(La.flushSync(function(){A(function(Ee){var Be=Ee+(x?-q:q);return Fe(Be)})}),he()):F(function(Ee){var Be=Ee+q;return Be})}),be=Ml(I,dt,bt,!!h,ge),ee=G(be,2),te=ee[0],ve=ee[1];Tl(I,O,function(q,le){return me(q,le)?!1:(te({preventDefault:function(){},deltaY:q}),!0)}),Dt(function(){function q(Ee){I&&Ee.preventDefault()}var le=O.current;return le.addEventListener("wheel",te),le.addEventListener("DOMMouseScroll",ve),le.addEventListener("MozMousePixelScroll",q),function(){le.removeEventListener("wheel",te),le.removeEventListener("DOMMouseScroll",ve),le.removeEventListener("MozMousePixelScroll",q)}},[I]),Dt(function(){h&&A(function(q){return Fe(q)})},[Ve.width,h]);var Te=function(){var le,Ee;(le=qe.current)===null||le===void 0||le.delayHidden(),(Ee=Xe.current)===null||Ee===void 0||Ee.delayHidden()},Ze=Ol(O,D,Me,s,L,function(){return pe(!0)},F,Te);i.useImperativeHandle(t,function(){return{getScrollInfo:ae,scrollTo:function(le){function Ee(Be){return Be&&Et(Be)==="object"&&("left"in Be||"top"in Be)}Ee(le)?(le.left!==void 0&&A(Fe(le.left)),Ze(le.top)):Ze(le)}}}),Dt(function(){if(w){var q=D.slice(Ae,ke+1);w(q,D)}},[Ae,ke,D]);var rt=zl(D,L,Me,s),ct=$==null?void 0:$({start:Ae,end:ke,virtual:P,offsetX:V,offsetY:Ge,rtl:x,getSize:rt}),ye=El(D,Ae,ke,h,Z,f,z),Se=null;o&&(Se=oe(W({},c?"height":"maxHeight",o),Ll),I&&(Se.overflowY="hidden",h&&(Se.overflowX="hidden"),U&&(Se.pointerEvents="none")));var Pe={};return x&&(Pe.dir="rtl"),i.createElement("div",Ne({style:oe(oe({},u),{},{position:"relative"}),className:T},Pe,E),i.createElement(vn,{onResize:je},i.createElement(b,{className:"".concat(a,"-holder"),style:Se,ref:O,onScroll:tt,onMouseEnter:Te},i.createElement(ti,{prefixCls:a,height:Ke,offsetX:V,offsetY:Ge,scrollWidth:h,onInnerResize:pe,ref:B,innerProps:R,rtl:x,extra:ct},ye))),P&&Ke>o&&i.createElement(oa,{ref:qe,prefixCls:a,scrollOffset:_,scrollRange:Ke,rtl:x,onScroll:Qe,onStartMove:ue,onStopMove:k,spinSize:De,containerSize:Ve.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb}),P&&h>Ve.width&&i.createElement(oa,{ref:Xe,prefixCls:a,scrollOffset:V,scrollRange:h,rtl:x,onScroll:Qe,onStartMove:ue,onStopMove:k,spinSize:ht,containerSize:Ve.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb}))}var ai=i.forwardRef(Hl);ai.displayName="List";function Al(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Vl=["disabled","title","children","style","className"];function Ja(e){return typeof e=="string"||typeof e=="number"}var Fl=function(t,n){var a=al(),r=a.prefixCls,o=a.id,s=a.open,l=a.multiple,c=a.mode,u=a.searchValue,m=a.toggleOpen,f=a.notFoundContent,v=a.onPopupScroll,d=i.useContext($a),p=d.maxCount,h=d.flattenOptions,g=d.onActiveValue,b=d.defaultActiveFirstOption,S=d.onSelect,y=d.menuItemSelectedIcon,w=d.rawValues,R=d.fieldNames,$=d.virtual,C=d.direction,E=d.listHeight,I=d.listItemHeight,P=d.optionRender,x="".concat(r,"-item"),T=go(function(){return h},[s,h],function(L,z){return z[0]&&L[1]!==z[1]}),D=i.useRef(null),O=i.useMemo(function(){return l&&typeof p<"u"&&(w==null?void 0:w.size)>=p},[l,p,w==null?void 0:w.size]),B=function(z){z.preventDefault()},X=function(z){var F;(F=D.current)===null||F===void 0||F.scrollTo(typeof z=="number"?{index:z}:z)},j=function(z){for(var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,de=T.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;re(z);var de={source:F?"keyboard":"mouse"},Y=T[z];if(!Y){g(null,-1,de);return}g(Y.value,z,de)};i.useEffect(function(){V(b!==!1?j(0):-1)},[T.length,u]);var A=i.useCallback(function(L){return w.has(L)&&c!=="combobox"},[c,yt(w).toString(),w.size]);i.useEffect(function(){var L=setTimeout(function(){if(!l&&s&&w.size===1){var F=Array.from(w)[0],de=T.findIndex(function(Y){var M=Y.data;return M.value===F});de!==-1&&(V(de),X(de))}});if(s){var z;(z=D.current)===null||z===void 0||z.scrollTo(void 0)}return function(){return clearTimeout(L)}},[s,u]);var K=function(z){z!==void 0&&S(z,{selected:!w.has(z)}),l||m(!1)};if(i.useImperativeHandle(n,function(){return{onKeyDown:function(z){var F=z.which,de=z.ctrlKey;switch(F){case ne.N:case ne.P:case ne.UP:case ne.DOWN:{var Y=0;if(F===ne.UP?Y=-1:F===ne.DOWN?Y=1:Al()&&de&&(F===ne.N?Y=1:F===ne.P&&(Y=-1)),Y!==0){var M=j(se+Y,Y);X(M),V(M,!0)}break}case ne.ENTER:{var ce,Ce=T[se];Ce&&!(Ce!=null&&(ce=Ce.data)!==null&&ce!==void 0&&ce.disabled)&&!O?K(Ce.value):K(void 0),s&&z.preventDefault();break}case ne.ESC:m(!1),s&&z.stopPropagation()}},onKeyUp:function(){},scrollTo:function(z){X(z)}}}),T.length===0)return i.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(x,"-empty"),onMouseDown:B},f);var Q=Object.keys(R).map(function(L){return R[L]}),U=function(z){return z.label};function $e(L,z){var F=L.group;return{role:F?"presentation":"option",id:"".concat(o,"_list_").concat(z)}}var ue=function(z){var F=T[z];if(!F)return null;var de=F.data||{},Y=de.value,M=F.group,ce=cn(de,!0),Ce=U(F);return F?i.createElement("div",Ne({"aria-label":typeof Ce=="string"&&!M?Ce:null},ce,{key:z},$e(F,z),{"aria-selected":A(Y)}),Y):null},k={role:"listbox",id:"".concat(o,"_list")};return i.createElement(i.Fragment,null,$&&i.createElement("div",Ne({},k,{style:{height:0,width:0,overflow:"hidden"}}),ue(se-1),ue(se),ue(se+1)),i.createElement(ai,{itemKey:"key",ref:D,data:T,height:E,itemHeight:I,fullHeight:!1,onMouseDown:B,onScroll:v,virtual:$,direction:C,innerProps:$?null:k},function(L,z){var F,de=L.group,Y=L.groupOption,M=L.data,ce=L.label,Ce=L.value,fe=M.key;if(de){var J,Z=(J=M.title)!==null&&J!==void 0?J:Ja(ce)?ce.toString():void 0;return i.createElement("div",{className:H(x,"".concat(x,"-group")),title:Z},ce!==void 0?ce:fe)}var pe=M.disabled,Me=M.title;M.children;var xe=M.style,We=M.className,Ke=Ct(M,Vl),Ae=un(Ke,Q),ke=A(Ce),Ge=pe||!ke&&O,_e="".concat(x,"-option"),Ue=H(x,_e,We,(F={},W(F,"".concat(_e,"-grouped"),Y),W(F,"".concat(_e,"-active"),se===z&&!Ge),W(F,"".concat(_e,"-disabled"),Ge),W(F,"".concat(_e,"-selected"),ke),F)),Ve=U(L),st=!y||typeof y=="function"||ke,je=typeof Ve=="number"?Ve:Ve||Ce,qe=Ja(je)?je.toString():void 0;return Me!==void 0&&(qe=Me),i.createElement("div",Ne({},cn(Ae),$?{}:$e(L,z),{"aria-selected":ke,className:Ue,title:qe,onMouseMove:function(){se===z||Ge||V(z)},onClick:function(){Ge||K(Ce)},style:xe}),i.createElement("div",{className:"".concat(_e,"-content")},typeof P=="function"?P(L,{index:z}):je),i.isValidElement(y)||ke,st&&i.createElement(Dn,{className:"".concat(x,"-option-state"),customizeIcon:y,customizeIconProps:{value:Ce,disabled:Ge,isSelected:ke}},ke?"✓":null))}))},ri=i.forwardRef(Fl);ri.displayName="OptionList";const Wl=function(e,t){var n=i.useRef({values:new Map,options:new Map}),a=i.useMemo(function(){var o=n.current,s=o.values,l=o.options,c=e.map(function(f){if(f.label===void 0){var v;return oe(oe({},f),{},{label:(v=s.get(f.value))===null||v===void 0?void 0:v.label})}return f}),u=new Map,m=new Map;return c.forEach(function(f){u.set(f.value,f),m.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=m,c},[e,t]),r=i.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[a,r]};function kn(e,t){return ya(e).join("").toUpperCase().includes(t)}const kl=function(e,t,n,a,r){return i.useMemo(function(){if(!n||a===!1)return e;var o=t.options,s=t.label,l=t.value,c=[],u=typeof a=="function",m=n.toUpperCase(),f=u?a:function(d,p){return r?kn(p[r],m):p[o]?kn(p[s!=="children"?s:"label"],m):kn(p[l],m)},v=u?function(d){return ia(d)}:function(d){return d};return e.forEach(function(d){if(d[o]){var p=f(n,v(d));if(p)c.push(d);else{var h=d[o].filter(function(g){return f(n,v(g))});h.length&&c.push(oe(oe({},d),{},W({},o,h)))}return}f(n,v(d))&&c.push(d)}),c},[e,a,r,n,t])};var Qa=0,Gl=Tr();function Kl(){var e;return Gl?(e=Qa,Qa+=1):e="TEST_OR_SSR",e}function Ul(e){var t=i.useState(),n=G(t,2),a=n[0],r=n[1];return i.useEffect(function(){r("rc_select_".concat(Kl()))},[]),e||a}var ql=["children","value"],Xl=["children"];function Yl(e){var t=e,n=t.key,a=t.props,r=a.children,o=a.value,s=Ct(a,ql);return oe({key:n,value:o!==void 0?o:n,children:r},s)}function xa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return In(e).map(function(n,a){if(!i.isValidElement(n)||!n.type)return null;var r=n,o=r.type.isSelectOptGroup,s=r.key,l=r.props,c=l.children,u=Ct(l,Xl);return t||!o?Yl(n):oe(oe({key:"__RC_SELECT_GRP__".concat(s===null?a:s,"__"),label:s},u),{},{options:xa(c)})}).filter(function(n){return n})}var Jl=function(t,n,a,r,o){return i.useMemo(function(){var s=t,l=!t;l&&(s=xa(n));var c=new Map,u=new Map,m=function(d,p,h){h&&typeof h=="string"&&d.set(p[h],p)},f=function v(d){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h1&&arguments[1]!==void 0?arguments[1]:!1,s=0;s2&&arguments[2]!==void 0?arguments[2]:{},te=ee.source,ve=te===void 0?"keyboard":te;dt(be),s&&a==="combobox"&&ge!==null&&ve==="keyboard"&&De(String(ge))},[s,a]),ae=function(be,ee,te){var ve=function(){var Ee,Be=We(be);return[_?{label:Be==null?void 0:Be[U.label],value:be,key:(Ee=Be==null?void 0:Be.key)!==null&&Ee!==void 0?Ee:be}:be,ia(Be)]};if(ee&&d){var Te=ve(),Ze=G(Te,2),rt=Ze[0],ct=Ze[1];d(rt,ct)}else if(!ee&&p&&te!=="clear"){var ye=ve(),Se=G(ye,2),Pe=Se[0],q=Se[1];p(Pe,q)}},Oe=Za(function(ge,be){var ee,te=A?be.selected:!0;te?ee=A?[].concat(yt(xe),[ge]):[ge]:ee=xe.filter(function(ve){return ve.value!==ge}),je(ee),ae(ge,te),a==="combobox"?De(""):(!On||v)&&(L(""),De(""))}),he=function(be,ee){je(be);var te=ee.type,ve=ee.values;(te==="remove"||te==="clear")&&ve.forEach(function(Te){ae(Te.value,!1,te)})},Qe=function(be,ee){if(L(be),De(null),ee.source==="submit"){var te=(be||"").trim();if(te){var ve=Array.from(new Set([].concat(yt(Ae),[te])));je(ve),ae(te,!0),L("")}return}ee.source!=="blur"&&(a==="combobox"&&je(be),m==null||m(be))},tt=function(be){var ee=be;a!=="tags"&&(ee=be.map(function(ve){var Te=de.get(ve);return Te==null?void 0:Te.value}).filter(function(ve){return ve!==void 0}));var te=Array.from(new Set([].concat(yt(Ae),yt(ee))));je(te),te.forEach(function(ve){ae(ve,!0)})},Fe=i.useMemo(function(){var ge=P!==!1&&g!==!1;return oe(oe({},z),{},{flattenOptions:st,onActiveValue:me,defaultActiveFirstOption:bt,onSelect:Oe,menuItemSelectedIcon:I,rawValues:Ae,fieldNames:U,virtual:ge,direction:x,listHeight:D,listItemHeight:B,childrenAsData:K,maxCount:se,optionRender:$})},[se,z,st,me,bt,Oe,I,Ae,U,P,g,x,D,B,K,$]);return Ql(e),Zl(Y,U),i.createElement($a.Provider,{value:Fe},i.createElement(ei,Ne({},re,{id:V,prefixCls:o,ref:t,omitDomProps:ts,mode:a,displayValues:Ke,onDisplayValuesChange:he,direction:x,searchValue:k,onSearch:Qe,autoClearSearchValue:v,onSearchSplit:tt,dropdownMatchSelectWidth:g,OptionList:ri,emptyOptions:!st.length,activeValue:ht,activeDescendantId:"".concat(V,"_list_").concat(xt)})))});ii.displayName="Select";var Ea=ii;Ea.Option=wa;Ea.OptGroup=Ca;const oi=()=>{const[,e]=Rn(),n=new on(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};oi.displayName="EmptyImage";const as=oi,li=()=>{const[,e]=Rn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:a,colorBgContainer:r}=e,{borderColor:o,shadowColor:s,contentColor:l}=i.useMemo(()=>({borderColor:new on(t).onBackground(r).toHexShortString(),shadowColor:new on(n).onBackground(r).toHexShortString(),contentColor:new on(a).onBackground(r).toHexShortString()}),[t,n,a,r]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:o},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};li.displayName="SimpleImage";const rs=li,is=e=>{const{componentCls:t,margin:n,marginXS:a,marginXL:r,fontSize:o,lineHeight:s}=e;return{[t]:{marginInline:a,fontSize:o,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:a,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:a,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},os=Bt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:a}=e,r=wt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:a(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:a(n).mul(.875).equal()});return[is(r)]});var ls=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:a,image:r=si,description:o,children:s,imageStyle:l,style:c}=e,u=ls(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:m,direction:f,empty:v}=i.useContext(it),d=m("empty",a),[p,h,g]=os(d),[b]=kr("Empty"),S=typeof o<"u"?o:b==null?void 0:b.description,y=typeof S=="string"?S:"empty";let w=null;return typeof r=="string"?w=i.createElement("img",{alt:y,src:r}):w=r,p(i.createElement("div",Object.assign({className:H(h,g,d,v==null?void 0:v.className,{[`${d}-normal`]:r===ci,[`${d}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),c)},u),i.createElement("div",{className:`${d}-image`,style:l},w),S&&i.createElement("div",{className:`${d}-description`},S),s&&i.createElement("div",{className:`${d}-footer`},s)))};Tn.PRESENTED_IMAGE_DEFAULT=si;Tn.PRESENTED_IMAGE_SIMPLE=ci;Tn.displayName="Empty";const an=Tn,ss=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(it),a=n("empty");switch(t){case"Table":case"List":return Ie.createElement(an,{image:an.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ie.createElement(an,{image:an.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return Ie.createElement(an,null)}},cs=ss,us=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function ds(e,t){return e||us(t)}const er=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:a,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:a,boxSizing:"border-box"}},fs=e=>{const{antCls:t,componentCls:n}=e,a=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Pt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${r}${l}bottomLeft, + ${o}${l}bottomLeft + `]:{animationName:Vo},[` + ${r}${l}topLeft, + ${o}${l}topLeft, + ${r}${l}topRight, + ${o}${l}topRight + `]:{animationName:Fo},[`${s}${l}bottomLeft`]:{animationName:Wo},[` + ${s}${l}topLeft, + ${s}${l}topRight + `]:{animationName:ko},"&-hidden":{display:"none"},[`${a}`]:Object.assign(Object.assign({},er(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},sn),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${a}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${a}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${a}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${a}-option-selected:not(${a}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${a}-option-selected:not(${a}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${a}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},er(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},En(e,"slide-up"),En(e,"slide-down"),Va(e,"move-up"),Va(e,"move-down")]},tn=2,ms=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:a}=e;return e.calc(n).sub(t).div(2).sub(a).equal()},vs=(e,t)=>{const{componentCls:n,iconCls:a}=e,r=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,s=ms(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(tn).mul(2).equal(),paddingBlock:e.calc(s).sub(tn).equal(),borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${N(tn)} 0`,lineHeight:N(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:o,marginTop:tn,marginBottom:tn,lineHeight:N(e.calc(o).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(tn).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},va()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${a}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:N(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function Gn(e,t){const{componentCls:n}=e,a=t?`${n}-${t}`:"",r={[`${n}-multiple${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[vs(e,t),r]}const gs=e=>{const{componentCls:t}=e,n=wt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),a=wt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Gn(e),Gn(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Gn(a,"lg")]};function Kn(e,t){const{componentCls:n,inputPaddingHorizontalBase:a,borderRadius:r}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Pt(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:a,insetInlineEnd:a,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:N(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${N(a)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:N(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${N(a)}`,"&:after":{display:"none"}}}}}}}function ps(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Kn(e),Kn(wt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${N(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Kn(wt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const hs=e=>{const{fontSize:t,lineHeight:n,controlHeight:a,controlPaddingHorizontal:r,zIndexPopupBase:o,colorText:s,fontWeightStrong:l,controlItemBgActive:c,controlItemBgHover:u,colorBgContainer:m,colorFillSecondary:f,controlHeightLG:v,controlHeightSM:d,colorBgContainerDisabled:p,colorTextDisabled:h}=e;return{zIndexPopup:o+50,optionSelectedColor:s,optionSelectedFontWeight:l,optionSelectedBg:c,optionActiveBg:u,optionPadding:`${(a-t*n)/2}px ${r}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:m,clearBg:m,singleItemHeightLG:v,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:d,multipleItemHeightLG:a,multipleSelectorBgDisabled:p,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},ui=(e,t)=>{const{componentCls:n,antCls:a,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${N(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${a}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${N(r)} ${t.activeShadowColor}`,outline:0}}}},tr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ui(e,t))}),bs=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ui(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),tr(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),tr(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${N(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),di=(e,t)=>{const{componentCls:n,antCls:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${N(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${a}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},nr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},di(e,t))}),Ss=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},di(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),nr(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),nr(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${N(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),ys=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${N(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),$s=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},bs(e)),Ss(e)),ys(e))}),Cs=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ws=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},xs=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:a,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},Pt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Cs(e)),ws(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},sn),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},sn),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},va()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:a,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:a,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(a).add(e.fontSize).add(e.paddingXS).equal()}}}},Es=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},xs(e),ps(e),gs(e),fs(e),{[`${t}-rtl`]:{direction:"rtl"}},Gr(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Is=Bt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const a=wt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Es(a),$s(a)]},hs,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Ns={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const Os=Ns;var fi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:Os}))};fi.displayName="CheckOutlined";const Rs=i.forwardRef(fi);var Ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Ms=Ps;var mi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:Ms}))};mi.displayName="DownOutlined";const vi=i.forwardRef(mi);function Ds(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:a,removeIcon:r,loading:o,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:m,showArrow:f,componentName:v}=e;qt(v).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const d=n??i.createElement(po,null),p=S=>t===null&&!l&&!f?null:i.createElement(i.Fragment,null,u!==!1&&S,l&&m);let h=null;if(t!==void 0)h=p(t);else if(o)h=p(i.createElement(zr,{spin:!0}));else{const S=`${c}-suffix`;h=y=>{let{open:w,showSearch:R}=y;return p(w&&R?i.createElement(Eo,{className:S}):i.createElement(vi,{className:S}))}}let g=null;a!==void 0?g=a:s?g=i.createElement(Rs,null):g=null;let b=null;return r!==void 0?b=r:b=i.createElement(_r,null),{clearIcon:d,suffixIcon:h,itemIcon:g,removeIcon:b}}function Ts(e,t){return t!==void 0?t:e!==null}var _s=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:a,bordered:r,className:o,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:m=256,placement:f,listItemHeight:v,size:d,disabled:p,notFoundContent:h,status:g,builtinPlacements:b,dropdownMatchSelectWidth:S,popupMatchSelectWidth:y,direction:w,style:R,allowClear:$,variant:C,dropdownStyle:E,transitionName:I,tagRender:P,maxCount:x}=e,T=_s(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:D,getPrefixCls:O,renderEmpty:B,direction:X,virtual:j,popupMatchSelectWidth:_,popupOverflow:ie,select:se}=i.useContext(it),[,re]=Rn(),V=v??(re==null?void 0:re.controlHeight),A=O("select",a),K=O(),Q=w??X,{compactSize:U,compactItemClassnames:$e}=Kr(A,Q),[ue,k]=Hr(C,r),L=ga(A),[z,F,de]=Is(A,L),Y=i.useMemo(()=>{const{mode:De}=e;if(De!=="combobox")return De===gi?"combobox":De},[e.mode]),M=Y==="multiple"||Y==="tags",ce=Ts(e.suffixIcon,e.showArrow),Ce=(n=y??S)!==null&&n!==void 0?n:_,{status:fe,hasFeedback:J,isFormItemInput:Z,feedbackIcon:pe}=i.useContext(Ur),Me=Ar(fe,g);let xe;h!==void 0?xe=h:Y==="combobox"?xe=null:xe=(B==null?void 0:B("Select"))||i.createElement(cs,{componentName:"Select"});const{suffixIcon:We,itemIcon:Ke,removeIcon:Ae,clearIcon:ke}=Ds(Object.assign(Object.assign({},T),{multiple:M,hasFeedback:J,feedbackIcon:pe,showSuffixIcon:ce,prefixCls:A,componentName:"Select"})),Ge=$===!0?{clearIcon:ke}:$,_e=un(T,["suffixIcon","itemIcon"]),Ue=H(c||u,{[`${A}-dropdown-${Q}`]:Q==="rtl"},s,de,L,F),Ve=dn(De=>{var et;return(et=d??U)!==null&&et!==void 0?et:De}),st=i.useContext(pa),je=p??st,qe=H({[`${A}-lg`]:Ve==="large",[`${A}-sm`]:Ve==="small",[`${A}-rtl`]:Q==="rtl",[`${A}-${ue}`]:k,[`${A}-in-form-item`]:Z},ta(A,Me,J),$e,se==null?void 0:se.className,o,s,de,L,F),Xe=i.useMemo(()=>f!==void 0?f:Q==="rtl"?"bottomRight":"bottomLeft",[f,Q]);{const De=qt("Select");De.deprecated(!u,"dropdownClassName","popupClassName"),De.deprecated(S===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),De(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),De.deprecated(!("bordered"in e),"bordered","variant"),De(!(typeof x<"u"&&!M),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[ht]=jr("SelectLike",E==null?void 0:E.zIndex);return z(i.createElement(Ea,Object.assign({ref:t,virtual:j,showSearch:se==null?void 0:se.showSearch},_e,{style:Object.assign(Object.assign({},se==null?void 0:se.style),R),dropdownMatchSelectWidth:Ce,transitionName:Nn(K,"slide-up",I),builtinPlacements:ds(b,ie),listHeight:m,listItemHeight:V,mode:Y,prefixCls:A,placement:Xe,direction:Q,suffixIcon:We,menuItemSelectedIcon:Ke,removeIcon:Ae,allowClear:Ge,notFoundContent:xe,className:qe,getPopupContainer:l||D,dropdownClassName:Ue,disabled:je,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:ht}),maxCount:M?x:void 0,tagRender:M?P:void 0})))};pi.displayName="Select";const Xt=i.forwardRef(pi),zs=Go(Xt);Xt.SECRET_COMBOBOX_MODE_DO_NOT_USE=gi;Xt.Option=wa;Xt.OptGroup=Ca;Xt._InternalPanelDoNotUseOrYouWillBeFired=zs;Xt.displayName="Select";const _n=Xt;function js(){const[,e]=i.useReducer(t=>t+1,0);return e}function Bs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=i.useRef({}),n=js(),a=Io();return Dt(()=>{const r=a.subscribe(o=>{t.current=o,e&&n()});return()=>a.unsubscribe(r)},[]),t.current}const Ls=e=>{const{prefixCls:t,className:n,style:a,size:r,shape:o}=e,s=H({[`${t}-lg`]:r==="large",[`${t}-sm`]:r==="small"}),l=H({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=i.useMemo(()=>typeof r=="number"?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return i.createElement("span",{className:H(t,s,l,n),style:Object.assign(Object.assign({},c),a)})},zn=Ls,Hs=new ho("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),jn=e=>({height:e,lineHeight:N(e)}),ln=e=>Object.assign({width:e},jn(e)),As=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Hs,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Un=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},jn(e)),Vs=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:a,controlHeightLG:r,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ln(a)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ln(r)),[`${t}${t}-sm`]:Object.assign({},ln(o))}},Fs=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:a,controlHeightLG:r,controlHeightSM:o,gradientFromColor:s,calc:l}=e;return{[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},Un(t,l)),[`${a}-lg`]:Object.assign({},Un(r,l)),[`${a}-sm`]:Object.assign({},Un(o,l))}},ar=e=>Object.assign({width:e},jn(e)),Ws=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:a,borderRadiusSM:r,calc:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:a,borderRadius:r},ar(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},ar(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},qn=(e,t,n)=>{const{skeletonButtonCls:a}=e;return{[`${n}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${a}-round`]:{borderRadius:t}}},Xn=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},jn(e)),ks=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:a,controlHeightLG:r,controlHeightSM:o,gradientFromColor:s,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:l(a).mul(2).equal(),minWidth:l(a).mul(2).equal()},Xn(a,l))},qn(e,a,n)),{[`${n}-lg`]:Object.assign({},Xn(r,l))}),qn(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Xn(o,l))}),qn(e,o,`${n}-sm`))},Gs=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:a,skeletonParagraphCls:r,skeletonButtonCls:o,skeletonInputCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:m,gradientFromColor:f,padding:v,marginSM:d,borderRadius:p,titleHeight:h,blockRadius:g,paragraphLiHeight:b,controlHeightXS:S,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ln(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ln(u)),[`${n}-sm`]:Object.assign({},ln(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${a}`]:{width:"100%",height:h,background:f,borderRadius:g,[`+ ${r}`]:{marginBlockStart:m}},[`${r}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:S}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${a}, ${r} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[`${a}`]:{marginBlockStart:d,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ks(e)),Vs(e)),Fs(e)),Ws(e)),[`${t}${t}-block`]:{width:"100%",[`${o}`]:{width:"100%"},[`${s}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${a}, + ${r} > li, + ${n}, + ${o}, + ${s}, + ${l} + `]:Object.assign({},As(e))}}},Ks=e=>{const{colorFillContent:t,colorFill:n}=e,a=t,r=n;return{color:a,colorGradientEnd:r,gradientFromColor:a,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},fn=Bt("Skeleton",e=>{const{componentCls:t,calc:n}=e,a=wt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Gs(a)]},Ks,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Us=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,shape:o="circle",size:s="default"}=e,{getPrefixCls:l}=i.useContext(it),c=l("skeleton",t),[u,m,f]=fn(c),v=un(e,["prefixCls","className"]),d=H(c,`${c}-element`,{[`${c}-active`]:r},n,a,m,f);return u(i.createElement("div",{className:d},i.createElement(zn,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:s},v))))},qs=Us,Xs=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,block:o=!1,size:s="default"}=e,{getPrefixCls:l}=i.useContext(it),c=l("skeleton",t),[u,m,f]=fn(c),v=un(e,["prefixCls"]),d=H(c,`${c}-element`,{[`${c}-active`]:r,[`${c}-block`]:o},n,a,m,f);return u(i.createElement("div",{className:d},i.createElement(zn,Object.assign({prefixCls:`${c}-button`,size:s},v))))},Ys=Xs,Js="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Qs=e=>{const{prefixCls:t,className:n,rootClassName:a,style:r,active:o}=e,{getPrefixCls:s}=i.useContext(it),l=s("skeleton",t),[c,u,m]=fn(l),f=H(l,`${l}-element`,{[`${l}-active`]:o},n,a,u,m);return c(i.createElement("div",{className:f},i.createElement("div",{className:H(`${l}-image`,n),style:r},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},i.createElement("path",{d:Js,className:`${l}-image-path`})))))},Zs=Qs,ec=e=>{const{prefixCls:t,className:n,rootClassName:a,active:r,block:o,size:s="default"}=e,{getPrefixCls:l}=i.useContext(it),c=l("skeleton",t),[u,m,f]=fn(c),v=un(e,["prefixCls"]),d=H(c,`${c}-element`,{[`${c}-active`]:r,[`${c}-block`]:o},n,a,m,f);return u(i.createElement("div",{className:d},i.createElement(zn,Object.assign({prefixCls:`${c}-input`,size:s},v))))},tc=ec;var nc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const ac=nc;var hi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:ac}))};hi.displayName="DotChartOutlined";const rc=i.forwardRef(hi),ic=e=>{const{prefixCls:t,className:n,rootClassName:a,style:r,active:o,children:s}=e,{getPrefixCls:l}=i.useContext(it),c=l("skeleton",t),[u,m,f]=fn(c),v=H(c,`${c}-element`,{[`${c}-active`]:o},m,n,a,f),d=s??i.createElement(rc,null);return u(i.createElement("div",{className:v},i.createElement("div",{className:H(`${c}-image`,n),style:r},d)))},oc=ic,lc=e=>{const t=l=>{const{width:c,rows:u=2}=e;if(Array.isArray(c))return c[l];if(u-1===l)return c},{prefixCls:n,className:a,style:r,rows:o}=e,s=yt(Array(o)).map((l,c)=>i.createElement("li",{key:c,style:{width:t(c)}}));return i.createElement("ul",{className:H(n,a),style:r},s)},sc=lc,cc=e=>{let{prefixCls:t,className:n,width:a,style:r}=e;return i.createElement("h3",{className:H(t,n),style:Object.assign({width:a},r)})},uc=cc;function Yn(e){return e&&typeof e=="object"?e:{}}function dc(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function fc(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function mc(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Yt=e=>{const{prefixCls:t,loading:n,className:a,rootClassName:r,style:o,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:m,round:f}=e,{getPrefixCls:v,direction:d,skeleton:p}=i.useContext(it),h=v("skeleton",t),[g,b,S]=fn(h);if(n||!("loading"in e)){const y=!!l,w=!!c,R=!!u;let $;if(y){const I=Object.assign(Object.assign({prefixCls:`${h}-avatar`},dc(w,R)),Yn(l));$=i.createElement("div",{className:`${h}-header`},i.createElement(zn,Object.assign({},I)))}let C;if(w||R){let I;if(w){const x=Object.assign(Object.assign({prefixCls:`${h}-title`},fc(y,R)),Yn(c));I=i.createElement(uc,Object.assign({},x))}let P;if(R){const x=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},mc(y,w)),Yn(u));P=i.createElement(sc,Object.assign({},x))}C=i.createElement("div",{className:`${h}-content`},I,P)}const E=H(h,{[`${h}-with-avatar`]:y,[`${h}-active`]:m,[`${h}-rtl`]:d==="rtl",[`${h}-round`]:f},p==null?void 0:p.className,a,r,b,S);return g(i.createElement("div",{className:E,style:Object.assign(Object.assign({},p==null?void 0:p.style),o)},$,C))}return typeof s<"u"?s:null};Yt.Button=Ys;Yt.Avatar=qs;Yt.Input=tc;Yt.Image=Zs;Yt.Node=oc;Yt.displayName="Skeleton";const vc=Yt;var gc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const pc=gc;var bi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:pc}))};bi.displayName="PlusOutlined";const Si=i.forwardRef(bi),Bn=i.createContext(null);var hc=function(t){var n=t.activeTabOffset,a=t.horizontal,r=t.rtl,o=t.indicator,s=o===void 0?{}:o,l=s.size,c=s.align,u=c===void 0?"center":c,m=i.useState(),f=G(m,2),v=f[0],d=f[1],p=i.useRef(),h=Ie.useCallback(function(b){return typeof l=="function"?l(b):typeof l=="number"?l:b},[l]);function g(){pt.cancel(p.current)}return i.useEffect(function(){var b={};if(n)if(a){b.width=h(n.width);var S=r?"right":"left";u==="start"&&(b[S]=n[S]),u==="center"&&(b[S]=n[S]+n.width/2,b.transform=r?"translateX(50%)":"translateX(-50%)"),u==="end"&&(b[S]=n[S]+n.width,b.transform="translateX(-100%)")}else b.height=h(n.height),u==="start"&&(b.top=n.top),u==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),u==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return g(),p.current=pt(function(){d(b)}),g},[n,a,r,u,h]),{style:v}},rr={width:0,height:0,left:0,top:0};function bc(e,t,n){return i.useMemo(function(){for(var a,r=new Map,o=t.get((a=e[0])===null||a===void 0?void 0:a.key)||rr,s=o.left+o.width,l=0;lO?(T=P,$.current="x"):(T=x,$.current="y"),t(-T,-T)&&I.preventDefault()}var E=i.useRef(null);E.current={onTouchStart:y,onTouchMove:w,onTouchEnd:R,onWheel:C},i.useEffect(function(){function I(D){E.current.onTouchStart(D)}function P(D){E.current.onTouchMove(D)}function x(D){E.current.onTouchEnd(D)}function T(D){E.current.onWheel(D)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",x,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",T),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",x)}},[])}function yi(e){var t=i.useState(0),n=G(t,2),a=n[0],r=n[1],o=i.useRef(0),s=i.useRef();return s.current=e,yn(function(){var l;(l=s.current)===null||l===void 0||l.call(s)},[a]),function(){o.current===a&&(o.current+=1,r(o.current))}}function $c(e){var t=i.useRef([]),n=i.useState({}),a=G(n,2),r=a[1],o=i.useRef(typeof e=="function"?e():e),s=yi(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,r({})});function l(c){t.current.push(c),s()}return[o.current,l]}var sr={width:0,height:0,left:0,top:0,right:0};function Cc(e,t,n,a,r,o,s){var l=s.tabs,c=s.tabPosition,u=s.rtl,m,f,v;return["top","bottom"].includes(c)?(m="width",f=u?"right":"left",v=Math.abs(n)):(m="height",f="top",v=-n),i.useMemo(function(){if(!l.length)return[0,0];for(var d=l.length,p=d,h=0;hv+t){p=h-1;break}}for(var b=0,S=d-1;S>=0;S-=1){var y=e.get(l[S].key)||sr;if(y[f]=p?[0,0]:[b,p]},[e,t,a,r,o,v,c,l.map(function(d){return d.key}).join("_"),u])}function cr(e){var t;return e instanceof Map?(t={},e.forEach(function(n,a){t[a]=n})):t=e,JSON.stringify(t)}var wc="TABS_DQ";function $i(e){return String(e).replace(/"/g,wc)}function Ci(e,t,n,a){return!(!n||a||e===!1||e===void 0&&(t===!1||t===null))}var wi=i.forwardRef(function(e,t){var n=e.prefixCls,a=e.editable,r=e.locale,o=e.style;return!a||a.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(r==null?void 0:r.addAriaLabel)||"Add tab",onClick:function(l){a.onEdit("add",{event:l})}},a.addIcon||"+")}),la=i.forwardRef(function(e,t){var n=e.position,a=e.prefixCls,r=e.extra;if(!r)return null;var o,s={};return Et(r)==="object"&&!i.isValidElement(r)?s=r:s.right=r,n==="right"&&(o=s.right),n==="left"&&(o=s.left),o?i.createElement("div",{className:"".concat(a,"-extra-content"),ref:t},o):null});la.displayName="ExtraContent";var xc=i.forwardRef(function(e,t){var n=e.prefixCls,a=e.id,r=e.tabs,o=e.locale,s=e.mobile,l=e.moreIcon,c=l===void 0?"More":l,u=e.moreTransitionName,m=e.style,f=e.className,v=e.editable,d=e.tabBarGutter,p=e.rtl,h=e.removeAriaLabel,g=e.onTabClick,b=e.getPopupContainer,S=e.popupClassName,y=i.useState(!1),w=G(y,2),R=w[0],$=w[1],C=i.useState(null),E=G(C,2),I=E[0],P=E[1],x="".concat(a,"-more-popup"),T="".concat(n,"-dropdown"),D=I!==null?"".concat(x,"-").concat(I):null,O=o==null?void 0:o.dropdownAriaLabel;function B(V,A){V.preventDefault(),V.stopPropagation(),v.onEdit("remove",{key:A,event:V})}var X=i.createElement(Ko,{onClick:function(A){var K=A.key,Q=A.domEvent;g(K,Q),$(!1)},prefixCls:"".concat(T,"-menu"),id:x,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[I],"aria-label":O!==void 0?O:"expanded dropdown"},r.map(function(V){var A=V.closable,K=V.disabled,Q=V.closeIcon,U=V.key,$e=V.label,ue=Ci(A,Q,v,K);return i.createElement(Uo,{key:U,id:"".concat(x,"-").concat(U),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(U),disabled:K},i.createElement("span",null,$e),ue&&i.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(L){L.stopPropagation(),B(L,U)}},Q||v.removeIcon||"×"))}));function j(V){for(var A=r.filter(function(ue){return!ue.disabled}),K=A.findIndex(function(ue){return ue.key===I})||0,Q=A.length,U=0;USe?"left":"right"})}),D=G(T,2),O=D[0],B=D[1],X=ir(0,function(ye,Se){!x&&h&&h({direction:ye>Se?"top":"bottom"})}),j=G(X,2),_=j[0],ie=j[1],se=i.useState([0,0]),re=G(se,2),V=re[0],A=re[1],K=i.useState([0,0]),Q=G(K,2),U=Q[0],$e=Q[1],ue=i.useState([0,0]),k=G(ue,2),L=k[0],z=k[1],F=i.useState([0,0]),de=G(F,2),Y=de[0],M=de[1],ce=$c(new Map),Ce=G(ce,2),fe=Ce[0],J=Ce[1],Z=bc(y,fe,U[0]),pe=Sn(V,x),Me=Sn(U,x),xe=Sn(L,x),We=Sn(Y,x),Ke=pe_e?_e:ye}var Ve=i.useRef(null),st=i.useState(),je=G(st,2),qe=je[0],Xe=je[1];function ht(){Xe(Date.now())}function De(){Ve.current&&clearTimeout(Ve.current)}yc(C,function(ye,Se){function Pe(q,le){q(function(Ee){var Be=Ue(Ee+le);return Be})}return Ke?(x?Pe(B,ye):Pe(ie,Se),De(),ht(),!0):!1}),i.useEffect(function(){return De(),qe&&(Ve.current=setTimeout(function(){Xe(0)},100)),De},[qe]);var et=Cc(Z,Ae,x?O:_,Me,xe,We,oe(oe({},e),{},{tabs:y})),Ye=G(et,2),xt=Ye[0],dt=Ye[1],bt=na(function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,Se=Z.get(ye)||{width:0,height:0,left:0,right:0,top:0};if(x){var Pe=O;l?Se.rightO+Ae&&(Pe=Se.right+Se.width-Ae):Se.left<-O?Pe=-Se.left:Se.left+Se.width>-O+Ae&&(Pe=-(Se.left+Se.width-Ae)),ie(0),B(Ue(Pe))}else{var q=_;Se.top<-_?q=-Se.top:Se.top+Se.height>-_+Ae&&(q=-(Se.top+Se.height-Ae)),B(0),ie(Ue(q))}}),me={};f==="top"||f==="bottom"?me[l?"marginRight":"marginLeft"]=v:me.marginTop=v;var ae=y.map(function(ye,Se){var Pe=ye.key;return i.createElement(Ic,{id:r,prefixCls:S,key:Pe,tab:ye,style:Se===0?void 0:me,closable:ye.closable,editable:u,active:Pe===s,renderWrapper:d,removeAriaLabel:m==null?void 0:m.removeAriaLabel,onClick:function(le){p(Pe,le)},onFocus:function(){bt(Pe),ht(),C.current&&(l||(C.current.scrollLeft=0),C.current.scrollTop=0)}})}),Oe=function(){return J(function(){var Se,Pe=new Map,q=(Se=E.current)===null||Se===void 0?void 0:Se.getBoundingClientRect();return y.forEach(function(le){var Ee,Be=le.key,ot=(Ee=E.current)===null||Ee===void 0?void 0:Ee.querySelector('[data-node-key="'.concat($i(Be),'"]'));if(ot){var _t=Nc(ot,q),ft=G(_t,4),mt=ft[0],Lt=ft[1],It=ft[2],Nt=ft[3];Pe.set(Be,{width:mt,height:Lt,left:It,top:Nt})}}),Pe})};i.useEffect(function(){Oe()},[y.map(function(ye){return ye.key}).join("_")]);var he=yi(function(){var ye=nn(w),Se=nn(R),Pe=nn($);A([ye[0]-Se[0]-Pe[0],ye[1]-Se[1]-Pe[1]]);var q=nn(P);z(q);var le=nn(I);M(le);var Ee=nn(E);$e([Ee[0]-q[0],Ee[1]-q[1]]),Oe()}),Qe=y.slice(0,xt),tt=y.slice(dt+1),Fe=[].concat(yt(Qe),yt(tt)),ge=Z.get(s),be=hc({activeTabOffset:ge,horizontal:x,indicator:g,rtl:l}),ee=be.style;i.useEffect(function(){bt()},[s,Ge,_e,cr(ge),cr(Z),x]),i.useEffect(function(){he()},[l]);var te=!!Fe.length,ve="".concat(S,"-nav-wrap"),Te,Ze,rt,ct;return x?l?(Ze=O>0,Te=O!==_e):(Te=O<0,Ze=O!==Ge):(rt=_<0,ct=_!==Ge),i.createElement(vn,{onResize:he},i.createElement("div",{ref:da(t,w),role:"tablist",className:H("".concat(S,"-nav"),n),style:a,onKeyDown:function(){ht()}},i.createElement(la,{ref:R,position:"left",extra:c,prefixCls:S}),i.createElement(vn,{onResize:he},i.createElement("div",{className:H(ve,W(W(W(W({},"".concat(ve,"-ping-left"),Te),"".concat(ve,"-ping-right"),Ze),"".concat(ve,"-ping-top"),rt),"".concat(ve,"-ping-bottom"),ct)),ref:C},i.createElement(vn,{onResize:he},i.createElement("div",{ref:E,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat(O,"px, ").concat(_,"px)"),transition:qe?"none":void 0}},ae,i.createElement(wi,{ref:P,prefixCls:S,locale:m,editable:u,style:oe(oe({},ae.length===0?void 0:me),{},{visibility:te?"hidden":null})}),i.createElement("div",{className:H("".concat(S,"-ink-bar"),W({},"".concat(S,"-ink-bar-animated"),o.inkBar)),style:ee}))))),i.createElement(Ec,Ne({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:I,prefixCls:S,tabs:Fe,className:!te&&ke,tabMoving:!!qe})),i.createElement(la,{ref:$,position:"right",extra:c,prefixCls:S})))}),Ia=i.forwardRef(function(e,t){var n=e.prefixCls,a=e.className,r=e.style,o=e.id,s=e.active,l=e.tabKey,c=e.children;return i.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!s,style:r,className:H(n,s&&"".concat(n,"-active"),a),ref:t},c)});Ia.displayName="TabPane";var Oc=["renderTabBar"],Rc=["label","key"],xi=function(t){var n=t.renderTabBar,a=Ct(t,Oc),r=i.useContext(Bn),o=r.tabs;if(n){var s=oe(oe({},a),{},{panes:o.map(function(l){var c=l.label,u=l.key,m=Ct(l,Rc);return i.createElement(Ia,Ne({tab:c,key:u,tabKey:u},m))})});return n(s,ur)}return i.createElement(ur,a)};xi.displayName="TabNavListWrapper";var Pc=["key","forceRender","style","className","destroyInactiveTabPane"],Mc=function(t){var n=t.id,a=t.activeKey,r=t.animated,o=t.tabPosition,s=t.destroyInactiveTabPane,l=i.useContext(Bn),c=l.prefixCls,u=l.tabs,m=r.tabPane,f="".concat(c,"-tabpane");return i.createElement("div",{className:H("".concat(c,"-content-holder"))},i.createElement("div",{className:H("".concat(c,"-content"),"".concat(c,"-content-").concat(o),W({},"".concat(c,"-content-animated"),m))},u.map(function(v){var d=v.key,p=v.forceRender,h=v.style,g=v.className,b=v.destroyInactiveTabPane,S=Ct(v,Pc),y=d===a;return i.createElement(ea,Ne({key:d,visible:y,forceRender:p,removeOnLeave:!!(s||b),leavedClassName:"".concat(f,"-hidden")},r.tabPaneMotion),function(w,R){var $=w.style,C=w.className;return i.createElement(Ia,Ne({},S,{prefixCls:f,id:n,tabKey:d,animated:m,active:y,style:oe(oe({},h),$),className:H(g,C),ref:R}))})})))};function Dc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=oe({inkBar:!0},Et(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(at(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var Tc=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],dr=0,Ei=i.forwardRef(function(e,t){var n=e.id,a=e.prefixCls,r=a===void 0?"rc-tabs":a,o=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,m=e.editable,f=e.animated,v=e.tabPosition,d=v===void 0?"top":v,p=e.tabBarGutter,h=e.tabBarStyle,g=e.tabBarExtraContent,b=e.locale,S=e.moreIcon,y=e.moreTransitionName,w=e.destroyInactiveTabPane,R=e.renderTabBar,$=e.onChange,C=e.onTabClick,E=e.onTabScroll,I=e.getPopupContainer,P=e.popupClassName,x=e.indicator,T=Ct(e,Tc),D=i.useMemo(function(){return(s||[]).filter(function(M){return M&&Et(M)==="object"&&"key"in M})},[s]),O=l==="rtl",B=Dc(f),X=i.useState(!1),j=G(X,2),_=j[0],ie=j[1];i.useEffect(function(){ie(ba())},[]);var se=jt(function(){var M;return(M=D[0])===null||M===void 0?void 0:M.key},{value:c,defaultValue:u}),re=G(se,2),V=re[0],A=re[1],K=i.useState(function(){return D.findIndex(function(M){return M.key===V})}),Q=G(K,2),U=Q[0],$e=Q[1];i.useEffect(function(){var M=D.findIndex(function(Ce){return Ce.key===V});if(M===-1){var ce;M=Math.max(0,Math.min(U,D.length-1)),A((ce=D[M])===null||ce===void 0?void 0:ce.key)}$e(M)},[D.map(function(M){return M.key}).join("_"),V,U]);var ue=jt(null,{value:n}),k=G(ue,2),L=k[0],z=k[1];i.useEffect(function(){n||(z("rc-tabs-".concat(dr)),dr+=1)},[]);function F(M,ce){C==null||C(M,ce);var Ce=M!==V;A(M),Ce&&($==null||$(M))}var de={id:L,activeKey:V,animated:B,tabPosition:d,rtl:O,mobile:_},Y=oe(oe({},de),{},{editable:m,locale:b,moreIcon:S,moreTransitionName:y,tabBarGutter:p,onTabClick:F,onTabScroll:E,extra:g,style:h,panes:null,getPopupContainer:I,popupClassName:P,indicator:x});return i.createElement(Bn.Provider,{value:{tabs:D,prefixCls:r}},i.createElement("div",Ne({ref:t,id:n,className:H(r,"".concat(r,"-").concat(d),W(W(W({},"".concat(r,"-mobile"),_),"".concat(r,"-editable"),m),"".concat(r,"-rtl"),O),o)},T),i.createElement(xi,Ne({},Y,{renderTabBar:R})),i.createElement(Mc,Ne({destroyInactiveTabPane:w},de,{animated:B}))))});Ei.displayName="Tabs";const _c={motionAppear:!1,motionEnter:!0,motionLeave:!0};function zc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},_c),{motionName:Nn(e,"switch")})),n}var jc=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);rt)}function Lc(e,t){if(qt("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=In(t).map(a=>{if(i.isValidElement(a)){const{key:r,props:o}=a,s=o||{},{tab:l}=s,c=jc(s,["tab"]);return Object.assign(Object.assign({key:String(r)},c),{label:l})}return null});return Bc(n)}const Hc=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[En(e,"slide-up"),En(e,"slide-down")]]},Ac=Hc,Vc=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:r,colorBorderSecondary:o,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:a,border:`${N(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:N(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:N(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${N(e.borderRadiusLG)} 0 0 ${N(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Fc=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Pt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${N(a)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},sn),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${N(e.paddingXXS)} ${N(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Wc=e=>{const{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:r,verticalItemPadding:o,verticalItemMargin:s,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${N(e.lineWidth)} ${e.lineType} ${a}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:N(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${N(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${N(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},kc=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,horizontalItemPaddingSM:r,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${N(e.borderRadius)} ${N(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${N(e.borderRadius)} ${N(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${N(e.borderRadius)} ${N(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${N(e.borderRadius)} 0 0 ${N(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}}}}}},Gc=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:r,tabsHorizontalItemMargin:o,horizontalItemPadding:s,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Pn(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:a},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},Kc=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:r,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:N(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:N(e.marginXS)},marginLeft:{_skip_check_:!0,value:N(o(e.marginXXS).mul(-1).equal())},[a]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Uc=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:r,itemHoverColor:o,itemActiveColor:s,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Pt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${N(e.paddingXS)}`,background:"transparent",border:`${N(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:s}},Pn(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Gc(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},qc=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Xc=Bt("Tabs",e=>{const t=wt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${N(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${N(e.horizontalItemGutter)}`});return[kc(t),Kc(t),Wc(t),Fc(t),Vc(t),Uc(t),Ac(t)]},qc),Ii=()=>null;Ii.displayName="DeprecatedTabPane";const Yc=Ii;var Jc=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var t,n,a,r,o,s,l;const{type:c,className:u,rootClassName:m,size:f,onEdit:v,hideAdd:d,centered:p,addIcon:h,moreIcon:g,popupClassName:b,children:S,items:y,animated:w,style:R,indicatorSize:$,indicator:C}=e,E=Jc(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=E,{direction:P,tabs:x,getPrefixCls:T,getPopupContainer:D}=i.useContext(it),O=T("tabs",I),B=ga(O),[X,j,_]=Xc(O,B);let ie;c==="editable-card"&&(ie={onEdit:(U,$e)=>{let{key:ue,event:k}=$e;v==null||v(U==="add"?k:ue,U)},removeIcon:i.createElement(_r,null),addIcon:(h??(x==null?void 0:x.addIcon))||i.createElement(Si,null),showAdd:d!==!0});const se=T();{const U=qt("Tabs");U(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),U(!($||x!=null&&x.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const re=dn(f),V=Lc(y,S),A=zc(O,w),K=Object.assign(Object.assign({},x==null?void 0:x.style),R),Q={align:(t=C==null?void 0:C.align)!==null&&t!==void 0?t:(n=x==null?void 0:x.indicator)===null||n===void 0?void 0:n.align,size:(s=(r=(a=C==null?void 0:C.size)!==null&&a!==void 0?a:$)!==null&&r!==void 0?r:(o=x==null?void 0:x.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:x==null?void 0:x.indicatorSize};return X(i.createElement(Ei,Object.assign({direction:P,getPopupContainer:D,moreTransitionName:`${se}-slide-up`},E,{items:V,className:H({[`${O}-${re}`]:re,[`${O}-card`]:["card","editable-card"].includes(c),[`${O}-editable-card`]:c==="editable-card",[`${O}-centered`]:p},x==null?void 0:x.className,u,m,j,_,B),popupClassName:H(b,j,_,B),style:K,editable:ie,moreIcon:(l=g??(x==null?void 0:x.moreIcon))!==null&&l!==void 0?l:i.createElement(Xo,null),prefixCls:O,animated:A,indicator:Q})))};Na.TabPane=Yc;Na.displayName="Tabs";const Qc=Na;var Zc=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var{prefixCls:t,className:n,hoverable:a=!0}=e,r=Zc(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=i.useContext(it),s=o("card",t),l=H(`${s}-grid`,n,{[`${s}-grid-hoverable`]:a});return i.createElement("div",Object.assign({},r,{className:l}))},Ni=eu,tu=e=>{const{antCls:t,componentCls:n,headerHeight:a,cardPaddingBase:r,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${N(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${N(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0`},Mn()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},sn),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${N(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},nu=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${N(r)} 0 0 0 ${n}, + 0 ${N(r)} 0 0 ${n}, + ${N(r)} ${N(r)} 0 0 ${n}, + ${N(r)} 0 0 0 ${n} inset, + 0 ${N(r)} 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},au=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:o,actionsBg:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:s,borderTop:`${N(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)}`},Mn()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:N(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:N(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${N(e.lineWidth)} ${e.lineType} ${o}`}}})},ru=e=>Object.assign(Object.assign({margin:`${N(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Mn()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},sn),"&-description":{color:e.colorTextDescription}}),iu=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${N(n)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${N(e.padding)} ${N(n)}`}}},ou=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},lu=e=>{const{antCls:t,componentCls:n,cardShadow:a,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:s,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},Pt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:s},[`${n}-head`]:tu(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)}`},Mn()),[`${n}-grid`]:nu(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:au(e),[`${n}-meta`]:ru(e)}),[`${n}-bordered`]:{border:`${N(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${n}-contain-grid`]:{borderRadius:`${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:r}}},[`${n}-type-inner`]:iu(e),[`${n}-loading`]:ou(e),[`${n}-rtl`]:{direction:"rtl"}}},su=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:a,headerFontSizeSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${N(n)}`,fontSize:r,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},cu=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),uu=Bt("Card",e=>{const t=wt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[lu(t),su(t)]},cu);var fr=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{actionClasses:t,actions:n=[],actionStyle:a}=e;return i.createElement("ul",{className:t,style:a},n.map((r,o)=>{const s=`action-${o}`;return i.createElement("li",{style:{width:`${100/n.length}%`},key:s},i.createElement("span",null,r))}))},fu=i.forwardRef((e,t)=>{const{prefixCls:n,className:a,rootClassName:r,style:o,extra:s,headStyle:l={},bodyStyle:c={},title:u,loading:m,bordered:f=!0,size:v,type:d,cover:p,actions:h,tabList:g,children:b,activeTabKey:S,defaultActiveTabKey:y,tabBarExtraContent:w,hoverable:R,tabProps:$={},classNames:C,styles:E}=e,I=fr(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:x,card:T}=i.useContext(it);{const fe=qt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"]].forEach(J=>{let[Z,pe]=J;fe.deprecated(!(Z in e),Z,pe)})}const D=fe=>{var J;(J=e.onTabChange)===null||J===void 0||J.call(e,fe)},O=fe=>{var J;return H((J=T==null?void 0:T.classNames)===null||J===void 0?void 0:J[fe],C==null?void 0:C[fe])},B=fe=>{var J;return Object.assign(Object.assign({},(J=T==null?void 0:T.styles)===null||J===void 0?void 0:J[fe]),E==null?void 0:E[fe])},X=i.useMemo(()=>{let fe=!1;return i.Children.forEach(b,J=>{J&&J.type&&J.type===Ni&&(fe=!0)}),fe},[b]),j=P("card",n),[_,ie,se]=uu(j),re=i.createElement(vc,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),V=S!==void 0,A=Object.assign(Object.assign({},$),{[V?"activeKey":"defaultActiveKey"]:V?S:y,tabBarExtraContent:w});let K;const Q=dn(v),U=!Q||Q==="default"?"large":Q,$e=g?i.createElement(Qc,Object.assign({size:U},A,{className:`${j}-head-tabs`,onChange:D,items:g.map(fe=>{var{tab:J}=fe,Z=fr(fe,["tab"]);return Object.assign({label:J},Z)})})):null;if(u||s||$e){const fe=H(`${j}-head`,O("header")),J=H(`${j}-head-title`,O("title")),Z=H(`${j}-extra`,O("extra")),pe=Object.assign(Object.assign({},l),B("header"));K=i.createElement("div",{className:fe,style:pe},i.createElement("div",{className:`${j}-head-wrapper`},u&&i.createElement("div",{className:J,style:B("title")},u),s&&i.createElement("div",{className:Z,style:B("extra")},s)),$e)}const ue=H(`${j}-cover`,O("cover")),k=p?i.createElement("div",{className:ue,style:B("cover")},p):null,L=H(`${j}-body`,O("body")),z=Object.assign(Object.assign({},c),B("body")),F=i.createElement("div",{className:L,style:z},m?re:b),de=H(`${j}-actions`,O("actions")),Y=h&&h.length?i.createElement(du,{actionClasses:de,actionStyle:B("actions"),actions:h}):null,M=un(I,["onTabChange"]),ce=H(j,T==null?void 0:T.className,{[`${j}-loading`]:m,[`${j}-bordered`]:f,[`${j}-hoverable`]:R,[`${j}-contain-grid`]:X,[`${j}-contain-tabs`]:g&&g.length,[`${j}-${Q}`]:Q,[`${j}-type-${d}`]:!!d,[`${j}-rtl`]:x==="rtl"},a,r,ie,se),Ce=Object.assign(Object.assign({},T==null?void 0:T.style),o);return _(i.createElement("div",Object.assign({ref:t},M,{className:ce,style:Ce}),K,k,F,Y))}),mu=fu;var vu=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,avatar:a,title:r,description:o}=e,s=vu(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=i.useContext(it),c=l("card",t),u=H(`${c}-meta`,n),m=a?i.createElement("div",{className:`${c}-meta-avatar`},a):null,f=r?i.createElement("div",{className:`${c}-meta-title`},r):null,v=o?i.createElement("div",{className:`${c}-meta-description`},o):null,d=f||v?i.createElement("div",{className:`${c}-meta-detail`},f,v):null;return i.createElement("div",Object.assign({},s,{className:u}),m,d)},pu=gu,Ln=mu;Ln.Grid=Ni;Ln.Meta=pu;Ln.displayName="Card";const hu=Ln;var bu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const Su=bu;var Oi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:Su}))};Oi.displayName="UpOutlined";const yu=i.forwardRef(Oi);function sa(){return typeof BigInt=="function"}function Ri(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ut(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var a=t||"0",r=a.split("."),o=r[0]||"0",s=r[1]||"0";o==="0"&&s==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:a,integerStr:o,decimalStr:s,fullStr:"".concat(l).concat(a)}}function Oa(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Kt(e){var t=String(e);if(Oa(e)){var n=Number(t.slice(t.indexOf("e-")+2)),a=t.match(/\.(\d+)/);return a!=null&&a[1]&&(n+=a[1].length),n}return t.includes(".")&&Ra(t)?t.length-t.indexOf(".")-1:0}function Hn(e){var t=String(e);if(Oa(e)){if(e>Number.MAX_SAFE_INTEGER)return String(sa()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ut("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Cu=function(){function e(t){if(ma(this,e),W(this,"origin",""),W(this,"number",void 0),W(this,"empty",void 0),Ri(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return fa(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var a=Number(n);if(Number.isNaN(a))return this;var r=this.number+a;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Hn(this.number):this.origin}}]),e}();function Rt(e){return sa()?new $u(e):new Cu(e)}function Cn(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var r=Ut(e),o=r.negativeStr,s=r.integerStr,l=r.decimalStr,c="".concat(t).concat(l),u="".concat(o).concat(s);if(n>=0){var m=Number(l[n]);if(m>=5&&!a){var f=Rt(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-m));return Cn(f.toString(),t,n,a)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function wu(e,t){var n=i.useRef(null);function a(){try{var o=e.selectionStart,s=e.selectionEnd,l=e.value,c=l.substring(0,o),u=l.substring(s);n.current={start:o,end:s,value:l,beforeTxt:c,afterTxt:u}}catch{}}function r(){if(e&&n.current&&t)try{var o=e.value,s=n.current,l=s.beforeTxt,c=s.afterTxt,u=s.start,m=o.length;if(o.endsWith(c))m=o.length-n.current.afterTxt.length;else if(o.startsWith(l))m=l.length;else{var f=l[u-1],v=o.indexOf(f,u-1);v!==-1&&(m=v+1)}e.setSelectionRange(m,m)}catch(d){at(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(d.message))}}return[a,r]}var xu=function(){var t=i.useState(!1),n=G(t,2),a=n[0],r=n[1];return Dt(function(){r(ba())},[]),a},Eu=200,Iu=600;function Nu(e){var t=e.prefixCls,n=e.upNode,a=e.downNode,r=e.upDisabled,o=e.downDisabled,s=e.onStep,l=i.useRef(),c=i.useRef([]),u=i.useRef();u.current=s;var m=function(){clearTimeout(l.current)},f=function(y,w){y.preventDefault(),m(),u.current(w);function R(){u.current(w),l.current=setTimeout(R,Eu)}l.current=setTimeout(R,Iu)};i.useEffect(function(){return function(){m(),c.current.forEach(function(S){return pt.cancel(S)})}},[]);var v=xu();if(v)return null;var d="".concat(t,"-handler"),p=H(d,"".concat(d,"-up"),W({},"".concat(d,"-up-disabled"),r)),h=H(d,"".concat(d,"-down"),W({},"".concat(d,"-down-disabled"),o)),g=function(){return c.current.push(pt(m))},b={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return i.createElement("div",{className:"".concat(d,"-wrap")},i.createElement("span",Ne({},b,{onMouseDown:function(y){f(y,!0)},"aria-label":"Increase Value","aria-disabled":r,className:p}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",Ne({},b,{onMouseDown:function(y){f(y,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:h}),a||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function mr(e){var t=typeof e=="number"?Hn(e):Ut(e).fullStr,n=t.includes(".");return n?Ut(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Ou=function(){var e=i.useRef(0),t=function(){pt.cancel(e.current)};return i.useEffect(function(){return t},[]),function(n){t(),e.current=pt(function(){n()})}};var Ru=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Pu=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],vr=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},gr=function(t){var n=Rt(t);return n.isInvalidate()?null:n},Mu=i.forwardRef(function(e,t){var n,a=e.prefixCls,r=a===void 0?"rc-input-number":a,o=e.className,s=e.style,l=e.min,c=e.max,u=e.step,m=u===void 0?1:u,f=e.defaultValue,v=e.value,d=e.disabled,p=e.readOnly,h=e.upHandler,g=e.downHandler,b=e.keyboard,S=e.changeOnWheel,y=S===void 0?!1:S,w=e.controls,R=w===void 0?!0:w;e.classNames;var $=e.stringMode,C=e.parser,E=e.formatter,I=e.precision,P=e.decimalSeparator,x=e.onChange,T=e.onInput,D=e.onPressEnter,O=e.onStep,B=e.changeOnBlur,X=B===void 0?!0:B,j=Ct(e,Ru),_="".concat(r,"-input"),ie=i.useRef(null),se=i.useState(!1),re=G(se,2),V=re[0],A=re[1],K=i.useRef(!1),Q=i.useRef(!1),U=i.useRef(!1),$e=i.useState(function(){return Rt(v??f)}),ue=G($e,2),k=ue[0],L=ue[1];function z(me){v===void 0&&L(me)}var F=i.useCallback(function(me,ae){if(!ae)return I>=0?I:Math.max(Kt(me),Kt(m))},[I,m]),de=i.useCallback(function(me){var ae=String(me);if(C)return C(ae);var Oe=ae;return P&&(Oe=Oe.replace(P,".")),Oe.replace(/[^\w.-]+/g,"")},[C,P]),Y=i.useRef(""),M=i.useCallback(function(me,ae){if(E)return E(me,{userTyping:ae,input:String(Y.current)});var Oe=typeof me=="number"?Hn(me):me;if(!ae){var he=F(Oe,ae);if(Ra(Oe)&&(P||he>=0)){var Qe=P||".";Oe=Cn(Oe,Qe,he)}}return Oe},[E,F,P]),ce=i.useState(function(){var me=f??v;return k.isInvalidate()&&["string","number"].includes(Et(me))?Number.isNaN(me)?"":me:M(k.toString(),!1)}),Ce=G(ce,2),fe=Ce[0],J=Ce[1];Y.current=fe;function Z(me,ae){J(M(me.isInvalidate()?me.toString(!1):me.toString(!ae),ae))}var pe=i.useMemo(function(){return gr(c)},[c,I]),Me=i.useMemo(function(){return gr(l)},[l,I]),xe=i.useMemo(function(){return!pe||!k||k.isInvalidate()?!1:pe.lessEquals(k)},[pe,k]),We=i.useMemo(function(){return!Me||!k||k.isInvalidate()?!1:k.lessEquals(Me)},[Me,k]),Ke=wu(ie.current,V),Ae=G(Ke,2),ke=Ae[0],Ge=Ae[1],_e=function(ae){return pe&&!ae.lessEquals(pe)?pe:Me&&!Me.lessEquals(ae)?Me:null},Ue=function(ae){return!_e(ae)},Ve=function(ae,Oe){var he=ae,Qe=Ue(he)||he.isEmpty();if(!he.isEmpty()&&!Oe&&(he=_e(he)||he,Qe=!0),!p&&!d&&Qe){var tt=he.toString(),Fe=F(tt,Oe);return Fe>=0&&(he=Rt(Cn(tt,".",Fe)),Ue(he)||(he=Rt(Cn(tt,".",Fe,!0)))),he.equals(k)||(z(he),x==null||x(he.isEmpty()?null:vr($,he)),v===void 0&&Z(he,Oe)),he}return k},st=Ou(),je=function me(ae){if(ke(),Y.current=ae,J(ae),!Q.current){var Oe=de(ae),he=Rt(Oe);he.isNaN()||Ve(he,!0)}T==null||T(ae),st(function(){var Qe=ae;C||(Qe=ae.replace(/。/g,".")),Qe!==ae&&me(Qe)})},qe=function(){Q.current=!0},Xe=function(){Q.current=!1,je(ie.current.value)},ht=function(ae){je(ae.target.value)},De=function(ae){var Oe;if(!(ae&&xe||!ae&&We)){K.current=!1;var he=Rt(U.current?mr(m):m);ae||(he=he.negate());var Qe=(k||Rt(0)).add(he.toString()),tt=Ve(Qe,!1);O==null||O(vr($,tt),{offset:U.current?mr(m):m,type:ae?"up":"down"}),(Oe=ie.current)===null||Oe===void 0||Oe.focus()}},et=function(ae){var Oe=Rt(de(fe)),he=Oe;Oe.isNaN()?he=Ve(k,ae):he=Ve(Oe,ae),v!==void 0?Z(k,!1):he.isNaN()||Z(he,!1)},Ye=function(){K.current=!0},xt=function(ae){var Oe=ae.key,he=ae.shiftKey;K.current=!0,U.current=he,Oe==="Enter"&&(Q.current||(K.current=!1),et(!1),D==null||D(ae)),b!==!1&&!Q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Oe)&&(De(Oe==="Up"||Oe==="ArrowUp"),ae.preventDefault())},dt=function(){K.current=!1,U.current=!1};i.useEffect(function(){if(y&&V){var me=function(he){De(he.deltaY<0),he.preventDefault()},ae=ie.current;if(ae)return ae.addEventListener("wheel",me,{passive:!1}),function(){return ae.removeEventListener("wheel",me)}}});var bt=function(){X&&et(!1),A(!1),K.current=!1};return yn(function(){k.isInvalidate()||Z(k,!1)},[I,E]),yn(function(){var me=Rt(v);L(me);var ae=Rt(de(fe));(!me.equals(ae)||!K.current||E)&&Z(me,K.current)},[v]),yn(function(){E&&Ge()},[fe]),i.createElement("div",{className:H(r,o,(n={},W(n,"".concat(r,"-focused"),V),W(n,"".concat(r,"-disabled"),d),W(n,"".concat(r,"-readonly"),p),W(n,"".concat(r,"-not-a-number"),k.isNaN()),W(n,"".concat(r,"-out-of-range"),!k.isInvalidate()&&!Ue(k)),n)),style:s,onFocus:function(){A(!0)},onBlur:bt,onKeyDown:xt,onKeyUp:dt,onCompositionStart:qe,onCompositionEnd:Xe,onBeforeInput:Ye},R&&i.createElement(Nu,{prefixCls:r,upNode:h,downNode:g,upDisabled:xe,downDisabled:We,onStep:De}),i.createElement("div",{className:"".concat(_,"-wrap")},i.createElement("input",Ne({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":k.isInvalidate()?null:k.toString(),step:m},j,{ref:ua(ie,t),className:_,value:fe,onChange:ht,disabled:d,readOnly:p}))))}),Pi=i.forwardRef(function(e,t){var n=e.disabled,a=e.style,r=e.prefixCls,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,m=e.className,f=e.classNames,v=Ct(e,Pu),d=i.useRef(null),p=function(g){d.current&&Oo(d.current,g)};return i.createElement(No,{className:m,triggerFocus:p,prefixCls:r,value:o,disabled:n,style:a,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},i.createElement(Mu,Ne({prefixCls:r,disabled:n,ref:ua(d,t),className:f==null?void 0:f.input},v)))});Pi.displayName="InputNumber";const Du=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},Vr(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new on(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},pr=(e,t)=>{let{componentCls:n,borderRadiusSM:a,borderRadiusLG:r}=e;const o=t==="lg"?r:a;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},Tu=e=>{const{componentCls:t,lineWidth:n,lineType:a,borderRadius:r,fontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:m,paddingBlockLG:f,paddingInlineLG:v,colorTextDescription:d,motionDurationMid:p,handleHoverColor:h,paddingInline:g,paddingBlock:b,handleBg:S,handleActiveBg:y,colorTextDisabled:w,borderRadiusSM:R,borderRadiusLG:$,controlWidth:C,handleOpacity:E,handleBorderColor:I,filledHandleBg:P,lineHeightLG:x,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pt(e)),ha(e)),{display:"inline-block",width:C,margin:0,padding:0,borderRadius:r}),Ro(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${N(n)} ${a} ${I}`}}})),Po(e,{[`${t}-handler-wrap`]:{background:P,[`${t}-handler-down`]:{borderBlockStart:`${N(n)} ${a} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),Mo(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:x,borderRadius:$,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${N(f)} ${N(v)}`}},"&-sm":{padding:0,borderRadius:R,[`input${t}-input`]:{height:T(l).sub(T(n).mul(2)).equal(),padding:`${N(m)} ${N(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Pt(e)),Do(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:R}}},To(e)),_o(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Pt(e)),{width:"100%",padding:`${N(b)} ${N(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),zo(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,opacity:E,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${N(n)} ${a} ${I}`,transition:`all ${p} linear`,"&:active":{background:y},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},va()),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},pr(e,"lg")),pr(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:w}})}]},_u=e=>{const{componentCls:t,paddingBlock:n,paddingInline:a,inputAffixPadding:r,controlWidth:o,borderRadiusLG:s,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:m,paddingBlockSM:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${N(n)} 0`}},ha(e)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:a,"&-lg":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${N(m)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${N(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:a,marginInlineStart:r}}})}},zu=Bt("InputNumber",e=>{const t=wt(e,Fr(e));return[Tu(t),_u(t),Gr(t)]},Du,{unitless:{handleOpacity:!0}});var ju=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{{const{deprecated:$e}=qt("InputNumber");$e(!("bordered"in e),"bordered","variant")}const{getPrefixCls:n,direction:a}=i.useContext(it),r=i.useRef(null);i.useImperativeHandle(t,()=>r.current);const{className:o,rootClassName:s,size:l,disabled:c,prefixCls:u,addonBefore:m,addonAfter:f,prefix:v,bordered:d,readOnly:p,status:h,controls:g,variant:b}=e,S=ju(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),y=n("input-number",u),w=ga(y),[R,$,C]=zu(y,w),{compactSize:E,compactItemClassnames:I}=Kr(y,a);let P=i.createElement(yu,{className:`${y}-handler-up-inner`}),x=i.createElement(vi,{className:`${y}-handler-down-inner`});const T=typeof g=="boolean"?g:void 0;typeof g=="object"&&(P=typeof g.upIcon>"u"?P:i.createElement("span",{className:`${y}-handler-up-inner`},g.upIcon),x=typeof g.downIcon>"u"?x:i.createElement("span",{className:`${y}-handler-down-inner`},g.downIcon));const{hasFeedback:D,status:O,isFormItemInput:B,feedbackIcon:X}=i.useContext(Ur),j=Ar(O,h),_=dn($e=>{var ue;return(ue=l??E)!==null&&ue!==void 0?ue:$e}),ie=i.useContext(pa),se=c??ie,[re,V]=Hr(b,d),A=D&&i.createElement(i.Fragment,null,X),K=H({[`${y}-lg`]:_==="large",[`${y}-sm`]:_==="small",[`${y}-rtl`]:a==="rtl",[`${y}-in-form-item`]:B},$),Q=`${y}-group`,U=i.createElement(Pi,Object.assign({ref:r,disabled:se,className:H(C,w,o,s,I),upHandler:P,downHandler:x,prefixCls:y,readOnly:p,controls:T,prefix:v,suffix:A,addonAfter:f&&i.createElement(aa,null,i.createElement(ra,{override:!0,status:!0},f)),addonBefore:m&&i.createElement(aa,null,i.createElement(ra,{override:!0,status:!0},m)),classNames:{input:K,variant:H({[`${y}-${re}`]:V},ta(y,j,D)),affixWrapper:H({[`${y}-affix-wrapper-sm`]:_==="small",[`${y}-affix-wrapper-lg`]:_==="large",[`${y}-affix-wrapper-rtl`]:a==="rtl"},$),wrapper:H({[`${Q}-rtl`]:a==="rtl"},$),groupWrapper:H({[`${y}-group-wrapper-sm`]:_==="small",[`${y}-group-wrapper-lg`]:_==="large",[`${y}-group-wrapper-rtl`]:a==="rtl",[`${y}-group-wrapper-${re}`]:V},ta(`${y}-group-wrapper`,j,D),$)}},S));return R(U)}),Pa=Mi,Bu=e=>i.createElement(bo,{theme:{components:{InputNumber:{handleVisible:!0}}}},i.createElement(Mi,Object.assign({},e)));Pa.displayName="InputNumber";Pa._InternalPanelDoNotUseOrYouWillBeFired=Bu;const hr=Pa;var br=i.createContext(null),Di=i.createContext({}),Ti=function(t){var n=t.prefixCls,a=t.className,r=t.style,o=t.children,s=t.containerRef,l=t.id,c=t.onMouseEnter,u=t.onMouseOver,m=t.onMouseLeave,f=t.onClick,v=t.onKeyDown,d=t.onKeyUp,p={onMouseEnter:c,onMouseOver:u,onMouseLeave:m,onClick:f,onKeyDown:v,onKeyUp:d},h=i.useContext(Di),g=h.panel,b=da(g,s);return i.createElement(i.Fragment,null,i.createElement("div",Ne({id:l,className:H("".concat(n,"-content"),a),style:oe({},r),"aria-modal":"true",role:"dialog",ref:b},p),o))};Ti.displayName="DrawerPanel";function Sr(e){return typeof e=="string"&&String(Number(e))===e?(at(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Lu(e){at(!("wrapperClassName"in e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),at(Tr()||!e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var yr={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Hu(e,t){var n,a,r,o=e.prefixCls,s=e.open,l=e.placement,c=e.inline,u=e.push,m=e.forceRender,f=e.autoFocus,v=e.keyboard,d=e.classNames,p=e.rootClassName,h=e.rootStyle,g=e.zIndex,b=e.className,S=e.id,y=e.style,w=e.motion,R=e.width,$=e.height,C=e.children,E=e.mask,I=e.maskClosable,P=e.maskMotion,x=e.maskClassName,T=e.maskStyle,D=e.afterOpenChange,O=e.onClose,B=e.onMouseEnter,X=e.onMouseOver,j=e.onMouseLeave,_=e.onClick,ie=e.onKeyDown,se=e.onKeyUp,re=e.styles,V=i.useRef(),A=i.useRef(),K=i.useRef();i.useImperativeHandle(t,function(){return V.current});var Q=function(pe){var Me=pe.keyCode,xe=pe.shiftKey;switch(Me){case ne.TAB:{if(Me===ne.TAB){if(!xe&&document.activeElement===K.current){var We;(We=A.current)===null||We===void 0||We.focus({preventScroll:!0})}else if(xe&&document.activeElement===A.current){var Ke;(Ke=K.current)===null||Ke===void 0||Ke.focus({preventScroll:!0})}}break}case ne.ESC:{O&&v&&(pe.stopPropagation(),O(pe));break}}};i.useEffect(function(){if(s&&f){var Z;(Z=V.current)===null||Z===void 0||Z.focus({preventScroll:!0})}},[s]);var U=i.useState(!1),$e=G(U,2),ue=$e[0],k=$e[1],L=i.useContext(br),z;u===!1?z={distance:0}:u===!0?z={}:z=u||{};var F=(n=(a=(r=z)===null||r===void 0?void 0:r.distance)!==null&&a!==void 0?a:L==null?void 0:L.pushDistance)!==null&&n!==void 0?n:180,de=i.useMemo(function(){return{pushDistance:F,push:function(){k(!0)},pull:function(){k(!1)}}},[F]);i.useEffect(function(){if(s){var Z;L==null||(Z=L.push)===null||Z===void 0||Z.call(L)}else{var pe;L==null||(pe=L.pull)===null||pe===void 0||pe.call(L)}},[s]),i.useEffect(function(){return function(){var Z;L==null||(Z=L.pull)===null||Z===void 0||Z.call(L)}},[]);var Y=E&&i.createElement(ea,Ne({key:"mask"},P,{visible:s}),function(Z,pe){var Me=Z.className,xe=Z.style;return i.createElement("div",{className:H("".concat(o,"-mask"),Me,d==null?void 0:d.mask,x),style:oe(oe(oe({},xe),T),re==null?void 0:re.mask),onClick:I&&s?O:void 0,ref:pe})}),M=typeof w=="function"?w(l):w,ce={};if(ue&&F)switch(l){case"top":ce.transform="translateY(".concat(F,"px)");break;case"bottom":ce.transform="translateY(".concat(-F,"px)");break;case"left":ce.transform="translateX(".concat(F,"px)");break;default:ce.transform="translateX(".concat(-F,"px)");break}l==="left"||l==="right"?ce.width=Sr(R):ce.height=Sr($);var Ce={onMouseEnter:B,onMouseOver:X,onMouseLeave:j,onClick:_,onKeyDown:ie,onKeyUp:se},fe=i.createElement(ea,Ne({key:"panel"},M,{visible:s,forceRender:m,onVisibleChanged:function(pe){D==null||D(pe)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(Z,pe){var Me=Z.className,xe=Z.style;return i.createElement("div",Ne({className:H("".concat(o,"-content-wrapper"),d==null?void 0:d.wrapper,Me),style:oe(oe(oe({},ce),xe),re==null?void 0:re.wrapper)},cn(e,{data:!0})),i.createElement(Ti,Ne({id:S,containerRef:pe,prefixCls:o,className:H(b,d==null?void 0:d.content),style:oe(oe({},y),re==null?void 0:re.content)},Ce),C))}),J=oe({},h);return g&&(J.zIndex=g),i.createElement(br.Provider,{value:de},i.createElement("div",{className:H(o,"".concat(o,"-").concat(l),p,W(W({},"".concat(o,"-open"),s),"".concat(o,"-inline"),c)),style:J,tabIndex:-1,ref:V,onKeyDown:Q},Y,i.createElement("div",{tabIndex:0,ref:A,style:yr,"aria-hidden":"true","data-sentinel":"start"}),fe,i.createElement("div",{tabIndex:0,ref:K,style:yr,"aria-hidden":"true","data-sentinel":"end"})))}var _i=i.forwardRef(Hu);_i.displayName="DrawerPopup";var zi=function(t){var n=t.open,a=n===void 0?!1:n,r=t.prefixCls,o=r===void 0?"rc-drawer":r,s=t.placement,l=s===void 0?"right":s,c=t.autoFocus,u=c===void 0?!0:c,m=t.keyboard,f=m===void 0?!0:m,v=t.width,d=v===void 0?378:v,p=t.mask,h=p===void 0?!0:p,g=t.maskClosable,b=g===void 0?!0:g,S=t.getContainer,y=t.forceRender,w=t.afterOpenChange,R=t.destroyOnClose,$=t.onMouseEnter,C=t.onMouseOver,E=t.onMouseLeave,I=t.onClick,P=t.onKeyDown,x=t.onKeyUp,T=t.panelRef,D=i.useState(!1),O=G(D,2),B=O[0],X=O[1];Lu(t);var j=i.useState(!1),_=G(j,2),ie=_[0],se=_[1];Dt(function(){se(!0)},[]);var re=ie?a:!1,V=i.useRef(),A=i.useRef();Dt(function(){re&&(A.current=document.activeElement)},[re]);var K=function(k){var L;if(X(k),w==null||w(k),!k&&A.current&&!((L=V.current)!==null&&L!==void 0&&L.contains(A.current))){var z;(z=A.current)===null||z===void 0||z.focus({preventScroll:!0})}},Q=i.useMemo(function(){return{panel:T}},[T]);if(!y&&!B&&!re&&R)return null;var U={onMouseEnter:$,onMouseOver:C,onMouseLeave:E,onClick:I,onKeyDown:P,onKeyUp:x},$e=oe(oe({},t),{},{open:re,prefixCls:o,placement:l,autoFocus:u,keyboard:f,width:d,mask:h,maskClosable:b,inline:S===!1,afterOpenChange:K,ref:V},U);return i.createElement(Di.Provider,{value:Q},i.createElement(Zo,{open:re||y||B,autoDestroy:!1,getContainer:S,autoLock:h&&(re||B)},i.createElement(_i,$e)))};zi.displayName="Drawer";const Au=e=>{var t,n;const{prefixCls:a,title:r,footer:o,extra:s,closeIcon:l,closable:c,onClose:u,headerStyle:m,bodyStyle:f,footerStyle:v,children:d,classNames:p,styles:h}=e,{drawer:g}=i.useContext(it),b=i.useCallback($=>i.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${a}-close`},$),[u]),[S,y]=Yo(c,typeof l<"u"?l:g==null?void 0:g.closeIcon,b,void 0,!0),w=i.useMemo(()=>{var $,C;return!r&&!S?null:i.createElement("div",{style:Object.assign(Object.assign(Object.assign({},($=g==null?void 0:g.styles)===null||$===void 0?void 0:$.header),m),h==null?void 0:h.header),className:H(`${a}-header`,{[`${a}-header-close-only`]:S&&!r&&!s},(C=g==null?void 0:g.classNames)===null||C===void 0?void 0:C.header,p==null?void 0:p.header)},i.createElement("div",{className:`${a}-header-title`},y,r&&i.createElement("div",{className:`${a}-title`},r)),s&&i.createElement("div",{className:`${a}-extra`},s))},[S,y,s,m,a,r]),R=i.useMemo(()=>{var $,C;if(!o)return null;const E=`${a}-footer`;return i.createElement("div",{className:H(E,($=g==null?void 0:g.classNames)===null||$===void 0?void 0:$.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(C=g==null?void 0:g.styles)===null||C===void 0?void 0:C.footer),v),h==null?void 0:h.footer)},o)},[o,v,a]);return i.createElement(i.Fragment,null,w,i.createElement("div",{className:H(`${a}-body`,p==null?void 0:p.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),f),h==null?void 0:h.body)},d),R)},ji=Au,Vu=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Bi=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Li=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Bi({opacity:e},{opacity:1})),Fu=(e,t)=>[Li(.7,t),Bi({transform:Vu(e)},{transform:"none"})],Wu=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Li(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((a,r)=>Object.assign(Object.assign({},a),{[`&-${r}`]:Fu(r,n)}),{})}}},ku=Wu,Gu=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:a,colorBgElevated:r,motionDurationSlow:o,motionDurationMid:s,padding:l,paddingLG:c,fontSizeLG:u,lineHeightLG:m,lineWidth:f,lineType:v,colorSplit:d,marginSM:p,colorIcon:h,colorIconHover:g,colorText:b,fontWeightStrong:S,footerPaddingBlock:y,footerPaddingInline:w}=e,R=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:a,pointerEvents:"auto"},[R]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${R}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${R}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${R}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${R}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${N(l)} ${N(c)}`,fontSize:u,lineHeight:m,borderBottom:`${N(f)} ${v} ${d}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:p,color:h,fontWeight:S,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${s}`,textRendering:"auto","&:focus, &:hover":{color:g,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:m},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:c,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${N(y)} ${N(w)}`,borderTop:`${N(f)} ${v} ${d}`},"&-rtl":{direction:"rtl"}}}},Ku=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Hi=Bt("Drawer",e=>{const t=wt(e,{});return[Gu(t),ku(t)]},Ku);var Ai=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var t;const{rootClassName:n,width:a,height:r,size:o="default",mask:s=!0,push:l=Uu,open:c,afterOpenChange:u,onClose:m,prefixCls:f,getContainer:v,style:d,className:p,visible:h,afterVisibleChange:g,maskStyle:b,drawerStyle:S,contentWrapperStyle:y}=e,w=Ai(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:R,getPrefixCls:$,direction:C,drawer:E}=i.useContext(it),I=$("drawer",f),[P,x,T]=Hi(I),D=v===void 0&&R?()=>R(document.body):v,O=H({"no-mask":!s,[`${I}-rtl`]:C==="rtl"},n,x,T);{const U=qt("Drawer");[["visible","open"],["afterVisibleChange","afterOpenChange"],["headerStyle","styles.header"],["bodyStyle","styles.body"],["footerStyle","styles.footer"],["contentWrapperStyle","styles.wrapper"],["maskStyle","styles.mask"],["drawerStyle","styles.content"]].forEach($e=>{let[ue,k]=$e;U.deprecated(!(ue in e),ue,k)}),D!==void 0&&((t=e.style)===null||t===void 0?void 0:t.position)==="absolute"&&U(!1,"breaking","`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.")}const B=i.useMemo(()=>a??(o==="large"?736:378),[a,o]),X=i.useMemo(()=>r??(o==="large"?736:378),[r,o]),j={motionName:Nn(I,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},_=U=>({motionName:Nn(I,`panel-motion-${U}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),ie=Jo(),[se,re]=jr("Drawer",w.zIndex),{classNames:V={},styles:A={}}=w,{classNames:K={},styles:Q={}}=E||{};return P(i.createElement(aa,null,i.createElement(ra,{status:!0,override:!0},i.createElement(So.Provider,{value:re},i.createElement(zi,Object.assign({prefixCls:I,onClose:m,maskMotion:j,motion:_},w,{classNames:{mask:H(V.mask,K.mask),content:H(V.content,K.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},A.mask),b),Q.mask),content:Object.assign(Object.assign(Object.assign({},A.content),S),Q.content),wrapper:Object.assign(Object.assign(Object.assign({},A.wrapper),y),Q.wrapper)},open:c??h,mask:s,push:l,width:B,height:X,style:Object.assign(Object.assign({},E==null?void 0:E.style),d),className:H(E==null?void 0:E.className,p),rootClassName:O,getContainer:D,afterOpenChange:u??g,panelRef:ie,zIndex:se}),i.createElement(ji,Object.assign({prefixCls:I},w,{onClose:m})))))))},qu=e=>{const{prefixCls:t,style:n,className:a,placement:r="right"}=e,o=Ai(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=i.useContext(it),l=s("drawer",t),[c,u,m]=Hi(l),f=H(l,`${l}-pure`,`${l}-${r}`,u,m,a);return c(i.createElement("div",{className:f,style:n},i.createElement(ji,Object.assign({prefixCls:l},o))))};Ma._InternalPanelDoNotUseOrYouWillBeFired=qu;Ma.displayName="Drawer";const Xu=Ma;var Yu={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"};const Ju=Yu;var Vi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:Ju}))};Vi.displayName="DoubleLeftOutlined";const $r=i.forwardRef(Vi);var Qu={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"};const Zu=Qu;var Fi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:Zu}))};Fi.displayName="DoubleRightOutlined";const Cr=i.forwardRef(Fi);var ed={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:"页码"},td=["10","20","50","100"],Wi=function(t){var n=t.pageSizeOptions,a=n===void 0?td:n,r=t.locale,o=t.changeSize,s=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,m=t.selectComponentClass,f=t.selectPrefixCls,v=t.disabled,d=t.buildOptionText,p=Ie.useState(""),h=G(p,2),g=h[0],b=h[1],S=function(){return!g||Number.isNaN(g)?void 0:Number(g)},y=typeof d=="function"?d:function(O){return"".concat(O," ").concat(r.items_per_page)},w=function(B){o==null||o(Number(B))},R=function(B){b(B.target.value)},$=function(B){l||g===""||(b(""),!(B.relatedTarget&&(B.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||B.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(S())))},C=function(B){g!==""&&(B.keyCode===ne.ENTER||B.type==="click")&&(b(""),c==null||c(S()))},E=function(){return a.some(function(B){return B.toString()===s.toString()})?a:a.concat([s.toString()]).sort(function(B,X){var j=Number.isNaN(Number(B))?0:Number(B),_=Number.isNaN(Number(X))?0:Number(X);return j-_})},I="".concat(u,"-options");if(!o&&!c)return null;var P=null,x=null,T=null;if(o&&m){var D=E().map(function(O,B){return Ie.createElement(m.Option,{key:B,value:O.toString()},y(O))});P=Ie.createElement(m,{disabled:v,prefixCls:f,showSearch:!1,className:"".concat(I,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(s||a[0]).toString(),onChange:w,getPopupContainer:function(B){return B.parentNode},"aria-label":r.page_size,defaultOpen:!1},D)}return c&&(l&&(T=typeof l=="boolean"?Ie.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:v,className:"".concat(I,"-quick-jumper-button")},r.jump_to_confirm):Ie.createElement("span",{onClick:C,onKeyUp:C},l)),x=Ie.createElement("div",{className:"".concat(I,"-quick-jumper")},r.jump_to,Ie.createElement("input",{disabled:v,type:"text",value:g,onChange:R,onKeyUp:C,onBlur:$,"aria-label":r.page}),r.page,T)),Ie.createElement("li",{className:I},P,x)};Wi.displayName="Options";var rn=function(t){var n,a=t.rootPrefixCls,r=t.page,o=t.active,s=t.className,l=t.showTitle,c=t.onClick,u=t.onKeyPress,m=t.itemRender,f="".concat(a,"-item"),v=H(f,"".concat(f,"-").concat(r),(n={},W(n,"".concat(f,"-active"),o),W(n,"".concat(f,"-disabled"),!r),n),s),d=function(){c(r)},p=function(b){u(b,c,r)},h=m(r,"page",Ie.createElement("a",{rel:"nofollow"},r));return h?Ie.createElement("li",{title:l?String(r):null,className:v,onClick:d,onKeyDown:p,tabIndex:0},h):null};rn.displayName="Pager";var nd=function(t,n,a){return a};function Jn(){}function wr(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function kt(e,t,n){var a=typeof e>"u"?t:e;return Math.floor((n-1)/a)+1}var ki=function(t){var n,a=t.prefixCls,r=a===void 0?"rc-pagination":a,o=t.selectPrefixCls,s=o===void 0?"rc-select":o,l=t.className,c=t.selectComponentClass,u=t.current,m=t.defaultCurrent,f=m===void 0?1:m,v=t.total,d=v===void 0?0:v,p=t.pageSize,h=t.defaultPageSize,g=h===void 0?10:h,b=t.onChange,S=b===void 0?Jn:b,y=t.hideOnSinglePage,w=t.showPrevNextJumpers,R=w===void 0?!0:w,$=t.showQuickJumper,C=t.showLessItems,E=t.showTitle,I=E===void 0?!0:E,P=t.onShowSizeChange,x=P===void 0?Jn:P,T=t.locale,D=T===void 0?ed:T,O=t.style,B=t.totalBoundaryShowSizeChanger,X=B===void 0?50:B,j=t.disabled,_=t.simple,ie=t.showTotal,se=t.showSizeChanger,re=t.pageSizeOptions,V=t.itemRender,A=V===void 0?nd:V,K=t.jumpPrevIcon,Q=t.jumpNextIcon,U=t.prevIcon,$e=t.nextIcon,ue=Ie.useRef(null),k=jt(10,{value:p,defaultValue:g}),L=G(k,2),z=L[0],F=L[1],de=jt(1,{value:u,defaultValue:f,postState:function(Le){return Math.max(1,Math.min(Le,kt(void 0,z,d)))}}),Y=G(de,2),M=Y[0],ce=Y[1],Ce=Ie.useState(M),fe=G(Ce,2),J=fe[0],Z=fe[1];i.useEffect(function(){Z(M)},[M]);var pe=S!==Jn,Me="current"in t;at(Me?pe:!0,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var xe=Math.max(1,M-(C?3:5)),We=Math.min(kt(void 0,z,d),M+(C?3:5));function Ke(we,Le){var Je=we||Ie.createElement("button",{type:"button","aria-label":Le,className:"".concat(r,"-item-link")});return typeof we=="function"&&(Je=Ie.createElement(we,oe({},t))),Je}function Ae(we){var Le=we.target.value,Je=kt(void 0,z,d),Ot;return Le===""?Ot=Le:Number.isNaN(Number(Le))?Ot=J:Le>=Je?Ot=Je:Ot=Number(Le),Ot}function ke(we){return wr(we)&&we!==M&&wr(d)&&d>0}var Ge=d>z?$:!1;function _e(we){(we.keyCode===ne.UP||we.keyCode===ne.DOWN)&&we.preventDefault()}function Ue(we){var Le=Ae(we);switch(Le!==J&&Z(Le),we.keyCode){case ne.ENTER:je(Le);break;case ne.UP:je(Le-1);break;case ne.DOWN:je(Le+1);break}}function Ve(we){je(Ae(we))}function st(we){var Le=kt(we,z,d),Je=M>Le&&Le!==0?Le:M;F(we),Z(Je),x==null||x(M,we),ce(Je),S==null||S(Je,we)}function je(we){if(ke(we)&&!j){var Le=kt(void 0,z,d),Je=we;return we>Le?Je=Le:we<1&&(Je=1),Je!==J&&Z(Je),ce(Je),S==null||S(Je,z),Je}return M}var qe=M>1,Xe=MX;function De(){qe&&je(M-1)}function et(){Xe&&je(M+1)}function Ye(){je(xe)}function xt(){je(We)}function dt(we,Le){if(we.key==="Enter"||we.charCode===ne.ENTER||we.keyCode===ne.ENTER){for(var Je=arguments.length,Ot=new Array(Je>2?Je-2:0),Zt=2;Ztd?d:M*z])),ee=null,te=kt(void 0,z,d);if(y&&d<=z)return null;var ve=[],Te={rootPrefixCls:r,onClick:je,onKeyPress:dt,showTitle:I,itemRender:A,page:-1},Ze=M-1>0?M-1:0,rt=M+1=Pe*2&&M!==3&&(ve[0]=Ie.cloneElement(ve[0],{className:H("".concat(r,"-item-after-jump-prev"),ve[0].props.className)}),ve.unshift(Fe)),te-M>=Pe*2&&M!==te-2){var Lt=ve[ve.length-1];ve[ve.length-1]=Ie.cloneElement(Lt,{className:H("".concat(r,"-item-before-jump-next"),Lt.props.className)}),ve.push(ee)}_t!==1&&ve.unshift(Ie.createElement(rn,Ne({},Te,{key:1,page:1}))),ft!==te&&ve.push(Ie.createElement(rn,Ne({},Te,{key:te,page:te})))}var It=he(Ze);if(It){var Nt=!qe||!te;It=Ie.createElement("li",{title:I?D.prev_page:null,onClick:De,tabIndex:Nt?null:0,onKeyDown:bt,className:H("".concat(r,"-prev"),W({},"".concat(r,"-disabled"),Nt)),"aria-disabled":Nt},It)}var Jt=Qe(rt);if(Jt){var Wt,Qt;_?(Wt=!Xe,Qt=qe?0:null):(Wt=!Xe||!te,Qt=Wt?null:0),Jt=Ie.createElement("li",{title:I?D.next_page:null,onClick:et,tabIndex:Qt,onKeyDown:me,className:H("".concat(r,"-next"),W({},"".concat(r,"-disabled"),Wt)),"aria-disabled":Wt},Jt)}var Fn=H(r,l,(n={},W(n,"".concat(r,"-simple"),_),W(n,"".concat(r,"-disabled"),j),n));return Ie.createElement("ul",Ne({className:Fn,style:O,ref:ue},ge),be,It,_?Se:ve,Jt,Ie.createElement(Wi,{locale:D,rootPrefixCls:r,disabled:j,selectComponentClass:c,selectPrefixCls:s,changeSize:ht?st:null,pageSize:z,pageSizeOptions:re,quickGo:Ge?je:null,goButton:ye}))};ki.displayName="Pagination";const Gi=e=>i.createElement(_n,Object.assign({},e,{showSearch:!0,size:"small"})),Ki=e=>i.createElement(_n,Object.assign({},e,{showSearch:!0,size:"middle"}));Gi.Option=_n.Option;Ki.Option=_n.Option;const ad=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},rd=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:N(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:N(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:N(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:N(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:N(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:N(e.itemSizeSM),input:Object.assign(Object.assign({},jo(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},id=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:N(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:N(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${N(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${N(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${N(e.inputOutlineOffset)} 0 ${N(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},od=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}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${N(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${N(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:N(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},ha(e)),Bo(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Lo(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},ld=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:N(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${N(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${N(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},sd=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:N(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ld(e)),od(e)),id(e)),rd(e)),ad(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"}}},cd=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Pn(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Aa(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Aa(e))}}}},Ui=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Vr(e)),qi=e=>wt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Fr(e)),ud=Bt("Pagination",e=>{const t=qi(e);return[sd(t),cd(t)]},Ui),dd=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${N(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},fd=yo(["Pagination","bordered"],e=>{const t=qi(e);return[dd(t)]},Ui);var md=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,selectPrefixCls:n,className:a,rootClassName:r,style:o,size:s,locale:l,selectComponentClass:c,responsive:u,showSizeChanger:m}=e,f=md(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:v}=Bs(u),[,d]=Rn(),{getPrefixCls:p,direction:h,pagination:g={}}=i.useContext(it),b=p("pagination",t),[S,y,w]=ud(b),R=m??g.showSizeChanger,$=i.useMemo(()=>{const O=i.createElement("span",{className:`${b}-item-ellipsis`},"•••"),B=i.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?i.createElement(Wa,null):i.createElement(Fa,null)),X=i.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},h==="rtl"?i.createElement(Fa,null):i.createElement(Wa,null)),j=i.createElement("a",{className:`${b}-item-link`},i.createElement("div",{className:`${b}-item-container`},h==="rtl"?i.createElement(Cr,{className:`${b}-item-link-icon`}):i.createElement($r,{className:`${b}-item-link-icon`}),O)),_=i.createElement("a",{className:`${b}-item-link`},i.createElement("div",{className:`${b}-item-container`},h==="rtl"?i.createElement($r,{className:`${b}-item-link-icon`}):i.createElement(Cr,{className:`${b}-item-link-icon`}),O));return{prevIcon:B,nextIcon:X,jumpPrevIcon:j,jumpNextIcon:_}},[h,b]),[C]=kr("Pagination",$o),E=Object.assign(Object.assign({},C),l),I=dn(s),P=I==="small"||!!(v&&!I&&u),x=p("select",n),T=H({[`${b}-mini`]:P,[`${b}-rtl`]:h==="rtl",[`${b}-bordered`]:d.wireframe},g==null?void 0:g.className,a,r,y,w),D=Object.assign(Object.assign({},g==null?void 0:g.style),o);return S(i.createElement(i.Fragment,null,d.wireframe&&i.createElement(fd,{prefixCls:b}),i.createElement(ki,Object.assign({},$,f,{style:D,prefixCls:b,selectPrefixCls:x,className:T,selectComponentClass:c||(P?Gi:Ki),locale:E,showSizeChanger:R}))))};Xi.displayName="Pagination";const vd=Xi;var gd=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Yi=i.forwardRef(function(e,t){var n,a=e.prefixCls,r=a===void 0?"rc-switch":a,o=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,m=e.checkedChildren,f=e.unCheckedChildren,v=e.onClick,d=e.onChange,p=e.onKeyDown,h=Ct(e,gd),g=jt(!1,{value:s,defaultValue:l}),b=G(g,2),S=b[0],y=b[1];function w(E,I){var P=S;return c||(P=E,y(P),d==null||d(P,I)),P}function R(E){E.which===ne.LEFT?w(!1,E):E.which===ne.RIGHT&&w(!0,E),p==null||p(E)}function $(E){var I=w(!S,E);v==null||v(I,E)}var C=H(r,o,(n={},W(n,"".concat(r,"-checked"),S),W(n,"".concat(r,"-disabled"),c),n));return i.createElement("button",Ne({},h,{type:"button",role:"switch","aria-checked":S,disabled:c,className:C,ref:t,onKeyDown:R,onClick:$}),u,i.createElement("span",{className:"".concat(r,"-inner")},i.createElement("span",{className:"".concat(r,"-inner-checked")},m),i.createElement("span",{className:"".concat(r,"-inner-unchecked")},f)))});Yi.displayName="Switch";const pd=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:a,trackMinWidthSM:r,innerMinMarginSM:o,innerMaxMarginSM:s,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,m=N(c(l).add(c(a).mul(2)).equal()),f=N(c(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:N(n),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:o,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${f})`,marginInlineEnd:`calc(100% - ${m} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${f})`,marginInlineEnd:`calc(-100% + ${m} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${N(c(l).add(a).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},hd=e=>{const{componentCls:t,handleSize:n,calc:a}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:a(a(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},bd=e=>{const{componentCls:t,trackPadding:n,handleBg:a,handleShadow:r,handleSize:o,calc:s}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:a,borderRadius:s(o).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${N(s(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Sd=e=>{const{componentCls:t,trackHeight:n,trackPadding:a,innerMinMargin:r,innerMaxMargin:o,handleSize:s,calc:l}=e,c=`${t}-inner`,u=N(l(s).add(l(a).mul(2)).equal()),m=N(l(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${m})`,marginInlineEnd:`calc(100% - ${u} + ${m})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:r,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${m})`,marginInlineEnd:`calc(-100% + ${u} - ${m})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(a).mul(2).equal(),marginInlineEnd:l(a).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(a).mul(-1).mul(2).equal(),marginInlineEnd:l(a).mul(2).equal()}}}}}},yd=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:a}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Pt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:a,height:n,lineHeight:`${N(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Pn(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},$d=e=>{const{fontSize:t,lineHeight:n,controlHeight:a,colorWhite:r}=e,o=t*n,s=a/2,l=2,c=o-l*2,u=s-l*2;return{trackHeight:o,trackHeightSM:s,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:r,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new on("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},Cd=Bt("Switch",e=>{const t=wt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[yd(t),Sd(t),bd(t),hd(t),pd(t)]},$d);var wd=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:a,disabled:r,loading:o,className:s,rootClassName:l,style:c,checked:u,value:m,defaultChecked:f,defaultValue:v,onChange:d}=e,p=wd(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,g]=jt(!1,{value:u??m,defaultValue:f??v}),{getPrefixCls:b,direction:S,switch:y}=i.useContext(it),w=i.useContext(pa),R=(r??w)||o,$=b("switch",n),C=i.createElement("div",{className:`${$}-handle`},o&&i.createElement(zr,{className:`${$}-loading-icon`})),[E,I,P]=Cd($),x=dn(a),T=H(y==null?void 0:y.className,{[`${$}-small`]:x==="small",[`${$}-loading`]:o,[`${$}-rtl`]:S==="rtl"},s,l,I,P),D=Object.assign(Object.assign({},y==null?void 0:y.style),c),O=function(){g(arguments.length<=0?void 0:arguments[0]),d==null||d.apply(void 0,arguments)};return E(i.createElement(el,{component:"Switch"},i.createElement(Yi,Object.assign({},p,{checked:h,onChange:O,prefixCls:$,className:T,style:D,disabled:R,ref:t,loadingIcon:C}))))});Da.__ANT_SWITCH=!0;Da.displayName="Switch";const xd=Da;var Ed={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Id=Ed;var Ji=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:Id}))};Ji.displayName="DeleteOutlined";const Nd=i.forwardRef(Ji);var Od={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Rd=Od;var Qi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:Rd}))};Qi.displayName="CopyOutlined";const xr=i.forwardRef(Qi);var Pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const Md=Pd;var Zi=function(t,n){return i.createElement(Tt,Ne({},t,{ref:n,icon:Md}))};Zi.displayName="SettingOutlined";const Dd=i.forwardRef(Zi);var Td=function(e){return function(t,n){var a=i.useRef(!1);e(function(){return function(){a.current=!1}},[]),e(function(){if(!a.current)a.current=!0;else return t()},n)}},gt=function(){return gt=Object.assign||function(t){for(var n,a=1,r=arguments.length;a0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o}function ut(e,t,n){if(n||arguments.length===2)for(var a=0,r=t.length,o;a-1&&(r=setTimeout(function(){wn.delete(e)},t)),wn.set(e,gt(gt({},n),{timer:r}))},Hd=function(e){return wn.get(e)},xn=new Map,Ad=function(e){return xn.get(e)},Vd=function(e,t){xn.set(e,t),t.then(function(n){return xn.delete(e),n}).catch(function(){xn.delete(e)})},Gt={},Fd=function(e,t){Gt[e]&&Gt[e].forEach(function(n){return n(t)})},Qn=function(e,t){return Gt[e]||(Gt[e]=[]),Gt[e].push(t),function(){var a=Gt[e].indexOf(t);Gt[e].splice(a,1)}},Wd=function(e,t){var n=t.cacheKey,a=t.cacheTime,r=a===void 0?5*60*1e3:a,o=t.staleTime,s=o===void 0?0:o,l=t.setCache,c=t.getCache,u=i.useRef(),m=i.useRef(),f=function(d,p){l?l(p):Ld(d,r,p),Fd(d,p.data)},v=function(d,p){return p===void 0&&(p=[]),c?c(p):Hd(d)};return to(function(){if(n){var d=v(n);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(s===-1||new Date().getTime()-d.time<=s)&&(e.state.loading=!1)),u.current=Qn(n,function(p){e.setState({data:p})})}},[]),_a(function(){var d;(d=u.current)===null||d===void 0||d.call(u)}),n?{onBefore:function(d){var p=v(n,d);return!p||!Object.hasOwnProperty.call(p,"data")?{}:s===-1||new Date().getTime()-p.time<=s?{loading:!1,data:p==null?void 0:p.data,error:void 0,returnNow:!0}:{data:p==null?void 0:p.data,error:void 0}},onRequest:function(d,p){var h=Ad(n);return h&&h!==m.current?{servicePromise:h}:(h=d.apply(void 0,ut([],lt(p),!1)),m.current=h,Vd(n,h),{servicePromise:h})},onSuccess:function(d,p){var h;n&&((h=u.current)===null||h===void 0||h.call(u),f(n,{data:d,params:p,time:new Date().getTime()}),u.current=Qn(n,function(g){e.setState({data:g})}))},onMutate:function(d){var p;n&&((p=u.current)===null||p===void 0||p.call(u),f(n,{data:d,params:e.state.params,time:new Date().getTime()}),u.current=Qn(n,function(h){e.setState({data:h})}))}}:{}};const kd=Wd;function Gd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var za=Gd,Kd=typeof bn=="object"&&bn&&bn.Object===Object&&bn,Ud=Kd,qd=Ud,Xd=typeof self=="object"&&self&&self.Object===Object&&self,Yd=qd||Xd||Function("return this")(),ao=Yd,Jd=ao,Qd=function(){return Jd.Date.now()},Zd=Qd,ef=/\s/;function tf(e){for(var t=e.length;t--&&ef.test(e.charAt(t)););return t}var nf=tf,af=nf,rf=/^\s+/;function of(e){return e&&e.slice(0,af(e)+1).replace(rf,"")}var lf=of,sf=ao,cf=sf.Symbol,ro=cf,Er=ro,io=Object.prototype,uf=io.hasOwnProperty,df=io.toString,mn=Er?Er.toStringTag:void 0;function ff(e){var t=uf.call(e,mn),n=e[mn];try{e[mn]=void 0;var a=!0}catch{}var r=df.call(e);return a&&(t?e[mn]=n:delete e[mn]),r}var mf=ff,vf=Object.prototype,gf=vf.toString;function pf(e){return gf.call(e)}var hf=pf,Ir=ro,bf=mf,Sf=hf,yf="[object Null]",$f="[object Undefined]",Nr=Ir?Ir.toStringTag:void 0;function Cf(e){return e==null?e===void 0?$f:yf:Nr&&Nr in Object(e)?bf(e):Sf(e)}var wf=Cf;function xf(e){return e!=null&&typeof e=="object"}var Ef=xf,If=wf,Nf=Ef,Of="[object Symbol]";function Rf(e){return typeof e=="symbol"||Nf(e)&&If(e)==Of}var Pf=Rf,Mf=lf,Or=za,Df=Pf,Rr=NaN,Tf=/^[-+]0x[0-9a-f]+$/i,_f=/^0b[01]+$/i,zf=/^0o[0-7]+$/i,jf=parseInt;function Bf(e){if(typeof e=="number")return e;if(Df(e))return Rr;if(Or(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Or(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mf(e);var n=_f.test(e);return n||zf.test(e)?jf(e.slice(2),n?2:8):Tf.test(e)?Rr:+e}var Lf=Bf,Hf=za,Zn=Zd,Pr=Lf,Af="Expected a function",Vf=Math.max,Ff=Math.min;function Wf(e,t,n){var a,r,o,s,l,c,u=0,m=!1,f=!1,v=!0;if(typeof e!="function")throw new TypeError(Af);t=Pr(t)||0,Hf(n)&&(m=!!n.leading,f="maxWait"in n,o=f?Vf(Pr(n.maxWait)||0,t):o,v="trailing"in n?!!n.trailing:v);function d($){var C=a,E=r;return a=r=void 0,u=$,s=e.apply(E,C),s}function p($){return u=$,l=setTimeout(b,t),m?d($):s}function h($){var C=$-c,E=$-u,I=t-C;return f?Ff(I,o-E):I}function g($){var C=$-c,E=$-u;return c===void 0||C>=t||C<0||f&&E>=o}function b(){var $=Zn();if(g($))return S($);l=setTimeout(b,h($))}function S($){return l=void 0,v&&a?d($):(a=r=void 0,s)}function y(){l!==void 0&&clearTimeout(l),u=0,a=c=r=l=void 0}function w(){return l===void 0?s:S(Zn())}function R(){var $=Zn(),C=g($);if(a=arguments,r=this,c=$,C){if(l===void 0)return p(c);if(f)return clearTimeout(l),l=setTimeout(b,t),d(c)}return l===void 0&&(l=setTimeout(b,t)),s}return R.cancel=y,R.flush=w,R}var oo=Wf;const kf=Br(oo);var Gf=function(e,t){var n=t.debounceWait,a=t.debounceLeading,r=t.debounceTrailing,o=t.debounceMaxWait,s=i.useRef(),l=i.useMemo(function(){var c={};return a!==void 0&&(c.leading=a),r!==void 0&&(c.trailing=r),o!==void 0&&(c.maxWait=o),c},[a,r,o]);return i.useEffect(function(){if(n){var c=e.runAsync.bind(e);return s.current=kf(function(u){u()},n,l),e.runAsync=function(){for(var u=[],m=0;m-1&&pn.splice(n,1)}}if(Vn){var Mr=function(){if(!(!ja()||!em()))for(var e=0;eC&&(R=Math.max(1,C));var E=lt(c.params||[]),I=E[0],P=I===void 0?{}:I,x=E.slice(1);c.run.apply(c,ut([gt(gt({},P),{current:R,pageSize:$})],lt(x),!1))},b=function(y){g(y,d)},S=function(y){g(f,y)};return gt(gt({},c),{pagination:{current:f,pageSize:d,total:p,totalPage:h,onChange:zt(g),changeCurrent:zt(b),changePageSize:zt(S)}})};function ym(e,t){const{onOpen:n,onClose:a}=t||{},[r,o]=i.useState(e??!1),s=i.useCallback(()=>{o(u=>u||(n==null||n(),!0))},[n]),l=i.useCallback(()=>{o(u=>u&&(a==null||a(),!1))},[a]),c=i.useCallback(()=>{r?l():s()},[l,s,r]);return[r,{open:s,close:l,toggle:c}]}const $m=({actionRef:e,onFinish:t})=>{const[n]=Ft.useForm(),[a,r]=i.useState(),o=!!a,[s,{open:l,close:c}]=ym(),u=Ft.useWatch("rateLimitEnabled",n),m=i.useMemo(()=>o?a:{rateLimitEnabled:!1,rateLimitCount:1,rateLimitDuration:60},[o,a]),f=()=>{c(),n.resetFields()},v=lo(async()=>{const d=await n.validateFields();if(!d)return!1;let p=!0;if(!o){const{error:h}=await Co(d);h||(Lr.success("App created successfully"),n.resetFields()),p=!h}return p&&t&&(c(),t()),p},{manual:!0});return i.useEffect(()=>{e!=null&&e.current||(e.current={openModal:d=>{r(d),n.setFieldsValue({name:d==null?void 0:d.name}),l()}})},[n,l]),He.jsxDEV(Wr,{title:o?"Edit app":"Create app",open:s,onCancel:f,okButtonProps:{htmlType:"submit",loading:v.loading},onOk:v.run,children:He.jsxDEV(Ft,{labelCol:{span:5},form:n,initialValues:m,children:[He.jsxDEV(Ft.Item,{label:"Name",name:"name",rules:[{required:!0,message:"Please input app name!"}],children:He.jsxDEV(Ho,{placeholder:"App name",maxLength:12},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:95,columnNumber:9},void 0),He.jsxDEV(Ft.Item,{noStyle:!0,children:[He.jsxDEV(Ft.Item,{label:"Rate limit",name:"rateLimitEnabled",children:He.jsxDEV(xd,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:100,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:99,columnNumber:11},void 0),u&&He.jsxDEV("div",{className:"flex items-center space-x-2",children:[He.jsxDEV(Ft.Item,{name:"rateLimitCount",className:"!mb-0",rules:[{required:!0,message:"Required!"}],children:He.jsxDEV(hr,{placeholder:"Limit count"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:105,columnNumber:17},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:104,columnNumber:15},void 0),He.jsxDEV("span",{children:"messages per"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:107,columnNumber:15},void 0),He.jsxDEV(Ft.Item,{name:"rateLimitDuration",className:"!mb-0",rules:[{required:!0,message:"Required!"}],children:He.jsxDEV(hr,{placeholder:"per second"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:109,columnNumber:17},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:108,columnNumber:15},void 0),He.jsxDEV("span",{children:"seconds / phone"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:111,columnNumber:15},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:103,columnNumber:13},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:98,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:94,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/components/EditModal.tsx",lineNumber:84,columnNumber:5},void 0)},{useModal:Cm}=Wr,Dr=12,Om=()=>{var v,d,p,h;const[e,t]=Cm(),[n,a]=Lr.useMessage(),[r,o]=i.useState(null),s=i.useRef(),l=Sm(async({current:g,pageSize:b})=>{const{error:S,data:y}=await wo({limit:b,offset:(g-1)*b});return S?[]:y},{defaultPageSize:Dr}),c=g=>{e.confirm({title:`Delete app "${g.name}"?`,content:"This operation is irreversible.",okButtonProps:{danger:!0},onOk:async()=>{const{error:b}=await xo(g.id);b||(n.success("App deleted successfully."),l.refresh())}})},u=()=>{var g;(g=s.current)==null||g.openModal()};function m(g){g&&(navigator.clipboard.writeText(g),n.success("Copied to clipboard."))}const f=He.jsxDEV(tl,{type:"dashed",className:"flex items-center",onClick:()=>u(),children:[He.jsxDEV(Si,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:57,columnNumber:7},void 0)," Create an App"]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:56,columnNumber:5},void 0);return He.jsxDEV(He.Fragment,{children:[!!((v=l.data)!=null&&v.list.length)&&f,He.jsxDEV("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:(d=l.data)==null?void 0:d.list.map(g=>He.jsxDEV(hu,{title:g.name,actions:[He.jsxDEV(Dd,{className:"cursor-pointer",onClick:()=>o(g)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:71,columnNumber:15},void 0),He.jsxDEV(Nd,{className:"!hover:text-red-500 cursor-pointer",onClick:()=>c(g)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:72,columnNumber:15},void 0)],children:He.jsxDEV("div",{className:"text-xs italic",children:["created at: ",g.createdAt]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:75,columnNumber:13},void 0)},g.id,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:66,columnNumber:11},void 0))},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:64,columnNumber:7},void 0),He.jsxDEV(vd,{hideOnSinglePage:!0,total:(p=l.data)==null?void 0:p.total,pageSize:l.pagination.pageSize,current:l.pagination.current,onChange:g=>l.run({current:g,pageSize:Dr})},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:79,columnNumber:7},void 0),!l.loading&&((h=l.data)==null?void 0:h.list.length)===0&&He.jsxDEV(an,{className:"my-10 flex flex-col items-center justify-center",description:"No apps found.",children:f},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:87,columnNumber:9},void 0),He.jsxDEV(Xu,{title:"App API Key",width:360,open:r!==null,onClose:()=>o(null),children:[He.jsxDEV("div",{children:"App ID:"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:92,columnNumber:9},void 0),He.jsxDEV("div",{className:"py-1 flex items-center",children:[He.jsxDEV("div",{className:"truncate",children:r==null?void 0:r.appId},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:94,columnNumber:11},void 0),He.jsxDEV(xr,{className:"ml-2 cursor-pointer hover:text-primary",onClick:()=>m(r==null?void 0:r.appId)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:95,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:93,columnNumber:9},void 0),He.jsxDEV("div",{className:"mt-4",children:"App Secret:"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:97,columnNumber:9},void 0),He.jsxDEV("div",{className:"py-1 flex items-center",children:[He.jsxDEV("div",{className:"truncate",children:r==null?void 0:r.appSecret},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:99,columnNumber:11},void 0),He.jsxDEV(xr,{className:"ml-2 cursor-pointer hover:text-primary",onClick:()=>m(r==null?void 0:r.appSecret)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:100,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:98,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:91,columnNumber:7},void 0),He.jsxDEV($m,{actionRef:s,onFinish:()=>l.refresh()},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:106,columnNumber:7},void 0),t,a]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard/apps.tsx",lineNumber:62,columnNumber:5},void 0)};export{Om as default}; diff --git a/packages/server/html/assets/auth-K1CAHtEV.js b/packages/server/html/assets/auth-CAHaNYn3.js similarity index 96% rename from packages/server/html/assets/auth-K1CAHtEV.js rename to packages/server/html/assets/auth-CAHaNYn3.js index 0049bf7..af449e2 100644 --- a/packages/server/html/assets/auth-K1CAHtEV.js +++ b/packages/server/html/assets/auth-CAHaNYn3.js @@ -1 +1 @@ -import{j as e,O as s}from"./index-WagZkOpk.js";const r=()=>e.jsxDEV("div",{className:"",style:{backgroundImage:"linear-gradient(to right, rgb(0, 180, 219), rgb(0, 131, 176))"},children:e.jsxDEV("div",{className:"h-screen container max-w-320 mx-auto flex items-center justify-between pl-15 pr-30",children:[e.jsxDEV("div",{className:"font-medium text-white mr-5 min-h-40",children:[e.jsxDEV("h1",{className:"text-5xl",children:"Fake SMS"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:13,columnNumber:11},void 0),e.jsxDEV("p",{className:"mt-5",children:["Use ",e.jsxDEV("code",{className:"inline-block bg-white rounded-md px-2 py-1 text-xs text-primary",children:"fake sms"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:15,columnNumber:17},void 0)," to mock SMS messages for your web application."]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:14,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:12,columnNumber:9},void 0),e.jsxDEV("div",{className:"w-100 bg-white rounded-md px-5 py-4",children:e.jsxDEV(s,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:20,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:19,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:11,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:5,columnNumber:5},void 0);export{r as default}; +import{j as e,O as s}from"./index-E_dpsFJ8.js";const r=()=>e.jsxDEV("div",{className:"",style:{backgroundImage:"linear-gradient(to right, rgb(0, 180, 219), rgb(0, 131, 176))"},children:e.jsxDEV("div",{className:"h-screen container max-w-320 mx-auto flex items-center justify-between pl-15 pr-30",children:[e.jsxDEV("div",{className:"font-medium text-white mr-5 min-h-40",children:[e.jsxDEV("h1",{className:"text-5xl",children:"Fake SMS"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:13,columnNumber:11},void 0),e.jsxDEV("p",{className:"mt-5",children:["Use ",e.jsxDEV("code",{className:"inline-block bg-white rounded-md px-2 py-1 text-xs text-primary",children:"fake sms"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:15,columnNumber:17},void 0)," to mock SMS messages for your web application."]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:14,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:12,columnNumber:9},void 0),e.jsxDEV("div",{className:"w-100 bg-white rounded-md px-5 py-4",children:e.jsxDEV(s,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:20,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:19,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:11,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/auth.tsx",lineNumber:5,columnNumber:5},void 0);export{r as default}; diff --git a/packages/server/html/assets/auth-p7p8v_0c.js b/packages/server/html/assets/auth-p7p8v_0c.js new file mode 100644 index 0000000..d301e89 --- /dev/null +++ b/packages/server/html/assets/auth-p7p8v_0c.js @@ -0,0 +1 @@ +import{j as e,O as s}from"./index-rd09DNLi.js";const a=()=>e.jsx("div",{className:"",style:{backgroundImage:"linear-gradient(to right, rgb(0, 180, 219), rgb(0, 131, 176))"},children:e.jsxs("div",{className:"h-screen container max-w-320 mx-auto flex items-center justify-between pl-15 pr-30",children:[e.jsxs("div",{className:"font-medium text-white mr-5 min-h-40",children:[e.jsx("h1",{className:"text-5xl",children:"Fake SMS"}),e.jsxs("p",{className:"mt-5",children:["Use ",e.jsx("code",{className:"inline-block bg-white rounded-md px-2 py-1 text-xs text-primary",children:"fake sms"})," to mock SMS messages for your web application."]})]}),e.jsx("div",{className:"w-100 bg-white rounded-md px-5 py-4",children:e.jsx(s,{})})]})});export{a as default}; diff --git a/packages/server/html/assets/dashboard-DSnlBJwV.js b/packages/server/html/assets/dashboard-8oyDvdNd.js similarity index 63% rename from packages/server/html/assets/dashboard-DSnlBJwV.js rename to packages/server/html/assets/dashboard-8oyDvdNd.js index 0b19c38..bf8235b 100644 --- a/packages/server/html/assets/dashboard-DSnlBJwV.js +++ b/packages/server/html/assets/dashboard-8oyDvdNd.js @@ -1,27 +1,27 @@ -import{r as i,_ as Ze,C as Z,c as R,s as Ke,b as Je,d as C,g as Qe,t as et,e as pe,f as Ne,T as ge,h as tt,i as je,k as be,l as ot,R as nt,u as rt,m as it,a as lt,A as $e,j as q,O as at}from"./index-WagZkOpk.js";import{R as se,L as fe,D as st,M as ct,u as dt,S as ut,a as Ee,i as ee,E as mt,b as ze,s as pt,c as gt,d as bt,e as $t,f as ve,g as ft,h as vt,j as ht}from"./index-Ax4WZORO.js";import{A as Ct,o as Q,t as Pe,c as ne,i as J,T as yt,u as Te,N as St,g as He,m as ce,a as xt,b as Me,d as De,e as wt,f as ke,h as It,j as Ot,k as Bt,l as Nt,n as jt,z as Et,C as zt,p as Pt,q as Tt,B as he}from"./index-rndVcMSc.js";var Ht={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const Mt=Ht;var Re=function(o,t){return i.createElement(Ct,Ze({},o,{ref:t,icon:Mt}))};Re.displayName="BarsOutlined";const Dt=i.forwardRef(Re),kt=e=>!isNaN(parseFloat(e))&&isFinite(e),Rt=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var At=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{let e=0;return function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${o}${e}`}})(),_t=i.forwardRef((e,o)=>{const{prefixCls:t,className:n,trigger:r,children:a,defaultCollapsed:l=!1,theme:s="dark",style:d={},collapsible:m=!1,reverseArrow:v=!1,width:b=200,collapsedWidth:f=80,zeroWidthTriggerStyle:g,breakpoint:p,onCollapse:u,onBreakpoint:y}=e,S=At(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:I}=i.useContext(Rt),[$,N]=i.useState("collapsed"in e?e.collapsed:l),[z,H]=i.useState(!1);i.useEffect(()=>{"collapsed"in e&&N(e.collapsed)},[e.collapsed]);const j=(c,h)=>{"collapsed"in e||N(c),u==null||u(c,h)},P=i.useRef();P.current=c=>{H(c.matches),y==null||y(c.matches),$!==c.matches&&j(c.matches,"responsive")},i.useEffect(()=>{function c(M){return P.current(M)}let h;if(typeof window<"u"){const{matchMedia:M}=window;if(M&&p&&p in Ce){h=M(`screen and (max-width: ${Ce[p]})`);try{h.addEventListener("change",c)}catch{h.addListener(c)}c(h)}}return()=>{try{h==null||h.removeEventListener("change",c)}catch{h==null||h.removeListener(c)}}},[p]),i.useEffect(()=>{const c=Lt("ant-sider-");return I.addSider(c),()=>I.removeSider(c)},[]);const w=()=>{j(!$,"clickTrigger")},{getPrefixCls:E}=i.useContext(Z),x=()=>{const c=E("layout-sider",t),h=Q(S,["collapsed"]),M=$?f:b,D=kt(M)?`${M}px`:String(M),A=parseFloat(String(f||0))===0?i.createElement("span",{onClick:w,className:R(`${c}-zero-width-trigger`,`${c}-zero-width-trigger-${v?"right":"left"}`),style:g},r||i.createElement(Dt,null)):null,V={expanded:v?i.createElement(se,null):i.createElement(fe,null),collapsed:v?i.createElement(fe,null):i.createElement(se,null)}[$?"collapsed":"expanded"],L=r!==null?A||i.createElement("div",{className:`${c}-trigger`,onClick:w,style:{width:D}},r||V):null,_=Object.assign(Object.assign({},d),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),X=R(c,`${c}-${s}`,{[`${c}-collapsed`]:!!$,[`${c}-has-trigger`]:m&&r!==null&&!A,[`${c}-below`]:!!z,[`${c}-zero-width`]:parseFloat(D)===0},n);return i.createElement("aside",Object.assign({className:X},h,{style:_,ref:o}),i.createElement("div",{className:`${c}-children`},a),m||z&&A?L:null)},O=i.useMemo(()=>({siderCollapsed:$}),[$]);return i.createElement(ue.Provider,{value:O},x())});_t.displayName="Sider";var Wt=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,className:t,dashed:n}=e,r=Wt(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=i.useContext(Z),l=a("menu",o),s=R({[`${l}-item-divider-dashed`]:!!n},t);return i.createElement(st,Object.assign({className:s},r))},Ae=Vt,Xt=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=Xt,Ft=e=>{var o;const{className:t,children:n,icon:r,title:a,danger:l}=e,{prefixCls:s,firstLevel:d,direction:m,disableMenuItemTitleTooltip:v,inlineCollapsed:b}=i.useContext(te),f=I=>{const $=i.createElement("span",{className:`${s}-title-content`},n);return(!r||J(n)&&n.type==="span")&&n&&I&&d&&typeof n=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},n.charAt(0)):$},{siderCollapsed:g}=i.useContext(ue);let p=a;typeof a>"u"?p=d?n:"":a===!1&&(p="");const u={title:p};!g&&!b&&(u.title=null,u.open=!1);const y=Pe(n).length;let S=i.createElement(ct,Object.assign({},Q(e,["title","icon","danger"]),{className:R({[`${s}-item-danger`]:l,[`${s}-item-only-child`]:(r?y+1:y)===1},t),title:typeof a=="string"?a:void 0}),ne(r,{className:R(J(r)?(o=r.props)===null||o===void 0?void 0:o.className:"",`${s}-item-icon`)}),f(b));return v||(S=i.createElement(yt,Object.assign({},u,{placement:m==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),S)),S},Le=Ft,Gt=e=>{var o;const{popupClassName:t,icon:n,title:r,theme:a}=e,l=i.useContext(te),{prefixCls:s,inlineCollapsed:d,theme:m}=l,v=dt();let b;if(!n)b=d&&!v.length&&r&&typeof r=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):i.createElement("span",{className:`${s}-title-content`},r);else{const p=J(r)&&r.type==="span";b=i.createElement(i.Fragment,null,ne(n,{className:R(J(n)?(o=n.props)===null||o===void 0?void 0:o.className:"",`${s}-item-icon`)}),p?r:i.createElement("span",{className:`${s}-title-content`},r))}const f=i.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[g]=Te("Menu");return i.createElement(te.Provider,{value:f},i.createElement(ut,Object.assign({},Q(e,["icon"]),{title:b,popupClassName:R(s,t,`${s}-${a||m}`),popupStyle:{zIndex:g}})))},_e=Gt;var qt=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const n=o,{label:r,children:a,key:l,type:s}=n,d=qt(n,["label","children","key","type"]),m=l??`tmp-${t}`;return a||s==="group"?s==="group"?i.createElement(Ee,Object.assign({key:m},d,{title:r}),de(a)):i.createElement(_e,Object.assign({key:m},d,{title:r}),de(a)):s==="divider"?i.createElement(Ae,Object.assign({key:m},d)):i.createElement(Le,Object.assign({key:m},d),r)}return null}).filter(o=>o)}function Ut(e){return i.useMemo(()=>e&&de(e),[e])}var Yt=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{children:t}=e,n=Yt(e,["children"]),r=i.useContext(oe),a=i.useMemo(()=>Object.assign(Object.assign({},r),n),[r,n.prefixCls,n.mode,n.selectable,n.rootClassName]),l=Ke(t),s=Je(o,l?t.ref:null);return i.createElement(oe.Provider,{value:a},i.createElement(St,null,l?i.cloneElement(t,{ref:s}):t))}),Kt=e=>{const{componentCls:o,motionDurationSlow:t,horizontalLineHeight:n,colorSplit:r,lineWidth:a,lineType:l,itemPaddingInline:s}=e;return{[`${o}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${C(a)} ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${o}-item, ${o}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${o}-item:hover, +import{r as i,b as Ze,_ as Ke,C as Z,c as R,d as Ne,s as Je,e as Qe,f as C,g as et,t as tt,h as je,m as ce,i as ge,k as Ee,T as be,l as ot,n as ze,o as Pe,p as $e,q as nt,z as rt,R as it,u as lt,v as at,a as st,A as se,j as q,N as ct,O as dt}from"./index-E_dpsFJ8.js";import{R as de}from"./RightOutlined-1vddobSS.js";import{L as fe,D as ut,M as mt,u as pt,S as gt,a as Te,i as ee,E as bt,b as He,s as $t,c as ft,d as vt,e as ht,f as ve,g as Ct,h as yt,j as St}from"./index-o-gj_Z6r.js";import{o as Q,t as De,c as ne,i as J,T as xt,N as wt,g as It,a as Me,u as ke,b as Ot,d as Bt,e as Nt,f as jt,h as Et,j as zt,C as Pt,k as Tt,l as Ht,B as he}from"./index-fFfiboOG.js";var Dt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const Mt=Dt;var Re=function(o,t){return i.createElement(Ze,Ke({},o,{ref:t,icon:Mt}))};Re.displayName="BarsOutlined";const kt=i.forwardRef(Re),Rt=e=>!isNaN(parseFloat(e))&&isFinite(e),At=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Lt=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{let e=0;return function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${o}${e}`}})(),Wt=i.forwardRef((e,o)=>{const{prefixCls:t,className:n,trigger:r,children:a,defaultCollapsed:l=!1,theme:s="dark",style:d={},collapsible:m=!1,reverseArrow:v=!1,width:b=200,collapsedWidth:f=80,zeroWidthTriggerStyle:g,breakpoint:p,onCollapse:u,onBreakpoint:y}=e,S=Lt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:I}=i.useContext(At),[$,N]=i.useState("collapsed"in e?e.collapsed:l),[z,H]=i.useState(!1);i.useEffect(()=>{"collapsed"in e&&N(e.collapsed)},[e.collapsed]);const j=(c,h)=>{"collapsed"in e||N(c),u==null||u(c,h)},P=i.useRef();P.current=c=>{H(c.matches),y==null||y(c.matches),$!==c.matches&&j(c.matches,"responsive")},i.useEffect(()=>{function c(D){return P.current(D)}let h;if(typeof window<"u"){const{matchMedia:D}=window;if(D&&p&&p in Ce){h=D(`screen and (max-width: ${Ce[p]})`);try{h.addEventListener("change",c)}catch{h.addListener(c)}c(h)}}return()=>{try{h==null||h.removeEventListener("change",c)}catch{h==null||h.removeListener(c)}}},[p]),i.useEffect(()=>{const c=_t("ant-sider-");return I.addSider(c),()=>I.removeSider(c)},[]);const w=()=>{j(!$,"clickTrigger")},{getPrefixCls:E}=i.useContext(Z),x=()=>{const c=E("layout-sider",t),h=Q(S,["collapsed"]),D=$?f:b,M=Rt(D)?`${D}px`:String(D),A=parseFloat(String(f||0))===0?i.createElement("span",{onClick:w,className:R(`${c}-zero-width-trigger`,`${c}-zero-width-trigger-${v?"right":"left"}`),style:g},r||i.createElement(kt,null)):null,V={expanded:v?i.createElement(de,null):i.createElement(fe,null),collapsed:v?i.createElement(fe,null):i.createElement(de,null)}[$?"collapsed":"expanded"],L=r!==null?A||i.createElement("div",{className:`${c}-trigger`,onClick:w,style:{width:M}},r||V):null,_=Object.assign(Object.assign({},d),{flex:`0 0 ${M}`,maxWidth:M,minWidth:M,width:M}),X=R(c,`${c}-${s}`,{[`${c}-collapsed`]:!!$,[`${c}-has-trigger`]:m&&r!==null&&!A,[`${c}-below`]:!!z,[`${c}-zero-width`]:parseFloat(M)===0},n);return i.createElement("aside",Object.assign({className:X},h,{style:_,ref:o}),i.createElement("div",{className:`${c}-children`},a),m||z&&A?L:null)},O=i.useMemo(()=>({siderCollapsed:$}),[$]);return i.createElement(me.Provider,{value:O},x())});Wt.displayName="Sider";var Vt=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,className:t,dashed:n}=e,r=Vt(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=i.useContext(Z),l=a("menu",o),s=R({[`${l}-item-divider-dashed`]:!!n},t);return i.createElement(ut,Object.assign({className:s},r))},Ae=Xt,Ft=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=Ft,Gt=e=>{var o;const{className:t,children:n,icon:r,title:a,danger:l}=e,{prefixCls:s,firstLevel:d,direction:m,disableMenuItemTitleTooltip:v,inlineCollapsed:b}=i.useContext(te),f=I=>{const $=i.createElement("span",{className:`${s}-title-content`},n);return(!r||J(n)&&n.type==="span")&&n&&I&&d&&typeof n=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},n.charAt(0)):$},{siderCollapsed:g}=i.useContext(me);let p=a;typeof a>"u"?p=d?n:"":a===!1&&(p="");const u={title:p};!g&&!b&&(u.title=null,u.open=!1);const y=De(n).length;let S=i.createElement(mt,Object.assign({},Q(e,["title","icon","danger"]),{className:R({[`${s}-item-danger`]:l,[`${s}-item-only-child`]:(r?y+1:y)===1},t),title:typeof a=="string"?a:void 0}),ne(r,{className:R(J(r)?(o=r.props)===null||o===void 0?void 0:o.className:"",`${s}-item-icon`)}),f(b));return v||(S=i.createElement(xt,Object.assign({},u,{placement:m==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),S)),S},Le=Gt,qt=e=>{var o;const{popupClassName:t,icon:n,title:r,theme:a}=e,l=i.useContext(te),{prefixCls:s,inlineCollapsed:d,theme:m}=l,v=pt();let b;if(!n)b=d&&!v.length&&r&&typeof r=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):i.createElement("span",{className:`${s}-title-content`},r);else{const p=J(r)&&r.type==="span";b=i.createElement(i.Fragment,null,ne(n,{className:R(J(n)?(o=n.props)===null||o===void 0?void 0:o.className:"",`${s}-item-icon`)}),p?r:i.createElement("span",{className:`${s}-title-content`},r))}const f=i.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[g]=Ne("Menu");return i.createElement(te.Provider,{value:f},i.createElement(gt,Object.assign({},Q(e,["icon"]),{title:b,popupClassName:R(s,t,`${s}-${a||m}`),popupStyle:{zIndex:g}})))},_e=qt;var Ut=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const n=o,{label:r,children:a,key:l,type:s}=n,d=Ut(n,["label","children","key","type"]),m=l??`tmp-${t}`;return a||s==="group"?s==="group"?i.createElement(Te,Object.assign({key:m},d,{title:r}),ue(a)):i.createElement(_e,Object.assign({key:m},d,{title:r}),ue(a)):s==="divider"?i.createElement(Ae,Object.assign({key:m},d)):i.createElement(Le,Object.assign({key:m},d),r)}return null}).filter(o=>o)}function Yt(e){return i.useMemo(()=>e&&ue(e),[e])}var Zt=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{children:t}=e,n=Zt(e,["children"]),r=i.useContext(oe),a=i.useMemo(()=>Object.assign(Object.assign({},r),n),[r,n.prefixCls,n.mode,n.selectable,n.rootClassName]),l=Je(t),s=Qe(o,l?t.ref:null);return i.createElement(oe.Provider,{value:a},i.createElement(wt,null,l?i.cloneElement(t,{ref:s}):t))}),Jt=e=>{const{componentCls:o,motionDurationSlow:t,horizontalLineHeight:n,colorSplit:r,lineWidth:a,lineType:l,itemPaddingInline:s}=e;return{[`${o}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${C(a)} ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${o}-item, ${o}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${o}-item:hover, > ${o}-item-active, - > ${o}-submenu ${o}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${o}-item, ${o}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${o}-submenu-arrow`]:{display:"none"}}}},Jt=e=>{let{componentCls:o,menuArrowOffset:t,calc:n}=e;return{[`${o}-rtl`]:{direction:"rtl"},[`${o}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${o}-rtl${o}-vertical, - ${o}-submenu-rtl ${o}-vertical`]:{[`${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${C(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${C(t)})`}}}}},ye=e=>Object.assign({},Qe(e)),Se=(e,o)=>{const{componentCls:t,itemColor:n,itemSelectedColor:r,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:d,activeBarHeight:m,activeBarWidth:v,activeBarBorderWidth:b,motionDurationSlow:f,motionEaseInOut:g,motionEaseOut:p,itemPaddingInline:u,motionDurationMid:y,itemHoverColor:S,lineType:I,colorSplit:$,itemDisabledColor:N,dangerItemColor:z,dangerItemHoverColor:H,dangerItemSelectedColor:j,dangerItemActiveBg:P,dangerItemSelectedBg:w,popupBg:E,itemHoverBg:x,itemActiveBg:O,menuSubMenuBg:c,horizontalItemSelectedColor:h,horizontalItemSelectedBg:M,horizontalItemBorderRadius:D,horizontalItemHoverBg:A}=e;return{[`${t}-${o}, ${t}-${o} > ${t}`]:{color:n,background:l,[`&${t}-root:focus-visible`]:Object.assign({},ye(e)),[`${t}-item-group-title`]:{color:a},[`${t}-submenu-selected`]:{[`> ${t}-submenu-title`]:{color:r}},[`${t}-item, ${t}-submenu-title`]:{color:n,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},ye(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${N} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:S}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:x},"&:active":{backgroundColor:O}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:x},"&:active":{backgroundColor:O}}},[`${t}-item-danger`]:{color:z,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:H}},[`&${t}-item:active`]:{background:P}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:r,[`&${t}-item-danger`]:{color:j},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:d,[`&${t}-item-danger`]:{backgroundColor:w}},[`&${t}-submenu > ${t}`]:{backgroundColor:c},[`&${t}-popup > ${t}`]:{backgroundColor:E},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:E},[`&${t}-horizontal`]:Object.assign(Object.assign({},o==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:b,marginTop:e.calc(b).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:u,bottom:0,borderBottom:`${C(m)} solid transparent`,transition:`border-color ${f} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:m,borderBottomColor:h}},"&-selected":{color:h,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:m,borderBottomColor:h}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${C(b)} ${I} ${$}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:s},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${C(v)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${p}`,`opacity ${y} ${p}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:j}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(",")}}}}}},xe=e=>{const{componentCls:o,itemHeight:t,itemMarginInline:n,padding:r,menuArrowSize:a,marginXS:l,itemMarginBlock:s,itemWidth:d}=e,m=e.calc(a).add(r).add(l).equal();return{[`${o}-item`]:{position:"relative",overflow:"hidden"},[`${o}-item, ${o}-submenu-title`]:{height:t,lineHeight:C(t),paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:d},[`> ${o}-item, + > ${o}-submenu ${o}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${o}-item, ${o}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${o}-submenu-arrow`]:{display:"none"}}}},Qt=e=>{let{componentCls:o,menuArrowOffset:t,calc:n}=e;return{[`${o}-rtl`]:{direction:"rtl"},[`${o}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${o}-rtl${o}-vertical, + ${o}-submenu-rtl ${o}-vertical`]:{[`${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${C(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${C(t)})`}}}}},ye=e=>Object.assign({},et(e)),Se=(e,o)=>{const{componentCls:t,itemColor:n,itemSelectedColor:r,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:d,activeBarHeight:m,activeBarWidth:v,activeBarBorderWidth:b,motionDurationSlow:f,motionEaseInOut:g,motionEaseOut:p,itemPaddingInline:u,motionDurationMid:y,itemHoverColor:S,lineType:I,colorSplit:$,itemDisabledColor:N,dangerItemColor:z,dangerItemHoverColor:H,dangerItemSelectedColor:j,dangerItemActiveBg:P,dangerItemSelectedBg:w,popupBg:E,itemHoverBg:x,itemActiveBg:O,menuSubMenuBg:c,horizontalItemSelectedColor:h,horizontalItemSelectedBg:D,horizontalItemBorderRadius:M,horizontalItemHoverBg:A}=e;return{[`${t}-${o}, ${t}-${o} > ${t}`]:{color:n,background:l,[`&${t}-root:focus-visible`]:Object.assign({},ye(e)),[`${t}-item-group-title`]:{color:a},[`${t}-submenu-selected`]:{[`> ${t}-submenu-title`]:{color:r}},[`${t}-item, ${t}-submenu-title`]:{color:n,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},ye(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${N} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:S}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:x},"&:active":{backgroundColor:O}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:x},"&:active":{backgroundColor:O}}},[`${t}-item-danger`]:{color:z,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:H}},[`&${t}-item:active`]:{background:P}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:r,[`&${t}-item-danger`]:{color:j},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:d,[`&${t}-item-danger`]:{backgroundColor:w}},[`&${t}-submenu > ${t}`]:{backgroundColor:c},[`&${t}-popup > ${t}`]:{backgroundColor:E},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:E},[`&${t}-horizontal`]:Object.assign(Object.assign({},o==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:b,marginTop:e.calc(b).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:u,bottom:0,borderBottom:`${C(m)} solid transparent`,transition:`border-color ${f} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:m,borderBottomColor:h}},"&-selected":{color:h,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:m,borderBottomColor:h}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${C(b)} ${I} ${$}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:s},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${C(v)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${p}`,`opacity ${y} ${p}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:j}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(",")}}}}}},xe=e=>{const{componentCls:o,itemHeight:t,itemMarginInline:n,padding:r,menuArrowSize:a,marginXS:l,itemMarginBlock:s,itemWidth:d}=e,m=e.calc(a).add(r).add(l).equal();return{[`${o}-item`]:{position:"relative",overflow:"hidden"},[`${o}-item, ${o}-submenu-title`]:{height:t,lineHeight:C(t),paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:d},[`> ${o}-item, > ${o}-submenu > ${o}-submenu-title`]:{height:t,lineHeight:C(t)},[`${o}-item-group-list ${o}-submenu-title, - ${o}-submenu-title`]:{paddingInlineEnd:m}}},Qt=e=>{const{componentCls:o,iconCls:t,itemHeight:n,colorTextLightSolid:r,dropdownWidth:a,controlHeightLG:l,motionDurationMid:s,motionEaseOut:d,paddingXL:m,itemMarginInline:v,fontSizeLG:b,motionDurationSlow:f,paddingXS:g,boxShadowSecondary:p,collapsedWidth:u,collapsedIconSize:y}=e,S={height:n,lineHeight:C(n),listStylePosition:"inside",listStyleType:"disc"};return[{[o]:{"&-inline, &-vertical":Object.assign({[`&${o}-root`]:{boxShadow:"none"}},xe(e))},[`${o}-submenu-popup`]:{[`${o}-vertical`]:Object.assign(Object.assign({},xe(e)),{boxShadow:p})}},{[`${o}-submenu-popup ${o}-vertical${o}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${C(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${o}-inline`]:{width:"100%",[`&${o}-root`]:{[`${o}-item, ${o}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${d}`].join(","),[`> ${o}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${o}-sub${o}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${o}-submenu > ${o}-submenu-title`]:S,[`& ${o}-item-group-title`]:{paddingInlineStart:m}},[`${o}-item`]:S}},{[`${o}-inline-collapsed`]:{width:u,[`&${o}-root`]:{[`${o}-item, ${o}-submenu ${o}-submenu-title`]:{[`> ${o}-inline-collapsed-noicon`]:{fontSize:b,textAlign:"center"}}},[`> ${o}-item, + ${o}-submenu-title`]:{paddingInlineEnd:m}}},eo=e=>{const{componentCls:o,iconCls:t,itemHeight:n,colorTextLightSolid:r,dropdownWidth:a,controlHeightLG:l,motionDurationMid:s,motionEaseOut:d,paddingXL:m,itemMarginInline:v,fontSizeLG:b,motionDurationSlow:f,paddingXS:g,boxShadowSecondary:p,collapsedWidth:u,collapsedIconSize:y}=e,S={height:n,lineHeight:C(n),listStylePosition:"inside",listStyleType:"disc"};return[{[o]:{"&-inline, &-vertical":Object.assign({[`&${o}-root`]:{boxShadow:"none"}},xe(e))},[`${o}-submenu-popup`]:{[`${o}-vertical`]:Object.assign(Object.assign({},xe(e)),{boxShadow:p})}},{[`${o}-submenu-popup ${o}-vertical${o}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${C(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${o}-inline`]:{width:"100%",[`&${o}-root`]:{[`${o}-item, ${o}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${d}`].join(","),[`> ${o}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${o}-sub${o}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${o}-submenu > ${o}-submenu-title`]:S,[`& ${o}-item-group-title`]:{paddingInlineStart:m}},[`${o}-item`]:S}},{[`${o}-inline-collapsed`]:{width:u,[`&${o}-root`]:{[`${o}-item, ${o}-submenu ${o}-submenu-title`]:{[`> ${o}-inline-collapsed-noicon`]:{fontSize:b,textAlign:"center"}}},[`> ${o}-item, > ${o}-item-group > ${o}-item-group-list > ${o}-item, > ${o}-item-group > ${o}-item-group-list > ${o}-submenu > ${o}-submenu-title, > ${o}-submenu > ${o}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${C(e.calc(b).div(2).equal())} - ${C(v)})`,textOverflow:"clip",[` ${o}-submenu-arrow, ${o}-submenu-expand-icon - `]:{opacity:0},[`${o}-item-icon, ${t}`]:{margin:0,fontSize:y,lineHeight:C(n),"+ span":{display:"inline-block",opacity:0}}},[`${o}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${o}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:r}},[`${o}-item-group-title`]:Object.assign(Object.assign({},et),{paddingInline:g})}}]},we=e=>{const{componentCls:o,motionDurationSlow:t,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:a,iconCls:l,iconSize:s,iconMarginInlineEnd:d}=e;return{[`${o}-item, ${o}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding ${t} ${r}`].join(","),[`${o}-item-icon, ${l}`]:{minWidth:s,fontSize:s,transition:[`font-size ${n} ${a}`,`margin ${t} ${r}`,`color ${t}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${t} ${r}`,`margin ${t}`,`color ${t}`].join(",")}},[`${o}-item-icon`]:Object.assign({},tt()),[`&${o}-item-only-child`]:{[`> ${l}, > ${o}-item-icon`]:{marginInlineEnd:0}}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${o}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ie=e=>{const{componentCls:o,motionDurationSlow:t,motionEaseInOut:n,borderRadius:r,menuArrowSize:a,menuArrowOffset:l}=e;return{[`${o}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${n}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${t} ${n}`,`transform ${t} ${n}`,`top ${t} ${n}`,`color ${t} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${C(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${C(l)})`}}}}},eo=e=>{const{antCls:o,componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:a,motionEaseInOut:l,paddingXS:s,padding:d,colorSplit:m,lineWidth:v,zIndexPopup:b,borderRadiusLG:f,subMenuItemBorderRadius:g,menuArrowSize:p,menuArrowOffset:u,lineType:y,groupTitleLineHeight:S,groupTitleFontSize:I}=e;return[{"":{[`${t}`]:Object.assign(Object.assign({},pe()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne(e)),pe()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${C(s)} ${C(d)}`,fontSize:I,lineHeight:S,transition:`all ${r}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${a} ${l}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${t}-title-content`]:{transition:`color ${r}`,[`> ${o}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:y,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),we(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${C(e.calc(n).mul(2).equal())} ${C(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:b,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},we(e)),Ie(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:g},[`${t}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Ie(e)),{[`&-inline-collapsed ${t}-submenu-arrow, - &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${C(u)})`},"&::after":{transform:`rotate(45deg) translateX(${C(e.calc(u).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${C(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${C(e.calc(u).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${C(u)})`}}})},{[`${o}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},to=e=>{var o,t,n;const{colorPrimary:r,colorError:a,colorTextDisabled:l,colorErrorBg:s,colorText:d,colorTextDescription:m,colorBgContainer:v,colorFillAlter:b,colorFillContent:f,lineWidth:g,lineWidthBold:p,controlItemBgActive:u,colorBgTextHover:y,controlHeightLG:S,lineHeight:I,colorBgElevated:$,marginXXS:N,padding:z,fontSize:H,controlHeightSM:j,fontSizeLG:P,colorTextLightSolid:w,colorErrorHover:E}=e,x=(o=e.activeBarWidth)!==null&&o!==void 0?o:0,O=(t=e.activeBarBorderWidth)!==null&&t!==void 0?t:g,c=(n=e.itemMarginInline)!==null&&n!==void 0?n:e.marginXXS,h=new ge(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:m,groupTitleColor:m,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:v,itemBg:v,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:f,itemActiveBg:u,colorSubItemBg:b,subMenuItemBg:b,colorItemBgSelected:u,itemSelectedBg:u,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:x,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:g,activeBarBorderWidth:O,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:c,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:I,collapsedWidth:S*2,popupBg:$,itemMarginBlock:N,itemPaddingInline:z,horizontalLineHeight:`${S*1.15}px`,iconSize:H,iconMarginInlineEnd:j-H,collapsedIconSize:P,groupTitleFontSize:H,darkItemDisabledColor:new ge(w).setAlpha(.25).toRgbString(),darkItemColor:h,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:r,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:h,darkItemHoverColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:a,itemWidth:x?`calc(100% + ${O}px)`:`calc(100% - ${c*2}px)`}},oo=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return He("Menu",r=>{const{colorBgElevated:a,colorPrimary:l,colorTextLightSolid:s,controlHeightLG:d,fontSize:m,darkItemColor:v,darkDangerItemColor:b,darkItemBg:f,darkSubMenuItemBg:g,darkItemSelectedColor:p,darkItemSelectedBg:u,darkDangerItemSelectedBg:y,darkItemHoverBg:S,darkGroupTitleColor:I,darkItemHoverColor:$,darkItemDisabledColor:N,darkDangerItemHoverColor:z,darkDangerItemSelectedColor:H,darkDangerItemActiveBg:j,popupBg:P,darkPopupBg:w}=r,E=r.calc(m).div(7).mul(5).equal(),x=ce(r,{menuArrowSize:E,menuHorizontalHeight:r.calc(d).mul(1.15).equal(),menuArrowOffset:r.calc(E).mul(.25).equal(),menuSubMenuBg:a,calc:r.calc,popupBg:P}),O=ce(x,{itemColor:v,itemHoverColor:$,groupTitleColor:I,itemSelectedColor:p,itemBg:f,popupBg:w,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:u,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:N,dangerItemColor:b,dangerItemHoverColor:z,dangerItemSelectedColor:H,dangerItemActiveBg:j,dangerItemSelectedBg:y,menuSubMenuBg:g,horizontalItemSelectedColor:s,horizontalItemSelectedBg:l});return[eo(x),Kt(x),Qt(x),Se(x,"light"),Se(O,"dark"),Jt(x),xt(x),ee(x,"slide-up"),ee(x,"slide-down"),Me(x,"zoom-big")]},to,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:t,unitless:{groupTitleLineHeight:!0}})(e,o)};var no=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{var t,n;const r=i.useContext(oe),a=r||{},{getPrefixCls:l,getPopupContainer:s,direction:d,menu:m}=i.useContext(Z),v=l(),{prefixCls:b,className:f,style:g,theme:p="light",expandIcon:u,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:S,siderCollapsed:I,items:$,children:N,rootClassName:z,mode:H,selectable:j,onClick:P,overflowedIndicatorPopupClassName:w}=e,E=no(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),x=Q(E,["collapsedWidth"]),O=Ut($)||N;{const k=je("Menu");k(!("inlineCollapsed"in e&&H!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),k(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),k.deprecated("items"in e&&!N,"children","items")}(t=a.validator)===null||t===void 0||t.call(a,{mode:H});const c=De(function(){var k;P==null||P.apply(void 0,arguments),(k=a.onClick)===null||k===void 0||k.call(a)}),h=a.mode||H,M=j??a.selectable,D=i.useMemo(()=>I!==void 0?I:S,[S,I]),A={horizontal:{motionName:`${v}-slide-up`},inline:wt(v),other:{motionName:`${v}-zoom-big`}},T=l("menu",b||a.prefixCls),F=ke(T),[V,L,_]=oo(T,F,!r),X=R(`${T}-${p}`,m==null?void 0:m.className,f);let W;if(typeof u=="function")W=u;else if(u===null||u===!1)W=null;else if(a.expandIcon===null||a.expandIcon===!1)W=null;else{const k=u??a.expandIcon;W=ne(k,{className:R(`${T}-submenu-expand-icon`,J(k)?(n=k.props)===null||n===void 0?void 0:n.className:"")})}const G=i.useMemo(()=>({prefixCls:T,inlineCollapsed:D||!1,direction:d,firstLevel:!0,theme:p,mode:h,disableMenuItemTitleTooltip:y}),[T,D,d,y,p]);return V(i.createElement(oe.Provider,{value:null},i.createElement(te.Provider,{value:G},i.createElement(mt,Object.assign({getPopupContainer:s,overflowedIndicator:i.createElement(ze,null),overflowedIndicatorPopupClassName:R(T,`${T}-${p}`,w),mode:h,selectable:M,onClick:c},x,{inlineCollapsed:D,style:Object.assign(Object.assign({},m==null?void 0:m.style),g),className:X,prefixCls:T,direction:d,defaultMotions:A,expandIcon:W,ref:o,rootClassName:R(z,L,a.rootClassName,_,F)}),O))))}),io=ro,K=i.forwardRef((e,o)=>{const t=i.useRef(null),n=i.useContext(ue);return i.useImperativeHandle(o,()=>({menu:t.current,focus:r=>{var a;(a=t.current)===null||a===void 0||a.focus(r)}})),i.createElement(io,Object.assign({ref:t},e,n))});K.Item=Le;K.SubMenu=_e;K.Divider=Ae;K.ItemGroup=Ee;K.displayName="Menu";const lo=K,ao=e=>{const{componentCls:o,menuCls:t,colorError:n,colorTextLightSolid:r}=e,a=`${t}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${t} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:n,"&:hover":{color:r,backgroundColor:n}}}}}},so=ao,co=e=>{const{componentCls:o,menuCls:t,zIndexPopup:n,dropdownArrowDistance:r,sizePopupArrow:a,antCls:l,iconCls:s,motionDurationMid:d,paddingBlock:m,fontSize:v,dropdownEdgeChildPadding:b,colorTextDisabled:f,fontSizeIcon:g,controlPaddingHorizontal:p,colorBgElevated:u}=e;return[{[o]:Object.assign(Object.assign({},Ne(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${l}-btn`]:{[`& > ${s}-down, & > ${l}-btn-icon > ${s}-down`]:{fontSize:g}},[`${o}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${d}`}},[`${o}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${o}-placement-bottomLeft, + `]:{opacity:0},[`${o}-item-icon, ${t}`]:{margin:0,fontSize:y,lineHeight:C(n),"+ span":{display:"inline-block",opacity:0}}},[`${o}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${o}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:r}},[`${o}-item-group-title`]:Object.assign(Object.assign({},tt),{paddingInline:g})}}]},we=e=>{const{componentCls:o,motionDurationSlow:t,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:a,iconCls:l,iconSize:s,iconMarginInlineEnd:d}=e;return{[`${o}-item, ${o}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding ${t} ${r}`].join(","),[`${o}-item-icon, ${l}`]:{minWidth:s,fontSize:s,transition:[`font-size ${n} ${a}`,`margin ${t} ${r}`,`color ${t}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${t} ${r}`,`margin ${t}`,`color ${t}`].join(",")}},[`${o}-item-icon`]:Object.assign({},ot()),[`&${o}-item-only-child`]:{[`> ${l}, > ${o}-item-icon`]:{marginInlineEnd:0}}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${o}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ie=e=>{const{componentCls:o,motionDurationSlow:t,motionEaseInOut:n,borderRadius:r,menuArrowSize:a,menuArrowOffset:l}=e;return{[`${o}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${n}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${t} ${n}`,`transform ${t} ${n}`,`top ${t} ${n}`,`color ${t} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${C(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${C(l)})`}}}}},to=e=>{const{antCls:o,componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:a,motionEaseInOut:l,paddingXS:s,padding:d,colorSplit:m,lineWidth:v,zIndexPopup:b,borderRadiusLG:f,subMenuItemBorderRadius:g,menuArrowSize:p,menuArrowOffset:u,lineType:y,groupTitleLineHeight:S,groupTitleFontSize:I}=e;return[{"":{[`${t}`]:Object.assign(Object.assign({},ge()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ee(e)),ge()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${C(s)} ${C(d)}`,fontSize:I,lineHeight:S,transition:`all ${r}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${a} ${l}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${t}-title-content`]:{transition:`color ${r}`,[`> ${o}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:y,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),we(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${C(e.calc(n).mul(2).equal())} ${C(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:b,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},we(e)),Ie(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:g},[`${t}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Ie(e)),{[`&-inline-collapsed ${t}-submenu-arrow, + &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${C(u)})`},"&::after":{transform:`rotate(45deg) translateX(${C(e.calc(u).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${C(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${C(e.calc(u).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${C(u)})`}}})},{[`${o}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},oo=e=>{var o,t,n;const{colorPrimary:r,colorError:a,colorTextDisabled:l,colorErrorBg:s,colorText:d,colorTextDescription:m,colorBgContainer:v,colorFillAlter:b,colorFillContent:f,lineWidth:g,lineWidthBold:p,controlItemBgActive:u,colorBgTextHover:y,controlHeightLG:S,lineHeight:I,colorBgElevated:$,marginXXS:N,padding:z,fontSize:H,controlHeightSM:j,fontSizeLG:P,colorTextLightSolid:w,colorErrorHover:E}=e,x=(o=e.activeBarWidth)!==null&&o!==void 0?o:0,O=(t=e.activeBarBorderWidth)!==null&&t!==void 0?t:g,c=(n=e.itemMarginInline)!==null&&n!==void 0?n:e.marginXXS,h=new be(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:m,groupTitleColor:m,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:v,itemBg:v,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:f,itemActiveBg:u,colorSubItemBg:b,subMenuItemBg:b,colorItemBgSelected:u,itemSelectedBg:u,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:x,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:g,activeBarBorderWidth:O,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:c,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:I,collapsedWidth:S*2,popupBg:$,itemMarginBlock:N,itemPaddingInline:z,horizontalLineHeight:`${S*1.15}px`,iconSize:H,iconMarginInlineEnd:j-H,collapsedIconSize:P,groupTitleFontSize:H,darkItemDisabledColor:new be(w).setAlpha(.25).toRgbString(),darkItemColor:h,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:r,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:h,darkItemHoverColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:a,itemWidth:x?`calc(100% + ${O}px)`:`calc(100% - ${c*2}px)`}},no=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return je("Menu",r=>{const{colorBgElevated:a,colorPrimary:l,colorTextLightSolid:s,controlHeightLG:d,fontSize:m,darkItemColor:v,darkDangerItemColor:b,darkItemBg:f,darkSubMenuItemBg:g,darkItemSelectedColor:p,darkItemSelectedBg:u,darkDangerItemSelectedBg:y,darkItemHoverBg:S,darkGroupTitleColor:I,darkItemHoverColor:$,darkItemDisabledColor:N,darkDangerItemHoverColor:z,darkDangerItemSelectedColor:H,darkDangerItemActiveBg:j,popupBg:P,darkPopupBg:w}=r,E=r.calc(m).div(7).mul(5).equal(),x=ce(r,{menuArrowSize:E,menuHorizontalHeight:r.calc(d).mul(1.15).equal(),menuArrowOffset:r.calc(E).mul(.25).equal(),menuSubMenuBg:a,calc:r.calc,popupBg:P}),O=ce(x,{itemColor:v,itemHoverColor:$,groupTitleColor:I,itemSelectedColor:p,itemBg:f,popupBg:w,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:u,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:N,dangerItemColor:b,dangerItemHoverColor:z,dangerItemSelectedColor:H,dangerItemActiveBg:j,dangerItemSelectedBg:y,menuSubMenuBg:g,horizontalItemSelectedColor:s,horizontalItemSelectedBg:l});return[to(x),Jt(x),eo(x),Se(x,"light"),Se(O,"dark"),Qt(x),It(x),ee(x,"slide-up"),ee(x,"slide-down"),Me(x,"zoom-big")]},oo,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:t,unitless:{groupTitleLineHeight:!0}})(e,o)};var ro=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{var t,n;const r=i.useContext(oe),a=r||{},{getPrefixCls:l,getPopupContainer:s,direction:d,menu:m}=i.useContext(Z),v=l(),{prefixCls:b,className:f,style:g,theme:p="light",expandIcon:u,_internalDisableMenuItemTitleTooltip:y,inlineCollapsed:S,siderCollapsed:I,items:$,children:N,rootClassName:z,mode:H,selectable:j,onClick:P,overflowedIndicatorPopupClassName:w}=e,E=ro(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),x=Q(E,["collapsedWidth"]),O=Yt($)||N;{const k=ze("Menu");k(!("inlineCollapsed"in e&&H!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),k(!(e.siderCollapsed!==void 0&&"inlineCollapsed"in e),"usage","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),k.deprecated("items"in e&&!N,"children","items")}(t=a.validator)===null||t===void 0||t.call(a,{mode:H});const c=ke(function(){var k;P==null||P.apply(void 0,arguments),(k=a.onClick)===null||k===void 0||k.call(a)}),h=a.mode||H,D=j??a.selectable,M=i.useMemo(()=>I!==void 0?I:S,[S,I]),A={horizontal:{motionName:`${v}-slide-up`},inline:Ot(v),other:{motionName:`${v}-zoom-big`}},T=l("menu",b||a.prefixCls),F=Pe(T),[V,L,_]=no(T,F,!r),X=R(`${T}-${p}`,m==null?void 0:m.className,f);let W;if(typeof u=="function")W=u;else if(u===null||u===!1)W=null;else if(a.expandIcon===null||a.expandIcon===!1)W=null;else{const k=u??a.expandIcon;W=ne(k,{className:R(`${T}-submenu-expand-icon`,J(k)?(n=k.props)===null||n===void 0?void 0:n.className:"")})}const G=i.useMemo(()=>({prefixCls:T,inlineCollapsed:M||!1,direction:d,firstLevel:!0,theme:p,mode:h,disableMenuItemTitleTooltip:y}),[T,M,d,y,p]);return V(i.createElement(oe.Provider,{value:null},i.createElement(te.Provider,{value:G},i.createElement(bt,Object.assign({getPopupContainer:s,overflowedIndicator:i.createElement(He,null),overflowedIndicatorPopupClassName:R(T,`${T}-${p}`,w),mode:h,selectable:D,onClick:c},x,{inlineCollapsed:M,style:Object.assign(Object.assign({},m==null?void 0:m.style),g),className:X,prefixCls:T,direction:d,defaultMotions:A,expandIcon:W,ref:o,rootClassName:R(z,L,a.rootClassName,_,F)}),O))))}),lo=io,K=i.forwardRef((e,o)=>{const t=i.useRef(null),n=i.useContext(me);return i.useImperativeHandle(o,()=>({menu:t.current,focus:r=>{var a;(a=t.current)===null||a===void 0||a.focus(r)}})),i.createElement(lo,Object.assign({ref:t},e,n))});K.Item=Le;K.SubMenu=_e;K.Divider=Ae;K.ItemGroup=Te;K.displayName="Menu";const ao=K,so=e=>{const{componentCls:o,menuCls:t,colorError:n,colorTextLightSolid:r}=e,a=`${t}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${t} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:n,"&:hover":{color:r,backgroundColor:n}}}}}},co=so,uo=e=>{const{componentCls:o,menuCls:t,zIndexPopup:n,dropdownArrowDistance:r,sizePopupArrow:a,antCls:l,iconCls:s,motionDurationMid:d,paddingBlock:m,fontSize:v,dropdownEdgeChildPadding:b,colorTextDisabled:f,fontSizeIcon:g,controlPaddingHorizontal:p,colorBgElevated:u}=e;return[{[o]:Object.assign(Object.assign({},Ee(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${l}-btn`]:{[`& > ${s}-down, & > ${l}-btn-icon > ${s}-down`]:{fontSize:g}},[`${o}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${d}`}},[`${o}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${o}-placement-bottomLeft, &${l}-slide-down-appear${l}-slide-down-appear-active${o}-placement-bottomLeft, &${l}-slide-down-enter${l}-slide-down-enter-active${o}-placement-bottom, &${l}-slide-down-appear${l}-slide-down-appear-active${o}-placement-bottom, &${l}-slide-down-enter${l}-slide-down-enter-active${o}-placement-bottomRight, - &${l}-slide-down-appear${l}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:pt},[`&${l}-slide-up-enter${l}-slide-up-enter-active${o}-placement-topLeft, + &${l}-slide-down-appear${l}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:$t},[`&${l}-slide-up-enter${l}-slide-up-enter-active${o}-placement-topLeft, &${l}-slide-up-appear${l}-slide-up-appear-active${o}-placement-topLeft, &${l}-slide-up-enter${l}-slide-up-enter-active${o}-placement-top, &${l}-slide-up-appear${l}-slide-up-appear-active${o}-placement-top, &${l}-slide-up-enter${l}-slide-up-enter-active${o}-placement-topRight, - &${l}-slide-up-appear${l}-slide-up-appear-active${o}-placement-topRight`]:{animationName:gt},[`&${l}-slide-down-leave${l}-slide-down-leave-active${o}-placement-bottomLeft, + &${l}-slide-up-appear${l}-slide-up-appear-active${o}-placement-topRight`]:{animationName:ft},[`&${l}-slide-down-leave${l}-slide-down-leave-active${o}-placement-bottomLeft, &${l}-slide-down-leave${l}-slide-down-leave-active${o}-placement-bottom, - &${l}-slide-down-leave${l}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:bt},[`&${l}-slide-up-leave${l}-slide-up-leave-active${o}-placement-topLeft, + &${l}-slide-down-leave${l}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:vt},[`&${l}-slide-up-leave${l}-slide-up-leave-active${o}-placement-topLeft, &${l}-slide-up-leave${l}-slide-up-leave-active${o}-placement-top, - &${l}-slide-up-leave${l}-slide-up-leave-active${o}-placement-topRight`]:{animationName:$t}})},It(e,u,{arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{[t]:Object.assign(Object.assign({padding:b,listStyleType:"none",backgroundColor:u,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},be(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${C(m)} ${C(p)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:v,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${d}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${t}-item, ${t}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${C(m)} ${C(p)}`,color:e.colorText,fontWeight:"normal",fontSize:v,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},be(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:u,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${C(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${t}-item-group-list`]:{margin:`0 ${C(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:u,cursor:"not-allowed"}},[`${t}-submenu-selected ${o}-menu-submenu-title`]:{color:e.colorPrimary}})}},[ee(e,"slide-up"),ee(e,"slide-down"),ve(e,"move-up"),ve(e,"move-down"),Me(e,"zoom-big")]]},uo=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Ot({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Bt(e)),mo=He("Dropdown",e=>{const{marginXXS:o,sizePopupArrow:t,paddingXXS:n,componentCls:r}=e,a=ce(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(o).equal(),dropdownEdgeChildPadding:n});return[co(a),so(a)]},uo),re=e=>{const{menu:o,arrow:t,prefixCls:n,children:r,trigger:a,disabled:l,dropdownRender:s,getPopupContainer:d,overlayClassName:m,rootClassName:v,overlayStyle:b,open:f,onOpenChange:g,visible:p,onVisibleChange:u,mouseEnterDelay:y=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:I=!0,placement:$="",overlay:N,transitionName:z}=e,{getPopupContainer:H,getPrefixCls:j,direction:P,dropdown:w}=i.useContext(Z),E=je("Dropdown");[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(B=>{let[U,Y]=B;E.deprecated(!(U in e),U,Y)}),E.deprecated(!("overlay"in e),"overlay","menu");const x=i.useMemo(()=>{const B=j();return z!==void 0?z:$.includes("top")?`${B}-slide-down`:`${B}-slide-up`},[j,$,z]),O=i.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:P==="rtl"?"bottomRight":"bottomLeft",[$,P]);{if($.includes("Center")){const B=$.slice(0,$.indexOf("Center"));E(!$.includes("Center"),"deprecated",`You are using '${$}' placement in Dropdown, which is deprecated. Try to use '${B}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(B=>{let[U,Y]=B;E.deprecated(!(U in e),U,Y)})}const c=j("dropdown",n),h=ke(c),[M,D,A]=mo(c,h),[,T]=ot(),F=i.Children.only(r),V=ne(F,{className:R(`${c}-trigger`,{[`${c}-rtl`]:P==="rtl"},F.props.className),disabled:l}),L=l?[]:a;let _;L&&L.includes("contextMenu")&&(_=!0);const[X,W]=Nt(!1,{value:f??p}),G=De(B=>{g==null||g(B,{source:"trigger"}),u==null||u(B),W(B)}),k=R(m,v,D,A,h,w==null?void 0:w.className,{[`${c}-rtl`]:P==="rtl"}),ie=jt({arrowPointAtCenter:typeof t=="object"&&t.pointAtCenter,autoAdjustOverflow:I,offset:T.marginXXS,arrowWidth:t?T.sizePopupArrow:0,borderRadius:T.borderRadius}),le=i.useCallback(()=>{o!=null&&o.selectable&&(o!=null&&o.multiple)||(g==null||g(!1,{source:"menu"}),W(!1))},[o==null?void 0:o.selectable,o==null?void 0:o.multiple]),Ue=()=>{let B;return o!=null&&o.items?B=i.createElement(lo,Object.assign({},o)):typeof N=="function"?B=N():B=N,s&&(B=s(B)),B=i.Children.only(typeof B=="string"?i.createElement("span",null,B):B),i.createElement(Zt,{prefixCls:`${c}-menu`,rootClassName:R(A,h),expandIcon:i.createElement("span",{className:`${c}-menu-submenu-arrow`},i.createElement(se,{className:`${c}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:le,validator:U=>{let{mode:Y}=U;E(!Y||Y==="vertical","usage",`mode="${Y}" is not supported for Dropdown's Menu.`)}},B)},[me,Ye]=Te("Dropdown",b==null?void 0:b.zIndex);let ae=i.createElement(ft,Object.assign({alignPoint:_},Q(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:S,visible:X,builtinPlacements:ie,arrow:!!t,overlayClassName:k,prefixCls:c,getPopupContainer:d||H,transitionName:x,trigger:L,overlay:Ue,placement:O,onVisibleChange:G,overlayStyle:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.style),b),{zIndex:me})}),V);return me&&(ae=i.createElement(Et.Provider,{value:Ye},ae)),M(ae)};function po(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const go=vt(re,"dropdown",e=>e,po),bo=e=>i.createElement(go,Object.assign({},e),i.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=bo;re.displayName="Dropdown";const We=re;function Oe(e){return["small","middle","large"].includes(e)}function Be(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Ve=nt.createContext({latestIndex:0}),$o=Ve.Provider,fo=e=>{let{className:o,index:t,children:n,split:r,style:a}=e;const{latestIndex:l}=i.useContext(Ve);return n==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:o,style:a},n),t{var t,n;const{getPrefixCls:r,space:a,direction:l}=i.useContext(Z),{size:s=(a==null?void 0:a.size)||"small",align:d,className:m,rootClassName:v,children:b,direction:f="horizontal",prefixCls:g,split:p,style:u,wrap:y=!1,classNames:S,styles:I}=e,$=ho(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[N,z]=Array.isArray(s)?s:[s,s],H=Oe(z),j=Oe(N),P=Be(z),w=Be(N),E=Pe(b,{keepEmpty:!0}),x=d===void 0&&f==="horizontal"?"center":d,O=r("space",g),[c,h,M]=Pt(O),D=R(O,a==null?void 0:a.className,h,`${O}-${f}`,{[`${O}-rtl`]:l==="rtl",[`${O}-align-${x}`]:x,[`${O}-gap-row-${z}`]:H,[`${O}-gap-col-${N}`]:j},m,v,M),A=R(`${O}-item`,(t=S==null?void 0:S.item)!==null&&t!==void 0?t:(n=a==null?void 0:a.classNames)===null||n===void 0?void 0:n.item);let T=0;const F=E.map((_,X)=>{var W,G;_!=null&&(T=X);const k=_&&_.key||`${A}-${X}`;return i.createElement(vo,{className:A,key:k,index:X,split:p,style:(W=I==null?void 0:I.item)!==null&&W!==void 0?W:(G=a==null?void 0:a.styles)===null||G===void 0?void 0:G.item},_)}),V=i.useMemo(()=>({latestIndex:T}),[T]);if(E.length===0)return null;const L={};return y&&(L.flexWrap="wrap"),!j&&w&&(L.columnGap=N),!H&&P&&(L.rowGap=z),c(i.createElement("div",Object.assign({ref:o,className:D,style:Object.assign(Object.assign(Object.assign({},L),a==null?void 0:a.style),u)},$),i.createElement($o,{value:V},F)))});Xe.displayName="Space";const Fe=Xe;Fe.Compact=zt;const Co=Fe;var yo=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{getPopupContainer:o,getPrefixCls:t,direction:n}=i.useContext(Z),{prefixCls:r,type:a="default",danger:l,disabled:s,loading:d,onClick:m,htmlType:v,children:b,className:f,menu:g,arrow:p,autoFocus:u,overlay:y,trigger:S,align:I,open:$,onOpenChange:N,placement:z,getPopupContainer:H,href:j,icon:P=i.createElement(ze,null),title:w,buttonsRender:E=le=>le,mouseEnterDelay:x,mouseLeaveDelay:O,overlayClassName:c,overlayStyle:h,destroyPopupOnHide:M,dropdownRender:D}=e,A=yo(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=t("dropdown",r),F=`${T}-button`,V={menu:g,arrow:p,autoFocus:u,align:I,disabled:s,trigger:s?[]:S,onOpenChange:N,getPopupContainer:H||o,mouseEnterDelay:x,mouseLeaveDelay:O,overlayClassName:c,overlayStyle:h,destroyPopupOnHide:M,dropdownRender:D},{compactSize:L,compactItemClassnames:_}=Tt(T,n),X=R(F,_,f);"overlay"in e&&(V.overlay=y),"open"in e&&(V.open=$),"placement"in e?V.placement=z:V.placement=n==="rtl"?"bottomLeft":"bottomRight";const W=i.createElement(he,{type:a,danger:l,disabled:s,loading:d,onClick:m,htmlType:v,href:j,title:w},b),G=i.createElement(he,{type:a,danger:l,icon:P}),[k,ie]=E([W,G]);return i.createElement(Co.Compact,Object.assign({className:X,size:L,block:!0},A),k,i.createElement(We,Object.assign({},V),ie))};Ge.__ANT_BUTTON=!0;const So=Ge,qe=We;qe.Button=So;const xo=qe,{useModal:wo}=ht,No=()=>{const e=rt(),{pathname:o}=it(),{user:t,logout:n}=lt(),[r,a]=wo(),l=()=>{r.confirm({title:"Confirm logout",content:"Are you sure you want to logout?",okButtonProps:{danger:!0},onOk:()=>{n()}})};return i.useEffect(()=>{o===$e.Dashboard&&e($e.AppList,{replace:!0})},[o,e]),q.jsxDEV("div",{children:[q.jsxDEV("header",{className:"h-15 flex items-center shadow",children:q.jsxDEV("div",{className:"container max-w-240 px-2 mx-auto flex justify-between items-center",children:[q.jsxDEV("h1",{className:"text-2xl font-bold text-primary",children:"Fake SMS"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:36,columnNumber:11},void 0),q.jsxDEV(xo,{menu:{items:[{key:"logout",label:"Logout",onClick:l}]},children:q.jsxDEV("a",{className:"cursor-pointer",children:t==null?void 0:t.nickname},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:42,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:37,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:35,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:34,columnNumber:7},void 0),q.jsxDEV("main",{className:"container max-w-240 mx-auto mt-10 px-2",children:q.jsxDEV(at,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:47,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:46,columnNumber:7},void 0),a]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:33,columnNumber:5},void 0)};export{No as default}; + &${l}-slide-up-leave${l}-slide-up-leave-active${o}-placement-topRight`]:{animationName:ht}})},Bt(e,u,{arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{[t]:Object.assign(Object.assign({padding:b,listStyleType:"none",backgroundColor:u,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},$e(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${C(m)} ${C(p)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:v,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${d}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${t}-item, ${t}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${C(m)} ${C(p)}`,color:e.colorText,fontWeight:"normal",fontSize:v,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},$e(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:u,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${C(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${t}-item-group-list`]:{margin:`0 ${C(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:u,cursor:"not-allowed"}},[`${t}-submenu-selected ${o}-menu-submenu-title`]:{color:e.colorPrimary}})}},[ee(e,"slide-up"),ee(e,"slide-down"),ve(e,"move-up"),ve(e,"move-down"),Me(e,"zoom-big")]]},mo=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Nt({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),jt(e)),po=je("Dropdown",e=>{const{marginXXS:o,sizePopupArrow:t,paddingXXS:n,componentCls:r}=e,a=ce(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(o).equal(),dropdownEdgeChildPadding:n});return[uo(a),co(a)]},mo),re=e=>{const{menu:o,arrow:t,prefixCls:n,children:r,trigger:a,disabled:l,dropdownRender:s,getPopupContainer:d,overlayClassName:m,rootClassName:v,overlayStyle:b,open:f,onOpenChange:g,visible:p,onVisibleChange:u,mouseEnterDelay:y=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:I=!0,placement:$="",overlay:N,transitionName:z}=e,{getPopupContainer:H,getPrefixCls:j,direction:P,dropdown:w}=i.useContext(Z),E=ze("Dropdown");[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(B=>{let[U,Y]=B;E.deprecated(!(U in e),U,Y)}),E.deprecated(!("overlay"in e),"overlay","menu");const x=i.useMemo(()=>{const B=j();return z!==void 0?z:$.includes("top")?`${B}-slide-down`:`${B}-slide-up`},[j,$,z]),O=i.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:P==="rtl"?"bottomRight":"bottomLeft",[$,P]);{if($.includes("Center")){const B=$.slice(0,$.indexOf("Center"));E(!$.includes("Center"),"deprecated",`You are using '${$}' placement in Dropdown, which is deprecated. Try to use '${B}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(B=>{let[U,Y]=B;E.deprecated(!(U in e),U,Y)})}const c=j("dropdown",n),h=Pe(c),[D,M,A]=po(c,h),[,T]=nt(),F=i.Children.only(r),V=ne(F,{className:R(`${c}-trigger`,{[`${c}-rtl`]:P==="rtl"},F.props.className),disabled:l}),L=l?[]:a;let _;L&&L.includes("contextMenu")&&(_=!0);const[X,W]=Et(!1,{value:f??p}),G=ke(B=>{g==null||g(B,{source:"trigger"}),u==null||u(B),W(B)}),k=R(m,v,M,A,h,w==null?void 0:w.className,{[`${c}-rtl`]:P==="rtl"}),ie=zt({arrowPointAtCenter:typeof t=="object"&&t.pointAtCenter,autoAdjustOverflow:I,offset:T.marginXXS,arrowWidth:t?T.sizePopupArrow:0,borderRadius:T.borderRadius}),le=i.useCallback(()=>{o!=null&&o.selectable&&(o!=null&&o.multiple)||(g==null||g(!1,{source:"menu"}),W(!1))},[o==null?void 0:o.selectable,o==null?void 0:o.multiple]),Ue=()=>{let B;return o!=null&&o.items?B=i.createElement(ao,Object.assign({},o)):typeof N=="function"?B=N():B=N,s&&(B=s(B)),B=i.Children.only(typeof B=="string"?i.createElement("span",null,B):B),i.createElement(Kt,{prefixCls:`${c}-menu`,rootClassName:R(A,h),expandIcon:i.createElement("span",{className:`${c}-menu-submenu-arrow`},i.createElement(de,{className:`${c}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:le,validator:U=>{let{mode:Y}=U;E(!Y||Y==="vertical","usage",`mode="${Y}" is not supported for Dropdown's Menu.`)}},B)},[pe,Ye]=Ne("Dropdown",b==null?void 0:b.zIndex);let ae=i.createElement(Ct,Object.assign({alignPoint:_},Q(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:S,visible:X,builtinPlacements:ie,arrow:!!t,overlayClassName:k,prefixCls:c,getPopupContainer:d||H,transitionName:x,trigger:L,overlay:Ue,placement:O,onVisibleChange:G,overlayStyle:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.style),b),{zIndex:pe})}),V);return pe&&(ae=i.createElement(rt.Provider,{value:Ye},ae)),D(ae)};function go(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const bo=yt(re,"dropdown",e=>e,go),$o=e=>i.createElement(bo,Object.assign({},e),i.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=$o;re.displayName="Dropdown";const We=re;function Oe(e){return["small","middle","large"].includes(e)}function Be(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Ve=it.createContext({latestIndex:0}),fo=Ve.Provider,vo=e=>{let{className:o,index:t,children:n,split:r,style:a}=e;const{latestIndex:l}=i.useContext(Ve);return n==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:o,style:a},n),t{var t,n;const{getPrefixCls:r,space:a,direction:l}=i.useContext(Z),{size:s=(a==null?void 0:a.size)||"small",align:d,className:m,rootClassName:v,children:b,direction:f="horizontal",prefixCls:g,split:p,style:u,wrap:y=!1,classNames:S,styles:I}=e,$=Co(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[N,z]=Array.isArray(s)?s:[s,s],H=Oe(z),j=Oe(N),P=Be(z),w=Be(N),E=De(b,{keepEmpty:!0}),x=d===void 0&&f==="horizontal"?"center":d,O=r("space",g),[c,h,D]=Tt(O),M=R(O,a==null?void 0:a.className,h,`${O}-${f}`,{[`${O}-rtl`]:l==="rtl",[`${O}-align-${x}`]:x,[`${O}-gap-row-${z}`]:H,[`${O}-gap-col-${N}`]:j},m,v,D),A=R(`${O}-item`,(t=S==null?void 0:S.item)!==null&&t!==void 0?t:(n=a==null?void 0:a.classNames)===null||n===void 0?void 0:n.item);let T=0;const F=E.map((_,X)=>{var W,G;_!=null&&(T=X);const k=_&&_.key||`${A}-${X}`;return i.createElement(ho,{className:A,key:k,index:X,split:p,style:(W=I==null?void 0:I.item)!==null&&W!==void 0?W:(G=a==null?void 0:a.styles)===null||G===void 0?void 0:G.item},_)}),V=i.useMemo(()=>({latestIndex:T}),[T]);if(E.length===0)return null;const L={};return y&&(L.flexWrap="wrap"),!j&&w&&(L.columnGap=N),!H&&P&&(L.rowGap=z),c(i.createElement("div",Object.assign({ref:o,className:M,style:Object.assign(Object.assign(Object.assign({},L),a==null?void 0:a.style),u)},$),i.createElement(fo,{value:V},F)))});Xe.displayName="Space";const Fe=Xe;Fe.Compact=Pt;const yo=Fe;var So=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{getPopupContainer:o,getPrefixCls:t,direction:n}=i.useContext(Z),{prefixCls:r,type:a="default",danger:l,disabled:s,loading:d,onClick:m,htmlType:v,children:b,className:f,menu:g,arrow:p,autoFocus:u,overlay:y,trigger:S,align:I,open:$,onOpenChange:N,placement:z,getPopupContainer:H,href:j,icon:P=i.createElement(He,null),title:w,buttonsRender:E=le=>le,mouseEnterDelay:x,mouseLeaveDelay:O,overlayClassName:c,overlayStyle:h,destroyPopupOnHide:D,dropdownRender:M}=e,A=So(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),T=t("dropdown",r),F=`${T}-button`,V={menu:g,arrow:p,autoFocus:u,align:I,disabled:s,trigger:s?[]:S,onOpenChange:N,getPopupContainer:H||o,mouseEnterDelay:x,mouseLeaveDelay:O,overlayClassName:c,overlayStyle:h,destroyPopupOnHide:D,dropdownRender:M},{compactSize:L,compactItemClassnames:_}=Ht(T,n),X=R(F,_,f);"overlay"in e&&(V.overlay=y),"open"in e&&(V.open=$),"placement"in e?V.placement=z:V.placement=n==="rtl"?"bottomLeft":"bottomRight";const W=i.createElement(he,{type:a,danger:l,disabled:s,loading:d,onClick:m,htmlType:v,href:j,title:w},b),G=i.createElement(he,{type:a,danger:l,icon:P}),[k,ie]=E([W,G]);return i.createElement(yo.Compact,Object.assign({className:X,size:L,block:!0},A),k,i.createElement(We,Object.assign({},V),ie))};Ge.__ANT_BUTTON=!0;const xo=Ge,qe=We;qe.Button=xo;const wo=qe,{useModal:Io}=St,Eo=()=>{const e=lt(),{pathname:o}=at(),{user:t,logout:n}=st(),[r,a]=Io(),l=()=>{r.confirm({title:"Confirm logout",content:"Are you sure you want to logout?",okButtonProps:{danger:!0},onOk:()=>{n()}})};return i.useEffect(()=>{o===se.Dashboard&&e(se.AppList,{replace:!0})},[o,e]),q.jsxDEV("div",{children:[q.jsxDEV("header",{className:"h-15 flex items-center shadow",children:q.jsxDEV("div",{className:"container max-w-240 px-2 mx-auto flex justify-between items-center",children:[q.jsxDEV(ct,{to:se.Dashboard,className:"text-2xl font-bold text-primary",children:"Fake SMS"},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:36,columnNumber:11},void 0),q.jsxDEV(wo,{menu:{items:[{key:"logout",label:"Logout",onClick:l}]},children:q.jsxDEV("a",{className:"cursor-pointer",children:t==null?void 0:t.nickname},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:42,columnNumber:13},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:37,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:35,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:34,columnNumber:7},void 0),q.jsxDEV("main",{className:"container max-w-240 mx-auto mt-10 px-2",children:q.jsxDEV(dt,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:47,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:46,columnNumber:7},void 0),a]},void 0,!0,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/dashboard.tsx",lineNumber:33,columnNumber:5},void 0)};export{Eo as default}; diff --git a/packages/server/html/assets/dashboard-NrnFGPqy.js b/packages/server/html/assets/dashboard-NrnFGPqy.js new file mode 100644 index 0000000..a2bb34f --- /dev/null +++ b/packages/server/html/assets/dashboard-NrnFGPqy.js @@ -0,0 +1,27 @@ +import{r as a,C as U,c as H,b as Se,s as _e,d as We,e as f,g as Xe,t as Ve,f as ye,m as le,h as de,i as xe,T as me,k as qe,l as we,n as ue,o as Ge,z as Fe,p as Ye,R as Ue,u as Ze,q as Ke,a as Je,A as ie,j as F,N as Qe,O as et}from"./index-rd09DNLi.js";import{R as tt}from"./RightOutlined-xQhvP3va.js";import{D as ot,M as nt,u as rt,S as it,a as Oe,i as K,E as lt,b as Be,s as at,c as st,d as ct,e as dt,f as pe,g as mt,h as ut,j as pt}from"./index-vsnpN-o-.js";import{t as je,o as ee,c as te,i as Y,T as gt,N as bt,g as $t,a as Pe,u as ze,b as ft,d as vt,e as ht,f as Ct,h as It,j as St,C as yt,k as xt,l as wt,B as ge}from"./index-sT0Ovbw4.js";const Ee=a.createContext({});var Ot=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,className:t,dashed:n}=e,r=Ot(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=a.useContext(U),i=l("menu",o),s=H({[`${i}-item-divider-dashed`]:!!n},t);return a.createElement(ot,Object.assign({className:s},r))},Ne=Bt,jt=a.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),J=jt,Pt=e=>{var o;const{className:t,children:n,icon:r,title:l,danger:i}=e,{prefixCls:s,firstLevel:c,direction:d,disableMenuItemTitleTooltip:v,inlineCollapsed:p}=a.useContext(J),b=x=>{const S=a.createElement("span",{className:`${s}-title-content`},n);return(!r||Y(n)&&n.type==="span")&&n&&x&&c&&typeof n=="string"?a.createElement("div",{className:`${s}-inline-collapsed-noicon`},n.charAt(0)):S},{siderCollapsed:u}=a.useContext(Ee);let g=l;typeof l>"u"?g=c?n:"":l===!1&&(g="");const m={title:g};!u&&!p&&(m.title=null,m.open=!1);const C=je(n).length;let h=a.createElement(nt,Object.assign({},ee(e,["title","icon","danger"]),{className:H({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(r?C+1:C)===1},t),title:typeof l=="string"?l:void 0}),te(r,{className:H(Y(r)?(o=r.props)===null||o===void 0?void 0:o.className:"",`${s}-item-icon`)}),b(p));return v||(h=a.createElement(gt,Object.assign({},m,{placement:d==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),h)),h},Te=Pt,zt=e=>{var o;const{popupClassName:t,icon:n,title:r,theme:l}=e,i=a.useContext(J),{prefixCls:s,inlineCollapsed:c,theme:d}=i,v=rt();let p;if(!n)p=c&&!v.length&&r&&typeof r=="string"?a.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):a.createElement("span",{className:`${s}-title-content`},r);else{const g=Y(r)&&r.type==="span";p=a.createElement(a.Fragment,null,te(n,{className:H(Y(n)?(o=n.props)===null||o===void 0?void 0:o.className:"",`${s}-item-icon`)}),g?r:a.createElement("span",{className:`${s}-title-content`},r))}const b=a.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[u]=Se("Menu");return a.createElement(J.Provider,{value:b},a.createElement(it,Object.assign({},ee(e,["icon"]),{title:p,popupClassName:H(s,t,`${s}-${l||d}`),popupStyle:{zIndex:u}})))},He=zt;var Et=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const n=o,{label:r,children:l,key:i,type:s}=n,c=Et(n,["label","children","key","type"]),d=i??`tmp-${t}`;return l||s==="group"?s==="group"?a.createElement(Oe,Object.assign({key:d},c,{title:r}),ae(l)):a.createElement(He,Object.assign({key:d},c,{title:r}),ae(l)):s==="divider"?a.createElement(Ne,Object.assign({key:d},c)):a.createElement(Te,Object.assign({key:d},c),r)}return null}).filter(o=>o)}function Nt(e){return a.useMemo(()=>e&&ae(e),[e])}var Tt=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{children:t}=e,n=Tt(e,["children"]),r=a.useContext(Q),l=a.useMemo(()=>Object.assign(Object.assign({},r),n),[r,n.prefixCls,n.mode,n.selectable,n.rootClassName]),i=_e(t),s=We(o,i?t.ref:null);return a.createElement(Q.Provider,{value:l},a.createElement(bt,null,i?a.cloneElement(t,{ref:s}):t))}),Mt=e=>{const{componentCls:o,motionDurationSlow:t,horizontalLineHeight:n,colorSplit:r,lineWidth:l,lineType:i,itemPaddingInline:s}=e;return{[`${o}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${f(l)} ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${o}-item, ${o}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${o}-item:hover, + > ${o}-item-active, + > ${o}-submenu ${o}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${o}-item, ${o}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${o}-submenu-arrow`]:{display:"none"}}}},Dt=e=>{let{componentCls:o,menuArrowOffset:t,calc:n}=e;return{[`${o}-rtl`]:{direction:"rtl"},[`${o}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${o}-rtl${o}-vertical, + ${o}-submenu-rtl ${o}-vertical`]:{[`${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${f(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${f(t)})`}}}}},be=e=>Object.assign({},Xe(e)),$e=(e,o)=>{const{componentCls:t,itemColor:n,itemSelectedColor:r,groupTitleColor:l,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:v,activeBarBorderWidth:p,motionDurationSlow:b,motionEaseInOut:u,motionEaseOut:g,itemPaddingInline:m,motionDurationMid:C,itemHoverColor:h,lineType:x,colorSplit:S,itemDisabledColor:B,dangerItemColor:j,dangerItemHoverColor:z,dangerItemSelectedColor:w,dangerItemActiveBg:P,dangerItemSelectedBg:y,popupBg:N,itemHoverBg:I,itemActiveBg:$,menuSubMenuBg:M,horizontalItemSelectedColor:T,horizontalItemSelectedBg:X,horizontalItemBorderRadius:k,horizontalItemHoverBg:L}=e;return{[`${t}-${o}, ${t}-${o} > ${t}`]:{color:n,background:i,[`&${t}-root:focus-visible`]:Object.assign({},be(e)),[`${t}-item-group-title`]:{color:l},[`${t}-submenu-selected`]:{[`> ${t}-submenu-title`]:{color:r}},[`${t}-item, ${t}-submenu-title`]:{color:n,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},be(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${B} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:h}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:$}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:$}}},[`${t}-item-danger`]:{color:j,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:z}},[`&${t}-item:active`]:{background:P}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:r,[`&${t}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:c,[`&${t}-item-danger`]:{backgroundColor:y}},[`&${t}-submenu > ${t}`]:{backgroundColor:M},[`&${t}-popup > ${t}`]:{backgroundColor:N},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:N},[`&${t}-horizontal`]:Object.assign(Object.assign({},o==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${f(d)} solid transparent`,transition:`border-color ${b} ${u}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:d,borderBottomColor:T}},"&-selected":{color:T,backgroundColor:X,"&:hover":{backgroundColor:X},"&::after":{borderBottomWidth:d,borderBottomColor:T}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${f(p)} ${x} ${S}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:s},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${f(v)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${g}`,`opacity ${C} ${g}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${u}`,`opacity ${C} ${u}`].join(",")}}}}}},fe=e=>{const{componentCls:o,itemHeight:t,itemMarginInline:n,padding:r,menuArrowSize:l,marginXS:i,itemMarginBlock:s,itemWidth:c}=e,d=e.calc(l).add(r).add(i).equal();return{[`${o}-item`]:{position:"relative",overflow:"hidden"},[`${o}-item, ${o}-submenu-title`]:{height:t,lineHeight:f(t),paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:c},[`> ${o}-item, + > ${o}-submenu > ${o}-submenu-title`]:{height:t,lineHeight:f(t)},[`${o}-item-group-list ${o}-submenu-title, + ${o}-submenu-title`]:{paddingInlineEnd:d}}},Rt=e=>{const{componentCls:o,iconCls:t,itemHeight:n,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:i,motionDurationMid:s,motionEaseOut:c,paddingXL:d,itemMarginInline:v,fontSizeLG:p,motionDurationSlow:b,paddingXS:u,boxShadowSecondary:g,collapsedWidth:m,collapsedIconSize:C}=e,h={height:n,lineHeight:f(n),listStylePosition:"inside",listStyleType:"disc"};return[{[o]:{"&-inline, &-vertical":Object.assign({[`&${o}-root`]:{boxShadow:"none"}},fe(e))},[`${o}-submenu-popup`]:{[`${o}-vertical`]:Object.assign(Object.assign({},fe(e)),{boxShadow:g})}},{[`${o}-submenu-popup ${o}-vertical${o}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${f(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${o}-inline`]:{width:"100%",[`&${o}-root`]:{[`${o}-item, ${o}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${b}`,`background ${b}`,`padding ${s} ${c}`].join(","),[`> ${o}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${o}-sub${o}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${o}-submenu > ${o}-submenu-title`]:h,[`& ${o}-item-group-title`]:{paddingInlineStart:d}},[`${o}-item`]:h}},{[`${o}-inline-collapsed`]:{width:m,[`&${o}-root`]:{[`${o}-item, ${o}-submenu ${o}-submenu-title`]:{[`> ${o}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${o}-item, + > ${o}-item-group > ${o}-item-group-list > ${o}-item, + > ${o}-item-group > ${o}-item-group-list > ${o}-submenu > ${o}-submenu-title, + > ${o}-submenu > ${o}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${f(e.calc(p).div(2).equal())} - ${f(v)})`,textOverflow:"clip",[` + ${o}-submenu-arrow, + ${o}-submenu-expand-icon + `]:{opacity:0},[`${o}-item-icon, ${t}`]:{margin:0,fontSize:C,lineHeight:f(n),"+ span":{display:"inline-block",opacity:0}}},[`${o}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${o}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:r}},[`${o}-item-group-title`]:Object.assign(Object.assign({},Ve),{paddingInline:u})}}]},ve=e=>{const{componentCls:o,motionDurationSlow:t,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:l,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${o}-item, ${o}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding ${t} ${r}`].join(","),[`${o}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${n} ${l}`,`margin ${t} ${r}`,`color ${t}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${t} ${r}`,`margin ${t}`,`color ${t}`].join(",")}},[`${o}-item-icon`]:Object.assign({},qe()),[`&${o}-item-only-child`]:{[`> ${i}, > ${o}-item-icon`]:{marginInlineEnd:0}}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${o}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},he=e=>{const{componentCls:o,motionDurationSlow:t,motionEaseInOut:n,borderRadius:r,menuArrowSize:l,menuArrowOffset:i}=e;return{[`${o}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${n}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${t} ${n}`,`transform ${t} ${n}`,`top ${t} ${n}`,`color ${t} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${f(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${f(i)})`}}}}},At=e=>{const{antCls:o,componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:d,lineWidth:v,zIndexPopup:p,borderRadiusLG:b,subMenuItemBorderRadius:u,menuArrowSize:g,menuArrowOffset:m,lineType:C,groupTitleLineHeight:h,groupTitleFontSize:x}=e;return[{"":{[`${t}`]:Object.assign(Object.assign({},de()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe(e)),de()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${f(s)} ${f(c)}`,fontSize:x,lineHeight:h,transition:`all ${r}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${l} ${i}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${t}-title-content`]:{transition:`color ${r}`,[`> ${o}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:C,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ve(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${f(e.calc(n).mul(2).equal())} ${f(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:b,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:b},ve(e)),he(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:u},[`${t}-submenu-title::after`]:{transition:`transform ${r} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),he(e)),{[`&-inline-collapsed ${t}-submenu-arrow, + &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${f(m)})`},"&::after":{transform:`rotate(45deg) translateX(${f(e.calc(m).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${f(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${f(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${f(m)})`}}})},{[`${o}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},kt=e=>{var o,t,n;const{colorPrimary:r,colorError:l,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:d,colorBgContainer:v,colorFillAlter:p,colorFillContent:b,lineWidth:u,lineWidthBold:g,controlItemBgActive:m,colorBgTextHover:C,controlHeightLG:h,lineHeight:x,colorBgElevated:S,marginXXS:B,padding:j,fontSize:z,controlHeightSM:w,fontSizeLG:P,colorTextLightSolid:y,colorErrorHover:N}=e,I=(o=e.activeBarWidth)!==null&&o!==void 0?o:0,$=(t=e.activeBarBorderWidth)!==null&&t!==void 0?t:u,M=(n=e.itemMarginInline)!==null&&n!==void 0?n:e.marginXXS,T=new me(y).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:v,itemBg:v,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:b,itemActiveBg:m,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:u,activeBarBorderWidth:$,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:x,collapsedWidth:h*2,popupBg:S,itemMarginBlock:B,itemPaddingInline:j,horizontalLineHeight:`${h*1.15}px`,iconSize:z,iconMarginInlineEnd:w-z,collapsedIconSize:P,groupTitleFontSize:z,darkItemDisabledColor:new me(y).setAlpha(.25).toRgbString(),darkItemColor:T,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:y,darkItemSelectedBg:r,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:T,darkItemHoverColor:y,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:l,itemWidth:I?`calc(100% + ${$}px)`:`calc(100% - ${M*2}px)`}},Lt=function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return ye("Menu",r=>{const{colorBgElevated:l,colorPrimary:i,colorTextLightSolid:s,controlHeightLG:c,fontSize:d,darkItemColor:v,darkDangerItemColor:p,darkItemBg:b,darkSubMenuItemBg:u,darkItemSelectedColor:g,darkItemSelectedBg:m,darkDangerItemSelectedBg:C,darkItemHoverBg:h,darkGroupTitleColor:x,darkItemHoverColor:S,darkItemDisabledColor:B,darkDangerItemHoverColor:j,darkDangerItemSelectedColor:z,darkDangerItemActiveBg:w,popupBg:P,darkPopupBg:y}=r,N=r.calc(d).div(7).mul(5).equal(),I=le(r,{menuArrowSize:N,menuHorizontalHeight:r.calc(c).mul(1.15).equal(),menuArrowOffset:r.calc(N).mul(.25).equal(),menuSubMenuBg:l,calc:r.calc,popupBg:P}),$=le(I,{itemColor:v,itemHoverColor:S,groupTitleColor:x,itemSelectedColor:g,itemBg:b,popupBg:y,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:m,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:B,dangerItemColor:p,dangerItemHoverColor:j,dangerItemSelectedColor:z,dangerItemActiveBg:w,dangerItemSelectedBg:C,menuSubMenuBg:u,horizontalItemSelectedColor:s,horizontalItemSelectedBg:i});return[At(I),Mt(I),Rt(I),$e(I,"light"),$e($,"dark"),Dt(I),$t(I),K(I,"slide-up"),K(I,"slide-down"),Pe(I,"zoom-big")]},kt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:t,unitless:{groupTitleLineHeight:!0}})(e,o)};var _t=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{var t,n;const r=a.useContext(Q),l=r||{},{getPrefixCls:i,getPopupContainer:s,direction:c,menu:d}=a.useContext(U),v=i(),{prefixCls:p,className:b,style:u,theme:g="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:h,siderCollapsed:x,items:S,children:B,rootClassName:j,mode:z,selectable:w,onClick:P,overflowedIndicatorPopupClassName:y}=e,N=_t(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=ee(N,["collapsedWidth"]),$=Nt(S)||B;(t=l.validator)===null||t===void 0||t.call(l,{mode:z});const M=ze(function(){var A;P==null||P.apply(void 0,arguments),(A=l.onClick)===null||A===void 0||A.call(l)}),T=l.mode||z,X=w??l.selectable,k=a.useMemo(()=>x!==void 0?x:h,[h,x]),L={horizontal:{motionName:`${v}-slide-up`},inline:ft(v),other:{motionName:`${v}-zoom-big`}},O=i("menu",p||l.prefixCls),G=we(O),[D,_,W]=Lt(O,G,!r),V=H(`${O}-${g}`,d==null?void 0:d.className,b);let R;if(typeof m=="function")R=m;else if(m===null||m===!1)R=null;else if(l.expandIcon===null||l.expandIcon===!1)R=null;else{const A=m??l.expandIcon;R=te(A,{className:H(`${O}-submenu-expand-icon`,Y(A)?(n=A.props)===null||n===void 0?void 0:n.className:"")})}const q=a.useMemo(()=>({prefixCls:O,inlineCollapsed:k||!1,direction:c,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:C}),[O,k,c,C,g]);return D(a.createElement(Q.Provider,{value:null},a.createElement(J.Provider,{value:q},a.createElement(lt,Object.assign({getPopupContainer:s,overflowedIndicator:a.createElement(Be,null),overflowedIndicatorPopupClassName:H(O,`${O}-${g}`,y),mode:T,selectable:X,onClick:M},I,{inlineCollapsed:k,style:Object.assign(Object.assign({},d==null?void 0:d.style),u),className:V,prefixCls:O,direction:c,defaultMotions:L,expandIcon:R,ref:o,rootClassName:H(j,_,l.rootClassName,W,G)}),$))))}),Xt=Wt,Z=a.forwardRef((e,o)=>{const t=a.useRef(null),n=a.useContext(Ee);return a.useImperativeHandle(o,()=>({menu:t.current,focus:r=>{var l;(l=t.current)===null||l===void 0||l.focus(r)}})),a.createElement(Xt,Object.assign({ref:t},e,n))});Z.Item=Te;Z.SubMenu=He;Z.Divider=Ne;Z.ItemGroup=Oe;const Vt=Z,qt=e=>{const{componentCls:o,menuCls:t,colorError:n,colorTextLightSolid:r}=e,l=`${t}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${t} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:n,"&:hover":{color:r,backgroundColor:n}}}}}},Gt=qt,Ft=e=>{const{componentCls:o,menuCls:t,zIndexPopup:n,dropdownArrowDistance:r,sizePopupArrow:l,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:d,fontSize:v,dropdownEdgeChildPadding:p,colorTextDisabled:b,fontSizeIcon:u,controlPaddingHorizontal:g,colorBgElevated:m}=e;return[{[o]:Object.assign(Object.assign({},xe(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:u}},[`${o}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:u},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${o}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomLeft, + &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomLeft, + &${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottom, + &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottom, + &${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomRight, + &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:at},[`&${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topLeft, + &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topLeft, + &${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-top, + &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-top, + &${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topRight, + &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topRight`]:{animationName:st},[`&${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomLeft, + &${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottom, + &${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:ct},[`&${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topLeft, + &${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-top, + &${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topRight`]:{animationName:dt}})},vt(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{[t]:Object.assign(Object.assign({padding:p,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ue(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${f(d)} ${f(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:v,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${t}-item, ${t}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${f(d)} ${f(g)}`,color:e.colorText,fontWeight:"normal",fontSize:v,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ue(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:b,cursor:"not-allowed","&:hover":{color:b,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${f(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:u,fontStyle:"normal"}}}),[`${t}-item-group-list`]:{margin:`0 ${f(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:b,backgroundColor:m,cursor:"not-allowed"}},[`${t}-submenu-selected ${o}-menu-submenu-title`]:{color:e.colorPrimary}})}},[K(e,"slide-up"),K(e,"slide-down"),pe(e,"move-up"),pe(e,"move-down"),Pe(e,"zoom-big")]]},Yt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},ht({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ct(e)),Ut=ye("Dropdown",e=>{const{marginXXS:o,sizePopupArrow:t,paddingXXS:n,componentCls:r}=e,l=le(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(o).equal(),dropdownEdgeChildPadding:n});return[Ft(l),Gt(l)]},Yt),se=e=>{const{menu:o,arrow:t,prefixCls:n,children:r,trigger:l,disabled:i,dropdownRender:s,getPopupContainer:c,overlayClassName:d,rootClassName:v,overlayStyle:p,open:b,onOpenChange:u,visible:g,onVisibleChange:m,mouseEnterDelay:C=.15,mouseLeaveDelay:h=.1,autoAdjustOverflow:x=!0,placement:S="",overlay:B,transitionName:j}=e,{getPopupContainer:z,getPrefixCls:w,direction:P,dropdown:y}=a.useContext(U);Ye();const N=a.useMemo(()=>{const E=w();return j!==void 0?j:S.includes("top")?`${E}-slide-down`:`${E}-slide-up`},[w,S,j]),I=a.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:P==="rtl"?"bottomRight":"bottomLeft",[S,P]),$=w("dropdown",n),M=we($),[T,X,k]=Ut($,M),[,L]=Ge(),O=a.Children.only(r),G=te(O,{className:H(`${$}-trigger`,{[`${$}-rtl`]:P==="rtl"},O.props.className),disabled:i}),D=i?[]:l;let _;D&&D.includes("contextMenu")&&(_=!0);const[W,V]=It(!1,{value:b??g}),R=ze(E=>{u==null||u(E,{source:"trigger"}),m==null||m(E),V(E)}),q=H(d,v,X,k,M,y==null?void 0:y.className,{[`${$}-rtl`]:P==="rtl"}),A=St({arrowPointAtCenter:typeof t=="object"&&t.pointAtCenter,autoAdjustOverflow:x,offset:L.marginXXS,arrowWidth:t?L.sizePopupArrow:0,borderRadius:L.borderRadius}),oe=a.useCallback(()=>{o!=null&&o.selectable&&(o!=null&&o.multiple)||(u==null||u(!1,{source:"menu"}),V(!1))},[o==null?void 0:o.selectable,o==null?void 0:o.multiple]),ne=()=>{let E;return o!=null&&o.items?E=a.createElement(Vt,Object.assign({},o)):typeof B=="function"?E=B():E=B,s&&(E=s(E)),E=a.Children.only(typeof E=="string"?a.createElement("span",null,E):E),a.createElement(Ht,{prefixCls:`${$}-menu`,rootClassName:H(k,M),expandIcon:a.createElement("span",{className:`${$}-menu-submenu-arrow`},a.createElement(tt,{className:`${$}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:co=>{}},E)},[ce,Le]=Se("Dropdown",p==null?void 0:p.zIndex);let re=a.createElement(mt,Object.assign({alignPoint:_},ee(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:h,visible:W,builtinPlacements:A,arrow:!!t,overlayClassName:q,prefixCls:$,getPopupContainer:c||z,transitionName:N,trigger:D,overlay:ne,placement:I,onVisibleChange:R,overlayStyle:Object.assign(Object.assign(Object.assign({},y==null?void 0:y.style),p),{zIndex:ce})}),G);return ce&&(re=a.createElement(Fe.Provider,{value:Le},re)),T(re)};function Zt(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Kt=ut(se,"dropdown",e=>e,Zt),Jt=e=>a.createElement(Kt,Object.assign({},e),a.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Jt;const Me=se;function Ce(e){return["small","middle","large"].includes(e)}function Ie(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const De=Ue.createContext({latestIndex:0}),Qt=De.Provider,eo=e=>{let{className:o,index:t,children:n,split:r,style:l}=e;const{latestIndex:i}=a.useContext(De);return n==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:o,style:l},n),t{var t,n;const{getPrefixCls:r,space:l,direction:i}=a.useContext(U),{size:s=(l==null?void 0:l.size)||"small",align:c,className:d,rootClassName:v,children:p,direction:b="horizontal",prefixCls:u,split:g,style:m,wrap:C=!1,classNames:h,styles:x}=e,S=oo(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[B,j]=Array.isArray(s)?s:[s,s],z=Ce(j),w=Ce(B),P=Ie(j),y=Ie(B),N=je(p,{keepEmpty:!0}),I=c===void 0&&b==="horizontal"?"center":c,$=r("space",u),[M,T,X]=xt($),k=H($,l==null?void 0:l.className,T,`${$}-${b}`,{[`${$}-rtl`]:i==="rtl",[`${$}-align-${I}`]:I,[`${$}-gap-row-${j}`]:z,[`${$}-gap-col-${B}`]:w},d,v,X),L=H(`${$}-item`,(t=h==null?void 0:h.item)!==null&&t!==void 0?t:(n=l==null?void 0:l.classNames)===null||n===void 0?void 0:n.item);let O=0;const G=N.map((W,V)=>{var R,q;W!=null&&(O=V);const A=W&&W.key||`${L}-${V}`;return a.createElement(to,{className:L,key:A,index:V,split:g,style:(R=x==null?void 0:x.item)!==null&&R!==void 0?R:(q=l==null?void 0:l.styles)===null||q===void 0?void 0:q.item},W)}),D=a.useMemo(()=>({latestIndex:O}),[O]);if(N.length===0)return null;const _={};return C&&(_.flexWrap="wrap"),!w&&y&&(_.columnGap=B),!z&&P&&(_.rowGap=j),M(a.createElement("div",Object.assign({ref:o,className:k,style:Object.assign(Object.assign(Object.assign({},_),l==null?void 0:l.style),m)},S),a.createElement(Qt,{value:D},G)))}),Re=no;Re.Compact=yt;const ro=Re;var io=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r{const{getPopupContainer:o,getPrefixCls:t,direction:n}=a.useContext(U),{prefixCls:r,type:l="default",danger:i,disabled:s,loading:c,onClick:d,htmlType:v,children:p,className:b,menu:u,arrow:g,autoFocus:m,overlay:C,trigger:h,align:x,open:S,onOpenChange:B,placement:j,getPopupContainer:z,href:w,icon:P=a.createElement(Be,null),title:y,buttonsRender:N=ne=>ne,mouseEnterDelay:I,mouseLeaveDelay:$,overlayClassName:M,overlayStyle:T,destroyPopupOnHide:X,dropdownRender:k}=e,L=io(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"]),O=t("dropdown",r),G=`${O}-button`,D={menu:u,arrow:g,autoFocus:m,align:x,disabled:s,trigger:s?[]:h,onOpenChange:B,getPopupContainer:z||o,mouseEnterDelay:I,mouseLeaveDelay:$,overlayClassName:M,overlayStyle:T,destroyPopupOnHide:X,dropdownRender:k},{compactSize:_,compactItemClassnames:W}=wt(O,n),V=H(G,W,b);"overlay"in e&&(D.overlay=C),"open"in e&&(D.open=S),"placement"in e?D.placement=j:D.placement=n==="rtl"?"bottomLeft":"bottomRight";const R=a.createElement(ge,{type:l,danger:i,disabled:s,loading:c,onClick:d,htmlType:v,href:w,title:y},p),q=a.createElement(ge,{type:l,danger:i,icon:P}),[A,oe]=N([R,q]);return a.createElement(ro.Compact,Object.assign({className:V,size:_,block:!0},L),A,a.createElement(Me,Object.assign({},D),oe))};Ae.__ANT_BUTTON=!0;const lo=Ae,ke=Me;ke.Button=lo;const ao=ke,{useModal:so}=pt,bo=()=>{const e=Ze(),{pathname:o}=Ke(),{user:t,logout:n}=Je(),[r,l]=so(),i=()=>{r.confirm({title:"Confirm logout",content:"Are you sure you want to logout?",okButtonProps:{danger:!0},onOk:()=>{n()}})};return a.useEffect(()=>{o===ie.Dashboard&&e(ie.AppList,{replace:!0})},[o,e]),F.jsxs("div",{children:[F.jsx("header",{className:"h-15 flex items-center shadow",children:F.jsxs("div",{className:"container max-w-240 px-2 mx-auto flex justify-between items-center",children:[F.jsx(Qe,{to:ie.Dashboard,className:"text-2xl font-bold text-primary",children:"Fake SMS"}),F.jsx(ao,{menu:{items:[{key:"logout",label:"Logout",onClick:i}]},children:F.jsx("a",{className:"cursor-pointer",children:t==null?void 0:t.nickname})})]})}),F.jsx("main",{className:"container max-w-240 mx-auto mt-10 px-2",children:F.jsx(et,{})}),l]})};export{bo as default}; diff --git a/packages/server/html/assets/index-9T-4WIpS.css b/packages/server/html/assets/index-9T-4WIpS.css deleted file mode 100644 index baa217a..0000000 --- a/packages/server/html/assets/index-9T-4WIpS.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.\!mb-0{margin-bottom:0!important}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-5{margin-right:1.25rem}.mt-10{margin-top:2.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.h-15{height:3.75rem}.h-screen{height:100vh}.max-w-240{max-width:60rem}.max-w-320{max-width:80rem}.min-h-40{min-height:10rem}.w-100{width:25rem}.w-full{width:100%}.flex{display:flex}.flex-col{flex-direction:column}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(.5rem * calc(1 - var(--un-space-x-reverse)));margin-right:calc(.5rem * var(--un-space-x-reverse))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-md{border-radius:.375rem}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.px-2{padding-left:.5rem;padding-right:.5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-15{padding-left:3.75rem}.pr-30{padding-right:7.5rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-5xl{font-size:3rem;line-height:1}.text-xs{font-size:.75rem;line-height:1rem}.text-primary{--un-text-opacity:1;color:rgb(22 119 255 / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.hover\:text-primary:hover{--un-text-opacity:1;color:rgb(22 119 255 / var(--un-text-opacity))}.\!hover\:text-red-500:hover{--un-text-opacity:1 !important;color:rgb(239 68 68 / var(--un-text-opacity))!important}.font-bold{font-weight:700}.font-medium{font-weight:500}.italic{font-style:italic}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90,inset -4px -4px #ff1e90}to{box-shadow:inset 8px 8px #39f,inset -8px -8px #39f}}.\?{animation:__un_qm .5s ease-in-out alternate infinite}@media (min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 768px){.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}} diff --git a/packages/server/html/assets/index-Ax4WZORO.js b/packages/server/html/assets/index-Ax4WZORO.js deleted file mode 100644 index 8538b7e..0000000 --- a/packages/server/html/assets/index-Ax4WZORO.js +++ /dev/null @@ -1,30 +0,0 @@ -import{r as a,_ as A,w as $,x as ve,a6 as sr,R as M,b as Ln,c as U,n as W,S as Wt,z as pn,a9 as Cn,L as cr,aa as Dn,a3 as ur,d as ie,f as dr,k as fr,C as pt,i as Vt,e as mr,U as kt,l as vr,W as gr,a8 as Kn,X as pr,a5 as Cr,v as le,G as We,y as Fn,F as yr,B as Bn,a7 as zn,o as Z,K as hr,ab as Un,D as at,ac as br,ad as Er,I as Sr,H as xr,p as Or}from"./index-WagZkOpk.js";import{A as Ct,B as Gt,a4 as jn,a5 as Rr,P as Ir,d as Hn,y as Xt,K as se,a6 as qt,g as Mr,b as wr,m as Nr,f as Wn,u as Pr,N as $r,I as Tr,z as _r,H as wt,J as Ar,E as Lr,v as Dr,s as Kr,r as Fr,a7 as Br,M as zr,l as mt,R as Vn,w as kn,Z as Ur,o as Gn,t as jr}from"./index-rndVcMSc.js";var Hr={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const Wr=Hr;var Xn=function(t,n){return a.createElement(Ct,A({},t,{ref:n,icon:Wr}))};Xn.displayName="CloseOutlined";const Yt=a.forwardRef(Xn);var Vr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const kr=Vr;var qn=function(t,n){return a.createElement(Ct,A({},t,{ref:n,icon:kr}))};qn.displayName="InfoCircleFilled";const Gr=a.forwardRef(qn);var Xr=`accept acceptCharset accessKey action allowFullScreen allowTransparency - alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge - charSet checked classID className colSpan cols content contentEditable contextMenu - controls coords crossOrigin data dateTime default defer dir disabled download draggable - encType form formAction formEncType formMethod formNoValidate formTarget frameBorder - headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity - is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media - mediaGroup method min minLength multiple muted name noValidate nonce open - optimum pattern placeholder poster preload radioGroup readOnly rel required - reversed role rowSpan rows sandbox scope scoped scrolling seamless selected - shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,qr=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown - onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick - onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown - onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel - onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough - onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Yr="".concat(Xr," ").concat(qr).split(/[\s\n]+/),Qr="aria-",Zr="data-";function yn(e,t){return e.indexOf(t)===0}function Jr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=$({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||yn(o,Qr))||n.data&&yn(o,Zr)||n.attr&&Yr.includes(o))&&(r[o]=e[o])}),r}var x={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=x.F1&&n<=x.F12)return!1;switch(n){case x.ALT:case x.CAPS_LOCK:case x.CONTEXT_MENU:case x.CTRL:case x.DOWN:case x.END:case x.ESC:case x.HOME:case x.INSERT:case x.LEFT:case x.MAC_FF_META:case x.META:case x.NUMLOCK:case x.NUM_CENTER:case x.PAGE_DOWN:case x.PAGE_UP:case x.PAUSE:case x.PRINT_SCREEN:case x.RIGHT:case x.SHIFT:case x.UP:case x.WIN_KEY:case x.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=x.ZERO&&t<=x.NINE||t>=x.NUM_ZERO&&t<=x.NUM_MULTIPLY||t>=x.A&&t<=x.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case x.SPACE:case x.QUESTION_MARK:case x.NUM_PLUS:case x.NUM_MINUS:case x.NUM_PERIOD:case x.NUM_DIVISION:case x.SEMICOLON:case x.DASH:case x.EQUALS:case x.COMMA:case x.PERIOD:case x.SLASH:case x.APOSTROPHE:case x.SINGLE_QUOTE:case x.OPEN_SQUARE_BRACKET:case x.BACKSLASH:case x.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function eo(){const[e,t]=a.useState([]),n=a.useCallback(r=>(t(o=>[].concat(ve(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function hn(e){return!!(e&&e.then)}const to=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:d,actionFn:u}=e,f=a.useRef(!1),v=a.useRef(null),[g,C]=sr(!1),y=function(){i==null||i.apply(void 0,arguments)};a.useEffect(()=>{let m=null;return l&&(m=setTimeout(()=>{var p;(p=v.current)===null||p===void 0||p.focus()})),()=>{m&&clearTimeout(m)}},[]);const S=m=>{hn(m)&&(C(!0),m.then(function(){C(!1,!0),y.apply(void 0,arguments),f.current=!1},p=>{if(C(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(p)}))},b=m=>{if(f.current)return;if(f.current=!0,!u){y();return}let p;if(s){if(p=u(m),d&&!hn(p)){f.current=!1,y(m);return}}else if(u.length)p=u(i),f.current=!1;else if(p=u(),!p){y();return}S(p)};return a.createElement(Gt,Object.assign({},jn(t),{onClick:b,loading:g,prefixCls:r},o,{ref:v}),n)},Yn=to,yt=M.createContext({}),{Provider:Qn}=yt,no=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:l,onCancel:s,onConfirm:c}=a.useContext(yt);return o?M.createElement(Yn,{isSilent:r,actionFn:s,close:function(){l==null||l.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},bn=no,ao=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:l,onConfirm:s,onOk:c}=a.useContext(yt);return M.createElement(Yn,{isSilent:n,type:l||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)},En=ao;var Zn=a.createContext({});function Sn(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function xn(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function ro(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=xn(o),n.top+=xn(o,!0),n}const oo=a.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var On={width:0,height:0,overflow:"hidden",outline:"none"},Qt=M.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,l=e.ariaId,s=e.footer,c=e.closable,d=e.closeIcon,u=e.onClose,f=e.children,v=e.bodyStyle,g=e.bodyProps,C=e.modalRender,y=e.onMouseDown,S=e.onMouseUp,b=e.holderRef,m=e.visible,p=e.forceRender,h=e.width,O=e.height,E=e.classNames,R=e.styles,I=M.useContext(Zn),_=I.panel,P=Ln(b,_),L=a.useRef(),F=a.useRef();M.useImperativeHandle(t,function(){return{focus:function(){var z;(z=L.current)===null||z===void 0||z.focus()},changeActive:function(z){var Q=document,ae=Q.activeElement;z&&ae===F.current?L.current.focus():!z&&ae===L.current&&F.current.focus()}}});var w={};h!==void 0&&(w.width=h),O!==void 0&&(w.height=O);var D;s&&(D=M.createElement("div",{className:U("".concat(n,"-footer"),E==null?void 0:E.footer),style:$({},R==null?void 0:R.footer)},s));var B;i&&(B=M.createElement("div",{className:U("".concat(n,"-header"),E==null?void 0:E.header),style:$({},R==null?void 0:R.header)},M.createElement("div",{className:"".concat(n,"-title"),id:l},i)));var k;c&&(k=M.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},d||M.createElement("span",{className:"".concat(n,"-close-x")})));var j=M.createElement("div",{className:U("".concat(n,"-content"),E==null?void 0:E.content),style:R==null?void 0:R.content},k,B,M.createElement("div",A({className:U("".concat(n,"-body"),E==null?void 0:E.body),style:$($({},v),R==null?void 0:R.body)},g),f),D);return M.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?l:null,"aria-modal":"true",ref:P,style:$($({},o),w),className:U(n,r),onMouseDown:y,onMouseUp:S},M.createElement("div",{tabIndex:0,ref:L,style:On,"aria-hidden":"true"}),M.createElement(oo,{shouldUpdate:m||p},C?C(j):j),M.createElement("div",{tabIndex:0,ref:F,style:On,"aria-hidden":"true"}))});Qt.displayName="Panel";var Jn=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,d=e.motionName,u=e.ariaId,f=e.onVisibleChanged,v=e.mousePosition,g=a.useRef(),C=a.useState(),y=W(C,2),S=y[0],b=y[1],m={};S&&(m.transformOrigin=S);function p(){var h=ro(g.current);b(v?"".concat(v.x-h.left,"px ").concat(v.y-h.top,"px"):"")}return a.createElement(Wt,{visible:l,onVisibleChanged:f,onAppearPrepare:p,onEnterPrepare:p,forceRender:s,motionName:d,removeOnLeave:c,ref:g},function(h,O){var E=h.className,R=h.style;return a.createElement(Qt,A({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:O,style:$($($({},R),o),m),className:U(i,E)}))})});Jn.displayName="Content";function io(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,l=e.className;return a.createElement(Wt,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(s,c){var d=s.className,u=s.style;return a.createElement("div",A({ref:c,style:$($({},u),n),className:U("".concat(t,"-mask"),d,l)},o))})}function lo(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,i=o===void 0?!1:o,l=e.keyboard,s=l===void 0?!0:l,c=e.focusTriggerAfterClose,d=c===void 0?!0:c,u=e.wrapStyle,f=e.wrapClassName,v=e.wrapProps,g=e.onClose,C=e.afterOpenChange,y=e.afterClose,S=e.transitionName,b=e.animation,m=e.closable,p=m===void 0?!0:m,h=e.mask,O=h===void 0?!0:h,E=e.maskTransitionName,R=e.maskAnimation,I=e.maskClosable,_=I===void 0?!0:I,P=e.maskStyle,L=e.maskProps,F=e.rootClassName,w=e.classNames,D=e.styles;["wrapStyle","bodyStyle","maskStyle"].forEach(function(K){pn(!(K in e),"".concat(K," is deprecated, please use styles instead."))}),"wrapClassName"in e&&pn(!1,"wrapClassName is deprecated, please use classNames instead.");var B=a.useRef(),k=a.useRef(),j=a.useRef(),J=a.useState(i),z=W(J,2),Q=z[0],ae=z[1],te=Rr();function G(){Cn(k.current,document.activeElement)||(B.current=document.activeElement)}function oe(){if(!Cn(k.current,document.activeElement)){var K;(K=j.current)===null||K===void 0||K.focus()}}function me(K){if(K)oe();else{if(ae(!1),O&&B.current&&d){try{B.current.focus({preventScroll:!0})}catch{}B.current=null}Q&&(y==null||y())}C==null||C(K)}function q(K){g==null||g(K)}var V=a.useRef(!1),X=a.useRef(),ue=function(){clearTimeout(X.current),V.current=!0},Re=function(){X.current=setTimeout(function(){V.current=!1})},ne=null;_&&(ne=function(Me){V.current?V.current=!1:k.current===Me.target&&q(Me)});function de(K){if(s&&K.keyCode===x.ESC){K.stopPropagation(),q(K);return}i&&K.keyCode===x.TAB&&j.current.changeActive(!K.shiftKey)}return a.useEffect(function(){i&&(ae(!0),G())},[i]),a.useEffect(function(){return function(){clearTimeout(X.current)}},[]),a.createElement("div",A({className:U("".concat(n,"-root"),F)},Jr(e,{data:!0})),a.createElement(io,{prefixCls:n,visible:O&&i,motionName:Sn(n,E,R),style:$($({zIndex:r},P),D==null?void 0:D.mask),maskProps:L,className:w==null?void 0:w.mask}),a.createElement("div",A({tabIndex:-1,onKeyDown:de,className:U("".concat(n,"-wrap"),f,w==null?void 0:w.wrapper),ref:k,onClick:ne,style:$($($({zIndex:r},u),D==null?void 0:D.wrapper),{},{display:Q?null:"none"})},v),a.createElement(Jn,A({},e,{onMouseDown:ue,onMouseUp:Re,ref:j,closable:p,ariaId:te,prefixCls:n,visible:i&&Q,onClose:q,onVisibleChanged:me,motionName:Sn(n,S,b)}))))}var ea=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,l=i===void 0?!1:i,s=t.afterClose,c=t.panelRef,d=a.useState(n),u=W(d,2),f=u[0],v=u[1],g=a.useMemo(function(){return{panel:c}},[c]);return a.useEffect(function(){n&&v(!0)},[n]),!o&&l&&!f?null:a.createElement(Zn.Provider,{value:g},a.createElement(Ir,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},a.createElement(lo,A({},t,{destroyOnClose:l,afterClose:function(){s==null||s(),v(!1)}}))))};ea.displayName="Dialog";function so(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function co(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.createElement(Yt,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!so(e,t,o))return[!1,null];const l=typeof t=="boolean"||t===void 0||t===null?r:t;return[!0,n?n(l):l]}const uo=()=>cr()&&window.document.documentElement;function Rn(){}const fo=a.createContext({add:Rn,remove:Rn});function mo(e){const t=a.useContext(fo),n=a.useRef();return Hn(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const vo=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=a.useContext(yt);return M.createElement(Gt,Object.assign({onClick:n},e),t)},In=vo,go=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=a.useContext(yt);return M.createElement(Gt,Object.assign({},jn(n),{loading:e,onClick:o},t),r)},Mn=go;function ta(e,t){return M.createElement("span",{className:`${e}-close-x`},t||M.createElement(Yt,{className:`${e}-close-icon`}))}const na=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:l,okButtonProps:s,cancelButtonProps:c,footer:d}=e,[u]=Xt("Modal",Dn()),f=t||(u==null?void 0:u.okText),v=r||(u==null?void 0:u.cancelText),g={confirmLoading:o,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:v,okType:n,onOk:i,onCancel:l},C=M.useMemo(()=>g,ve(Object.values(g)));let y;return typeof d=="function"||typeof d>"u"?(y=M.createElement(M.Fragment,null,M.createElement(In,null),M.createElement(Mn,null)),typeof d=="function"&&(y=d(y,{OkBtn:Mn,CancelBtn:In})),y=M.createElement(Qn,{value:C},y)):y=d,M.createElement(ur,{disabled:!1},y)},po=new se("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Co=new se("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),yo=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[qt(r,po,Co,e.motionDurationMid,t),{[` - ${o}${r}-enter, - ${o}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},ho=new se("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bo=new se("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Eo=new se("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),So=new se("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),xo=new se("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Oo=new se("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ro=new se("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Io=new se("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Mo={"move-up":{inKeyframes:Ro,outKeyframes:Io},"move-down":{inKeyframes:ho,outKeyframes:bo},"move-left":{inKeyframes:Eo,outKeyframes:So},"move-right":{inKeyframes:xo,outKeyframes:Oo}},dl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Mo[t];return[qt(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},wo=new se("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),No=new se("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Po=new se("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),$o=new se("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),To=new se("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),_o=new se("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ao=new se("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Lo=new se("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Do={"slide-up":{inKeyframes:wo,outKeyframes:No},"slide-down":{inKeyframes:Po,outKeyframes:$o},"slide-left":{inKeyframes:To,outKeyframes:_o},"slide-right":{inKeyframes:Ao,outKeyframes:Lo}},fl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Do[t];return[qt(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};function wn(e){return{position:e,inset:0}}const Ko=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},wn("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},wn("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:yo(e)}]},Fo=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ie(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},dr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ie(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${ie(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},fr(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Bo=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},aa=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Nr(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},ra=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${ie(e.paddingMD)} ${ie(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ie(e.padding)} ${ie(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ie(e.paddingXS)} ${ie(e.padding)}`:0,footerBorderTop:e.wireframe?`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ie(e.borderRadiusLG)} ${ie(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ie(e.padding*2)} ${ie(e.padding*2)} ${ie(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),oa=Mr("Modal",e=>{const t=aa(e);return[Fo(t),Bo(t),Ko(t),wr(t,"zoom")]},ra,{unitless:{titleLineHeight:!0}});var zo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{Kt={x:e.pageX,y:e.pageY},setTimeout(()=>{Kt=null},100)};uo()&&document.documentElement.addEventListener("click",Uo,!0);const jo=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=a.useContext(pt),l=te=>{const{onCancel:G}=e;G==null||G(te)},s=te=>{const{onOk:G}=e;G==null||G(te)};{const te=Vt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(G=>{let[oe,me]=G;te.deprecated(!(oe in e),oe,me)})}const{prefixCls:c,className:d,rootClassName:u,open:f,wrapClassName:v,centered:g,getContainer:C,closeIcon:y,closable:S,focusTriggerAfterClose:b=!0,style:m,visible:p,width:h=520,footer:O,classNames:E,styles:R}=e,I=zo(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),_=r("modal",c),P=r(),L=Wn(_),[F,w,D]=oa(_,L),B=U(v,{[`${_}-centered`]:!!g,[`${_}-wrap-rtl`]:o==="rtl"}),k=O!==null&&a.createElement(na,Object.assign({},e,{onOk:s,onCancel:l})),[j,J]=co(S,typeof y<"u"?y:i==null?void 0:i.closeIcon,te=>ta(_,te),a.createElement(Yt,{className:`${_}-close-icon`}),!0),z=mo(`.${_}-content`),[Q,ae]=Pr("Modal",I.zIndex);return F(a.createElement($r,null,a.createElement(Tr,{status:!0,override:!0},a.createElement(_r.Provider,{value:ae},a.createElement(ea,Object.assign({width:h},I,{zIndex:Q,getContainer:C===void 0?n:C,prefixCls:_,rootClassName:U(w,u,D,L),footer:k,visible:f??p,mousePosition:(t=I.mousePosition)!==null&&t!==void 0?t:Kt,onClose:l,closable:j,closeIcon:J,focusTriggerAfterClose:b,transitionName:wt(P,"zoom",e.transitionName),maskTransitionName:wt(P,"fade",e.maskTransitionName),className:U(w,d,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),m),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),E),{wrapper:U(B,E==null?void 0:E.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),R),panelRef:z}))))))},ia=jo,Ho=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:l,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:d}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},mr()),[`&${t} ${t}-body`]:{padding:d},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ie(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:l},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, - ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Wo=Ar(["Modal","confirm"],e=>{const t=aa(e);return[Ho(t)]},ra,{order:-1e3});var Vo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`);let f=n;if(!n&&n!==null)switch(l){case"info":f=a.createElement(Gr,null);break;case"success":f=a.createElement(Kr,null);break;case"error":f=a.createElement(Dr,null);break;default:f=a.createElement(Lr,null)}const v=s??l==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[C]=Xt("Modal"),y=d||C,S=r||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),b=o||(y==null?void 0:y.cancelText),m=Object.assign({autoFocusButton:g,cancelTextLocale:b,okTextLocale:S,mergedOkCancel:v},u),p=a.useMemo(()=>m,ve(Object.values(m))),h=a.createElement(a.Fragment,null,a.createElement(bn,null),a.createElement(En,null)),O=e.title!==void 0&&e.title!==null,E=`${i}-body`;return a.createElement("div",{className:`${i}-body-wrapper`},a.createElement("div",{className:U(E,{[`${E}-has-title`]:O})},f,a.createElement("div",{className:`${i}-paragraph`},O&&a.createElement("span",{className:`${i}-title`},e.title),a.createElement("div",{className:`${i}-content`},e.content))),c===void 0||typeof c=="function"?a.createElement(Qn,{value:p},a.createElement("div",{className:`${i}-btns`},typeof c=="function"?c(h,{OkBtn:En,CancelBtn:bn}):h)):c,a.createElement(Wo,{prefixCls:t}))}const sa=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:l,getContainer:s,maskStyle:c,direction:d,prefixCls:u,wrapClassName:f,rootPrefixCls:v,bodyStyle:g,closable:C=!1,closeIcon:y,modalRender:S,focusTriggerAfterClose:b,onConfirm:m,styles:p}=e;{const F=Vt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(w=>{let[D,B]=w;F.deprecated(!(D in e),D,B)})}const h=`${u}-confirm`,O=e.width||416,E=e.style||{},R=e.mask===void 0?!0:e.mask,I=e.maskClosable===void 0?!1:e.maskClosable,_=U(h,`${h}-${e.type}`,{[`${h}-rtl`]:d==="rtl"},e.className),[,P]=vr(),L=a.useMemo(()=>n!==void 0?n:P.zIndexPopupBase+Fr,[n,P]);return a.createElement(ia,{prefixCls:u,className:_,wrapClassName:U({[`${h}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),m==null||m(!1)},open:o,title:"",footer:null,transitionName:wt(v||"","zoom",e.transitionName),maskTransitionName:wt(v||"","fade",e.maskTransitionName),mask:R,maskClosable:I,style:E,styles:Object.assign({body:g,mask:c},p),width:O,zIndex:L,afterClose:r,keyboard:i,centered:l,getContainer:s,closable:C,closeIcon:y,modalRender:S,focusTriggerAfterClose:b},a.createElement(la,Object.assign({},e,{confirmPrefixCls:h})))},ca=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(kt,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(sa,Object.assign({},e)))};sa.displayName="ConfirmDialog",ca.displayName="ConfirmDialogWrapper";const ua=ca,He=[];let da="";function fa(){return da}const ko=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,l=Dn(),s=a.useContext(pt),c=fa()||s.getPrefixCls(),d=r||`${c}-modal`;let u=o;return u===!1&&(u=void 0,Kn(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),M.createElement(ua,Object.assign({},e,{rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:l,getContainer:u}))};function ht(e){const t=pr();t.holderRender||gr("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),o;function i(){for(var d=arguments.length,u=new Array(d),f=0;fg&&g.triggerCancel);e.onCancel&&v&&e.onCancel.apply(e,[()=>{}].concat(ve(u.slice(1))));for(let g=0;g{const u=t.getPrefixCls(void 0,fa()),f=t.getIconPrefixCls(),v=t.getTheme(),g=M.createElement(ko,Object.assign({},d));zr(M.createElement(kt,{prefixCls:u,iconPrefixCls:f,theme:v},t.holderRender?t.holderRender(g):g),n)})}function s(){for(var d=arguments.length,u=new Array(d),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,u)}}),r.visible&&delete r.visible,l(r)}function c(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),l(r)}return l(r),He.push(s),{destroy:s,update:c}}function ma(e){return Object.assign(Object.assign({},e),{type:"warning"})}function va(e){return Object.assign(Object.assign({},e),{type:"info"})}function ga(e){return Object.assign(Object.assign({},e),{type:"success"})}function pa(e){return Object.assign(Object.assign({},e),{type:"error"})}function Ca(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Go(e){let{rootPrefixCls:t}=e;Kn(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),da=t}var Xo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,i=Xo(e,["afterClose","config"]);const[l,s]=a.useState(!0),[c,d]=a.useState(o),{direction:u,getPrefixCls:f}=a.useContext(pt),v=f("modal"),g=f(),C=()=>{var m;r(),(m=c.afterClose)===null||m===void 0||m.call(c)},y=function(){s(!1);for(var m=arguments.length,p=new Array(m),h=0;hE&&E.triggerCancel);c.onCancel&&O&&c.onCancel.apply(c,[()=>{}].concat(ve(p.slice(1))))};a.useImperativeHandle(t,()=>({destroy:y,update:m=>{d(p=>Object.assign(Object.assign({},p),m))}}));const S=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[b]=Xt("Modal",Cr.Modal);return a.createElement(ua,Object.assign({prefixCls:v,rootPrefixCls:g},c,{close:y,open:l,afterClose:C,okText:c.okText||(S?b==null?void 0:b.okText:b==null?void 0:b.justOkText),direction:c.direction||u,cancelText:c.cancelText||(b==null?void 0:b.cancelText)},i))},Yo=a.forwardRef(qo);let Nn=0;const Qo=a.memo(a.forwardRef((e,t)=>{const[n,r]=eo();return a.useImperativeHandle(t,()=>({patchElement:r}),[]),a.createElement(a.Fragment,null,n)}));function Zo(){const e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&(ve(t).forEach(l=>{l()}),n([]))},[t]);const r=a.useCallback(i=>function(s){var c;Nn+=1;const d=a.createRef();let u;const f=new Promise(S=>{u=S});let v=!1,g;const C=a.createElement(Yo,{key:`modal-${Nn}`,config:i(s),ref:d,afterClose:()=>{g==null||g()},isSilent:()=>v,onConfirm:S=>{u(S)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(C),g&&He.push(g),{destroy:()=>{function S(){var b;(b=d.current)===null||b===void 0||b.destroy()}d.current?S():n(b=>[].concat(ve(b),[S]))},update:S=>{function b(){var m;(m=d.current)===null||m===void 0||m.update(S)}d.current?b():n(m=>[].concat(ve(m),[b]))},then:S=>(v=!0,f.then(S))}},[]);return[a.useMemo(()=>({info:r(va),success:r(ga),error:r(pa),warning:r(ma),confirm:r(Ca)}),[]),a.createElement(Qo,{key:"modal-holder",ref:e})]}function ya(e){return t=>a.createElement(kt,{theme:{token:{motion:!1,zIndexPopupBase:0}}},a.createElement(e,Object.assign({},t)))}const ml=(e,t,n,r)=>ya(i=>{const{prefixCls:l,style:s}=i,c=a.useRef(null),[d,u]=a.useState(0),[f,v]=a.useState(0),[g,C]=mt(!1,{value:i.open}),{getPrefixCls:y}=a.useContext(pt),S=y(t||"select",l);a.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const p=new ResizeObserver(O=>{const E=O[0].target;u(E.offsetHeight+8),v(E.offsetWidth)}),h=setInterval(()=>{var O;const E=n?`.${n(S)}`:`.${S}-dropdown`,R=(O=c.current)===null||O===void 0?void 0:O.querySelector(E);R&&(clearInterval(h),p.observe(R))},10);return()=>{clearInterval(h),p.disconnect()}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(b=r(b));const m={paddingBottom:d,position:"relative",minWidth:f};return a.createElement("div",{ref:c,style:m},a.createElement(e,Object.assign({},b)))});var Jo=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Je=void 0;function ei(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,l=e.responsive,s=e.responsiveDisabled,c=e.registerSize,d=e.itemKey,u=e.className,f=e.style,v=e.children,g=e.display,C=e.order,y=e.component,S=y===void 0?"div":y,b=le(e,Jo),m=l&&!g;function p(I){c(d,I)}a.useEffect(function(){return function(){p(null)}},[]);var h=i&&o!==Je?i(o):v,O;r||(O={opacity:m?0:1,height:m?0:Je,overflowY:m?"hidden":Je,order:l?C:Je,pointerEvents:m?"none":Je,position:m?"absolute":Je});var E={};m&&(E["aria-hidden"]=!0);var R=a.createElement(S,A({className:U(!r&&n,u),style:$($({},O),f)},E,b,{ref:t}),h);return l&&(R=a.createElement(Vn,{onResize:function(_){var P=_.offsetWidth;p(P)},disabled:s},R)),R}var vt=a.forwardRef(ei);vt.displayName="Item";function ti(e){if(typeof MessageChannel>"u")We(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function ni(){var e=a.useRef(null),t=function(r){e.current||(e.current=[],ti(function(){Fn.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ct(e,t){var n=a.useState(t),r=W(n,2),o=r[0],i=r[1],l=Hn(function(s){e(function(){i(s)})});return[o,l]}var Nt=M.createContext(null),ai=["component"],ri=["className"],oi=["className"],ii=function(t,n){var r=a.useContext(Nt);if(!r){var o=t.component,i=o===void 0?"div":o,l=le(t,ai);return a.createElement(i,A({},l,{ref:n}))}var s=r.className,c=le(r,ri),d=t.className,u=le(t,oi);return a.createElement(Nt.Provider,{value:null},a.createElement(vt,A({ref:n,className:U(s,d)},c,u)))},ha=a.forwardRef(ii);ha.displayName="RawItem";var li=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ba="responsive",Ea="invalidate";function si(e){return"+ ".concat(e.length," ...")}function ci(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,l=e.renderItem,s=e.renderRawItem,c=e.itemKey,d=e.itemWidth,u=d===void 0?10:d,f=e.ssr,v=e.style,g=e.className,C=e.maxCount,y=e.renderRest,S=e.renderRawRest,b=e.suffix,m=e.component,p=m===void 0?"div":m,h=e.itemComponent,O=e.onVisibleChange,E=le(e,li),R=f==="full",I=ni(),_=ct(I,null),P=W(_,2),L=P[0],F=P[1],w=L||0,D=ct(I,new Map),B=W(D,2),k=B[0],j=B[1],J=ct(I,0),z=W(J,2),Q=z[0],ae=z[1],te=ct(I,0),G=W(te,2),oe=G[0],me=G[1],q=ct(I,0),V=W(q,2),X=V[0],ue=V[1],Re=a.useState(null),ne=W(Re,2),de=ne[0],K=ne[1],Me=a.useState(null),$e=W(Me,2),Ee=$e[0],rt=$e[1],we=a.useMemo(function(){return Ee===null&&R?Number.MAX_SAFE_INTEGER:Ee||0},[Ee,L]),Ve=a.useState(!1),Le=W(Ve,2),ke=Le[0],Ge=Le[1],ge="".concat(r,"-item"),Xe=Math.max(Q,oe),Te=C===ba,pe=i.length&&Te,qe=C===Ea,De=pe||typeof C=="number"&&i.length>C,ye=a.useMemo(function(){var N=i;return pe?L===null&&R?N=i:N=i.slice(0,Math.min(i.length,w/u)):typeof C=="number"&&(N=i.slice(0,C)),N},[i,u,L,C,pe]),_e=a.useMemo(function(){return pe?i.slice(we+1):i.slice(ye.length)},[i,ye,pe,we]),Ne=a.useCallback(function(N,T){var re;return typeof c=="function"?c(N):(re=c&&(N==null?void 0:N[c]))!==null&&re!==void 0?re:T},[c]),Ke=a.useCallback(l||function(N){return N},[l]);function ce(N,T,re){Ee===N&&(T===void 0||T===de)||(rt(N),re||(Ge(Nw){ce(xe-1,N-ze-X+oe);break}}b&&ot(0)+X>w&&K(null)}},[w,k,oe,X,Ne,ye]);var Et=ke&&!!_e.length,Ye={};de!==null&&pe&&(Ye={position:"absolute",left:de,top:0});var Ue={prefixCls:ge,responsive:pe,component:h,invalidate:qe},St=s?function(N,T){var re=Ne(N,T);return a.createElement(Nt.Provider,{key:re,value:$($({},Ue),{},{order:T,item:N,itemKey:re,registerSize:Pe,display:T<=we})},s(N,T))}:function(N,T){var re=Ne(N,T);return a.createElement(vt,A({},Ue,{order:T,key:re,item:N,renderItem:Ke,itemKey:re,registerSize:Pe,display:T<=we}))},Be,Qe={order:Et?we:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:Se,display:Et};if(S)S&&(Be=a.createElement(Nt.Provider,{value:$($({},Ue),Qe)},S(_e)));else{var Ze=y||si;Be=a.createElement(vt,A({},Ue,Qe),typeof Ze=="function"?Ze(_e):Ze)}var it=a.createElement(p,A({className:U(!qe&&r,g),style:v,ref:t},E),ye.map(St),De?Be:null,b&&a.createElement(vt,A({},Ue,{responsive:Te,responsiveDisabled:!pe,order:we,className:"".concat(ge,"-suffix"),registerSize:Ce,display:!0,style:Ye}),b));return Te&&(it=a.createElement(Vn,{onResize:Fe,disabled:!pe},it)),it}var Ae=a.forwardRef(ci);Ae.displayName="Overflow";Ae.Item=ha;Ae.RESPONSIVE=ba;Ae.INVALIDATE=Ea;var ui={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const di=ui;var Sa=function(t,n){return a.createElement(Ct,A({},t,{ref:n,icon:di}))};Sa.displayName="RightOutlined";const vl=a.forwardRef(Sa);var fi=x.ESC,mi=x.TAB;function vi(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,l=a.useRef(!1),s=function(){if(t){var f,v;(f=n.current)===null||f===void 0||(v=f.focus)===null||v===void 0||v.call(f),r==null||r(!1)}},c=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),l.current=!0,!0):!1},d=function(f){switch(f.keyCode){case fi:s();break;case mi:{var v=!1;l.current||(v=c()),v?f.preventDefault():s();break}}};a.useEffect(function(){return t?(window.addEventListener("keydown",d),o&&We(c,3),function(){window.removeEventListener("keydown",d),l.current=!1}):function(){l.current=!1}},[t])}var gi=a.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=a.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),l=Bn(t,i==null?void 0:i.ref);return M.createElement(M.Fragment,null,r&&M.createElement("div",{className:"".concat(o,"-arrow")}),M.cloneElement(i,{ref:zn(i)?l:void 0}))}),et={adjustX:1,adjustY:1},tt=[0,0],pi={topLeft:{points:["bl","tl"],overflow:et,offset:[0,-4],targetOffset:tt},top:{points:["bc","tc"],overflow:et,offset:[0,-4],targetOffset:tt},topRight:{points:["br","tr"],overflow:et,offset:[0,-4],targetOffset:tt},bottomLeft:{points:["tl","bl"],overflow:et,offset:[0,4],targetOffset:tt},bottom:{points:["tc","bc"],overflow:et,offset:[0,4],targetOffset:tt},bottomRight:{points:["tr","br"],overflow:et,offset:[0,4],targetOffset:tt}},Ci=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function yi(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,l=i===void 0?"rc-dropdown":i,s=e.transitionName,c=e.animation,d=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,v=e.placements,g=v===void 0?pi:v,C=e.getPopupContainer,y=e.showAction,S=e.hideAction,b=e.overlayClassName,m=e.overlayStyle,p=e.visible,h=e.trigger,O=h===void 0?["hover"]:h,E=e.autoFocus,R=e.overlay,I=e.children,_=e.onVisibleChange,P=le(e,Ci),L=M.useState(),F=W(L,2),w=F[0],D=F[1],B="visible"in e?p:w,k=M.useRef(null),j=M.useRef(null),J=M.useRef(null);M.useImperativeHandle(t,function(){return k.current});var z=function(X){D(X),_==null||_(X)};vi({visible:B,triggerRef:J,onVisibleChange:z,autoFocus:E,overlayRef:j});var Q=function(X){var ue=e.onOverlayClick;D(!1),ue&&ue(X)},ae=function(){return M.createElement(gi,{ref:j,overlay:R,prefixCls:l,arrow:o})},te=function(){return typeof R=="function"?ae:ae()},G=function(){var X=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ue},oe=function(){var X=e.openClassName;return X!==void 0?X:"".concat(l,"-open")},me=M.cloneElement(I,{className:U((n=I.props)===null||n===void 0?void 0:n.className,B&&oe()),ref:zn(I)?Bn(J,I.ref):void 0}),q=S;return!q&&O.indexOf("contextMenu")!==-1&&(q=["click"]),M.createElement(kn,A({builtinPlacements:g},P,{prefixCls:l,ref:k,popupClassName:U(b,Z({},"".concat(l,"-show-arrow"),o)),popupStyle:m,action:O,showAction:y,hideAction:q,popupPlacement:f,popupAlign:d,popupTransitionName:s,popupAnimation:c,popupVisible:B,stretch:G()?"minWidth":"",popup:te(),onPopupVisibleChange:z,onPopupClick:Q,getPopupContainer:C}),me)}const gl=M.forwardRef(yi);var xa=a.createContext(null);function Oa(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Ra(e){var t=a.useContext(xa);return Oa(t,e)}var hi=["children","locked"],Ie=a.createContext(null);function bi(e,t){var n=$({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function gt(e){var t=e.children,n=e.locked,r=le(e,hi),o=a.useContext(Ie),i=hr(function(){return bi(o,r)},[o,r],function(l,s){return!n&&(l[0]!==s[0]||!Un(l[1],s[1],!0))});return a.createElement(Ie.Provider,{value:i},t)}var Ei=[],Ia=a.createContext(null);function $t(){return a.useContext(Ia)}var Ma=a.createContext(Ei);function bt(e){var t=a.useContext(Ma);return a.useMemo(function(){return e!==void 0?[].concat(ve(t),[e]):t},[t,e])}var wa=a.createContext(null),Zt=a.createContext({});function Pn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ur(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),l=null;return o&&!Number.isNaN(i)?l=i:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function Si(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ve(e.querySelectorAll("*")).filter(function(r){return Pn(r,t)});return Pn(e,t)&&n.unshift(e),n}var Ft=x.LEFT,Bt=x.RIGHT,zt=x.UP,It=x.DOWN,Mt=x.ENTER,Na=x.ESC,ut=x.HOME,dt=x.END,$n=[zt,It,Ft,Bt];function xi(e,t,n,r){var o,i,l,s,c="prev",d="next",u="children",f="parent";if(e==="inline"&&r===Mt)return{inlineTrigger:!0};var v=(o={},Z(o,zt,c),Z(o,It,d),o),g=(i={},Z(i,Ft,n?d:c),Z(i,Bt,n?c:d),Z(i,It,u),Z(i,Mt,u),i),C=(l={},Z(l,zt,c),Z(l,It,d),Z(l,Mt,u),Z(l,Na,f),Z(l,Ft,n?u:f),Z(l,Bt,n?f:u),l),y={inline:v,horizontal:g,vertical:C,inlineSub:v,horizontalSub:C,verticalSub:C},S=(s=y["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(S){case c:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function Oi(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Ri(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Jt(e,t){var n=Si(e,!0);return n.filter(function(r){return t.has(r)})}function Tn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Jt(e,t),i=o.length,l=o.findIndex(function(s){return n===s});return r<0?l===-1?l=i-1:l-=1:r>0&&(l+=1),l=(l+i)%i,o[l]}var Ut=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(Oa(n,l),"']"));s&&(r.add(s),i.set(s,l),o.set(l,s))}),{elements:r,key2element:o,element2key:i}};function Ii(e,t,n,r,o,i,l,s,c,d){var u=a.useRef(),f=a.useRef();f.current=t;var v=function(){We.cancel(u.current)};return a.useEffect(function(){return function(){v()}},[]),function(g){var C=g.which;if([].concat($n,[Mt,Na,ut,dt]).includes(C)){var y=i(),S=Ut(y,r),b=S,m=b.elements,p=b.key2element,h=b.element2key,O=p.get(t),E=Ri(O,m),R=h.get(E),I=xi(e,l(R,!0).length===1,n,C);if(!I&&C!==ut&&C!==dt)return;($n.includes(C)||[ut,dt].includes(C))&&g.preventDefault();var _=function(j){if(j){var J=j,z=j.querySelector("a");z!=null&&z.getAttribute("href")&&(J=z);var Q=h.get(j);s(Q),v(),u.current=We(function(){f.current===Q&&J.focus()})}};if([ut,dt].includes(C)||I.sibling||!E){var P;!E||e==="inline"?P=o.current:P=Oi(E);var L,F=Jt(P,m);C===ut?L=F[0]:C===dt?L=F[F.length-1]:L=Tn(P,m,E,I.offset),_(L)}else if(I.inlineTrigger)c(R);else if(I.offset>0)c(R,!0),v(),u.current=We(function(){S=Ut(y,r);var k=E.getAttribute("aria-controls"),j=document.getElementById(k),J=Tn(j,S.elements);_(J)},5);else if(I.offset<0){var w=l(R,!0),D=w[w.length-2],B=p.get(D);c(D,!1),_(B)}}d==null||d(g)}}function Mi(e){Promise.resolve().then(e)}var en="__RC_UTIL_PATH_SPLIT__",_n=function(t){return t.join(en)},wi=function(t){return t.split(en)},jt="rc-menu-more";function Ni(){var e=a.useState({}),t=W(e,2),n=t[1],r=a.useRef(new Map),o=a.useRef(new Map),i=a.useState([]),l=W(i,2),s=l[0],c=l[1],d=a.useRef(0),u=a.useRef(!1),f=function(){u.current||n({})},v=a.useCallback(function(p,h){at(!r.current.has(p),"Duplicated key '".concat(p,"' used in Menu by path [").concat(h.join(" > "),"]"));var O=_n(h);o.current.set(O,p),r.current.set(p,O),d.current+=1;var E=d.current;Mi(function(){E===d.current&&f()})},[]),g=a.useCallback(function(p,h){var O=_n(h);o.current.delete(O),r.current.delete(p)},[]),C=a.useCallback(function(p){c(p)},[]),y=a.useCallback(function(p,h){var O=r.current.get(p)||"",E=wi(O);return h&&s.includes(E[0])&&E.unshift(jt),E},[s]),S=a.useCallback(function(p,h){return p.some(function(O){var E=y(O,!0);return E.includes(h)})},[y]),b=function(){var h=ve(r.current.keys());return s.length&&h.push(jt),h},m=a.useCallback(function(p){var h="".concat(r.current.get(p)).concat(en),O=new Set;return ve(o.current.keys()).forEach(function(E){E.startsWith(h)&&O.add(o.current.get(E))}),O},[]);return a.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:v,unregisterPath:g,refreshOverflowKeys:C,isSubPathKey:S,getKeyPath:y,getKeys:b,getSubPathKeys:m}}function ft(e){var t=a.useRef(e);t.current=e;var n=a.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),l=0;l1&&(m.motionAppear=!1);var p=m.onVisibleChanged;return m.onVisibleChanged=function(h){return!v.current&&!h&&S(!0),p==null?void 0:p(h)},y?null:a.createElement(gt,{mode:i,locked:!v.current},a.createElement(Wt,A({visible:b},m,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(h){var O=h.className,E=h.style;return a.createElement(nn,{id:t,className:O,style:E},o)}))}var ki=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Gi=["active"],Xi=function(t){var n,r=t.style,o=t.className,i=t.title,l=t.eventKey,s=t.warnKey,c=t.disabled,d=t.internalPopupClose,u=t.children,f=t.itemIcon,v=t.expandIcon,g=t.popupClassName,C=t.popupOffset,y=t.popupStyle,S=t.onClick,b=t.onMouseEnter,m=t.onMouseLeave,p=t.onTitleClick,h=t.onTitleMouseEnter,O=t.onTitleMouseLeave,E=le(t,ki),R=Ra(l),I=a.useContext(Ie),_=I.prefixCls,P=I.mode,L=I.openKeys,F=I.disabled,w=I.overflowDisabled,D=I.activeKey,B=I.selectedKeys,k=I.itemIcon,j=I.expandIcon,J=I.onItemClick,z=I.onOpenChange,Q=I.onActive,ae=a.useContext(Zt),te=ae._internalRenderSubMenuItem,G=a.useContext(wa),oe=G.isSubPathKey,me=bt(),q="".concat(_,"-submenu"),V=F||c,X=a.useRef(),ue=a.useRef();s&&at(!1,"SubMenu should not leave undefined `key`.");var Re=f??k,ne=v??j,de=L.includes(l),K=!w&&de,Me=oe(B,l),$e=Pa(l,V,h,O),Ee=$e.active,rt=le($e,Gi),we=a.useState(!1),Ve=W(we,2),Le=Ve[0],ke=Ve[1],Ge=function(Ce){V||ke(Ce)},ge=function(Ce){Ge(!0),b==null||b({key:l,domEvent:Ce})},Xe=function(Ce){Ge(!1),m==null||m({key:l,domEvent:Ce})},Te=a.useMemo(function(){return Ee||(P!=="inline"?Le||oe([D],l):!1)},[P,Ee,D,Le,l,oe]),pe=$a(me.length),qe=function(Ce){V||(p==null||p({key:l,domEvent:Ce}),P==="inline"&&z(l,!de))},De=ft(function(Se){S==null||S(Pt(Se)),J(Se)}),ye=function(Ce){P!=="inline"&&z(l,Ce)},_e=function(){Q(l)},Ne=R&&"".concat(R,"-popup"),Ke=a.createElement("div",A({role:"menuitem",style:pe,className:"".concat(q,"-title"),tabIndex:V?null:-1,ref:X,title:typeof i=="string"?i:null,"data-menu-id":w&&R?null:R,"aria-expanded":K,"aria-haspopup":!0,"aria-controls":Ne,"aria-disabled":V,onClick:qe,onFocus:_e},rt),i,a.createElement(Ta,{icon:P!=="horizontal"?ne:void 0,props:$($({},t),{},{isOpen:K,isSubMenu:!0})},a.createElement("i",{className:"".concat(q,"-arrow")}))),ce=a.useRef(P);if(P!=="inline"&&me.length>1?ce.current="vertical":ce.current=P,!w){var Fe=ce.current;Ke=a.createElement(Wi,{mode:Fe,prefixCls:q,visible:!d&&K&&P!=="inline",popupClassName:g,popupOffset:C,popupStyle:y,popup:a.createElement(gt,{mode:Fe==="horizontal"?"vertical":Fe},a.createElement(nn,{id:Ne,ref:ue},u)),disabled:V,onVisibleChange:ye},Ke)}var Pe=a.createElement(Ae.Item,A({role:"none"},E,{component:"li",style:r,className:U(q,"".concat(q,"-").concat(P),o,(n={},Z(n,"".concat(q,"-open"),K),Z(n,"".concat(q,"-active"),Te),Z(n,"".concat(q,"-selected"),Me),Z(n,"".concat(q,"-disabled"),V),n)),onMouseEnter:ge,onMouseLeave:Xe}),Ke,!w&&a.createElement(Vi,{id:Ne,open:K,keyPath:me},u));return te&&(Pe=te(Pe,t,{selected:Me,active:Te,open:K,disabled:V})),a.createElement(gt,{onItemClick:De,mode:P==="horizontal"?"vertical":P,itemIcon:Re,expandIcon:ne},Pe)};function rn(e){var t=e.eventKey,n=e.children,r=bt(t),o=an(n,r),i=$t();a.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var l;return i?l=o:l=a.createElement(Xi,e,o),a.createElement(Ma.Provider,{value:r},l)}var qi=["className","title","eventKey","children"],Yi=["children"],Qi=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=le(t,qi),l=a.useContext(Ie),s=l.prefixCls,c="".concat(s,"-item-group");return a.createElement("li",A({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:U(c,n)}),a.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),a.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function Aa(e){var t=e.children,n=le(e,Yi),r=bt(n.eventKey),o=an(t,r),i=$t();return i?o:a.createElement(Qi,Gn(n,["warnKey"]),o)}function La(e){var t=e.className,n=e.style,r=a.useContext(Ie),o=r.prefixCls,i=$t();return i?null:a.createElement("li",{role:"separator",className:U("".concat(o,"-item-divider"),t),style:n})}var Zi=["label","children","key","type"];function Ht(e){return(e||[]).map(function(t,n){if(t&&Or(t)==="object"){var r=t,o=r.label,i=r.children,l=r.key,s=r.type,c=le(r,Zi),d=l??"tmp-".concat(n);return i||s==="group"?s==="group"?a.createElement(Aa,A({key:d},c,{title:o}),Ht(i)):a.createElement(rn,A({key:d},c,{title:o}),Ht(i)):s==="divider"?a.createElement(La,A({key:d},c)):a.createElement(tn,A({key:d},c),o)}return null}).filter(function(t){return t})}function Ji(e,t,n){var r=e;return t&&(r=Ht(t)),an(r,n)}var el=["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"],nt=[],tl=a.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,l=i===void 0?"rc-menu":i,s=o.rootClassName,c=o.style,d=o.className,u=o.tabIndex,f=u===void 0?0:u,v=o.items,g=o.children,C=o.direction,y=o.id,S=o.mode,b=S===void 0?"vertical":S,m=o.inlineCollapsed,p=o.disabled,h=o.disabledOverflow,O=o.subMenuOpenDelay,E=O===void 0?.1:O,R=o.subMenuCloseDelay,I=R===void 0?.1:R,_=o.forceSubMenuRender,P=o.defaultOpenKeys,L=o.openKeys,F=o.activeKey,w=o.defaultActiveFirst,D=o.selectable,B=D===void 0?!0:D,k=o.multiple,j=k===void 0?!1:k,J=o.defaultSelectedKeys,z=o.selectedKeys,Q=o.onSelect,ae=o.onDeselect,te=o.inlineIndent,G=te===void 0?24:te,oe=o.motion,me=o.defaultMotions,q=o.triggerSubMenuAction,V=q===void 0?"hover":q,X=o.builtinPlacements,ue=o.itemIcon,Re=o.expandIcon,ne=o.overflowedIndicator,de=ne===void 0?"...":ne,K=o.overflowedIndicatorPopupClassName,Me=o.getPopupContainer,$e=o.onClick,Ee=o.onOpenChange,rt=o.onKeyDown,we=o.openAnimation,Ve=o.openTransitionName,Le=o._internalRenderMenuItem,ke=o._internalRenderSubMenuItem,Ge=le(o,el),ge=a.useMemo(function(){return Ji(g,v,nt)},[g,v]),Xe=a.useState(!1),Te=W(Xe,2),pe=Te[0],qe=Te[1],De=a.useRef(),ye=$i(y),_e=C==="rtl";at(!we&&!Ve,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var Ne=mt(P,{value:L,postState:function(H){return H||nt}}),Ke=W(Ne,2),ce=Ke[0],Fe=Ke[1],Pe=function(H){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function he(){Fe(H),Ee==null||Ee(H)}Y?Fn.flushSync(he):he()},Se=a.useState(ce),Ce=W(Se,2),ot=Ce[0],Et=Ce[1],Ye=a.useRef(!1),Ue=a.useMemo(function(){return(b==="inline"||b==="vertical")&&m?["vertical",m]:[b,!1]},[b,m]),St=W(Ue,2),Be=St[0],Qe=St[1],Ze=Be==="inline",it=a.useState(Be),N=W(it,2),T=N[0],re=N[1],xe=a.useState(Qe),ze=W(xe,2),Ba=ze[0],za=ze[1];a.useEffect(function(){re(Be),za(Qe),Ye.current&&(Ze?Fe(ot):Pe(nt))},[Be,Qe]);var Ua=a.useState(0),on=W(Ua,2),xt=on[0],ja=on[1],_t=xt>=ge.length-1||T!=="horizontal"||h;a.useEffect(function(){Ze&&Et(ce)},[ce]),a.useEffect(function(){return Ye.current=!0,function(){Ye.current=!1}},[]);var je=Ni(),ln=je.registerPath,sn=je.unregisterPath,Ha=je.refreshOverflowKeys,cn=je.isSubPathKey,Wa=je.getKeyPath,un=je.getKeys,Va=je.getSubPathKeys,ka=a.useMemo(function(){return{registerPath:ln,unregisterPath:sn}},[ln,sn]),Ga=a.useMemo(function(){return{isSubPathKey:cn}},[cn]);a.useEffect(function(){Ha(_t?nt:ge.slice(xt+1).map(function(ee){return ee.key}))},[xt,_t]);var Xa=mt(F||w&&((n=ge[0])===null||n===void 0?void 0:n.key),{value:F}),dn=W(Xa,2),lt=dn[0],At=dn[1],qa=ft(function(ee){At(ee)}),Ya=ft(function(){At(void 0)});a.useImperativeHandle(t,function(){return{list:De.current,focus:function(H){var Y,he=un(),be=Ut(he,ye),Rt=be.elements,Lt=be.key2element,ir=be.element2key,vn=Jt(De.current,Rt),gn=lt??(vn[0]?ir.get(vn[0]):(Y=ge.find(function(lr){return!lr.props.disabled}))===null||Y===void 0?void 0:Y.key),st=Lt.get(gn);if(gn&&st){var Dt;st==null||(Dt=st.focus)===null||Dt===void 0||Dt.call(st,H)}}}});var Qa=mt(J||[],{value:z,postState:function(H){return Array.isArray(H)?H:H==null?nt:[H]}}),fn=W(Qa,2),Ot=fn[0],Za=fn[1],Ja=function(H){if(B){var Y=H.key,he=Ot.includes(Y),be;j?he?be=Ot.filter(function(Lt){return Lt!==Y}):be=[].concat(ve(Ot),[Y]):be=[Y],Za(be);var Rt=$($({},H),{},{selectedKeys:be});he?ae==null||ae(Rt):Q==null||Q(Rt)}!j&&ce.length&&T!=="inline"&&Pe(nt)},er=ft(function(ee){$e==null||$e(Pt(ee)),Ja(ee)}),mn=ft(function(ee,H){var Y=ce.filter(function(be){return be!==ee});if(H)Y.push(ee);else if(T!=="inline"){var he=Va(ee);Y=Y.filter(function(be){return!he.has(be)})}Un(ce,Y,!0)||Pe(Y,!0)}),tr=function(H,Y){var he=Y??!ce.includes(H);mn(H,he)},nr=Ii(T,lt,_e,ye,De,un,Wa,At,tr,rt);a.useEffect(function(){qe(!0)},[]);var ar=a.useMemo(function(){return{_internalRenderMenuItem:Le,_internalRenderSubMenuItem:ke}},[Le,ke]),rr=T!=="horizontal"||h?ge:ge.map(function(ee,H){return a.createElement(gt,{key:ee.key,overflowDisabled:H>xt},ee)}),or=a.createElement(Ae,A({id:y,ref:De,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:tn,className:U(l,"".concat(l,"-root"),"".concat(l,"-").concat(T),d,(r={},Z(r,"".concat(l,"-inline-collapsed"),Ba),Z(r,"".concat(l,"-rtl"),_e),r),s),dir:C,style:c,role:"menu",tabIndex:f,data:rr,renderRawItem:function(H){return H},renderRawRest:function(H){var Y=H.length,he=Y?ge.slice(-Y):null;return a.createElement(rn,{eventKey:jt,title:de,disabled:_t,internalPopupClose:Y===0,popupClassName:K},he)},maxCount:T!=="horizontal"||h?Ae.INVALIDATE:Ae.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(H){ja(H)},onKeyDown:nr},Ge));return a.createElement(Zt.Provider,{value:ar},a.createElement(xa.Provider,{value:ye},a.createElement(gt,{prefixCls:l,rootClassName:s,mode:T,openKeys:ce,rtl:_e,disabled:p,motion:pe?oe:null,defaultMotions:pe?me:null,activeKey:lt,onActive:qa,onInactive:Ya,selectedKeys:Ot,inlineIndent:G,subMenuOpenDelay:E,subMenuCloseDelay:I,forceSubMenuRender:_,builtinPlacements:X,triggerSubMenuAction:V,getPopupContainer:Me,itemIcon:ue,expandIcon:Re,onItemClick:er,onOpenChange:mn},a.createElement(wa.Provider,{value:Ga},or),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(Ia.Provider,{value:ka},ge)))))}),Tt=tl;Tt.Item=tn;Tt.SubMenu=rn;Tt.ItemGroup=Aa;Tt.Divider=La;var nl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const al=nl;var Da=function(t,n){return a.createElement(Ct,A({},t,{ref:n,icon:al}))};Da.displayName="LeftOutlined";const pl=a.forwardRef(Da);var rl={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"};const ol=rl;var Ka=function(t,n){return a.createElement(Ct,A({},t,{ref:n,icon:ol}))};Ka.displayName="EllipsisOutlined";const Cl=a.forwardRef(Ka);var il=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:l,children:s,footer:c}=e,d=il(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=a.useContext(pt),f=u(),v=t||u("modal"),g=Wn(f),[C,y,S]=oa(v,g),b=`${v}-confirm`;let m={};return i?m={closable:o??!1,title:"",footer:"",children:a.createElement(la,Object.assign({},e,{prefixCls:v,confirmPrefixCls:b,rootPrefixCls:f,content:s}))}:m={closable:o??!0,title:l,footer:c!==null&&a.createElement(na,Object.assign({},e)),children:s},C(a.createElement(Qt,Object.assign({prefixCls:v,className:U(y,`${v}-pure-panel`,i&&b,i&&`${b}-${i}`,n,S,g)},d,{closeIcon:ta(v,r),closable:o},m)))},sl=ya(ll);function Fa(e){return ht(ma(e))}const Oe=ia;Oe.useModal=Zo;Oe.info=function(t){return ht(va(t))};Oe.success=function(t){return ht(ga(t))};Oe.error=function(t){return ht(pa(t))};Oe.warning=Fa;Oe.warn=Fa;Oe.confirm=function(t){return ht(Ca(t))};Oe.destroyAll=function(){for(;He.length;){const t=He.pop();t&&t()}};Oe.config=Go;Oe._InternalPanelDoNotUseOrYouWillBeFired=sl;Oe.displayName="Modal";const yl=Oe;export{Yt as C,La as D,Tt as E,Ae as F,Gr as I,x as K,pl as L,tn as M,vl as R,rn as S,Aa as a,Cl as b,Po as c,No as d,$o as e,dl as f,gl as g,ml as h,fl as i,yl as j,co as k,mo as l,Jr as p,wo as s,bt as u}; diff --git a/packages/server/html/assets/index-PQpvq_Wk.js b/packages/server/html/assets/index-DwI-3NEe.js similarity index 82% rename from packages/server/html/assets/index-PQpvq_Wk.js rename to packages/server/html/assets/index-DwI-3NEe.js index 1b7b0e7..3eb7805 100644 --- a/packages/server/html/assets/index-PQpvq_Wk.js +++ b/packages/server/html/assets/index-DwI-3NEe.js @@ -1 +1 @@ -import{u as r,a as u,r as n,A as t,j as o}from"./index-WagZkOpk.js";const g=()=>{const e=r(),{computed:{logged:s},ready:a}=u();return n.useEffect(()=>{a&&e(s?t.Dashboard:t.Login)},[s,a,e]),o.jsxDEV(o.Fragment,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/index.tsx",lineNumber:21,columnNumber:10},void 0)};export{g as default}; +import{u as r,a as u,r as n,A as t,j as o}from"./index-E_dpsFJ8.js";const g=()=>{const e=r(),{computed:{logged:s},ready:a}=u();return n.useEffect(()=>{a&&e(s?t.Dashboard:t.Login)},[s,a,e]),o.jsxDEV(o.Fragment,{},void 0,!1,{fileName:"/Users/erguotou/workspace/erguotou/fake-sms/packages/web/src/pages/index.tsx",lineNumber:21,columnNumber:10},void 0)};export{g as default}; diff --git a/packages/server/html/assets/index-E_dpsFJ8.js b/packages/server/html/assets/index-E_dpsFJ8.js new file mode 100644 index 0000000..d1a6e1b --- /dev/null +++ b/packages/server/html/assets/index-E_dpsFJ8.js @@ -0,0 +1,361 @@ +function aT(r,i){for(var l=0;lu[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const v of c.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&l(v)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var E$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var iT={exports:{}},By={},oT={exports:{}},Wd={exports:{}};Wd.exports;(function(r,i){/** + * @license React + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var l="18.2.0",u=Symbol.for("react.element"),c=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),y=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),N=Symbol.iterator,Y="@@iterator";function A(m){if(m===null||typeof m!="object")return null;var O=N&&m[N]||m[Y];return typeof O=="function"?O:null}var U={current:null},$={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},X={current:null},z={},ne=null;function re(m){ne=m}z.setExtraStackFrame=function(m){ne=m},z.getCurrentStack=null,z.getStackAddendum=function(){var m="";ne&&(m+=ne);var O=z.getCurrentStack;return O&&(m+=O()||""),m};var J=!1,ie=!1,Ce=!1,oe=!1,pe=!1,Ee={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:$,ReactCurrentOwner:X};Ee.ReactDebugCurrentFrame=z,Ee.ReactCurrentActQueue=V;function Q(m){{for(var O=arguments.length,B=new Array(O>1?O-1:0),W=1;W1?O-1:0),W=1;W1){for(var jt=Array(_t),Ft=0;Ft<_t;Ft++)jt[Ft]=arguments[Ft+2];Object.freeze&&Object.freeze(jt),le.children=jt}if(m&&m.defaultProps){var Gt=m.defaultProps;for(W in Gt)le[W]===void 0&&(le[W]=Gt[W])}if(ke||Te){var rn=typeof m=="function"?m.displayName||m.name||"Unknown":m;ke&&ir(le,rn),Te&&Ir(le,rn)}return ce(m,ke,Te,je,nt,X.current,le)}function We(m,O){var B=ce(m.type,O,m.ref,m._self,m._source,m._owner,m.props);return B}function yt(m,O,B){if(m==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var W,le=xe({},m.props),ke=m.key,Te=m.ref,je=m._self,nt=m._source,_t=m._owner;if(O!=null){Zt(O)&&(Te=O.ref,_t=X.current),Yt(O)&&(mt(O.key),ke=""+O.key);var jt;m.type&&m.type.defaultProps&&(jt=m.type.defaultProps);for(W in O)ut.call(O,W)&&!Mt.hasOwnProperty(W)&&(O[W]===void 0&&jt!==void 0?le[W]=jt[W]:le[W]=O[W])}var Ft=arguments.length-2;if(Ft===1)le.children=B;else if(Ft>1){for(var Gt=Array(Ft),rn=0;rn is not supported and will be removed in a future major release. Did you mean to render instead?")),O.Provider},set:function(Te){O.Provider=Te}},_currentValue:{get:function(){return O._currentValue},set:function(Te){O._currentValue=Te}},_currentValue2:{get:function(){return O._currentValue2},set:function(Te){O._currentValue2=Te}},_threadCount:{get:function(){return O._threadCount},set:function(Te){O._threadCount=Te}},Consumer:{get:function(){return B||(B=!0,k("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),O.Consumer}},displayName:{get:function(){return O.displayName},set:function(Te){le||(Q("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Te),le=!0)}}}),O.Consumer=ke}return O._currentRenderer=null,O._currentRenderer2=null,O}var lr=-1,fa=0,Vr=1,ur=2;function _(m){if(m._status===lr){var O=m._result,B=O();if(B.then(function(ke){if(m._status===fa||m._status===lr){var Te=m;Te._status=Vr,Te._result=ke}},function(ke){if(m._status===fa||m._status===lr){var Te=m;Te._status=ur,Te._result=ke}}),m._status===lr){var W=m;W._status=fa,W._result=B}}if(m._status===Vr){var le=m._result;return le===void 0&&k(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent')) + +Did you accidentally put curly braces around the import?`,le),"default"in le||k(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent'))`,le),le.default}else throw m._result}function te(m){var O={_status:lr,_result:m},B={$$typeof:L,_payload:O,_init:_};{var W,le;Object.defineProperties(B,{defaultProps:{configurable:!0,get:function(){return W},set:function(ke){k("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),W=ke,Object.defineProperty(B,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return le},set:function(ke){k("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),le=ke,Object.defineProperty(B,"propTypes",{enumerable:!0})}}})}return B}function ve(m){m!=null&&m.$$typeof===w?k("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof m!="function"?k("forwardRef requires a render function but was given %s.",m===null?"null":typeof m):m.length!==0&&m.length!==2&&k("forwardRef render functions accept exactly two parameters: props and ref. %s",m.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),m!=null&&(m.defaultProps!=null||m.propTypes!=null)&&k("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var O={$$typeof:C,render:m};{var B;Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return B},set:function(W){B=W,!m.name&&!m.displayName&&(m.displayName=W)}})}return O}var Me;Me=Symbol.for("react.module.reference");function Pe(m){return!!(typeof m=="string"||typeof m=="function"||m===v||m===b||pe||m===f||m===E||m===T||oe||m===F||J||ie||Ce||typeof m=="object"&&m!==null&&(m.$$typeof===L||m.$$typeof===w||m.$$typeof===g||m.$$typeof===y||m.$$typeof===C||m.$$typeof===Me||m.getModuleId!==void 0))}function dt(m,O){Pe(m)||k("memo: The first argument must be a component. Instead received: %s",m===null?"null":typeof m);var B={$$typeof:w,type:m,compare:O===void 0?null:O};{var W;Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return W},set:function(le){W=le,!m.name&&!m.displayName&&(m.displayName=le)}})}return B}function we(){var m=U.current;return m===null&&k(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}function Ye(m){var O=we();if(m._context!==void 0){var B=m._context;B.Consumer===m?k("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):B.Provider===m&&k("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return O.useContext(m)}function nn(m){var O=we();return O.useState(m)}function At(m,O,B){var W=we();return W.useReducer(m,O,B)}function Je(m){var O=we();return O.useRef(m)}function Bn(m,O){var B=we();return B.useEffect(m,O)}function da(m,O){var B=we();return B.useInsertionEffect(m,O)}function Wi(m,O){var B=we();return B.useLayoutEffect(m,O)}function yr(m,O){var B=we();return B.useCallback(m,O)}function yv(m,O){var B=we();return B.useMemo(m,O)}function gv(m,O,B){var W=we();return W.useImperativeHandle(m,O,B)}function sc(m,O){{var B=we();return B.useDebugValue(m,O)}}function bv(){var m=we();return m.useTransition()}function Ma(m){var O=we();return O.useDeferredValue(m)}function et(){var m=we();return m.useId()}function Gi(m,O,B){var W=we();return W.useSyncExternalStore(m,O,B)}var li=0,Zl,Jl,eu,tu,nu,ru,au;function cc(){}cc.__reactDisabledLog=!0;function Sv(){{if(li===0){Zl=console.log,Jl=console.info,eu=console.warn,tu=console.error,nu=console.group,ru=console.groupCollapsed,au=console.groupEnd;var m={configurable:!0,enumerable:!0,value:cc,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}li++}}function iu(){{if(li--,li===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},m,{value:Zl}),info:xe({},m,{value:Jl}),warn:xe({},m,{value:eu}),error:xe({},m,{value:tu}),group:xe({},m,{value:nu}),groupCollapsed:xe({},m,{value:ru}),groupEnd:xe({},m,{value:au})})}li<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ki=Ee.ReactCurrentDispatcher,Ar;function ui(m,O,B){{if(Ar===void 0)try{throw Error()}catch(le){var W=le.stack.trim().match(/\n( *(at )?)/);Ar=W&&W[1]||""}return` +`+Ar+m}}var si=!1,Bo;{var ou=typeof WeakMap=="function"?WeakMap:Map;Bo=new ou}function fc(m,O){if(!m||si)return"";{var B=Bo.get(m);if(B!==void 0)return B}var W;si=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=Ki.current,Ki.current=null,Sv();try{if(O){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(pt){W=pt}Reflect.construct(m,[],Te)}else{try{Te.call()}catch(pt){W=pt}m.call(Te.prototype)}}else{try{throw Error()}catch(pt){W=pt}m()}}catch(pt){if(pt&&W&&typeof pt.stack=="string"){for(var je=pt.stack.split(` +`),nt=W.stack.split(` +`),_t=je.length-1,jt=nt.length-1;_t>=1&&jt>=0&&je[_t]!==nt[jt];)jt--;for(;_t>=1&&jt>=0;_t--,jt--)if(je[_t]!==nt[jt]){if(_t!==1||jt!==1)do if(_t--,jt--,jt<0||je[_t]!==nt[jt]){var Ft=` +`+je[_t].replace(" at new "," at ");return m.displayName&&Ft.includes("")&&(Ft=Ft.replace("",m.displayName)),typeof m=="function"&&Bo.set(m,Ft),Ft}while(_t>=1&&jt>=0);break}}}finally{si=!1,Ki.current=ke,iu(),Error.prepareStackTrace=le}var Gt=m?m.displayName||m.name:"",rn=Gt?ui(Gt):"";return typeof m=="function"&&Bo.set(m,rn),rn}function lu(m,O,B){return fc(m,!1)}function Ev(m){var O=m.prototype;return!!(O&&O.isReactComponent)}function ci(m,O,B){if(m==null)return"";if(typeof m=="function")return fc(m,Ev(m));if(typeof m=="string")return ui(m);switch(m){case E:return ui("Suspense");case T:return ui("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case C:return lu(m.render);case w:return ci(m.type,O,B);case L:{var W=m,le=W._payload,ke=W._init;try{return ci(ke(le),O,B)}catch{}}}return""}var dc={},uu=Ee.ReactDebugCurrentFrame;function Vo(m){if(m){var O=m._owner,B=ci(m.type,m._source,O?O.type:null);uu.setExtraStackFrame(B)}else uu.setExtraStackFrame(null)}function vc(m,O,B,W,le){{var ke=Function.call.bind(ut);for(var Te in m)if(ke(m,Te)){var je=void 0;try{if(typeof m[Te]!="function"){var nt=Error((W||"React class")+": "+B+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}je=m[Te](O,Te,W,B,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_t){je=_t}je&&!(je instanceof Error)&&(Vo(le),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",B,Te,typeof je),Vo(null)),je instanceof Error&&!(je.message in dc)&&(dc[je.message]=!0,Vo(le),k("Failed %s type: %s",B,je.message),Vo(null))}}}function vt(m){if(m){var O=m._owner,B=ci(m.type,m._source,O?O.type:null);re(B)}else re(null)}var su;su=!1;function cu(){if(X.current){var m=ot(X.current.type);if(m)return` + +Check the render method of \``+m+"`."}return""}function Ve(m){if(m!==void 0){var O=m.fileName.replace(/^.*[\\\/]/,""),B=m.lineNumber;return` + +Check your code at `+O+":"+B+"."}return""}function pc(m){return m!=null?Ve(m.__source):""}var Vn={};function Xi(m){var O=cu();if(!O){var B=typeof m=="string"?m:m.displayName||m.name;B&&(O=` + +Check the top-level render call using <`+B+">.")}return O}function fi(m,O){if(!(!m._store||m._store.validated||m.key!=null)){m._store.validated=!0;var B=Xi(O);if(!Vn[B]){Vn[B]=!0;var W="";m&&m._owner&&m._owner!==X.current&&(W=" It was passed a child from "+ot(m._owner.type)+"."),vt(m),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',B,W),vt(null)}}}function hc(m,O){if(typeof m=="object"){if(Rt(m))for(var B=0;B",le=" Did you accidentally export a JSX literal instead of a component?"):Te=typeof m,k("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Te,le)}var je=Oe.apply(this,arguments);if(je==null)return je;if(W)for(var nt=2;nt10&&Q("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),W._updatedFibers.clear()}}}var Yo=!1,qi=null;function yc(m){if(qi===null)try{var O=("require"+Math.random()).slice(0,7),B=r&&r[O];qi=B.call(r,"timers").setImmediate}catch{qi=function(le){Yo===!1&&(Yo=!0,typeof MessageChannel>"u"&&k("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ke=new MessageChannel;ke.port1.onmessage=le,ke.port2.postMessage(void 0)}}return qi(m)}var di=0,gc=!1;function Rv(m){{var O=di;di++,V.current===null&&(V.current=[]);var B=V.isBatchingLegacy,W;try{if(V.isBatchingLegacy=!0,W=m(),!B&&V.didScheduleLegacyUpdate){var le=V.current;le!==null&&(V.didScheduleLegacyUpdate=!1,Go(le))}}catch(Gt){throw Aa(O),Gt}finally{V.isBatchingLegacy=B}if(W!==null&&typeof W=="object"&&typeof W.then=="function"){var ke=W,Te=!1,je={then:function(Gt,rn){Te=!0,ke.then(function(pt){Aa(O),di===0?Wo(pt,Gt,rn):Gt(pt)},function(pt){Aa(O),rn(pt)})}};return!gc&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Te||(gc=!0,k("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),je}else{var nt=W;if(Aa(O),di===0){var _t=V.current;_t!==null&&(Go(_t),V.current=null);var jt={then:function(Gt,rn){V.current===null?(V.current=[],Wo(nt,Gt,rn)):Gt(nt)}};return jt}else{var Ft={then:function(Gt,rn){Gt(nt)}};return Ft}}}}function Aa(m){m!==di-1&&k("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),di=m}function Wo(m,O,B){{var W=V.current;if(W!==null)try{Go(W),yc(function(){W.length===0?(V.current=null,O(m)):Wo(m,O,B)})}catch(le){B(le)}else O(m)}}var vi=!1;function Go(m){if(!vi){vi=!0;var O=0;try{for(;O1?te-1:0),Me=1;Me=1&&Je>=0&&Ye[At]!==nn[Je];)Je--;for(;At>=1&&Je>=0;At--,Je--)if(Ye[At]!==nn[Je]){if(At!==1||Je!==1)do if(At--,Je--,Je<0||Ye[At]!==nn[Je]){var Bn=` +`+Ye[At].replace(" at new "," at ");return _.displayName&&Bn.includes("")&&(Bn=Bn.replace("",_.displayName)),typeof _=="function"&&Ht.set(_,Bn),Bn}while(At>=1&&Je>=0);break}}}finally{Bt=!1,tt.current=dt,Et(),Error.prepareStackTrace=Pe}var da=_?_.displayName||_.name:"",Wi=da?un(da):"";return typeof _=="function"&&Ht.set(_,Wi),Wi}function Rt(_,te,ve){return on(_,!1)}function he(_){var te=_.prototype;return!!(te&&te.isReactComponent)}function Ze(_,te,ve){if(_==null)return"";if(typeof _=="function")return on(_,he(_));if(typeof _=="string")return un(_);switch(_){case y:return un("Suspense");case C:return un("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case g:return Rt(_.render);case E:return Ze(_.type,te,ve);case T:{var Me=_,Pe=Me._payload,dt=Me._init;try{return Ze(dt(Pe),te,ve)}catch{}}}return""}var xt=Object.prototype.hasOwnProperty,mt={},qt=Y.ReactDebugCurrentFrame;function ft(_){if(_){var te=_._owner,ve=Ze(_.type,_._source,te?te.type:null);qt.setExtraStackFrame(ve)}else qt.setExtraStackFrame(null)}function ot(_,te,ve,Me,Pe){{var dt=Function.call.bind(xt);for(var we in _)if(dt(_,we)){var Ye=void 0;try{if(typeof _[we]!="function"){var nn=Error((Me||"React class")+": "+ve+" type `"+we+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[we]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nn.name="Invariant Violation",nn}Ye=_[we](te,we,Me,ve,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){Ye=At}Ye&&!(Ye instanceof Error)&&(ft(Pe),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Me||"React class",ve,we,typeof Ye),ft(null)),Ye instanceof Error&&!(Ye.message in mt)&&(mt[Ye.message]=!0,ft(Pe),A("Failed %s type: %s",ve,Ye.message),ft(null))}}}var ut=Array.isArray;function Mt(_){return ut(_)}function Vt(_){{var te=typeof Symbol=="function"&&Symbol.toStringTag,ve=te&&_[Symbol.toStringTag]||_.constructor.name||"Object";return ve}}function In(_){try{return Qt(_),!1}catch{return!0}}function Qt(_){return""+_}function Zt(_){if(In(_))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vt(_)),Qt(_)}var Yt=Y.ReactCurrentOwner,ir={key:!0,ref:!0,__self:!0,__source:!0},Ir,Br,ce;ce={};function Oe(_){if(xt.call(_,"ref")){var te=Object.getOwnPropertyDescriptor(_,"ref").get;if(te&&te.isReactWarning)return!1}return _.ref!==void 0}function We(_){if(xt.call(_,"key")){var te=Object.getOwnPropertyDescriptor(_,"key").get;if(te&&te.isReactWarning)return!1}return _.key!==void 0}function yt(_,te){if(typeof _.ref=="string"&&Yt.current&&te&&Yt.current.stateNode!==te){var ve=oe(Yt.current.type);ce[ve]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',oe(Yt.current.type),_.ref),ce[ve]=!0)}}function gt(_,te){{var ve=function(){Ir||(Ir=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",te))};ve.isReactWarning=!0,Object.defineProperty(_,"key",{get:ve,configurable:!0})}}function Wt(_,te){{var ve=function(){Br||(Br=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",te))};ve.isReactWarning=!0,Object.defineProperty(_,"ref",{get:ve,configurable:!0})}}var Ut=function(_,te,ve,Me,Pe,dt,we){var Ye={$$typeof:i,type:_,key:te,ref:ve,props:we,_owner:dt};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Me}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function hn(_,te,ve,Me,Pe){{var dt,we={},Ye=null,nn=null;ve!==void 0&&(Zt(ve),Ye=""+ve),We(te)&&(Zt(te.key),Ye=""+te.key),Oe(te)&&(nn=te.ref,yt(te,Pe));for(dt in te)xt.call(te,dt)&&!ir.hasOwnProperty(dt)&&(we[dt]=te[dt]);if(_&&_.defaultProps){var At=_.defaultProps;for(dt in At)we[dt]===void 0&&(we[dt]=At[dt])}if(Ye||nn){var Je=typeof _=="function"?_.displayName||_.name||"Unknown":_;Ye&>(we,Je),nn&&Wt(we,Je)}return Ut(_,Ye,nn,Pe,Me,Yt.current,we)}}var Tt=Y.ReactCurrentOwner,Tn=Y.ReactDebugCurrentFrame;function bt(_){if(_){var te=_._owner,ve=Ze(_.type,_._source,te?te.type:null);Tn.setExtraStackFrame(ve)}else Tn.setExtraStackFrame(null)}var Pt;Pt=!1;function Nt(_){return typeof _=="object"&&_!==null&&_.$$typeof===i}function or(){{if(Tt.current){var _=oe(Tt.current.type);if(_)return` + +Check the render method of \``+_+"`."}return""}}function Da(_){{if(_!==void 0){var te=_.fileName.replace(/^.*[\\\/]/,""),ve=_.lineNumber;return` + +Check your code at `+te+":"+ve+"."}return""}}var $t={};function Jt(_){{var te=or();if(!te){var ve=typeof _=="string"?_:_.displayName||_.name;ve&&(te=` + +Check the top-level render call using <`+ve+">.")}return te}}function xn(_,te){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var ve=Jt(te);if($t[ve])return;$t[ve]=!0;var Me="";_&&_._owner&&_._owner!==Tt.current&&(Me=" It was passed a child from "+oe(_._owner.type)+"."),bt(_),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ve,Me),bt(null)}}function _n(_,te){{if(typeof _!="object")return;if(Mt(_))for(var ve=0;ve<_.length;ve++){var Me=_[ve];Nt(Me)&&xn(Me,te)}else if(Nt(_))_._store&&(_._store.validated=!0);else if(_){var Pe=N(_);if(typeof Pe=="function"&&Pe!==_.entries)for(var dt=Pe.call(_),we;!(we=dt.next()).done;)Nt(we.value)&&xn(we.value,te)}}}function lr(_){{var te=_.type;if(te==null||typeof te=="string")return;var ve;if(typeof te=="function")ve=te.propTypes;else if(typeof te=="object"&&(te.$$typeof===g||te.$$typeof===E))ve=te.propTypes;else return;if(ve){var Me=oe(te);ot(ve,_.props,"prop",Me,_)}else if(te.PropTypes!==void 0&&!Pt){Pt=!0;var Pe=oe(te);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof te.getDefaultProps=="function"&&!te.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(_){{for(var te=Object.keys(_.props),ve=0;ve",Ye=" Did you accidentally export a JSX literal instead of a component?"):At=typeof _,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",At,Ye)}var Je=hn(_,te,ve,Pe,dt);if(Je==null)return Je;if(we){var Bn=te.children;if(Bn!==void 0)if(Me)if(Mt(Bn)){for(var da=0;da0;){var gt=yt-1>>>1,Wt=ce[gt];if(y(Wt,Oe)>0)ce[gt]=Oe,ce[yt]=Wt,yt=gt;else return}}function g(ce,Oe,We){for(var yt=We,gt=ce.length,Wt=gt>>>1;ytWe&&(!ce||ft()));){var yt=oe.callback;if(typeof yt=="function"){oe.callback=null,pe=oe.priorityLevel;var gt=oe.expirationTime<=We,Wt=yt(gt);We=r.unstable_now(),typeof Wt=="function"?oe.callback=Wt:oe===v(J)&&f(J),de(We)}else f(J);oe=v(J)}if(oe!==null)return!0;var Ut=v(ie);return Ut!==null&&Yt(xe,Ut.startTime-We),!1}function Et(ce,Oe){switch(ce){case C:case E:case T:case w:case L:break;default:ce=T}var We=pe;pe=ce;try{return Oe()}finally{pe=We}}function tt(ce){var Oe;switch(pe){case C:case E:case T:Oe=T;break;default:Oe=pe;break}var We=pe;pe=Oe;try{return ce()}finally{pe=We}}function Ct(ce){var Oe=pe;return function(){var We=pe;pe=Oe;try{return ce.apply(this,arguments)}finally{pe=We}}}function un(ce,Oe,We){var yt=r.unstable_now(),gt;if(typeof We=="object"&&We!==null){var Wt=We.delay;typeof Wt=="number"&&Wt>0?gt=yt+Wt:gt=yt}else gt=yt;var Ut;switch(ce){case C:Ut=V;break;case E:Ut=X;break;case L:Ut=re;break;case w:Ut=ne;break;case T:default:Ut=z;break}var hn=gt+Ut,Tt={id:Ce++,callback:Oe,priorityLevel:ce,startTime:gt,expirationTime:hn,sortIndex:-1};return gt>yt?(Tt.sortIndex=gt,c(ie,Tt),v(J)===null&&Tt===v(ie)&&(k?ir():k=!0,Yt(xe,gt-yt))):(Tt.sortIndex=hn,c(J,Tt),!Q&&!Ee&&(Q=!0,Zt(Ie))),Tt}function Bt(){}function Ht(){!Q&&!Ee&&(Q=!0,Zt(Ie))}function kt(){return v(J)}function on(ce){ce.callback=null}function Rt(){return pe}var he=!1,Ze=null,xt=-1,mt=u,qt=-1;function ft(){var ce=r.unstable_now()-qt;return!(ce125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}ce>0?mt=Math.floor(1e3/ce):mt=u}var Mt=function(){if(Ze!==null){var ce=r.unstable_now();qt=ce;var Oe=!0,We=!0;try{We=Ze(Oe,ce)}finally{We?Vt():(he=!1,Ze=null)}}else he=!1},Vt;if(typeof fe=="function")Vt=function(){fe(Mt)};else if(typeof MessageChannel<"u"){var In=new MessageChannel,Qt=In.port2;In.port1.onmessage=Mt,Vt=function(){Qt.postMessage(null)}}else Vt=function(){q(Mt,0)};function Zt(ce){Ze=ce,he||(he=!0,Vt())}function Yt(ce,Oe){xt=q(function(){ce(r.unstable_now())},Oe)}function ir(){ue(xt),xt=-1}var Ir=ot,Br=null;r.unstable_IdlePriority=L,r.unstable_ImmediatePriority=C,r.unstable_LowPriority=w,r.unstable_NormalPriority=T,r.unstable_Profiling=Br,r.unstable_UserBlockingPriority=E,r.unstable_cancelCallback=on,r.unstable_continueExecution=Ht,r.unstable_forceFrameRate=ut,r.unstable_getCurrentPriorityLevel=Rt,r.unstable_getFirstCallbackNode=kt,r.unstable_next=tt,r.unstable_pauseExecution=Bt,r.unstable_requestPaint=Ir,r.unstable_runWithPriority=Et,r.unstable_scheduleCallback=un,r.unstable_shouldYield=ft,r.unstable_wrapCallback=Ct,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(sT);uT.exports=sT;var PN=uT.exports;/** + * @license React + * react-dom.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=x,i=PN,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=!1;function c(e){u=e}function v(e){if(!u){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?t-1:0),a=1;a2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function hn(e,t,n,a){if(n!==null&&n.type===In)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(a)return!1;if(n!==null)return!n.acceptsBooleans;var o=e.toLowerCase().slice(0,5);return o!=="data-"&&o!=="aria-"}default:return!1}}function Tt(e,t,n,a){if(t===null||typeof t>"u"||hn(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Yt:return!t;case ir:return t===!1;case Ir:return isNaN(t);case Br:return isNaN(t)||t<1}return!1}function Tn(e){return Pt.hasOwnProperty(e)?Pt[e]:null}function bt(e,t,n,a,o,s,d){this.acceptsBooleans=t===Zt||t===Yt||t===ir,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=d}var Pt={},Nt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Nt.forEach(function(e){Pt[e]=new bt(e,In,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];Pt[t]=new bt(t,Qt,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pt[e]=new bt(e,Zt,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pt[e]=new bt(e,Zt,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){Pt[e]=new bt(e,Yt,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Pt[e]=new bt(e,Yt,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Pt[e]=new bt(e,ir,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Pt[e]=new bt(e,Br,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Pt[e]=new bt(e,Ir,!1,e.toLowerCase(),null,!1,!1)});var or=/[\-\:]([a-z])/g,Da=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(or,Da);Pt[t]=new bt(t,Qt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(or,Da);Pt[t]=new bt(t,Qt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(or,Da);Pt[t]=new bt(t,Qt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Pt[e]=new bt(e,Qt,!1,e.toLowerCase(),null,!1,!1)});var $t="xlinkHref";Pt[$t]=new bt("xlinkHref",Qt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Pt[e]=new bt(e,Qt,!1,e.toLowerCase(),null,!0,!0)});var Jt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,xn=!1;function _n(e){!xn&&Jt.test(e)&&(xn=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function lr(e,t,n,a){if(a.mustUseProperty){var o=a.propertyName;return e[o]}else{qt(n,t),a.sanitizeURL&&_n(""+n);var s=a.attributeName,d=null;if(a.type===ir){if(e.hasAttribute(s)){var p=e.getAttribute(s);return p===""?!0:Tt(t,n,a,!1)?p:p===""+n?n:p}}else if(e.hasAttribute(s)){if(Tt(t,n,a,!1))return e.getAttribute(s);if(a.type===Yt)return n;d=e.getAttribute(s)}return Tt(t,n,a,!1)?d===null?n:d:d===""+n?n:d}}function fa(e,t,n,a){{if(!Wt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var o=e.getAttribute(t);return qt(n,t),o===""+n?n:o}}function Vr(e,t,n,a){var o=Tn(t);if(!Ut(t,o,a)){if(Tt(t,n,o,a)&&(n=null),a||o===null){if(Wt(t)){var s=t;n===null?e.removeAttribute(s):(qt(n,t),e.setAttribute(s,""+n))}return}var d=o.mustUseProperty;if(d){var p=o.propertyName;if(n===null){var h=o.type;e[p]=h===Yt?!1:""}else e[p]=n;return}var S=o.attributeName,R=o.attributeNamespace;if(n===null)e.removeAttribute(S);else{var M=o.type,D;M===Yt||M===ir&&n===!0?D="":(qt(n,S),D=""+n,o.sanitizeURL&&_n(D.toString())),R?e.setAttributeNS(R,S,D):e.setAttribute(S,D)}}}var ur=Symbol.for("react.element"),_=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Me=Symbol.for("react.profiler"),Pe=Symbol.for("react.provider"),dt=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),nn=Symbol.for("react.suspense_list"),At=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),Bn=Symbol.for("react.scope"),da=Symbol.for("react.debug_trace_mode"),Wi=Symbol.for("react.offscreen"),yr=Symbol.for("react.legacy_hidden"),yv=Symbol.for("react.cache"),gv=Symbol.for("react.tracing_marker"),sc=Symbol.iterator,bv="@@iterator";function Ma(e){if(e===null||typeof e!="object")return null;var t=sc&&e[sc]||e[bv];return typeof t=="function"?t:null}var et=Object.assign,Gi=0,li,Zl,Jl,eu,tu,nu,ru;function au(){}au.__reactDisabledLog=!0;function cc(){{if(Gi===0){li=console.log,Zl=console.info,Jl=console.warn,eu=console.error,tu=console.group,nu=console.groupCollapsed,ru=console.groupEnd;var e={configurable:!0,enumerable:!0,value:au,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Gi++}}function Sv(){{if(Gi--,Gi===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:et({},e,{value:li}),info:et({},e,{value:Zl}),warn:et({},e,{value:Jl}),error:et({},e,{value:eu}),group:et({},e,{value:tu}),groupCollapsed:et({},e,{value:nu}),groupEnd:et({},e,{value:ru})})}Gi<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var iu=l.ReactCurrentDispatcher,Ki;function Ar(e,t,n){{if(Ki===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Ki=a&&a[1]||""}return` +`+Ki+e}}var ui=!1,si;{var Bo=typeof WeakMap=="function"?WeakMap:Map;si=new Bo}function ou(e,t){if(!e||ui)return"";{var n=si.get(e);if(n!==void 0)return n}var a;ui=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=iu.current,iu.current=null,cc();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(I){a=I}Reflect.construct(e,[],d)}else{try{d.call()}catch(I){a=I}e.call(d.prototype)}}else{try{throw Error()}catch(I){a=I}e()}}catch(I){if(I&&a&&typeof I.stack=="string"){for(var p=I.stack.split(` +`),h=a.stack.split(` +`),S=p.length-1,R=h.length-1;S>=1&&R>=0&&p[S]!==h[R];)R--;for(;S>=1&&R>=0;S--,R--)if(p[S]!==h[R]){if(S!==1||R!==1)do if(S--,R--,R<0||p[S]!==h[R]){var M=` +`+p[S].replace(" at new "," at ");return e.displayName&&M.includes("")&&(M=M.replace("",e.displayName)),typeof e=="function"&&si.set(e,M),M}while(S>=1&&R>=0);break}}}finally{ui=!1,iu.current=s,Sv(),Error.prepareStackTrace=o}var D=e?e.displayName||e.name:"",H=D?Ar(D):"";return typeof e=="function"&&si.set(e,H),H}function fc(e,t,n){return ou(e,!0)}function lu(e,t,n){return ou(e,!1)}function Ev(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ci(e,t,n){if(e==null)return"";if(typeof e=="function")return ou(e,Ev(e));if(typeof e=="string")return Ar(e);switch(e){case Ye:return Ar("Suspense");case nn:return Ar("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case we:return lu(e.render);case At:return ci(e.type,t,n);case Je:{var a=e,o=a._payload,s=a._init;try{return ci(s(o),t,n)}catch{}}}return""}function dc(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case w:return Ar(e.type);case ne:return Ar("Lazy");case V:return Ar("Suspense");case ie:return Ar("SuspenseList");case g:case C:case z:return lu(e.type);case U:return lu(e.type.render);case y:return fc(e.type);default:return""}}function uu(e){try{var t="",n=e;do t+=dc(n),n=n.return;while(n);return t}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}function Vo(e,t,n){var a=e.displayName;if(a)return a;var o=t.displayName||t.name||"";return o!==""?n+"("+o+")":n}function vc(e){return e.displayName||"Context"}function vt(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case te:return"Fragment";case _:return"Portal";case Me:return"Profiler";case ve:return"StrictMode";case Ye:return"Suspense";case nn:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dt:var t=e;return vc(t)+".Consumer";case Pe:var n=e;return vc(n._context)+".Provider";case we:return Vo(e,e.render,"ForwardRef");case At:var a=e.displayName||null;return a!==null?a:vt(e.type)||"Memo";case Je:{var o=e,s=o._payload,d=o._init;try{return vt(d(s))}catch{return null}}}return null}function su(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function cu(e){return e.displayName||"Context"}function Ve(e){var t=e.tag,n=e.type;switch(t){case Ee:return"Cache";case Y:var a=n;return cu(a)+".Consumer";case A:var o=n;return cu(o._context)+".Provider";case J:return"DehydratedFragment";case U:return su(n,n.render,"ForwardRef");case F:return"Fragment";case w:return n;case T:return"Portal";case E:return"Root";case L:return"Text";case ne:return vt(n);case N:return n===ve?"StrictMode":"Mode";case oe:return"Offscreen";case $:return"Profiler";case Ce:return"Scope";case V:return"Suspense";case ie:return"SuspenseList";case Q:return"TracingMarker";case y:case g:case re:case C:case X:case z:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var pc=l.ReactDebugCurrentFrame,Vn=null,Xi=!1;function fi(){{if(Vn===null)return null;var e=Vn._debugOwner;if(e!==null&&typeof e<"u")return Ve(e)}return null}function hc(){return Vn===null?"":uu(Vn)}function On(){pc.getCurrentStack=null,Vn=null,Xi=!1}function en(e){pc.getCurrentStack=e===null?null:hc,Vn=e,Xi=!1}function mc(){return Vn}function gr(e){Xi=e}function sr(e){return""+e}function va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Vt(e),e;default:return""}}var Cv={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Yo(e,t){Cv[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||f("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||f("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function qi(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yc(e){return e._valueTracker}function di(e){e._valueTracker=null}function gc(e){var t="";return e&&(qi(e)?t=e.checked?"true":"false":t=e.value),t}function Rv(e){var t=qi(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Vt(e[t]);var a=""+e[t];if(!(e.hasOwnProperty(t)||typeof n>"u"||typeof n.get!="function"||typeof n.set!="function")){var o=n.get,s=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){Vt(p),a=""+p,s.call(this,p)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var d={getValue:function(){return a},setValue:function(p){Vt(p),a=""+p},stopTracking:function(){di(e),delete e[t]}};return d}}function Aa(e){yc(e)||(e._valueTracker=Rv(e))}function Wo(e){if(!e)return!1;var t=yc(e);if(!t)return!0;var n=t.getValue(),a=gc(e);return a!==n?(t.setValue(a),!0):!1}function vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Go=!1,bc=!1,Sc=!1,Ec=!1;function Cc(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function m(e,t){var n=e,a=t.checked,o=et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return o}function O(e,t){Yo("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!bc&&(f("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",fi()||"A component",t.type),bc=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Go&&(f("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",fi()||"A component",t.type),Go=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:va(t.value!=null?t.value:a),controlled:Cc(t)}}function B(e,t){var n=e,a=t.checked;a!=null&&Vr(n,"checked",a,!1)}function W(e,t){var n=e;{var a=Cc(t);!n._wrapperState.controlled&&a&&!Ec&&(f("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Ec=!0),n._wrapperState.controlled&&!a&&!Sc&&(f("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Sc=!0)}B(e,t);var o=va(t.value),s=t.type;if(o!=null)s==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=sr(o)):n.value!==sr(o)&&(n.value=sr(o));else if(s==="submit"||s==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?je(n,t.type,o):t.hasOwnProperty("defaultValue")&&je(n,t.type,va(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function le(e,t,n){var a=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type,s=o==="submit"||o==="reset";if(s&&(t.value===void 0||t.value===null))return;var d=sr(a._wrapperState.initialValue);n||d!==a.value&&(a.value=d),a.defaultValue=d}var p=a.name;p!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,p!==""&&(a.name=p)}function ke(e,t){var n=e;W(n,t),Te(n,t)}function Te(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;qt(n,"name");for(var o=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),s=0;s.")))}):t.dangerouslySetInnerHTML!=null&&(jt||(jt=!0,f("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!nt&&(f("Use the `defaultValue` or `value` props on must be a scalar value if `multiple` is false.%s",n,Ko())}}}}function La(e,t,n,a){var o=e.options;if(t){for(var s=n,d={},p=0;p.");var a=et({},t,{value:void 0,defaultValue:void 0,children:sr(n._wrapperState.initialValue)});return a}function Jg(e,t){var n=e;Yo("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Zg&&(f("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",fi()||"A component"),Zg=!0);var a=t.value;if(a==null){var o=t.children,s=t.defaultValue;if(o!=null){f("Use the `defaultValue` or `value` props instead of setting children on