mdjournal 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{index-CRsyTFc2.js → index-BrIwqS4G.js} +10 -10
- package/dist/client/assets/index-q_hOWXNK.css +1 -0
- package/dist/client/dist/assets/{index-CRsyTFc2.js → index-BrIwqS4G.js} +10 -10
- package/dist/client/dist/assets/index-q_hOWXNK.css +1 -0
- package/dist/client/dist/index.html +2 -2
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/index-BC3PT_q4.css +0 -1
- package/dist/client/dist/assets/index-BC3PT_q4.css +0 -1
|
@@ -174,9 +174,9 @@ html body {
|
|
|
174
174
|
`]:{...__(e)}}}},W_=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},bd=Pt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ot(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return k_(r)},W_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),q_=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,active:s,style:c,styles:d,shape:f="circle",size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s},r?.root,n,i,C,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(Pp,{prefixCls:`${y}-avatar`,className:r?.content,style:{...d?.content,...c},shape:f,size:p,...g}))},Y_=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:i,active:s,style:c,styles:d,block:f=!1,size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:f},i?.root,n,r,C,b);return l.createElement("div",{className:$,style:d?.root},l.createElement(Pp,{prefixCls:`${y}-button`,className:i?.content,style:{...d?.content,...c},size:p,...g}))},KT=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:s,style:c,styles:d,active:f,children:p}=e,{getPrefixCls:g}=l.useContext(dt),h=g("skeleton",t),[y,C]=bd(h),b=Q(h,`${h}-element`,{[`${h}-active`]:f},y,r?.root,n,i,C);return l.createElement("div",{className:b,style:d?.root},l.createElement("div",{className:Q(r?.content,s||`${h}-node`),style:{...d?.content,...c}},p))},U_="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",G_=e=>{const{getPrefixCls:t}=l.useContext(dt),n=t("skeleton",e.prefixCls);return l.createElement(KT,{...e,internalClassName:`${n}-image`},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:U_,className:`${n}-image-path`})))},X_=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,active:s,block:c,style:d,styles:f,size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=bd(y),$=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:c},r?.root,n,i,C,b);return l.createElement("div",{className:$,style:f?.root},l.createElement(Pp,{prefixCls:`${y}-input`,className:r?.content,style:{...f?.content,...d},size:p,...g}))},K_=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Q_=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,s=Array.from({length:i}).map((c,d)=>l.createElement("li",{key:d,style:{width:K_(d,e)}}));return l.createElement("ul",{className:Q(t,n),style:r},s)},Z_=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:Q(e,t),style:{width:n,...r}});function Ay(e){return e&&typeof e=="object"?e:{}}function J_(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function e9(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function t9(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const gi=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:s,style:c,styles:d,children:f,avatar:p=!1,title:g=!0,paragraph:h=!0,active:y,round:C}=e,{getPrefixCls:b,direction:$,className:S,style:w,classNames:M,styles:x}=It("skeleton"),R=b("skeleton",t),[T,N]=bd(R),O={...e,avatar:p,title:g,paragraph:h},[P,D]=Lt([M,s],[x,d],{props:O});if(n||!("loading"in e)){const W=!!p,k=!!g,U=!!h;let G;if(W){const _={className:P.avatar,prefixCls:`${R}-avatar`,...J_(k,U),...Ay(p),style:D.avatar};G=l.createElement("div",{className:Q(P.header,`${R}-header`),style:D.header},l.createElement(Pp,{..._}))}let L;if(k||U){let _;if(k){const I={className:P.title,prefixCls:`${R}-title`,...e9(W,U),...Ay(g),style:D.title};_=l.createElement(Z_,{...I})}let B;if(U){const I={className:P.paragraph,prefixCls:`${R}-paragraph`,...t9(W,k),...Ay(h),style:D.paragraph};B=l.createElement(Q_,{...I})}L=l.createElement("div",{className:Q(P.section,`${R}-section`),style:D.section},_,B)}const H=Q(R,{[`${R}-with-avatar`]:W,[`${R}-active`]:y,[`${R}-rtl`]:$==="rtl",[`${R}-round`]:C},P.root,S,r,i,T,N);return l.createElement("div",{className:H,style:{...D.root,...w,...c}},G,L)}return f??null};gi.Button=Y_;gi.Avatar=q_;gi.Input=X_;gi.Image=G_;gi.Node=KT;function qE(){}const n9=l.createContext({add:qE,remove:qE});function QT(e){const t=l.useContext(n9),n=l.useRef(null);return ut(i=>{if(i){const s=e?i.querySelector(e):i;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const YE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(gd);return ae.createElement(_t,{onClick:n,...e},t)},UE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=l.useContext(gd);return ae.createElement(_t,{...jS(n),loading:e,onClick:i,...t},r)};function ZT(e,t){return ae.createElement("span",{className:`${e}-close-x`},t||ae.createElement(qr,{className:`${e}-close-icon`}))}const JT=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:s,onCancel:c,okButtonProps:d,cancelButtonProps:f,footer:p}=e,[g]=oo("Modal",rT()),h=t||g?.okText,y=r||g?.cancelText,C=ae.useMemo(()=>({confirmLoading:i,okButtonProps:d,cancelButtonProps:f,okTextLocale:h,cancelTextLocale:y,okType:n,onOk:s,onCancel:c}),[i,d,f,h,y,n,s,c]);let b;return typeof p=="function"||typeof p>"u"?(b=ae.createElement(ae.Fragment,null,ae.createElement(YE,null),ae.createElement(UE,null)),typeof p=="function"&&(b=p(b,{OkBtn:UE,CancelBtn:YE})),b=ae.createElement(VT,{value:C},b)):b=p,ae.createElement(ST,{disabled:!1},b)},r9=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},o9=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},a9=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,s={};for(let c=i;c>=0;c--)c===0?(s[`${r}${t}-${c}`]={display:"none"},s[`${r}-push-${c}`]={insetInlineStart:"auto"},s[`${r}-pull-${c}`]={insetInlineEnd:"auto"},s[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},s[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},s[`${r}${t}-offset-${c}`]={marginInlineStart:0},s[`${r}${t}-order-${c}`]={order:0}):(s[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/i*100}%`,maxWidth:`${c/i*100}%`}],s[`${r}${t}-push-${c}`]={insetInlineStart:`${c/i*100}%`},s[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/i*100}%`},s[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/i*100}%`},s[`${r}${t}-order-${c}`]={order:c});return s[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},s},gv=(e,t)=>a9(e,t),i9=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:{...gv(e,n)}}),l9=()=>({}),s9=()=>({}),c9=Pt("Grid",r9,l9),eO=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),u9=Pt("Grid",e=>{const t=Ot(e,{gridColumns:24}),n=eO(t);return delete n.xs,[o9(t),gv(t,""),gv(t,"-xs"),Object.keys(n).map(r=>i9(t,n[r],`-${r}`)).reduce((r,i)=>({...r,...i}),{})]},s9);function GE(e){return{position:e,inset:0}}const d9=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...GE("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...GE("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:_T(e)}]},f9=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:`${te(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Zt(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(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}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:te(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...xo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${te(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
|
|
175
175
|
${t}-body,
|
|
176
176
|
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},m9=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p9=e=>{const{componentCls:t}=e,n=eO(e),r={...n};delete r.xs;const i=`--${t.replace(".","")}-`,s=Object.keys(r).map(c=>({[`@media (min-width: ${te(r[c])})`]:{width:`var(${i}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(xn(Object.keys(n).map((c,d)=>{const f=Object.keys(n)[d-1];return f?{[`${i}${c}-width`]:`var(${i}${f}-width)`}:null})),[{width:`var(${i}xs-width)`}],xn(s))}}},tO=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ot(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},nO=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${te(e.padding)} ${te(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${te(e.paddingXS)} ${te(e.padding)}`:0,footerBorderTop:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${te(e.padding*2)} ${te(e.padding*2)} ${te(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),rO=Pt("Modal",e=>{const t=tO(e);return[f9(t),m9(t),d9(t),md(t,"zoom"),p9(t)]},nO,{unitless:{titleLineHeight:!0}});let hv;const g9=e=>{hv={x:e.pageX,y:e.pageY},setTimeout(()=>{hv=null},100)};D_()&&document.documentElement.addEventListener("click",g9,!0);const oO=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:s,centered:c,getContainer:d,focusTriggerAfterClose:f=!0,style:p,width:g=520,footer:h,classNames:y,styles:C,children:b,loading:$,confirmLoading:S,zIndex:w,mousePosition:M,onOk:x,onCancel:R,okButtonProps:T,cancelButtonProps:N,destroyOnHidden:O,destroyOnClose:P,panelRef:D=null,closable:W,mask:k,modalRender:U,...G}=e,{getPopupContainer:L,getPrefixCls:H,direction:_,className:B,style:I,classNames:z,styles:V,centered:A,cancelButtonProps:j,okButtonProps:q,mask:X}=It("modal"),{modal:K}=l.useContext(dt),[Z,ee]=l.useMemo(()=>typeof W=="boolean"?[void 0,void 0]:[W?.afterClose,W?.onClose],[W]),ie=H("modal",t),ne=H(),[oe,de]=aT(k,X,ie),le=Pe=>{S||(R?.(Pe),ee?.())},fe=Pe=>{x?.(Pe),ee?.()},ge=ar(ie),[re,ue]=rO(ie,ge),he=Q(s,{[`${ie}-centered`]:c??A,[`${ie}-wrap-rtl`]:_==="rtl"}),pe=h!==null&&!$?l.createElement(JT,{...e,okButtonProps:{...q,...T},onOk:fe,cancelButtonProps:{...j,...N},onCancel:le}):null,[Se,Ie,Re,we]=IS(Cs(e),Cs(K),{closable:!0,closeIcon:l.createElement(qr,{className:`${ie}-close-icon`}),closeIconRender:Pe=>ZT(ie,Pe)}),se=Se?{disabled:Re,closeIcon:Ie,afterClose:Z,...we}:!1,be=U?Pe=>l.createElement("div",{className:`${ie}-render`},U(Pe)):void 0,Ee=`.${ie}-${U?"render":"container"}`,Ne=QT(Ee),Ve=or(D,Ne),[Ge,et]=pi("Modal",w),Te={...e,width:g,panelRef:D,focusTriggerAfterClose:f,mask:oe,zIndex:Ge},[_e,Le]=Lt([z,y,de],[V,C],{props:Te}),[Qe,De]=l.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ve=l.useMemo(()=>{const Pe={};return De&&Object.keys(De).forEach(Ze=>{const Ue=De[Ze];Ue!==void 0&&(Pe[`--${ie}-${Ze}-width`]=typeof Ue=="number"?`${Ue}px`:Ue)}),Pe},[ie,De]);return l.createElement(xa,{form:!0,space:!0},l.createElement(ld.Provider,{value:et},l.createElement(_j,{width:Qe,...G,zIndex:Ge,getContainer:d===void 0?L:d,prefixCls:ie,rootClassName:Q(re,r,ue,ge,_e.root),rootStyle:Le.root,footer:pe,visible:i,mousePosition:M??hv,onClose:le,closable:se,closeIcon:Ie,focusTriggerAfterClose:f,transitionName:Go(ne,"zoom",e.transitionName),maskTransitionName:Go(ne,"fade",e.maskTransitionName),mask:oe,className:Q(re,n,B),style:{...I,...p,...ve},classNames:{..._e,wrapper:Q(_e.wrapper,he)},styles:Le,panelRef:Ve,destroyOnHidden:O??P,modalRender:be},$?l.createElement(gi,{active:!0,title:!1,paragraph:{rows:4},className:`${ie}-body-skeleton`}):b)))},h9=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:s,lineHeight:c,modalTitleHeight:d,fontHeight:f,confirmBodyPadding:p}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:{...Zi()},[`&${t} ${t}-body`]:{padding:p},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(d).sub(i).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${te(e.marginSM)})`},[`${e.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${te(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${g}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${g}-container`]:{color:e.colorText,fontSize:s,lineHeight:c},[`${g}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${g}-error ${g}-body > ${e.iconCls}`]:{color:e.colorError},[`${g}-warning ${g}-body > ${e.iconCls},
|
|
177
|
-
${g}-confirm ${g}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${g}-info ${g}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${g}-success ${g}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},y9=ad(["Modal","confirm"],e=>{const t=tO(e);return h9(t)},nO,{order:-1e3}),aO=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:s,type:c,okCancel:d,footer:f,locale:p,...g}=e;let h=n;if(!n&&n!==null)switch(c){case"info":h=l.createElement(TS,null);break;case"success":h=l.createElement(xp,null);break;case"error":h=l.createElement(zs,null);break;default:h=l.createElement(As,null)}const y=d??c==="confirm",C=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=oo("Modal"),$=p||b,S=r||(y?$?.okText:$?.justOkText),w=i||$?.cancelText,{closable:M}=g,{onClose:x}=M&&typeof M=="object"?M:{},R=l.useMemo(()=>({autoFocusButton:C,cancelTextLocale:w,okTextLocale:S,mergedOkCancel:y,onClose:x,...g}),[C,w,S,y,x,g]),T=l.createElement(l.Fragment,null,l.createElement(IE,null),l.createElement(PE,null)),N=e.title!==void 0&&e.title!==null,O=`${s}-body`;return l.createElement("div",{className:`${s}-body-wrapper`},l.createElement("div",{className:Q(O,{[`${O}-has-title`]:N})},h,l.createElement("div",{className:`${s}-paragraph`},N&&l.createElement("span",{className:`${s}-title`},e.title),l.createElement("div",{className:`${s}-content`},e.content))),f===void 0||typeof f=="function"?l.createElement(VT,{value:R},l.createElement("div",{className:`${s}-btns`},typeof f=="function"?f(T,{OkBtn:PE,CancelBtn:IE}):T)):f,l.createElement(y9,{prefixCls:t}))},b9=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:s,wrapClassName:c,rootPrefixCls:d,bodyStyle:f,closable:p=!1,onConfirm:g,styles:h,title:y,okButtonProps:C,cancelButtonProps:b}=e,{cancelButtonProps:$,okButtonProps:S}=It("modal"),w=`${s}-confirm`,M=e.width||416,x=e.style||{},R=e.maskClosable===void 0?!1:e.maskClosable,T=Q(w,`${w}-${e.type}`,{[`${w}-rtl`]:i==="rtl"},e.className),[,N]=Wr(),O=l.useMemo(()=>n!==void 0?n:N.zIndexPopupBase+lT,[n,N]);return l.createElement(oO,{...e,className:T,wrapClassName:Q({[`${w}-centered`]:!!e.centered},c),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Go(d||"","zoom",e.transitionName),maskTransitionName:Go(d||"","fade",e.maskTransitionName),maskClosable:R,style:x,styles:{body:f,mask:r,...h},width:M,zIndex:O,closable:p},l.createElement(aO,{...e,confirmPrefixCls:w,okButtonProps:{...S,...C},cancelButtonProps:{...$,...b}}))},iO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return l.createElement(Qo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},l.createElement(b9,{...e}))},Yi=[];let lO="";function sO(){return lO}const v9=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,i=rT(),s=l.useContext(dt),c=sO()||s.getPrefixCls(),d=t||`${c}-modal`;let f=n;return f===!1&&(f=void 0),ae.createElement(iO,{...e,rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??i,getContainer:f})};function vd(e){const t=wT(),n=document.createDocumentFragment();let r={...e,close:d,open:!0},i;function s(...p){p.some(h=>h?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let h=0;h<Yi.length;h++)if(Yi[h]===d){Yi.splice(h,1);break}NT(n).then(()=>{})}const c=p=>{clearTimeout(i),i=setTimeout(()=>{const g=t.getPrefixCls(void 0,sO()),h=t.getIconPrefixCls(),y=t.getTheme(),C=ae.createElement(v9,{...p});DS(ae.createElement(Qo,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(C):C),n)})};function d(...p){r={...r,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,p)}},c(r)}function f(p){typeof p=="function"?r=p(r):r={...r,...p},c(r)}return c(r),Yi.push(d),{destroy:d,update:f}}function cO(e){return{...e,type:"warning"}}function uO(e){return{...e,type:"info"}}function dO(e){return{...e,type:"success"}}function fO(e){return{...e,type:"error"}}function mO(e){return{...e,type:"confirm"}}function S9({rootPrefixCls:e}){lO=e}const C9=({afterClose:e,config:t,...n},r)=>{const[i,s]=l.useState(!0),[c,d]=l.useState(t),{direction:f,getPrefixCls:p}=l.useContext(dt),g=p("modal"),h=p(),y=()=>{e(),c.afterClose?.()},C=(...S)=>{s(!1),S.some(M=>M?.triggerCancel)&&c.onCancel?.(()=>{},...S.slice(1))};l.useImperativeHandle(r,()=>({destroy:C,update:S=>{d(w=>{const M=typeof S=="function"?S(w):S;return{...w,...M}})}}));const b=c.okCancel??c.type==="confirm",[$]=oo("Modal",$a.Modal);return l.createElement(iO,{prefixCls:g,rootPrefixCls:h,...c,close:C,open:i,afterClose:y,okText:c.okText||(b?$?.okText:$?.justOkText),direction:c.direction||f,cancelText:c.cancelText||$?.cancelText,...n})},$9=l.forwardRef(C9);let XE=0;const x9=l.memo(l.forwardRef((e,t)=>{const[n,r]=F5();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function w9(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(xn(t).forEach(c=>{c()}),n([]))},[t]);const r=l.useCallback(s=>function(d){XE+=1;const f=l.createRef();let p;const g=new Promise($=>{p=$});let h=!1,y;const C=l.createElement($9,{key:`modal-${XE}`,config:s(d),ref:f,afterClose:()=>{y?.()},isSilent:()=>h,onConfirm:$=>{p($)}});return y=e.current?.patchElement(C),y&&Yi.push(y),{destroy:()=>{function $(){f.current?.destroy()}f.current?$():n(S=>[].concat(xn(S),[$]))},update:$=>{function S(){f.current?.update($)}f.current?S():n(w=>[].concat(xn(w),[S]))},then:$=>(h=!0,g.then($))}},[]);return[l.useMemo(()=>({info:r(uO),success:r(dO),error:r(fO),warning:r(cO),confirm:r(mO)}),[r]),l.createElement(x9,{key:"modal-holder",ref:e})]}const E9=ae.createContext({});function pO(e){return t=>l.createElement(Qo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const zp=(e,t,n,r,i)=>pO(c=>{const{prefixCls:d,style:f}=c,p=l.useRef(null),[g,h]=l.useState(0),[y,C]=l.useState(0),[b,$]=Yt(!1,c.open),{getPrefixCls:S}=l.useContext(dt),w=S(r||"select",d);l.useEffect(()=>{if($(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(N=>{const O=N[0].target;h(O.offsetHeight+8),C(O.offsetWidth)}),T=setInterval(()=>{const N=i?`.${i(w)}`:`.${w}-dropdown`,O=p.current?.querySelector(N);O&&(clearInterval(T),R.observe(O))},10);return()=>{clearInterval(T),R.disconnect()}}},[w]);let M={...c,style:{...f,margin:0},open:b,getPopupContainer:()=>p.current};t&&Object.assign(M,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:g,position:"relative",minWidth:y};return l.createElement("div",{ref:p,style:x},l.createElement(e,{...M}))}),M9=(e,t,n,r,i=!1,s,c)=>{const d=l.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return l.useMemo(()=>{const f=!i&&d.allowClear!==!1&&(t.length||s)&&!(c==="combobox"&&s==="");return{allowClear:f,clearIcon:f?d.clearIcon||r||"×":null}},[d,r,i,t.length,s,c])},gO=l.createContext(null);function ll(){return l.useContext(gO)}function R9(e=250){const t=l.useRef(null),n=l.useRef(null);l.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function hO(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function T9(e,t,n,r){const i=ut(s=>{if(r)return;let c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),s._ori_target&&(c=s._ori_target),t&&!hO(e(),c)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yv.apply(this,arguments)}const O9=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},N9=(e,t)=>{const{prefixCls:n,disabled:r,visible:i,children:s,popupElement:c,animation:d,transitionName:f,popupStyle:p,popupClassName:g,direction:h="ltr",placement:y,builtinPlacements:C,popupMatchSelectWidth:b,popupRender:$,popupAlign:S,getPopupContainer:w,empty:M,onPopupVisibleChange:x,onPopupMouseEnter:R,onPopupMouseDown:T,onPopupBlur:N,...O}=e,P=`${n}-dropdown`;let D=c;$&&(D=$(c));const W=l.useMemo(()=>C||O9(b),[C,b]),k=d?`${P}-${d}`:f,U=typeof b=="number",G=l.useMemo(()=>U?null:b===!1?"minWidth":"width",[b,U]);let L=p;U&&(L={...p,width:b});const H=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>H.current?.popupElement})),l.createElement(ud,yv({},O,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:W,prefixCls:P,popupMotion:{motionName:k},popup:l.createElement("div",{onMouseEnter:R,onMouseDown:T,onBlur:N},D),ref:H,stretch:G,popupAlign:S,popupVisible:i,getPopupContainer:w,popupClassName:Q(g,{[`${P}-empty`]:M}),popupStyle:L,onPopupVisibleChange:x}),s)},I9=l.forwardRef(N9);function KE(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function bv(e){return typeof e<"u"&&!Number.isNaN(e)}function yO(e,t){const{label:n,value:r,options:i,groupLabel:s}=e||{},c=n||(t?"children":"label");return{label:c,value:r||"value",options:i||"options",groupLabel:s||c}}function P9(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:i,value:s,options:c,groupLabel:d}=yO(t,!1);function f(p,g){Array.isArray(p)&&p.forEach(h=>{if(g||!(c in h)){const y=h[s];r.push({key:KE(h,r.length),groupOption:g,data:h,label:h[i],value:y})}else{let y=h[d];y===void 0&&n&&(y=h.label),r.push({key:KE(h,r.length),group:!0,data:h,label:y}),f(h[c],!0)}})}return f(e,!1),r}function vv(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return tr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const z9=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const i=(c,[d,...f])=>{if(!d)return[c];const p=c.split(d);return r=r||p.length>1,p.reduce((g,h)=>[...g,...i(h,f)],[]).filter(Boolean)},s=i(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function A9(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:i,value:s})=>["number","string"].includes(typeof i)?i:s).join(", ")}`,n.length>r?", ...":null)}const D9=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},VS=(e,t=1)=>{if(t<=0){e();return}D9(()=>{VS(e,t-1)})};function j9(e,t,n,r){const[i,s]=l.useState(!1);l.useEffect(()=>{s(!0)},[]);const[c,d]=Yt(e,t),p=r(i?c:!1),g=l.useRef(0),h=ut(C=>{n&&p!==C&&n(C),d(C)}),y=ut((C,b={})=>{const{cancelFun:$}=b;g.current+=1;const S=g.current,w=typeof C=="boolean"?C:!p;function M(){S===g.current&&!$?.()&&h(w)}w?M():VS(()=>{M()})});return[p,y]}function Dy(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const bO=l.createContext(null);function Sd(){return l.useContext(bO)}const vO=l.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:i,style:s,syncWidth:c,value:d,className:f,autoComplete:p,...g}=e,{prefixCls:h,mode:y,onSearch:C,onSearchSubmit:b,onInputBlur:$,autoFocus:S,tokenWithEnter:w,placeholder:M,components:{input:x="input"}}=Sd(),{id:R,classNames:T,styles:N,open:O,activeDescendantId:P,role:D,disabled:W}=ll()||{},k=Q(`${h}-input`,T?.input,f),U=l.useRef(!1),G=l.useRef(null),L=l.useRef(null);l.useImperativeHandle(t,()=>L.current);const H=K=>{let{value:Z}=K.target;if(w&&G.current&&/[\r\n]/.test(G.current)){const ee=G.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Z=Z.replace(ee,G.current)}G.current=null,C&&C(Z,!0,U.current),n?.(K)},_=K=>{const{key:Z}=K,{value:ee}=K.currentTarget;Z==="Enter"&&y==="tags"&&!U.current&&b&&b(ee),r?.(K)},B=K=>{$?.(),i?.(K)},I=()=>{U.current=!0},z=K=>{if(U.current=!1,y!=="combobox"){const{value:Z}=K.currentTarget;C?.(Z,!0,!1)}},V=K=>{const{clipboardData:Z}=K,ee=Z?.getData("text");G.current=ee||""},[A,j]=l.useState(void 0);Nt(()=>{const K=L.current;if(c&&K){K.style.width="0px";const Z=K.scrollWidth;j(Z),K.style.width=""}},[c,d]);const q={id:R,type:y==="combobox"?"text":"search",...g,ref:L,style:{...N?.input,...s,"--select-input-width":A},autoFocus:S,autoComplete:p||"off",className:k,disabled:W,value:d||"",onChange:H,onKeyDown:_,onBlur:B,onPaste:V,onCompositionStart:I,onCompositionEnd:z,role:D||"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":O?`${R}_list`:void 0,"aria-autocomplete":"list","aria-controls":O?`${R}_list`:void 0,"aria-activedescendant":O?P:void 0};if(l.isValidElement(x)){const K=x.props||{},Z={placeholder:e.placeholder||M,...q,...K};return Object.keys(K).forEach(ee=>{const ie=K[ee];typeof ie=="function"&&(Z[ee]=(...ne)=>{ie(...ne),q[ee]?.(...ne)})}),Z.ref=or(x.ref,q.ref),l.cloneElement(x,Z)}const X=x;return l.createElement(X,q)});function SO(e){const{prefixCls:t,placeholder:n,displayValues:r}=Sd(),{classNames:i,styles:s}=ll(),{show:c=!0}=e;return r.length?null:l.createElement("div",{className:Q(`${t}-placeholder`,i?.placeholder),style:{visibility:c?"visible":"hidden",...s?.placeholder}},n)}const FS=l.createContext(null);function CO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function _9(e){return e!=null}function H9(e){return!e&&e!==0}function QE(e){return["string","number"].includes(typeof e)}function Sv(e){let t;return e&&(QE(e.title)?t=e.title.toString():QE(e.label)&&(t=e.label.toString())),t}function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cv.apply(this,arguments)}const B9=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:i,displayValues:s,maxLength:c,mode:d}=Sd(),{triggerOpen:f,title:p,showSearch:g,classNames:h,styles:y}=ll(),C=l.useContext(FS),[b,$]=l.useState(!1),S=d==="combobox",w=s[0],M=l.useMemo(()=>S&&i&&!b&&f?i:g?r:"",[S,i,b,f,r,g]),x=l.useMemo(()=>{let R={className:`${n}-content-value`,style:{visibility:M?"hidden":"visible"}};if(w&&C?.flattenOptions){const T=C.flattenOptions.find(N=>N.value===w.value);if(T?.data){const{label:N,value:O,className:P,style:D,key:W,...k}=T.data;R={...R,...k,title:Sv(T.data),className:Q(R.className,P),style:{...R.style,...D}}}}return w&&!R.title&&(R.title=Sv(w)),p!==void 0&&(R.title=p),R},[w,C?.flattenOptions,n,M,p]);return l.useEffect(()=>{S&&$(!1)},[S,i]),l.createElement("div",{className:Q(`${n}-content`,h?.content),style:y?.content},w?l.createElement("div",x,w.label):l.createElement(SO,{show:!M}),l.createElement(vO,Cv({ref:t},e,{value:M,maxLength:d==="combobox"?c:void 0,onChange:R=>{$(!0),e.onChange?.(R)}})))}),Zl=void 0;function L9(e,t){const{prefixCls:n,invalidate:r,item:i,renderItem:s,responsive:c,responsiveDisabled:d,registerSize:f,itemKey:p,className:g,style:h,children:y,display:C,order:b,component:$="div",...S}=e,w=c&&!C;function M(O){f(p,O)}l.useEffect(()=>()=>{M(null)},[]);const x=s&&i!==Zl?s(i,{index:b}):y;let R;r||(R={opacity:w?0:1,height:w?0:Zl,overflowY:w?"hidden":Zl,order:c?b:Zl,pointerEvents:w?"none":Zl,position:w?"absolute":Zl});const T={};w&&(T["aria-hidden"]=!0);let N=l.createElement($,Xn({className:Q(!r&&n,g),style:{...R,...h}},T,S,{ref:t}),x);return c&&(N=l.createElement(Vr,{onResize:({offsetWidth:O})=>{M(O)},disabled:d},N)),N}const Kc=l.forwardRef(L9);function V9(e){if(typeof MessageChannel>"u")Ht(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function F9(){const e=l.useRef(null);return n=>{e.current||(e.current=[],V9(()=>{$s.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function Jl(e,t){const[n,r]=l.useState(t),i=ut(s=>{e(()=>{r(s)})});return[n,i]}const Gm=ae.createContext(null),k9=(e,t)=>{const n=l.useContext(Gm);if(!n){const{component:d="div",...f}=e;return l.createElement(d,Xn({},f,{ref:t}))}const{className:r,...i}=n,{className:s,...c}=e;return l.createElement(Gm.Provider,{value:null},l.createElement(Kc,Xn({ref:t,className:Q(r,s)},i,c)))},W9=l.forwardRef(k9),$O="responsive",xO="invalidate";function q9(e){return`+ ${e.length} ...`}function Y9(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:i,renderRawItem:s,itemKey:c,itemWidth:d=10,ssr:f,style:p,className:g,maxCount:h,renderRest:y,renderRawRest:C,prefix:b,suffix:$,component:S="div",itemComponent:w,onVisibleChange:M,...x}=e,R=f==="full",T=F9(),[N,O]=Jl(T,null),P=N||0,[D,W]=Jl(T,new Map),[k,U]=Jl(T,0),[G,L]=Jl(T,0),[H,_]=Jl(T,0),[B,I]=Jl(T,0),[z,V]=l.useState(null),[A,j]=l.useState(null),q=l.useMemo(()=>A===null&&R?Number.MAX_SAFE_INTEGER:A||0,[A,N]),[X,K]=l.useState(!1),Z=`${n}-item`,ee=Math.max(k,G),ie=h===$O,ne=r.length&&ie,oe=h===xO,de=ne||typeof h=="number"&&r.length>h,le=l.useMemo(()=>{let _e=r;return ne?N===null&&R?_e=r:_e=r.slice(0,Math.min(r.length,P/d)):typeof h=="number"&&(_e=r.slice(0,h)),_e},[r,d,N,h,ne]),fe=l.useMemo(()=>ne?r.slice(q+1):r.slice(le.length),[r,le,ne,q]),ge=l.useCallback((_e,Le)=>typeof c=="function"?c(_e):(c&&_e?.[c])??Le,[c]),re=l.useCallback(i||(_e=>_e),[i]);function ue(_e,Le,Qe){A===_e&&(Le===void 0||Le===z)||(j(_e),Qe||(K(_e<r.length-1),M?.(_e)),Le!==void 0&&V(Le))}function he(_e,Le){O(Le.clientWidth)}function pe(_e,Le){W(Qe=>{const De=new Map(Qe);return Le===null?De.delete(_e):De.set(_e,Le),De})}function Se(_e,Le){L(Le),U(G)}function Ie(_e,Le){_(Le)}function Re(_e,Le){I(Le)}function we(_e){return D.get(ge(le[_e],_e))}Nt(()=>{if(P&&typeof ee=="number"&&le){let _e=H+B;const Le=le.length,Qe=Le-1;if(!Le){ue(0,null);return}for(let De=0;De<Le;De+=1){let ve=we(De);if(R&&(ve=ve||0),ve===void 0){ue(De-1,void 0,!0);break}if(_e+=ve,Qe===0&&_e<=P||De===Qe-1&&_e+we(Qe)<=P){ue(Qe,null);break}else if(_e+ee>P){ue(De-1,_e-ve-B+G);break}}$&&we(0)+B>P&&V(null)}},[P,D,G,H,B,ge,le]);const se=X&&!!fe.length;let be={};z!==null&&ne&&(be={position:"absolute",left:z,top:0});const Ee={prefixCls:Z,responsive:ne,component:w,invalidate:oe},Ne=s?(_e,Le)=>{const Qe=ge(_e,Le);return l.createElement(Gm.Provider,{key:Qe,value:{...Ee,order:Le,item:_e,itemKey:Qe,registerSize:pe,display:Le<=q}},s(_e,Le))}:(_e,Le)=>{const Qe=ge(_e,Le);return l.createElement(Kc,Xn({},Ee,{order:Le,key:Qe,item:_e,renderItem:re,itemKey:Qe,registerSize:pe,display:Le<=q}))},Ve={order:se?q:Number.MAX_SAFE_INTEGER,className:`${Z}-rest`,registerSize:Se,display:se},Ge=y||q9,et=C?l.createElement(Gm.Provider,{value:{...Ee,...Ve}},C(fe)):l.createElement(Kc,Xn({},Ee,Ve),typeof Ge=="function"?Ge(fe):Ge),Te=l.createElement(S,Xn({className:Q(!oe&&n,g),style:p,ref:t},x),b&&l.createElement(Kc,Xn({},Ee,{responsive:ie,responsiveDisabled:!ne,order:-1,className:`${Z}-prefix`,registerSize:Ie,display:!0}),b),le.map(Ne),de?et:null,$&&l.createElement(Kc,Xn({},Ee,{responsive:ie,responsiveDisabled:!ne,order:q,className:`${Z}-suffix`,registerSize:Re,display:!0,style:be}),$));return ie?l.createElement(Vr,{onResize:he,disabled:!ne},Te):Te}const Yo=l.forwardRef(Y9);Yo.Item=W9;Yo.RESPONSIVE=$O;Yo.INVALIDATE=xO;const wO=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:s,onMouseDown:c,onClick:d}=e,f=typeof r=="function"?r(i):r;return l.createElement("span",{className:t,onMouseDown:p=>{p.preventDefault(),c?.(p)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:d,"aria-hidden":!0},f!==void 0?f:l.createElement("span",{className:Q(t.split(/\s+/).map(p=>`${p}-icon`))},s))};function $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$v.apply(this,arguments)}function U9(e){return e.key??e.value}const ZE=e=>{e.preventDefault(),e.stopPropagation()},G9=l.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:i,searchValue:s,mode:c,onSelectorRemove:d,removeIcon:f}=Sd(),{disabled:p,showSearch:g,triggerOpen:h,toggleOpen:y,autoClearSearchValue:C,tagRender:b,maxTagPlaceholder:$,maxTagTextLength:S,maxTagCount:w,classNames:M,styles:x}=ll(),R=`${r}-selection-item`;let T=s;!h&&c==="multiple"&&C!==!1&&(T="");const N=g&&T||"",O=g&&!p,P=f??"×",D=$??(B=>`+ ${B.length} ...`),W=b,k=B=>{y(B)},U=B=>{d?.(B)},G=(B,I,z,V,A)=>l.createElement("span",{title:Sv(B),className:Q(R,{[`${R}-disabled`]:z},M?.item),style:x?.item},l.createElement("span",{className:Q(`${R}-content`,M?.itemContent),style:x?.itemContent},I),V&&l.createElement(wO,{className:Q(`${R}-remove`,M?.itemRemove),style:x?.itemRemove,onMouseDown:ZE,onClick:A,customizeIcon:P},"×")),L=(B,I,z,V,A,j,q)=>{const X=K=>{ZE(K),k(!h)};return l.createElement("span",{onMouseDown:X},W({label:I,value:B,index:q?.index,disabled:z,closable:V,onClose:A,isMaxTag:!!j}))},H=(B,I)=>{const{disabled:z,label:V,value:A}=B,j=!p&&!z;let q=V;if(typeof S=="number"&&(typeof V=="string"||typeof V=="number")){const K=String(q);K.length>S&&(q=`${K.slice(0,S)}...`)}const X=K=>{K&&K.stopPropagation(),U(B)};return typeof W=="function"?L(A,q,z,j,X,void 0,I):G(B,q,z,j,X)},_=B=>{if(!i.length)return null;const I=typeof D=="function"?D(B):D;return typeof W=="function"?L(void 0,I,!1,!1,void 0,!0):G({title:I},I,!1)};return l.createElement(Yo,{prefixCls:`${r}-content`,className:M?.content,style:x?.content,prefix:!i.length&&(!s||!h)?l.createElement(SO,null):null,data:i,renderItem:H,renderRest:_,suffix:l.createElement(vO,$v({ref:n,disabled:p,readOnly:!O},t,{value:N||"",syncWidth:!0})),itemKey:U9,maxCount:w})}),X9=l.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:i,tabIndex:s}=Sd(),c=ll(),{showSearch:d}=c,p={...jn(c,{aria:!0}),onKeyDown:i,readOnly:!d,tabIndex:s};return r?l.createElement(G9,{ref:n,inputProps:p}):l.createElement(B9,{ref:n,inputProps:p})});function K9(e){return e&&![nt.ESC,nt.SHIFT,nt.BACKSPACE,nt.TAB,nt.WIN_KEY,nt.ALT,nt.META,nt.WIN_KEY_RIGHT,nt.CTRL,nt.SEMICOLON,nt.EQUALS,nt.CAPS_LOCK,nt.CONTEXT_MENU,nt.UP,nt.LEFT,nt.RIGHT,nt.F1,nt.F2,nt.F3,nt.F4,nt.F5,nt.F6,nt.F7,nt.F8,nt.F9,nt.F10,nt.F11,nt.F12].includes(e)}function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xm.apply(this,arguments)}const Q9=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],Z9=l.forwardRef(function(t,n){const{prefixCls:r,className:i,style:s,prefix:c,suffix:d,clearIcon:f,children:p,multiple:g,displayValues:h,placeholder:y,mode:C,searchValue:b,onSearch:$,onSearchSubmit:S,onInputBlur:w,maxLength:M,autoFocus:x,onMouseDown:R,onClearMouseDown:T,onInputKeyDown:N,onSelectorRemove:O,tokenWithEnter:P,components:D,...W}=t,{triggerOpen:k,toggleOpen:U,showSearch:G,disabled:L,loading:H,classNames:_,styles:B}=ll(),I=l.useRef(null),z=l.useRef(null),V=ut(K=>{const{which:Z}=K,ee=z.current instanceof HTMLTextAreaElement;!ee&&k&&(Z===nt.UP||Z===nt.DOWN)&&K.preventDefault(),N&&N(K),!(ee&&!k&&~[nt.UP,nt.DOWN,nt.LEFT,nt.RIGHT].indexOf(Z))&&K9(Z)&&U(!0)});l.useImperativeHandle(n,()=>({focus:K=>{(z.current||I.current).focus?.(K)},blur:()=>{(z.current||I.current).blur?.()},nativeElement:I.current}));const A=ut(K=>{if(!L){const Z=mu(z.current);K.nativeEvent._ori_target=Z,Z&&K.target!==Z&&!Z.contains(K.target)&&K.preventDefault();const ee=k&&!g&&(C==="combobox"||G);K.nativeEvent._select_lazy?k&&U(!1):(z.current?.focus(),ee||U())}R?.(K)}),{root:j}=D,q=nn(W,Q9),X={...t,onInputKeyDown:V};return j?l.isValidElement(j)?l.cloneElement(j,{...q,ref:or(j.ref,I)}):l.createElement(j,Xm({},q,{ref:I})):l.createElement(bO.Provider,{value:X},l.createElement("div",Xm({},q,{ref:I,className:i,style:s,onMouseDown:A}),l.createElement(Dy,{className:Q(`${r}-prefix`,_?.prefix),style:B?.prefix},c),l.createElement(X9,{ref:z}),l.createElement(Dy,{className:Q(`${r}-suffix`,{[`${r}-suffix-loading`]:H},_?.suffix),style:B?.suffix},d),f&&l.createElement(Dy,{className:Q(`${r}-clear`,_?.clear),style:B?.clear,onMouseDown:K=>{K.nativeEvent._select_lazy=!0,T?.(K)}},f),p))});function J9(e,t,n){return l.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(this,arguments)}const wv=e=>e==="tags"||e==="multiple",eH=l.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:i,styles:s,classNames:c,showSearch:d,tagRender:f,showScrollBar:p="optional",direction:g,omitDomProps:h,displayValues:y,onDisplayValuesChange:C,emptyOptions:b,notFoundContent:$="Not Found",onClear:S,maxCount:w,placeholder:M,mode:x,disabled:R,loading:T,getInputElement:N,getRawInputElement:O,open:P,defaultOpen:D,onPopupVisibleChange:W,activeValue:k,onActiveValueChange:U,activeDescendantId:G,searchValue:L,autoClearSearchValue:H,onSearch:_,onSearchSplit:B,tokenSeparators:I,allowClear:z,prefix:V,suffix:A,suffixIcon:j,clearIcon:q,OptionList:X,animation:K,transitionName:Z,popupStyle:ee,popupClassName:ie,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:de,placement:le,builtinPlacements:fe,getPopupContainer:ge,showAction:re=[],onFocus:ue,onBlur:he,onKeyUp:pe,onKeyDown:Se,onMouseDown:Ie,components:Re,...we}=e,se=wv(x),be=l.useRef(null),Ee=l.useRef(null),Ne=l.useRef(null),[Ve,Ge]=l.useState(!1);l.useImperativeHandle(t,()=>({focus:be.current?.focus,blur:be.current?.blur,scrollTo:Ke=>Ne.current?.scrollTo(Ke),nativeElement:mu(be.current)}));const et=J9(Re,N,O),Te=l.useMemo(()=>{if(x!=="combobox")return L;const Ke=y[0]?.value;return typeof Ke=="string"||typeof Ke=="number"?String(Ke):""},[L,x,y]),_e=x==="combobox"&&typeof N=="function"&&N()||null,Le=!$&&b,[Qe,De]=j9(D||!1,P,W,Ke=>R||Le?!1:Ke),ve=l.useMemo(()=>(I||[]).some(Ke=>[`
|
|
177
|
+
${g}-confirm ${g}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${g}-info ${g}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${g}-success ${g}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},y9=ad(["Modal","confirm"],e=>{const t=tO(e);return h9(t)},nO,{order:-1e3}),aO=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:s,type:c,okCancel:d,footer:f,locale:p,...g}=e;let h=n;if(!n&&n!==null)switch(c){case"info":h=l.createElement(TS,null);break;case"success":h=l.createElement(xp,null);break;case"error":h=l.createElement(zs,null);break;default:h=l.createElement(As,null)}const y=d??c==="confirm",C=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=oo("Modal"),$=p||b,S=r||(y?$?.okText:$?.justOkText),w=i||$?.cancelText,{closable:M}=g,{onClose:x}=M&&typeof M=="object"?M:{},R=l.useMemo(()=>({autoFocusButton:C,cancelTextLocale:w,okTextLocale:S,mergedOkCancel:y,onClose:x,...g}),[C,w,S,y,x,g]),T=l.createElement(l.Fragment,null,l.createElement(IE,null),l.createElement(PE,null)),N=e.title!==void 0&&e.title!==null,O=`${s}-body`;return l.createElement("div",{className:`${s}-body-wrapper`},l.createElement("div",{className:Q(O,{[`${O}-has-title`]:N})},h,l.createElement("div",{className:`${s}-paragraph`},N&&l.createElement("span",{className:`${s}-title`},e.title),l.createElement("div",{className:`${s}-content`},e.content))),f===void 0||typeof f=="function"?l.createElement(VT,{value:R},l.createElement("div",{className:`${s}-btns`},typeof f=="function"?f(T,{OkBtn:PE,CancelBtn:IE}):T)):f,l.createElement(y9,{prefixCls:t}))},b9=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:s,wrapClassName:c,rootPrefixCls:d,bodyStyle:f,closable:p=!1,onConfirm:g,styles:h,title:y,okButtonProps:C,cancelButtonProps:b}=e,{cancelButtonProps:$,okButtonProps:S}=It("modal"),w=`${s}-confirm`,M=e.width||416,x=e.style||{},R=e.maskClosable===void 0?!1:e.maskClosable,T=Q(w,`${w}-${e.type}`,{[`${w}-rtl`]:i==="rtl"},e.className),[,N]=Wr(),O=l.useMemo(()=>n!==void 0?n:N.zIndexPopupBase+lT,[n,N]);return l.createElement(oO,{...e,className:T,wrapClassName:Q({[`${w}-centered`]:!!e.centered},c),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Go(d||"","zoom",e.transitionName),maskTransitionName:Go(d||"","fade",e.maskTransitionName),maskClosable:R,style:x,styles:{body:f,mask:r,...h},width:M,zIndex:O,closable:p},l.createElement(aO,{...e,confirmPrefixCls:w,okButtonProps:{...S,...C},cancelButtonProps:{...$,...b}}))},iO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return l.createElement(Qo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},l.createElement(b9,{...e}))},Yi=[];let lO="";function sO(){return lO}const v9=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,i=rT(),s=l.useContext(dt),c=sO()||s.getPrefixCls(),d=t||`${c}-modal`;let f=n;return f===!1&&(f=void 0),ae.createElement(iO,{...e,rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??i,getContainer:f})};function vd(e){const t=wT(),n=document.createDocumentFragment();let r={...e,close:d,open:!0},i;function s(...p){p.some(h=>h?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let h=0;h<Yi.length;h++)if(Yi[h]===d){Yi.splice(h,1);break}NT(n).then(()=>{})}const c=p=>{clearTimeout(i),i=setTimeout(()=>{const g=t.getPrefixCls(void 0,sO()),h=t.getIconPrefixCls(),y=t.getTheme(),C=ae.createElement(v9,{...p});DS(ae.createElement(Qo,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(C):C),n)})};function d(...p){r={...r,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,p)}},c(r)}function f(p){typeof p=="function"?r=p(r):r={...r,...p},c(r)}return c(r),Yi.push(d),{destroy:d,update:f}}function cO(e){return{...e,type:"warning"}}function uO(e){return{...e,type:"info"}}function dO(e){return{...e,type:"success"}}function fO(e){return{...e,type:"error"}}function mO(e){return{...e,type:"confirm"}}function S9({rootPrefixCls:e}){lO=e}const C9=({afterClose:e,config:t,...n},r)=>{const[i,s]=l.useState(!0),[c,d]=l.useState(t),{direction:f,getPrefixCls:p}=l.useContext(dt),g=p("modal"),h=p(),y=()=>{e(),c.afterClose?.()},C=(...S)=>{s(!1),S.some(M=>M?.triggerCancel)&&c.onCancel?.(()=>{},...S.slice(1))};l.useImperativeHandle(r,()=>({destroy:C,update:S=>{d(w=>{const M=typeof S=="function"?S(w):S;return{...w,...M}})}}));const b=c.okCancel??c.type==="confirm",[$]=oo("Modal",$a.Modal);return l.createElement(iO,{prefixCls:g,rootPrefixCls:h,...c,close:C,open:i,afterClose:y,okText:c.okText||(b?$?.okText:$?.justOkText),direction:c.direction||f,cancelText:c.cancelText||$?.cancelText,...n})},$9=l.forwardRef(C9);let XE=0;const x9=l.memo(l.forwardRef((e,t)=>{const[n,r]=F5();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function w9(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(xn(t).forEach(c=>{c()}),n([]))},[t]);const r=l.useCallback(s=>function(d){XE+=1;const f=l.createRef();let p;const g=new Promise($=>{p=$});let h=!1,y;const C=l.createElement($9,{key:`modal-${XE}`,config:s(d),ref:f,afterClose:()=>{y?.()},isSilent:()=>h,onConfirm:$=>{p($)}});return y=e.current?.patchElement(C),y&&Yi.push(y),{destroy:()=>{function $(){f.current?.destroy()}f.current?$():n(S=>[].concat(xn(S),[$]))},update:$=>{function S(){f.current?.update($)}f.current?S():n(w=>[].concat(xn(w),[S]))},then:$=>(h=!0,g.then($))}},[]);return[l.useMemo(()=>({info:r(uO),success:r(dO),error:r(fO),warning:r(cO),confirm:r(mO)}),[r]),l.createElement(x9,{key:"modal-holder",ref:e})]}const E9=ae.createContext({});function pO(e){return t=>l.createElement(Qo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const zp=(e,t,n,r,i)=>pO(c=>{const{prefixCls:d,style:f}=c,p=l.useRef(null),[g,h]=l.useState(0),[y,C]=l.useState(0),[b,$]=Yt(!1,c.open),{getPrefixCls:S}=l.useContext(dt),w=S(r||"select",d);l.useEffect(()=>{if($(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(N=>{const O=N[0].target;h(O.offsetHeight+8),C(O.offsetWidth)}),T=setInterval(()=>{const N=i?`.${i(w)}`:`.${w}-dropdown`,O=p.current?.querySelector(N);O&&(clearInterval(T),R.observe(O))},10);return()=>{clearInterval(T),R.disconnect()}}},[w]);let M={...c,style:{...f,margin:0},open:b,getPopupContainer:()=>p.current};t&&Object.assign(M,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:g,position:"relative",minWidth:y};return l.createElement("div",{ref:p,style:x},l.createElement(e,{...M}))}),M9=(e,t,n,r,i=!1,s,c)=>{const d=l.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return l.useMemo(()=>{const f=!i&&d.allowClear!==!1&&(t.length||s)&&!(c==="combobox"&&s==="");return{allowClear:f,clearIcon:f?d.clearIcon||r||"×":null}},[d,r,i,t.length,s,c])},gO=l.createContext(null);function ll(){return l.useContext(gO)}function R9(e=250){const t=l.useRef(null),n=l.useRef(null);l.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function hO(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function T9(e,t,n,r){const i=ut(s=>{if(r)return;let c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),s._ori_target&&(c=s._ori_target),t&&!hO(e(),c)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yv.apply(this,arguments)}const O9=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},N9=(e,t)=>{const{prefixCls:n,disabled:r,visible:i,children:s,popupElement:c,animation:d,transitionName:f,popupStyle:p,popupClassName:g,direction:h="ltr",placement:y,builtinPlacements:C,popupMatchSelectWidth:b,popupRender:$,popupAlign:S,getPopupContainer:w,empty:M,onPopupVisibleChange:x,onPopupMouseEnter:R,onPopupMouseDown:T,onPopupBlur:N,...O}=e,P=`${n}-dropdown`;let D=c;$&&(D=$(c));const W=l.useMemo(()=>C||O9(b),[C,b]),k=d?`${P}-${d}`:f,U=typeof b=="number",G=l.useMemo(()=>U?null:b===!1?"minWidth":"width",[b,U]);let L=p;U&&(L={...p,width:b});const H=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>H.current?.popupElement})),l.createElement(ud,yv({},O,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:W,prefixCls:P,popupMotion:{motionName:k},popup:l.createElement("div",{onMouseEnter:R,onMouseDown:T,onBlur:N},D),ref:H,stretch:G,popupAlign:S,popupVisible:i,getPopupContainer:w,popupClassName:Q(g,{[`${P}-empty`]:M}),popupStyle:L,onPopupVisibleChange:x}),s)},I9=l.forwardRef(N9);function KE(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function bv(e){return typeof e<"u"&&!Number.isNaN(e)}function yO(e,t){const{label:n,value:r,options:i,groupLabel:s}=e||{},c=n||(t?"children":"label");return{label:c,value:r||"value",options:i||"options",groupLabel:s||c}}function P9(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:i,value:s,options:c,groupLabel:d}=yO(t,!1);function f(p,g){Array.isArray(p)&&p.forEach(h=>{if(g||!(c in h)){const y=h[s];r.push({key:KE(h,r.length),groupOption:g,data:h,label:h[i],value:y})}else{let y=h[d];y===void 0&&n&&(y=h.label),r.push({key:KE(h,r.length),group:!0,data:h,label:y}),f(h[c],!0)}})}return f(e,!1),r}function vv(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return tr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const z9=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const i=(c,[d,...f])=>{if(!d)return[c];const p=c.split(d);return r=r||p.length>1,p.reduce((g,h)=>[...g,...i(h,f)],[]).filter(Boolean)},s=i(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function A9(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:i,value:s})=>["number","string"].includes(typeof i)?i:s).join(", ")}`,n.length>r?", ...":null)}const D9=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},VS=(e,t=1)=>{if(t<=0){e();return}D9(()=>{VS(e,t-1)})};function j9(e,t,n,r){const[i,s]=l.useState(!1);l.useEffect(()=>{s(!0)},[]);const[c,d]=Yt(e,t),p=r(i?c:!1),g=l.useRef(0),h=ut(C=>{n&&p!==C&&n(C),d(C)}),y=ut((C,b={})=>{const{cancelFun:$}=b;g.current+=1;const S=g.current,w=typeof C=="boolean"?C:!p;function M(){S===g.current&&!$?.()&&h(w)}w?M():VS(()=>{M()})});return[p,y]}function Dy(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const bO=l.createContext(null);function Sd(){return l.useContext(bO)}const vO=l.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:i,style:s,syncWidth:c,value:d,className:f,autoComplete:p,...g}=e,{prefixCls:h,mode:y,onSearch:C,onSearchSubmit:b,onInputBlur:$,autoFocus:S,tokenWithEnter:w,placeholder:M,components:{input:x="input"}}=Sd(),{id:R,classNames:T,styles:N,open:O,activeDescendantId:P,role:D,disabled:W}=ll()||{},k=Q(`${h}-input`,T?.input,f),U=l.useRef(!1),G=l.useRef(null),L=l.useRef(null);l.useImperativeHandle(t,()=>L.current);const H=K=>{let{value:Z}=K.target;if(w&&G.current&&/[\r\n]/.test(G.current)){const ee=G.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Z=Z.replace(ee,G.current)}G.current=null,C&&C(Z,!0,U.current),n?.(K)},_=K=>{const{key:Z}=K,{value:ee}=K.currentTarget;Z==="Enter"&&y==="tags"&&!U.current&&b&&b(ee),r?.(K)},B=K=>{$?.(),i?.(K)},I=()=>{U.current=!0},z=K=>{if(U.current=!1,y!=="combobox"){const{value:Z}=K.currentTarget;C?.(Z,!0,!1)}},V=K=>{const{clipboardData:Z}=K,ee=Z?.getData("text");G.current=ee||""},[A,j]=l.useState(void 0);Nt(()=>{const K=L.current;if(c&&K){K.style.width="0px";const Z=K.scrollWidth;j(Z),K.style.width=""}},[c,d]);const q={id:R,type:y==="combobox"?"text":"search",...g,ref:L,style:{...N?.input,...s,"--select-input-width":A},autoFocus:S,autoComplete:p||"off",className:k,disabled:W,value:d||"",onChange:H,onKeyDown:_,onBlur:B,onPaste:V,onCompositionStart:I,onCompositionEnd:z,role:D||"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":O?`${R}_list`:void 0,"aria-autocomplete":"list","aria-controls":O?`${R}_list`:void 0,"aria-activedescendant":O?P:void 0};if(l.isValidElement(x)){const K=x.props||{},Z={placeholder:e.placeholder||M,...q,...K};return Object.keys(K).forEach(ee=>{const ie=K[ee];typeof ie=="function"&&(Z[ee]=(...ne)=>{ie(...ne),q[ee]?.(...ne)})}),Z.ref=or(x.ref,q.ref),l.cloneElement(x,Z)}const X=x;return l.createElement(X,q)});function SO(e){const{prefixCls:t,placeholder:n,displayValues:r}=Sd(),{classNames:i,styles:s}=ll(),{show:c=!0}=e;return r.length?null:l.createElement("div",{className:Q(`${t}-placeholder`,i?.placeholder),style:{visibility:c?"visible":"hidden",...s?.placeholder}},n)}const FS=l.createContext(null);function CO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function _9(e){return e!=null}function H9(e){return!e&&e!==0}function QE(e){return["string","number"].includes(typeof e)}function Sv(e){let t;return e&&(QE(e.title)?t=e.title.toString():QE(e.label)&&(t=e.label.toString())),t}function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cv.apply(this,arguments)}const B9=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:i,displayValues:s,maxLength:c,mode:d}=Sd(),{triggerOpen:f,title:p,showSearch:g,classNames:h,styles:y}=ll(),C=l.useContext(FS),[b,$]=l.useState(!1),S=d==="combobox",w=s[0],M=l.useMemo(()=>S&&i&&!b&&f?i:g?r:"",[S,i,b,f,r,g]),x=l.useMemo(()=>{let R={className:`${n}-content-value`,style:{visibility:M?"hidden":"visible"}};if(w&&C?.flattenOptions){const T=C.flattenOptions.find(N=>N.value===w.value);if(T?.data){const{label:N,value:O,className:P,style:D,key:W,...k}=T.data;R={...R,...k,title:Sv(T.data),className:Q(R.className,P),style:{...R.style,...D}}}}return w&&!R.title&&(R.title=Sv(w)),p!==void 0&&(R.title=p),R},[w,C?.flattenOptions,n,M,p]);return l.useEffect(()=>{S&&$(!1)},[S,i]),l.createElement("div",{className:Q(`${n}-content`,h?.content),style:y?.content},w?l.createElement("div",x,w.label):l.createElement(SO,{show:!M}),l.createElement(vO,Cv({ref:t},e,{value:M,maxLength:d==="combobox"?c:void 0,onChange:R=>{$(!0),e.onChange?.(R)}})))}),Zl=void 0;function L9(e,t){const{prefixCls:n,invalidate:r,item:i,renderItem:s,responsive:c,responsiveDisabled:d,registerSize:f,itemKey:p,className:g,style:h,children:y,display:C,order:b,component:$="div",...S}=e,w=c&&!C;function M(O){f(p,O)}l.useEffect(()=>()=>{M(null)},[]);const x=s&&i!==Zl?s(i,{index:b}):y;let R;r||(R={opacity:w?0:1,height:w?0:Zl,overflowY:w?"hidden":Zl,order:c?b:Zl,pointerEvents:w?"none":Zl,position:w?"absolute":Zl});const T={};w&&(T["aria-hidden"]=!0);let N=l.createElement($,Xn({className:Q(!r&&n,g),style:{...R,...h}},T,S,{ref:t}),x);return c&&(N=l.createElement(Vr,{onResize:({offsetWidth:O})=>{M(O)},disabled:d},N)),N}const Kc=l.forwardRef(L9);function V9(e){if(typeof MessageChannel>"u")Ht(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function F9(){const e=l.useRef(null);return n=>{e.current||(e.current=[],V9(()=>{$s.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function Jl(e,t){const[n,r]=l.useState(t),i=ut(s=>{e(()=>{r(s)})});return[n,i]}const Gm=ae.createContext(null),k9=(e,t)=>{const n=l.useContext(Gm);if(!n){const{component:d="div",...f}=e;return l.createElement(d,Xn({},f,{ref:t}))}const{className:r,...i}=n,{className:s,...c}=e;return l.createElement(Gm.Provider,{value:null},l.createElement(Kc,Xn({ref:t,className:Q(r,s)},i,c)))},W9=l.forwardRef(k9),$O="responsive",xO="invalidate";function q9(e){return`+ ${e.length} ...`}function Y9(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:i,renderRawItem:s,itemKey:c,itemWidth:d=10,ssr:f,style:p,className:g,maxCount:h,renderRest:y,renderRawRest:C,prefix:b,suffix:$,component:S="div",itemComponent:w,onVisibleChange:M,...x}=e,R=f==="full",T=F9(),[N,O]=Jl(T,null),P=N||0,[D,W]=Jl(T,new Map),[k,U]=Jl(T,0),[G,L]=Jl(T,0),[H,_]=Jl(T,0),[B,I]=Jl(T,0),[z,V]=l.useState(null),[A,j]=l.useState(null),q=l.useMemo(()=>A===null&&R?Number.MAX_SAFE_INTEGER:A||0,[A,N]),[X,K]=l.useState(!1),Z=`${n}-item`,ee=Math.max(k,G),ie=h===$O,ne=r.length&&ie,oe=h===xO,de=ne||typeof h=="number"&&r.length>h,le=l.useMemo(()=>{let _e=r;return ne?N===null&&R?_e=r:_e=r.slice(0,Math.min(r.length,P/d)):typeof h=="number"&&(_e=r.slice(0,h)),_e},[r,d,N,h,ne]),fe=l.useMemo(()=>ne?r.slice(q+1):r.slice(le.length),[r,le,ne,q]),ge=l.useCallback((_e,Le)=>typeof c=="function"?c(_e):(c&&_e?.[c])??Le,[c]),re=l.useCallback(i||(_e=>_e),[i]);function ue(_e,Le,Qe){A===_e&&(Le===void 0||Le===z)||(j(_e),Qe||(K(_e<r.length-1),M?.(_e)),Le!==void 0&&V(Le))}function he(_e,Le){O(Le.clientWidth)}function pe(_e,Le){W(Qe=>{const De=new Map(Qe);return Le===null?De.delete(_e):De.set(_e,Le),De})}function Se(_e,Le){L(Le),U(G)}function Ie(_e,Le){_(Le)}function Re(_e,Le){I(Le)}function we(_e){return D.get(ge(le[_e],_e))}Nt(()=>{if(P&&typeof ee=="number"&&le){let _e=H+B;const Le=le.length,Qe=Le-1;if(!Le){ue(0,null);return}for(let De=0;De<Le;De+=1){let ve=we(De);if(R&&(ve=ve||0),ve===void 0){ue(De-1,void 0,!0);break}if(_e+=ve,Qe===0&&_e<=P||De===Qe-1&&_e+we(Qe)<=P){ue(Qe,null);break}else if(_e+ee>P){ue(De-1,_e-ve-B+G);break}}$&&we(0)+B>P&&V(null)}},[P,D,G,H,B,ge,le]);const se=X&&!!fe.length;let be={};z!==null&&ne&&(be={position:"absolute",left:z,top:0});const Ee={prefixCls:Z,responsive:ne,component:w,invalidate:oe},Ne=s?(_e,Le)=>{const Qe=ge(_e,Le);return l.createElement(Gm.Provider,{key:Qe,value:{...Ee,order:Le,item:_e,itemKey:Qe,registerSize:pe,display:Le<=q}},s(_e,Le))}:(_e,Le)=>{const Qe=ge(_e,Le);return l.createElement(Kc,Xn({},Ee,{order:Le,key:Qe,item:_e,renderItem:re,itemKey:Qe,registerSize:pe,display:Le<=q}))},Ve={order:se?q:Number.MAX_SAFE_INTEGER,className:`${Z}-rest`,registerSize:Se,display:se},Ge=y||q9,et=C?l.createElement(Gm.Provider,{value:{...Ee,...Ve}},C(fe)):l.createElement(Kc,Xn({},Ee,Ve),typeof Ge=="function"?Ge(fe):Ge),Te=l.createElement(S,Xn({className:Q(!oe&&n,g),style:p,ref:t},x),b&&l.createElement(Kc,Xn({},Ee,{responsive:ie,responsiveDisabled:!ne,order:-1,className:`${Z}-prefix`,registerSize:Ie,display:!0}),b),le.map(Ne),de?et:null,$&&l.createElement(Kc,Xn({},Ee,{responsive:ie,responsiveDisabled:!ne,order:q,className:`${Z}-suffix`,registerSize:Re,display:!0,style:be}),$));return ie?l.createElement(Vr,{onResize:he,disabled:!ne},Te):Te}const Yo=l.forwardRef(Y9);Yo.Item=W9;Yo.RESPONSIVE=$O;Yo.INVALIDATE=xO;const wO=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:s,onMouseDown:c,onClick:d}=e,f=typeof r=="function"?r(i):r;return l.createElement("span",{className:t,onMouseDown:p=>{p.preventDefault(),c?.(p)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:d,"aria-hidden":!0},f!==void 0?f:l.createElement("span",{className:Q(t.split(/\s+/).map(p=>`${p}-icon`))},s))};function $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$v.apply(this,arguments)}function U9(e){return e.key??e.value}const ZE=e=>{e.preventDefault(),e.stopPropagation()},G9=l.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:i,searchValue:s,mode:c,onSelectorRemove:d,removeIcon:f}=Sd(),{disabled:p,showSearch:g,triggerOpen:h,toggleOpen:y,autoClearSearchValue:C,tagRender:b,maxTagPlaceholder:$,maxTagTextLength:S,maxTagCount:w,classNames:M,styles:x}=ll(),R=`${r}-selection-item`;let T=s;!h&&c==="multiple"&&C!==!1&&(T="");const N=g&&T||"",O=g&&!p,P=f??"×",D=$??(B=>`+ ${B.length} ...`),W=b,k=B=>{y(B)},U=B=>{d?.(B)},G=(B,I,z,V,A)=>l.createElement("span",{title:Sv(B),className:Q(R,{[`${R}-disabled`]:z},M?.item),style:x?.item},l.createElement("span",{className:Q(`${R}-content`,M?.itemContent),style:x?.itemContent},I),V&&l.createElement(wO,{className:Q(`${R}-remove`,M?.itemRemove),style:x?.itemRemove,onMouseDown:ZE,onClick:A,customizeIcon:P},"×")),L=(B,I,z,V,A,j,q)=>{const X=K=>{ZE(K),k(!h)};return l.createElement("span",{onMouseDown:X},W({label:I,value:B,index:q?.index,disabled:z,closable:V,onClose:A,isMaxTag:!!j}))},H=(B,I)=>{const{disabled:z,label:V,value:A}=B,j=!p&&!z;let q=V;if(typeof S=="number"&&(typeof V=="string"||typeof V=="number")){const K=String(q);K.length>S&&(q=`${K.slice(0,S)}...`)}const X=K=>{K&&K.stopPropagation(),U(B)};return typeof W=="function"?L(A,q,z,j,X,void 0,I):G(B,q,z,j,X)},_=B=>{if(!i.length)return null;const I=typeof D=="function"?D(B):D;return typeof W=="function"?L(void 0,I,!1,!1,void 0,!0):G({title:I},I,!1)};return l.createElement(Yo,{prefixCls:`${r}-content`,className:M?.content,style:x?.content,prefix:!i.length&&(!s||!h)?l.createElement(SO,null):null,data:i,renderItem:H,renderRest:_,suffix:l.createElement(vO,$v({ref:n,disabled:p,readOnly:!O},t,{value:N||"",syncWidth:!0})),itemKey:U9,maxCount:w})}),X9=l.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:i,tabIndex:s}=Sd(),c=ll(),{showSearch:d}=c,p={...jn(c,{aria:!0}),onKeyDown:i,readOnly:!d,tabIndex:s};return r?l.createElement(G9,{ref:n,inputProps:p}):l.createElement(B9,{ref:n,inputProps:p})});function K9(e){return e&&![nt.ESC,nt.SHIFT,nt.BACKSPACE,nt.TAB,nt.WIN_KEY,nt.ALT,nt.META,nt.WIN_KEY_RIGHT,nt.CTRL,nt.SEMICOLON,nt.EQUALS,nt.CAPS_LOCK,nt.CONTEXT_MENU,nt.UP,nt.LEFT,nt.RIGHT,nt.F1,nt.F2,nt.F3,nt.F4,nt.F5,nt.F6,nt.F7,nt.F8,nt.F9,nt.F10,nt.F11,nt.F12].includes(e)}function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xm.apply(this,arguments)}const Q9=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],Z9=l.forwardRef(function(t,n){const{prefixCls:r,className:i,style:s,prefix:c,suffix:d,clearIcon:f,children:p,multiple:g,displayValues:h,placeholder:y,mode:C,searchValue:b,onSearch:$,onSearchSubmit:S,onInputBlur:w,maxLength:M,autoFocus:x,onMouseDown:R,onClearMouseDown:T,onInputKeyDown:N,onSelectorRemove:O,tokenWithEnter:P,components:D,...W}=t,{triggerOpen:k,toggleOpen:U,showSearch:G,disabled:L,loading:H,classNames:_,styles:B}=ll(),I=l.useRef(null),z=l.useRef(null),V=ut(K=>{const{which:Z}=K,ee=z.current instanceof HTMLTextAreaElement;!ee&&k&&(Z===nt.UP||Z===nt.DOWN)&&K.preventDefault(),N&&N(K),!(ee&&!k&&~[nt.UP,nt.DOWN,nt.LEFT,nt.RIGHT].indexOf(Z))&&K9(Z)&&U(!0)});l.useImperativeHandle(n,()=>({focus:K=>{(z.current||I.current).focus?.(K)},blur:()=>{(z.current||I.current).blur?.()},nativeElement:I.current}));const A=ut(K=>{if(!L){const Z=mu(z.current);K.nativeEvent._ori_target=Z,Z&&K.target!==Z&&!Z.contains(K.target)&&K.preventDefault();const ee=k&&!g&&(C==="combobox"||G);K.nativeEvent._select_lazy?k&&U(!1):(z.current?.focus(),ee||U())}R?.(K)}),{root:j}=D,q=nn(W,Q9),X={...t,onInputKeyDown:V};return j?l.isValidElement(j)?l.cloneElement(j,{...q,ref:or(j.ref,I)}):l.createElement(j,Xm({},q,{ref:I})):l.createElement(bO.Provider,{value:X},l.createElement("div",Xm({},q,{ref:I,className:i,style:s,onMouseDown:A}),l.createElement(Dy,{className:Q(`${r}-prefix`,_?.prefix),style:B?.prefix},c),l.createElement(X9,{ref:z}),l.createElement(Dy,{className:Q(`${r}-suffix`,{[`${r}-suffix-loading`]:H},_?.suffix),style:B?.suffix},d),f&&l.createElement(Dy,{className:Q(`${r}-clear`,_?.clear),style:B?.clear,onMouseDown:K=>{K.nativeEvent._select_lazy=!0,T?.(K)}},f),p))});function J9(e,t,n){return l.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(this,arguments)}const wv=e=>e==="tags"||e==="multiple",e7=l.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:i,styles:s,classNames:c,showSearch:d,tagRender:f,showScrollBar:p="optional",direction:g,omitDomProps:h,displayValues:y,onDisplayValuesChange:C,emptyOptions:b,notFoundContent:$="Not Found",onClear:S,maxCount:w,placeholder:M,mode:x,disabled:R,loading:T,getInputElement:N,getRawInputElement:O,open:P,defaultOpen:D,onPopupVisibleChange:W,activeValue:k,onActiveValueChange:U,activeDescendantId:G,searchValue:L,autoClearSearchValue:H,onSearch:_,onSearchSplit:B,tokenSeparators:I,allowClear:z,prefix:V,suffix:A,suffixIcon:j,clearIcon:q,OptionList:X,animation:K,transitionName:Z,popupStyle:ee,popupClassName:ie,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:de,placement:le,builtinPlacements:fe,getPopupContainer:ge,showAction:re=[],onFocus:ue,onBlur:he,onKeyUp:pe,onKeyDown:Se,onMouseDown:Ie,components:Re,...we}=e,se=wv(x),be=l.useRef(null),Ee=l.useRef(null),Ne=l.useRef(null),[Ve,Ge]=l.useState(!1);l.useImperativeHandle(t,()=>({focus:be.current?.focus,blur:be.current?.blur,scrollTo:Ke=>Ne.current?.scrollTo(Ke),nativeElement:mu(be.current)}));const et=J9(Re,N,O),Te=l.useMemo(()=>{if(x!=="combobox")return L;const Ke=y[0]?.value;return typeof Ke=="string"||typeof Ke=="number"?String(Ke):""},[L,x,y]),_e=x==="combobox"&&typeof N=="function"&&N()||null,Le=!$&&b,[Qe,De]=j9(D||!1,P,W,Ke=>R||Le?!1:Ke),ve=l.useMemo(()=>(I||[]).some(Ke=>[`
|
|
178
178
|
`,`\r
|
|
179
|
-
`].includes(Ke)),[I]),Pe=(Ke,Et,mt)=>{if(se&&bv(w)&&y.length>=w)return;let Rt=!0,Ut=Ke;U?.(null);const an=z9(Ke,I,bv(w)?w-y.length:void 0),kt=mt?null:an;return x!=="combobox"&&kt&&(Ut="",B?.(kt),De(!1),Rt=!1),_&&Te!==Ut&&_(Ut,{source:Et?"typing":"effect"}),Ke&&Et&&Rt&&De(!0),Rt},Ze=Ke=>{!Ke||!Ke.trim()||_(Ke,{source:"submit"})};l.useEffect(()=>{!Qe&&!se&&x!=="combobox"&&Pe("",!1,!1)},[Qe]),l.useEffect(()=>{R&&(De(!1),Ge(!1))},[R,Qe]);const[Ue,Fe]=R9(),ze=l.useRef(!1),Xe=Ke=>{const Et=Ue(),{key:mt}=Ke,Rt=mt==="Enter";if(Rt&&(x!=="combobox"&&Ke.preventDefault(),Qe||De(!0)),Fe(!!Te),mt==="Backspace"&&!Et&&se&&!Te&&y.length){const Ut=[...y];let an=null;for(let kt=Ut.length-1;kt>=0;kt-=1){const wn=Ut[kt];if(!wn.disabled){Ut.splice(kt,1),an=wn;break}}an&&C(Ut,{type:"remove",values:[an]})}Qe&&(!Rt||!ze.current)&&(Rt&&(ze.current=!0),Ne.current?.onKeyDown(Ke)),Se?.(Ke)},rt=(Ke,...Et)=>{Qe&&Ne.current?.onKeyUp(Ke,...Et),Ke.key==="Enter"&&(ze.current=!1),pe?.(Ke,...Et)},ot=ut(Ke=>{const Et=y.filter(mt=>mt!==Ke);C(Et,{type:"remove",values:[Ke]})}),lt=()=>{ze.current=!1},St=()=>[mu(be.current),Ee.current?.getPopupElement()];T9(St,Qe,De,!!et.root);const Ct=l.useRef(!1),qe=Ke=>{Ge(!0),R||(re.includes("focus")&&De(!0),ue?.(Ke))},at=()=>{Qe&&!Ct.current&&De(!1,{cancelFun:()=>hO(St(),document.activeElement)})},He=Ke=>{Ge(!1),Te&&(x==="tags"?_(Te,{source:"submit"}):x==="multiple"&&_("",{source:"blur"})),at(),R||he?.(Ke)},Ae=(Ke,...Et)=>{const{target:mt}=Ke;Ee.current?.getPopupElement()?.contains(mt)&&De&&De(!0),Ie?.(Ke,...Et),Ct.current=!0,VS(()=>{Ct.current=!1})},[,We]=l.useState({});function Me(){We({})}let Ye;et.root&&(Ye=Ke=>{De(Ke)});const Je=l.useMemo(()=>({...e,notFoundContent:$,open:Qe,triggerOpen:Qe,id:n,showSearch:d,multiple:se,toggleOpen:De,showScrollBar:p,styles:s,classNames:c}),[e,$,De,n,d,se,Qe,p,s,c]),it=l.useMemo(()=>{const Ke=A??j;return typeof Ke=="function"?Ke({searchValue:Te,open:Qe,focused:Ve,showSearch:d,loading:T}):Ke},[A,j,Te,Qe,Ve,d,T]),ft=()=>{S?.(),be.current?.focus(),C([],{type:"clear",values:y}),Pe("",!1,!1)},{allowClear:Ft,clearIcon:Dt}=M9(r,y,z,q,R,Te,x),$t=l.createElement(X,{ref:Ne}),tn=Q(r,i,{[`${r}-focused`]:Ve,[`${r}-multiple`]:se,[`${r}-single`]:!se,[`${r}-allow-clear`]:Ft,[`${r}-show-arrow`]:it!=null,[`${r}-disabled`]:R,[`${r}-loading`]:T,[`${r}-open`]:Qe,[`${r}-customize-input`]:_e,[`${r}-show-search`]:d});let wt=l.createElement(Z9,xv({},we,{ref:be,prefixCls:r,className:tn,focused:Ve,prefix:V,suffix:it,clearIcon:Dt,multiple:se,mode:x,displayValues:y,placeholder:M,searchValue:Te,activeValue:k,onSearch:Pe,onSearchSubmit:Ze,onInputBlur:lt,onFocus:qe,onBlur:He,onClearMouseDown:ft,onKeyDown:Xe,onKeyUp:rt,onSelectorRemove:ot,tokenWithEnter:ve,onMouseDown:Ae,components:et}));return wt=l.createElement(I9,{ref:Ee,disabled:R,prefixCls:r,visible:Qe,popupElement:$t,animation:K,transitionName:Z,popupStyle:ee,popupClassName:ie,direction:g,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:de,placement:le,builtinPlacements:fe,getPopupContainer:ge,empty:b,onPopupVisibleChange:Ye,onPopupMouseEnter:Me,onPopupMouseDown:Ae,onPopupBlur:at},wt),l.createElement(gO.Provider,{value:Je},l.createElement(A9,{visible:Ve&&!Qe,values:y}),wt)}),kS=()=>null;kS.isSelectOptGroup=!0;const WS=()=>null;WS.isSelectOption=!0;const EO=l.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:s,innerProps:c,rtl:d,extra:f},p)=>{let g={},h={display:"flex",flexDirection:"column"};return t!==void 0&&(g={height:e,position:"relative",overflow:"hidden"},h={...h,transform:`translateY(${t}px)`,[d?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),l.createElement("div",{style:g},l.createElement(Vr,{onResize:({offsetHeight:y})=>{y&&s&&s()}},l.createElement("div",Xn({style:h,className:Q({[`${i}-holder-inner`]:i}),ref:p},c),r,f)))});EO.displayName="Filler";function tH({children:e,setRef:t}){const n=l.useCallback(r=>{t(r)},[]);return l.cloneElement(e,{ref:n})}function nH(e,t,n,r,i,s,c,{getKey:d}){return e.slice(t,n+1).map((f,p)=>{const g=t+p,h=c(f,g,{style:{width:r},offsetX:i}),y=d(f);return l.createElement(tH,{key:y,setRef:C=>s(f,C)},h)})}function rH(e,t,n){const r=e.length,i=t.length;let s,c;if(r===0&&i===0)return null;r<i?(s=e,c=t):(s=t,c=e);const d={__EMPTY_ITEM__:!0};function f(h){return h!==void 0?n(h):d}let p=null,g=Math.abs(r-i)!==1;for(let h=0;h<c.length;h+=1){const y=f(s[h]),C=f(c[h]);if(y!==C){p=h,g=g||y!==f(c[h+1]);break}}return p===null?null:{index:p,multiple:g}}function oH(e,t,n){const[r,i]=l.useState(e),[s,c]=l.useState(null);return l.useEffect(()=>{const d=rH(r||[],e||[],t);d?.index!==void 0&&c(e[d.index]),i(e)},[e]),[s]}const JE=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),MO=((e,t,n,r)=>{const i=l.useRef(!1),s=l.useRef(null);function c(){clearTimeout(s.current),i.current=!0,s.current=setTimeout(()=>{i.current=!1},50)}const d=l.useRef({top:e,bottom:t,left:n,right:r});return d.current.top=e,d.current.bottom=t,d.current.left=n,d.current.right=r,(f,p,g=!1)=>{const h=f?p<0&&d.current.left||p>0&&d.current.right:p<0&&d.current.top||p>0&&d.current.bottom;return g&&h?(clearTimeout(s.current),i.current=!1):(!h||i.current)&&c(),!i.current&&h}});function aH(e,t,n,r,i,s,c){const d=l.useRef(0),f=l.useRef(null),p=l.useRef(null),g=l.useRef(!1),h=MO(t,n,r,i);function y(M,x){if(Ht.cancel(f.current),h(!1,x))return;const R=M;if(!R._virtualHandled)R._virtualHandled=!0;else return;d.current+=x,p.current=x,JE||R.preventDefault(),f.current=Ht(()=>{const T=g.current?10:1;c(d.current*T,!1),d.current=0})}function C(M,x){c(x,!0),JE||M.preventDefault()}const b=l.useRef(null),$=l.useRef(null);function S(M){if(!e)return;Ht.cancel($.current),$.current=Ht(()=>{b.current=null},2);const{deltaX:x,deltaY:R,shiftKey:T}=M;let N=x,O=R;(b.current==="sx"||!b.current&&T&&R&&!x)&&(N=R,O=0,b.current="sx");const P=Math.abs(N),D=Math.abs(O);b.current===null&&(b.current=s&&P>D?"x":"y"),b.current==="y"?y(M,O):C(M,N)}function w(M){e&&(g.current=M.detail===p.current)}return[S,w]}function iH(e,t,n,r){const[i,s]=l.useMemo(()=>[new Map,[]],[e,n.id,r]);return(d,f=d)=>{let p=i.get(d),g=i.get(f);if(p===void 0||g===void 0){const h=e.length;for(let y=s.length;y<h;y+=1){const C=e[y],b=t(C);i.set(b,y);const $=n.get(b)??r;if(s[y]=(s[y-1]||0)+$,b===d&&(p=y),b===f&&(g=y),p!==void 0&&g!==void 0)break}}return{top:s[p-1]||0,bottom:s[g]}}}class lH{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function e2(e){const t=parseFloat(e);return isNaN(t)?0:t}function sH(e,t,n){const[r,i]=l.useState(0),s=l.useRef(new Map),c=l.useRef(new lH),d=l.useRef(0);function f(){d.current+=1}function p(h=!1){f();const y=()=>{let C=!1;s.current.forEach((b,$)=>{if(b&&b.offsetParent){const{offsetHeight:S}=b,{marginTop:w,marginBottom:M}=getComputedStyle(b),x=e2(w),R=e2(M),T=S+x+R;c.current.get($)!==T&&(c.current.set($,T),C=!0)}}),C&&i(b=>b+1)};if(h)y();else{d.current+=1;const C=d.current;Promise.resolve().then(()=>{C===d.current&&y()})}}function g(h,y){const C=e(h);s.current.get(C),y?(s.current.set(C,y),p()):s.current.delete(C)}return l.useEffect(()=>f,[]),[g,p,c.current,r]}const t2=14/15;function cH(e,t,n){const r=l.useRef(!1),i=l.useRef(0),s=l.useRef(0),c=l.useRef(null),d=l.useRef(null);let f;const p=y=>{if(r.current){const C=Math.ceil(y.touches[0].pageX),b=Math.ceil(y.touches[0].pageY);let $=i.current-C,S=s.current-b;const w=Math.abs($)>Math.abs(S);w?i.current=C:s.current=b;const M=n(w,w?$:S,!1,y);M&&y.preventDefault(),clearInterval(d.current),M&&(d.current=setInterval(()=>{w?$*=t2:S*=t2;const x=Math.floor(w?$:S);(!n(w,x,!0)||Math.abs(x)<=.1)&&clearInterval(d.current)},16))}},g=()=>{r.current=!1,f()},h=y=>{f(),y.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(y.touches[0].pageX),s.current=Math.ceil(y.touches[0].pageY),c.current=y.target,c.current.addEventListener("touchmove",p,{passive:!1}),c.current.addEventListener("touchend",g,{passive:!0}))};f=()=>{c.current&&(c.current.removeEventListener("touchmove",p),c.current.removeEventListener("touchend",g))},Nt(()=>(e&&t.current.addEventListener("touchstart",h,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",h),f(),clearInterval(d.current)}),[e])}function n2(e){return Math.floor(e**.5)}function Ev(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function uH(e,t,n){l.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,s,c;const d=()=>{Ht.cancel(s)},f=()=>{d(),s=Ht(()=>{n(c),f()})},p=()=>{i=!1,d()},g=y=>{if(y.target.draggable||y.button!==0)return;const C=y;C._virtualHandled||(C._virtualHandled=!0,i=!0)},h=y=>{if(i){const C=Ev(y,!1),{top:b,bottom:$}=r.getBoundingClientRect();if(C<=b){const S=b-C;c=-n2(S),f()}else if(C>=$){const S=C-$;c=n2(S),f()}else d()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",p),r.ownerDocument.addEventListener("mousemove",h),r.ownerDocument.addEventListener("dragend",p),()=>{r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",p),r.ownerDocument.removeEventListener("mousemove",h),r.ownerDocument.removeEventListener("dragend",p),d()}}},[e])}const dH=10;function fH(e,t,n,r,i,s,c,d){const f=l.useRef(),[p,g]=l.useState(null);return Nt(()=>{if(p&&p.times<dH){if(!e.current){g(x=>({...x}));return}s();const{targetAlign:h,originAlign:y,index:C,offset:b}=p,$=e.current.clientHeight;let S=!1,w=h,M=null;if($){const x=h||y;let R=0,T=0,N=0;const O=Math.min(t.length-1,C);for(let D=0;D<=O;D+=1){const W=i(t[D]);T=R;const k=n.get(W);N=T+(k===void 0?r:k),R=N}let P=x==="top"?b:$-b;for(let D=O;D>=0;D-=1){const W=i(t[D]),k=n.get(W);if(k===void 0){S=!0;break}if(P-=k,P<=0)break}switch(x){case"top":M=T-b;break;case"bottom":M=N-$+b;break;default:{const{scrollTop:D}=e.current,W=D+$;T<D?w="top":N>W&&(w="bottom")}}M!==null&&c(M),M!==p.lastTop&&(S=!0)}S&&g({...p,times:p.times+1,targetAlign:w,lastTop:M})}},[p,e.current]),h=>{if(h==null){d();return}if(Ht.cancel(f.current),typeof h=="number")c(h);else if(h&&typeof h=="object"){let y;const{align:C}=h;"index"in h?{index:y}=h:y=t.findIndex($=>i($)===h.key);const{offset:b=0}=h;g({times:0,index:y,offset:b,originAlign:C})}}}const r2=l.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:s,onStartMove:c,onStopMove:d,onScroll:f,horizontal:p,spinSize:g,containerSize:h,style:y,thumbStyle:C,showScrollBar:b}=e,[$,S]=l.useState(!1),[w,M]=l.useState(null),[x,R]=l.useState(null),T=!r,N=l.useRef(),O=l.useRef(),[P,D]=l.useState(b),W=l.useRef(),k=()=>{b===!0||b===!1||(clearTimeout(W.current),D(!0),W.current=setTimeout(()=>{D(!1)},3e3))},U=s-h||0,G=h-g||0,L=l.useMemo(()=>i===0||U===0?0:i/U*G,[i,U,G]),H=q=>{q.stopPropagation(),q.preventDefault()},_=l.useRef({top:L,dragging:$,pageY:w,startTop:x});_.current={top:L,dragging:$,pageY:w,startTop:x};const B=q=>{S(!0),M(Ev(q,p)),R(_.current.top),c(),q.stopPropagation(),q.preventDefault()};l.useEffect(()=>{const q=Z=>{Z.preventDefault()},X=N.current,K=O.current;return X.addEventListener("touchstart",q,{passive:!1}),K.addEventListener("touchstart",B,{passive:!1}),()=>{X.removeEventListener("touchstart",q),K.removeEventListener("touchstart",B)}},[]);const I=l.useRef();I.current=U;const z=l.useRef();z.current=G,l.useEffect(()=>{if($){let q;const X=Z=>{const{dragging:ee,pageY:ie,startTop:ne}=_.current;Ht.cancel(q);const oe=N.current.getBoundingClientRect(),de=h/(p?oe.width:oe.height);if(ee){const le=(Ev(Z,p)-ie)*de;let fe=ne;!T&&p?fe-=le:fe+=le;const ge=I.current,re=z.current,ue=re?fe/re:0;let he=Math.ceil(ue*ge);he=Math.max(he,0),he=Math.min(he,ge),q=Ht(()=>{f(he,p)})}},K=()=>{S(!1),d()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",K,{passive:!0}),window.addEventListener("touchend",K,{passive:!0}),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),Ht.cancel(q)}}},[$]),l.useEffect(()=>(k(),()=>{clearTimeout(W.current)}),[i]),l.useImperativeHandle(t,()=>({delayHidden:k}));const V=`${n}-scrollbar`,A={position:"absolute",visibility:P?null:"hidden"},j={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(A,{height:8,left:0,right:0,bottom:0}),Object.assign(j,{height:"100%",width:g,[T?"left":"right"]:L})):(Object.assign(A,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(j,{width:"100%",height:g,top:L})),l.createElement("div",{ref:N,className:Q(V,{[`${V}-horizontal`]:p,[`${V}-vertical`]:!p,[`${V}-visible`]:P}),style:{...A,...y},onMouseDown:H,onMouseMove:k},l.createElement("div",{ref:O,className:Q(`${V}-thumb`,{[`${V}-thumb-moving`]:$}),style:{...j,...C},onMouseDown:B}))}),mH=20;function o2(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,mH),Math.floor(n)}const pH=[],gH={overflowY:"auto",overflowAnchor:"none"};function hH(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:i,itemHeight:s,fullHeight:c=!0,style:d,data:f,children:p,itemKey:g,virtual:h,direction:y,scrollWidth:C,component:b="div",onScroll:$,onVirtualScroll:S,onVisibleChange:w,innerProps:M,extraRender:x,styles:R,showScrollBar:T="optional",...N}=e,O=l.useCallback(He=>typeof g=="function"?g(He):He?.[g],[g]),[P,D,W,k]=sH(O),U=!!(h!==!1&&i&&s),G=l.useMemo(()=>Object.values(W.maps).reduce((He,Ae)=>He+Ae,0),[W.id,W.maps]),L=U&&f&&(Math.max(s*f.length,G)>i||!!C),H=y==="rtl",_=Q(n,{[`${n}-rtl`]:H},r),B=f||pH,I=l.useRef(),z=l.useRef(),V=l.useRef(),[A,j]=l.useState(0),[q,X]=l.useState(0),[K,Z]=l.useState(!1),ee=()=>{Z(!0)},ie=()=>{Z(!1)},ne={getKey:O};function oe(He){j(Ae=>{let We;typeof He=="function"?We=He(Ae):We=He;const Me=Ve(We);return I.current.scrollTop=Me,Me})}const de=l.useRef({start:0,end:B.length}),le=l.useRef(),[fe]=oH(B,O);le.current=fe;const{scrollHeight:ge,start:re,end:ue,offset:he}=l.useMemo(()=>{if(!U)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!L)return{scrollHeight:z.current?.offsetHeight||0,start:0,end:B.length-1,offset:void 0};let He=0,Ae,We,Me;const Ye=B.length;for(let Je=0;Je<Ye;Je+=1){const it=B[Je],ft=O(it),Ft=W.get(ft),Dt=He+(Ft===void 0?s:Ft);Dt>=A&&Ae===void 0&&(Ae=Je,We=He),Dt>A+i&&Me===void 0&&(Me=Je),He=Dt}return Ae===void 0&&(Ae=0,We=0,Me=Math.ceil(i/s)),Me===void 0&&(Me=B.length-1),Me=Math.min(Me+1,B.length-1),{scrollHeight:He,start:Ae,end:Me,offset:We}},[L,U,A,B,k,i]);de.current.start=re,de.current.end=ue,l.useLayoutEffect(()=>{const He=W.getRecord();if(He.size===1){const Ae=Array.from(He.keys())[0],We=He.get(Ae),Me=B[re];if(Me&&We===void 0&&O(Me)===Ae){const it=W.get(Ae)-s;oe(ft=>ft+it)}}W.resetRecord()},[ge]);const[pe,Se]=l.useState({width:0,height:i}),Ie=He=>{Se({width:He.offsetWidth,height:He.offsetHeight})},Re=l.useRef(),we=l.useRef(),se=l.useMemo(()=>o2(pe.width,C),[pe.width,C]),be=l.useMemo(()=>o2(pe.height,ge),[pe.height,ge]),Ee=ge-i,Ne=l.useRef(Ee);Ne.current=Ee;function Ve(He){let Ae=He;return Number.isNaN(Ne.current)||(Ae=Math.min(Ae,Ne.current)),Ae=Math.max(Ae,0),Ae}const Ge=A<=0,et=A>=Ee,Te=q<=0,_e=q>=C,Le=MO(Ge,et,Te,_e),Qe=()=>({x:H?-q:q,y:A}),De=l.useRef(Qe()),ve=ut(He=>{if(S){const Ae={...Qe(),...He};(De.current.x!==Ae.x||De.current.y!==Ae.y)&&(S(Ae),De.current=Ae)}});function Pe(He,Ae){const We=He;Ae?($s.flushSync(()=>{X(We)}),ve()):oe(We)}function Ze(He){const{scrollTop:Ae}=He.currentTarget;Ae!==A&&oe(Ae),$?.(He),ve()}const Ue=He=>{let Ae=He;const We=C?C-pe.width:0;return Ae=Math.max(Ae,0),Ae=Math.min(Ae,We),Ae},Fe=ut((He,Ae)=>{Ae?($s.flushSync(()=>{X(We=>{const Me=We+(H?-He:He);return Ue(Me)})}),ve()):oe(We=>We+He)}),[ze,Xe]=aH(U,Ge,et,Te,_e,!!C,Fe);cH(U,I,(He,Ae,We,Me)=>{const Ye=Me;return Le(He,Ae,We)?!1:!Ye||!Ye._virtualHandled?(Ye&&(Ye._virtualHandled=!0),ze({preventDefault(){},deltaX:He?Ae:0,deltaY:He?0:Ae}),!0):!1}),uH(L,I,He=>{oe(Ae=>Ae+He)}),Nt(()=>{function He(We){const Me=Ge&&We.detail<0,Ye=et&&We.detail>0;U&&!Me&&!Ye&&We.preventDefault()}const Ae=I.current;return Ae.addEventListener("wheel",ze,{passive:!1}),Ae.addEventListener("DOMMouseScroll",Xe,{passive:!0}),Ae.addEventListener("MozMousePixelScroll",He,{passive:!1}),()=>{Ae.removeEventListener("wheel",ze),Ae.removeEventListener("DOMMouseScroll",Xe),Ae.removeEventListener("MozMousePixelScroll",He)}},[U,Ge,et]),Nt(()=>{if(C){const He=Ue(q);X(He),ve({x:He})}},[pe.width,C]);const rt=()=>{Re.current?.delayHidden(),we.current?.delayHidden()},ot=fH(I,B,W,s,O,()=>D(!0),oe,rt);l.useImperativeHandle(t,()=>({nativeElement:V.current,getScrollInfo:Qe,scrollTo:He=>{function Ae(We){return We&&typeof We=="object"&&("left"in We||"top"in We)}Ae(He)?(He.left!==void 0&&X(Ue(He.left)),ot(He.top)):ot(He)}})),Nt(()=>{if(w){const He=B.slice(re,ue+1);w(He,B)}},[re,ue,B]);const lt=iH(B,O,W,s),St=x?.({start:re,end:ue,virtual:L,offsetX:q,offsetY:he,rtl:H,getSize:lt}),Ct=nH(B,re,ue,C,q,P,p,ne);let qe=null;i&&(qe={[c?"height":"maxHeight"]:i,...gH},U&&(qe.overflowY="hidden",C&&(qe.overflowX="hidden"),K&&(qe.pointerEvents="none")));const at={};return H&&(at.dir="rtl"),l.createElement("div",Xn({ref:V,style:{...d,position:"relative"},className:_},at,N),l.createElement(Vr,{onResize:Ie},l.createElement(b,{className:`${n}-holder`,style:qe,ref:I,onScroll:Ze,onMouseEnter:rt},l.createElement(EO,{prefixCls:n,height:ge,offsetX:q,offsetY:he,scrollWidth:C,onInnerResize:D,ref:z,innerProps:M,rtl:H,extra:St},Ct))),L&&ge>i&&l.createElement(r2,{ref:Re,prefixCls:n,scrollOffset:A,scrollRange:ge,rtl:H,onScroll:Pe,onStartMove:ee,onStopMove:ie,spinSize:be,containerSize:pe.height,style:R?.verticalScrollBar,thumbStyle:R?.verticalScrollBarThumb,showScrollBar:T}),L&&C>pe.width&&l.createElement(r2,{ref:we,prefixCls:n,scrollOffset:q,scrollRange:C,rtl:H,onScroll:Pe,onStartMove:ee,onStopMove:ie,spinSize:se,containerSize:pe.width,horizontal:!0,style:R?.horizontalScrollBar,thumbStyle:R?.horizontalScrollBarThumb,showScrollBar:T}))}const RO=l.forwardRef(hH);RO.displayName="List";function yH(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function a2(e){return typeof e=="string"||typeof e=="number"}const bH=(e,t)=>{const{prefixCls:n,id:r,open:i,multiple:s,mode:c,searchValue:d,toggleOpen:f,notFoundContent:p,onPopupScroll:g,showScrollBar:h}=ll(),{maxCount:y,flattenOptions:C,onActiveValue:b,defaultActiveFirstOption:$,onSelect:S,menuItemSelectedIcon:w,rawValues:M,fieldNames:x,virtual:R,direction:T,listHeight:N,listItemHeight:O,optionRender:P,classNames:D,styles:W}=l.useContext(FS),k=`${n}-item`,U=rd(()=>C,[i,C],(ne,oe)=>oe[0]&&ne[1]!==oe[1]),G=l.useRef(null),L=l.useMemo(()=>s&&bv(y)&&M?.size>=y,[s,y,M?.size]),H=ne=>{ne.preventDefault()},_=ne=>{G.current?.scrollTo(typeof ne=="number"?{index:ne}:ne)},B=l.useCallback(ne=>c==="combobox"?!1:M.has(ne),[c,[...M].toString(),M.size]),I=(ne,oe=1)=>{const de=U.length;for(let le=0;le<de;le+=1){const fe=(ne+le*oe+de)%de,{group:ge,data:re}=U[fe]||{};if(!ge&&!re?.disabled&&(B(re.value)||!L))return fe}return-1},[z,V]=l.useState(()=>I(0)),A=(ne,oe=!1)=>{V(ne);const de={source:oe?"keyboard":"mouse"},le=U[ne];if(!le){b(null,-1,de);return}b(le.value,ne,de)};l.useEffect(()=>{A($!==!1?I(0):-1)},[U.length,d]);const j=l.useCallback(ne=>c==="combobox"?String(ne).toLowerCase()===d.toLowerCase():M.has(ne),[c,d,[...M].toString(),M.size]);l.useEffect(()=>{let ne;if(!s&&i&&M.size===1){const oe=Array.from(M)[0],de=U.findIndex(({data:le})=>d?String(le.value).startsWith(d):le.value===oe);de!==-1&&(A(de),ne=setTimeout(()=>{_(de)}))}return i&&G.current?.scrollTo(void 0),()=>clearTimeout(ne)},[i,d]);const q=ne=>{ne!==void 0&&S(ne,{selected:!M.has(ne)}),s||f(!1)};if(l.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:oe,ctrlKey:de}=ne;switch(oe){case nt.N:case nt.P:case nt.UP:case nt.DOWN:{let le=0;if(oe===nt.UP?le=-1:oe===nt.DOWN?le=1:yH()&&de&&(oe===nt.N?le=1:oe===nt.P&&(le=-1)),le!==0){const fe=I(z+le,le);_(fe),A(fe,!0)}break}case nt.TAB:case nt.ENTER:{const le=U[z];if(!le||le.data.disabled)return q(void 0);!L||M.has(le.value)?q(le.value):q(void 0),i&&ne.preventDefault();break}case nt.ESC:f(!1),i&&ne.stopPropagation()}},onKeyUp:()=>{},scrollTo:ne=>{_(ne)}})),U.length===0)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${k}-empty`,onMouseDown:H},p);const X=Object.keys(x).map(ne=>x[ne]),K=ne=>ne.label;function Z(ne,oe){const{group:de}=ne;return{role:de?"presentation":"option",id:`${r}_list_${oe}`}}const ee=ne=>{const oe=U[ne];if(!oe)return null;const de=oe.data||{},{value:le}=de,{group:fe}=oe,ge=jn(de,!0),re=K(oe);return oe?l.createElement("div",lu({"aria-label":typeof re=="string"&&!fe?re:null},ge,{key:ne},Z(oe,ne),{"aria-selected":j(le)}),le):null},ie={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,R&&l.createElement("div",lu({},ie,{style:{height:0,width:0,overflow:"hidden"}}),ee(z-1),ee(z),ee(z+1)),l.createElement(RO,{itemKey:"key",ref:G,data:U,height:N,itemHeight:O,fullHeight:!1,onMouseDown:H,onScroll:g,virtual:R,direction:T,innerProps:R?null:ie,showScrollBar:h,className:D?.popup?.list,style:W?.popup?.list},(ne,oe)=>{const{group:de,groupOption:le,data:fe,label:ge,value:re}=ne,{key:ue}=fe;if(de){const Le=fe.title??(a2(ge)?ge.toString():void 0);return l.createElement("div",{className:Q(k,`${k}-group`,fe.className),title:Le},ge!==void 0?ge:ue)}const{disabled:he,title:pe,children:Se,style:Ie,className:Re,...we}=fe,se=nn(we,X),be=B(re),Ee=he||!be&&L,Ne=`${k}-option`,Ve=Q(k,Ne,Re,D?.popup?.listItem,{[`${Ne}-grouped`]:le,[`${Ne}-active`]:z===oe&&!Ee,[`${Ne}-disabled`]:Ee,[`${Ne}-selected`]:be}),Ge=K(ne),et=!w||typeof w=="function"||be,Te=typeof Ge=="number"?Ge:Ge||re;let _e=a2(Te)?Te.toString():void 0;return pe!==void 0&&(_e=pe),l.createElement("div",lu({},jn(se),R?{}:Z(ne,oe),{"aria-selected":R?void 0:j(re),className:Ve,title:_e,onMouseMove:()=>{z===oe||Ee||A(oe)},onClick:()=>{Ee||q(re)},style:{...W?.popup?.listItem,...Ie}}),l.createElement("div",{className:`${Ne}-content`},typeof P=="function"?P(ne,{index:oe}):Te),l.isValidElement(w)||be,et&&l.createElement(wO,{className:`${k}-option-state`,customizeIcon:w,customizeIconProps:{value:re,disabled:Ee,isSelected:be}},be?"✓":null))}))},vH=l.forwardRef(bH),SH=((e,t)=>{const n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(()=>{const{values:s,options:c}=n.current,d=e.map(g=>g.label===void 0?{...g,label:s.get(g.value)?.label}:g),f=new Map,p=new Map;return d.forEach(g=>{f.set(g.value,g),p.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=f,n.current.options=p,d},[e,t]),i=l.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,i]});function jy(e,t){return CO(e).join("").toUpperCase().includes(t)}const CH=((e,t,n,r,i)=>l.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:c,value:d}=t,f=[],p=typeof r=="function",g=n.toUpperCase(),h=p?r:(C,b)=>i&&i.length?i.some($=>jy(b[$],g)):b[s]?jy(b[c!=="children"?c:"label"],g):jy(b[d],g),y=p?C=>vv(C):C=>C;return e.forEach(C=>{if(C[s]){if(h(n,y(C)))f.push(C);else{const $=C[s].filter(S=>h(n,y(S)));$.length&&f.push({...C,[s]:$})}return}h(n,y(C))&&f.push(C)}),f},[e,r,i,n,t]));function $H(e){const{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r!==void 0?r:t,children:n,...i}}function TO(e,t=!1){return dr(e).map((n,r)=>{if(!l.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:i},key:s,props:{children:c,...d}}=n;return t||!i?$H(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...d,options:TO(c)}}).filter(n=>n)}const xH=(e,t,n,r,i)=>l.useMemo(()=>{let s=e;!e&&(s=TO(t));const d=new Map,f=new Map,p=(h,y,C)=>{C&&typeof C=="string"&&h.set(y[C],y)},g=(h,y=!1)=>{for(let C=0;C<h.length;C+=1){const b=h[C];!b[n.options]||y?(d.set(b[n.value],b),p(f,b,n.label),r.forEach($=>{p(f,b,$)}),p(f,b,i)):g(b[n.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:f}},[e,t,n,r,i]);function i2(e){const t=l.useRef();return t.current=e,l.useCallback((...r)=>t.current(...r),[])}function wH(e,t,n){const{filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f}=t;return l.useMemo(()=>{const p=typeof e=="object",g={filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f,...p?e:{}};return[p||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,g]},[n,e,r,i,s,c,d,f])}function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mv.apply(this,arguments)}const EH=["inputValue"];function MH(e){return!e||typeof e!="object"}const RH=l.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:i="rc-select",backfill:s,fieldNames:c,showSearch:d,searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C,onSelect:b,onDeselect:$,onActive:S,popupMatchSelectWidth:w=!0,optionLabelProp:M,options:x,optionRender:R,children:T,defaultActiveFirstOption:N,menuItemSelectedIcon:O,virtual:P,direction:D,listHeight:W=200,listItemHeight:k=20,labelRender:U,value:G,defaultValue:L,labelInValue:H,onChange:_,maxCount:B,classNames:I,styles:z,...V}=e,A={searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C},[j,q]=wH(d,A,r),{filterOption:X,searchValue:K,optionFilterProp:Z,filterSort:ee,onSearch:ie,autoClearSearchValue:ne=!0}=q,oe=l.useMemo(()=>Z?Array.isArray(Z)?Z:[Z]:[],[Z]),de=Ko(n),le=wv(r),fe=!!(!x&&T),ge=l.useMemo(()=>X===void 0&&r==="combobox"?!1:X,[X,r]),re=l.useMemo(()=>yO(c,fe),[JSON.stringify(c),fe]),[ue,he]=Yt("",K),pe=ue||"",Se=xH(x,T,re,oe,M),{valueOptions:Ie,labelOptions:Re,options:we}=Se,se=l.useCallback(Me=>CO(Me).map(Je=>{let it,ft,Ft,Dt;MH(Je)?it=Je:(ft=Je.label,it=Je.value);const $t=Ie.get(it);return $t&&(ft===void 0&&(ft=$t?.[M||re.label]),Ft=$t?.disabled,Dt=$t?.title),{label:ft,value:it,key:it,disabled:Ft,title:Dt}}),[re,M,Ie]),[be,Ee]=Yt(L,G),Ne=l.useMemo(()=>{const Ye=se(le&&be===null?[]:be);return r==="combobox"&&H9(Ye[0]?.value)?[]:Ye},[be,se,r,le]),[Ve,Ge]=SH(Ne,Ie),et=l.useMemo(()=>{if(!r&&Ve.length===1){const Me=Ve[0];if(Me.value===null&&(Me.label===null||Me.label===void 0))return[]}return Ve.map(Me=>({...Me,label:(typeof U=="function"?U(Me):Me.label)??Me.value}))},[r,Ve,U]),Te=l.useMemo(()=>new Set(Ve.map(Me=>Me.value)),[Ve]);l.useEffect(()=>{if(r==="combobox"){const Me=Ve[0]?.value;he(_9(Me)?String(Me):"")}},[Ve]);const _e=i2((Me,Ye)=>{const Je=Ye??Me;return{[re.value]:Me,[re.label]:Je}}),Le=l.useMemo(()=>{if(r!=="tags")return we;const Me=[...we],Ye=Je=>Ie.has(Je);return[...Ve].sort((Je,it)=>Je.value<it.value?-1:1).forEach(Je=>{const it=Je.value;Ye(it)||Me.push(_e(it,Je.label))}),Me},[_e,we,Ie,Ve,r]),Qe=CH(Le,re,pe,ge,oe),De=l.useMemo(()=>{const Me=Ye=>oe.length?oe.some(Je=>Ye?.[Je]===pe):Ye?.value===pe;return r!=="tags"||!pe||Qe.some(Ye=>Me(Ye))||Qe.some(Ye=>Ye[re.value]===pe)?Qe:[_e(pe),...Qe]},[_e,oe,r,Qe,pe,re]),ve=Me=>[...Me].sort((Je,it)=>ee(Je,it,{searchValue:pe})).map(Je=>Array.isArray(Je.options)?{...Je,options:Je.options.length>0?ve(Je.options):Je.options}:Je),Pe=l.useMemo(()=>ee?ve(De):De,[De,ee,pe]),Ze=l.useMemo(()=>P9(Pe,{fieldNames:re,childrenAsData:fe}),[Pe,re,fe]),Ue=Me=>{const Ye=se(Me);if(Ee(Ye),_&&(Ye.length!==Ve.length||Ye.some((Je,it)=>Ve[it]?.value!==Je?.value))){const Je=H?Ye.map(({label:ft,value:Ft})=>({label:ft,value:Ft})):Ye.map(ft=>ft.value),it=Ye.map(ft=>vv(Ge(ft.value)));_(le?Je:Je[0],le?it:it[0])}},[Fe,ze]=l.useState(null),[Xe,rt]=l.useState(0),ot=N!==void 0?N:r!=="combobox",lt=l.useRef(),St=l.useCallback((Me,Ye,{source:Je="keyboard"}={})=>{rt(Ye),s&&r==="combobox"&&Me!==null&&Je==="keyboard"&&ze(String(Me));const it=Promise.resolve().then(()=>{lt.current===it&&S?.(Me)});lt.current=it},[s,r,S]),Ct=(Me,Ye,Je)=>{const it=()=>{const ft=Ge(Me);return[H?{label:ft?.[re.label],value:Me}:Me,vv(ft)]};if(Ye&&b){const[ft,Ft]=it();b(ft,Ft)}else if(!Ye&&$&&Je!=="clear"){const[ft,Ft]=it();$(ft,Ft)}},qe=i2((Me,Ye)=>{let Je;const it=le?Ye.selected:!0;it?Je=le?[...Ve,Me]:[Me]:Je=Ve.filter(ft=>ft.value!==Me),Ue(Je),Ct(Me,it),r==="combobox"?ze(""):(!wv||ne)&&(he(""),ze(""))}),at=(Me,Ye)=>{Ue(Me);const{type:Je,values:it}=Ye;(Je==="remove"||Je==="clear")&&it.forEach(ft=>{Ct(ft.value,!1,Je)})},He=(Me,Ye)=>{if(he(Me),ze(null),Ye.source==="submit"){const Je=(Me||"").trim();if(Je){const it=Array.from(new Set([...Te,Je]));Ue(it),Ct(Je,!0),he("")}return}Ye.source!=="blur"&&(r==="combobox"&&Ue(Me),ie?.(Me))},Ae=Me=>{let Ye=Me;r!=="tags"&&(Ye=Me.map(it=>Re.get(it)?.value).filter(it=>it!==void 0));const Je=Array.from(new Set([...Te,...Ye]));Ue(Je),Je.forEach(it=>{Ct(it,!0)})},We=l.useMemo(()=>({...Se,flattenOptions:Ze,onActiveValue:St,defaultActiveFirstOption:ot,onSelect:qe,menuItemSelectedIcon:O,rawValues:Te,fieldNames:re,virtual:P!==!1&&w!==!1,direction:D,listHeight:W,listItemHeight:k,childrenAsData:fe,maxCount:B,optionRender:R,classNames:I,styles:z}),[B,Se,Ze,St,ot,qe,O,Te,re,P,w,D,W,k,fe,R,I,z]);return l.createElement(FS.Provider,{value:We},l.createElement(eH,Mv({},V,{id:de,prefixCls:i,ref:t,omitDomProps:EH,mode:r,classNames:I,styles:z,displayValues:et,onDisplayValuesChange:at,maxCount:B,direction:D,showSearch:j,searchValue:pe,onSearch:He,autoClearSearchValue:ne,onSearchSplit:Ae,popupMatchSelectWidth:w,OptionList:vH,emptyOptions:!Ze.length,activeValue:Fe,activeDescendantId:`${de}_list_${Xe}`})))}),qS=RH;qS.Option=WS;qS.OptGroup=kS;const Ji=(e,t,n)=>Q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),Ds=(e,t)=>t||e,TH=()=>{const[,e]=Wr(),[t]=oo("Empty"),r=new en(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},OH=()=>{const[,e]=Wr(),[t]=oo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:s}=e,{borderColor:c,shadowColor:d,contentColor:f}=l.useMemo(()=>({borderColor:new en(n).onBackground(s).toHexString(),shadowColor:new en(r).onBackground(s).toHexString(),contentColor:new en(i).onBackground(s).toHexString()}),[n,r,i,s]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:c},l.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"}),l.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:f}))))},NH=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:s,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:s,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.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},IH=Pt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Ot(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return NH(i)}),OO=l.createElement(TH,null),NO=l.createElement(OH,null),ki=e=>{const{className:t,rootClassName:n,prefixCls:r,image:i,description:s,children:c,imageStyle:d,style:f,classNames:p,styles:g,...h}=e,{getPrefixCls:y,direction:C,className:b,style:$,classNames:S,styles:w,image:M}=It("empty"),x=y("empty",r),[R,T]=IH(x),[N,O]=Lt([S,p],[w,g],{props:e}),[P]=oo("Empty"),D=typeof s<"u"?s:P?.description,W=typeof D=="string"?D:"empty",k=i??M??OO;let U=null;return typeof k=="string"?U=l.createElement("img",{draggable:!1,alt:W,src:k}):U=k,l.createElement("div",{className:Q(R,T,x,b,{[`${x}-normal`]:k===NO,[`${x}-rtl`]:C==="rtl"},t,n,N.root),style:{...O.root,...$,...f},...h},l.createElement("div",{className:Q(`${x}-image`,N.image),style:{...d,...O.image}},U),D&&l.createElement("div",{className:Q(`${x}-description`,N.description),style:O.description},D),c&&l.createElement("div",{className:Q(`${x}-footer`,N.footer),style:O.footer},c))};ki.PRESENTED_IMAGE_DEFAULT=OO;ki.PRESENTED_IMAGE_SIMPLE=NO;const IO=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ae.createElement(ki,null)}},js=(e,t,n)=>{const{variant:r,[e]:i}=l.useContext(dt),s=l.useContext(z_),c=i?.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=s??c??r??"outlined";const f=l8.includes(d);return[d,f]},PH=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function zH(e,t){return e||PH(t)}const l2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},AH=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Zt(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,[`
|
|
179
|
+
`].includes(Ke)),[I]),Pe=(Ke,Et,mt)=>{if(se&&bv(w)&&y.length>=w)return;let Rt=!0,Ut=Ke;U?.(null);const an=z9(Ke,I,bv(w)?w-y.length:void 0),kt=mt?null:an;return x!=="combobox"&&kt&&(Ut="",B?.(kt),De(!1),Rt=!1),_&&Te!==Ut&&_(Ut,{source:Et?"typing":"effect"}),Ke&&Et&&Rt&&De(!0),Rt},Ze=Ke=>{!Ke||!Ke.trim()||_(Ke,{source:"submit"})};l.useEffect(()=>{!Qe&&!se&&x!=="combobox"&&Pe("",!1,!1)},[Qe]),l.useEffect(()=>{R&&(De(!1),Ge(!1))},[R,Qe]);const[Ue,Fe]=R9(),ze=l.useRef(!1),Xe=Ke=>{const Et=Ue(),{key:mt}=Ke,Rt=mt==="Enter";if(Rt&&(x!=="combobox"&&Ke.preventDefault(),Qe||De(!0)),Fe(!!Te),mt==="Backspace"&&!Et&&se&&!Te&&y.length){const Ut=[...y];let an=null;for(let kt=Ut.length-1;kt>=0;kt-=1){const wn=Ut[kt];if(!wn.disabled){Ut.splice(kt,1),an=wn;break}}an&&C(Ut,{type:"remove",values:[an]})}Qe&&(!Rt||!ze.current)&&(Rt&&(ze.current=!0),Ne.current?.onKeyDown(Ke)),Se?.(Ke)},rt=(Ke,...Et)=>{Qe&&Ne.current?.onKeyUp(Ke,...Et),Ke.key==="Enter"&&(ze.current=!1),pe?.(Ke,...Et)},ot=ut(Ke=>{const Et=y.filter(mt=>mt!==Ke);C(Et,{type:"remove",values:[Ke]})}),lt=()=>{ze.current=!1},St=()=>[mu(be.current),Ee.current?.getPopupElement()];T9(St,Qe,De,!!et.root);const Ct=l.useRef(!1),qe=Ke=>{Ge(!0),R||(re.includes("focus")&&De(!0),ue?.(Ke))},at=()=>{Qe&&!Ct.current&&De(!1,{cancelFun:()=>hO(St(),document.activeElement)})},He=Ke=>{Ge(!1),Te&&(x==="tags"?_(Te,{source:"submit"}):x==="multiple"&&_("",{source:"blur"})),at(),R||he?.(Ke)},Ae=(Ke,...Et)=>{const{target:mt}=Ke;Ee.current?.getPopupElement()?.contains(mt)&&De&&De(!0),Ie?.(Ke,...Et),Ct.current=!0,VS(()=>{Ct.current=!1})},[,We]=l.useState({});function Me(){We({})}let Ye;et.root&&(Ye=Ke=>{De(Ke)});const Je=l.useMemo(()=>({...e,notFoundContent:$,open:Qe,triggerOpen:Qe,id:n,showSearch:d,multiple:se,toggleOpen:De,showScrollBar:p,styles:s,classNames:c}),[e,$,De,n,d,se,Qe,p,s,c]),it=l.useMemo(()=>{const Ke=A??j;return typeof Ke=="function"?Ke({searchValue:Te,open:Qe,focused:Ve,showSearch:d,loading:T}):Ke},[A,j,Te,Qe,Ve,d,T]),ft=()=>{S?.(),be.current?.focus(),C([],{type:"clear",values:y}),Pe("",!1,!1)},{allowClear:Ft,clearIcon:Dt}=M9(r,y,z,q,R,Te,x),$t=l.createElement(X,{ref:Ne}),tn=Q(r,i,{[`${r}-focused`]:Ve,[`${r}-multiple`]:se,[`${r}-single`]:!se,[`${r}-allow-clear`]:Ft,[`${r}-show-arrow`]:it!=null,[`${r}-disabled`]:R,[`${r}-loading`]:T,[`${r}-open`]:Qe,[`${r}-customize-input`]:_e,[`${r}-show-search`]:d});let wt=l.createElement(Z9,xv({},we,{ref:be,prefixCls:r,className:tn,focused:Ve,prefix:V,suffix:it,clearIcon:Dt,multiple:se,mode:x,displayValues:y,placeholder:M,searchValue:Te,activeValue:k,onSearch:Pe,onSearchSubmit:Ze,onInputBlur:lt,onFocus:qe,onBlur:He,onClearMouseDown:ft,onKeyDown:Xe,onKeyUp:rt,onSelectorRemove:ot,tokenWithEnter:ve,onMouseDown:Ae,components:et}));return wt=l.createElement(I9,{ref:Ee,disabled:R,prefixCls:r,visible:Qe,popupElement:$t,animation:K,transitionName:Z,popupStyle:ee,popupClassName:ie,direction:g,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:de,placement:le,builtinPlacements:fe,getPopupContainer:ge,empty:b,onPopupVisibleChange:Ye,onPopupMouseEnter:Me,onPopupMouseDown:Ae,onPopupBlur:at},wt),l.createElement(gO.Provider,{value:Je},l.createElement(A9,{visible:Ve&&!Qe,values:y}),wt)}),kS=()=>null;kS.isSelectOptGroup=!0;const WS=()=>null;WS.isSelectOption=!0;const EO=l.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:s,innerProps:c,rtl:d,extra:f},p)=>{let g={},h={display:"flex",flexDirection:"column"};return t!==void 0&&(g={height:e,position:"relative",overflow:"hidden"},h={...h,transform:`translateY(${t}px)`,[d?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),l.createElement("div",{style:g},l.createElement(Vr,{onResize:({offsetHeight:y})=>{y&&s&&s()}},l.createElement("div",Xn({style:h,className:Q({[`${i}-holder-inner`]:i}),ref:p},c),r,f)))});EO.displayName="Filler";function t7({children:e,setRef:t}){const n=l.useCallback(r=>{t(r)},[]);return l.cloneElement(e,{ref:n})}function n7(e,t,n,r,i,s,c,{getKey:d}){return e.slice(t,n+1).map((f,p)=>{const g=t+p,h=c(f,g,{style:{width:r},offsetX:i}),y=d(f);return l.createElement(t7,{key:y,setRef:C=>s(f,C)},h)})}function r7(e,t,n){const r=e.length,i=t.length;let s,c;if(r===0&&i===0)return null;r<i?(s=e,c=t):(s=t,c=e);const d={__EMPTY_ITEM__:!0};function f(h){return h!==void 0?n(h):d}let p=null,g=Math.abs(r-i)!==1;for(let h=0;h<c.length;h+=1){const y=f(s[h]),C=f(c[h]);if(y!==C){p=h,g=g||y!==f(c[h+1]);break}}return p===null?null:{index:p,multiple:g}}function o7(e,t,n){const[r,i]=l.useState(e),[s,c]=l.useState(null);return l.useEffect(()=>{const d=r7(r||[],e||[],t);d?.index!==void 0&&c(e[d.index]),i(e)},[e]),[s]}const JE=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),MO=((e,t,n,r)=>{const i=l.useRef(!1),s=l.useRef(null);function c(){clearTimeout(s.current),i.current=!0,s.current=setTimeout(()=>{i.current=!1},50)}const d=l.useRef({top:e,bottom:t,left:n,right:r});return d.current.top=e,d.current.bottom=t,d.current.left=n,d.current.right=r,(f,p,g=!1)=>{const h=f?p<0&&d.current.left||p>0&&d.current.right:p<0&&d.current.top||p>0&&d.current.bottom;return g&&h?(clearTimeout(s.current),i.current=!1):(!h||i.current)&&c(),!i.current&&h}});function a7(e,t,n,r,i,s,c){const d=l.useRef(0),f=l.useRef(null),p=l.useRef(null),g=l.useRef(!1),h=MO(t,n,r,i);function y(M,x){if(Ht.cancel(f.current),h(!1,x))return;const R=M;if(!R._virtualHandled)R._virtualHandled=!0;else return;d.current+=x,p.current=x,JE||R.preventDefault(),f.current=Ht(()=>{const T=g.current?10:1;c(d.current*T,!1),d.current=0})}function C(M,x){c(x,!0),JE||M.preventDefault()}const b=l.useRef(null),$=l.useRef(null);function S(M){if(!e)return;Ht.cancel($.current),$.current=Ht(()=>{b.current=null},2);const{deltaX:x,deltaY:R,shiftKey:T}=M;let N=x,O=R;(b.current==="sx"||!b.current&&T&&R&&!x)&&(N=R,O=0,b.current="sx");const P=Math.abs(N),D=Math.abs(O);b.current===null&&(b.current=s&&P>D?"x":"y"),b.current==="y"?y(M,O):C(M,N)}function w(M){e&&(g.current=M.detail===p.current)}return[S,w]}function i7(e,t,n,r){const[i,s]=l.useMemo(()=>[new Map,[]],[e,n.id,r]);return(d,f=d)=>{let p=i.get(d),g=i.get(f);if(p===void 0||g===void 0){const h=e.length;for(let y=s.length;y<h;y+=1){const C=e[y],b=t(C);i.set(b,y);const $=n.get(b)??r;if(s[y]=(s[y-1]||0)+$,b===d&&(p=y),b===f&&(g=y),p!==void 0&&g!==void 0)break}}return{top:s[p-1]||0,bottom:s[g]}}}class l7{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function e2(e){const t=parseFloat(e);return isNaN(t)?0:t}function s7(e,t,n){const[r,i]=l.useState(0),s=l.useRef(new Map),c=l.useRef(new l7),d=l.useRef(0);function f(){d.current+=1}function p(h=!1){f();const y=()=>{let C=!1;s.current.forEach((b,$)=>{if(b&&b.offsetParent){const{offsetHeight:S}=b,{marginTop:w,marginBottom:M}=getComputedStyle(b),x=e2(w),R=e2(M),T=S+x+R;c.current.get($)!==T&&(c.current.set($,T),C=!0)}}),C&&i(b=>b+1)};if(h)y();else{d.current+=1;const C=d.current;Promise.resolve().then(()=>{C===d.current&&y()})}}function g(h,y){const C=e(h);s.current.get(C),y?(s.current.set(C,y),p()):s.current.delete(C)}return l.useEffect(()=>f,[]),[g,p,c.current,r]}const t2=14/15;function c7(e,t,n){const r=l.useRef(!1),i=l.useRef(0),s=l.useRef(0),c=l.useRef(null),d=l.useRef(null);let f;const p=y=>{if(r.current){const C=Math.ceil(y.touches[0].pageX),b=Math.ceil(y.touches[0].pageY);let $=i.current-C,S=s.current-b;const w=Math.abs($)>Math.abs(S);w?i.current=C:s.current=b;const M=n(w,w?$:S,!1,y);M&&y.preventDefault(),clearInterval(d.current),M&&(d.current=setInterval(()=>{w?$*=t2:S*=t2;const x=Math.floor(w?$:S);(!n(w,x,!0)||Math.abs(x)<=.1)&&clearInterval(d.current)},16))}},g=()=>{r.current=!1,f()},h=y=>{f(),y.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(y.touches[0].pageX),s.current=Math.ceil(y.touches[0].pageY),c.current=y.target,c.current.addEventListener("touchmove",p,{passive:!1}),c.current.addEventListener("touchend",g,{passive:!0}))};f=()=>{c.current&&(c.current.removeEventListener("touchmove",p),c.current.removeEventListener("touchend",g))},Nt(()=>(e&&t.current.addEventListener("touchstart",h,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",h),f(),clearInterval(d.current)}),[e])}function n2(e){return Math.floor(e**.5)}function Ev(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function u7(e,t,n){l.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,s,c;const d=()=>{Ht.cancel(s)},f=()=>{d(),s=Ht(()=>{n(c),f()})},p=()=>{i=!1,d()},g=y=>{if(y.target.draggable||y.button!==0)return;const C=y;C._virtualHandled||(C._virtualHandled=!0,i=!0)},h=y=>{if(i){const C=Ev(y,!1),{top:b,bottom:$}=r.getBoundingClientRect();if(C<=b){const S=b-C;c=-n2(S),f()}else if(C>=$){const S=C-$;c=n2(S),f()}else d()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",p),r.ownerDocument.addEventListener("mousemove",h),r.ownerDocument.addEventListener("dragend",p),()=>{r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",p),r.ownerDocument.removeEventListener("mousemove",h),r.ownerDocument.removeEventListener("dragend",p),d()}}},[e])}const d7=10;function f7(e,t,n,r,i,s,c,d){const f=l.useRef(),[p,g]=l.useState(null);return Nt(()=>{if(p&&p.times<d7){if(!e.current){g(x=>({...x}));return}s();const{targetAlign:h,originAlign:y,index:C,offset:b}=p,$=e.current.clientHeight;let S=!1,w=h,M=null;if($){const x=h||y;let R=0,T=0,N=0;const O=Math.min(t.length-1,C);for(let D=0;D<=O;D+=1){const W=i(t[D]);T=R;const k=n.get(W);N=T+(k===void 0?r:k),R=N}let P=x==="top"?b:$-b;for(let D=O;D>=0;D-=1){const W=i(t[D]),k=n.get(W);if(k===void 0){S=!0;break}if(P-=k,P<=0)break}switch(x){case"top":M=T-b;break;case"bottom":M=N-$+b;break;default:{const{scrollTop:D}=e.current,W=D+$;T<D?w="top":N>W&&(w="bottom")}}M!==null&&c(M),M!==p.lastTop&&(S=!0)}S&&g({...p,times:p.times+1,targetAlign:w,lastTop:M})}},[p,e.current]),h=>{if(h==null){d();return}if(Ht.cancel(f.current),typeof h=="number")c(h);else if(h&&typeof h=="object"){let y;const{align:C}=h;"index"in h?{index:y}=h:y=t.findIndex($=>i($)===h.key);const{offset:b=0}=h;g({times:0,index:y,offset:b,originAlign:C})}}}const r2=l.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:s,onStartMove:c,onStopMove:d,onScroll:f,horizontal:p,spinSize:g,containerSize:h,style:y,thumbStyle:C,showScrollBar:b}=e,[$,S]=l.useState(!1),[w,M]=l.useState(null),[x,R]=l.useState(null),T=!r,N=l.useRef(),O=l.useRef(),[P,D]=l.useState(b),W=l.useRef(),k=()=>{b===!0||b===!1||(clearTimeout(W.current),D(!0),W.current=setTimeout(()=>{D(!1)},3e3))},U=s-h||0,G=h-g||0,L=l.useMemo(()=>i===0||U===0?0:i/U*G,[i,U,G]),H=q=>{q.stopPropagation(),q.preventDefault()},_=l.useRef({top:L,dragging:$,pageY:w,startTop:x});_.current={top:L,dragging:$,pageY:w,startTop:x};const B=q=>{S(!0),M(Ev(q,p)),R(_.current.top),c(),q.stopPropagation(),q.preventDefault()};l.useEffect(()=>{const q=Z=>{Z.preventDefault()},X=N.current,K=O.current;return X.addEventListener("touchstart",q,{passive:!1}),K.addEventListener("touchstart",B,{passive:!1}),()=>{X.removeEventListener("touchstart",q),K.removeEventListener("touchstart",B)}},[]);const I=l.useRef();I.current=U;const z=l.useRef();z.current=G,l.useEffect(()=>{if($){let q;const X=Z=>{const{dragging:ee,pageY:ie,startTop:ne}=_.current;Ht.cancel(q);const oe=N.current.getBoundingClientRect(),de=h/(p?oe.width:oe.height);if(ee){const le=(Ev(Z,p)-ie)*de;let fe=ne;!T&&p?fe-=le:fe+=le;const ge=I.current,re=z.current,ue=re?fe/re:0;let he=Math.ceil(ue*ge);he=Math.max(he,0),he=Math.min(he,ge),q=Ht(()=>{f(he,p)})}},K=()=>{S(!1),d()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",K,{passive:!0}),window.addEventListener("touchend",K,{passive:!0}),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),Ht.cancel(q)}}},[$]),l.useEffect(()=>(k(),()=>{clearTimeout(W.current)}),[i]),l.useImperativeHandle(t,()=>({delayHidden:k}));const V=`${n}-scrollbar`,A={position:"absolute",visibility:P?null:"hidden"},j={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(A,{height:8,left:0,right:0,bottom:0}),Object.assign(j,{height:"100%",width:g,[T?"left":"right"]:L})):(Object.assign(A,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(j,{width:"100%",height:g,top:L})),l.createElement("div",{ref:N,className:Q(V,{[`${V}-horizontal`]:p,[`${V}-vertical`]:!p,[`${V}-visible`]:P}),style:{...A,...y},onMouseDown:H,onMouseMove:k},l.createElement("div",{ref:O,className:Q(`${V}-thumb`,{[`${V}-thumb-moving`]:$}),style:{...j,...C},onMouseDown:B}))}),m7=20;function o2(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,m7),Math.floor(n)}const p7=[],g7={overflowY:"auto",overflowAnchor:"none"};function h7(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:i,itemHeight:s,fullHeight:c=!0,style:d,data:f,children:p,itemKey:g,virtual:h,direction:y,scrollWidth:C,component:b="div",onScroll:$,onVirtualScroll:S,onVisibleChange:w,innerProps:M,extraRender:x,styles:R,showScrollBar:T="optional",...N}=e,O=l.useCallback(He=>typeof g=="function"?g(He):He?.[g],[g]),[P,D,W,k]=s7(O),U=!!(h!==!1&&i&&s),G=l.useMemo(()=>Object.values(W.maps).reduce((He,Ae)=>He+Ae,0),[W.id,W.maps]),L=U&&f&&(Math.max(s*f.length,G)>i||!!C),H=y==="rtl",_=Q(n,{[`${n}-rtl`]:H},r),B=f||p7,I=l.useRef(),z=l.useRef(),V=l.useRef(),[A,j]=l.useState(0),[q,X]=l.useState(0),[K,Z]=l.useState(!1),ee=()=>{Z(!0)},ie=()=>{Z(!1)},ne={getKey:O};function oe(He){j(Ae=>{let We;typeof He=="function"?We=He(Ae):We=He;const Me=Ve(We);return I.current.scrollTop=Me,Me})}const de=l.useRef({start:0,end:B.length}),le=l.useRef(),[fe]=o7(B,O);le.current=fe;const{scrollHeight:ge,start:re,end:ue,offset:he}=l.useMemo(()=>{if(!U)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!L)return{scrollHeight:z.current?.offsetHeight||0,start:0,end:B.length-1,offset:void 0};let He=0,Ae,We,Me;const Ye=B.length;for(let Je=0;Je<Ye;Je+=1){const it=B[Je],ft=O(it),Ft=W.get(ft),Dt=He+(Ft===void 0?s:Ft);Dt>=A&&Ae===void 0&&(Ae=Je,We=He),Dt>A+i&&Me===void 0&&(Me=Je),He=Dt}return Ae===void 0&&(Ae=0,We=0,Me=Math.ceil(i/s)),Me===void 0&&(Me=B.length-1),Me=Math.min(Me+1,B.length-1),{scrollHeight:He,start:Ae,end:Me,offset:We}},[L,U,A,B,k,i]);de.current.start=re,de.current.end=ue,l.useLayoutEffect(()=>{const He=W.getRecord();if(He.size===1){const Ae=Array.from(He.keys())[0],We=He.get(Ae),Me=B[re];if(Me&&We===void 0&&O(Me)===Ae){const it=W.get(Ae)-s;oe(ft=>ft+it)}}W.resetRecord()},[ge]);const[pe,Se]=l.useState({width:0,height:i}),Ie=He=>{Se({width:He.offsetWidth,height:He.offsetHeight})},Re=l.useRef(),we=l.useRef(),se=l.useMemo(()=>o2(pe.width,C),[pe.width,C]),be=l.useMemo(()=>o2(pe.height,ge),[pe.height,ge]),Ee=ge-i,Ne=l.useRef(Ee);Ne.current=Ee;function Ve(He){let Ae=He;return Number.isNaN(Ne.current)||(Ae=Math.min(Ae,Ne.current)),Ae=Math.max(Ae,0),Ae}const Ge=A<=0,et=A>=Ee,Te=q<=0,_e=q>=C,Le=MO(Ge,et,Te,_e),Qe=()=>({x:H?-q:q,y:A}),De=l.useRef(Qe()),ve=ut(He=>{if(S){const Ae={...Qe(),...He};(De.current.x!==Ae.x||De.current.y!==Ae.y)&&(S(Ae),De.current=Ae)}});function Pe(He,Ae){const We=He;Ae?($s.flushSync(()=>{X(We)}),ve()):oe(We)}function Ze(He){const{scrollTop:Ae}=He.currentTarget;Ae!==A&&oe(Ae),$?.(He),ve()}const Ue=He=>{let Ae=He;const We=C?C-pe.width:0;return Ae=Math.max(Ae,0),Ae=Math.min(Ae,We),Ae},Fe=ut((He,Ae)=>{Ae?($s.flushSync(()=>{X(We=>{const Me=We+(H?-He:He);return Ue(Me)})}),ve()):oe(We=>We+He)}),[ze,Xe]=a7(U,Ge,et,Te,_e,!!C,Fe);c7(U,I,(He,Ae,We,Me)=>{const Ye=Me;return Le(He,Ae,We)?!1:!Ye||!Ye._virtualHandled?(Ye&&(Ye._virtualHandled=!0),ze({preventDefault(){},deltaX:He?Ae:0,deltaY:He?0:Ae}),!0):!1}),u7(L,I,He=>{oe(Ae=>Ae+He)}),Nt(()=>{function He(We){const Me=Ge&&We.detail<0,Ye=et&&We.detail>0;U&&!Me&&!Ye&&We.preventDefault()}const Ae=I.current;return Ae.addEventListener("wheel",ze,{passive:!1}),Ae.addEventListener("DOMMouseScroll",Xe,{passive:!0}),Ae.addEventListener("MozMousePixelScroll",He,{passive:!1}),()=>{Ae.removeEventListener("wheel",ze),Ae.removeEventListener("DOMMouseScroll",Xe),Ae.removeEventListener("MozMousePixelScroll",He)}},[U,Ge,et]),Nt(()=>{if(C){const He=Ue(q);X(He),ve({x:He})}},[pe.width,C]);const rt=()=>{Re.current?.delayHidden(),we.current?.delayHidden()},ot=f7(I,B,W,s,O,()=>D(!0),oe,rt);l.useImperativeHandle(t,()=>({nativeElement:V.current,getScrollInfo:Qe,scrollTo:He=>{function Ae(We){return We&&typeof We=="object"&&("left"in We||"top"in We)}Ae(He)?(He.left!==void 0&&X(Ue(He.left)),ot(He.top)):ot(He)}})),Nt(()=>{if(w){const He=B.slice(re,ue+1);w(He,B)}},[re,ue,B]);const lt=i7(B,O,W,s),St=x?.({start:re,end:ue,virtual:L,offsetX:q,offsetY:he,rtl:H,getSize:lt}),Ct=n7(B,re,ue,C,q,P,p,ne);let qe=null;i&&(qe={[c?"height":"maxHeight"]:i,...g7},U&&(qe.overflowY="hidden",C&&(qe.overflowX="hidden"),K&&(qe.pointerEvents="none")));const at={};return H&&(at.dir="rtl"),l.createElement("div",Xn({ref:V,style:{...d,position:"relative"},className:_},at,N),l.createElement(Vr,{onResize:Ie},l.createElement(b,{className:`${n}-holder`,style:qe,ref:I,onScroll:Ze,onMouseEnter:rt},l.createElement(EO,{prefixCls:n,height:ge,offsetX:q,offsetY:he,scrollWidth:C,onInnerResize:D,ref:z,innerProps:M,rtl:H,extra:St},Ct))),L&&ge>i&&l.createElement(r2,{ref:Re,prefixCls:n,scrollOffset:A,scrollRange:ge,rtl:H,onScroll:Pe,onStartMove:ee,onStopMove:ie,spinSize:be,containerSize:pe.height,style:R?.verticalScrollBar,thumbStyle:R?.verticalScrollBarThumb,showScrollBar:T}),L&&C>pe.width&&l.createElement(r2,{ref:we,prefixCls:n,scrollOffset:q,scrollRange:C,rtl:H,onScroll:Pe,onStartMove:ee,onStopMove:ie,spinSize:se,containerSize:pe.width,horizontal:!0,style:R?.horizontalScrollBar,thumbStyle:R?.horizontalScrollBarThumb,showScrollBar:T}))}const RO=l.forwardRef(h7);RO.displayName="List";function y7(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function a2(e){return typeof e=="string"||typeof e=="number"}const b7=(e,t)=>{const{prefixCls:n,id:r,open:i,multiple:s,mode:c,searchValue:d,toggleOpen:f,notFoundContent:p,onPopupScroll:g,showScrollBar:h}=ll(),{maxCount:y,flattenOptions:C,onActiveValue:b,defaultActiveFirstOption:$,onSelect:S,menuItemSelectedIcon:w,rawValues:M,fieldNames:x,virtual:R,direction:T,listHeight:N,listItemHeight:O,optionRender:P,classNames:D,styles:W}=l.useContext(FS),k=`${n}-item`,U=rd(()=>C,[i,C],(ne,oe)=>oe[0]&&ne[1]!==oe[1]),G=l.useRef(null),L=l.useMemo(()=>s&&bv(y)&&M?.size>=y,[s,y,M?.size]),H=ne=>{ne.preventDefault()},_=ne=>{G.current?.scrollTo(typeof ne=="number"?{index:ne}:ne)},B=l.useCallback(ne=>c==="combobox"?!1:M.has(ne),[c,[...M].toString(),M.size]),I=(ne,oe=1)=>{const de=U.length;for(let le=0;le<de;le+=1){const fe=(ne+le*oe+de)%de,{group:ge,data:re}=U[fe]||{};if(!ge&&!re?.disabled&&(B(re.value)||!L))return fe}return-1},[z,V]=l.useState(()=>I(0)),A=(ne,oe=!1)=>{V(ne);const de={source:oe?"keyboard":"mouse"},le=U[ne];if(!le){b(null,-1,de);return}b(le.value,ne,de)};l.useEffect(()=>{A($!==!1?I(0):-1)},[U.length,d]);const j=l.useCallback(ne=>c==="combobox"?String(ne).toLowerCase()===d.toLowerCase():M.has(ne),[c,d,[...M].toString(),M.size]);l.useEffect(()=>{let ne;if(!s&&i&&M.size===1){const oe=Array.from(M)[0],de=U.findIndex(({data:le})=>d?String(le.value).startsWith(d):le.value===oe);de!==-1&&(A(de),ne=setTimeout(()=>{_(de)}))}return i&&G.current?.scrollTo(void 0),()=>clearTimeout(ne)},[i,d]);const q=ne=>{ne!==void 0&&S(ne,{selected:!M.has(ne)}),s||f(!1)};if(l.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:oe,ctrlKey:de}=ne;switch(oe){case nt.N:case nt.P:case nt.UP:case nt.DOWN:{let le=0;if(oe===nt.UP?le=-1:oe===nt.DOWN?le=1:y7()&&de&&(oe===nt.N?le=1:oe===nt.P&&(le=-1)),le!==0){const fe=I(z+le,le);_(fe),A(fe,!0)}break}case nt.TAB:case nt.ENTER:{const le=U[z];if(!le||le.data.disabled)return q(void 0);!L||M.has(le.value)?q(le.value):q(void 0),i&&ne.preventDefault();break}case nt.ESC:f(!1),i&&ne.stopPropagation()}},onKeyUp:()=>{},scrollTo:ne=>{_(ne)}})),U.length===0)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${k}-empty`,onMouseDown:H},p);const X=Object.keys(x).map(ne=>x[ne]),K=ne=>ne.label;function Z(ne,oe){const{group:de}=ne;return{role:de?"presentation":"option",id:`${r}_list_${oe}`}}const ee=ne=>{const oe=U[ne];if(!oe)return null;const de=oe.data||{},{value:le}=de,{group:fe}=oe,ge=jn(de,!0),re=K(oe);return oe?l.createElement("div",lu({"aria-label":typeof re=="string"&&!fe?re:null},ge,{key:ne},Z(oe,ne),{"aria-selected":j(le)}),le):null},ie={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,R&&l.createElement("div",lu({},ie,{style:{height:0,width:0,overflow:"hidden"}}),ee(z-1),ee(z),ee(z+1)),l.createElement(RO,{itemKey:"key",ref:G,data:U,height:N,itemHeight:O,fullHeight:!1,onMouseDown:H,onScroll:g,virtual:R,direction:T,innerProps:R?null:ie,showScrollBar:h,className:D?.popup?.list,style:W?.popup?.list},(ne,oe)=>{const{group:de,groupOption:le,data:fe,label:ge,value:re}=ne,{key:ue}=fe;if(de){const Le=fe.title??(a2(ge)?ge.toString():void 0);return l.createElement("div",{className:Q(k,`${k}-group`,fe.className),title:Le},ge!==void 0?ge:ue)}const{disabled:he,title:pe,children:Se,style:Ie,className:Re,...we}=fe,se=nn(we,X),be=B(re),Ee=he||!be&&L,Ne=`${k}-option`,Ve=Q(k,Ne,Re,D?.popup?.listItem,{[`${Ne}-grouped`]:le,[`${Ne}-active`]:z===oe&&!Ee,[`${Ne}-disabled`]:Ee,[`${Ne}-selected`]:be}),Ge=K(ne),et=!w||typeof w=="function"||be,Te=typeof Ge=="number"?Ge:Ge||re;let _e=a2(Te)?Te.toString():void 0;return pe!==void 0&&(_e=pe),l.createElement("div",lu({},jn(se),R?{}:Z(ne,oe),{"aria-selected":R?void 0:j(re),className:Ve,title:_e,onMouseMove:()=>{z===oe||Ee||A(oe)},onClick:()=>{Ee||q(re)},style:{...W?.popup?.listItem,...Ie}}),l.createElement("div",{className:`${Ne}-content`},typeof P=="function"?P(ne,{index:oe}):Te),l.isValidElement(w)||be,et&&l.createElement(wO,{className:`${k}-option-state`,customizeIcon:w,customizeIconProps:{value:re,disabled:Ee,isSelected:be}},be?"✓":null))}))},v7=l.forwardRef(b7),S7=((e,t)=>{const n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(()=>{const{values:s,options:c}=n.current,d=e.map(g=>g.label===void 0?{...g,label:s.get(g.value)?.label}:g),f=new Map,p=new Map;return d.forEach(g=>{f.set(g.value,g),p.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=f,n.current.options=p,d},[e,t]),i=l.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,i]});function jy(e,t){return CO(e).join("").toUpperCase().includes(t)}const C7=((e,t,n,r,i)=>l.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:c,value:d}=t,f=[],p=typeof r=="function",g=n.toUpperCase(),h=p?r:(C,b)=>i&&i.length?i.some($=>jy(b[$],g)):b[s]?jy(b[c!=="children"?c:"label"],g):jy(b[d],g),y=p?C=>vv(C):C=>C;return e.forEach(C=>{if(C[s]){if(h(n,y(C)))f.push(C);else{const $=C[s].filter(S=>h(n,y(S)));$.length&&f.push({...C,[s]:$})}return}h(n,y(C))&&f.push(C)}),f},[e,r,i,n,t]));function $7(e){const{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r!==void 0?r:t,children:n,...i}}function TO(e,t=!1){return dr(e).map((n,r)=>{if(!l.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:i},key:s,props:{children:c,...d}}=n;return t||!i?$7(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...d,options:TO(c)}}).filter(n=>n)}const x7=(e,t,n,r,i)=>l.useMemo(()=>{let s=e;!e&&(s=TO(t));const d=new Map,f=new Map,p=(h,y,C)=>{C&&typeof C=="string"&&h.set(y[C],y)},g=(h,y=!1)=>{for(let C=0;C<h.length;C+=1){const b=h[C];!b[n.options]||y?(d.set(b[n.value],b),p(f,b,n.label),r.forEach($=>{p(f,b,$)}),p(f,b,i)):g(b[n.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:f}},[e,t,n,r,i]);function i2(e){const t=l.useRef();return t.current=e,l.useCallback((...r)=>t.current(...r),[])}function w7(e,t,n){const{filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f}=t;return l.useMemo(()=>{const p=typeof e=="object",g={filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f,...p?e:{}};return[p||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,g]},[n,e,r,i,s,c,d,f])}function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mv.apply(this,arguments)}const E7=["inputValue"];function M7(e){return!e||typeof e!="object"}const R7=l.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:i="rc-select",backfill:s,fieldNames:c,showSearch:d,searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C,onSelect:b,onDeselect:$,onActive:S,popupMatchSelectWidth:w=!0,optionLabelProp:M,options:x,optionRender:R,children:T,defaultActiveFirstOption:N,menuItemSelectedIcon:O,virtual:P,direction:D,listHeight:W=200,listItemHeight:k=20,labelRender:U,value:G,defaultValue:L,labelInValue:H,onChange:_,maxCount:B,classNames:I,styles:z,...V}=e,A={searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C},[j,q]=w7(d,A,r),{filterOption:X,searchValue:K,optionFilterProp:Z,filterSort:ee,onSearch:ie,autoClearSearchValue:ne=!0}=q,oe=l.useMemo(()=>Z?Array.isArray(Z)?Z:[Z]:[],[Z]),de=Ko(n),le=wv(r),fe=!!(!x&&T),ge=l.useMemo(()=>X===void 0&&r==="combobox"?!1:X,[X,r]),re=l.useMemo(()=>yO(c,fe),[JSON.stringify(c),fe]),[ue,he]=Yt("",K),pe=ue||"",Se=x7(x,T,re,oe,M),{valueOptions:Ie,labelOptions:Re,options:we}=Se,se=l.useCallback(Me=>CO(Me).map(Je=>{let it,ft,Ft,Dt;M7(Je)?it=Je:(ft=Je.label,it=Je.value);const $t=Ie.get(it);return $t&&(ft===void 0&&(ft=$t?.[M||re.label]),Ft=$t?.disabled,Dt=$t?.title),{label:ft,value:it,key:it,disabled:Ft,title:Dt}}),[re,M,Ie]),[be,Ee]=Yt(L,G),Ne=l.useMemo(()=>{const Ye=se(le&&be===null?[]:be);return r==="combobox"&&H9(Ye[0]?.value)?[]:Ye},[be,se,r,le]),[Ve,Ge]=S7(Ne,Ie),et=l.useMemo(()=>{if(!r&&Ve.length===1){const Me=Ve[0];if(Me.value===null&&(Me.label===null||Me.label===void 0))return[]}return Ve.map(Me=>({...Me,label:(typeof U=="function"?U(Me):Me.label)??Me.value}))},[r,Ve,U]),Te=l.useMemo(()=>new Set(Ve.map(Me=>Me.value)),[Ve]);l.useEffect(()=>{if(r==="combobox"){const Me=Ve[0]?.value;he(_9(Me)?String(Me):"")}},[Ve]);const _e=i2((Me,Ye)=>{const Je=Ye??Me;return{[re.value]:Me,[re.label]:Je}}),Le=l.useMemo(()=>{if(r!=="tags")return we;const Me=[...we],Ye=Je=>Ie.has(Je);return[...Ve].sort((Je,it)=>Je.value<it.value?-1:1).forEach(Je=>{const it=Je.value;Ye(it)||Me.push(_e(it,Je.label))}),Me},[_e,we,Ie,Ve,r]),Qe=C7(Le,re,pe,ge,oe),De=l.useMemo(()=>{const Me=Ye=>oe.length?oe.some(Je=>Ye?.[Je]===pe):Ye?.value===pe;return r!=="tags"||!pe||Qe.some(Ye=>Me(Ye))||Qe.some(Ye=>Ye[re.value]===pe)?Qe:[_e(pe),...Qe]},[_e,oe,r,Qe,pe,re]),ve=Me=>[...Me].sort((Je,it)=>ee(Je,it,{searchValue:pe})).map(Je=>Array.isArray(Je.options)?{...Je,options:Je.options.length>0?ve(Je.options):Je.options}:Je),Pe=l.useMemo(()=>ee?ve(De):De,[De,ee,pe]),Ze=l.useMemo(()=>P9(Pe,{fieldNames:re,childrenAsData:fe}),[Pe,re,fe]),Ue=Me=>{const Ye=se(Me);if(Ee(Ye),_&&(Ye.length!==Ve.length||Ye.some((Je,it)=>Ve[it]?.value!==Je?.value))){const Je=H?Ye.map(({label:ft,value:Ft})=>({label:ft,value:Ft})):Ye.map(ft=>ft.value),it=Ye.map(ft=>vv(Ge(ft.value)));_(le?Je:Je[0],le?it:it[0])}},[Fe,ze]=l.useState(null),[Xe,rt]=l.useState(0),ot=N!==void 0?N:r!=="combobox",lt=l.useRef(),St=l.useCallback((Me,Ye,{source:Je="keyboard"}={})=>{rt(Ye),s&&r==="combobox"&&Me!==null&&Je==="keyboard"&&ze(String(Me));const it=Promise.resolve().then(()=>{lt.current===it&&S?.(Me)});lt.current=it},[s,r,S]),Ct=(Me,Ye,Je)=>{const it=()=>{const ft=Ge(Me);return[H?{label:ft?.[re.label],value:Me}:Me,vv(ft)]};if(Ye&&b){const[ft,Ft]=it();b(ft,Ft)}else if(!Ye&&$&&Je!=="clear"){const[ft,Ft]=it();$(ft,Ft)}},qe=i2((Me,Ye)=>{let Je;const it=le?Ye.selected:!0;it?Je=le?[...Ve,Me]:[Me]:Je=Ve.filter(ft=>ft.value!==Me),Ue(Je),Ct(Me,it),r==="combobox"?ze(""):(!wv||ne)&&(he(""),ze(""))}),at=(Me,Ye)=>{Ue(Me);const{type:Je,values:it}=Ye;(Je==="remove"||Je==="clear")&&it.forEach(ft=>{Ct(ft.value,!1,Je)})},He=(Me,Ye)=>{if(he(Me),ze(null),Ye.source==="submit"){const Je=(Me||"").trim();if(Je){const it=Array.from(new Set([...Te,Je]));Ue(it),Ct(Je,!0),he("")}return}Ye.source!=="blur"&&(r==="combobox"&&Ue(Me),ie?.(Me))},Ae=Me=>{let Ye=Me;r!=="tags"&&(Ye=Me.map(it=>Re.get(it)?.value).filter(it=>it!==void 0));const Je=Array.from(new Set([...Te,...Ye]));Ue(Je),Je.forEach(it=>{Ct(it,!0)})},We=l.useMemo(()=>({...Se,flattenOptions:Ze,onActiveValue:St,defaultActiveFirstOption:ot,onSelect:qe,menuItemSelectedIcon:O,rawValues:Te,fieldNames:re,virtual:P!==!1&&w!==!1,direction:D,listHeight:W,listItemHeight:k,childrenAsData:fe,maxCount:B,optionRender:R,classNames:I,styles:z}),[B,Se,Ze,St,ot,qe,O,Te,re,P,w,D,W,k,fe,R,I,z]);return l.createElement(FS.Provider,{value:We},l.createElement(e7,Mv({},V,{id:de,prefixCls:i,ref:t,omitDomProps:E7,mode:r,classNames:I,styles:z,displayValues:et,onDisplayValuesChange:at,maxCount:B,direction:D,showSearch:j,searchValue:pe,onSearch:He,autoClearSearchValue:ne,onSearchSplit:Ae,popupMatchSelectWidth:w,OptionList:v7,emptyOptions:!Ze.length,activeValue:Fe,activeDescendantId:`${de}_list_${Xe}`})))}),qS=R7;qS.Option=WS;qS.OptGroup=kS;const Ji=(e,t,n)=>Q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),Ds=(e,t)=>t||e,T7=()=>{const[,e]=Wr(),[t]=oo("Empty"),r=new en(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},O7=()=>{const[,e]=Wr(),[t]=oo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:s}=e,{borderColor:c,shadowColor:d,contentColor:f}=l.useMemo(()=>({borderColor:new en(n).onBackground(s).toHexString(),shadowColor:new en(r).onBackground(s).toHexString(),contentColor:new en(i).onBackground(s).toHexString()}),[n,r,i,s]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:c},l.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"}),l.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:f}))))},N7=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:s,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:s,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.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},I7=Pt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Ot(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return N7(i)}),OO=l.createElement(T7,null),NO=l.createElement(O7,null),ki=e=>{const{className:t,rootClassName:n,prefixCls:r,image:i,description:s,children:c,imageStyle:d,style:f,classNames:p,styles:g,...h}=e,{getPrefixCls:y,direction:C,className:b,style:$,classNames:S,styles:w,image:M}=It("empty"),x=y("empty",r),[R,T]=I7(x),[N,O]=Lt([S,p],[w,g],{props:e}),[P]=oo("Empty"),D=typeof s<"u"?s:P?.description,W=typeof D=="string"?D:"empty",k=i??M??OO;let U=null;return typeof k=="string"?U=l.createElement("img",{draggable:!1,alt:W,src:k}):U=k,l.createElement("div",{className:Q(R,T,x,b,{[`${x}-normal`]:k===NO,[`${x}-rtl`]:C==="rtl"},t,n,N.root),style:{...O.root,...$,...f},...h},l.createElement("div",{className:Q(`${x}-image`,N.image),style:{...d,...O.image}},U),D&&l.createElement("div",{className:Q(`${x}-description`,N.description),style:O.description},D),c&&l.createElement("div",{className:Q(`${x}-footer`,N.footer),style:O.footer},c))};ki.PRESENTED_IMAGE_DEFAULT=OO;ki.PRESENTED_IMAGE_SIMPLE=NO;const IO=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ae.createElement(ki,null)}},js=(e,t,n)=>{const{variant:r,[e]:i}=l.useContext(dt),s=l.useContext(z_),c=i?.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=s??c??r??"outlined";const f=l8.includes(d);return[d,f]},P7=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function z7(e,t){return e||P7(t)}const l2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},A7=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Zt(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,[`
|
|
180
180
|
${i}${d}bottomLeft,
|
|
181
181
|
${s}${d}bottomLeft
|
|
182
182
|
`]:{animationName:Tp},[`
|
|
@@ -187,8 +187,8 @@ html body {
|
|
|
187
187
|
`]:{animationName:Np},[`${c}${d}bottomLeft`]:{animationName:Op},[`
|
|
188
188
|
${c}${d}topLeft,
|
|
189
189
|
${c}${d}topRight
|
|
190
|
-
`]:{animationName:Ip},"&-hidden":{display:"none"},[r]:{...l2(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...$o},"&-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}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...l2(e),color:e.colorTextDisabled}},[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Xo(e,"slide-up"),Xo(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down")]},
|
|
191
|
-
${t}-content-item-suffix:first-child`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-selection-item`]:{lineHeight:`calc(var(--select-multi-item-height) - ${d} * 2)`,border:`${d} solid var(--select-multi-item-border-color)`,display:"flex",marginBlock:c,marginInlineEnd:n(c).mul(2).equal(),background:"var(--select-multi-item-background)",borderRadius:"var(--select-multi-item-border-radius)",paddingInlineStart:i,paddingInlineEnd:s,transition:["height","line-height","padding"].map(h=>`${h} ${e.motionDurationSlow}`).join(","),"&-content":{...$o,marginInlineEnd:s},"&-remove":{...Is(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}},[`${t}-input`]:{lineHeight:n(c).mul(2).add("var(--select-multi-item-height)").equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:s2,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{"--select-multi-item-height":e.multipleItemHeightSM,"--select-multi-item-border-radius":e.borderRadiusXS},[`&${t}-lg`]:{"--select-multi-item-height":e.multipleItemHeightLG,"--select-multi-item-border-radius":e.borderRadius},[`&${t}-filled`]:{"--select-multi-item-border-color":e.colorSplit,"--select-multi-item-background":e.colorBgContainer,[`&${t}-disabled`]:{"--select-multi-item-border-color":"transparent"}}}}},_y=(e,t)=>{const{componentCls:n}=e,{border:r,borderHover:i,borderActive:s,borderOutline:c}=t,d=t.background||e.selectorBg||e.colorBgContainer;return{"--select-border-color":r,"--select-background":d,"--select-color":t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{"--select-border-color":i,"--select-background":t.backgroundHover||d},[`&${n}-focused`]:{"--select-border-color":s,"--select-background":t.backgroundActive||d,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{"--select-border-color":t.borderDisabled||t.border,"--select-background":t.backgroundDisabled||t.background}}},kf=(e,t,n,r={},i={},s)=>{const{componentCls:c}=e;return{[`&${c}-${t}`]:[_y(e,n),{[`&${c}-status-error`]:_y(e,{...n,color:r.color||e.colorError,...r}),[`&${c}-status-warning`]:_y(e,{...n,color:i.color||e.colorWarning,...i})},s]}},_H=e=>{const{componentCls:t,calc:n,fontHeight:r,controlHeight:i,iconCls:s}=e;return{[t]:[{"--select-border-radius":e.borderRadius,"--select-border-color":"#000","--select-border-size":e.lineWidth,"--select-background":e.colorBgContainer,"--select-font-size":e.fontSize,"--select-line-height":e.lineHeight,"--select-font-height":r,"--select-color":e.colorText,"--select-height":i,"--select-padding-horizontal":n(e.paddingSM).sub(e.lineWidth).equal(),"--select-padding-vertical":"calc((var(--select-height) - var(--select-font-height)) / 2 - var(--select-border-size))",...Zt(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:"var(--select-border-radius)",borderWidth:"var(--select-border-size)",borderStyle:e.lineType,borderColor:"var(--select-border-color)",background:"var(--select-background)",fontSize:"var(--select-font-size)",lineHeight:"var(--select-line-height)",color:"var(--select-color)",paddingInline:"var(--select-padding-horizontal)",paddingBlock:"var(--select-padding-vertical)",[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...$o,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:n(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{...$o,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`&-open ${t}-content-value`]:{color:e.colorTextPlaceholder},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[s]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{"--select-height":e.controlHeightSM,"--select-padding-horizontal":n(e.paddingXS).sub(e.lineWidth).equal(),"--select-border-radius":e.borderRadiusSM},"&-lg":{"--select-height":e.controlHeightLG,"--select-font-size":e.fontSizeLG,"--select-line-height":e.lineHeightLG,"--select-font-height":e.fontHeightLG,"--select-border-radius":e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:"calc(var(--select-padding-vertical) * -1)",lineHeight:"calc(var(--select-font-height) + var(--select-padding-vertical) * 2)"},[`${t}-content`]:{alignSelf:"center"}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},jH(e),kf(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),kf(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),kf(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),kf(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),DH(e)]}},HH=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:s,controlHeightLG:c,paddingXXS:d,controlPaddingHorizontal:f,zIndexPopupBase:p,colorText:g,fontWeightStrong:h,controlItemBgActive:y,controlItemBgHover:C,colorBgContainer:b,colorFillSecondary:$,colorBgContainerDisabled:S,colorTextDisabled:w,colorPrimaryHover:M,colorPrimary:x,controlOutline:R}=e,T=d*2,N=r*2,O=Math.min(i-T,i-N),P=Math.min(s-T,s-N),D=Math.min(c-T,c-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:p+50,optionSelectedColor:g,optionSelectedFontWeight:h,optionSelectedBg:y,optionActiveBg:C,optionPadding:`${(i-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:b,clearBg:b,singleItemHeightLG:c,multipleItemBg:$,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:P,multipleItemHeightLG:D,multipleSelectorBgDisabled:S,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:M,activeBorderColor:x,activeOutlineColor:R,selectAffixPadding:d}},BH=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Zt(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...$o,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},LH=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},BH(e),AH(e),{[`${t}-rtl`]:{direction:"rtl"}},pd(e,{focusElCls:`${t}-focused`})]},VH=Pt("Select",(e,{rootPrefixCls:t})=>{const n=Ot(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[LH(n),_H(n)]},HH,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var FH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rv.apply(this,arguments)}const kH=(e,t)=>l.createElement(gt,Rv({},e,{ref:t,icon:FH})),sl=l.forwardRef(kH);var WH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}const qH=(e,t)=>l.createElement(gt,Tv({},e,{ref:t,icon:WH})),YH=l.forwardRef(qH);var UH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(this,arguments)}const GH=(e,t)=>l.createElement(gt,Ov({},e,{ref:t,icon:UH})),PO=l.forwardRef(GH);function zO({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:s,hasFeedback:c,showSuffixIcon:d,feedbackIcon:f,showArrow:p,componentName:g}){const h=t??l.createElement(zs,null),y=S=>e===null&&!c&&!p?null:l.createElement(l.Fragment,null,d!==!1&&S,c&&f);let C=null;e!==void 0?C=y(e):i?C=y(l.createElement(Ep,{spin:!0})):C=({open:S,showSearch:w})=>y(S&&w?l.createElement(PO,null):l.createElement(YH,null));let b=null;n!==void 0?b=n:s?b=l.createElement(sl,null):b=null;let $=null;return r!==void 0?$=r:$=l.createElement(qr,null),{clearIcon:h,suffixIcon:C,itemIcon:b,removeIcon:$}}function XH(e){return ae.useMemo(()=>{if(e)return(...t)=>ae.createElement(xa,{space:!0},e.apply(void 0,t))},[e])}function KH(e,t){return t!==void 0?t:e!==null}const AO="SECRET_COMBOBOX_MODE_DO_NOT_USE",QH=(e,t)=>{const{prefixCls:n,bordered:r,className:i,rootClassName:s,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:p=256,placement:g,listItemHeight:h,size:y,disabled:C,notFoundContent:b,status:$,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:M,direction:x,style:R,allowClear:T,variant:N,popupStyle:O,dropdownStyle:P,transitionName:D,tagRender:W,maxCount:k,prefix:U,dropdownRender:G,popupRender:L,onDropdownVisibleChange:H,onOpenChange:_,styles:B,classNames:I,...z}=e,{getPopupContainer:V,getPrefixCls:A,renderEmpty:j,direction:q,virtual:X,popupMatchSelectWidth:K,popupOverflow:Z}=l.useContext(dt),{showSearch:ee,style:ie,styles:ne,className:oe,classNames:de}=It("select"),[,le]=Wr(),fe=h??le?.controlHeight,ge=A("select",n),re=A(),ue=x??q,{compactSize:he,compactItemClassnames:pe}=Ma(ge,ue),[Se,Ie]=js("select",N,r),Re=ar(ge),[we,se]=VH(ge,Re),be=l.useMemo(()=>{const{mode:Ye}=e;if(Ye!=="combobox")return Ye===AO?"combobox":Ye},[e.mode]),Ee=be==="multiple"||be==="tags",Ne=KH(e.suffixIcon,e.showArrow),Ve=M??w??K,Ge=XH(L||G),et=_||H,{status:Te,hasFeedback:_e,isFormItemInput:Le,feedbackIcon:Qe}=l.useContext(Tr),De=Ds(Te,$);let ve;b!==void 0?ve=b:be==="combobox"?ve=null:ve=j?.("Select")||l.createElement(IO,{componentName:"Select"});const{suffixIcon:Pe,itemIcon:Ze,removeIcon:Ue,clearIcon:Fe}=zO({...z,multiple:Ee,hasFeedback:_e,feedbackIcon:Qe,showSuffixIcon:Ne,componentName:"Select"}),ze=T===!0?{clearIcon:Fe}:T,Xe=nn(z,["suffixIcon","itemIcon"]),rt=fr(Ye=>y??he??Ye),ot=l.useContext(kr),lt=C??ot,St={...e,variant:Se,status:De,disabled:lt,size:rt},[Ct,qe]=Lt([de,I],[ne,B],{props:St},{popup:{_default:"root"}}),at=Q(Ct.popup?.root,d,f,{[`${ge}-dropdown-${ue}`]:ue==="rtl"},s,se,Re,we),He={...qe.popup?.root,...O??P},Ae=Q({[`${ge}-lg`]:rt==="large",[`${ge}-sm`]:rt==="small",[`${ge}-rtl`]:ue==="rtl",[`${ge}-${Se}`]:Ie,[`${ge}-in-form-item`]:Le},Ji(ge,De,_e),pe,oe,i,Ct.root,s,se,Re,we),We=l.useMemo(()=>g!==void 0?g:ue==="rtl"?"bottomRight":"bottomLeft",[g,ue]),[Me]=pi("SelectLike",qe.popup?.root?.zIndex??He?.zIndex);return l.createElement(qS,{ref:t,virtual:X,classNames:Ct,styles:qe,showSearch:ee,...Xe,style:{...qe.root,...ie,...R},popupMatchSelectWidth:Ve,transitionName:Go(re,"slide-up",D),builtinPlacements:zH(S,Z),listHeight:p,listItemHeight:fe,mode:be,prefixCls:ge,placement:We,direction:ue,prefix:U,suffixIcon:Pe,menuItemSelectedIcon:Ze,removeIcon:Ue,allowClear:ze,notFoundContent:ve,className:Ae,getPopupContainer:c||V,popupClassName:at,disabled:lt,popupStyle:{...qe.popup?.root,...He,zIndex:Me},maxCount:Ee?k:void 0,tagRender:Ee?W:void 0,popupRender:Ge,onPopupVisibleChange:et})},Lr=l.forwardRef(QH),ZH=zp(Lr,"popupAlign");Lr.SECRET_COMBOBOX_MODE_DO_NOT_USE=AO;Lr.Option=WS;Lr.OptGroup=kS;Lr._InternalPanelDoNotUseOrYouWillBeFired=ZH;const el=["xxl","xl","lg","md","sm","xs"],JH=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),e7=e=>{const t=e,n=[].concat(el).reverse();return n.forEach((r,i)=>{const s=r.toUpperCase(),c=`screen${s}Min`,d=`screen${s}`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);if(i<n.length-1){const f=`screen${s}Max`;if(!(t[d]<=t[f]))throw new Error(`${d}<=${f} fails : !(${t[d]}<=${t[f]})`);const g=`screen${n[i+1].toUpperCase()}Min`;if(!(t[f]<=t[g]))throw new Error(`${f}<=${g} fails : !(${t[f]}<=${t[g]})`)}}),e},t7=()=>{const[,e]=Wr(),t=JH(e7(e));return ae.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return i=s,n.forEach(c=>c(i)),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(i),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.entries(t).forEach(([s,c])=>{const d=({matches:p})=>{this.dispatch({...i,[s]:p})},f=window.matchMedia(c);typeof f?.addEventListener=="function"&&f.addEventListener("change",d),this.matchHandlers[c]={mql:f,listener:d},d(f)})},unregister(){Object.values(t).forEach(s=>{const c=this.matchHandlers[s];typeof c?.mql?.removeEventListener=="function"&&c.mql.removeEventListener("change",c?.listener)}),n.clear()}}},[t])};function Ap(e=!0,t={}){const n=l.useRef(t),[,r]=B5(),i=t7();return Nt(()=>{const s=i.subscribe(c=>{n.current=c,e&&r()});return()=>i.unsubscribe(s)},[]),n.current}const Rs=e=>e?typeof e=="function"?e():e:null,YS=e=>{const{children:t,prefixCls:n,id:r,classNames:i,styles:s,className:c,style:d}=e;return l.createElement("div",{id:r,className:Q(`${n}-container`,i?.container,c),style:{...s?.container,...d},role:"tooltip"},typeof t=="function"?t():t)},es={shiftX:64,adjustY:1},ts={adjustX:1,shiftY:!0},yo=[0,0],n7={left:{points:["cr","cl"],overflow:ts,offset:[-4,0],targetOffset:yo},right:{points:["cl","cr"],overflow:ts,offset:[4,0],targetOffset:yo},top:{points:["bc","tc"],overflow:es,offset:[0,-4],targetOffset:yo},bottom:{points:["tc","bc"],overflow:es,offset:[0,4],targetOffset:yo},topLeft:{points:["bl","tl"],overflow:es,offset:[0,-4],targetOffset:yo},leftTop:{points:["tr","tl"],overflow:ts,offset:[-4,0],targetOffset:yo},topRight:{points:["br","tr"],overflow:es,offset:[0,-4],targetOffset:yo},rightTop:{points:["tl","tr"],overflow:ts,offset:[4,0],targetOffset:yo},bottomRight:{points:["tr","br"],overflow:es,offset:[0,4],targetOffset:yo},rightBottom:{points:["bl","br"],overflow:ts,offset:[4,0],targetOffset:yo},bottomLeft:{points:["tl","bl"],overflow:es,offset:[0,4],targetOffset:yo},leftBottom:{points:["br","bl"],overflow:ts,offset:[-4,0],targetOffset:yo}};function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nv.apply(this,arguments)}const r7=l.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:s="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:f,motion:p,placement:g="right",align:h={},destroyOnHidden:y=!1,defaultVisible:C,getTooltipContainer:b,arrowContent:$,overlay:S,id:w,showArrow:M=!0,classNames:x,styles:R,...T}=e,N=Ko(w),O=l.useRef(null);l.useImperativeHandle(t,()=>O.current);const P={...T};"visible"in e&&(P.popupVisible=e.visible);const D=l.useMemo(()=>{if(!M)return!1;const k=M===!0?{}:M;return{...k,className:Q(k.className,x?.arrow),style:{...k.style,...R?.arrow},content:k.content??$}},[M,x?.arrow,R?.arrow,$]),W=({open:k})=>{const U=l.Children.only(c),G={"aria-describedby":S&&k?N:void 0};return l.cloneElement(U,G)};return l.createElement(ud,Nv({popupClassName:x?.root,prefixCls:s,popup:l.createElement(YS,{key:"content",prefixCls:s,id:N,classNames:x,styles:R},S),action:n,builtinPlacements:n7,popupPlacement:g,ref:O,popupAlign:h,getPopupContainer:b,onOpenChange:d,afterOpenChange:f,popupMotion:p,defaultPopupVisible:C,autoDestroy:y,mouseLeaveDelay:i,popupStyle:R?.root,mouseEnterDelay:r,arrow:D,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:R?.uniqueContainer},P),W)});function Dp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,s=0,c=i,d=r*1/Math.sqrt(2),f=i-r*(1-1/Math.sqrt(2)),p=i-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-p,y=g,C=2*i-d,b=f,$=2*i-s,S=c,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),M=r*(Math.sqrt(2)-1),x=`polygon(${M}px 100%, 50% ${M}px, ${2*i-M}px 100%, ${M}px 100%)`,R=`path('M ${s} ${c} A ${r} ${r} 0 0 0 ${d} ${f} L ${p} ${g} A ${n} ${n} 0 0 1 ${h} ${y} L ${C} ${b} A ${r} ${r} 0 0 0 ${$} ${S} Z')`;return{arrowShadowWidth:w,arrowPath:R,arrowPolygon:x}}const DO=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:s,arrowShadowWidth:c,borderRadiusXS:d,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},jO=8;function jp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?jO:r}}function Wf(e,t){return e?t:{}}function US(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:s,arrowOffsetHorizontal:c}=e,{arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...DO(e,t,i),"&:before":{background:t}}],...Wf(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Wf(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Wf(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}}),...Wf(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}})}}}function o7(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const c={...s,...i};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const c2={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},a7={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},i7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function _O(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:s,visibleFirst:c}=e,d=t/2,f={},p=jp({contentRadius:s,limitVerticalRadius:!0});return Object.keys(c2).forEach(g=>{const y={...r&&a7[g]||c2[g],offset:[0,0],dynamicInset:!0};switch(f[g]=y,i7.has(g)&&(y.autoArrow=!1),g){case"top":case"topLeft":case"topRight":y.offset[1]=-d-i;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+i;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-i;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+i;break}if(r)switch(g){case"topLeft":case"bottomLeft":y.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-p.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=p.arrowOffsetHorizontal*2-d;break}y.overflow=o7(g,p,t,n),c&&(y.htmlRegion="visibleFirst")}),f}const GS=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return ae.useMemo(()=>{const r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},l7=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:s,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:f,boxShadowSecondary:p,paddingSM:g,paddingXS:h,arrowOffsetHorizontal:y,sizePopupArrow:C}=e,b=t(c).add(C).add(y).equal(),S={minWidth:t(c).mul(2).add(C).equal(),minHeight:f,padding:`${te(e.calc(g).div(2).equal())} ${te(h)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:c,boxShadow:p,boxSizing:"border-box"},w={"--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...Zt(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...w,"&-hidden":{display:"none"},"--antd-arrow-background-color":s,[`${n}-container`]:[S,_T(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,jO)}},[`${n}-content`]:{position:"relative"},...$p(e,(M,{darkColor:x})=>({[`&${n}-${M}`]:{[`${n}-container`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}})),"&-rtl":{direction:"rtl"}}},US(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...S,...w,position:"absolute",zIndex:t(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},s7=e=>({zIndexPopup:e.zIndexPopupBase+70,...jp({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Dp(Ot(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),HO=(e,t,n=!0)=>Pt("Tooltip",i=>{const{borderRadius:s,colorTextLightSolid:c,colorBgSpotlight:d}=i,f=Ot(i,{tooltipMaxWidth:250,tooltipColor:c,tooltipBorderRadius:s,tooltipBg:d});return[l7(f),md(i,"zoom-big-fast")]},s7,{resetStyle:!1,injectStyle:n})(e,t),c7=ui.map(e=>`${e}-inverse`),u7=["success","processing","error","default","warning"];function _p(e,t=!0){return t?[].concat(xn(c7),xn(ui)).includes(e):ui.includes(e)}function d7(e){return u7.includes(e)}function BO(e,t){const n=_p(t),r=Q({[`${e}-${t}`]:t&&n}),i={},s={},c=dj(t).toRgb(),f=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=f,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:s}}const f7=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:s,overlayInnerStyle:c,classNames:d,styles:f}=e,{getPrefixCls:p}=l.useContext(dt),g=p("tooltip",t),h=ar(g),[y,C]=HO(g,h),b=BO(g,s),$=b.arrowStyle,S=l.useMemo(()=>({container:{...c,...b.overlayStyle}}),[c,b.overlayStyle]),w={...e,placement:r},[M,x]=Lt([d],[S,f],{props:w}),R=Q(h,y,C,g,`${g}-pure`,`${g}-placement-${r}`,n,b.className);return l.createElement("div",{className:R,style:$},l.createElement("div",{className:`${g}-arrow`}),l.createElement(YS,{...e,className:y,prefixCls:g,classNames:M,styles:x},i))},m7=l.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:i,color:s,children:c,afterOpenChange:d,arrow:f,destroyTooltipOnHide:p,destroyOnHidden:g,title:h,overlay:y,trigger:C,builtinPlacements:b,autoAdjustOverflow:$=!0,motion:S,getPopupContainer:w,placement:M="top",mouseEnterDelay:x=.1,mouseLeaveDelay:R=.1,rootClassName:T,styles:N,classNames:O,onOpenChange:P,overlayInnerStyle:D,overlayStyle:W,overlayClassName:k,...U}=e,[,G]=Wr(),{getPopupContainer:L,getPrefixCls:H,direction:_,className:B,style:I,classNames:z,styles:V,arrow:A,trigger:j}=It("tooltip"),q=GS(f,A),X=q.show,K=C||j||"hover",Z=l.useRef(null),ee=()=>{Z.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:ee,nativeElement:Z.current?.nativeElement,popupElement:Z.current?.popupElement}));const[ie,ne]=Yt(e.defaultOpen??!1,e.open),oe=!h&&!y&&h!==0,de=Pe=>{ne(oe?!1:Pe),!oe&&P&&P(Pe)},le=l.useMemo(()=>b||_O({arrowPointAtCenter:q?.pointAtCenter??!1,autoAdjustOverflow:$,arrowWidth:X?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0}),[q,b,G,X,$]),fe=l.useMemo(()=>h===0?h:y||h||"",[y,h]),ge=l.createElement(xa,{space:!0},typeof fe=="function"?fe():fe),re={...e,trigger:K,color:s,placement:M,builtinPlacements:b,openClassName:r,arrow:f,autoAdjustOverflow:$,getPopupContainer:w,children:c,destroyTooltipOnHide:p,destroyOnHidden:g},[ue,he]=Lt([z,O],[V,N],{props:re}),pe=H("tooltip",n),Se=H(),Ie=e["data-popover-inject"];let Re=ie;!("open"in e)&&oe&&(Re=!1);const we=l.isValidElement(c)&&!cT(c)?c:l.createElement("span",null,c),se=we.props,be=!se.className||typeof se.className=="string"?Q(se.className,r||`${pe}-open`):se.className,Ee=ar(pe),[Ne,Ve]=HO(pe,Ee,!Ie),Ge=BO(pe,s),et=Ge.arrowStyle,Te=Q(Ee,Ne,Ve),_e=Q(k,{[`${pe}-rtl`]:_==="rtl"},Ge.className,T,Te,B,ue.root),[Le,Qe]=pi("Tooltip",U.zIndex),De={...he.container,...D,...Ge.overlayStyle},ve=l.createElement(r7,{unique:!0,...U,trigger:K,zIndex:Le,showArrow:X,placement:M,mouseEnterDelay:x,mouseLeaveDelay:R,prefixCls:pe,classNames:{root:_e,container:ue.container,arrow:ue.arrow,uniqueContainer:Q(Te,ue.container)},styles:{root:{...et,...he.root,...I,...W},container:De,uniqueContainer:De,arrow:he.arrow},getTooltipContainer:w||i||L,ref:Z,builtinPlacements:le,overlay:ge,visible:Re,onVisibleChange:de,afterVisibleChange:d,arrowContent:l.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:Go(Se,"zoom-big-fast",typeof S?.motionName=="string"?S?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:g??!!p},Re?nr(we,{className:be}):we);return l.createElement(ld.Provider,{value:Qe},ve)}),ur=m7;ur._InternalPanelDoNotUseOrYouWillBeFired=f7;ur.UniqueProvider=vT;const p7=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:s,boxShadowSecondary:c,colorTextHeading:d,borderRadiusLG:f,zIndexPopup:p,titleMarginBottom:g,colorBgElevated:h,popoverBg:y,titleBorderBottom:C,innerContentPadding:b,titlePadding:$}=e;return[{[t]:{...Zt(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":h,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:f,boxShadow:c,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:g,color:d,fontWeight:i,borderBottom:C,padding:$},[`${t}-content`]:{color:n,padding:b}}},US(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},g7=e=>{const{componentCls:t}=e;return{[t]:ui.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},h7=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:s,zIndexPopupBase:c,borderRadiusLG:d,marginXS:f,lineType:p,colorSplit:g,paddingSM:h}=e,y=n-r,C=y/2,b=y/2-t,$=i;return{titleMinWidth:177,zIndexPopup:c+30,...Dp(e),...jp({contentRadius:d,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${C}px ${$}px ${b}px`:0,titleBorderBottom:s?`${t}px ${p} ${g}`:"none",innerContentPadding:s?`${h}px ${$}px`:0}},LO=Pt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ot(e,{popoverBg:t,popoverColor:n});return[p7(r),g7(r),md(r,"zoom-big")]},h7,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),VO=e=>{const{title:t,content:n,prefixCls:r,classNames:i,styles:s}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:Q(`${r}-title`,i?.title),style:s?.title},t),n&&l.createElement("div",{className:Q(`${r}-content`,i?.content),style:s?.content},n))},y7=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:s="top",title:c,content:d,children:f,classNames:p,styles:g}=e,h=Rs(c),y=Rs(d),C={...e,placement:s},[b,$]=Lt([p],[g],{props:C}),S=Q(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return l.createElement("div",{className:S,style:i},l.createElement("div",{className:`${n}-arrow`}),l.createElement(YS,{...e,className:t,prefixCls:n,classNames:b,styles:$},f||l.createElement(VO,{prefixCls:n,title:h,content:y,classNames:b,styles:$})))},FO=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=l.useContext(dt),s=i("popover",t),[c,d]=LO(s);return l.createElement(y7,{...r,prefixCls:s,hashId:c,className:Q(n,d)})},b7=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:i,overlayClassName:s,placement:c="top",trigger:d,children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:y={},styles:C,classNames:b,motion:$,arrow:S,...w}=e,{getPrefixCls:M,className:x,style:R,classNames:T,styles:N,arrow:O,trigger:P}=It("popover"),D=M("popover",n),[W,k]=LO(D),U=M(),G=GS(S,O),L=d||P||"hover",H={...e,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:y,styles:C,classNames:b},[_,B]=Lt([T,b],[N,C],{props:H}),I=Q(s,W,k,x,_.root),[z,V]=Yt(e.defaultOpen??!1,e.open),A=(Z,ee)=>{V(Z),h?.(Z,ee)},j=Z=>{Z.keyCode===nt.ESC&&A(!1,Z)},q=Z=>{A(Z)},X=Rs(r),K=Rs(i);return l.createElement(ur,{unique:!1,arrow:G,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,...w,prefixCls:D,classNames:{root:I,container:_.container,arrow:_.arrow},styles:{root:{...B.root,...R,...y},container:B.container,arrow:B.arrow},ref:t,open:z,onOpenChange:q,overlay:X||K?l.createElement(VO,{prefixCls:D,title:X,content:K,classNames:_,styles:B}):null,motion:{motionName:Go(U,"zoom-big",typeof $?.motionName=="string"?$?.motionName:void 0)},"data-popover-inject":!0},nr(f,{onKeyDown:Z=>{l.isValidElement(f)&&f?.props.onKeyDown?.(Z),j(Z)}}))}),kO=b7;kO._InternalPanelDoNotUseOrYouWillBeFired=FO;const u2=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let s;return i&&(s={position:"absolute",top:`${i}00%`,left:0}),l.createElement("span",{style:s,className:Q(`${t}-only-unit`,{current:r})},n)};function v7(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const S7=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),s=Math.abs(n),[c,d]=l.useState(i),[f,p]=l.useState(s),g=()=>{d(i),p(s)};l.useEffect(()=>{const C=setTimeout(g,1e3);return()=>clearTimeout(C)},[i]);let h,y;if(c===i||Number.isNaN(i)||Number.isNaN(c))h=[l.createElement(u2,{...e,key:i,current:!0})],y={transition:"none"};else{h=[];const C=i+10,b=[];for(let M=i;M<=C;M+=1)b.push(M);const $=f<s?1:-1,S=b.findIndex(M=>M%10===c);h=($<0?b.slice(0,S+1):b.slice(S)).map((M,x)=>{const R=M%10;return l.createElement(u2,{...e,key:M,value:R,offset:$<0?x-S:x,current:x===S})}),y={transform:`translateY(${-v7(c,i,$)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},h)},C7=l.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:s,style:c,title:d,show:f,component:p="sup",children:g,...h}=e,{getPrefixCls:y}=l.useContext(dt),C=y("scroll-number",n),b={...h,"data-show":f,style:c,className:Q(C,i,s),title:d};let $=r;if(r&&Number(r)%1===0){const S=String(r).split("");$=l.createElement("bdi",null,S.map((w,M)=>l.createElement(S7,{prefixCls:C,count:Number(r),value:w,key:S.length-M})))}return c?.borderColor&&(b.style={...c,boxShadow:`0 0 0 1px ${c.borderColor} inset`}),g?nr(g,S=>({className:Q(`${C}-custom-component`,S?.className,s)})):l.createElement(p,{...b,ref:t},$)}),$7=new At("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),x7=new At("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),w7=new At("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),E7=new At("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),M7=new At("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),R7=new At("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),T7=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:s,textFontSizeSM:c,statusSize:d,dotSize:f,textFontWeight:p,indicatorHeight:g,indicatorHeightSM:h,marginXS:y,calc:C}=e,b=`${r}-scroll-number`,$=$p(e,(S,{darkColor:w})=>({[`&${t} ${t}-color-${S}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[t]:{...Zt(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:p,fontSize:s,lineHeight:te(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:C(g).div(2).equal(),boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:h,height:h,fontSize:c,lineHeight:te(h),borderRadius:C(h).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${te(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:f,minWidth:f,height:f,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${b}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:R7,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:d,height:d,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:$7,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:y,color:e.colorText,fontSize:e.fontSize}},...$,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:x7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:w7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:E7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:M7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${b}-custom-component, ${t}-count`]:{transform:"none"},[`${b}-custom-component, ${b}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[b]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${b}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${b}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${b}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${b}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},WO=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,s=t,c=n,d=e.colorTextLightSolid,f=e.colorError,p=e.colorErrorHover;return Ot(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:d,badgeColor:f,badgeColorHover:p,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},qO=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},O7=Pt("Badge",e=>{const t=WO(e);return T7(t)},qO),N7=l.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:i,status:s,text:c,color:d,count:f=null,overflowCount:p=99,dot:g=!1,size:h="default",title:y,offset:C,style:b,className:$,rootClassName:S,classNames:w,styles:M,showZero:x=!1,...R}=e,{getPrefixCls:T,direction:N,className:O,style:P,classNames:D,styles:W}=It("badge"),k=T("badge",n),[U,G]=O7(k),L={...e,overflowCount:p,size:h,dot:g,showZero:x},[H,_]=Lt([D,w],[W,M],{props:L}),B=f>p?`${p}+`:f,I=B==="0"||B===0||c==="0"||c===0,z=f===null||I&&!x,V=(Mr(s)||Mr(d))&&z,A=Mr(s)||!I,j=g&&!I,q=j?"":B,X=l.useMemo(()=>((!Mr(q)||q==="")&&(!Mr(c)||c==="")||I&&!x)&&!j,[q,I,x,j,c]),K=l.useRef(f);X||(K.current=f);const Z=K.current,ee=l.useRef(q);X||(ee.current=q);const ie=ee.current,ne=l.useRef(j);X||(ne.current=j);const oe=l.useMemo(()=>{if(!C)return{...P,...b};const Se=Number.parseInt(C[0],10);return{...{marginTop:C[1],insetInlineEnd:-Se},...P,...b}},[C,b,P]),de=y??(typeof Z=="string"||typeof Z=="number"?Z:void 0),le=!X&&(c===0?x:!!c&&c!==!0),fe=le?l.createElement("span",{className:`${k}-status-text`},c):null,ge=!Z||typeof Z!="object"?void 0:nr(Z,Se=>({style:{...oe,...Se.style}})),re=_p(d,!1),ue=Q(H.indicator,{[`${k}-status-dot`]:V,[`${k}-status-${s}`]:!!s,[`${k}-color-${d}`]:re}),he={};d&&!re&&(he.color=d,he.background=d);const pe=Q(k,{[`${k}-status`]:V,[`${k}-not-a-wrapper`]:!i,[`${k}-rtl`]:N==="rtl"},$,S,O,H.root,U,G);if(!i&&V&&(c||A||!z)){const Se=oe.color;return l.createElement("span",{...R,className:pe,style:{..._.root,...oe}},l.createElement("span",{className:ue,style:{..._.indicator,...he}}),le&&l.createElement("span",{style:{color:Se},className:`${k}-status-text`},c))}return l.createElement("span",{ref:t,...R,className:pe,style:_.root},i,l.createElement(Sr,{visible:!X,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Se})=>{const Ie=T("scroll-number",r),Re=ne.current,we=Q(H.indicator,{[`${k}-dot`]:Re,[`${k}-count`]:!Re,[`${k}-count-sm`]:h==="small",[`${k}-multiple-words`]:!Re&&ie&&ie.toString().length>1,[`${k}-status-${s}`]:!!s,[`${k}-color-${d}`]:re});let se={..._.indicator,...oe};return d&&!re&&(se=se||{},se.background=d),l.createElement(C7,{prefixCls:Ie,show:!X,motionClassName:Se,className:we,count:ie,title:de,style:se,key:"scrollNumber"},ge)}),fe)}),I7=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:s}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=$p(e,(p,{darkColor:g})=>({[`&${c}-color-${p}`]:{background:g,color:g}}));return{[d]:{position:"relative"},[c]:{...Zt(e),position:"absolute",top:r,padding:`0 ${te(e.paddingXS)}`,color:e.colorPrimary,lineHeight:te(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-content`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${te(s(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...f,[`&${c}-placement-end`]:{insetInlineEnd:s(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},P7=Pt(["Badge","Ribbon"],e=>{const t=WO(e);return I7(t)},qO),z7=e=>{const{className:t,prefixCls:n,style:r,color:i,children:s,text:c,placement:d="end",rootClassName:f,styles:p,classNames:g}=e,{getPrefixCls:h,direction:y,className:C,style:b,classNames:$,styles:S}=It("ribbon"),w=h("ribbon",n),M=`${w}-wrapper`,[x,R]=P7(w,M),T={...e,placement:d},[N,O]=Lt([$,g],[S,p],{props:T}),P=_p(i,!1),D=Q(w,`${w}-placement-${d}`,{[`${w}-rtl`]:y==="rtl",[`${w}-color-${i}`]:P},t,C,N.indicator),W={},k={};return i&&!P&&(W.background=i,k.color=i),l.createElement("div",{className:Q(M,f,x,R,N.root),style:O.root},s,l.createElement("div",{className:Q(D,x),style:{...W,...O.indicator,...b,...r}},l.createElement("span",{className:Q(`${w}-content`,N.content),style:O.content},c),l.createElement("div",{className:`${w}-corner`,style:k})))},di=N7;di.Ribbon=z7;var A7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(this,arguments)}const D7=(e,t)=>l.createElement(gt,Iv({},e,{ref:t,icon:A7})),Eu=l.forwardRef(D7),{ESC:j7,TAB:_7}=nt;function H7({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){const s=l.useRef(!1),c=()=>{e&&(t.current?.focus?.(),n?.(!1))},d=()=>i.current?.focus?(i.current.focus(),s.current=!0,!0):!1,f=p=>{switch(p.keyCode){case j7:c();break;case _7:{let g=!1;s.current||(g=d()),g?p.preventDefault():c();break}}};l.useEffect(()=>e?(window.addEventListener("keydown",f),r&&Ht(d,3),()=>{window.removeEventListener("keydown",f),s.current=!1}):()=>{s.current=!1},[e])}const B7=l.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:i}=e,s=l.useMemo(()=>{let d;return typeof n=="function"?d=n():d=n,d},[n]),c=or(t,ol(s));return ae.createElement(ae.Fragment,null,r&&ae.createElement("div",{className:`${i}-arrow`}),ae.cloneElement(s,{ref:rl(s)?c:void 0}))}),ns={adjustX:1,adjustY:1},rs=[0,0],L7={topLeft:{points:["bl","tl"],overflow:ns,offset:[0,-4],targetOffset:rs},top:{points:["bc","tc"],overflow:ns,offset:[0,-4],targetOffset:rs},topRight:{points:["br","tr"],overflow:ns,offset:[0,-4],targetOffset:rs},bottomLeft:{points:["tl","bl"],overflow:ns,offset:[0,4],targetOffset:rs},bottom:{points:["tc","bc"],overflow:ns,offset:[0,4],targetOffset:rs},bottomRight:{points:["tr","br"],overflow:ns,offset:[0,4],targetOffset:rs}};function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pv.apply(this,arguments)}const YO=ae.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:s,align:c,placement:d="bottomLeft",placements:f=L7,getPopupContainer:p,showAction:g,hideAction:h,overlayClassName:y,overlayStyle:C,visible:b,trigger:$=["hover"],autoFocus:S,overlay:w,children:M,onVisibleChange:x,...R}=e,[T,N]=ae.useState(),O="visible"in e?b:T,P=s?`${r}-${s}`:i,D=ae.useRef(null),W=ae.useRef(null),k=ae.useRef(null);ae.useImperativeHandle(t,()=>D.current);const U=V=>{N(V),x?.(V)};H7({visible:O,triggerRef:k,onVisibleChange:U,autoFocus:S,overlayRef:W});const G=V=>{const{onOverlayClick:A}=e;N(!1),A&&A(V)},L=()=>ae.createElement(B7,{ref:W,overlay:w,prefixCls:r,arrow:n}),H=()=>typeof w=="function"?L:L(),_=()=>{const{minOverlayWidthMatchTrigger:V,alignPoint:A}=e;return"minOverlayWidthMatchTrigger"in e?V:!A},B=()=>{const{openClassName:V}=e;return V!==void 0?V:`${r}-open`},I=ae.cloneElement(M,{className:Q(M.props?.className,O&&B()),ref:rl(M)?or(k,ol(M)):void 0});let z=h;return!z&&$.indexOf("contextMenu")!==-1&&(z=["click"]),ae.createElement(ud,Pv({builtinPlacements:f},R,{prefixCls:r,ref:D,popupClassName:Q(y,{[`${r}-show-arrow`]:n}),popupStyle:C,action:$,showAction:g,hideAction:z,popupPlacement:d,popupAlign:c,popupMotion:{motionName:P},popupVisible:O,stretch:_()?"minWidth":"",popup:H(),onOpenChange:U,onPopupClick:G,getPopupContainer:p}),I)}),V7=e=>typeof e!="object"&&typeof e!="function"||e===null,UO=l.createContext(null);function GO(e,t){return`${e}-${t}`}function XO(e){const t=l.useContext(UO);return GO(t,e)}const Do=l.createContext(null);function F7(e,t){const n={...e};return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(n[r]=i)}),n}function Mu({children:e,locked:t,...n}){const r=l.useContext(Do),i=rd(()=>F7(r,n),[r,n],(s,c)=>!t&&(s[0]!==c[0]||!hu(s[1],c[1],!0)));return l.createElement(Do.Provider,{value:i},e)}const k7=[],KO=l.createContext(null);function Hp(){return l.useContext(KO)}const QO=l.createContext(k7);function _s(e){const t=l.useContext(QO);return l.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const ZO=l.createContext(null),XS=l.createContext({});function d2(e,t=!1){if(wp(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i);let c=null;return i&&!Number.isNaN(s)?c=s:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function W7(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>d2(r,t));return d2(e,t)&&n.unshift(e),n}function JO(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const{LEFT:zv,RIGHT:Av,UP:Dv,DOWN:Cm,ENTER:$m,ESC:e6,HOME:jc,END:_c}=nt,f2=[Dv,Cm,zv,Av];function q7(e,t,n,r){const i="prev",s="next",c="children",d="parent";if(e==="inline"&&r===$m)return{inlineTrigger:!0};const f={[Dv]:i,[Cm]:s},p={[zv]:n?s:i,[Av]:n?i:s,[Cm]:c,[$m]:c},g={[Dv]:i,[Cm]:s,[$m]:c,[e6]:d,[zv]:n?c:d,[Av]:n?d:c};switch({inline:f,horizontal:p,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[r]){case i:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function Y7(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function U7(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function KS(e,t){return W7(e,!0).filter(r=>t.has(r))}function m2(e,t,n,r=1){if(!e)return null;const i=KS(e,t),s=i.length;let c=i.findIndex(d=>n===d);return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,i[c]}const Km=(e,t)=>{const n=new Set,r=new Map,i=new Map;return e.forEach(s=>{const c=document.querySelector(`[data-menu-id='${GO(t,s)}']`);c&&(n.add(c),i.set(c,s),r.set(s,c))}),{elements:n,key2element:r,element2key:i}};function G7(e,t,n,r,i,s,c,d,f,p){const g=l.useRef(),h=l.useRef();h.current=t;const y=()=>{Ht.cancel(g.current)};return l.useEffect(()=>()=>{y()},[]),C=>{const{which:b}=C;if([...f2,$m,e6,jc,_c].includes(b)){const $=s();let S=Km($,r);const{elements:w,key2element:M,element2key:x}=S,R=M.get(t),T=U7(R,w),N=x.get(T),O=q7(e,c(N,!0).length===1,n,b);if(!O&&b!==jc&&b!==_c)return;(f2.includes(b)||[jc,_c].includes(b))&&C.preventDefault();const P=D=>{if(D){let W=D;const k=D.querySelector("a");k?.getAttribute("href")&&(W=k);const U=x.get(D);d(U),y(),g.current=Ht(()=>{h.current===U&&W.focus()})}};if([jc,_c].includes(b)||O.sibling||!T){let D;!T||e==="inline"?D=i.current:D=Y7(T);let W;const k=KS(D,w);b===jc?W=k[0]:b===_c?W=k[k.length-1]:W=m2(D,w,T,O.offset),P(W)}else if(O.inlineTrigger)f(N);else if(O.offset>0)f(N,!0),y(),g.current=Ht(()=>{S=Km($,r);const D=T.getAttribute("aria-controls"),W=document.getElementById(D),k=m2(W,S.elements);P(k)},5);else if(O.offset<0){const D=c(N,!0),W=D[D.length-2],k=M.get(W);f(W,!1),P(k)}}p?.(C)}}function X7(e){Promise.resolve().then(e)}const QS="__RC_UTIL_PATH_SPLIT__",p2=e=>e.join(QS),K7=e=>e.split(QS),jv="rc-menu-more";function Q7(){const[,e]=l.useState({}),t=l.useRef(new Map),n=l.useRef(new Map),[r,i]=l.useState([]),s=l.useRef(0),c=l.useRef(!1),d=()=>{c.current||e({})},f=l.useCallback(($,S)=>{const w=p2(S);n.current.set(w,$),t.current.set($,w),s.current+=1;const M=s.current;X7(()=>{M===s.current&&d()})},[]),p=l.useCallback(($,S)=>{const w=p2(S);n.current.delete(w),t.current.delete($)},[]),g=l.useCallback($=>{i($)},[]),h=l.useCallback(($,S)=>{const w=t.current.get($)||"",M=K7(w);return S&&r.includes(M[0])&&M.unshift(jv),M},[r]),y=l.useCallback(($,S)=>$.filter(w=>w!==void 0).some(w=>h(w,!0).includes(S)),[h]),C=()=>{const $=[...t.current.keys()];return r.length&&$.push(jv),$},b=l.useCallback($=>{const S=`${t.current.get($)}${QS}`,w=new Set;return[...n.current.keys()].forEach(M=>{M.startsWith(S)&&w.add(n.current.get(M))}),w},[]);return l.useEffect(()=>()=>{c.current=!0},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:h,getKeys:C,getSubPathKeys:b}}function Qc(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function t6(e,t,n,r){const{activeKey:i,onActive:s,onInactive:c}=l.useContext(Do),d={active:i===e};return t||(d.onMouseEnter=f=>{n?.({key:e,domEvent:f}),s(e)},d.onMouseLeave=f=>{r?.({key:e,domEvent:f}),c(e)}),d}function n6(e){const{mode:t,rtl:n,inlineIndent:r}=l.useContext(Do);if(t!=="inline")return null;const i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function r6({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=l.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function Qm({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(tr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ru.apply(this,arguments)}class Z7 extends l.Component{render(){const{title:t,attribute:n,elementRef:r,...i}=this.props,s=nn(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return tr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Yo.Item,Ru({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const J7=l.forwardRef((e,t)=>{const{style:n,className:r,eventKey:i,warnKey:s,disabled:c,itemIcon:d,children:f,role:p,onMouseEnter:g,onMouseLeave:h,onClick:y,onKeyDown:C,onFocus:b,...$}=e,S=XO(i),{prefixCls:w,onItemClick:M,disabled:x,overflowDisabled:R,itemIcon:T,selectedKeys:N,onActive:O}=l.useContext(Do),{_internalRenderMenuItem:P}=l.useContext(XS),D=`${w}-item`,W=l.useRef(),k=l.useRef(),U=x||c,G=mi(t,k),L=_s(i),H=Z=>({key:i,keyPath:[...L].reverse(),item:W.current,domEvent:Z}),_=d||T,{active:B,...I}=t6(i,U,g,h),z=N.includes(i),V=n6(L.length),A=Z=>{if(U)return;const ee=H(Z);y?.(Qm(ee)),M(ee)},j=Z=>{if(C?.(Z),Z.which===nt.ENTER){const ee=H(Z);y?.(Qm(ee)),M(ee)}},q=Z=>{O(i),b?.(Z)},X={};e.role==="option"&&(X["aria-selected"]=z);let K=l.createElement(Z7,Ru({ref:W,elementRef:G,role:p===null?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":R&&S?null:S},nn($,["extra"]),I,X,{component:"li","aria-disabled":c,style:{...V,...n},className:Q(D,{[`${D}-active`]:B,[`${D}-selected`]:z,[`${D}-disabled`]:U},r),onClick:A,onKeyDown:j,onFocus:q}),f,l.createElement(r6,{props:{...e,isSelected:z},icon:_}));return P&&(K=P(K,e,{selected:z})),K});function eB(e,t){const{eventKey:n}=e,r=Hp(),i=_s(n);return l.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:l.createElement(J7,Ru({},e,{ref:t}))}const Cd=l.forwardRef(eB);function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_v.apply(this,arguments)}const tB=({className:e,children:t,...n},r)=>{const{prefixCls:i,mode:s,rtl:c}=l.useContext(Do);return l.createElement("ul",_v({className:Q(i,c&&`${i}-rtl`,`${i}-sub`,`${i}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},o6=l.forwardRef(tB);function ZS(e,t){return dr(e).map((n,r)=>{if(l.isValidElement(n)){const{key:i}=n;let s=n.props?.eventKey??i;s==null&&(s=`tmp_key-${[...t,r].join("-")}`);const d={key:s,eventKey:s};return l.cloneElement(n,d)}return n})}const Er={adjustX:1,adjustY:1},nB={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},leftTop:{points:["tr","tl"],overflow:Er},leftBottom:{points:["br","bl"],overflow:Er},rightTop:{points:["tl","tr"],overflow:Er},rightBottom:{points:["bl","br"],overflow:Er}},rB={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},rightTop:{points:["tr","tl"],overflow:Er},rightBottom:{points:["br","bl"],overflow:Er},leftTop:{points:["tl","tr"],overflow:Er},leftBottom:{points:["bl","br"],overflow:Er}};function a6(e,t,n){if(t)return t;if(n)return n[e]||n.other}const oB={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aB({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:s,popupOffset:c,disabled:d,mode:f,onVisibleChange:p}){const{getPopupContainer:g,rtl:h,subMenuOpenDelay:y,subMenuCloseDelay:C,builtinPlacements:b,triggerSubMenuAction:$,forceSubMenuRender:S,rootClassName:w,motion:M,defaultMotions:x}=l.useContext(Do),[R,T]=l.useState(!1),N=h?{...rB,...b}:{...nB,...b},O=oB[f],P=a6(f,M,x),D=l.useRef(P);f!=="inline"&&(D.current=P);const W={...D.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},k=l.useRef();return l.useEffect(()=>(k.current=Ht(()=>{T(t)}),()=>{Ht.cancel(k.current)}),[t]),l.createElement(ud,{prefixCls:e,popupClassName:Q(`${e}-popup`,{[`${e}-rtl`]:h},s,w),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:O,popupVisible:R,popup:r,popupStyle:i,popupAlign:c&&{offset:c},action:d?[]:[$],mouseEnterDelay:y,mouseLeaveDelay:C,onPopupVisibleChange:p,forceRender:S,popupMotion:W,fresh:!0},n)}function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}function iB({id:e,open:t,keyPath:n,children:r}){const i="inline",{prefixCls:s,forceSubMenuRender:c,motion:d,defaultMotions:f,mode:p}=l.useContext(Do),g=l.useRef(!1);g.current=p===i;const[h,y]=l.useState(!g.current),C=g.current?t:!1;l.useEffect(()=>{g.current&&y(!1)},[p]);const b={...a6(i,d,f)};n.length>1&&(b.motionAppear=!1);const $=b.onVisibleChanged;return b.onVisibleChanged=S=>(!g.current&&!S&&y(!0),$?.(S)),h?null:l.createElement(Mu,{mode:i,locked:!g.current},l.createElement(Sr,Hv({visible:C},b,{forceRender:c,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:S,style:w})=>l.createElement(o6,{id:e,className:S,style:w},r)))}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}const lB=l.forwardRef((e,t)=>{const{style:n,className:r,styles:i,classNames:s,title:c,eventKey:d,warnKey:f,disabled:p,internalPopupClose:g,children:h,itemIcon:y,expandIcon:C,popupClassName:b,popupOffset:$,popupStyle:S,onClick:w,onMouseEnter:M,onMouseLeave:x,onTitleClick:R,onTitleMouseEnter:T,onTitleMouseLeave:N,popupRender:O,...P}=e,D=XO(d),{prefixCls:W,mode:k,openKeys:U,disabled:G,overflowDisabled:L,activeKey:H,selectedKeys:_,itemIcon:B,expandIcon:I,onItemClick:z,onOpenChange:V,onActive:A,popupRender:j}=l.useContext(Do),{_internalRenderSubMenuItem:q}=l.useContext(XS),{isSubPathKey:X}=l.useContext(ZO),K=_s(),Z=`${W}-submenu`,ee=G||p,ie=l.useRef(),ne=l.useRef(),oe=y??B,de=C??I,le=U.includes(d),fe=!L&&le,ge=X(_,d),{active:re,...ue}=t6(d,ee,T,N),[he,pe]=l.useState(!1),Se=ve=>{ee||pe(ve)},Ie=ve=>{Se(!0),M?.({key:d,domEvent:ve})},Re=ve=>{Se(!1),x?.({key:d,domEvent:ve})},we=l.useMemo(()=>re||(k!=="inline"?he||X([H],d):!1),[k,re,H,he,d,X]),se=n6(K.length),be=ve=>{ee||(R?.({key:d,domEvent:ve}),k==="inline"&&V(d,!le))},Ee=Qc(ve=>{w?.(Qm(ve)),z(ve)}),Ne=ve=>{k!=="inline"&&V(d,ve)},Ve=()=>{A(d)},Ge=D&&`${D}-popup`,et=l.useMemo(()=>l.createElement(r6,{icon:k!=="horizontal"?de:void 0,props:{...e,isOpen:fe,isSubMenu:!0}},l.createElement("i",{className:`${Z}-arrow`})),[k,de,e,fe,Z]);let Te=l.createElement("div",Tu({role:"menuitem",style:se,className:`${Z}-title`,tabIndex:ee?null:-1,ref:ie,title:typeof c=="string"?c:null,"data-menu-id":L&&D?null:D,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":Ge,"aria-disabled":ee,onClick:be,onFocus:Ve},ue),c,et);const _e=l.useRef(k);k!=="inline"&&K.length>1?_e.current="vertical":_e.current=k;const Le=_e.current,Qe=l.useMemo(()=>{const ve=l.createElement(Mu,{classNames:s,styles:i,mode:Le==="horizontal"?"vertical":Le},l.createElement(o6,{id:Ge,ref:ne},h)),Pe=O||j;return Pe?Pe(ve,{item:e,keys:K}):ve},[O,j,K,Ge,h,e,Le]);if(!L){const ve=_e.current;Te=l.createElement(aB,{mode:ve,prefixCls:Z,visible:!g&&fe&&k!=="inline",popupClassName:b,popupOffset:$,popupStyle:S,popup:Qe,disabled:ee,onVisibleChange:Ne},Te)}let De=l.createElement(Yo.Item,Tu({ref:t,role:"none"},P,{component:"li",style:n,className:Q(Z,`${Z}-${k}`,r,{[`${Z}-open`]:fe,[`${Z}-active`]:we,[`${Z}-selected`]:ge,[`${Z}-disabled`]:ee}),onMouseEnter:Ie,onMouseLeave:Re}),Te,!L&&l.createElement(iB,{id:Ge,open:fe,keyPath:K},h));return q&&(De=q(De,e,{selected:ge,active:we,open:fe,disabled:ee})),l.createElement(Mu,{classNames:s,styles:i,onItemClick:Ee,mode:k==="horizontal"?"vertical":k,itemIcon:oe,expandIcon:de},De)}),Bp=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=_s(n),s=ZS(r,i),c=Hp();l.useEffect(()=>{if(c)return c.registerPath(n,i),()=>{c.unregisterPath(n,i)}},[i]);let d;return c?d=s:d=l.createElement(lB,Tu({ref:t},e),s),l.createElement(QO.Provider,{value:i},d)});function JS({className:e,style:t}){const{prefixCls:n}=l.useContext(Do);return Hp()?null:l.createElement("li",{role:"separator",className:Q(`${n}-item-divider`,e),style:t})}function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zm.apply(this,arguments)}const sB=l.forwardRef((e,t)=>{const{className:n,title:r,eventKey:i,children:s,...c}=e,{prefixCls:d,classNames:f,styles:p}=l.useContext(Do),g=`${d}-item-group`;return l.createElement("li",Zm({ref:t,role:"presentation"},c,{onClick:h=>h.stopPropagation(),className:Q(g,n)}),l.createElement("div",{role:"presentation",className:Q(`${g}-title`,f?.listTitle),style:p?.listTitle,title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:Q(`${g}-list`,f?.list),style:p?.list},s))}),e1=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=_s(n),s=ZS(r,i);return Hp()?s:l.createElement(sB,Zm({ref:t},nn(e,["warnKey"])),s)});function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(this,arguments)}function Bv(e,t,n){const{item:r,group:i,submenu:s,divider:c}=t;return(e||[]).map((d,f)=>{if(d&&typeof d=="object"){const{label:p,children:g,key:h,type:y,extra:C,...b}=d,$=h??`tmp-${f}`;return g||y==="group"?y==="group"?l.createElement(i,fs({key:$},b,{title:p}),Bv(g,t,n)):l.createElement(s,fs({key:$},b,{title:p}),Bv(g,t,n)):y==="divider"?l.createElement(c,fs({key:$},b)):l.createElement(r,fs({key:$},b,{extra:C}),p,(!!C||C===0)&&l.createElement("span",{className:`${n}-item-extra`},C))}return null}).filter(d=>d)}function g2(e,t,n,r,i){let s=e;const c={divider:JS,item:Cd,group:e1,submenu:Bp,...r};return t&&(s=Bv(t,c,i)),ZS(s,n)}function Lv(){return Lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lv.apply(this,arguments)}const Ai=[],cB=l.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:i,className:s,styles:c,classNames:d,tabIndex:f=0,items:p,children:g,direction:h,id:y,mode:C="vertical",inlineCollapsed:b,disabled:$,disabledOverflow:S,subMenuOpenDelay:w=.1,subMenuCloseDelay:M=.1,forceSubMenuRender:x,defaultOpenKeys:R,openKeys:T,activeKey:N,defaultActiveFirst:O,selectable:P=!0,multiple:D=!1,defaultSelectedKeys:W,selectedKeys:k,onSelect:U,onDeselect:G,inlineIndent:L=24,motion:H,defaultMotions:_,triggerSubMenuAction:B="hover",builtinPlacements:I,itemIcon:z,expandIcon:V,overflowedIndicator:A="...",overflowedIndicatorPopupClassName:j,getPopupContainer:q,onClick:X,onOpenChange:K,onKeyDown:Z,openAnimation:ee,openTransitionName:ie,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe,_internalComponents:de,popupRender:le,...fe}=e,[ge,re]=l.useMemo(()=>[g2(g,p,Ai,de,n),g2(g,p,Ai,{},n)],[g,p,de]),[ue,he]=l.useState(!1),pe=l.useRef(),Se=Ko(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),Ie=h==="rtl",[Re,we]=Yt(R,T),se=Re||Ai,be=(Ke,Et=!1)=>{function mt(){we(Ke),K?.(Ke)}Et?$s.flushSync(mt):mt()},[Ee,Ne]=l.useState(se),Ve=l.useRef(!1),[Ge,et]=l.useMemo(()=>(C==="inline"||C==="vertical")&&b?["vertical",b]:[C,!1],[C,b]),Te=Ge==="inline",[_e,Le]=l.useState(Ge),[Qe,De]=l.useState(et);l.useEffect(()=>{Le(Ge),De(et),Ve.current&&(Te?we(Ee):be(Ai))},[Ge,et]);const[ve,Pe]=l.useState(0),Ze=ve>=ge.length-1||_e!=="horizontal"||S;l.useEffect(()=>{Te&&Ne(se)},[se]),l.useEffect(()=>(Ve.current=!0,()=>{Ve.current=!1}),[]);const{registerPath:Ue,unregisterPath:Fe,refreshOverflowKeys:ze,isSubPathKey:Xe,getKeyPath:rt,getKeys:ot,getSubPathKeys:lt}=Q7(),St=l.useMemo(()=>({registerPath:Ue,unregisterPath:Fe}),[Ue,Fe]),Ct=l.useMemo(()=>({isSubPathKey:Xe}),[Xe]);l.useEffect(()=>{ze(Ze?Ai:ge.slice(ve+1).map(Ke=>Ke.key))},[ve,Ze]);const[qe,at]=Yt(N||O&&ge[0]?.key,N),He=Qc(Ke=>{at(Ke)}),Ae=Qc(()=>{at(void 0)});l.useImperativeHandle(t,()=>({list:pe.current,focus:Ke=>{const Et=ot(),{elements:mt,key2element:Rt,element2key:Ut}=Km(Et,Se),an=KS(pe.current,mt);let kt;qe&&Et.includes(qe)?kt=qe:kt=an[0]?Ut.get(an[0]):ge.find(En=>!En.props.disabled)?.key;const wn=Rt.get(kt);kt&&wn&&wn?.focus?.(Ke)},findItem:({key:Ke})=>{const Et=ot(),{key2element:mt}=Km(Et,Se);return mt.get(Ke)||null}}));const[We,Me]=Yt(W||[],k),Ye=l.useMemo(()=>Array.isArray(We)?We:We==null?Ai:[We],[We]),Je=Ke=>{if(P){const{key:Et}=Ke,mt=Ye.includes(Et);let Rt;D?mt?Rt=Ye.filter(an=>an!==Et):Rt=[...Ye,Et]:Rt=[Et],Me(Rt);const Ut={...Ke,selectedKeys:Rt};mt?G?.(Ut):U?.(Ut)}!D&&se.length&&_e!=="inline"&&be(Ai)},it=Qc(Ke=>{X?.(Qm(Ke)),Je(Ke)}),ft=Qc((Ke,Et)=>{let mt=se.filter(Rt=>Rt!==Ke);if(Et)mt.push(Ke);else if(_e!=="inline"){const Rt=lt(Ke);mt=mt.filter(Ut=>!Rt.has(Ut))}hu(se,mt,!0)||be(mt,!0)}),Dt=G7(_e,qe,Ie,Se,pe,ot,rt,at,(Ke,Et)=>{const mt=Et??!se.includes(Ke);ft(Ke,mt)},Z);l.useEffect(()=>{he(!0)},[]);const $t=l.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe}),[ne,oe]),tn=_e!=="horizontal"||S?ge:ge.map((Ke,Et)=>l.createElement(Mu,{key:Ke.key,overflowDisabled:Et>ve,classNames:d,styles:c},Ke)),wt=l.createElement(Yo,Lv({id:y,ref:pe,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Cd,className:Q(n,`${n}-root`,`${n}-${_e}`,s,{[`${n}-inline-collapsed`]:Qe,[`${n}-rtl`]:Ie},r),dir:h,style:i,role:"menu",tabIndex:f,data:tn,renderRawItem:Ke=>Ke,renderRawRest:Ke=>{const Et=Ke.length,mt=Et?ge.slice(-Et):null;return l.createElement(Bp,{eventKey:jv,title:A,disabled:Ze,internalPopupClose:Et===0,popupClassName:j},mt)},maxCount:_e!=="horizontal"||S?Yo.INVALIDATE:Yo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Ke=>{Pe(Ke)},onKeyDown:Dt},fe));return l.createElement(XS.Provider,{value:$t},l.createElement(UO.Provider,{value:Se},l.createElement(Mu,{prefixCls:n,rootClassName:r,classNames:d,styles:c,mode:_e,openKeys:se,rtl:Ie,disabled:$,motion:ue?H:null,defaultMotions:ue?_:null,activeKey:qe,onActive:He,onInactive:Ae,selectedKeys:Ye,inlineIndent:L,subMenuOpenDelay:w,subMenuCloseDelay:M,forceSubMenuRender:x,builtinPlacements:I,triggerSubMenuAction:B,getPopupContainer:q,itemIcon:z,expandIcon:V,onItemClick:it,onOpenChange:ft,popupRender:le},l.createElement(ZO.Provider,{value:Ct},wt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(KO.Provider,{value:St},re)))))}),Hs=cB;Hs.Item=Cd;Hs.SubMenu=Bp;Hs.ItemGroup=e1;Hs.Divider=JS;var uB={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"};function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vv.apply(this,arguments)}const dB=(e,t)=>l.createElement(gt,Vv({},e,{ref:t,icon:uB})),fB=l.forwardRef(dB),i6=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),mB=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:s,headerPadding:c,headerColor:d,footerPadding:f,fontSize:p,bodyBg:g,headerBg:h}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:s,padding:c,color:d,lineHeight:te(s),background:h,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:p,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},l6=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:s,marginXXS:c,colorTextLightSolid:d,colorBgContainer:f}=e,p=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${p}px`,headerColor:i,footerPadding:`${s}px ${p}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:i}},s6=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],c6=Pt("Layout",mB,l6,{deprecatedTokens:s6}),pB=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:s,triggerHeight:c,triggerColor:d,triggerBg:f,headerHeight:p,zeroTriggerWidth:g,zeroTriggerHeight:h,borderRadiusLG:y,lightSiderBg:C,lightTriggerColor:b,lightTriggerBg:$,bodyBg:S}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:d,lineHeight:te(c),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:p,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:h,color:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${te(y)} ${te(y)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${te(y)} 0 0 ${te(y)}`}},"&-light":{background:C,[`${t}-trigger`]:{color:b,background:$},[`${t}-zero-width-trigger`]:{color:b,background:$,border:`1px solid ${S}`,borderInlineStart:0}}}}},gB=Pt(["Layout","Sider"],pB,l6,{deprecatedTokens:s6}),h2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},hB=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Lp=l.createContext({}),yB=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),u6=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:s,defaultCollapsed:c=!1,theme:d="dark",style:f={},collapsible:p=!1,reverseArrow:g=!1,width:h=200,collapsedWidth:y=80,zeroWidthTriggerStyle:C,breakpoint:b,onCollapse:$,onBreakpoint:S,...w}=e,{siderHook:M}=l.useContext(i6),[x,R]=l.useState("collapsed"in e?e.collapsed:c),[T,N]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const O=(ee,ie)=>{"collapsed"in e||R(ee),$?.(ee,ie)},{getPrefixCls:P,direction:D}=l.useContext(dt),W=P("layout-sider",n),[k,U]=gB(W),G=l.useRef(null);G.current=ee=>{N(ee.matches),S?.(ee.matches),x!==ee.matches&&O(ee.matches,"responsive")},l.useEffect(()=>{function ee(ne){return G.current?.(ne)}let ie;return typeof window?.matchMedia<"u"&&b&&b in h2&&(ie=window.matchMedia(`screen and (max-width: ${h2[b]})`),typeof ie?.addEventListener=="function"&&ie.addEventListener("change",ee),ee(ie)),()=>{typeof ie?.removeEventListener=="function"&&ie.removeEventListener("change",ee)}},[b]),l.useEffect(()=>{const ee=yB("ant-sider-");return M.addSider(ee),()=>M.removeSider(ee)},[]);const L=()=>{O(!x,"clickTrigger")},H=nn(w,["collapsed"]),_=x?y:h,B=hB(_)?`${_}px`:String(_),I=Number.parseFloat(String(y||0))===0?l.createElement("span",{onClick:L,className:Q(`${W}-zero-width-trigger`,`${W}-zero-width-trigger-${g?"right":"left"}`),style:C},i||l.createElement(fB,null)):null,z=D==="rtl"==!g,j={expanded:z?l.createElement(ws,null):l.createElement(Eu,null),collapsed:z?l.createElement(Eu,null):l.createElement(ws,null)}[x?"collapsed":"expanded"],q=i!==null?I||l.createElement("div",{className:`${W}-trigger`,onClick:L,style:{width:B}},i||j):null,X={...f,flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B},K=Q(W,`${W}-${d}`,{[`${W}-collapsed`]:!!x,[`${W}-has-trigger`]:p&&i!==null&&!I,[`${W}-below`]:!!T,[`${W}-zero-width`]:Number.parseFloat(B)===0},r,k,U),Z=l.useMemo(()=>({siderCollapsed:x}),[x]);return l.createElement(Lp.Provider,{value:Z},l.createElement("aside",{className:K,...H,style:X,ref:t},l.createElement("div",{className:`${W}-children`},s),p||T&&I?q:null))});var bB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}const vB=(e,t)=>l.createElement(gt,Fv({},e,{ref:t,icon:bB})),t1=l.forwardRef(vB),Jm=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),d6=e=>{const{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:s}=l.useContext(dt),c=s("menu",t),d=Q({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(JS,{className:d,...i})},f6=e=>{const{className:t,children:n,icon:r,title:i,danger:s,extra:c}=e,{prefixCls:d,firstLevel:f,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:h,styles:y,classNames:C}=l.useContext(Jm),b=R=>{const T=n?.[0],N=l.createElement("span",{className:Q(`${d}-title-content`,f?C.itemContent:C.subMenu.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:f?y.itemContent:y.subMenu.itemContent},n);return(!r||l.isValidElement(n)&&n.type==="span")&&n&&R&&f&&typeof T=="string"?l.createElement("div",{className:`${d}-inline-collapsed-noicon`},T.charAt(0)):N},{siderCollapsed:$}=l.useContext(Lp);let S=i;typeof i>"u"?S=f?n:"":i===!1&&(S="");const w={title:S};!$&&!h&&(w.title=null,w.open=!1);const M=dr(n).length;let x=l.createElement(Cd,{...nn(e,["title","icon","danger"]),className:Q(f?C.item:C.subMenu.item,{[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(r?M+1:M)===1},t),style:{...f?y.item:y.subMenu.item,...e.style},title:typeof i=="string"?i:void 0},nr(r,R=>({className:Q(`${d}-item-icon`,f?C.itemIcon:C.subMenu.itemIcon,R.className),style:{...f?y.itemIcon:y.subMenu.itemIcon,...R.style}})),b(h));return g||(x=l.createElement(ur,{...w,placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},x)),x},ep=l.createContext(null),SB=l.forwardRef((e,t)=>{const{children:n,...r}=e,i=l.useContext(ep),s=l.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=VP(n),d=mi(t,c?ol(n):null);return l.createElement(ep.Provider,{value:s},l.createElement(xa,{space:!0},c?l.cloneElement(n,{ref:d}):n))}),CB=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:s,lineType:c,itemPaddingInline:d}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(s)} ${c} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${t}-item:hover,
|
|
190
|
+
`]:{animationName:Ip},"&-hidden":{display:"none"},[r]:{...l2(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...$o},"&-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}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...l2(e),color:e.colorTextDisabled}},[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Xo(e,"slide-up"),Xo(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down")]},D7=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},s2=4,j7=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:c,lineWidth:d,colorIcon:f,colorIconHover:p,inputPaddingHorizontalBase:g}=e;return{"&-multiple":{"--select-multi-item-background":e.multipleItemBg,"--select-multi-item-border-color":"transparent","--select-multi-item-border-radius":e.borderRadiusSM,"--select-multi-item-height":e.multipleItemHeight,"--select-multi-padding-base":"calc((var(--select-height) - var(--select-multi-item-height)) / 2)","--select-multi-padding-vertical":`calc(var(--select-multi-padding-base) - ${c} - ${d})`,"--select-multi-item-padding-horizontal":`calc(${g} - var(--select-multi-padding-vertical) - ${d} * 2)`,paddingBlock:"var(--select-multi-padding-vertical)",paddingInlineStart:`calc(var(--select-multi-padding-base) - ${d})`,[`${t}-prefix`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:"var(--select-line-height)",insetInlineStart:"var(--select-multi-item-padding-horizontal)",width:"calc(100% - var(--select-multi-item-padding-horizontal))",top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:"var(--select-font-size)"},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${s2}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
191
|
+
${t}-content-item-suffix:first-child`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-selection-item`]:{lineHeight:`calc(var(--select-multi-item-height) - ${d} * 2)`,border:`${d} solid var(--select-multi-item-border-color)`,display:"flex",marginBlock:c,marginInlineEnd:n(c).mul(2).equal(),background:"var(--select-multi-item-background)",borderRadius:"var(--select-multi-item-border-radius)",paddingInlineStart:i,paddingInlineEnd:s,transition:["height","line-height","padding"].map(h=>`${h} ${e.motionDurationSlow}`).join(","),"&-content":{...$o,marginInlineEnd:s},"&-remove":{...Is(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}},[`${t}-input`]:{lineHeight:n(c).mul(2).add("var(--select-multi-item-height)").equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:s2,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{"--select-multi-item-height":e.multipleItemHeightSM,"--select-multi-item-border-radius":e.borderRadiusXS},[`&${t}-lg`]:{"--select-multi-item-height":e.multipleItemHeightLG,"--select-multi-item-border-radius":e.borderRadius},[`&${t}-filled`]:{"--select-multi-item-border-color":e.colorSplit,"--select-multi-item-background":e.colorBgContainer,[`&${t}-disabled`]:{"--select-multi-item-border-color":"transparent"}}}}},_y=(e,t)=>{const{componentCls:n}=e,{border:r,borderHover:i,borderActive:s,borderOutline:c}=t,d=t.background||e.selectorBg||e.colorBgContainer;return{"--select-border-color":r,"--select-background":d,"--select-color":t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{"--select-border-color":i,"--select-background":t.backgroundHover||d},[`&${n}-focused`]:{"--select-border-color":s,"--select-background":t.backgroundActive||d,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{"--select-border-color":t.borderDisabled||t.border,"--select-background":t.backgroundDisabled||t.background}}},kf=(e,t,n,r={},i={},s)=>{const{componentCls:c}=e;return{[`&${c}-${t}`]:[_y(e,n),{[`&${c}-status-error`]:_y(e,{...n,color:r.color||e.colorError,...r}),[`&${c}-status-warning`]:_y(e,{...n,color:i.color||e.colorWarning,...i})},s]}},_7=e=>{const{componentCls:t,calc:n,fontHeight:r,controlHeight:i,iconCls:s}=e;return{[t]:[{"--select-border-radius":e.borderRadius,"--select-border-color":"#000","--select-border-size":e.lineWidth,"--select-background":e.colorBgContainer,"--select-font-size":e.fontSize,"--select-line-height":e.lineHeight,"--select-font-height":r,"--select-color":e.colorText,"--select-height":i,"--select-padding-horizontal":n(e.paddingSM).sub(e.lineWidth).equal(),"--select-padding-vertical":"calc((var(--select-height) - var(--select-font-height)) / 2 - var(--select-border-size))",...Zt(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:"var(--select-border-radius)",borderWidth:"var(--select-border-size)",borderStyle:e.lineType,borderColor:"var(--select-border-color)",background:"var(--select-background)",fontSize:"var(--select-font-size)",lineHeight:"var(--select-line-height)",color:"var(--select-color)",paddingInline:"var(--select-padding-horizontal)",paddingBlock:"var(--select-padding-vertical)",[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...$o,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:n(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{...$o,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`&-open ${t}-content-value`]:{color:e.colorTextPlaceholder},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[s]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{"--select-height":e.controlHeightSM,"--select-padding-horizontal":n(e.paddingXS).sub(e.lineWidth).equal(),"--select-border-radius":e.borderRadiusSM},"&-lg":{"--select-height":e.controlHeightLG,"--select-font-size":e.fontSizeLG,"--select-line-height":e.lineHeightLG,"--select-font-height":e.fontHeightLG,"--select-border-radius":e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:"calc(var(--select-padding-vertical) * -1)",lineHeight:"calc(var(--select-font-height) + var(--select-padding-vertical) * 2)"},[`${t}-content`]:{alignSelf:"center"}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},j7(e),kf(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),kf(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),kf(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),kf(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),D7(e)]}},H7=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:s,controlHeightLG:c,paddingXXS:d,controlPaddingHorizontal:f,zIndexPopupBase:p,colorText:g,fontWeightStrong:h,controlItemBgActive:y,controlItemBgHover:C,colorBgContainer:b,colorFillSecondary:$,colorBgContainerDisabled:S,colorTextDisabled:w,colorPrimaryHover:M,colorPrimary:x,controlOutline:R}=e,T=d*2,N=r*2,O=Math.min(i-T,i-N),P=Math.min(s-T,s-N),D=Math.min(c-T,c-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:p+50,optionSelectedColor:g,optionSelectedFontWeight:h,optionSelectedBg:y,optionActiveBg:C,optionPadding:`${(i-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:b,clearBg:b,singleItemHeightLG:c,multipleItemBg:$,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:P,multipleItemHeightLG:D,multipleSelectorBgDisabled:S,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:M,activeBorderColor:x,activeOutlineColor:R,selectAffixPadding:d}},B7=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Zt(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...$o,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},L7=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},B7(e),A7(e),{[`${t}-rtl`]:{direction:"rtl"}},pd(e,{focusElCls:`${t}-focused`})]},V7=Pt("Select",(e,{rootPrefixCls:t})=>{const n=Ot(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[L7(n),_7(n)]},H7,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var F7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rv.apply(this,arguments)}const k7=(e,t)=>l.createElement(gt,Rv({},e,{ref:t,icon:F7})),sl=l.forwardRef(k7);var W7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}const q7=(e,t)=>l.createElement(gt,Tv({},e,{ref:t,icon:W7})),Y7=l.forwardRef(q7);var U7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(this,arguments)}const G7=(e,t)=>l.createElement(gt,Ov({},e,{ref:t,icon:U7})),PO=l.forwardRef(G7);function zO({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:s,hasFeedback:c,showSuffixIcon:d,feedbackIcon:f,showArrow:p,componentName:g}){const h=t??l.createElement(zs,null),y=S=>e===null&&!c&&!p?null:l.createElement(l.Fragment,null,d!==!1&&S,c&&f);let C=null;e!==void 0?C=y(e):i?C=y(l.createElement(Ep,{spin:!0})):C=({open:S,showSearch:w})=>y(S&&w?l.createElement(PO,null):l.createElement(Y7,null));let b=null;n!==void 0?b=n:s?b=l.createElement(sl,null):b=null;let $=null;return r!==void 0?$=r:$=l.createElement(qr,null),{clearIcon:h,suffixIcon:C,itemIcon:b,removeIcon:$}}function X7(e){return ae.useMemo(()=>{if(e)return(...t)=>ae.createElement(xa,{space:!0},e.apply(void 0,t))},[e])}function K7(e,t){return t!==void 0?t:e!==null}const AO="SECRET_COMBOBOX_MODE_DO_NOT_USE",Q7=(e,t)=>{const{prefixCls:n,bordered:r,className:i,rootClassName:s,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:p=256,placement:g,listItemHeight:h,size:y,disabled:C,notFoundContent:b,status:$,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:M,direction:x,style:R,allowClear:T,variant:N,popupStyle:O,dropdownStyle:P,transitionName:D,tagRender:W,maxCount:k,prefix:U,dropdownRender:G,popupRender:L,onDropdownVisibleChange:H,onOpenChange:_,styles:B,classNames:I,...z}=e,{getPopupContainer:V,getPrefixCls:A,renderEmpty:j,direction:q,virtual:X,popupMatchSelectWidth:K,popupOverflow:Z}=l.useContext(dt),{showSearch:ee,style:ie,styles:ne,className:oe,classNames:de}=It("select"),[,le]=Wr(),fe=h??le?.controlHeight,ge=A("select",n),re=A(),ue=x??q,{compactSize:he,compactItemClassnames:pe}=Ma(ge,ue),[Se,Ie]=js("select",N,r),Re=ar(ge),[we,se]=V7(ge,Re),be=l.useMemo(()=>{const{mode:Ye}=e;if(Ye!=="combobox")return Ye===AO?"combobox":Ye},[e.mode]),Ee=be==="multiple"||be==="tags",Ne=K7(e.suffixIcon,e.showArrow),Ve=M??w??K,Ge=X7(L||G),et=_||H,{status:Te,hasFeedback:_e,isFormItemInput:Le,feedbackIcon:Qe}=l.useContext(Tr),De=Ds(Te,$);let ve;b!==void 0?ve=b:be==="combobox"?ve=null:ve=j?.("Select")||l.createElement(IO,{componentName:"Select"});const{suffixIcon:Pe,itemIcon:Ze,removeIcon:Ue,clearIcon:Fe}=zO({...z,multiple:Ee,hasFeedback:_e,feedbackIcon:Qe,showSuffixIcon:Ne,componentName:"Select"}),ze=T===!0?{clearIcon:Fe}:T,Xe=nn(z,["suffixIcon","itemIcon"]),rt=fr(Ye=>y??he??Ye),ot=l.useContext(kr),lt=C??ot,St={...e,variant:Se,status:De,disabled:lt,size:rt},[Ct,qe]=Lt([de,I],[ne,B],{props:St},{popup:{_default:"root"}}),at=Q(Ct.popup?.root,d,f,{[`${ge}-dropdown-${ue}`]:ue==="rtl"},s,se,Re,we),He={...qe.popup?.root,...O??P},Ae=Q({[`${ge}-lg`]:rt==="large",[`${ge}-sm`]:rt==="small",[`${ge}-rtl`]:ue==="rtl",[`${ge}-${Se}`]:Ie,[`${ge}-in-form-item`]:Le},Ji(ge,De,_e),pe,oe,i,Ct.root,s,se,Re,we),We=l.useMemo(()=>g!==void 0?g:ue==="rtl"?"bottomRight":"bottomLeft",[g,ue]),[Me]=pi("SelectLike",qe.popup?.root?.zIndex??He?.zIndex);return l.createElement(qS,{ref:t,virtual:X,classNames:Ct,styles:qe,showSearch:ee,...Xe,style:{...qe.root,...ie,...R},popupMatchSelectWidth:Ve,transitionName:Go(re,"slide-up",D),builtinPlacements:z7(S,Z),listHeight:p,listItemHeight:fe,mode:be,prefixCls:ge,placement:We,direction:ue,prefix:U,suffixIcon:Pe,menuItemSelectedIcon:Ze,removeIcon:Ue,allowClear:ze,notFoundContent:ve,className:Ae,getPopupContainer:c||V,popupClassName:at,disabled:lt,popupStyle:{...qe.popup?.root,...He,zIndex:Me},maxCount:Ee?k:void 0,tagRender:Ee?W:void 0,popupRender:Ge,onPopupVisibleChange:et})},Lr=l.forwardRef(Q7),Z7=zp(Lr,"popupAlign");Lr.SECRET_COMBOBOX_MODE_DO_NOT_USE=AO;Lr.Option=WS;Lr.OptGroup=kS;Lr._InternalPanelDoNotUseOrYouWillBeFired=Z7;const el=["xxl","xl","lg","md","sm","xs"],J7=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),eH=e=>{const t=e,n=[].concat(el).reverse();return n.forEach((r,i)=>{const s=r.toUpperCase(),c=`screen${s}Min`,d=`screen${s}`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);if(i<n.length-1){const f=`screen${s}Max`;if(!(t[d]<=t[f]))throw new Error(`${d}<=${f} fails : !(${t[d]}<=${t[f]})`);const g=`screen${n[i+1].toUpperCase()}Min`;if(!(t[f]<=t[g]))throw new Error(`${f}<=${g} fails : !(${t[f]}<=${t[g]})`)}}),e},tH=()=>{const[,e]=Wr(),t=J7(eH(e));return ae.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return i=s,n.forEach(c=>c(i)),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(i),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.entries(t).forEach(([s,c])=>{const d=({matches:p})=>{this.dispatch({...i,[s]:p})},f=window.matchMedia(c);typeof f?.addEventListener=="function"&&f.addEventListener("change",d),this.matchHandlers[c]={mql:f,listener:d},d(f)})},unregister(){Object.values(t).forEach(s=>{const c=this.matchHandlers[s];typeof c?.mql?.removeEventListener=="function"&&c.mql.removeEventListener("change",c?.listener)}),n.clear()}}},[t])};function Ap(e=!0,t={}){const n=l.useRef(t),[,r]=B5(),i=tH();return Nt(()=>{const s=i.subscribe(c=>{n.current=c,e&&r()});return()=>i.unsubscribe(s)},[]),n.current}const Rs=e=>e?typeof e=="function"?e():e:null,YS=e=>{const{children:t,prefixCls:n,id:r,classNames:i,styles:s,className:c,style:d}=e;return l.createElement("div",{id:r,className:Q(`${n}-container`,i?.container,c),style:{...s?.container,...d},role:"tooltip"},typeof t=="function"?t():t)},es={shiftX:64,adjustY:1},ts={adjustX:1,shiftY:!0},yo=[0,0],nH={left:{points:["cr","cl"],overflow:ts,offset:[-4,0],targetOffset:yo},right:{points:["cl","cr"],overflow:ts,offset:[4,0],targetOffset:yo},top:{points:["bc","tc"],overflow:es,offset:[0,-4],targetOffset:yo},bottom:{points:["tc","bc"],overflow:es,offset:[0,4],targetOffset:yo},topLeft:{points:["bl","tl"],overflow:es,offset:[0,-4],targetOffset:yo},leftTop:{points:["tr","tl"],overflow:ts,offset:[-4,0],targetOffset:yo},topRight:{points:["br","tr"],overflow:es,offset:[0,-4],targetOffset:yo},rightTop:{points:["tl","tr"],overflow:ts,offset:[4,0],targetOffset:yo},bottomRight:{points:["tr","br"],overflow:es,offset:[0,4],targetOffset:yo},rightBottom:{points:["bl","br"],overflow:ts,offset:[4,0],targetOffset:yo},bottomLeft:{points:["tl","bl"],overflow:es,offset:[0,4],targetOffset:yo},leftBottom:{points:["br","bl"],overflow:ts,offset:[-4,0],targetOffset:yo}};function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nv.apply(this,arguments)}const rH=l.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:s="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:f,motion:p,placement:g="right",align:h={},destroyOnHidden:y=!1,defaultVisible:C,getTooltipContainer:b,arrowContent:$,overlay:S,id:w,showArrow:M=!0,classNames:x,styles:R,...T}=e,N=Ko(w),O=l.useRef(null);l.useImperativeHandle(t,()=>O.current);const P={...T};"visible"in e&&(P.popupVisible=e.visible);const D=l.useMemo(()=>{if(!M)return!1;const k=M===!0?{}:M;return{...k,className:Q(k.className,x?.arrow),style:{...k.style,...R?.arrow},content:k.content??$}},[M,x?.arrow,R?.arrow,$]),W=({open:k})=>{const U=l.Children.only(c),G={"aria-describedby":S&&k?N:void 0};return l.cloneElement(U,G)};return l.createElement(ud,Nv({popupClassName:x?.root,prefixCls:s,popup:l.createElement(YS,{key:"content",prefixCls:s,id:N,classNames:x,styles:R},S),action:n,builtinPlacements:nH,popupPlacement:g,ref:O,popupAlign:h,getPopupContainer:b,onOpenChange:d,afterOpenChange:f,popupMotion:p,defaultPopupVisible:C,autoDestroy:y,mouseLeaveDelay:i,popupStyle:R?.root,mouseEnterDelay:r,arrow:D,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:R?.uniqueContainer},P),W)});function Dp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,s=0,c=i,d=r*1/Math.sqrt(2),f=i-r*(1-1/Math.sqrt(2)),p=i-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-p,y=g,C=2*i-d,b=f,$=2*i-s,S=c,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),M=r*(Math.sqrt(2)-1),x=`polygon(${M}px 100%, 50% ${M}px, ${2*i-M}px 100%, ${M}px 100%)`,R=`path('M ${s} ${c} A ${r} ${r} 0 0 0 ${d} ${f} L ${p} ${g} A ${n} ${n} 0 0 1 ${h} ${y} L ${C} ${b} A ${r} ${r} 0 0 0 ${$} ${S} Z')`;return{arrowShadowWidth:w,arrowPath:R,arrowPolygon:x}}const DO=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:s,arrowShadowWidth:c,borderRadiusXS:d,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},jO=8;function jp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?jO:r}}function Wf(e,t){return e?t:{}}function US(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:s,arrowOffsetHorizontal:c}=e,{arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...DO(e,t,i),"&:before":{background:t}}],...Wf(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Wf(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Wf(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}}),...Wf(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}})}}}function oH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const c={...s,...i};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const c2={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},aH={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},iH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function _O(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:s,visibleFirst:c}=e,d=t/2,f={},p=jp({contentRadius:s,limitVerticalRadius:!0});return Object.keys(c2).forEach(g=>{const y={...r&&aH[g]||c2[g],offset:[0,0],dynamicInset:!0};switch(f[g]=y,iH.has(g)&&(y.autoArrow=!1),g){case"top":case"topLeft":case"topRight":y.offset[1]=-d-i;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+i;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-i;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+i;break}if(r)switch(g){case"topLeft":case"bottomLeft":y.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-p.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=p.arrowOffsetHorizontal*2-d;break}y.overflow=oH(g,p,t,n),c&&(y.htmlRegion="visibleFirst")}),f}const GS=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return ae.useMemo(()=>{const r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},lH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:s,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:f,boxShadowSecondary:p,paddingSM:g,paddingXS:h,arrowOffsetHorizontal:y,sizePopupArrow:C}=e,b=t(c).add(C).add(y).equal(),S={minWidth:t(c).mul(2).add(C).equal(),minHeight:f,padding:`${te(e.calc(g).div(2).equal())} ${te(h)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:c,boxShadow:p,boxSizing:"border-box"},w={"--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...Zt(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...w,"&-hidden":{display:"none"},"--antd-arrow-background-color":s,[`${n}-container`]:[S,_T(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,jO)}},[`${n}-content`]:{position:"relative"},...$p(e,(M,{darkColor:x})=>({[`&${n}-${M}`]:{[`${n}-container`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}})),"&-rtl":{direction:"rtl"}}},US(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...S,...w,position:"absolute",zIndex:t(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},sH=e=>({zIndexPopup:e.zIndexPopupBase+70,...jp({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Dp(Ot(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),HO=(e,t,n=!0)=>Pt("Tooltip",i=>{const{borderRadius:s,colorTextLightSolid:c,colorBgSpotlight:d}=i,f=Ot(i,{tooltipMaxWidth:250,tooltipColor:c,tooltipBorderRadius:s,tooltipBg:d});return[lH(f),md(i,"zoom-big-fast")]},sH,{resetStyle:!1,injectStyle:n})(e,t),cH=ui.map(e=>`${e}-inverse`),uH=["success","processing","error","default","warning"];function _p(e,t=!0){return t?[].concat(xn(cH),xn(ui)).includes(e):ui.includes(e)}function dH(e){return uH.includes(e)}function BO(e,t){const n=_p(t),r=Q({[`${e}-${t}`]:t&&n}),i={},s={},c=dj(t).toRgb(),f=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=f,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:s}}const fH=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:s,overlayInnerStyle:c,classNames:d,styles:f}=e,{getPrefixCls:p}=l.useContext(dt),g=p("tooltip",t),h=ar(g),[y,C]=HO(g,h),b=BO(g,s),$=b.arrowStyle,S=l.useMemo(()=>({container:{...c,...b.overlayStyle}}),[c,b.overlayStyle]),w={...e,placement:r},[M,x]=Lt([d],[S,f],{props:w}),R=Q(h,y,C,g,`${g}-pure`,`${g}-placement-${r}`,n,b.className);return l.createElement("div",{className:R,style:$},l.createElement("div",{className:`${g}-arrow`}),l.createElement(YS,{...e,className:y,prefixCls:g,classNames:M,styles:x},i))},mH=l.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:i,color:s,children:c,afterOpenChange:d,arrow:f,destroyTooltipOnHide:p,destroyOnHidden:g,title:h,overlay:y,trigger:C,builtinPlacements:b,autoAdjustOverflow:$=!0,motion:S,getPopupContainer:w,placement:M="top",mouseEnterDelay:x=.1,mouseLeaveDelay:R=.1,rootClassName:T,styles:N,classNames:O,onOpenChange:P,overlayInnerStyle:D,overlayStyle:W,overlayClassName:k,...U}=e,[,G]=Wr(),{getPopupContainer:L,getPrefixCls:H,direction:_,className:B,style:I,classNames:z,styles:V,arrow:A,trigger:j}=It("tooltip"),q=GS(f,A),X=q.show,K=C||j||"hover",Z=l.useRef(null),ee=()=>{Z.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:ee,nativeElement:Z.current?.nativeElement,popupElement:Z.current?.popupElement}));const[ie,ne]=Yt(e.defaultOpen??!1,e.open),oe=!h&&!y&&h!==0,de=Pe=>{ne(oe?!1:Pe),!oe&&P&&P(Pe)},le=l.useMemo(()=>b||_O({arrowPointAtCenter:q?.pointAtCenter??!1,autoAdjustOverflow:$,arrowWidth:X?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0}),[q,b,G,X,$]),fe=l.useMemo(()=>h===0?h:y||h||"",[y,h]),ge=l.createElement(xa,{space:!0},typeof fe=="function"?fe():fe),re={...e,trigger:K,color:s,placement:M,builtinPlacements:b,openClassName:r,arrow:f,autoAdjustOverflow:$,getPopupContainer:w,children:c,destroyTooltipOnHide:p,destroyOnHidden:g},[ue,he]=Lt([z,O],[V,N],{props:re}),pe=H("tooltip",n),Se=H(),Ie=e["data-popover-inject"];let Re=ie;!("open"in e)&&oe&&(Re=!1);const we=l.isValidElement(c)&&!cT(c)?c:l.createElement("span",null,c),se=we.props,be=!se.className||typeof se.className=="string"?Q(se.className,r||`${pe}-open`):se.className,Ee=ar(pe),[Ne,Ve]=HO(pe,Ee,!Ie),Ge=BO(pe,s),et=Ge.arrowStyle,Te=Q(Ee,Ne,Ve),_e=Q(k,{[`${pe}-rtl`]:_==="rtl"},Ge.className,T,Te,B,ue.root),[Le,Qe]=pi("Tooltip",U.zIndex),De={...he.container,...D,...Ge.overlayStyle},ve=l.createElement(rH,{unique:!0,...U,trigger:K,zIndex:Le,showArrow:X,placement:M,mouseEnterDelay:x,mouseLeaveDelay:R,prefixCls:pe,classNames:{root:_e,container:ue.container,arrow:ue.arrow,uniqueContainer:Q(Te,ue.container)},styles:{root:{...et,...he.root,...I,...W},container:De,uniqueContainer:De,arrow:he.arrow},getTooltipContainer:w||i||L,ref:Z,builtinPlacements:le,overlay:ge,visible:Re,onVisibleChange:de,afterVisibleChange:d,arrowContent:l.createElement("span",{className:`${pe}-arrow-content`}),motion:{motionName:Go(Se,"zoom-big-fast",typeof S?.motionName=="string"?S?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:g??!!p},Re?nr(we,{className:be}):we);return l.createElement(ld.Provider,{value:Qe},ve)}),ur=mH;ur._InternalPanelDoNotUseOrYouWillBeFired=fH;ur.UniqueProvider=vT;const pH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:s,boxShadowSecondary:c,colorTextHeading:d,borderRadiusLG:f,zIndexPopup:p,titleMarginBottom:g,colorBgElevated:h,popoverBg:y,titleBorderBottom:C,innerContentPadding:b,titlePadding:$}=e;return[{[t]:{...Zt(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":h,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:f,boxShadow:c,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:g,color:d,fontWeight:i,borderBottom:C,padding:$},[`${t}-content`]:{color:n,padding:b}}},US(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},gH=e=>{const{componentCls:t}=e;return{[t]:ui.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},hH=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:s,zIndexPopupBase:c,borderRadiusLG:d,marginXS:f,lineType:p,colorSplit:g,paddingSM:h}=e,y=n-r,C=y/2,b=y/2-t,$=i;return{titleMinWidth:177,zIndexPopup:c+30,...Dp(e),...jp({contentRadius:d,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${C}px ${$}px ${b}px`:0,titleBorderBottom:s?`${t}px ${p} ${g}`:"none",innerContentPadding:s?`${h}px ${$}px`:0}},LO=Pt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ot(e,{popoverBg:t,popoverColor:n});return[pH(r),gH(r),md(r,"zoom-big")]},hH,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),VO=e=>{const{title:t,content:n,prefixCls:r,classNames:i,styles:s}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:Q(`${r}-title`,i?.title),style:s?.title},t),n&&l.createElement("div",{className:Q(`${r}-content`,i?.content),style:s?.content},n))},yH=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:s="top",title:c,content:d,children:f,classNames:p,styles:g}=e,h=Rs(c),y=Rs(d),C={...e,placement:s},[b,$]=Lt([p],[g],{props:C}),S=Q(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return l.createElement("div",{className:S,style:i},l.createElement("div",{className:`${n}-arrow`}),l.createElement(YS,{...e,className:t,prefixCls:n,classNames:b,styles:$},f||l.createElement(VO,{prefixCls:n,title:h,content:y,classNames:b,styles:$})))},FO=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=l.useContext(dt),s=i("popover",t),[c,d]=LO(s);return l.createElement(yH,{...r,prefixCls:s,hashId:c,className:Q(n,d)})},bH=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:i,overlayClassName:s,placement:c="top",trigger:d,children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:y={},styles:C,classNames:b,motion:$,arrow:S,...w}=e,{getPrefixCls:M,className:x,style:R,classNames:T,styles:N,arrow:O,trigger:P}=It("popover"),D=M("popover",n),[W,k]=LO(D),U=M(),G=GS(S,O),L=d||P||"hover",H={...e,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:y,styles:C,classNames:b},[_,B]=Lt([T,b],[N,C],{props:H}),I=Q(s,W,k,x,_.root),[z,V]=Yt(e.defaultOpen??!1,e.open),A=(Z,ee)=>{V(Z),h?.(Z,ee)},j=Z=>{Z.keyCode===nt.ESC&&A(!1,Z)},q=Z=>{A(Z)},X=Rs(r),K=Rs(i);return l.createElement(ur,{unique:!1,arrow:G,placement:c,trigger:L,mouseEnterDelay:p,mouseLeaveDelay:g,...w,prefixCls:D,classNames:{root:I,container:_.container,arrow:_.arrow},styles:{root:{...B.root,...R,...y},container:B.container,arrow:B.arrow},ref:t,open:z,onOpenChange:q,overlay:X||K?l.createElement(VO,{prefixCls:D,title:X,content:K,classNames:_,styles:B}):null,motion:{motionName:Go(U,"zoom-big",typeof $?.motionName=="string"?$?.motionName:void 0)},"data-popover-inject":!0},nr(f,{onKeyDown:Z=>{l.isValidElement(f)&&f?.props.onKeyDown?.(Z),j(Z)}}))}),kO=bH;kO._InternalPanelDoNotUseOrYouWillBeFired=FO;const u2=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let s;return i&&(s={position:"absolute",top:`${i}00%`,left:0}),l.createElement("span",{style:s,className:Q(`${t}-only-unit`,{current:r})},n)};function vH(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const SH=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),s=Math.abs(n),[c,d]=l.useState(i),[f,p]=l.useState(s),g=()=>{d(i),p(s)};l.useEffect(()=>{const C=setTimeout(g,1e3);return()=>clearTimeout(C)},[i]);let h,y;if(c===i||Number.isNaN(i)||Number.isNaN(c))h=[l.createElement(u2,{...e,key:i,current:!0})],y={transition:"none"};else{h=[];const C=i+10,b=[];for(let M=i;M<=C;M+=1)b.push(M);const $=f<s?1:-1,S=b.findIndex(M=>M%10===c);h=($<0?b.slice(0,S+1):b.slice(S)).map((M,x)=>{const R=M%10;return l.createElement(u2,{...e,key:M,value:R,offset:$<0?x-S:x,current:x===S})}),y={transform:`translateY(${-vH(c,i,$)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},h)},CH=l.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:s,style:c,title:d,show:f,component:p="sup",children:g,...h}=e,{getPrefixCls:y}=l.useContext(dt),C=y("scroll-number",n),b={...h,"data-show":f,style:c,className:Q(C,i,s),title:d};let $=r;if(r&&Number(r)%1===0){const S=String(r).split("");$=l.createElement("bdi",null,S.map((w,M)=>l.createElement(SH,{prefixCls:C,count:Number(r),value:w,key:S.length-M})))}return c?.borderColor&&(b.style={...c,boxShadow:`0 0 0 1px ${c.borderColor} inset`}),g?nr(g,S=>({className:Q(`${C}-custom-component`,S?.className,s)})):l.createElement(p,{...b,ref:t},$)}),$H=new At("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),xH=new At("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),wH=new At("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),EH=new At("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),MH=new At("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),RH=new At("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),TH=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:s,textFontSizeSM:c,statusSize:d,dotSize:f,textFontWeight:p,indicatorHeight:g,indicatorHeightSM:h,marginXS:y,calc:C}=e,b=`${r}-scroll-number`,$=$p(e,(S,{darkColor:w})=>({[`&${t} ${t}-color-${S}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[t]:{...Zt(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:p,fontSize:s,lineHeight:te(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:C(g).div(2).equal(),boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:h,height:h,fontSize:c,lineHeight:te(h),borderRadius:C(h).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${te(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:f,minWidth:f,height:f,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${b}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:RH,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:d,height:d,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:$H,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:y,color:e.colorText,fontSize:e.fontSize}},...$,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:xH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:wH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:EH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:MH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${b}-custom-component, ${t}-count`]:{transform:"none"},[`${b}-custom-component, ${b}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[b]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${b}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${b}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${b}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${b}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},WO=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,s=t,c=n,d=e.colorTextLightSolid,f=e.colorError,p=e.colorErrorHover;return Ot(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:d,badgeColor:f,badgeColorHover:p,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},qO=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},OH=Pt("Badge",e=>{const t=WO(e);return TH(t)},qO),NH=l.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:i,status:s,text:c,color:d,count:f=null,overflowCount:p=99,dot:g=!1,size:h="default",title:y,offset:C,style:b,className:$,rootClassName:S,classNames:w,styles:M,showZero:x=!1,...R}=e,{getPrefixCls:T,direction:N,className:O,style:P,classNames:D,styles:W}=It("badge"),k=T("badge",n),[U,G]=OH(k),L={...e,overflowCount:p,size:h,dot:g,showZero:x},[H,_]=Lt([D,w],[W,M],{props:L}),B=f>p?`${p}+`:f,I=B==="0"||B===0||c==="0"||c===0,z=f===null||I&&!x,V=(Mr(s)||Mr(d))&&z,A=Mr(s)||!I,j=g&&!I,q=j?"":B,X=l.useMemo(()=>((!Mr(q)||q==="")&&(!Mr(c)||c==="")||I&&!x)&&!j,[q,I,x,j,c]),K=l.useRef(f);X||(K.current=f);const Z=K.current,ee=l.useRef(q);X||(ee.current=q);const ie=ee.current,ne=l.useRef(j);X||(ne.current=j);const oe=l.useMemo(()=>{if(!C)return{...P,...b};const Se=Number.parseInt(C[0],10);return{...{marginTop:C[1],insetInlineEnd:-Se},...P,...b}},[C,b,P]),de=y??(typeof Z=="string"||typeof Z=="number"?Z:void 0),le=!X&&(c===0?x:!!c&&c!==!0),fe=le?l.createElement("span",{className:`${k}-status-text`},c):null,ge=!Z||typeof Z!="object"?void 0:nr(Z,Se=>({style:{...oe,...Se.style}})),re=_p(d,!1),ue=Q(H.indicator,{[`${k}-status-dot`]:V,[`${k}-status-${s}`]:!!s,[`${k}-color-${d}`]:re}),he={};d&&!re&&(he.color=d,he.background=d);const pe=Q(k,{[`${k}-status`]:V,[`${k}-not-a-wrapper`]:!i,[`${k}-rtl`]:N==="rtl"},$,S,O,H.root,U,G);if(!i&&V&&(c||A||!z)){const Se=oe.color;return l.createElement("span",{...R,className:pe,style:{..._.root,...oe}},l.createElement("span",{className:ue,style:{..._.indicator,...he}}),le&&l.createElement("span",{style:{color:Se},className:`${k}-status-text`},c))}return l.createElement("span",{ref:t,...R,className:pe,style:_.root},i,l.createElement(Sr,{visible:!X,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Se})=>{const Ie=T("scroll-number",r),Re=ne.current,we=Q(H.indicator,{[`${k}-dot`]:Re,[`${k}-count`]:!Re,[`${k}-count-sm`]:h==="small",[`${k}-multiple-words`]:!Re&&ie&&ie.toString().length>1,[`${k}-status-${s}`]:!!s,[`${k}-color-${d}`]:re});let se={..._.indicator,...oe};return d&&!re&&(se=se||{},se.background=d),l.createElement(CH,{prefixCls:Ie,show:!X,motionClassName:Se,className:we,count:ie,title:de,style:se,key:"scrollNumber"},ge)}),fe)}),IH=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:s}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=$p(e,(p,{darkColor:g})=>({[`&${c}-color-${p}`]:{background:g,color:g}}));return{[d]:{position:"relative"},[c]:{...Zt(e),position:"absolute",top:r,padding:`0 ${te(e.paddingXS)}`,color:e.colorPrimary,lineHeight:te(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-content`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${te(s(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...f,[`&${c}-placement-end`]:{insetInlineEnd:s(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},PH=Pt(["Badge","Ribbon"],e=>{const t=WO(e);return IH(t)},qO),zH=e=>{const{className:t,prefixCls:n,style:r,color:i,children:s,text:c,placement:d="end",rootClassName:f,styles:p,classNames:g}=e,{getPrefixCls:h,direction:y,className:C,style:b,classNames:$,styles:S}=It("ribbon"),w=h("ribbon",n),M=`${w}-wrapper`,[x,R]=PH(w,M),T={...e,placement:d},[N,O]=Lt([$,g],[S,p],{props:T}),P=_p(i,!1),D=Q(w,`${w}-placement-${d}`,{[`${w}-rtl`]:y==="rtl",[`${w}-color-${i}`]:P},t,C,N.indicator),W={},k={};return i&&!P&&(W.background=i,k.color=i),l.createElement("div",{className:Q(M,f,x,R,N.root),style:O.root},s,l.createElement("div",{className:Q(D,x),style:{...W,...O.indicator,...b,...r}},l.createElement("span",{className:Q(`${w}-content`,N.content),style:O.content},c),l.createElement("div",{className:`${w}-corner`,style:k})))},di=NH;di.Ribbon=zH;var AH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(this,arguments)}const DH=(e,t)=>l.createElement(gt,Iv({},e,{ref:t,icon:AH})),Eu=l.forwardRef(DH),{ESC:jH,TAB:_H}=nt;function HH({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){const s=l.useRef(!1),c=()=>{e&&(t.current?.focus?.(),n?.(!1))},d=()=>i.current?.focus?(i.current.focus(),s.current=!0,!0):!1,f=p=>{switch(p.keyCode){case jH:c();break;case _H:{let g=!1;s.current||(g=d()),g?p.preventDefault():c();break}}};l.useEffect(()=>e?(window.addEventListener("keydown",f),r&&Ht(d,3),()=>{window.removeEventListener("keydown",f),s.current=!1}):()=>{s.current=!1},[e])}const BH=l.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:i}=e,s=l.useMemo(()=>{let d;return typeof n=="function"?d=n():d=n,d},[n]),c=or(t,ol(s));return ae.createElement(ae.Fragment,null,r&&ae.createElement("div",{className:`${i}-arrow`}),ae.cloneElement(s,{ref:rl(s)?c:void 0}))}),ns={adjustX:1,adjustY:1},rs=[0,0],LH={topLeft:{points:["bl","tl"],overflow:ns,offset:[0,-4],targetOffset:rs},top:{points:["bc","tc"],overflow:ns,offset:[0,-4],targetOffset:rs},topRight:{points:["br","tr"],overflow:ns,offset:[0,-4],targetOffset:rs},bottomLeft:{points:["tl","bl"],overflow:ns,offset:[0,4],targetOffset:rs},bottom:{points:["tc","bc"],overflow:ns,offset:[0,4],targetOffset:rs},bottomRight:{points:["tr","br"],overflow:ns,offset:[0,4],targetOffset:rs}};function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pv.apply(this,arguments)}const YO=ae.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:s,align:c,placement:d="bottomLeft",placements:f=LH,getPopupContainer:p,showAction:g,hideAction:h,overlayClassName:y,overlayStyle:C,visible:b,trigger:$=["hover"],autoFocus:S,overlay:w,children:M,onVisibleChange:x,...R}=e,[T,N]=ae.useState(),O="visible"in e?b:T,P=s?`${r}-${s}`:i,D=ae.useRef(null),W=ae.useRef(null),k=ae.useRef(null);ae.useImperativeHandle(t,()=>D.current);const U=V=>{N(V),x?.(V)};HH({visible:O,triggerRef:k,onVisibleChange:U,autoFocus:S,overlayRef:W});const G=V=>{const{onOverlayClick:A}=e;N(!1),A&&A(V)},L=()=>ae.createElement(BH,{ref:W,overlay:w,prefixCls:r,arrow:n}),H=()=>typeof w=="function"?L:L(),_=()=>{const{minOverlayWidthMatchTrigger:V,alignPoint:A}=e;return"minOverlayWidthMatchTrigger"in e?V:!A},B=()=>{const{openClassName:V}=e;return V!==void 0?V:`${r}-open`},I=ae.cloneElement(M,{className:Q(M.props?.className,O&&B()),ref:rl(M)?or(k,ol(M)):void 0});let z=h;return!z&&$.indexOf("contextMenu")!==-1&&(z=["click"]),ae.createElement(ud,Pv({builtinPlacements:f},R,{prefixCls:r,ref:D,popupClassName:Q(y,{[`${r}-show-arrow`]:n}),popupStyle:C,action:$,showAction:g,hideAction:z,popupPlacement:d,popupAlign:c,popupMotion:{motionName:P},popupVisible:O,stretch:_()?"minWidth":"",popup:H(),onOpenChange:U,onPopupClick:G,getPopupContainer:p}),I)}),VH=e=>typeof e!="object"&&typeof e!="function"||e===null,UO=l.createContext(null);function GO(e,t){return`${e}-${t}`}function XO(e){const t=l.useContext(UO);return GO(t,e)}const Do=l.createContext(null);function FH(e,t){const n={...e};return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(n[r]=i)}),n}function Mu({children:e,locked:t,...n}){const r=l.useContext(Do),i=rd(()=>FH(r,n),[r,n],(s,c)=>!t&&(s[0]!==c[0]||!hu(s[1],c[1],!0)));return l.createElement(Do.Provider,{value:i},e)}const kH=[],KO=l.createContext(null);function Hp(){return l.useContext(KO)}const QO=l.createContext(kH);function _s(e){const t=l.useContext(QO);return l.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const ZO=l.createContext(null),XS=l.createContext({});function d2(e,t=!1){if(wp(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i);let c=null;return i&&!Number.isNaN(s)?c=s:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function WH(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>d2(r,t));return d2(e,t)&&n.unshift(e),n}function JO(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const{LEFT:zv,RIGHT:Av,UP:Dv,DOWN:Cm,ENTER:$m,ESC:e6,HOME:jc,END:_c}=nt,f2=[Dv,Cm,zv,Av];function qH(e,t,n,r){const i="prev",s="next",c="children",d="parent";if(e==="inline"&&r===$m)return{inlineTrigger:!0};const f={[Dv]:i,[Cm]:s},p={[zv]:n?s:i,[Av]:n?i:s,[Cm]:c,[$m]:c},g={[Dv]:i,[Cm]:s,[$m]:c,[e6]:d,[zv]:n?c:d,[Av]:n?d:c};switch({inline:f,horizontal:p,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[r]){case i:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function YH(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function UH(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function KS(e,t){return WH(e,!0).filter(r=>t.has(r))}function m2(e,t,n,r=1){if(!e)return null;const i=KS(e,t),s=i.length;let c=i.findIndex(d=>n===d);return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,i[c]}const Km=(e,t)=>{const n=new Set,r=new Map,i=new Map;return e.forEach(s=>{const c=document.querySelector(`[data-menu-id='${GO(t,s)}']`);c&&(n.add(c),i.set(c,s),r.set(s,c))}),{elements:n,key2element:r,element2key:i}};function GH(e,t,n,r,i,s,c,d,f,p){const g=l.useRef(),h=l.useRef();h.current=t;const y=()=>{Ht.cancel(g.current)};return l.useEffect(()=>()=>{y()},[]),C=>{const{which:b}=C;if([...f2,$m,e6,jc,_c].includes(b)){const $=s();let S=Km($,r);const{elements:w,key2element:M,element2key:x}=S,R=M.get(t),T=UH(R,w),N=x.get(T),O=qH(e,c(N,!0).length===1,n,b);if(!O&&b!==jc&&b!==_c)return;(f2.includes(b)||[jc,_c].includes(b))&&C.preventDefault();const P=D=>{if(D){let W=D;const k=D.querySelector("a");k?.getAttribute("href")&&(W=k);const U=x.get(D);d(U),y(),g.current=Ht(()=>{h.current===U&&W.focus()})}};if([jc,_c].includes(b)||O.sibling||!T){let D;!T||e==="inline"?D=i.current:D=YH(T);let W;const k=KS(D,w);b===jc?W=k[0]:b===_c?W=k[k.length-1]:W=m2(D,w,T,O.offset),P(W)}else if(O.inlineTrigger)f(N);else if(O.offset>0)f(N,!0),y(),g.current=Ht(()=>{S=Km($,r);const D=T.getAttribute("aria-controls"),W=document.getElementById(D),k=m2(W,S.elements);P(k)},5);else if(O.offset<0){const D=c(N,!0),W=D[D.length-2],k=M.get(W);f(W,!1),P(k)}}p?.(C)}}function XH(e){Promise.resolve().then(e)}const QS="__RC_UTIL_PATH_SPLIT__",p2=e=>e.join(QS),KH=e=>e.split(QS),jv="rc-menu-more";function QH(){const[,e]=l.useState({}),t=l.useRef(new Map),n=l.useRef(new Map),[r,i]=l.useState([]),s=l.useRef(0),c=l.useRef(!1),d=()=>{c.current||e({})},f=l.useCallback(($,S)=>{const w=p2(S);n.current.set(w,$),t.current.set($,w),s.current+=1;const M=s.current;XH(()=>{M===s.current&&d()})},[]),p=l.useCallback(($,S)=>{const w=p2(S);n.current.delete(w),t.current.delete($)},[]),g=l.useCallback($=>{i($)},[]),h=l.useCallback(($,S)=>{const w=t.current.get($)||"",M=KH(w);return S&&r.includes(M[0])&&M.unshift(jv),M},[r]),y=l.useCallback(($,S)=>$.filter(w=>w!==void 0).some(w=>h(w,!0).includes(S)),[h]),C=()=>{const $=[...t.current.keys()];return r.length&&$.push(jv),$},b=l.useCallback($=>{const S=`${t.current.get($)}${QS}`,w=new Set;return[...n.current.keys()].forEach(M=>{M.startsWith(S)&&w.add(n.current.get(M))}),w},[]);return l.useEffect(()=>()=>{c.current=!0},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:h,getKeys:C,getSubPathKeys:b}}function Qc(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function t6(e,t,n,r){const{activeKey:i,onActive:s,onInactive:c}=l.useContext(Do),d={active:i===e};return t||(d.onMouseEnter=f=>{n?.({key:e,domEvent:f}),s(e)},d.onMouseLeave=f=>{r?.({key:e,domEvent:f}),c(e)}),d}function n6(e){const{mode:t,rtl:n,inlineIndent:r}=l.useContext(Do);if(t!=="inline")return null;const i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function r6({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=l.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function Qm({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(tr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ru.apply(this,arguments)}class ZH extends l.Component{render(){const{title:t,attribute:n,elementRef:r,...i}=this.props,s=nn(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return tr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Yo.Item,Ru({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const JH=l.forwardRef((e,t)=>{const{style:n,className:r,eventKey:i,warnKey:s,disabled:c,itemIcon:d,children:f,role:p,onMouseEnter:g,onMouseLeave:h,onClick:y,onKeyDown:C,onFocus:b,...$}=e,S=XO(i),{prefixCls:w,onItemClick:M,disabled:x,overflowDisabled:R,itemIcon:T,selectedKeys:N,onActive:O}=l.useContext(Do),{_internalRenderMenuItem:P}=l.useContext(XS),D=`${w}-item`,W=l.useRef(),k=l.useRef(),U=x||c,G=mi(t,k),L=_s(i),H=Z=>({key:i,keyPath:[...L].reverse(),item:W.current,domEvent:Z}),_=d||T,{active:B,...I}=t6(i,U,g,h),z=N.includes(i),V=n6(L.length),A=Z=>{if(U)return;const ee=H(Z);y?.(Qm(ee)),M(ee)},j=Z=>{if(C?.(Z),Z.which===nt.ENTER){const ee=H(Z);y?.(Qm(ee)),M(ee)}},q=Z=>{O(i),b?.(Z)},X={};e.role==="option"&&(X["aria-selected"]=z);let K=l.createElement(ZH,Ru({ref:W,elementRef:G,role:p===null?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":R&&S?null:S},nn($,["extra"]),I,X,{component:"li","aria-disabled":c,style:{...V,...n},className:Q(D,{[`${D}-active`]:B,[`${D}-selected`]:z,[`${D}-disabled`]:U},r),onClick:A,onKeyDown:j,onFocus:q}),f,l.createElement(r6,{props:{...e,isSelected:z},icon:_}));return P&&(K=P(K,e,{selected:z})),K});function eB(e,t){const{eventKey:n}=e,r=Hp(),i=_s(n);return l.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:l.createElement(JH,Ru({},e,{ref:t}))}const Cd=l.forwardRef(eB);function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_v.apply(this,arguments)}const tB=({className:e,children:t,...n},r)=>{const{prefixCls:i,mode:s,rtl:c}=l.useContext(Do);return l.createElement("ul",_v({className:Q(i,c&&`${i}-rtl`,`${i}-sub`,`${i}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},o6=l.forwardRef(tB);function ZS(e,t){return dr(e).map((n,r)=>{if(l.isValidElement(n)){const{key:i}=n;let s=n.props?.eventKey??i;s==null&&(s=`tmp_key-${[...t,r].join("-")}`);const d={key:s,eventKey:s};return l.cloneElement(n,d)}return n})}const Er={adjustX:1,adjustY:1},nB={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},leftTop:{points:["tr","tl"],overflow:Er},leftBottom:{points:["br","bl"],overflow:Er},rightTop:{points:["tl","tr"],overflow:Er},rightBottom:{points:["bl","br"],overflow:Er}},rB={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},rightTop:{points:["tr","tl"],overflow:Er},rightBottom:{points:["br","bl"],overflow:Er},leftTop:{points:["tl","tr"],overflow:Er},leftBottom:{points:["bl","br"],overflow:Er}};function a6(e,t,n){if(t)return t;if(n)return n[e]||n.other}const oB={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aB({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:s,popupOffset:c,disabled:d,mode:f,onVisibleChange:p}){const{getPopupContainer:g,rtl:h,subMenuOpenDelay:y,subMenuCloseDelay:C,builtinPlacements:b,triggerSubMenuAction:$,forceSubMenuRender:S,rootClassName:w,motion:M,defaultMotions:x}=l.useContext(Do),[R,T]=l.useState(!1),N=h?{...rB,...b}:{...nB,...b},O=oB[f],P=a6(f,M,x),D=l.useRef(P);f!=="inline"&&(D.current=P);const W={...D.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},k=l.useRef();return l.useEffect(()=>(k.current=Ht(()=>{T(t)}),()=>{Ht.cancel(k.current)}),[t]),l.createElement(ud,{prefixCls:e,popupClassName:Q(`${e}-popup`,{[`${e}-rtl`]:h},s,w),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:O,popupVisible:R,popup:r,popupStyle:i,popupAlign:c&&{offset:c},action:d?[]:[$],mouseEnterDelay:y,mouseLeaveDelay:C,onPopupVisibleChange:p,forceRender:S,popupMotion:W,fresh:!0},n)}function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}function iB({id:e,open:t,keyPath:n,children:r}){const i="inline",{prefixCls:s,forceSubMenuRender:c,motion:d,defaultMotions:f,mode:p}=l.useContext(Do),g=l.useRef(!1);g.current=p===i;const[h,y]=l.useState(!g.current),C=g.current?t:!1;l.useEffect(()=>{g.current&&y(!1)},[p]);const b={...a6(i,d,f)};n.length>1&&(b.motionAppear=!1);const $=b.onVisibleChanged;return b.onVisibleChanged=S=>(!g.current&&!S&&y(!0),$?.(S)),h?null:l.createElement(Mu,{mode:i,locked:!g.current},l.createElement(Sr,Hv({visible:C},b,{forceRender:c,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:S,style:w})=>l.createElement(o6,{id:e,className:S,style:w},r)))}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}const lB=l.forwardRef((e,t)=>{const{style:n,className:r,styles:i,classNames:s,title:c,eventKey:d,warnKey:f,disabled:p,internalPopupClose:g,children:h,itemIcon:y,expandIcon:C,popupClassName:b,popupOffset:$,popupStyle:S,onClick:w,onMouseEnter:M,onMouseLeave:x,onTitleClick:R,onTitleMouseEnter:T,onTitleMouseLeave:N,popupRender:O,...P}=e,D=XO(d),{prefixCls:W,mode:k,openKeys:U,disabled:G,overflowDisabled:L,activeKey:H,selectedKeys:_,itemIcon:B,expandIcon:I,onItemClick:z,onOpenChange:V,onActive:A,popupRender:j}=l.useContext(Do),{_internalRenderSubMenuItem:q}=l.useContext(XS),{isSubPathKey:X}=l.useContext(ZO),K=_s(),Z=`${W}-submenu`,ee=G||p,ie=l.useRef(),ne=l.useRef(),oe=y??B,de=C??I,le=U.includes(d),fe=!L&&le,ge=X(_,d),{active:re,...ue}=t6(d,ee,T,N),[he,pe]=l.useState(!1),Se=ve=>{ee||pe(ve)},Ie=ve=>{Se(!0),M?.({key:d,domEvent:ve})},Re=ve=>{Se(!1),x?.({key:d,domEvent:ve})},we=l.useMemo(()=>re||(k!=="inline"?he||X([H],d):!1),[k,re,H,he,d,X]),se=n6(K.length),be=ve=>{ee||(R?.({key:d,domEvent:ve}),k==="inline"&&V(d,!le))},Ee=Qc(ve=>{w?.(Qm(ve)),z(ve)}),Ne=ve=>{k!=="inline"&&V(d,ve)},Ve=()=>{A(d)},Ge=D&&`${D}-popup`,et=l.useMemo(()=>l.createElement(r6,{icon:k!=="horizontal"?de:void 0,props:{...e,isOpen:fe,isSubMenu:!0}},l.createElement("i",{className:`${Z}-arrow`})),[k,de,e,fe,Z]);let Te=l.createElement("div",Tu({role:"menuitem",style:se,className:`${Z}-title`,tabIndex:ee?null:-1,ref:ie,title:typeof c=="string"?c:null,"data-menu-id":L&&D?null:D,"aria-expanded":fe,"aria-haspopup":!0,"aria-controls":Ge,"aria-disabled":ee,onClick:be,onFocus:Ve},ue),c,et);const _e=l.useRef(k);k!=="inline"&&K.length>1?_e.current="vertical":_e.current=k;const Le=_e.current,Qe=l.useMemo(()=>{const ve=l.createElement(Mu,{classNames:s,styles:i,mode:Le==="horizontal"?"vertical":Le},l.createElement(o6,{id:Ge,ref:ne},h)),Pe=O||j;return Pe?Pe(ve,{item:e,keys:K}):ve},[O,j,K,Ge,h,e,Le]);if(!L){const ve=_e.current;Te=l.createElement(aB,{mode:ve,prefixCls:Z,visible:!g&&fe&&k!=="inline",popupClassName:b,popupOffset:$,popupStyle:S,popup:Qe,disabled:ee,onVisibleChange:Ne},Te)}let De=l.createElement(Yo.Item,Tu({ref:t,role:"none"},P,{component:"li",style:n,className:Q(Z,`${Z}-${k}`,r,{[`${Z}-open`]:fe,[`${Z}-active`]:we,[`${Z}-selected`]:ge,[`${Z}-disabled`]:ee}),onMouseEnter:Ie,onMouseLeave:Re}),Te,!L&&l.createElement(iB,{id:Ge,open:fe,keyPath:K},h));return q&&(De=q(De,e,{selected:ge,active:we,open:fe,disabled:ee})),l.createElement(Mu,{classNames:s,styles:i,onItemClick:Ee,mode:k==="horizontal"?"vertical":k,itemIcon:oe,expandIcon:de},De)}),Bp=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=_s(n),s=ZS(r,i),c=Hp();l.useEffect(()=>{if(c)return c.registerPath(n,i),()=>{c.unregisterPath(n,i)}},[i]);let d;return c?d=s:d=l.createElement(lB,Tu({ref:t},e),s),l.createElement(QO.Provider,{value:i},d)});function JS({className:e,style:t}){const{prefixCls:n}=l.useContext(Do);return Hp()?null:l.createElement("li",{role:"separator",className:Q(`${n}-item-divider`,e),style:t})}function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zm.apply(this,arguments)}const sB=l.forwardRef((e,t)=>{const{className:n,title:r,eventKey:i,children:s,...c}=e,{prefixCls:d,classNames:f,styles:p}=l.useContext(Do),g=`${d}-item-group`;return l.createElement("li",Zm({ref:t,role:"presentation"},c,{onClick:h=>h.stopPropagation(),className:Q(g,n)}),l.createElement("div",{role:"presentation",className:Q(`${g}-title`,f?.listTitle),style:p?.listTitle,title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:Q(`${g}-list`,f?.list),style:p?.list},s))}),e1=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=_s(n),s=ZS(r,i);return Hp()?s:l.createElement(sB,Zm({ref:t},nn(e,["warnKey"])),s)});function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(this,arguments)}function Bv(e,t,n){const{item:r,group:i,submenu:s,divider:c}=t;return(e||[]).map((d,f)=>{if(d&&typeof d=="object"){const{label:p,children:g,key:h,type:y,extra:C,...b}=d,$=h??`tmp-${f}`;return g||y==="group"?y==="group"?l.createElement(i,fs({key:$},b,{title:p}),Bv(g,t,n)):l.createElement(s,fs({key:$},b,{title:p}),Bv(g,t,n)):y==="divider"?l.createElement(c,fs({key:$},b)):l.createElement(r,fs({key:$},b,{extra:C}),p,(!!C||C===0)&&l.createElement("span",{className:`${n}-item-extra`},C))}return null}).filter(d=>d)}function g2(e,t,n,r,i){let s=e;const c={divider:JS,item:Cd,group:e1,submenu:Bp,...r};return t&&(s=Bv(t,c,i)),ZS(s,n)}function Lv(){return Lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lv.apply(this,arguments)}const Ai=[],cB=l.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:i,className:s,styles:c,classNames:d,tabIndex:f=0,items:p,children:g,direction:h,id:y,mode:C="vertical",inlineCollapsed:b,disabled:$,disabledOverflow:S,subMenuOpenDelay:w=.1,subMenuCloseDelay:M=.1,forceSubMenuRender:x,defaultOpenKeys:R,openKeys:T,activeKey:N,defaultActiveFirst:O,selectable:P=!0,multiple:D=!1,defaultSelectedKeys:W,selectedKeys:k,onSelect:U,onDeselect:G,inlineIndent:L=24,motion:H,defaultMotions:_,triggerSubMenuAction:B="hover",builtinPlacements:I,itemIcon:z,expandIcon:V,overflowedIndicator:A="...",overflowedIndicatorPopupClassName:j,getPopupContainer:q,onClick:X,onOpenChange:K,onKeyDown:Z,openAnimation:ee,openTransitionName:ie,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe,_internalComponents:de,popupRender:le,...fe}=e,[ge,re]=l.useMemo(()=>[g2(g,p,Ai,de,n),g2(g,p,Ai,{},n)],[g,p,de]),[ue,he]=l.useState(!1),pe=l.useRef(),Se=Ko(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),Ie=h==="rtl",[Re,we]=Yt(R,T),se=Re||Ai,be=(Ke,Et=!1)=>{function mt(){we(Ke),K?.(Ke)}Et?$s.flushSync(mt):mt()},[Ee,Ne]=l.useState(se),Ve=l.useRef(!1),[Ge,et]=l.useMemo(()=>(C==="inline"||C==="vertical")&&b?["vertical",b]:[C,!1],[C,b]),Te=Ge==="inline",[_e,Le]=l.useState(Ge),[Qe,De]=l.useState(et);l.useEffect(()=>{Le(Ge),De(et),Ve.current&&(Te?we(Ee):be(Ai))},[Ge,et]);const[ve,Pe]=l.useState(0),Ze=ve>=ge.length-1||_e!=="horizontal"||S;l.useEffect(()=>{Te&&Ne(se)},[se]),l.useEffect(()=>(Ve.current=!0,()=>{Ve.current=!1}),[]);const{registerPath:Ue,unregisterPath:Fe,refreshOverflowKeys:ze,isSubPathKey:Xe,getKeyPath:rt,getKeys:ot,getSubPathKeys:lt}=QH(),St=l.useMemo(()=>({registerPath:Ue,unregisterPath:Fe}),[Ue,Fe]),Ct=l.useMemo(()=>({isSubPathKey:Xe}),[Xe]);l.useEffect(()=>{ze(Ze?Ai:ge.slice(ve+1).map(Ke=>Ke.key))},[ve,Ze]);const[qe,at]=Yt(N||O&&ge[0]?.key,N),He=Qc(Ke=>{at(Ke)}),Ae=Qc(()=>{at(void 0)});l.useImperativeHandle(t,()=>({list:pe.current,focus:Ke=>{const Et=ot(),{elements:mt,key2element:Rt,element2key:Ut}=Km(Et,Se),an=KS(pe.current,mt);let kt;qe&&Et.includes(qe)?kt=qe:kt=an[0]?Ut.get(an[0]):ge.find(En=>!En.props.disabled)?.key;const wn=Rt.get(kt);kt&&wn&&wn?.focus?.(Ke)},findItem:({key:Ke})=>{const Et=ot(),{key2element:mt}=Km(Et,Se);return mt.get(Ke)||null}}));const[We,Me]=Yt(W||[],k),Ye=l.useMemo(()=>Array.isArray(We)?We:We==null?Ai:[We],[We]),Je=Ke=>{if(P){const{key:Et}=Ke,mt=Ye.includes(Et);let Rt;D?mt?Rt=Ye.filter(an=>an!==Et):Rt=[...Ye,Et]:Rt=[Et],Me(Rt);const Ut={...Ke,selectedKeys:Rt};mt?G?.(Ut):U?.(Ut)}!D&&se.length&&_e!=="inline"&&be(Ai)},it=Qc(Ke=>{X?.(Qm(Ke)),Je(Ke)}),ft=Qc((Ke,Et)=>{let mt=se.filter(Rt=>Rt!==Ke);if(Et)mt.push(Ke);else if(_e!=="inline"){const Rt=lt(Ke);mt=mt.filter(Ut=>!Rt.has(Ut))}hu(se,mt,!0)||be(mt,!0)}),Dt=GH(_e,qe,Ie,Se,pe,ot,rt,at,(Ke,Et)=>{const mt=Et??!se.includes(Ke);ft(Ke,mt)},Z);l.useEffect(()=>{he(!0)},[]);const $t=l.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:oe}),[ne,oe]),tn=_e!=="horizontal"||S?ge:ge.map((Ke,Et)=>l.createElement(Mu,{key:Ke.key,overflowDisabled:Et>ve,classNames:d,styles:c},Ke)),wt=l.createElement(Yo,Lv({id:y,ref:pe,prefixCls:`${n}-overflow`,component:"ul",itemComponent:Cd,className:Q(n,`${n}-root`,`${n}-${_e}`,s,{[`${n}-inline-collapsed`]:Qe,[`${n}-rtl`]:Ie},r),dir:h,style:i,role:"menu",tabIndex:f,data:tn,renderRawItem:Ke=>Ke,renderRawRest:Ke=>{const Et=Ke.length,mt=Et?ge.slice(-Et):null;return l.createElement(Bp,{eventKey:jv,title:A,disabled:Ze,internalPopupClose:Et===0,popupClassName:j},mt)},maxCount:_e!=="horizontal"||S?Yo.INVALIDATE:Yo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Ke=>{Pe(Ke)},onKeyDown:Dt},fe));return l.createElement(XS.Provider,{value:$t},l.createElement(UO.Provider,{value:Se},l.createElement(Mu,{prefixCls:n,rootClassName:r,classNames:d,styles:c,mode:_e,openKeys:se,rtl:Ie,disabled:$,motion:ue?H:null,defaultMotions:ue?_:null,activeKey:qe,onActive:He,onInactive:Ae,selectedKeys:Ye,inlineIndent:L,subMenuOpenDelay:w,subMenuCloseDelay:M,forceSubMenuRender:x,builtinPlacements:I,triggerSubMenuAction:B,getPopupContainer:q,itemIcon:z,expandIcon:V,onItemClick:it,onOpenChange:ft,popupRender:le},l.createElement(ZO.Provider,{value:Ct},wt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(KO.Provider,{value:St},re)))))}),Hs=cB;Hs.Item=Cd;Hs.SubMenu=Bp;Hs.ItemGroup=e1;Hs.Divider=JS;var uB={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"};function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vv.apply(this,arguments)}const dB=(e,t)=>l.createElement(gt,Vv({},e,{ref:t,icon:uB})),fB=l.forwardRef(dB),i6=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),mB=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:s,headerPadding:c,headerColor:d,footerPadding:f,fontSize:p,bodyBg:g,headerBg:h}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:s,padding:c,color:d,lineHeight:te(s),background:h,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:p,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},l6=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:s,marginXXS:c,colorTextLightSolid:d,colorBgContainer:f}=e,p=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${p}px`,headerColor:i,footerPadding:`${s}px ${p}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:i}},s6=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],c6=Pt("Layout",mB,l6,{deprecatedTokens:s6}),pB=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:s,triggerHeight:c,triggerColor:d,triggerBg:f,headerHeight:p,zeroTriggerWidth:g,zeroTriggerHeight:h,borderRadiusLG:y,lightSiderBg:C,lightTriggerColor:b,lightTriggerBg:$,bodyBg:S}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:d,lineHeight:te(c),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:p,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:h,color:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${te(y)} ${te(y)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${te(y)} 0 0 ${te(y)}`}},"&-light":{background:C,[`${t}-trigger`]:{color:b,background:$},[`${t}-zero-width-trigger`]:{color:b,background:$,border:`1px solid ${S}`,borderInlineStart:0}}}}},gB=Pt(["Layout","Sider"],pB,l6,{deprecatedTokens:s6}),h2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},hB=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Lp=l.createContext({}),yB=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),u6=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:s,defaultCollapsed:c=!1,theme:d="dark",style:f={},collapsible:p=!1,reverseArrow:g=!1,width:h=200,collapsedWidth:y=80,zeroWidthTriggerStyle:C,breakpoint:b,onCollapse:$,onBreakpoint:S,...w}=e,{siderHook:M}=l.useContext(i6),[x,R]=l.useState("collapsed"in e?e.collapsed:c),[T,N]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const O=(ee,ie)=>{"collapsed"in e||R(ee),$?.(ee,ie)},{getPrefixCls:P,direction:D}=l.useContext(dt),W=P("layout-sider",n),[k,U]=gB(W),G=l.useRef(null);G.current=ee=>{N(ee.matches),S?.(ee.matches),x!==ee.matches&&O(ee.matches,"responsive")},l.useEffect(()=>{function ee(ne){return G.current?.(ne)}let ie;return typeof window?.matchMedia<"u"&&b&&b in h2&&(ie=window.matchMedia(`screen and (max-width: ${h2[b]})`),typeof ie?.addEventListener=="function"&&ie.addEventListener("change",ee),ee(ie)),()=>{typeof ie?.removeEventListener=="function"&&ie.removeEventListener("change",ee)}},[b]),l.useEffect(()=>{const ee=yB("ant-sider-");return M.addSider(ee),()=>M.removeSider(ee)},[]);const L=()=>{O(!x,"clickTrigger")},H=nn(w,["collapsed"]),_=x?y:h,B=hB(_)?`${_}px`:String(_),I=Number.parseFloat(String(y||0))===0?l.createElement("span",{onClick:L,className:Q(`${W}-zero-width-trigger`,`${W}-zero-width-trigger-${g?"right":"left"}`),style:C},i||l.createElement(fB,null)):null,z=D==="rtl"==!g,j={expanded:z?l.createElement(ws,null):l.createElement(Eu,null),collapsed:z?l.createElement(Eu,null):l.createElement(ws,null)}[x?"collapsed":"expanded"],q=i!==null?I||l.createElement("div",{className:`${W}-trigger`,onClick:L,style:{width:B}},i||j):null,X={...f,flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B},K=Q(W,`${W}-${d}`,{[`${W}-collapsed`]:!!x,[`${W}-has-trigger`]:p&&i!==null&&!I,[`${W}-below`]:!!T,[`${W}-zero-width`]:Number.parseFloat(B)===0},r,k,U),Z=l.useMemo(()=>({siderCollapsed:x}),[x]);return l.createElement(Lp.Provider,{value:Z},l.createElement("aside",{className:K,...H,style:X,ref:t},l.createElement("div",{className:`${W}-children`},s),p||T&&I?q:null))});var bB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}const vB=(e,t)=>l.createElement(gt,Fv({},e,{ref:t,icon:bB})),t1=l.forwardRef(vB),Jm=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),d6=e=>{const{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:s}=l.useContext(dt),c=s("menu",t),d=Q({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(JS,{className:d,...i})},f6=e=>{const{className:t,children:n,icon:r,title:i,danger:s,extra:c}=e,{prefixCls:d,firstLevel:f,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:h,styles:y,classNames:C}=l.useContext(Jm),b=R=>{const T=n?.[0],N=l.createElement("span",{className:Q(`${d}-title-content`,f?C.itemContent:C.subMenu.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:f?y.itemContent:y.subMenu.itemContent},n);return(!r||l.isValidElement(n)&&n.type==="span")&&n&&R&&f&&typeof T=="string"?l.createElement("div",{className:`${d}-inline-collapsed-noicon`},T.charAt(0)):N},{siderCollapsed:$}=l.useContext(Lp);let S=i;typeof i>"u"?S=f?n:"":i===!1&&(S="");const w={title:S};!$&&!h&&(w.title=null,w.open=!1);const M=dr(n).length;let x=l.createElement(Cd,{...nn(e,["title","icon","danger"]),className:Q(f?C.item:C.subMenu.item,{[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(r?M+1:M)===1},t),style:{...f?y.item:y.subMenu.item,...e.style},title:typeof i=="string"?i:void 0},nr(r,R=>({className:Q(`${d}-item-icon`,f?C.itemIcon:C.subMenu.itemIcon,R.className),style:{...f?y.itemIcon:y.subMenu.itemIcon,...R.style}})),b(h));return g||(x=l.createElement(ur,{...w,placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},x)),x},ep=l.createContext(null),SB=l.forwardRef((e,t)=>{const{children:n,...r}=e,i=l.useContext(ep),s=l.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=VP(n),d=mi(t,c?ol(n):null);return l.createElement(ep.Provider,{value:s},l.createElement(xa,{space:!0},c?l.cloneElement(n,{ref:d}):n))}),CB=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:s,lineType:c,itemPaddingInline:d}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(s)} ${c} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${t}-item:hover,
|
|
192
192
|
> ${t}-item-active,
|
|
193
193
|
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},$B=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
194
194
|
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${te(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${te(t)})`}}}}),y2=e=>Uo(e),b2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:s,groupTitleColor:c,itemBg:d,subMenuItemBg:f,itemSelectedBg:p,activeBarHeight:g,activeBarWidth:h,activeBarBorderWidth:y,motionDurationSlow:C,motionEaseInOut:b,motionEaseOut:$,itemPaddingInline:S,motionDurationMid:w,itemHoverColor:M,lineType:x,colorSplit:R,itemDisabledColor:T,dangerItemColor:N,dangerItemHoverColor:O,dangerItemSelectedColor:P,dangerItemActiveBg:D,dangerItemSelectedBg:W,popupBg:k,itemHoverBg:U,itemActiveBg:G,menuSubMenuBg:L,horizontalItemSelectedColor:H,horizontalItemSelectedBg:_,horizontalItemBorderRadius:B,horizontalItemHoverBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:d,[`&${n}-root:focus-visible`]:{...y2(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:s},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...y2(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${T} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:M}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:U},"&:active":{backgroundColor:G}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:U},"&:active":{backgroundColor:G}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:p,[`&${n}-item-danger`]:{backgroundColor:W}},[`&${n}-submenu > ${n}`]:{backgroundColor:L},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${te(g)} solid transparent`,transition:`border-color ${C} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:g,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:g,borderBottomColor:H}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(y)} ${x} ${R}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(h)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${$}`,`opacity ${w} ${$}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${b}`,`opacity ${w} ${b}`].join(",")}}}}}},v2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:s,marginXS:c,itemMarginBlock:d,itemWidth:f,itemPaddingInline:p}=e,g=e.calc(s).add(i).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:p,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:d,width:f},[`> ${t}-item,
|
|
@@ -214,7 +214,7 @@ html body {
|
|
|
214
214
|
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
|
|
215
215
|
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Op},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
|
|
216
216
|
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
|
|
217
|
-
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ip}}},US(e,$,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Zt(e),[n]:{padding:h,listStyleType:"none",backgroundColor:$,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...xo(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(p)} ${te(b)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:g,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${te(p)} ${te(b)}`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...xo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:$,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:C,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:y,backgroundColor:$,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Xo(e,"slide-up"),Xo(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down"),md(e,"zoom-big")]]},IB=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...jp({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Dp(e)}),PB=Pt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,s=Ot(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[NB(s),OB(s)]},IB,{resetStyle:!1}),Vp=e=>{const{menu:t,arrow:n,prefixCls:r,children:i,trigger:s,disabled:c,dropdownRender:d,popupRender:f,getPopupContainer:p,overlayClassName:g,rootClassName:h,overlayStyle:y,open:C,onOpenChange:b,mouseEnterDelay:$=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:w=!0,placement:M="",transitionName:x,classNames:R,styles:T,destroyPopupOnHide:N,destroyOnHidden:O}=e,{getPrefixCls:P,direction:D,getPopupContainer:W,className:k,style:U,classNames:G,styles:L}=It("dropdown"),H={...e,mouseEnterDelay:$,mouseLeaveDelay:S,autoAdjustOverflow:w},[_,B]=Lt([G,R],[L,T],{props:H}),I={...U,...y,...B.root},z=f||d,V=l.useMemo(()=>{const Re=P();return x!==void 0?x:M.includes("top")?`${Re}-slide-down`:`${Re}-slide-up`},[P,M,x]),A=l.useMemo(()=>M?M.includes("Center")?M.slice(0,M.indexOf("Center")):M:D==="rtl"?"bottomRight":"bottomLeft",[M,D]),j=P("dropdown",r),q=ar(j),[X,K]=PB(j,q),[,Z]=Wr(),ee=l.Children.only(V7(i)?l.createElement("span",null,i):i),ie=nr(ee,{className:Q(`${j}-trigger`,{[`${j}-rtl`]:D==="rtl"},ee.props.className),disabled:ee.props.disabled??c}),ne=c?[]:s,oe=!!ne?.includes("contextMenu"),[de,le]=Yt(!1,C),fe=ut(Re=>{b?.(Re,{source:"trigger"}),le(Re)}),ge=Q(g,h,X,K,q,k,_.root,{[`${j}-rtl`]:D==="rtl"}),re=_O({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:Z.marginXXS,arrowWidth:n?Z.sizePopupArrow:0,borderRadius:Z.borderRadius}),ue=ut(()=>{t?.selectable&&t?.multiple||(b?.(!1,{source:"menu"}),le(!1))}),he=()=>{const Re=nn(_,["root"]),we=nn(B,["root"]);let se;return t?.items&&(se=l.createElement($d,{...t,classNames:{...Re,subMenu:{...Re}},styles:{...we,subMenu:{...we}}})),z&&(se=z(se)),se=l.Children.only(typeof se=="string"?l.createElement("span",null,se):se),l.createElement(SB,{prefixCls:`${j}-menu`,rootClassName:Q(K,q),expandIcon:l.createElement("span",{className:`${j}-menu-submenu-arrow`},D==="rtl"?l.createElement(Eu,{className:`${j}-menu-submenu-arrow-icon`}):l.createElement(ws,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:({mode:be})=>{}},se)},[pe,Se]=pi("Dropdown",I.zIndex);let Ie=l.createElement(YO,{alignPoint:oe,...nn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:$,mouseLeaveDelay:S,visible:de,builtinPlacements:re,arrow:!!n,overlayClassName:ge,prefixCls:j,getPopupContainer:p||W,transitionName:V,trigger:ne,overlay:he,placement:A,onVisibleChange:fe,overlayStyle:{...I,zIndex:pe},autoDestroy:O??N},ie);return pe&&(Ie=l.createElement(ld.Provider,{value:Se},Ie)),Ie},zB=zp(Vp,"align",void 0,"dropdown",e=>e),AB=e=>l.createElement(zB,{...e},l.createElement("span",null));Vp._InternalPanelDoNotUseOrYouWillBeFired=AB;var xm={exports:{}},DB=xm.exports,$2;function p6(){return $2||($2=1,(function(e,t){(function(n,r){e.exports=r()})(DB,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",c="second",d="minute",f="hour",p="day",g="week",h="month",y="quarter",C="year",b="date",$="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var H=["th","st","nd","rd"],_=L%100;return"["+L+(H[(_-20)%10]||H[_]||H[0])+"]"}},x=function(L,H,_){var B=String(L);return!B||B.length>=H?L:""+Array(H+1-B.length).join(_)+L},R={s:x,z:function(L){var H=-L.utcOffset(),_=Math.abs(H),B=Math.floor(_/60),I=_%60;return(H<=0?"+":"-")+x(B,2,"0")+":"+x(I,2,"0")},m:function L(H,_){if(H.date()<_.date())return-L(_,H);var B=12*(_.year()-H.year())+(_.month()-H.month()),I=H.clone().add(B,h),z=_-I<0,V=H.clone().add(B+(z?-1:1),h);return+(-(B+(_-I)/(z?I-V:V-I))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:C,w:g,d:p,D:b,h:f,m:d,s:c,ms:s,Q:y}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},T="en",N={};N[T]=M;var O="$isDayjsObject",P=function(L){return L instanceof U||!(!L||!L[O])},D=function L(H,_,B){var I;if(!H)return T;if(typeof H=="string"){var z=H.toLowerCase();N[z]&&(I=z),_&&(N[z]=_,I=z);var V=H.split("-");if(!I&&V.length>1)return L(V[0])}else{var A=H.name;N[A]=H,I=A}return!B&&I&&(T=I),I||!B&&T},W=function(L,H){if(P(L))return L.clone();var _=typeof H=="object"?H:{};return _.date=L,_.args=arguments,new U(_)},k=R;k.l=D,k.i=P,k.w=function(L,H){return W(L,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var U=(function(){function L(_){this.$L=D(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[O]=!0}var H=L.prototype;return H.parse=function(_){this.$d=(function(B){var I=B.date,z=B.utc;if(I===null)return new Date(NaN);if(k.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var V=I.match(S);if(V){var A=V[2]-1||0,j=(V[7]||"0").substring(0,3);return z?new Date(Date.UTC(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)):new Date(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)}}return new Date(I)})(_),this.init()},H.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},H.$utils=function(){return k},H.isValid=function(){return this.$d.toString()!==$},H.isSame=function(_,B){var I=W(_);return this.startOf(B)<=I&&I<=this.endOf(B)},H.isAfter=function(_,B){return W(_)<this.startOf(B)},H.isBefore=function(_,B){return this.endOf(B)<W(_)},H.$g=function(_,B,I){return k.u(_)?this[B]:this.set(I,_)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(_,B){var I=this,z=!!k.u(B)||B,V=k.p(_),A=function(ne,oe){var de=k.w(I.$u?Date.UTC(I.$y,oe,ne):new Date(I.$y,oe,ne),I);return z?de:de.endOf(p)},j=function(ne,oe){return k.w(I.toDate()[ne].apply(I.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(oe)),I)},q=this.$W,X=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(V){case C:return z?A(1,0):A(31,11);case h:return z?A(1,X):A(0,X+1);case g:var ee=this.$locale().weekStart||0,ie=(q<ee?q+7:q)-ee;return A(z?K-ie:K+(6-ie),X);case p:case b:return j(Z+"Hours",0);case f:return j(Z+"Minutes",1);case d:return j(Z+"Seconds",2);case c:return j(Z+"Milliseconds",3);default:return this.clone()}},H.endOf=function(_){return this.startOf(_,!1)},H.$set=function(_,B){var I,z=k.p(_),V="set"+(this.$u?"UTC":""),A=(I={},I[p]=V+"Date",I[b]=V+"Date",I[h]=V+"Month",I[C]=V+"FullYear",I[f]=V+"Hours",I[d]=V+"Minutes",I[c]=V+"Seconds",I[s]=V+"Milliseconds",I)[z],j=z===p?this.$D+(B-this.$W):B;if(z===h||z===C){var q=this.clone().set(b,1);q.$d[A](j),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},H.set=function(_,B){return this.clone().$set(_,B)},H.get=function(_){return this[k.p(_)]()},H.add=function(_,B){var I,z=this;_=Number(_);var V=k.p(B),A=function(X){var K=W(z);return k.w(K.date(K.date()+Math.round(X*_)),z)};if(V===h)return this.set(h,this.$M+_);if(V===C)return this.set(C,this.$y+_);if(V===p)return A(1);if(V===g)return A(7);var j=(I={},I[d]=r,I[f]=i,I[c]=n,I)[V]||1,q=this.$d.getTime()+_*j;return k.w(q,this)},H.subtract=function(_,B){return this.add(-1*_,B)},H.format=function(_){var B=this,I=this.$locale();if(!this.isValid())return I.invalidDate||$;var z=_||"YYYY-MM-DDTHH:mm:ssZ",V=k.z(this),A=this.$H,j=this.$m,q=this.$M,X=I.weekdays,K=I.months,Z=I.meridiem,ee=function(oe,de,le,fe){return oe&&(oe[de]||oe(B,z))||le[de].slice(0,fe)},ie=function(oe){return k.s(A%12||12,oe,"0")},ne=Z||function(oe,de,le){var fe=oe<12?"AM":"PM";return le?fe.toLowerCase():fe};return z.replace(w,(function(oe,de){return de||(function(le){switch(le){case"YY":return String(B.$y).slice(-2);case"YYYY":return k.s(B.$y,4,"0");case"M":return q+1;case"MM":return k.s(q+1,2,"0");case"MMM":return ee(I.monthsShort,q,K,3);case"MMMM":return ee(K,q);case"D":return B.$D;case"DD":return k.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return ee(I.weekdaysMin,B.$W,X,2);case"ddd":return ee(I.weekdaysShort,B.$W,X,3);case"dddd":return X[B.$W];case"H":return String(A);case"HH":return k.s(A,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ne(A,j,!0);case"A":return ne(A,j,!1);case"m":return String(j);case"mm":return k.s(j,2,"0");case"s":return String(B.$s);case"ss":return k.s(B.$s,2,"0");case"SSS":return k.s(B.$ms,3,"0");case"Z":return V}return null})(oe)||V.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(_,B,I){var z,V=this,A=k.p(B),j=W(_),q=(j.utcOffset()-this.utcOffset())*r,X=this-j,K=function(){return k.m(V,j)};switch(A){case C:z=K()/12;break;case h:z=K();break;case y:z=K()/3;break;case g:z=(X-q)/6048e5;break;case p:z=(X-q)/864e5;break;case f:z=X/i;break;case d:z=X/r;break;case c:z=X/n;break;default:z=X}return I?z:k.a(z)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return N[this.$L]},H.locale=function(_,B){if(!_)return this.$L;var I=this.clone(),z=D(_,B,!0);return z&&(I.$L=z),I},H.clone=function(){return k.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},L})(),G=U.prototype;return W.prototype=G,[["$ms",s],["$s",c],["$m",d],["$H",f],["$W",p],["$M",h],["$y",C],["$D",b]].forEach((function(L){G[L[1]]=function(H){return this.$g(H,L[0],L[1])}})),W.extend=function(L,H){return L.$i||(L(H,U,W),L.$i=!0),W},W.locale=D,W.isDayjs=P,W.unix=function(L){return W(1e3*L)},W.en=N[T],W.Ls=N,W.p={},W}))})(xm)),xm.exports}var jB=p6();const gn=Ea(jB);var wm={exports:{}},_B=wm.exports,x2;function HB(){return x2||(x2=1,(function(e,t){(function(n,r){e.exports=r()})(_B,(function(){return function(n,r){r.prototype.weekday=function(i){var s=this.$locale().weekStart||0,c=this.$W,d=(c<s?c+7:c)-s;return this.$utils().u(i)?d:this.subtract(d,"day").add(i,"day")}}}))})(wm)),wm.exports}var BB=HB();const LB=Ea(BB);var Em={exports:{}},VB=Em.exports,w2;function FB(){return w2||(w2=1,(function(e,t){(function(n,r){e.exports=r()})(VB,(function(){return function(n,r,i){var s=r.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},d=function(h,y,C,b,$){var S=h.name?h:h.$locale(),w=c(S[y]),M=c(S[C]),x=w||M.map((function(T){return T.slice(0,b)}));if(!$)return x;var R=S.weekStart;return x.map((function(T,N){return x[(N+(R||0))%7]}))},f=function(){return i.Ls[i.locale()]},p=function(h,y){return h.formats[y]||(function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,$,S){return $||S.slice(1)}))})(h.formats[y.toUpperCase()])},g=function(){var h=this;return{months:function(y){return y?y.format("MMMM"):d(h,"months")},monthsShort:function(y){return y?y.format("MMM"):d(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):d(h,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):d(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):d(h,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return p(h.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return g.bind(this)()},i.localeData=function(){var h=f();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(y){return p(h,y)},meridiem:h.meridiem,ordinal:h.ordinal}},i.months=function(){return d(f(),"months")},i.monthsShort=function(){return d(f(),"monthsShort","months",3)},i.weekdays=function(h){return d(f(),"weekdays",null,null,h)},i.weekdaysShort=function(h){return d(f(),"weekdaysShort","weekdays",3,h)},i.weekdaysMin=function(h){return d(f(),"weekdaysMin","weekdays",2,h)}}}))})(Em)),Em.exports}var kB=FB();const WB=Ea(kB);var Mm={exports:{}},qB=Mm.exports,E2;function YB(){return E2||(E2=1,(function(e,t){(function(n,r){e.exports=r()})(qB,(function(){var n="week",r="year";return function(i,s,c){var d=s.prototype;d.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=c(this).startOf(r).add(1,r).date(p),h=c(this).endOf(n);if(g.isBefore(h))return 1}var y=c(this).startOf(r).date(p).startOf(n).subtract(1,"millisecond"),C=this.diff(y,n,!0);return C<0?c(this).startOf("week").week():Math.ceil(C)},d.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Mm)),Mm.exports}var UB=YB();const GB=Ea(UB);var Rm={exports:{}},XB=Rm.exports,M2;function KB(){return M2||(M2=1,(function(e,t){(function(n,r){e.exports=r()})(XB,(function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),s=this.week(),c=this.year();return s===1&&i===11?c+1:i===0&&s>=52?c-1:c}}}))})(Rm)),Rm.exports}var QB=KB();const ZB=Ea(QB);var Tm={exports:{}},JB=Tm.exports,R2;function eL(){return R2||(R2=1,(function(e,t){(function(n,r){e.exports=r()})(JB,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(c){var d=this,f=this.$locale();if(!this.isValid())return s.bind(this)(c);var p=this.$utils(),g=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((d.$M+1)/3);case"Do":return f.ordinal(d.$D);case"gggg":return d.weekYear();case"GGGG":return d.isoWeekYear();case"wo":return f.ordinal(d.week(),"W");case"w":case"ww":return p.s(d.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(d.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(d.$H===0?24:d.$H),h==="k"?1:2,"0");case"X":return Math.floor(d.$d.getTime()/1e3);case"x":return d.$d.getTime();case"z":return"["+d.offsetName()+"]";case"zzz":return"["+d.offsetName("long")+"]";default:return h}}));return s.bind(this)(g)}}}))})(Tm)),Tm.exports}var tL=eL();const nL=Ea(tL);var Om={exports:{}},rL=Om.exports,T2;function oL(){return T2||(T2=1,(function(e,t){(function(n,r){e.exports=r()})(rL,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,c=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,f={},p=function(S){return(S=+S)+(S>68?1900:2e3)},g=function(S){return function(w){this[S]=+w}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var M=w.match(/([+-]|\d\d)/g),x=60*M[1]+(+M[2]||0);return x===0?0:M[0]==="+"?-x:x})(S)}],y=function(S){var w=f[S];return w&&(w.indexOf?w:w.s.concat(w.f))},C=function(S,w){var M,x=f.meridiem;if(x){for(var R=1;R<=24;R+=1)if(S.indexOf(x(R,0,w))>-1){M=R>12;break}}else M=S===(w?"pm":"PM");return M},b={A:[d,function(S){this.afternoon=C(S,!1)}],a:[d,function(S){this.afternoon=C(S,!0)}],Q:[i,function(S){this.month=3*(S-1)+1}],S:[i,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[c,g("seconds")],ss:[c,g("seconds")],m:[c,g("minutes")],mm:[c,g("minutes")],H:[c,g("hours")],h:[c,g("hours")],HH:[c,g("hours")],hh:[c,g("hours")],D:[c,g("day")],DD:[s,g("day")],Do:[d,function(S){var w=f.ordinal,M=S.match(/\d+/);if(this.day=M[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===S&&(this.day=x)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[d,function(S){var w=y("months"),M=(y("monthsShort")||w.map((function(x){return x.slice(0,3)}))).indexOf(S)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[d,function(S){var w=y("months").indexOf(S)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(S){this.year=p(S)}],YYYY:[/\d{4}/,g("year")],Z:h,ZZ:h};function $(S){var w,M;w=S,M=f&&f.formats;for(var x=(S=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,k,U){var G=U&&U.toUpperCase();return k||M[U]||n[U]||M[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,H,_){return H||_.slice(1)}))}))).match(r),R=x.length,T=0;T<R;T+=1){var N=x[T],O=b[N],P=O&&O[0],D=O&&O[1];x[T]=D?{regex:P,parser:D}:N.replace(/^\[|\]$/g,"")}return function(W){for(var k={},U=0,G=0;U<R;U+=1){var L=x[U];if(typeof L=="string")G+=L.length;else{var H=L.regex,_=L.parser,B=W.slice(G),I=H.exec(B)[0];_.call(k,I),W=W.replace(I,"")}}return(function(z){var V=z.afternoon;if(V!==void 0){var A=z.hours;V?A<12&&(z.hours+=12):A===12&&(z.hours=0),delete z.afternoon}})(k),k}}return function(S,w,M){M.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(p=S.parseTwoDigitYear);var x=w.prototype,R=x.parse;x.parse=function(T){var N=T.date,O=T.utc,P=T.args;this.$u=O;var D=P[1];if(typeof D=="string"){var W=P[2]===!0,k=P[3]===!0,U=W||k,G=P[2];k&&(G=P[2]),f=this.$locale(),!W&&G&&(f=M.Ls[G]),this.$d=(function(B,I,z,V){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*B);var A=$(I)(B),j=A.year,q=A.month,X=A.day,K=A.hours,Z=A.minutes,ee=A.seconds,ie=A.milliseconds,ne=A.zone,oe=A.week,de=new Date,le=X||(j||q?1:de.getDate()),fe=j||de.getFullYear(),ge=0;j&&!q||(ge=q>0?q-1:de.getMonth());var re,ue=K||0,he=Z||0,pe=ee||0,Se=ie||0;return ne?new Date(Date.UTC(fe,ge,le,ue,he,pe,Se+60*ne.offset*1e3)):z?new Date(Date.UTC(fe,ge,le,ue,he,pe,Se)):(re=new Date(fe,ge,le,ue,he,pe,Se),oe&&(re=V(re).week(oe).toDate()),re)}catch{return new Date("")}})(N,D,O,M),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),U&&N!=this.format(D)&&(this.$d=new Date("")),f={}}else if(D instanceof Array)for(var L=D.length,H=1;H<=L;H+=1){P[1]=D[H-1];var _=M.apply(this,P);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}H===L&&(this.$d=new Date(""))}else R.call(this,T)}}}))})(Om)),Om.exports}var aL=oL();const iL=Ea(aL);gn.extend(iL);gn.extend(nL);gn.extend(LB);gn.extend(WB);gn.extend(GB);gn.extend(ZB);gn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(s){var c=(s||"").replace("Wo","wo");return r.bind(this)(c)}});var lL={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Di=function(t){var n=lL[t];return n||t.split("_")[0]},g6={getNow:function(){var t=gn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return gn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return gn().locale(Di(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Di(t)).weekday(0)},getWeek:function(t,n){return n.locale(Di(t)).week()},getShortWeekDays:function(t){return gn().locale(Di(t)).localeData().weekdaysMin()},getShortMonths:function(t){return gn().locale(Di(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Di(t)).format(r)},parse:function(t,n,r){for(var i=Di(t),s=0;s<r.length;s+=1){var c=r[s],d=n;if(c.includes("wo")||c.includes("Wo")){for(var f=d.split("-")[0],p=d.split("-")[1],g=gn(f,"YYYY").startOf("year").locale(i),h=0;h<=52;h+=1){var y=g.add(h,"week");if(y.format("Wo")===p)return y}return null}var C=gn(d,c,!0).locale(i);if(C.isValid())return C}return null}}};function sL(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var jo=l.createContext(null);function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function O2(e,t,n){return t=cL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cL(e){var t=uL(e,"string");return Ou(t)=="symbol"?t:String(t)}function uL(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dL={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function h6(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,s=e.transitionName,c=e.getPopupContainer,d=e.children,f=e.range,p=e.placement,g=e.builtinPlacements,h=g===void 0?dL:g,y=e.direction,C=e.visible,b=e.onClose,$=l.useContext(jo),S=$.prefixCls,w="".concat(S,"-dropdown"),M=sL(p,y==="rtl");return l.createElement(ud,{showAction:[],hideAction:["click"],popupPlacement:M,builtinPlacements:h,prefixCls:w,popupMotion:{motionName:s},popup:t,popupAlign:i,popupVisible:C,popupClassName:Q(r,O2(O2({},"".concat(w,"-range"),f),"".concat(w,"-rtl"),y==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(R){R||b()}},d)}function fL(e){return hL(e)||gL(e)||pL(e)||mL()}function mL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
217
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ip}}},US(e,$,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Zt(e),[n]:{padding:h,listStyleType:"none",backgroundColor:$,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...xo(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(p)} ${te(b)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:g,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${te(p)} ${te(b)}`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...xo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:$,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:C,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:y,backgroundColor:$,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Xo(e,"slide-up"),Xo(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down"),md(e,"zoom-big")]]},IB=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...jp({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Dp(e)}),PB=Pt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,s=Ot(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[NB(s),OB(s)]},IB,{resetStyle:!1}),Vp=e=>{const{menu:t,arrow:n,prefixCls:r,children:i,trigger:s,disabled:c,dropdownRender:d,popupRender:f,getPopupContainer:p,overlayClassName:g,rootClassName:h,overlayStyle:y,open:C,onOpenChange:b,mouseEnterDelay:$=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:w=!0,placement:M="",transitionName:x,classNames:R,styles:T,destroyPopupOnHide:N,destroyOnHidden:O}=e,{getPrefixCls:P,direction:D,getPopupContainer:W,className:k,style:U,classNames:G,styles:L}=It("dropdown"),H={...e,mouseEnterDelay:$,mouseLeaveDelay:S,autoAdjustOverflow:w},[_,B]=Lt([G,R],[L,T],{props:H}),I={...U,...y,...B.root},z=f||d,V=l.useMemo(()=>{const Re=P();return x!==void 0?x:M.includes("top")?`${Re}-slide-down`:`${Re}-slide-up`},[P,M,x]),A=l.useMemo(()=>M?M.includes("Center")?M.slice(0,M.indexOf("Center")):M:D==="rtl"?"bottomRight":"bottomLeft",[M,D]),j=P("dropdown",r),q=ar(j),[X,K]=PB(j,q),[,Z]=Wr(),ee=l.Children.only(VH(i)?l.createElement("span",null,i):i),ie=nr(ee,{className:Q(`${j}-trigger`,{[`${j}-rtl`]:D==="rtl"},ee.props.className),disabled:ee.props.disabled??c}),ne=c?[]:s,oe=!!ne?.includes("contextMenu"),[de,le]=Yt(!1,C),fe=ut(Re=>{b?.(Re,{source:"trigger"}),le(Re)}),ge=Q(g,h,X,K,q,k,_.root,{[`${j}-rtl`]:D==="rtl"}),re=_O({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:w,offset:Z.marginXXS,arrowWidth:n?Z.sizePopupArrow:0,borderRadius:Z.borderRadius}),ue=ut(()=>{t?.selectable&&t?.multiple||(b?.(!1,{source:"menu"}),le(!1))}),he=()=>{const Re=nn(_,["root"]),we=nn(B,["root"]);let se;return t?.items&&(se=l.createElement($d,{...t,classNames:{...Re,subMenu:{...Re}},styles:{...we,subMenu:{...we}}})),z&&(se=z(se)),se=l.Children.only(typeof se=="string"?l.createElement("span",null,se):se),l.createElement(SB,{prefixCls:`${j}-menu`,rootClassName:Q(K,q),expandIcon:l.createElement("span",{className:`${j}-menu-submenu-arrow`},D==="rtl"?l.createElement(Eu,{className:`${j}-menu-submenu-arrow-icon`}):l.createElement(ws,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ue,validator:({mode:be})=>{}},se)},[pe,Se]=pi("Dropdown",I.zIndex);let Ie=l.createElement(YO,{alignPoint:oe,...nn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:$,mouseLeaveDelay:S,visible:de,builtinPlacements:re,arrow:!!n,overlayClassName:ge,prefixCls:j,getPopupContainer:p||W,transitionName:V,trigger:ne,overlay:he,placement:A,onVisibleChange:fe,overlayStyle:{...I,zIndex:pe},autoDestroy:O??N},ie);return pe&&(Ie=l.createElement(ld.Provider,{value:Se},Ie)),Ie},zB=zp(Vp,"align",void 0,"dropdown",e=>e),AB=e=>l.createElement(zB,{...e},l.createElement("span",null));Vp._InternalPanelDoNotUseOrYouWillBeFired=AB;var xm={exports:{}},DB=xm.exports,$2;function p6(){return $2||($2=1,(function(e,t){(function(n,r){e.exports=r()})(DB,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",c="second",d="minute",f="hour",p="day",g="week",h="month",y="quarter",C="year",b="date",$="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var H=["th","st","nd","rd"],_=L%100;return"["+L+(H[(_-20)%10]||H[_]||H[0])+"]"}},x=function(L,H,_){var B=String(L);return!B||B.length>=H?L:""+Array(H+1-B.length).join(_)+L},R={s:x,z:function(L){var H=-L.utcOffset(),_=Math.abs(H),B=Math.floor(_/60),I=_%60;return(H<=0?"+":"-")+x(B,2,"0")+":"+x(I,2,"0")},m:function L(H,_){if(H.date()<_.date())return-L(_,H);var B=12*(_.year()-H.year())+(_.month()-H.month()),I=H.clone().add(B,h),z=_-I<0,V=H.clone().add(B+(z?-1:1),h);return+(-(B+(_-I)/(z?I-V:V-I))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:C,w:g,d:p,D:b,h:f,m:d,s:c,ms:s,Q:y}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},T="en",N={};N[T]=M;var O="$isDayjsObject",P=function(L){return L instanceof U||!(!L||!L[O])},D=function L(H,_,B){var I;if(!H)return T;if(typeof H=="string"){var z=H.toLowerCase();N[z]&&(I=z),_&&(N[z]=_,I=z);var V=H.split("-");if(!I&&V.length>1)return L(V[0])}else{var A=H.name;N[A]=H,I=A}return!B&&I&&(T=I),I||!B&&T},W=function(L,H){if(P(L))return L.clone();var _=typeof H=="object"?H:{};return _.date=L,_.args=arguments,new U(_)},k=R;k.l=D,k.i=P,k.w=function(L,H){return W(L,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var U=(function(){function L(_){this.$L=D(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[O]=!0}var H=L.prototype;return H.parse=function(_){this.$d=(function(B){var I=B.date,z=B.utc;if(I===null)return new Date(NaN);if(k.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var V=I.match(S);if(V){var A=V[2]-1||0,j=(V[7]||"0").substring(0,3);return z?new Date(Date.UTC(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)):new Date(V[1],A,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)}}return new Date(I)})(_),this.init()},H.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},H.$utils=function(){return k},H.isValid=function(){return this.$d.toString()!==$},H.isSame=function(_,B){var I=W(_);return this.startOf(B)<=I&&I<=this.endOf(B)},H.isAfter=function(_,B){return W(_)<this.startOf(B)},H.isBefore=function(_,B){return this.endOf(B)<W(_)},H.$g=function(_,B,I){return k.u(_)?this[B]:this.set(I,_)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(_,B){var I=this,z=!!k.u(B)||B,V=k.p(_),A=function(ne,oe){var de=k.w(I.$u?Date.UTC(I.$y,oe,ne):new Date(I.$y,oe,ne),I);return z?de:de.endOf(p)},j=function(ne,oe){return k.w(I.toDate()[ne].apply(I.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(oe)),I)},q=this.$W,X=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(V){case C:return z?A(1,0):A(31,11);case h:return z?A(1,X):A(0,X+1);case g:var ee=this.$locale().weekStart||0,ie=(q<ee?q+7:q)-ee;return A(z?K-ie:K+(6-ie),X);case p:case b:return j(Z+"Hours",0);case f:return j(Z+"Minutes",1);case d:return j(Z+"Seconds",2);case c:return j(Z+"Milliseconds",3);default:return this.clone()}},H.endOf=function(_){return this.startOf(_,!1)},H.$set=function(_,B){var I,z=k.p(_),V="set"+(this.$u?"UTC":""),A=(I={},I[p]=V+"Date",I[b]=V+"Date",I[h]=V+"Month",I[C]=V+"FullYear",I[f]=V+"Hours",I[d]=V+"Minutes",I[c]=V+"Seconds",I[s]=V+"Milliseconds",I)[z],j=z===p?this.$D+(B-this.$W):B;if(z===h||z===C){var q=this.clone().set(b,1);q.$d[A](j),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},H.set=function(_,B){return this.clone().$set(_,B)},H.get=function(_){return this[k.p(_)]()},H.add=function(_,B){var I,z=this;_=Number(_);var V=k.p(B),A=function(X){var K=W(z);return k.w(K.date(K.date()+Math.round(X*_)),z)};if(V===h)return this.set(h,this.$M+_);if(V===C)return this.set(C,this.$y+_);if(V===p)return A(1);if(V===g)return A(7);var j=(I={},I[d]=r,I[f]=i,I[c]=n,I)[V]||1,q=this.$d.getTime()+_*j;return k.w(q,this)},H.subtract=function(_,B){return this.add(-1*_,B)},H.format=function(_){var B=this,I=this.$locale();if(!this.isValid())return I.invalidDate||$;var z=_||"YYYY-MM-DDTHH:mm:ssZ",V=k.z(this),A=this.$H,j=this.$m,q=this.$M,X=I.weekdays,K=I.months,Z=I.meridiem,ee=function(oe,de,le,fe){return oe&&(oe[de]||oe(B,z))||le[de].slice(0,fe)},ie=function(oe){return k.s(A%12||12,oe,"0")},ne=Z||function(oe,de,le){var fe=oe<12?"AM":"PM";return le?fe.toLowerCase():fe};return z.replace(w,(function(oe,de){return de||(function(le){switch(le){case"YY":return String(B.$y).slice(-2);case"YYYY":return k.s(B.$y,4,"0");case"M":return q+1;case"MM":return k.s(q+1,2,"0");case"MMM":return ee(I.monthsShort,q,K,3);case"MMMM":return ee(K,q);case"D":return B.$D;case"DD":return k.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return ee(I.weekdaysMin,B.$W,X,2);case"ddd":return ee(I.weekdaysShort,B.$W,X,3);case"dddd":return X[B.$W];case"H":return String(A);case"HH":return k.s(A,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ne(A,j,!0);case"A":return ne(A,j,!1);case"m":return String(j);case"mm":return k.s(j,2,"0");case"s":return String(B.$s);case"ss":return k.s(B.$s,2,"0");case"SSS":return k.s(B.$ms,3,"0");case"Z":return V}return null})(oe)||V.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(_,B,I){var z,V=this,A=k.p(B),j=W(_),q=(j.utcOffset()-this.utcOffset())*r,X=this-j,K=function(){return k.m(V,j)};switch(A){case C:z=K()/12;break;case h:z=K();break;case y:z=K()/3;break;case g:z=(X-q)/6048e5;break;case p:z=(X-q)/864e5;break;case f:z=X/i;break;case d:z=X/r;break;case c:z=X/n;break;default:z=X}return I?z:k.a(z)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return N[this.$L]},H.locale=function(_,B){if(!_)return this.$L;var I=this.clone(),z=D(_,B,!0);return z&&(I.$L=z),I},H.clone=function(){return k.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},L})(),G=U.prototype;return W.prototype=G,[["$ms",s],["$s",c],["$m",d],["$H",f],["$W",p],["$M",h],["$y",C],["$D",b]].forEach((function(L){G[L[1]]=function(H){return this.$g(H,L[0],L[1])}})),W.extend=function(L,H){return L.$i||(L(H,U,W),L.$i=!0),W},W.locale=D,W.isDayjs=P,W.unix=function(L){return W(1e3*L)},W.en=N[T],W.Ls=N,W.p={},W}))})(xm)),xm.exports}var jB=p6();const gn=Ea(jB);var wm={exports:{}},_B=wm.exports,x2;function HB(){return x2||(x2=1,(function(e,t){(function(n,r){e.exports=r()})(_B,(function(){return function(n,r){r.prototype.weekday=function(i){var s=this.$locale().weekStart||0,c=this.$W,d=(c<s?c+7:c)-s;return this.$utils().u(i)?d:this.subtract(d,"day").add(i,"day")}}}))})(wm)),wm.exports}var BB=HB();const LB=Ea(BB);var Em={exports:{}},VB=Em.exports,w2;function FB(){return w2||(w2=1,(function(e,t){(function(n,r){e.exports=r()})(VB,(function(){return function(n,r,i){var s=r.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},d=function(h,y,C,b,$){var S=h.name?h:h.$locale(),w=c(S[y]),M=c(S[C]),x=w||M.map((function(T){return T.slice(0,b)}));if(!$)return x;var R=S.weekStart;return x.map((function(T,N){return x[(N+(R||0))%7]}))},f=function(){return i.Ls[i.locale()]},p=function(h,y){return h.formats[y]||(function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,$,S){return $||S.slice(1)}))})(h.formats[y.toUpperCase()])},g=function(){var h=this;return{months:function(y){return y?y.format("MMMM"):d(h,"months")},monthsShort:function(y){return y?y.format("MMM"):d(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):d(h,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):d(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):d(h,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return p(h.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return g.bind(this)()},i.localeData=function(){var h=f();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(y){return p(h,y)},meridiem:h.meridiem,ordinal:h.ordinal}},i.months=function(){return d(f(),"months")},i.monthsShort=function(){return d(f(),"monthsShort","months",3)},i.weekdays=function(h){return d(f(),"weekdays",null,null,h)},i.weekdaysShort=function(h){return d(f(),"weekdaysShort","weekdays",3,h)},i.weekdaysMin=function(h){return d(f(),"weekdaysMin","weekdays",2,h)}}}))})(Em)),Em.exports}var kB=FB();const WB=Ea(kB);var Mm={exports:{}},qB=Mm.exports,E2;function YB(){return E2||(E2=1,(function(e,t){(function(n,r){e.exports=r()})(qB,(function(){var n="week",r="year";return function(i,s,c){var d=s.prototype;d.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=c(this).startOf(r).add(1,r).date(p),h=c(this).endOf(n);if(g.isBefore(h))return 1}var y=c(this).startOf(r).date(p).startOf(n).subtract(1,"millisecond"),C=this.diff(y,n,!0);return C<0?c(this).startOf("week").week():Math.ceil(C)},d.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Mm)),Mm.exports}var UB=YB();const GB=Ea(UB);var Rm={exports:{}},XB=Rm.exports,M2;function KB(){return M2||(M2=1,(function(e,t){(function(n,r){e.exports=r()})(XB,(function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),s=this.week(),c=this.year();return s===1&&i===11?c+1:i===0&&s>=52?c-1:c}}}))})(Rm)),Rm.exports}var QB=KB();const ZB=Ea(QB);var Tm={exports:{}},JB=Tm.exports,R2;function eL(){return R2||(R2=1,(function(e,t){(function(n,r){e.exports=r()})(JB,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(c){var d=this,f=this.$locale();if(!this.isValid())return s.bind(this)(c);var p=this.$utils(),g=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((d.$M+1)/3);case"Do":return f.ordinal(d.$D);case"gggg":return d.weekYear();case"GGGG":return d.isoWeekYear();case"wo":return f.ordinal(d.week(),"W");case"w":case"ww":return p.s(d.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(d.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(d.$H===0?24:d.$H),h==="k"?1:2,"0");case"X":return Math.floor(d.$d.getTime()/1e3);case"x":return d.$d.getTime();case"z":return"["+d.offsetName()+"]";case"zzz":return"["+d.offsetName("long")+"]";default:return h}}));return s.bind(this)(g)}}}))})(Tm)),Tm.exports}var tL=eL();const nL=Ea(tL);var Om={exports:{}},rL=Om.exports,T2;function oL(){return T2||(T2=1,(function(e,t){(function(n,r){e.exports=r()})(rL,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,c=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,f={},p=function(S){return(S=+S)+(S>68?1900:2e3)},g=function(S){return function(w){this[S]=+w}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var M=w.match(/([+-]|\d\d)/g),x=60*M[1]+(+M[2]||0);return x===0?0:M[0]==="+"?-x:x})(S)}],y=function(S){var w=f[S];return w&&(w.indexOf?w:w.s.concat(w.f))},C=function(S,w){var M,x=f.meridiem;if(x){for(var R=1;R<=24;R+=1)if(S.indexOf(x(R,0,w))>-1){M=R>12;break}}else M=S===(w?"pm":"PM");return M},b={A:[d,function(S){this.afternoon=C(S,!1)}],a:[d,function(S){this.afternoon=C(S,!0)}],Q:[i,function(S){this.month=3*(S-1)+1}],S:[i,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[c,g("seconds")],ss:[c,g("seconds")],m:[c,g("minutes")],mm:[c,g("minutes")],H:[c,g("hours")],h:[c,g("hours")],HH:[c,g("hours")],hh:[c,g("hours")],D:[c,g("day")],DD:[s,g("day")],Do:[d,function(S){var w=f.ordinal,M=S.match(/\d+/);if(this.day=M[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===S&&(this.day=x)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[d,function(S){var w=y("months"),M=(y("monthsShort")||w.map((function(x){return x.slice(0,3)}))).indexOf(S)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[d,function(S){var w=y("months").indexOf(S)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(S){this.year=p(S)}],YYYY:[/\d{4}/,g("year")],Z:h,ZZ:h};function $(S){var w,M;w=S,M=f&&f.formats;for(var x=(S=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(W,k,U){var G=U&&U.toUpperCase();return k||M[U]||n[U]||M[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,H,_){return H||_.slice(1)}))}))).match(r),R=x.length,T=0;T<R;T+=1){var N=x[T],O=b[N],P=O&&O[0],D=O&&O[1];x[T]=D?{regex:P,parser:D}:N.replace(/^\[|\]$/g,"")}return function(W){for(var k={},U=0,G=0;U<R;U+=1){var L=x[U];if(typeof L=="string")G+=L.length;else{var H=L.regex,_=L.parser,B=W.slice(G),I=H.exec(B)[0];_.call(k,I),W=W.replace(I,"")}}return(function(z){var V=z.afternoon;if(V!==void 0){var A=z.hours;V?A<12&&(z.hours+=12):A===12&&(z.hours=0),delete z.afternoon}})(k),k}}return function(S,w,M){M.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(p=S.parseTwoDigitYear);var x=w.prototype,R=x.parse;x.parse=function(T){var N=T.date,O=T.utc,P=T.args;this.$u=O;var D=P[1];if(typeof D=="string"){var W=P[2]===!0,k=P[3]===!0,U=W||k,G=P[2];k&&(G=P[2]),f=this.$locale(),!W&&G&&(f=M.Ls[G]),this.$d=(function(B,I,z,V){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*B);var A=$(I)(B),j=A.year,q=A.month,X=A.day,K=A.hours,Z=A.minutes,ee=A.seconds,ie=A.milliseconds,ne=A.zone,oe=A.week,de=new Date,le=X||(j||q?1:de.getDate()),fe=j||de.getFullYear(),ge=0;j&&!q||(ge=q>0?q-1:de.getMonth());var re,ue=K||0,he=Z||0,pe=ee||0,Se=ie||0;return ne?new Date(Date.UTC(fe,ge,le,ue,he,pe,Se+60*ne.offset*1e3)):z?new Date(Date.UTC(fe,ge,le,ue,he,pe,Se)):(re=new Date(fe,ge,le,ue,he,pe,Se),oe&&(re=V(re).week(oe).toDate()),re)}catch{return new Date("")}})(N,D,O,M),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),U&&N!=this.format(D)&&(this.$d=new Date("")),f={}}else if(D instanceof Array)for(var L=D.length,H=1;H<=L;H+=1){P[1]=D[H-1];var _=M.apply(this,P);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}H===L&&(this.$d=new Date(""))}else R.call(this,T)}}}))})(Om)),Om.exports}var aL=oL();const iL=Ea(aL);gn.extend(iL);gn.extend(nL);gn.extend(LB);gn.extend(WB);gn.extend(GB);gn.extend(ZB);gn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(s){var c=(s||"").replace("Wo","wo");return r.bind(this)(c)}});var lL={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Di=function(t){var n=lL[t];return n||t.split("_")[0]},g6={getNow:function(){var t=gn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return gn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return gn().locale(Di(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Di(t)).weekday(0)},getWeek:function(t,n){return n.locale(Di(t)).week()},getShortWeekDays:function(t){return gn().locale(Di(t)).localeData().weekdaysMin()},getShortMonths:function(t){return gn().locale(Di(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Di(t)).format(r)},parse:function(t,n,r){for(var i=Di(t),s=0;s<r.length;s+=1){var c=r[s],d=n;if(c.includes("wo")||c.includes("Wo")){for(var f=d.split("-")[0],p=d.split("-")[1],g=gn(f,"YYYY").startOf("year").locale(i),h=0;h<=52;h+=1){var y=g.add(h,"week");if(y.format("Wo")===p)return y}return null}var C=gn(d,c,!0).locale(i);if(C.isValid())return C}return null}}};function sL(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var jo=l.createContext(null);function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function O2(e,t,n){return t=cL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cL(e){var t=uL(e,"string");return Ou(t)=="symbol"?t:String(t)}function uL(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dL={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function h6(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,s=e.transitionName,c=e.getPopupContainer,d=e.children,f=e.range,p=e.placement,g=e.builtinPlacements,h=g===void 0?dL:g,y=e.direction,C=e.visible,b=e.onClose,$=l.useContext(jo),S=$.prefixCls,w="".concat(S,"-dropdown"),M=sL(p,y==="rtl");return l.createElement(ud,{showAction:[],hideAction:["click"],popupPlacement:M,builtinPlacements:h,prefixCls:w,popupMotion:{motionName:s},popup:t,popupAlign:i,popupVisible:C,popupClassName:Q(r,O2(O2({},"".concat(w,"-range"),f),"".concat(w,"-rtl"),y==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(R){R||b()}},d)}function fL(e){return hL(e)||gL(e)||pL(e)||mL()}function mL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
218
218
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pL(e,t){if(e){if(typeof e=="string")return kv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kv(e,t)}}function gL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hL(e){if(Array.isArray(e))return kv(e)}function kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n1(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function cl(e){return e==null?[]:Array.isArray(e)?e:[e]}function su(e,t,n){var r=fL(e);return r[t]=n,r}function Fp(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function y6(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function b6(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(s){return e[s]});return r!==i?e[i]:void 0}function v6(e){return Fp(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function N2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function I2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N2(Object(n),!0).forEach(function(r){yL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yL(e,t,n){return t=bL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bL(e){var t=vL(e,"string");return Nu(t)=="symbol"?t:String(t)}function vL(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r1(e,t,n,r){var i=l.useMemo(function(){return e||function(c,d){var f=c;return t&&d.type==="date"?t(f,d.today):n&&d.type==="month"?n(f,d.locale):d.originNode}},[e,n,t]),s=l.useCallback(function(c,d){return i(c,I2(I2({},d),{},{range:r}))},[i,r]);return s}function SL(e,t){return wL(e)||xL(e,t)||$L(e,t)||CL()}function CL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
219
219
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $L(e,t){if(e){if(typeof e=="string")return P2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P2(e,t)}}function P2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function wL(e){if(Array.isArray(e))return e}function S6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),i=SL(r,2),s=i[0],c=i[1],d=function(g,h){c(function(y){return su(y,h,g)})},f=l.useMemo(function(){return s.map(function(p,g){if(p)return!0;var h=e[g];return h?!!(!n[g]&&!h||h&&t(h,{activeIndex:g})):!1})},[e,s,t,n]);return[f,d]}function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(e)}function z2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function A2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z2(Object(n),!0).forEach(function(r){EL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EL(e,t,n){return t=ML(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ML(e){var t=RL(e,"string");return Iu(t)=="symbol"?t:String(t)}function RL(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C6(e,t,n,r,i){var s="",c=[];return e&&c.push(i?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),s=c.join(":"),r&&(s+=".SSS"),i&&(s+=" A"),s}function TL(e,t,n,r,i,s){var c=e.fieldDateTimeFormat,d=e.fieldDateFormat,f=e.fieldTimeFormat,p=e.fieldMonthFormat,g=e.fieldYearFormat,h=e.fieldWeekFormat,y=e.fieldQuarterFormat,C=e.yearFormat,b=e.cellYearFormat,$=e.cellQuarterFormat,S=e.dayFormat,w=e.cellDateFormat,M=C6(t,n,r,i,s);return A2(A2({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(M),fieldDateFormat:d||"YYYY-MM-DD",fieldTimeFormat:f||M,fieldMonthFormat:p||"YYYY-MM",fieldYearFormat:g||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:y||"YYYY-[Q]Q",yearFormat:C||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:$||"[Q]Q",cellDateFormat:w||S||"D"})}function $6(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,s=t.showMillisecond,c=t.use12Hours;return ae.useMemo(function(){return TL(e,n,r,i,s,c)},[e,n,r,i,s,c])}function D2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(n),!0).forEach(function(r){OL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OL(e,t,n){return t=NL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NL(e){var t=IL(e,"string");return tl(t)=="symbol"?t:String(t)}function IL(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wv(e,t){return DL(e)||AL(e,t)||zL(e,t)||PL()}function PL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
220
220
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zL(e,t){if(e){if(typeof e=="string")return j2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j2(e,t)}}function j2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function DL(e){if(Array.isArray(e))return e}function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function Hc(e,t,n){return n??t.some(function(r){return e.includes(r)})}var jL=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function _L(e){var t=Fp(e,jL),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=tl(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function HL(e){return e&&typeof e=="string"}function x6(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function w6(e,t,n,r,i){var s=t,c=n,d=r;if(!e&&!s&&!c&&!d&&!i)s=!0,c=!0,d=!0;else if(e){var f,p,g,h=[s,c,d].some(function(b){return b===!1}),y=[s,c,d].some(function(b){return b===!0}),C=h?!0:!y;s=(f=s)!==null&&f!==void 0?f:C,c=(p=c)!==null&&p!==void 0?p:C,d=(g=d)!==null&&g!==void 0?g:C}return[s,c,d,i]}function E6(e){var t=e.showTime,n=_L(e),r=Wv(n,2),i=r[0],s=r[1],c=t&&tl(t)==="object"?t:{},d=ms(ms({defaultOpenValue:c.defaultOpenValue||c.defaultValue},i),c),f=d.showMillisecond,p=d.showHour,g=d.showMinute,h=d.showSecond,y=x6(p,g,h,f),C=w6(y,p,g,h,f),b=Wv(C,3);return p=b[0],g=b[1],h=b[2],[d,ms(ms({},d),{},{showHour:p,showMinute:g,showSecond:h,showMillisecond:f}),d.format,s]}function M6(e,t,n,r,i){var s=e==="time";if(e==="datetime"||s){for(var c=r,d=y6(e,i,null),f=d,p=[t,n],g=0;g<p.length;g+=1){var h=cl(p[g])[0];if(HL(h)){f=h;break}}var y=c.showHour,C=c.showMinute,b=c.showSecond,$=c.showMillisecond,S=c.use12Hours,w=Hc(f,["a","A","LT","LLL","LTS"],S),M=x6(y,C,b,$);M||(y=Hc(f,["H","h","k","LT","LLL"]),C=Hc(f,["m","LT","LLL"]),b=Hc(f,["s","LTS"]),$=Hc(f,["SSS"]));var x=w6(M,y,C,b,$),R=Wv(x,3);y=R[0],C=R[1],b=R[2];var T=t||C6(y,C,b,$,w);return ms(ms({},c),{},{format:T,showHour:y,showMinute:C,showSecond:b,showMillisecond:$,use12Hours:w})}return null}function qv(e){"@babel/helpers - typeof";return qv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qv(e)}function BL(e,t,n){if(t===!1)return null;var r=t&&qv(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var By=7;function hi(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Yv(e,t,n){return hi(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function nl(e,t,n){return hi(t,n,function(){return e.getYear(t)===e.getYear(n)})}function _2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function LL(e,t,n){return hi(t,n,function(){return nl(e,t,n)&&_2(e,t)===_2(e,n)})}function o1(e,t,n){return hi(t,n,function(){return nl(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function a1(e,t,n){return hi(t,n,function(){return nl(e,t,n)&&o1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function R6(e,t,n){return hi(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function T6(e,t,n){return hi(t,n,function(){return a1(e,t,n)&&R6(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Zc(e,t,n,r){return hi(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return nl(e,i,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Rr(e,t,n,r,i){switch(i){case"date":return a1(e,n,r);case"week":return Zc(e,t.locale,n,r);case"month":return o1(e,n,r);case"quarter":return LL(e,n,r);case"year":return nl(e,n,r);case"decade":return Yv(e,n,r);case"time":return R6(e,n,r);default:return T6(e,n,r)}}function kp(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function qf(e,t,n,r,i){return Rr(e,t,n,r,i)?!0:e.isAfter(n,r)}function VL(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),s=t.getWeekDay(i),c=t.addDate(i,r-s);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function er(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function tp(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],s=["setHour","setMinute","setSecond","setMillisecond"];return s.forEach(function(c,d){n?r=e[c](r,e[i[d]](n)):r=e[c](r,0)}),r}function FL(e,t,n,r,i){var s=ut(function(c,d){return!!(n&&n(c,d)||r&&e.isAfter(r,c)&&!Rr(e,t,r,c,d.type)||i&&e.isAfter(c,i)&&!Rr(e,t,i,c,d.type))});return s}function Uv(e){"@babel/helpers - typeof";return Uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uv(e)}function kL(e,t,n){return l.useMemo(function(){var r=y6(e,t,n),i=cl(r),s=i[0],c=Uv(s)==="object"&&s.type==="mask"?s.format:null;return[i.map(function(d){return typeof d=="string"||typeof d=="function"?d:d.format}),c]},[e,t,n])}function WL(e,t,n){return typeof e[0]=="function"||n?!0:t}function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function H2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H2(Object(n),!0).forEach(function(r){YL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YL(e,t,n){return t=UL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e){var t=GL(e,"string");return Pu(t)=="symbol"?t:String(t)}function GL(e,t){if(Pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XL(e,t,n,r){var i=ut(function(s,c){var d=qL({type:t},c);if(delete d.activeIndex,!e.isValidate(s)||n&&n(s,d))return!0;if((t==="date"||t==="time")&&r){var f,p=c&&c.activeIndex===1?"end":"start",g=((f=r.disabledTime)===null||f===void 0?void 0:f.call(r,s,p,{from:d.from}))||{},h=g.disabledHours,y=g.disabledMinutes,C=g.disabledSeconds,b=g.disabledMilliseconds,$=r.disabledHours,S=r.disabledMinutes,w=r.disabledSeconds,M=h||$,x=y||S,R=C||w,T=e.getHour(s),N=e.getMinute(s),O=e.getSecond(s),P=e.getMillisecond(s);if(M&&M().includes(T)||x&&x(T).includes(N)||R&&R(T,N).includes(O)||b&&b(T,N,O).includes(P))return!0}return!1});return i}function zu(e){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(e)}function B2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(n),!0).forEach(function(r){KL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KL(e,t,n){return t=QL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QL(e){var t=ZL(e,"string");return zu(t)=="symbol"?t:String(t)}function ZL(e,t){if(zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function L2(e,t){return nV(e)||tV(e,t)||eV(e,t)||JL()}function JL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -332,7 +332,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
332
332
|
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:te(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:te(e.controlHeight),verticalAlign:"top",input:{...f1(e),...u1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Up(e)},width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},lQ=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:te(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${te(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},sQ=e=>{const{componentCls:t}=e;return{[t]:{...Zt(e),display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:te(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...lQ(e),...iQ(e),...aQ(e),...oQ(e),...rQ(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"}}},cQ=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...xo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Uo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Uo(e)}}}},oN=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Fs(e)}),aN=e=>Ot(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Vs(e)),uQ=Pt("Pagination",e=>{const t=aN(e);return[sQ(t),cQ(t)]},oN),dQ=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:`${te(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}}}}},fQ=ad(["Pagination","bordered"],e=>{const t=aN(e);return dQ(t)},oN);function C4(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}const mQ=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:s,style:c,size:d,locale:f,responsive:p,showSizeChanger:g,selectComponentClass:h,pageSizeOptions:y,styles:C,classNames:b,...$}=e,{xs:S}=Ap(p),[,w]=Wr(),{getPrefixCls:M,direction:x,showSizeChanger:R,className:T,style:N,classNames:O,styles:P}=It("pagination"),D=M("pagination",n),[W,k]=uQ(D),U=fr(d),G=U==="small"||!!(S&&!U&&p),L={...e,size:U},[H,_]=Lt([O,b],[P,C],{props:L}),[B]=oo("Pagination",tT),I={...B,...f},[z,V]=C4(g),[A,j]=C4(R),q=z??A,X=V??j,K=h||Lr,Z=l.useMemo(()=>y?y.map(le=>Number(le)):void 0,[y]),ee=le=>{const{disabled:fe,size:ge,onSizeChange:re,"aria-label":ue,className:he,options:pe}=le,{className:Se,onChange:Ie}=X||{},Re=pe.find(we=>String(we.value)===String(ge))?.value;return l.createElement(K,{disabled:fe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:we=>we.parentNode,"aria-label":ue,options:pe,...X,value:Re,onChange:(we,se)=>{re?.(we),Ie?.(we,se)},size:G?"small":"middle",className:Q(he,Se)})},ie=l.useMemo(()=>{const le=l.createElement("span",{className:`${D}-item-ellipsis`},"•••"),fe=l.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(ws,null):l.createElement(Eu,null)),ge=l.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(Eu,null):l.createElement(ws,null)),re=l.createElement("a",{className:`${D}-item-link`},l.createElement("div",{className:`${D}-item-container`},x==="rtl"?l.createElement(d4,{className:`${D}-item-link-icon`}):l.createElement(u4,{className:`${D}-item-link-icon`}),le)),ue=l.createElement("a",{className:`${D}-item-link`},l.createElement("div",{className:`${D}-item-container`},x==="rtl"?l.createElement(u4,{className:`${D}-item-link-icon`}):l.createElement(d4,{className:`${D}-item-link-icon`}),le));return{prevIcon:fe,nextIcon:ge,jumpPrevIcon:re,jumpNextIcon:ue}},[x,D]),ne=M("select",r),oe=Q({[`${D}-${t}`]:!!t,[`${D}-mini`]:G,[`${D}-rtl`]:x==="rtl",[`${D}-bordered`]:w.wireframe},T,i,s,H.root,W,k),de={..._.root,...N,...c};return l.createElement(l.Fragment,null,w.wireframe&&l.createElement(fQ,{prefixCls:D}),l.createElement(nQ,{...ie,...$,styles:_,classNames:H,style:de,prefixCls:D,selectPrefixCls:ne,className:oe,locale:I,pageSizeOptions:Z,showSizeChanger:q,sizeChangerRender:ee}))},fp=100,iN=fp/5,lN=fp/2-iN/2,Zy=lN*2*Math.PI,$4=50,x4=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:lN,cx:$4,cy:$4,strokeWidth:iN,style:n})},pQ=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[s,c]=l.useState(!1);Nt(()=>{e!==0&&c(!0)},[e!==0]);const d=Math.max(Math.min(e,100),0);if(!s)return null;const f={strokeDashoffset:`${Zy/4}`,strokeDasharray:`${Zy*d/100} ${Zy*(100-d)/100}`};return l.createElement("span",{className:Q(r,`${n}-progress`,d<=0&&i)},l.createElement("svg",{viewBox:`0 0 ${fp} ${fp}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},l.createElement(x4,{dotClassName:n,hasCircleCls:!0}),l.createElement(x4,{dotClassName:n,style:f})))};function gQ(e){const{prefixCls:t,percent:n=0,className:r,style:i}=e,s=`${t}-dot`,c=`${s}-holder`,d=`${c}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:Q(c,r,n>0&&d),style:i},l.createElement("span",{className:Q(s,`${t}-dot-spin`)},[1,2,3,4].map(f=>l.createElement("i",{className:`${t}-dot-item`,key:f})))),l.createElement(pQ,{prefixCls:t,percent:n}))}function hQ(e){const{prefixCls:t,indicator:n,percent:r,className:i,style:s}=e,c=`${t}-dot`;return n&&l.isValidElement(n)?nr(n,d=>({className:Q(d.className,c,i),style:{...d.style,...s},percent:r})):l.createElement(gQ,{prefixCls:t,percent:r,className:i,style:s})}const yQ=new At("antSpinMove",{to:{opacity:1}}),bQ=new At("antRotate",{to:{transform:"rotate(405deg)"}}),vQ=e=>{const{componentCls:t,calc:n}=e;return{[t]:{...Zt(e),position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:yQ,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:bQ,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}}}},SQ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},CQ=Pt("Spin",e=>{const t=Ot(e,{spinDotDefault:e.colorTextDescription});return vQ(t)},SQ),$Q=200,w4=[[30,.05],[70,.03],[96,.01]];function xQ(e,t){const[n,r]=l.useState(0),i=l.useRef(null),s=t==="auto";return l.useEffect(()=>(s&&e&&(r(0),i.current=setInterval(()=>{r(c=>{const d=100-c;for(let f=0;f<w4.length;f+=1){const[p,g]=w4[f];if(c<=p)return c+d*g}return c})},$Q)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[s,e]),s?n:t}let sN;function wQ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const mp=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:s,size:c="default",tip:d,wrapperClassName:f,style:p,children:g,fullscreen:h=!1,indicator:y,percent:C,classNames:b,styles:$,...S}=e,{getPrefixCls:w,direction:M,indicator:x,className:R,style:T,classNames:N,styles:O}=It("spin"),P=w("spin",t),[D,W]=CQ(P),[k,U]=l.useState(()=>n&&!wQ(n,r)),G=xQ(k,C);l.useEffect(()=>{if(n){const q=SU(r,()=>{U(!0)});return q(),()=>{q?.cancel?.()}}U(!1)},[r,n]);const L=l.useMemo(()=>typeof g<"u"&&!h,[g,h]),H={...e,size:c,spinning:k,tip:d,fullscreen:h,children:g,percent:G},[_,B]=Lt([N,b],[O,$],{props:H}),I=Q(P,R,{[`${P}-sm`]:c==="small",[`${P}-lg`]:c==="large",[`${P}-spinning`]:k,[`${P}-show-text`]:!!d,[`${P}-rtl`]:M==="rtl"},i,!h&&s,!h&&_.root,D,W),z=Q(`${P}-container`,{[`${P}-blur`]:k}),V=y??x??sN,A={...T,...p},j=l.createElement("div",{...S,style:h?A:{...B.root,...A},className:I,"aria-live":"polite","aria-busy":k},l.createElement(hQ,{className:_.indicator,style:B.indicator,prefixCls:P,indicator:V,percent:G}),d&&(L||h)?l.createElement("div",{className:Q(`${P}-text`,_.tip),style:B.tip},d):null);return L?l.createElement("div",{...S,className:Q(`${P}-nested-loading`,f,_.wrapper,D,W),style:B.wrapper},k&&l.createElement("div",{key:"loading"},j),l.createElement("div",{className:z,key:"container"},g)):h?l.createElement("div",{className:Q(`${P}-fullscreen`,{[`${P}-fullscreen-show`]:k},s,D,W,_.mask),style:B.mask},j):j};mp.setDefaultIndicator=e=>{sN=e};const C1=ae.createContext({});C1.Consumer;const EQ=({prefixCls:e,className:t,avatar:n,title:r,description:i,...s})=>{const{getPrefixCls:c}=l.useContext(dt),d=c("list",e),f=Q(`${d}-item-meta`,t),p=ae.createElement("div",{className:`${d}-item-meta-content`},r&&ae.createElement("h4",{className:`${d}-item-meta-title`},r),i&&ae.createElement("div",{className:`${d}-item-meta-description`},i));return ae.createElement("div",{...s,className:f},n&&ae.createElement("div",{className:`${d}-item-meta-avatar`},n),(r||i)&&p)},MQ=ae.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:s,styles:c,className:d,classNames:f,colStyle:p,...g}=e,{grid:h,itemLayout:y}=l.useContext(C1),{getPrefixCls:C,list:b}=l.useContext(dt),$=O=>Q(b?.item?.classNames?.[O],f?.[O]),S=O=>({...b?.item?.styles?.[O],...c?.[O]}),w=()=>{const O=dr(r);return O.some(D=>typeof D=="string")&&O.length>1},M=()=>y==="vertical"?!!s:!w(),x=C("list",n),R=i&&i.length>0&&ae.createElement("ul",{className:Q(`${x}-item-action`,$("actions")),key:"actions",style:S("actions")},i.map((O,P)=>ae.createElement("li",{key:`${x}-item-action-${P}`},O,P!==i.length-1&&ae.createElement("em",{className:`${x}-item-action-split`})))),T=h?"div":"li",N=ae.createElement(T,{...g,...h?{}:{ref:t},className:Q(`${x}-item`,{[`${x}-item-no-flex`]:!M()},d)},y==="vertical"&&s?[ae.createElement("div",{className:`${x}-item-main`,key:"content"},r,R),ae.createElement("div",{className:Q(`${x}-item-extra`,$("extra")),key:"extra",style:S("extra")},s)]:[r,R,nr(s,{key:"extra"})]);return h?ae.createElement(MU,{ref:t,flex:1,style:p},N):N}),cN=MQ;cN.Meta=EQ;const RQ=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:s,itemPaddingLG:c,marginLG:d,borderRadiusLG:f}=e,p=te(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${p} ${p} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${p} ${p}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${te(i)} ${te(d)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},TQ=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:s,margin:c}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:s}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${te(c)}`}}}}}},OQ=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:s,marginLG:c,padding:d,itemPadding:f,colorPrimary:p,itemPaddingSM:g,itemPaddingLG:h,paddingXS:y,margin:C,colorText:b,colorTextDescription:$,motionDurationSlow:S,lineWidth:w,headerBg:M,footerBg:x,emptyTextPadding:R,metaMarginBottom:T,avatarMarginRight:N,titleMarginBottom:O,descriptionFontSize:P}=e;return{[t]:{...Zt(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:M},[`${t}-footer`]:{background:x},[`${t}-header, ${t}-footer`]:{paddingBlock:s},[`${t}-pagination`]:{marginBlockStart:c,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:b,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:N},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:b},[`${t}-item-meta-title`]:{margin:`0 0 ${te(e.marginXXS)} 0`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:b,transition:`all ${S}`,"&:hover":{color:p}}},[`${t}-item-meta-description`]:{color:$,fontSize:P,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${te(y)}`,color:$,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:w,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${te(d)} 0`,color:$,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:R,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:C,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:c},[`${t}-item-meta`]:{marginBlockEnd:T,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:b,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:d,marginInlineStart:"auto","> li":{padding:`0 ${te(d)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:h},[`${t}-sm ${t}-item`]:{padding:g},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},NQ=e=>({contentWidth:220,itemPadding:`${te(e.paddingContentVertical)} 0`,itemPaddingSM:`${te(e.paddingContentVerticalSM)} ${te(e.paddingContentHorizontal)}`,itemPaddingLG:`${te(e.paddingContentVerticalLG)} ${te(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),IQ=Pt("List",e=>{const t=Ot(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[OQ(t),RQ(t),TQ(t)]},NQ),PQ=(e,t)=>{const{pagination:n=!1,prefixCls:r,bordered:i=!1,split:s=!0,className:c,rootClassName:d,style:f,children:p,itemLayout:g,loadMore:h,grid:y,dataSource:C=[],size:b,header:$,footer:S,loading:w=!1,rowKey:M,renderItem:x,locale:R,...T}=e,N=n&&typeof n=="object"?n:{},[O,P]=l.useState(N.defaultCurrent||1),[D,W]=l.useState(N.defaultPageSize||10),{getPrefixCls:k,direction:U,className:G,style:L}=It("list"),{renderEmpty:H}=l.useContext(dt),_={current:1,total:0,position:"bottom"},B=Re=>(we,se)=>{P(we),W(se),n&&n?.[Re]?.(we,se)},I=B("onChange"),z=B("onShowSizeChange"),V=(Re,we)=>{if(!x)return null;let se;return typeof M=="function"?se=M(Re):M?se=Re[M]:se=Re.key,se||(se=`list-item-${we}`),l.createElement(l.Fragment,{key:se},x(Re,we))},A=!!(h||n||S),j=k("list",r),[q,X]=IQ(j);let K=w;typeof K=="boolean"&&(K={spinning:K});const Z=!!K?.spinning,ee=fr(b);let ie="";switch(ee){case"large":ie="lg";break;case"small":ie="sm";break}const ne=Q(j,{[`${j}-vertical`]:g==="vertical",[`${j}-${ie}`]:ie,[`${j}-split`]:s,[`${j}-bordered`]:i,[`${j}-loading`]:Z,[`${j}-grid`]:!!y,[`${j}-something-after-last-item`]:A,[`${j}-rtl`]:U==="rtl"},G,c,d,q,X),oe=Gb(_,{total:C.length,current:O,pageSize:D},n||{}),de=Math.ceil(oe.total/oe.pageSize);oe.current=Math.min(oe.current,de);const le=n&&l.createElement("div",{className:Q(`${j}-pagination`)},l.createElement(mQ,{align:"end",...oe,onChange:I,onShowSizeChange:z}));let fe=xn(C);n&&C.length>(oe.current-1)*oe.pageSize&&(fe=xn(C).splice((oe.current-1)*oe.pageSize,oe.pageSize));const ge=Object.keys(y||{}).some(Re=>["xs","sm","md","lg","xl","xxl"].includes(Re)),re=Ap(ge),ue=l.useMemo(()=>{for(let Re=0;Re<el.length;Re+=1){const we=el[Re];if(re[we])return we}},[re]),he=l.useMemo(()=>{if(!y)return;const Re=ue&&y[ue]?y[ue]:y.column;if(Re)return{width:`${100/Re}%`,maxWidth:`${100/Re}%`}},[JSON.stringify(y),ue]);let pe=Z&&l.createElement("div",{style:{minHeight:53}});if(fe.length>0){const Re=fe.map(V);pe=y?l.createElement(TU,{gutter:y.gutter},l.Children.map(Re,we=>l.createElement("div",{key:we?.key,style:he},we))):l.createElement("ul",{className:`${j}-items`},Re)}else!p&&!Z&&(pe=l.createElement("div",{className:`${j}-empty-text`},R?.emptyText||H?.("List")||l.createElement(IO,{componentName:"List"})));const Se=oe.position,Ie=l.useMemo(()=>({grid:y,itemLayout:g}),[JSON.stringify(y),g]);return l.createElement(C1.Provider,{value:Ie},l.createElement("div",{ref:t,style:{...L,...f},className:ne,...T},(Se==="top"||Se==="both")&&le,$&&l.createElement("div",{className:`${j}-header`},$),l.createElement(mp,{...K},pe,p),S&&l.createElement("div",{className:`${j}-footer`},S),h||(Se==="bottom"||Se==="both")&&le))},zQ=l.forwardRef(PQ),So=zQ;So.Item=cN;const AQ=(e,t=!1)=>t&&!Mr(e)?[]:Array.isArray(e)?e:[e];let Vi=null,Ui=e=>e(),ed=[],td={};function E4(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=td,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:i}}const DQ=ae.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=l.useContext(dt),s=td.prefixCls||i("message"),c=l.useContext(E9),[d,f]=OT({...n,prefixCls:s,...c.message});return ae.useImperativeHandle(t,()=>{const p={...d};return Object.keys(p).forEach(g=>{p[g]=(...h)=>(r(),d[g].apply(d,h))}),{instance:p,sync:r}}),f}),jQ=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(E4),i=()=>{r(E4)};ae.useEffect(i,[]);const s=wT(),c=s.getRootPrefixCls(),d=s.getIconPrefixCls(),f=s.getTheme(),p=ae.createElement(DQ,{ref:t,sync:i,messageConfig:n});return ae.createElement(Qo,{prefixCls:c,iconPrefixCls:d,theme:f},s.holderRender?s.holderRender(p):p)}),Kp=()=>{if(!Vi){const e=document.createDocumentFragment(),t={fragment:e};Vi=t,Ui(()=>{DS(ae.createElement(jQ,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,Kp())})}}),e)});return}Vi.instance&&(ed.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ui(()=>{const r=Vi.instance.open({...td,...e.config});r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ui(()=>{Vi?.instance.destroy(e.key)});break;default:Ui(()=>{var r;const i=(r=Vi.instance)[t].apply(r,xn(e.args));i?.then(e.resolve),e.setCloseFn(i)})}}),ed=[])};function _Q(e){td={...td,...e},Ui(()=>{Vi?.sync?.()})}function HQ(e){const t=AS(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return ed.push(i),()=>{r?Ui(()=>{r()}):i.skipped=!0}});return Kp(),t}function BQ(e,t){const n=AS(r=>{let i;const s={type:e,args:t,resolve:r,setCloseFn:c=>{i=c}};return ed.push(s),()=>{i?Ui(()=>{i()}):s.skipped=!0}});return Kp(),n}const LQ=e=>{ed.push({type:"destroy",key:e}),Kp()},VQ=["success","info","warning","error","loading"],FQ={open:HQ,destroy:LQ,config:_Q,useMessage:eD,_InternalPanelDoNotUseOrYouWillBeFired:UA},$n=FQ;VQ.forEach(e=>{$n[e]=(...t)=>BQ(e,t)});const kQ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:s,title:c,children:d,footer:f,...p}=e,{getPrefixCls:g}=l.useContext(dt),h=g(),y=t||g("modal"),C=ar(h),[b,$]=rO(y,C),S=`${y}-confirm`;let w={};return s?w={closable:i??!1,title:"",footer:"",children:l.createElement(aO,{...e,prefixCls:y,confirmPrefixCls:S,rootPrefixCls:h,content:d})}:w={closable:i??!0,title:c,footer:f!==null&&l.createElement(JT,{...e}),children:d},l.createElement(kT,{prefixCls:y,className:Q(b,`${y}-pure-panel`,s&&S,s&&`${S}-${s}`,n,$,C),...p,closeIcon:ZT(y,r),closable:i,...w})},WQ=pO(kQ);function uN(e){return vd(cO(e))}const ao=oO;ao.useModal=w9;ao.info=function(t){return vd(uO(t))};ao.success=function(t){return vd(dO(t))};ao.error=function(t){return vd(fO(t))};ao.warning=uN;ao.warn=uN;ao.confirm=function(t){return vd(mO(t))};ao.destroyAll=function(){for(;Yi.length;){const t=Yi.pop();t&&t()}};ao.config=S9;ao._InternalPanelDoNotUseOrYouWillBeFired=WQ;const qQ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:s,colorWarning:c,marginXXS:d,marginXS:f,fontSize:p,fontWeightStrong:g,colorTextHeading:h}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:p},[`${t}-message`]:{marginBottom:f,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:p,lineHeight:1,marginInlineEnd:f},[`${t}-title`]:{fontWeight:g,color:h,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:d,color:s}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:f}}}}},YQ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},dN=Pt("Popconfirm",e=>qQ(e),YQ,{resetStyle:!1}),fN=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:s,cancelText:c,okText:d,okType:f="primary",icon:p=l.createElement(As,null),showCancel:g=!0,close:h,onConfirm:y,onCancel:C,onPopupClick:b,classNames:$,styles:S}=e,{getPrefixCls:w}=l.useContext(dt),[M]=oo("Popconfirm",$a.Popconfirm),x=Rs(i),R=Rs(s);return l.createElement("div",{className:`${t}-inner-content`,onClick:b},l.createElement("div",{className:`${t}-message`},p&&l.createElement("span",{className:`${t}-message-icon`},p),l.createElement("div",{className:`${t}-message-text`},x&&l.createElement("div",{className:Q(`${t}-title`,$?.title),style:S?.title},x),R&&l.createElement("div",{className:Q(`${t}-description`,$?.content),style:S?.content},R))),l.createElement("div",{className:`${t}-buttons`},g&&l.createElement(_t,{onClick:C,size:"small",...r},c||M?.cancelText),l.createElement(BS,{buttonProps:{size:"small",...jS(f),...n},actionFn:y,close:h,prefixCls:w("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},d||M?.okText)))},UQ=e=>{const{prefixCls:t,placement:n,className:r,style:i,...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("popconfirm",t);return dN(d),l.createElement(FO,{placement:n,className:Q(d,r),style:i,content:l.createElement(fN,{prefixCls:d,...s})})},GQ=l.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:i,okType:s="primary",icon:c=l.createElement(As,null),children:d,overlayClassName:f,onOpenChange:p,overlayStyle:g,styles:h,arrow:y,classNames:C,...b}=e,{getPrefixCls:$,className:S,style:w,classNames:M,styles:x,arrow:R,trigger:T}=It("popconfirm"),[N,O]=Yt(e.defaultOpen??!1,e.open),P=GS(y,R),D=i||T||"click",W=(V,A)=>{O(V),p?.(V,A)},k=V=>{W(!1,V)},U=V=>e.onConfirm?.call(void 0,V),G=V=>{W(!1,V),e.onCancel?.call(void 0,V)},L=(V,A)=>{const{disabled:j=!1}=e;j||W(V,A)},H=$("popconfirm",n),_={...e,placement:r,trigger:D,okType:s,overlayStyle:g,styles:h,classNames:C},[B,I]=Lt([M,C],[x,h],{props:_}),z=Q(H,S,f,B.root);return dN(H),l.createElement(kO,{arrow:P,...nn(b,["title"]),trigger:D,placement:r,onOpenChange:L,open:N,ref:t,classNames:{root:z,container:B.container,arrow:B.arrow},styles:{root:{...w,...I.root,...g},container:I.container,arrow:I.arrow},content:l.createElement(fN,{okType:s,icon:c,...e,prefixCls:H,close:k,onConfirm:U,onCancel:G,classNames:B,styles:I}),"data-popover-inject":!0},d)}),cS=GQ;cS._InternalPanelDoNotUseOrYouWillBeFired=UQ;const XQ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},KQ=()=>{const e=l.useRef([]),t=l.useRef(null);return l.useEffect(()=>{const n=Date.now();let r=!1;e.current.forEach(i=>{if(!i)return;r=!0;const s=i.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(s.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},M4=({bg:e,children:t})=>l.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function R4(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),i=`${Math.floor(r*t)}%`;return`${e[n]} ${i}`})}const QQ=l.forwardRef((e,t)=>{const{prefixCls:n,color:r,gradientId:i,radius:s,className:c,style:d,ptg:f,strokeLinecap:p,strokeWidth:g,size:h,gapDegree:y}=e,C=r&&typeof r=="object",b=C?"#FFF":void 0,$=h/2,S=l.createElement("circle",{className:Q(`${n}-circle-path`,c),r:s,cx:$,cy:$,stroke:b,strokeLinecap:p,strokeWidth:g,opacity:f===0?0:1,style:d,ref:t});if(!C)return S;const w=`${i}-conic`,M=y?`${180+y/2}deg`:"0deg",x=R4(r,(360-y)/360),R=R4(r,1),T=`conic-gradient(from ${M}, ${x.join(", ")})`,N=`linear-gradient(to ${y?"bottom":"top"}, ${R.join(", ")})`;return l.createElement(l.Fragment,null,l.createElement("mask",{id:w},S),l.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:`url(#${w})`},l.createElement(M4,{bg:N},l.createElement(M4,{bg:T}))))}),tu=100,Jy=(e,t,n,r,i,s,c,d,f,p,g=0)=>{const h=n/100*360*((360-s)/360),y=s===0?0:{bottom:0,top:180,left:90,right:-90}[c];let C=(100-r)/100*t;f==="round"&&r!==100&&(C+=p/2,C>=t&&(C=t-.01));const b=tu/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:C+g,transform:`rotate(${i+h+y}deg)`,transformOrigin:`${b}px ${b}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ZQ=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:ae.createElement("style",null,`@keyframes ${n} {
|
|
333
333
|
0% { transform: rotate(0deg); }
|
|
334
334
|
100% { transform: rotate(360deg); }
|
|
335
|
-
}`)}});function uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uS.apply(this,arguments)}function T4(e){const t=e??[];return Array.isArray(t)?t:[t]}const JQ=e=>{const{id:t,prefixCls:n,classNames:r={},styles:i={},steps:s,strokeWidth:c,railWidth:d,gapDegree:f=0,gapPosition:p,railColor:g,strokeLinecap:h,style:y,className:C,strokeColor:b,percent:$,loading:S,...w}={...XQ,...e},M=tu/2,x=Ko(t),R=`${x}-gradient`,T=M-c/2,N=Math.PI*2*T,O=f>0?90+f/2:-90,P=N*((360-f)/360),{count:D,gap:W}=typeof s=="object"?s:{count:s,gap:2},k=T4($),U=T4(b),G=U.find(j=>j&&typeof j=="object"),H=G&&typeof G=="object"?"butt":h,{indeterminateStyleProps:_,indeterminateStyleAnimation:B}=ZQ({id:x,loading:S}),I=Jy(N,P,0,100,O,f,p,g,H,c),z=KQ(),V=()=>{let j=0;return k.map((q,X)=>{const K=U[X]||U[U.length-1],Z=Jy(N,P,j,q,O,f,p,K,H,c);return j+=q,l.createElement(QQ,{key:X,color:K,ptg:q,radius:T,prefixCls:n,gradientId:R,className:r.track,style:{...Z,..._,...i.track},strokeLinecap:H,strokeWidth:c,gapDegree:f,ref:ee=>{z[X]=ee},size:tu})}).reverse()},A=()=>{const j=Math.round(D*(k[0]/100)),q=100/D;let X=0;return new Array(D).fill(null).map((K,Z)=>{const ee=Z<=j-1?U[0]:g,ie=ee&&typeof ee=="object"?`url(#${R})`:void 0,ne=Jy(N,P,X,q,O,f,p,ee,"butt",c,W);return X+=(P-ne.strokeDashoffset+W)*100/P,l.createElement("circle",{key:Z,className:Q(`${n}-circle-path`,r.track),r:T,cx:M,cy:M,stroke:ie,strokeWidth:c,opacity:1,style:{...ne,...i.track},ref:oe=>{z[Z]=oe}})})};return l.createElement("svg",uS({className:Q(`${n}-circle`,r.root,C),viewBox:`0 0 ${tu} ${tu}`,style:{...i.root,...y},id:t,role:"presentation"},w),!D&&l.createElement("circle",{className:Q(`${n}-circle-rail`,r.rail),r:T,cx:M,cy:M,stroke:g,strokeLinecap:H,strokeWidth:d||c,style:{...I,...i.rail}}),D?A():V(),B)};function Xi(e){return!e||e<0?0:e>100?100:e}function pp({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const eZ=({percent:e,success:t})=>{const n=Xi(pp({success:t}));return[n,Xi(Xi(e)-n)]},tZ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||ys.green,t||null]},Qp=(e,t,n)=>{let r=-1,i=-1;if(t==="step"){const s=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,i=c??8):typeof e=="number"?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=s}else if(t==="line"){const s=n?.strokeWidth;typeof e=="string"||typeof e>"u"?i=s||(e==="small"?6:8):typeof e=="number"?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,i]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},nZ=3,rZ=e=>nZ/e*100,O4=["root","body","indicator"],oZ=e=>{const{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:s,strokeLinecap:c="round",gapPosition:d,gapPlacement:f,gapDegree:p,width:g=120,type:h,children:y,success:C,size:b=g,steps:$}=e,{direction:S}=It("progress"),w=i??s,[M,x]=Qp(b,"circle");let{strokeWidth:R}=e;R===void 0&&(R=Math.max(rZ(M),6));const T={width:M,height:x,fontSize:M*.15+6},N=l.useMemo(()=>{if(p||p===0)return p;if(h==="dashboard")return 75},[p,h]),O=eZ(e),P=l.useMemo(()=>{const H=(f??d)||h==="dashboard"&&"bottom"||void 0,_=S==="rtl";switch(H){case"start":return _?"right":"left";case"end":return _?"left":"right";default:return H}},[S,f,d,h]),D=Object.prototype.toString.call(e.strokeColor)==="[object Object]",W=tZ({success:C,strokeColor:e.strokeColor}),k=Q(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),U=l.createElement(JQ,{steps:$,percent:$?O[1]:O,strokeWidth:R,railWidth:R,strokeColor:$?W[1]:W,strokeLinecap:c,railColor:w,prefixCls:t,gapDegree:N,gapPosition:P,classNames:nn(n,O4),styles:nn(r,O4)}),G=M<=20,L=l.createElement("div",{className:k,style:{...T,...r.body}},U,!G&&y);return G?l.createElement(ur,{title:y},L):L},dS="--progress-line-stroke-color",aZ=e=>{const t="-100%";return new At("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},iZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...Zt(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},lZ=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:aZ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},sZ=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},cZ=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},uZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},dZ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),fZ=Pt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Ot(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[iZ(n),lZ(n),sZ(n),cZ(n),uZ(n)]},dZ),mZ=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},pZ=(e,t)=>{const{from:n=ys.blue,to:r=ys.blue,direction:i=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){const d=mZ(s),f=`linear-gradient(${i}, ${d})`;return{background:f,[dS]:f}}const c=`linear-gradient(${i}, ${n}, ${r})`;return{background:c,[dS]:c}},gZ=e=>{const{prefixCls:t,classNames:n,styles:r,direction:i,percent:s,size:c,strokeWidth:d,strokeColor:f,strokeLinecap:p="round",children:g,railColor:h,trailColor:y,percentPosition:C,success:b}=e,{align:$,type:S}=C,w=h??y,M=p==="square"||p==="butt"?0:void 0,x=c??[-1,d||(c==="small"?6:8)],[R,T]=Qp(x,"line",{strokeWidth:d}),N={backgroundColor:w||void 0,borderRadius:M,height:T},O=`${t}-track`,P=f&&typeof f!="string"?pZ(f,i):{[dS]:f,background:f},D={width:`${Xi(s)}%`,height:T,borderRadius:M,...P},W=pp(e),k={width:`${Xi(W)}%`,height:T,borderRadius:M,backgroundColor:b?.strokeColor};return l.createElement("div",{className:Q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:$==="center"&&S==="outer"}),style:{width:R>0?R:"100%",...r.body}},l.createElement("div",{className:Q(`${t}-rail`,n.rail),style:{...N,...r.rail}},l.createElement("div",{className:Q(O,n.track),style:{...D,...r.track}},S==="inner"&&g),W!==void 0&&l.createElement("div",{className:Q(O,`${O}-success`,n.track),style:{...k,...r.track}})),S==="outer"&&g)},hZ=e=>{const{classNames:t,styles:n,size:r,steps:i,rounding:s=Math.round,percent:c=0,strokeWidth:d=8,strokeColor:f,railColor:p,trailColor:g,prefixCls:h,children:y}=e,C=s(i*(c/100)),$=r??[r==="small"?2:14,d],[S,w]=Qp($,"step",{steps:i,strokeWidth:d}),M=S/i,x=Array.from({length:i}),R=p??g;for(let T=0;T<i;T++){const N=Array.isArray(f)?f[T]:f;x[T]=l.createElement("div",{key:T,className:Q(`${h}-steps-item`,{[`${h}-steps-item-active`]:T<=C-1},t.track),style:{backgroundColor:T<=C-1?N:R,width:M,height:w,...n.track}})}return l.createElement("div",{className:Q(`${h}-steps-body`,t.body),style:n.body},x,y)},yZ=["normal","exception","active","success"],bZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,classNames:s,styles:c,steps:d,strokeColor:f,percent:p=0,size:g="default",showInfo:h=!0,type:y="line",status:C,format:b,style:$,percentPosition:S={},...w}=e,{align:M="end",type:x="outer"}=S,R=Array.isArray(f)?f[0]:f,T=typeof f=="string"||Array.isArray(f)?f:void 0,N=l.useMemo(()=>{if(R){const ee=typeof R=="string"?R:Object.values(R)[0];return new en(ee).isLight()}return!1},[f]),O=l.useMemo(()=>{const ee=pp(e);return Number.parseInt(ee!==void 0?(ee??0)?.toString():(p??0)?.toString(),10)},[p,e.success]),P=l.useMemo(()=>!yZ.includes(C)&&O>=100?"success":C||"normal",[C,O]),{getPrefixCls:D,direction:W,className:k,style:U,classNames:G,styles:L}=It("progress"),H=D("progress",n),[_,B]=fZ(H),I={...e,percent:p,type:y,size:g,showInfo:h,percentPosition:S},[z,V]=Lt([G,s],[L,c],{props:I}),A=y==="line",j=A&&!d,q=l.useMemo(()=>{if(!h)return null;const ee=pp(e);let ie;const ne=b||(de=>`${de}%`),oe=A&&N&&x==="inner";return x==="inner"||b||P!=="exception"&&P!=="success"?ie=ne(Xi(p),Xi(ee)):P==="exception"?ie=A?l.createElement(zs,null):l.createElement(qr,null):P==="success"&&(ie=A?l.createElement(xp,null):l.createElement(sl,null)),l.createElement("span",{className:Q(`${H}-indicator`,{[`${H}-indicator-bright`]:oe,[`${H}-indicator-${M}`]:j,[`${H}-indicator-${x}`]:j},z.indicator),style:V.indicator,title:typeof ie=="string"?ie:void 0},ie)},[h,p,O,P,y,H,b,A,N,x,M,j,z.indicator,V.indicator]),X={...e,classNames:z,styles:V};let K;y==="line"?K=d?l.createElement(hZ,{...X,strokeColor:T,prefixCls:H,steps:typeof d=="object"?d.count:d},q):l.createElement(gZ,{...X,strokeColor:R,prefixCls:H,direction:W,percentPosition:{align:M,type:x}},q):(y==="circle"||y==="dashboard")&&(K=l.createElement(oZ,{...X,strokeColor:R,prefixCls:H,progressStatus:P},q));const Z=Q(H,`${H}-status-${P}`,{[`${H}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${H}-inline-circle`]:y==="circle"&&Qp(g,"circle")[0]<=20,[`${H}-line`]:j,[`${H}-line-align-${M}`]:j,[`${H}-line-position-${x}`]:j,[`${H}-steps`]:d,[`${H}-show-info`]:h,[`${H}-${g}`]:typeof g=="string",[`${H}-rtl`]:W==="rtl"},k,r,i,z.root,_,B);return l.createElement("div",{ref:t,style:{...U,...V.root,...$},className:Z,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100,...nn(w,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},K)});function vZ(e){const{prefixCls:t,className:n,style:r,status:i}=e,s=`${t}-rail`;return l.createElement("div",{className:Q(s,`${s}-${i}`,n),style:r})}const SZ=l.createContext({}),$1=l.createContext(null);function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fS.apply(this,arguments)}const mN=l.createContext({}),N4=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,...s}=e,{prefixCls:c,classNames:d,styles:f}=l.useContext($1),{className:p,style:g}=l.useContext(mN),h=`${c}-item`;return l.createElement("div",fS({},jn(s,!1),{ref:t,className:Q(`${h}-icon`,d.itemIcon,p,n),style:{...f.itemIcon,...g,...r}}),i)});function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}function eb(e){return e!=null}function CZ(e){const{prefixCls:t,classNames:n,styles:r,data:i,last:s,nextStatus:c,active:d,index:f,itemRender:p,iconRender:g,itemWrapperRender:h,onClick:y}=e,C=`${t}-item`,{railFollowPrevStatus:b}=l.useContext(SZ),{ItemComponent:$}=l.useContext($1),{onClick:S,title:w,subTitle:M,content:x,description:R,disabled:T,icon:N,status:O,className:P,style:D,classNames:W={},styles:k={},...U}=i,G=x??R,L={item:{...i,content:G},index:f,active:d},H=!!(y||S)&&!T,_={};H&&(_.role="button",_.tabIndex=0,_.onClick=X=>{S?.(X),y(f)},_.onKeyDown=X=>{const{which:K}=X;(K===nt.ENTER||K===nt.SPACE)&&y(f)});const B=O||"wait",I=eb(w),z=eb(M),V=Q(C,`${C}-${B}`,{[`${C}-custom`]:N,[`${C}-active`]:d,[`${C}-disabled`]:T===!0,[`${C}-empty-header`]:!I&&!z},P,n.item,W.root);let A=l.createElement(N4,null);g&&(A=g(A,{...L,components:{Icon:N4}}));const j=l.createElement("div",{className:Q(`${C}-wrapper`,n.itemWrapper,W.wrapper),style:{...r.itemWrapper,...k.wrapper}},l.createElement(mN.Provider,{value:{className:W.icon,style:k.icon}},A),l.createElement("div",{className:Q(`${C}-section`,n.itemSection,W.section),style:{...r.itemSection,...k.section}},l.createElement("div",{className:Q(`${C}-header`,n.itemHeader,W.header),style:{...r.itemHeader,...k.header}},I&&l.createElement("div",{className:Q(`${C}-title`,n.itemTitle,W.title),style:{...r.itemTitle,...k.title}},w),z&&l.createElement("div",{title:typeof M=="string"?M:void 0,className:Q(`${C}-subtitle`,n.itemSubtitle,W.subtitle),style:{...r.itemSubtitle,...k.subtitle}},M),!s&&l.createElement(vZ,{prefixCls:C,className:Q(n.itemRail,W.rail),style:{...r.itemRail,...k.rail},status:b?O:c})),eb(G)&&l.createElement("div",{className:Q(`${C}-content`,n.itemContent,W.content),style:{...r.itemContent,...k.content}},G)));let q=l.createElement($,mS({},U,_,{className:V,style:{...r.item,...k.root,...D}}),h?h(j):j);return p&&(q=p(q,L)||null),q}function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(this,arguments)}const I4={};function $Z(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:i=I4,styles:s=I4,rootClassName:c,orientation:d,titlePlacement:f,components:p,status:g="process",current:h=0,initial:y=0,onChange:C,items:b,iconRender:$,itemRender:S,itemWrapperRender:w,...M}=e,x=d==="vertical",R=x?"vertical":"horizontal",T=!x&&f==="vertical"?"vertical":"horizontal",N=Q(t,`${t}-${R}`,`${t}-title-${T}`,c,r,i.root),O=ae.useMemo(()=>(b||[]).filter(Boolean),[b]),P=ae.useMemo(()=>O.map(({status:L},H)=>{const _=y+H;return L||(_===h?g:_<h?"finish":"wait")}),[O,g,h,y]),D=L=>{C&&h!==L&&C(L)},{root:W="div",item:k="div"}=p||{},U=ae.useMemo(()=>({prefixCls:t,classNames:i,styles:s,ItemComponent:k}),[t,i,s,k]),G=(L,H)=>{const _=y+H,B=P[H],I=P[H+1],z={...L,status:B};return ae.createElement(CZ,{key:_,prefixCls:t,classNames:i,styles:s,data:z,nextStatus:I,active:_===h,index:_,last:O.length-1===H,iconRender:$,itemRender:S,itemWrapperRender:w,onClick:C&&D})};return ae.createElement(W,pS({className:N,style:{...n,...s?.root}},M),ae.createElement($1.Provider,{value:U},O.map(G)))}const xZ=l.createContext(null);function wZ(e){const{prefixCls:t}=e;return l.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},l.createElement("title",null,"Arrow"),l.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))}function EZ(e){const{prefixCls:t,children:n,percent:r}=e,i=`${t}-item-progress-icon`,s=`${i}-circle`,c=`calc(var(--progress-r) * 2 * ${Math.PI*r/100}) 9999`;return l.createElement(l.Fragment,null,l.createElement("svg",{className:`${i}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r},l.createElement("title",null,"Progress"),l.createElement("circle",{className:Q(s,`${s}-rail`)}),l.createElement("circle",{className:Q(s,`${s}-ptg`),strokeDasharray:c,transform:"rotate(-90 50 50)"})),n)}const MZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`> ${n}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${n}-rail`]:{"--steps-horizontal-rail-margin":"calc(var(--steps-icon-size-max) / 2 + var(--steps-item-wrapper-padding-top))",position:"static",marginTop:"var(--steps-horizontal-rail-margin)",width:"auto",borderBlockStartWidth:"var(--steps-rail-size)",flex:1,minWidth:0,alignSelf:"flex-start",transform:"translateY(-50%)"}}}}},RZ=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r}=e,i=`${t}-item`;return{[t]:{"--steps-icon-size":e.iconSize,"--steps-icon-border-width":e.lineWidth,[`${i}-icon`]:{width:"var(--steps-icon-size)",height:"var(--steps-icon-size)",margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:"var(--steps-icon-size)",textAlign:"center",borderRadius:"var(--steps-icon-size)",border:`var(--steps-icon-border-width) ${e.lineType} transparent`,transition:["background","border","color","inset","transform"].map(s=>`${s} ${r}`).join(", "),zIndex:1},[`${i}-custom ${i}-icon`]:{background:"none",border:0,fontSize:n}}}},TZ=e=>{const{componentCls:t,inlineDotSize:n}=e,r=e.calc(e.paddingXS).add(e.lineWidth).equal(),i=`${t}-item`;return{[`${t}-inline`]:{"--steps-items-offset":"0","--steps-item-wrapper-padding-top":r,display:"inline-flex","&:before":{content:'""',flex:"var(--steps-items-offset)"},[i]:{"--steps-title-vertical-row-gap":e.paddingXS,"--steps-icon-size":n,"--steps-icon-size-active":n,"--steps-title-font-size":e.fontSizeSM,"--steps-title-line-height":e.lineHeightSM,"--steps-item-title-color":e.colorTextSecondary,"--steps-subtitle-font-size":e.fontSizeSM,"--steps-subtitle-line-height":e.lineHeightSM,"--steps-item-subtitle-color":e.colorTextQuaternary,"--steps-rail-size":e.lineWidth,"--steps-title-horizontal-rail-gap":"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${i}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function OZ(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}function x1(e,t,n){const{calc:r,componentCls:i,descriptionMaxWidth:s}=e,c=`${i}-item`;return{[`@container style(${OZ(s)})`]:[{[`${c}-icon`]:{marginInlineStart:r(s).sub("var(--steps-icon-size)").div(2).equal()},[`${c}-rail`]:{width:"auto",insetInlineStart:r(s).add("var(--steps-icon-size)").div(2).add(t).equal(),insetInlineEnd:r(s).sub("var(--steps-icon-size)").div(2).sub(t).mul(-1).equal()}},n]}}const NZ=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:i,calc:s}=e,c=`${t}-item`;return{[t]:{"--steps-icon-size-max":"max(var(--steps-icon-size), var(--steps-icon-size-active, var(--steps-icon-size)))",[`${c}-icon`]:{marginBlockStart:"calc((var(--steps-heading-height) - var(--steps-icon-size)) / 2)"}},[`${t}-title-horizontal`]:{"--steps-title-horizontal-item-margin":e.margin,"--steps-title-horizontal-rail-margin":e.margin,"--steps-title-horizontal-title-height":i,"--steps-heading-height":"max(var(--steps-icon-size), var(--steps-title-horizontal-title-height))",[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${c}:not(:first-child)`]:{marginInlineStart:"var(--steps-title-horizontal-item-margin)"},[`${c}:last-child`]:{flex:"0 1 auto"},[`${c}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${c}-wrapper`]:{columnGap:e.margin},[`${c}-empty-header`]:{[`${c}-header`]:{minHeight:"auto"},[`${c}-content`]:{marginTop:s("var(--steps-heading-height)").sub(e.fontHeight).div(2).equal()}}},[`${c}-section`]:{flex:1,minWidth:0},[`${c}-header`]:{minHeight:"var(--steps-heading-height)"},[`${c}-title`]:{flex:"0 1 auto"},[`${c}-content`]:{maxWidth:n},[`${c}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${c}-rail`]:{"--steps-item-wrapper-padding-top":"0px",flex:1,marginInlineStart:"var(--steps-title-horizontal-rail-margin)"}},[`${t}-title-vertical`]:{"--steps-title-vertical-row-gap":e.paddingSM,"--steps-title-horizontal-rail-gap":e.marginXXS,"--steps-heading-height":"var(--steps-icon-size-max)",[`> ${c}`]:{flex:1,[`${c}-wrapper`]:{flexDirection:"column",rowGap:"var(--steps-title-vertical-row-gap)",alignItems:"center"},[`${c}-section`]:{alignSelf:"stretch"},[`${c}-header`]:{flexDirection:"column",alignItems:"center"},[`${c}-title, ${c}-subtitle, ${c}-content`]:{textAlign:"center",maxWidth:"100%"},[`${c}-subtitle`]:{margin:0},[`${c}-rail`]:{position:"absolute",top:0,width:"calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)",insetInlineStart:"calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))"}},...x1(e,r,{[`${c}:last-child`]:{flex:"none"},[`${c}-icon`]:{alignSelf:"flex-start"},[`${c}-section`]:{width:n}})}}},IZ=e=>{const{componentCls:t,fontSizeIcon:n,calc:r,navContentMaxWidth:i,navArrowColor:s,colorPrimary:c,motionDurationSlow:d}=e,f=`${t}-item`,p=c;return{[`${t}${t}-navigation`]:{[f.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${f}-wrapper`]:{paddingBlock:e.paddingSM},[`${f}-section`]:{maxWidth:i},[`${f}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:p,transition:`all ${d}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`,content:'""'},[`&${f}-active`]:{"--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)"}},[`&${t}-horizontal`]:{[f]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${f}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:r(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[f.repeat(4)]:{[`${f}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${f}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:r(n).div(3).mul(2).equal(),height:r(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},PZ=e=>{const{componentCls:t,calc:n,lineWidthBold:r,borderRadius:i,borderRadiusSM:s,motionDurationMid:c}=e,d=`${t}-item`,f=`${te(r)} ${e.lineType} var(--steps-panel-border-color)`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{"--steps-panel-padding":e.paddingSM,"--steps-item-border-radius":i,[d]:{"--steps-panel-bg-color":"var(--steps-item-icon-bg-color)","--steps-panel-border-color":"var(--steps-item-icon-border-color)","--steps-panel-active-bg-color":"var(--steps-item-icon-active-bg-color)","--steps-panel-active-border-color":"var(--steps-item-icon-active-border-color)","--steps-panel-title-height":"calc(var(--steps-title-font-size) * var(--steps-title-line-height))","--steps-item-base-height":n("var(--steps-panel-padding)").mul(2).add("var(--steps-icon-size)").add("var(--steps-panel-title-height)").equal(),"--steps-item-base-width":"calc(var(--steps-item-base-height) * 0.7071)",transition:`background ${c}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:n(r).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:n(r).mul(2).add("100%").equal(),width:"var(--steps-item-base-width)",overflow:"visible",strokeLinecap:"round",path:{fill:"var(--steps-panel-bg-color)",stroke:"var(--steps-panel-border-color)",strokeWidth:r,vectorEffect:"non-scaling-stroke",transition:`fill ${c}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:"var(--steps-panel-padding)",background:"var(--steps-panel-bg-color)",position:"relative",borderBlock:f,"&:not(:first-child)":{paddingInlineStart:"calc(var(--steps-panel-padding) + var(--steps-item-base-width))"},"&:first-child":{borderInlineStart:f,borderStartStartRadius:"var(--steps-item-border-radius)",borderEndStartRadius:"var(--steps-item-border-radius)"},"&:last-child":{borderInlineEnd:f,borderStartEndRadius:"var(--steps-item-border-radius)",borderEndEndRadius:"var(--steps-item-border-radius)"},"&-active":{background:"var(--steps-panel-active-bg-color)",borderColor:"var(--steps-panel-active-border-color)",[`${t}-panel-arrow`]:{path:{fill:"var(--steps-panel-active-bg-color)",stroke:"var(--steps-panel-active-border-color)"}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:"var(--steps-item-icon-active-text-color)"}}}},{[`&${t}-small`]:{"--steps-panel-padding":e.paddingXS,"--steps-item-border-radius":s}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${te(r)} 0`,"calc(100% + var(--steps-item-base-width)) 0","calc(100% + var(--steps-item-base-width)) 100%",`${te(r)} 100%`,`calc(var(--steps-item-base-width) + ${te(r)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:n(r).div(2).mul(-1).equal(),height:n(r).add("100%").equal()}}}]}},zZ=e=>{const{calc:t,antCls:n,componentCls:r,iconSize:i,iconSizeSM:s,lineWidthBold:c,paddingXXS:d}=e,f=`${r}-item`,p=e.calc(i).add(e.calc(c).mul(4).equal()).equal(),g=e.calc(s).add(e.calc(e.lineWidth).mul(4).equal()).equal(),h=t(c).add(c).equal();return{[`${r}${r}-with-progress`]:{"--steps-item-wrapper-padding-top":h,[`${f}${f}-process`]:{[`${f}-icon`]:{position:"relative"}},[`${f}-progress-icon`]:{"&-svg":{"--steps-svg-size":t(h).mul(2).add("var(--steps-icon-size)").equal(),"--icon-size-ptg-unitless":"calc(100 / tan(atan2(var(--steps-svg-size),1px)))",fontSize:"var(--steps-svg-size)",lineHeight:"var(--icon-size-ptg-unitless)",position:"absolute",inset:t(h).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:"var(--icon-size-ptg-unitless)",strokeWidth:t("var(--icon-size-ptg-unitless)").mul(c).equal(),"--progress-r":t("var(--steps-svg-size)").sub(c).mul("var(--icon-size-ptg-unitless)").div(2).equal(),r:"var(--progress-r)",fill:"none",cx:50,cy:50,transition:`all ${e.motionDurationSlow} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}},[`&${r}-with-progress11`]:{[f]:{paddingTop:d,paddingInlineStart:d},[`${f}-icon`]:{position:"relative",[`${n}-progress`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)","&-body":{width:`${te(p)} !important`,height:`${te(p)} !important`}}},[`&${r}-small`]:{[`${f}-icon ${n}-progress-body`]:{width:`${te(g)} !important`,height:`${te(g)} !important`}}}}},AZ=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:i,marginXXS:s,lineWidthBold:c,fontSizeSM:d}=e,f=`${t}-item`;return{[`${t}${t}-dot`]:{"--steps-icon-size-active":i,"--steps-icon-size":r,"--steps-dot-icon-size":r,"--steps-dot-icon-border-width":e.lineWidthBold,"--steps-rail-size":c,"--steps-icon-border-width":c,[`${f}-custom ${f}-icon`]:{fontSize:d},[`${f}-icon`]:{position:"relative","&:after":{content:'""',width:n,height:n,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${f}-active ${f}-icon`]:{"--steps-icon-size":"var(--steps-icon-size-active)"},[`&${t}-horizontal`]:{[`&, &${t}-small`]:x1(e,s)}}}},DZ=e=>{const{componentCls:t,lineWidthBold:n}=e,r=`${t}-item`;return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${r}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[r]:{"&:not(:first-child)":{clipPath:`polygon(${["calc(0px - var(--steps-item-base-width)) 0px",`calc(100% - ${te(n)}) 0px`,`calc(100% - var(--steps-item-base-width) - ${te(n)}) 50%`,`calc(100% - ${te(n)}) 100%`,"calc(0px - var(--steps-item-base-width)) 100%"].join(",")})`}}}}}}},jZ=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:i,marginXS:s}=e;return{[`${t}${t}-small`]:{"--steps-icon-size":n,"--steps-title-horizontal-item-margin":e.marginSM,"--steps-title-vertical-row-gap":e.paddingXS,"--steps-title-font-size":r,"--steps-title-line-height":i,"--steps-title-horizontal-rail-margin":e.marginXS,"--steps-title-horizontal-title-height":e.fontHeight,[`&${t}-horizontal${t}-title-vertical`]:x1(e,s)}}},om="wait",am="process",im="finish",lm="error",_Z=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:s,colorError:c,colorText:d,colorTextDescription:f,colorBgContainer:p,colorPrimaryHover:g}=e,h=`${t}-item`;return{[t]:[{[h]:{"--steps-item-solid-line-color":"#000","--steps-item-title-color":"#000","--steps-item-content-color":"#000","--steps-item-subtitle-color":"var(--steps-item-content-color)","--steps-item-icon-custom-color":"#000","--steps-item-icon-bg-color":"#000","--steps-item-icon-border-color":"#000","--steps-item-icon-text-color":"#fff","--steps-item-icon-dot-color":"#000","--steps-item-icon-dot-bg-color":"var(--steps-item-icon-dot-color)","--steps-item-icon-dot-border-color":"var(--steps-item-icon-dot-color)","--steps-item-text-hover-color":"#000","--steps-item-icon-bg-hover-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-border-hover-color":"var(--steps-item-icon-border-color)","--steps-item-icon-text-hover-color":"var(--steps-item-icon-text-color)","--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)","--steps-item-process-rail-line-style":e.lineType},[`${h}-rail`]:{borderColor:"var(--steps-item-solid-line-color)"},[`${h}-custom ${h}-icon`]:{color:"var(--steps-item-icon-custom-color)"},[`${h}-title`]:{color:"var(--steps-item-title-color)"},[`${h}-subtitle`]:{color:"var(--steps-item-subtitle-color)"},[`${h}-content`]:{color:"var(--steps-item-content-color)"},[`${h}-active ${h}-icon`]:{},[`${h}-active ${h}-content`]:{color:"var(--steps-item-content-active-color)"},[`${h}[role='button']:not(${h}-active):hover`]:{[`${h}-title, ${h}-content`]:{color:"var(--steps-item-text-hover-color)"}},[`&:not(${t}-dot)`]:{[`${h}:not(${h}-custom)`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-color)",borderColor:"var(--steps-item-icon-border-color)",color:"var(--steps-item-icon-text-color)"},[`&[role='button']:not(${h}-active):hover`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-hover-color)",borderColor:"var(--steps-item-icon-border-hover-color)",color:"var(--steps-item-icon-text-hover-color)"}},[`&${h}-active`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-active-bg-color)",borderColor:"var(--steps-item-icon-active-border-color)",color:"var(--steps-item-icon-active-text-color)"}}}},[`&${t}-dot`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-dot-bg-color)",borderColor:"var(--steps-item-icon-dot-border-color)",color:"var(--steps-item-icon-dot-color)",[`&${h}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${h}-${om}`]:{"--steps-item-icon-custom-color":n,"--steps-item-title-color":f,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${om}`]:{"--steps-item-solid-line-color":n},[`${h}-${am}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${am}`]:{"--steps-item-solid-line-color":i,"--steps-rail-line-style":"var(--steps-item-process-rail-line-style)"},[`${h}-${im}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${im}`]:{"--steps-item-solid-line-color":i},[`${h}-${lm}`]:{"--steps-item-icon-custom-color":c,"--steps-item-title-color":c,"--steps-item-content-color":c,"--steps-item-content-active-color":c,"--steps-item-text-hover-color":e.colorErrorHover},[`${h}-rail-${lm}`]:{"--steps-item-solid-line-color":c}},{[`&${t}-filled`]:{[h]:{"--steps-item-icon-dot-border-color":"transparent"},[`${h}-${om}`]:{"--steps-item-icon-bg-color":e.colorFillTertiary,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":s,"--steps-item-icon-dot-bg-color":n,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${am}, ${h}-${im}`]:{"--steps-item-icon-bg-color":e.colorPrimaryBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":i,"--steps-item-icon-dot-bg-color":i,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${lm}`]:{"--steps-item-icon-bg-color":e.colorErrorBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":c,"--steps-item-icon-dot-bg-color":c,"--steps-item-icon-bg-hover-color":e.colorErrorBgFilledHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":c,"--steps-item-icon-active-bg-color":c,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r}}},{[`&${t}-outlined`]:{[h]:{"--steps-item-icon-dot-bg-color":"transparent"},[`${h}-${om}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":n,"--steps-item-icon-text-color":n,"--steps-item-icon-dot-color":n,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":g,"--steps-item-icon-text-hover-color":g,"--steps-item-icon-active-bg-color":e.colorFillTertiary},[`${h}-${am}, ${h}-${im}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":i,"--steps-item-icon-text-color":i,"--steps-item-icon-dot-color":i,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorPrimaryHover,"--steps-item-icon-text-hover-color":e.colorPrimaryHover,"--steps-item-icon-active-bg-color":e.colorPrimaryBg},[`${h}-${lm}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":c,"--steps-item-icon-text-color":c,"--steps-item-icon-dot-color":c,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorErrorHover,"--steps-item-icon-text-hover-color":e.colorErrorHover,"--steps-item-icon-active-bg-color":e.colorErrorBg}}}]}},HZ=e=>{const{componentCls:t,calc:n}=e,r=`${t}-item`;return{[`${t}-vertical`]:{"--steps-vertical-rail-margin":n(e.marginXXS).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${r}`]:{minHeight:n(e.controlHeight).mul(1.5).equal(),paddingBottom:e.paddingSM,"&:last-child":{paddingBottom:0},[`${r}-icon`]:{marginInlineStart:"calc((var(--steps-icon-size-max) - var(--steps-icon-size)) / 2)"},[`${r}-rail`]:{"--steps-rail-offset":n("var(--steps-heading-height)").sub("var(--steps-icon-size)").div(2).equal(),borderInlineStartWidth:"var(--steps-rail-size)",position:"absolute",top:n("var(--steps-icon-size)").add("var(--steps-item-wrapper-padding-top)").add("var(--steps-rail-offset)").add("var(--steps-vertical-rail-margin)").equal(),insetInlineStart:n("var(--steps-icon-size-max)").div(2).equal(),bottom:n("var(--steps-vertical-rail-margin)").sub("var(--steps-rail-offset)").equal(),marginInlineStart:"calc(var(--steps-rail-size) / -2)"}}}}},BZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[t]:{"--steps-title-font-size":e.fontSizeLG,"--steps-title-line-height":e.lineHeightLG,"--steps-subtitle-font-size":e.fontSize,"--steps-subtitle-line-height":e.lineHeight,"--steps-item-wrapper-padding-top":"0px","--steps-rail-size":e.lineWidth,"--steps-rail-line-style":e.lineType,...Zt(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[n]:{flex:"none",position:"relative"},[`${n}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:"var(--steps-item-wrapper-padding-top)"},[`${n}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${n}-title`]:{color:e.colorText,fontSize:"var(--steps-title-font-size)",lineHeight:"var(--steps-title-line-height)",wordBreak:"break-word"},[`${n}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:"var(--steps-subtitle-font-size)",lineHeight:"var(--steps-subtitle-line-height)",marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${n}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${n}-rail`]:{borderStyle:"var(--steps-rail-line-style)",borderWidth:0},[`${n}-title, ${n}-subtitle, ${n}-content, ${n}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:$o},[`${n}[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}},LZ=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),VZ=Pt("Steps",e=>{const t=Ot(e,{inlineDotSize:6});return[BZ(t),RZ(t),HZ(t),MZ(t),NZ(t),jZ(t),AZ(t),_Z(t),IZ(t),PZ(t),TZ(t),zZ(t),DZ(t)]},LZ),FZ={itemIcon:dd},kZ=e=>{const{size:t,className:n,rootClassName:r,style:i,variant:s="filled",type:c,classNames:d,styles:f,direction:p,orientation:g,responsive:h=!0,progressDot:y,labelPlacement:C,titlePlacement:b,ellipsis:$,offset:S=0,items:w,percent:M,current:x=0,onChange:R,iconRender:T,...N}=e,O=l.useContext(xZ),P=It("steps"),{getPrefixCls:D,direction:W,className:k,style:U}=P;let G,L,H={};O?H={root:O.rootComponent,item:O.itemComponent}:{classNames:G,styles:L}=P;const _=D("steps",e.prefixCls),B=`${_}-item-icon`,[I,z]=VZ(_),V=fr(t),A=l.useMemo(()=>(w||[]).filter(Boolean),[w]),{xs:j}=Ap(h),q=l.useMemo(()=>c&&c!=="default"?c:y?"dot":c,[y,c]),X=q==="inline",K=q==="dot"||q==="inline",Z=l.useMemo(()=>q==="dot"&&typeof y=="function"?y:void 0,[q,y]),ee=l.useMemo(()=>{const pe=g||p;return q==="panel"?"horizontal":h&&j||pe==="vertical"?"vertical":"horizontal"},[g,p,q,h,j]),ie=l.useMemo(()=>K||ee==="vertical"?ee==="vertical"?"horizontal":"vertical":c==="navigation"?"horizontal":b||C||"horizontal",[K,C,ee,b,c]),ne=X?void 0:M,oe={...e,variant:s,size:V,type:q,orientation:ee,titlePlacement:ie,current:x,percent:ne,responsive:h,offset:S},[de,le]=Lt([FZ,G,d],[L,f],{props:oe}),fe=(pe,Se)=>{const{item:Ie,index:Re,active:we,components:{Icon:se}}=Se,{status:be,icon:Ee}=Ie;let Ne=null;if(K||Ee)Ne=Ee;else switch(be){case"finish":Ne=l.createElement(sl,{className:`${B}-finish`});break;case"error":Ne=l.createElement(qr,{className:`${B}-error`});break;default:{let Ge=l.createElement("span",{className:`${B}-number`},Se.index+1);be==="process"&&ne!==void 0&&(Ge=l.createElement(EZ,{prefixCls:_,percent:ne},Ge)),Ne=Ge}}let Ve=l.createElement(se,null,Ne);return T?Ve=T(Ve,{index:Re,active:we,item:Ie,components:{Icon:se}}):typeof Z=="function"&&(Ve=Z(Ve,{index:Re,...Ie})),Ve},ge=(pe,Se)=>{let Ie=pe;return X&&Se.item.content&&(Ie=l.createElement(ur,{destroyOnHidden:!0,title:Se.item.content},pe)),l.createElement(fd,{component:"Steps",disabled:Se.item.disabled||!R,colorSource:s==="filled"?"color":null},Ie)},re=q==="panel"?pe=>l.createElement(l.Fragment,null,pe,l.createElement(wZ,{prefixCls:_})):void 0,ue={"--steps-items-offset":`${S}`,...U,...i},he=Q(k,`${_}-${s}`,{[`${_}-${q}`]:q!=="dot"?q:!1,[`${_}-rtl`]:W==="rtl",[`${_}-dot`]:K,[`${_}-ellipsis`]:$,[`${_}-with-progress`]:ne!==void 0,[`${_}-${V}`]:V},n,r,I,z);return l.createElement($Z,{...N,prefixCls:_,className:he,style:ue,classNames:de,styles:le,orientation:ee,titlePlacement:ie,components:H,current:x,items:A,onChange:R,iconRender:fe,itemRender:ge,itemWrapperRender:re})},WZ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:s}=e,c=s(r).sub(n).equal(),d=s(t).sub(n).equal();return{[i]:{...Zt(e),display:"inline-block",height:"auto",paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:d,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},w1=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Ot(e,{tagFontSize:i,tagLineHeight:te(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},E1=e=>{const t=HT(new Wm(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new en(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},M1=Pt("Tag",e=>{const t=w1(e);return WZ(t)},E1),pN=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:s,children:c,icon:d,onChange:f,onClick:p,disabled:g,...h}=e,{getPrefixCls:y,tag:C}=l.useContext(dt),b=l.useContext(kr),$=g??b,S=T=>{$||(f?.(!s),p?.(T))},w=y("tag",n),[M,x]=M1(w),R=Q(w,`${w}-checkable`,{[`${w}-checkable-checked`]:s,[`${w}-checkable-disabled`]:$},C?.className,i,M,x);return l.createElement("span",{...h,ref:t,style:{...r,...C?.style},className:R,onClick:S},d,l.createElement("span",null,c))});function qZ(e,t){const{id:n,prefixCls:r,rootClassName:i,className:s,style:c,classNames:d,styles:f,disabled:p,options:g,value:h,defaultValue:y,onChange:C,multiple:b,...$}=e,{getPrefixCls:S,direction:w,className:M,style:x,classNames:R,styles:T}=It("tag"),N=S("tag",r),O=`${N}-checkable-group`,P=ar(N),[D,W]=M1(N,P),[k,U]=Lt([R,d],[T,f],{props:e}),G=l.useMemo(()=>(g||[]).map(z=>z&&typeof z=="object"?z:{value:z,label:z}),[g]),[L,H]=Yt(y,h),_=(z,V)=>{let A=null;if(b){const j=L||[];A=z?[].concat(xn(j),[V.value]):j.filter(q=>q!==V.value)}else A=z?V.value:null;H(A),C?.(A)},B=ae.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:B.current}));const I=jn($,{aria:!0,data:!0});return ae.createElement("div",{...I,className:Q(O,M,i,{[`${O}-disabled`]:p,[`${O}-rtl`]:w==="rtl"},D,W,s,k.root),style:{...x,...U.root,...c},id:n,ref:B},G.map(z=>ae.createElement(pN,{key:z.value,className:Q(`${O}-item`,k.item),style:U.item,checked:b?(L||[]).includes(z.value):L===z.value,onChange:V=>_(V,z),disabled:p},z.label)))}const YZ=ae.forwardRef(qZ);function UZ(e,t){const{color:n,variant:r,bordered:i}=e;return l.useMemo(()=>{const s=n?.endsWith("-inverse");let c;r?c=r:s?c="solid":i===!1?c="filled":c=t||"filled";const d=s?n?.replace("-inverse",""):n,f=_p(n),p=d7(n),g={};if(!f&&!p&&d)if(c==="solid")g.backgroundColor=n;else{const h=new en(d).toHsl();h.l=.95,g.backgroundColor=new en(h).toHexString(),g.color=n,c==="outlined"&&(g.borderColor=n)}return[c,d,f,p,g]},[n,r,i,t])}const GZ=e=>$p(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),XZ=ad(["Tag","preset"],e=>{const t=w1(e);return GZ(t)},E1);function KZ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const sm=(e,t,n)=>{const r=KZ(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},QZ=ad(["Tag","status"],e=>{const t=w1(e);return[sm(t,"success","Success"),sm(t,"processing","Info"),sm(t,"error","Error"),sm(t,"warning","Warning")]},E1),ZZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:s,children:c,icon:d,color:f,variant:p,onClose:g,bordered:h,disabled:y,href:C,target:b,styles:$,classNames:S,...w}=e,{getPrefixCls:M,direction:x,className:R,variant:T,style:N,classNames:O,styles:P}=It("tag"),[D,W,k,U,G]=UZ(e,T),L=k||U,H=l.useContext(kr),_=y??H,{tag:B}=l.useContext(dt),[I,z]=l.useState(!0),V=nn(w,["closeIcon","closable"]),A={...e,color:W,variant:D,disabled:_,href:C,target:b,icon:d},[j,q]=Lt([O,S],[P,$],{props:A}),X=l.useMemo(()=>{let ue={...q.root,...N,...s};return _||(ue={...G,...ue}),ue},[q.root,N,s,G,_]),K=M("tag",n),[Z,ee]=M1(K),ie=Q(K,R,j.root,`${K}-${D}`,{[`${K}-${W}`]:L,[`${K}-hidden`]:!I,[`${K}-rtl`]:x==="rtl",[`${K}-disabled`]:_},r,i,Z,ee),ne=ue=>{_||(ue.stopPropagation(),g?.(ue),!ue.defaultPrevented&&z(!1))},[,oe]=IS(Cs(e),Cs(B),{closable:!1,closeIconRender:ue=>{const he=l.createElement("span",{className:`${K}-close-icon`,onClick:ne},ue);return zS(ue,he,pe=>({onClick:Se=>{pe?.onClick?.(Se),ne(Se)},className:Q(pe?.className,`${K}-close-icon`)}))}}),de=typeof w.onClick=="function"||c&&c.type==="a",le=nr(d,{className:Q(l.isValidElement(d)?d.props?.className:"",j.icon),style:q.icon}),fe=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",{className:j.content,style:q.content},c)):c,ge=C?"a":"span",re=l.createElement(ge,{...V,ref:t,className:ie,style:X,href:_?void 0:C,target:b,onClick:_?void 0:V.onClick,...C&&_?{"aria-disabled":!0}:{}},fe,oe,k&&l.createElement(XZ,{key:"preset",prefixCls:K}),U&&l.createElement(QZ,{key:"status",prefixCls:K}));return de?l.createElement(fd,{component:"Tag"},re):re}),sr=ZZ;sr.CheckableTag=pN;sr.CheckableTagGroup=YZ;const JZ={defaultSeed:_m.token,defaultAlgorithm:DR},eJ=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:s}=r;return{marginBottom:i,color:n,fontWeight:s,fontSize:e,lineHeight:t}},tJ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
335
|
+
}`)}});function uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uS.apply(this,arguments)}function T4(e){const t=e??[];return Array.isArray(t)?t:[t]}const JQ=e=>{const{id:t,prefixCls:n,classNames:r={},styles:i={},steps:s,strokeWidth:c,railWidth:d,gapDegree:f=0,gapPosition:p,railColor:g,strokeLinecap:h,style:y,className:C,strokeColor:b,percent:$,loading:S,...w}={...XQ,...e},M=tu/2,x=Ko(t),R=`${x}-gradient`,T=M-c/2,N=Math.PI*2*T,O=f>0?90+f/2:-90,P=N*((360-f)/360),{count:D,gap:W}=typeof s=="object"?s:{count:s,gap:2},k=T4($),U=T4(b),G=U.find(j=>j&&typeof j=="object"),H=G&&typeof G=="object"?"butt":h,{indeterminateStyleProps:_,indeterminateStyleAnimation:B}=ZQ({id:x,loading:S}),I=Jy(N,P,0,100,O,f,p,g,H,c),z=KQ(),V=()=>{let j=0;return k.map((q,X)=>{const K=U[X]||U[U.length-1],Z=Jy(N,P,j,q,O,f,p,K,H,c);return j+=q,l.createElement(QQ,{key:X,color:K,ptg:q,radius:T,prefixCls:n,gradientId:R,className:r.track,style:{...Z,..._,...i.track},strokeLinecap:H,strokeWidth:c,gapDegree:f,ref:ee=>{z[X]=ee},size:tu})}).reverse()},A=()=>{const j=Math.round(D*(k[0]/100)),q=100/D;let X=0;return new Array(D).fill(null).map((K,Z)=>{const ee=Z<=j-1?U[0]:g,ie=ee&&typeof ee=="object"?`url(#${R})`:void 0,ne=Jy(N,P,X,q,O,f,p,ee,"butt",c,W);return X+=(P-ne.strokeDashoffset+W)*100/P,l.createElement("circle",{key:Z,className:Q(`${n}-circle-path`,r.track),r:T,cx:M,cy:M,stroke:ie,strokeWidth:c,opacity:1,style:{...ne,...i.track},ref:oe=>{z[Z]=oe}})})};return l.createElement("svg",uS({className:Q(`${n}-circle`,r.root,C),viewBox:`0 0 ${tu} ${tu}`,style:{...i.root,...y},id:t,role:"presentation"},w),!D&&l.createElement("circle",{className:Q(`${n}-circle-rail`,r.rail),r:T,cx:M,cy:M,stroke:g,strokeLinecap:H,strokeWidth:d||c,style:{...I,...i.rail}}),D?A():V(),B)};function Xi(e){return!e||e<0?0:e>100?100:e}function pp({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const eZ=({percent:e,success:t})=>{const n=Xi(pp({success:t}));return[n,Xi(Xi(e)-n)]},tZ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||ys.green,t||null]},Qp=(e,t,n)=>{let r=-1,i=-1;if(t==="step"){const s=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,i=c??8):typeof e=="number"?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=s}else if(t==="line"){const s=n?.strokeWidth;typeof e=="string"||typeof e>"u"?i=s||(e==="small"?6:8):typeof e=="number"?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,i]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},nZ=3,rZ=e=>nZ/e*100,O4=["root","body","indicator"],oZ=e=>{const{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:s,strokeLinecap:c="round",gapPosition:d,gapPlacement:f,gapDegree:p,width:g=120,type:h,children:y,success:C,size:b=g,steps:$}=e,{direction:S}=It("progress"),w=i??s,[M,x]=Qp(b,"circle");let{strokeWidth:R}=e;R===void 0&&(R=Math.max(rZ(M),6));const T={width:M,height:x,fontSize:M*.15+6},N=l.useMemo(()=>{if(p||p===0)return p;if(h==="dashboard")return 75},[p,h]),O=eZ(e),P=l.useMemo(()=>{const H=(f??d)||h==="dashboard"&&"bottom"||void 0,_=S==="rtl";switch(H){case"start":return _?"right":"left";case"end":return _?"left":"right";default:return H}},[S,f,d,h]),D=Object.prototype.toString.call(e.strokeColor)==="[object Object]",W=tZ({success:C,strokeColor:e.strokeColor}),k=Q(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),U=l.createElement(JQ,{steps:$,percent:$?O[1]:O,strokeWidth:R,railWidth:R,strokeColor:$?W[1]:W,strokeLinecap:c,railColor:w,prefixCls:t,gapDegree:N,gapPosition:P,classNames:nn(n,O4),styles:nn(r,O4)}),G=M<=20,L=l.createElement("div",{className:k,style:{...T,...r.body}},U,!G&&y);return G?l.createElement(ur,{title:y},L):L},dS="--progress-line-stroke-color",aZ=e=>{const t="-100%";return new At("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},iZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...Zt(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},lZ=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:aZ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},sZ=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},cZ=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},uZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},dZ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),fZ=Pt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Ot(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[iZ(n),lZ(n),sZ(n),cZ(n),uZ(n)]},dZ),mZ=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},pZ=(e,t)=>{const{from:n=ys.blue,to:r=ys.blue,direction:i=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){const d=mZ(s),f=`linear-gradient(${i}, ${d})`;return{background:f,[dS]:f}}const c=`linear-gradient(${i}, ${n}, ${r})`;return{background:c,[dS]:c}},gZ=e=>{const{prefixCls:t,classNames:n,styles:r,direction:i,percent:s,size:c,strokeWidth:d,strokeColor:f,strokeLinecap:p="round",children:g,railColor:h,trailColor:y,percentPosition:C,success:b}=e,{align:$,type:S}=C,w=h??y,M=p==="square"||p==="butt"?0:void 0,x=c??[-1,d||(c==="small"?6:8)],[R,T]=Qp(x,"line",{strokeWidth:d}),N={backgroundColor:w||void 0,borderRadius:M,height:T},O=`${t}-track`,P=f&&typeof f!="string"?pZ(f,i):{[dS]:f,background:f},D={width:`${Xi(s)}%`,height:T,borderRadius:M,...P},W=pp(e),k={width:`${Xi(W)}%`,height:T,borderRadius:M,backgroundColor:b?.strokeColor};return l.createElement("div",{className:Q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:$==="center"&&S==="outer"}),style:{width:R>0?R:"100%",...r.body}},l.createElement("div",{className:Q(`${t}-rail`,n.rail),style:{...N,...r.rail}},l.createElement("div",{className:Q(O,n.track),style:{...D,...r.track}},S==="inner"&&g),W!==void 0&&l.createElement("div",{className:Q(O,`${O}-success`,n.track),style:{...k,...r.track}})),S==="outer"&&g)},hZ=e=>{const{classNames:t,styles:n,size:r,steps:i,rounding:s=Math.round,percent:c=0,strokeWidth:d=8,strokeColor:f,railColor:p,trailColor:g,prefixCls:h,children:y}=e,C=s(i*(c/100)),$=r??[r==="small"?2:14,d],[S,w]=Qp($,"step",{steps:i,strokeWidth:d}),M=S/i,x=Array.from({length:i}),R=p??g;for(let T=0;T<i;T++){const N=Array.isArray(f)?f[T]:f;x[T]=l.createElement("div",{key:T,className:Q(`${h}-steps-item`,{[`${h}-steps-item-active`]:T<=C-1},t.track),style:{backgroundColor:T<=C-1?N:R,width:M,height:w,...n.track}})}return l.createElement("div",{className:Q(`${h}-steps-body`,t.body),style:n.body},x,y)},yZ=["normal","exception","active","success"],bZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,classNames:s,styles:c,steps:d,strokeColor:f,percent:p=0,size:g="default",showInfo:h=!0,type:y="line",status:C,format:b,style:$,percentPosition:S={},...w}=e,{align:M="end",type:x="outer"}=S,R=Array.isArray(f)?f[0]:f,T=typeof f=="string"||Array.isArray(f)?f:void 0,N=l.useMemo(()=>{if(R){const ee=typeof R=="string"?R:Object.values(R)[0];return new en(ee).isLight()}return!1},[f]),O=l.useMemo(()=>{const ee=pp(e);return Number.parseInt(ee!==void 0?(ee??0)?.toString():(p??0)?.toString(),10)},[p,e.success]),P=l.useMemo(()=>!yZ.includes(C)&&O>=100?"success":C||"normal",[C,O]),{getPrefixCls:D,direction:W,className:k,style:U,classNames:G,styles:L}=It("progress"),H=D("progress",n),[_,B]=fZ(H),I={...e,percent:p,type:y,size:g,showInfo:h,percentPosition:S},[z,V]=Lt([G,s],[L,c],{props:I}),A=y==="line",j=A&&!d,q=l.useMemo(()=>{if(!h)return null;const ee=pp(e);let ie;const ne=b||(de=>`${de}%`),oe=A&&N&&x==="inner";return x==="inner"||b||P!=="exception"&&P!=="success"?ie=ne(Xi(p),Xi(ee)):P==="exception"?ie=A?l.createElement(zs,null):l.createElement(qr,null):P==="success"&&(ie=A?l.createElement(xp,null):l.createElement(sl,null)),l.createElement("span",{className:Q(`${H}-indicator`,{[`${H}-indicator-bright`]:oe,[`${H}-indicator-${M}`]:j,[`${H}-indicator-${x}`]:j},z.indicator),style:V.indicator,title:typeof ie=="string"?ie:void 0},ie)},[h,p,O,P,y,H,b,A,N,x,M,j,z.indicator,V.indicator]),X={...e,classNames:z,styles:V};let K;y==="line"?K=d?l.createElement(hZ,{...X,strokeColor:T,prefixCls:H,steps:typeof d=="object"?d.count:d},q):l.createElement(gZ,{...X,strokeColor:R,prefixCls:H,direction:W,percentPosition:{align:M,type:x}},q):(y==="circle"||y==="dashboard")&&(K=l.createElement(oZ,{...X,strokeColor:R,prefixCls:H,progressStatus:P},q));const Z=Q(H,`${H}-status-${P}`,{[`${H}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${H}-inline-circle`]:y==="circle"&&Qp(g,"circle")[0]<=20,[`${H}-line`]:j,[`${H}-line-align-${M}`]:j,[`${H}-line-position-${x}`]:j,[`${H}-steps`]:d,[`${H}-show-info`]:h,[`${H}-${g}`]:typeof g=="string",[`${H}-rtl`]:W==="rtl"},k,r,i,z.root,_,B);return l.createElement("div",{ref:t,style:{...U,...V.root,...$},className:Z,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100,...nn(w,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},K)});function vZ(e){const{prefixCls:t,className:n,style:r,status:i}=e,s=`${t}-rail`;return l.createElement("div",{className:Q(s,`${s}-${i}`,n),style:r})}const SZ=l.createContext({}),$1=l.createContext(null);function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fS.apply(this,arguments)}const mN=l.createContext({}),N4=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,...s}=e,{prefixCls:c,classNames:d,styles:f}=l.useContext($1),{className:p,style:g}=l.useContext(mN),h=`${c}-item`;return l.createElement("div",fS({},jn(s,!1),{ref:t,className:Q(`${h}-icon`,d.itemIcon,p,n),style:{...f.itemIcon,...g,...r}}),i)});function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}function eb(e){return e!=null}function CZ(e){const{prefixCls:t,classNames:n,styles:r,data:i,last:s,nextStatus:c,active:d,index:f,itemRender:p,iconRender:g,itemWrapperRender:h,onClick:y}=e,C=`${t}-item`,{railFollowPrevStatus:b}=l.useContext(SZ),{ItemComponent:$}=l.useContext($1),{onClick:S,title:w,subTitle:M,content:x,description:R,disabled:T,icon:N,status:O,className:P,style:D,classNames:W={},styles:k={},...U}=i,G=x??R,L={item:{...i,content:G},index:f,active:d},H=!!(y||S)&&!T,_={};H&&(_.role="button",_.tabIndex=0,_.onClick=X=>{S?.(X),y(f)},_.onKeyDown=X=>{const{which:K}=X;(K===nt.ENTER||K===nt.SPACE)&&y(f)});const B=O||"wait",I=eb(w),z=eb(M),V=Q(C,`${C}-${B}`,{[`${C}-custom`]:N,[`${C}-active`]:d,[`${C}-disabled`]:T===!0,[`${C}-empty-header`]:!I&&!z},P,n.item,W.root);let A=l.createElement(N4,null);g&&(A=g(A,{...L,components:{Icon:N4}}));const j=l.createElement("div",{className:Q(`${C}-wrapper`,n.itemWrapper,W.wrapper),style:{...r.itemWrapper,...k.wrapper}},l.createElement(mN.Provider,{value:{className:W.icon,style:k.icon}},A),l.createElement("div",{className:Q(`${C}-section`,n.itemSection,W.section),style:{...r.itemSection,...k.section}},l.createElement("div",{className:Q(`${C}-header`,n.itemHeader,W.header),style:{...r.itemHeader,...k.header}},I&&l.createElement("div",{className:Q(`${C}-title`,n.itemTitle,W.title),style:{...r.itemTitle,...k.title}},w),z&&l.createElement("div",{title:typeof M=="string"?M:void 0,className:Q(`${C}-subtitle`,n.itemSubtitle,W.subtitle),style:{...r.itemSubtitle,...k.subtitle}},M),!s&&l.createElement(vZ,{prefixCls:C,className:Q(n.itemRail,W.rail),style:{...r.itemRail,...k.rail},status:b?O:c})),eb(G)&&l.createElement("div",{className:Q(`${C}-content`,n.itemContent,W.content),style:{...r.itemContent,...k.content}},G)));let q=l.createElement($,mS({},U,_,{className:V,style:{...r.item,...k.root,...D}}),h?h(j):j);return p&&(q=p(q,L)||null),q}function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(this,arguments)}const I4={};function $Z(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:i=I4,styles:s=I4,rootClassName:c,orientation:d,titlePlacement:f,components:p,status:g="process",current:h=0,initial:y=0,onChange:C,items:b,iconRender:$,itemRender:S,itemWrapperRender:w,...M}=e,x=d==="vertical",R=x?"vertical":"horizontal",T=!x&&f==="vertical"?"vertical":"horizontal",N=Q(t,`${t}-${R}`,`${t}-title-${T}`,c,r,i.root),O=ae.useMemo(()=>(b||[]).filter(Boolean),[b]),P=ae.useMemo(()=>O.map(({status:L},H)=>{const _=y+H;return L||(_===h?g:_<h?"finish":"wait")}),[O,g,h,y]),D=L=>{C&&h!==L&&C(L)},{root:W="div",item:k="div"}=p||{},U=ae.useMemo(()=>({prefixCls:t,classNames:i,styles:s,ItemComponent:k}),[t,i,s,k]),G=(L,H)=>{const _=y+H,B=P[H],I=P[H+1],z={...L,status:B};return ae.createElement(CZ,{key:_,prefixCls:t,classNames:i,styles:s,data:z,nextStatus:I,active:_===h,index:_,last:O.length-1===H,iconRender:$,itemRender:S,itemWrapperRender:w,onClick:C&&D})};return ae.createElement(W,pS({className:N,style:{...n,...s?.root}},M),ae.createElement($1.Provider,{value:U},O.map(G)))}const xZ=l.createContext(null);function wZ(e){const{prefixCls:t}=e;return l.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},l.createElement("title",null,"Arrow"),l.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))}function EZ(e){const{prefixCls:t,children:n,percent:r}=e,i=`${t}-item-progress-icon`,s=`${i}-circle`,c=`calc(var(--progress-r) * 2 * ${Math.PI*r/100}) 9999`;return l.createElement(l.Fragment,null,l.createElement("svg",{className:`${i}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r},l.createElement("title",null,"Progress"),l.createElement("circle",{className:Q(s,`${s}-rail`)}),l.createElement("circle",{className:Q(s,`${s}-ptg`),strokeDasharray:c,transform:"rotate(-90 50 50)"})),n)}const MZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`> ${n}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${n}-rail`]:{"--steps-horizontal-rail-margin":"calc(var(--steps-icon-size-max) / 2 + var(--steps-item-wrapper-padding-top))",position:"static",marginTop:"var(--steps-horizontal-rail-margin)",width:"auto",borderBlockStartWidth:"var(--steps-rail-size)",flex:1,minWidth:0,alignSelf:"flex-start",transform:"translateY(-50%)"}}}}},RZ=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r}=e,i=`${t}-item`;return{[t]:{"--steps-icon-size":e.iconSize,"--steps-icon-border-width":e.lineWidth,[`${i}-icon`]:{width:"var(--steps-icon-size)",height:"var(--steps-icon-size)",margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:"var(--steps-icon-size)",textAlign:"center",borderRadius:"var(--steps-icon-size)",border:`var(--steps-icon-border-width) ${e.lineType} transparent`,transition:["background","border","color","inset","transform"].map(s=>`${s} ${r}`).join(", "),zIndex:1},[`${i}-custom ${i}-icon`]:{background:"none",border:0,fontSize:n}}}},TZ=e=>{const{componentCls:t,inlineDotSize:n}=e,r=e.calc(e.paddingXS).add(e.lineWidth).equal(),i=`${t}-item`;return{[`${t}-inline`]:{"--steps-items-offset":"0","--steps-item-wrapper-padding-top":r,display:"inline-flex","&:before":{content:'""',flex:"var(--steps-items-offset)"},[i]:{"--steps-title-vertical-row-gap":e.paddingXS,"--steps-icon-size":n,"--steps-icon-size-active":n,"--steps-title-font-size":e.fontSizeSM,"--steps-title-line-height":e.lineHeightSM,"--steps-item-title-color":e.colorTextSecondary,"--steps-subtitle-font-size":e.fontSizeSM,"--steps-subtitle-line-height":e.lineHeightSM,"--steps-item-subtitle-color":e.colorTextQuaternary,"--steps-rail-size":e.lineWidth,"--steps-title-horizontal-rail-gap":"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${i}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function OZ(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}function x1(e,t,n){const{calc:r,componentCls:i,descriptionMaxWidth:s}=e,c=`${i}-item`;return{[`@container style(${OZ(s)})`]:[{[`${c}-icon`]:{marginInlineStart:r(s).sub("var(--steps-icon-size)").div(2).equal()},[`${c}-rail`]:{width:"auto",insetInlineStart:r(s).add("var(--steps-icon-size)").div(2).add(t).equal(),insetInlineEnd:r(s).sub("var(--steps-icon-size)").div(2).sub(t).mul(-1).equal()}},n]}}const NZ=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:i,calc:s}=e,c=`${t}-item`;return{[t]:{"--steps-icon-size-max":"max(var(--steps-icon-size), var(--steps-icon-size-active, var(--steps-icon-size)))",[`${c}-icon`]:{marginBlockStart:"calc((var(--steps-heading-height) - var(--steps-icon-size)) / 2)"}},[`${t}-title-horizontal`]:{"--steps-title-horizontal-item-margin":e.margin,"--steps-title-horizontal-rail-margin":e.margin,"--steps-title-horizontal-title-height":i,"--steps-heading-height":"max(var(--steps-icon-size), var(--steps-title-horizontal-title-height))",[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${c}:not(:first-child)`]:{marginInlineStart:"var(--steps-title-horizontal-item-margin)"},[`${c}:last-child`]:{flex:"0 1 auto"},[`${c}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${c}-wrapper`]:{columnGap:e.margin},[`${c}-empty-header`]:{[`${c}-header`]:{minHeight:"auto"},[`${c}-content`]:{marginTop:s("var(--steps-heading-height)").sub(e.fontHeight).div(2).equal()}}},[`${c}-section`]:{flex:1,minWidth:0},[`${c}-header`]:{minHeight:"var(--steps-heading-height)"},[`${c}-title`]:{flex:"0 1 auto"},[`${c}-content`]:{maxWidth:n},[`${c}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${c}-rail`]:{"--steps-item-wrapper-padding-top":"0px",flex:1,marginInlineStart:"var(--steps-title-horizontal-rail-margin)"}},[`${t}-title-vertical`]:{"--steps-title-vertical-row-gap":e.paddingSM,"--steps-title-horizontal-rail-gap":e.marginXXS,"--steps-heading-height":"var(--steps-icon-size-max)",[`> ${c}`]:{flex:1,[`${c}-wrapper`]:{flexDirection:"column",rowGap:"var(--steps-title-vertical-row-gap)",alignItems:"center"},[`${c}-section`]:{alignSelf:"stretch"},[`${c}-header`]:{flexDirection:"column",alignItems:"center"},[`${c}-title, ${c}-subtitle, ${c}-content`]:{textAlign:"center",maxWidth:"100%"},[`${c}-subtitle`]:{margin:0},[`${c}-rail`]:{position:"absolute",top:0,width:"calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)",insetInlineStart:"calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))"}},...x1(e,r,{[`${c}:last-child`]:{flex:"none"},[`${c}-icon`]:{alignSelf:"flex-start"},[`${c}-section`]:{width:n}})}}},IZ=e=>{const{componentCls:t,fontSizeIcon:n,calc:r,navContentMaxWidth:i,navArrowColor:s,colorPrimary:c,motionDurationSlow:d}=e,f=`${t}-item`,p=c;return{[`${t}${t}-navigation`]:{[f.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${f}-wrapper`]:{paddingBlock:e.paddingSM},[`${f}-section`]:{maxWidth:i},[`${f}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:p,transition:`all ${d}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`,content:'""'},[`&${f}-active`]:{"--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)"}},[`&${t}-horizontal`]:{[f]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${f}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:r(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[f.repeat(4)]:{[`${f}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${f}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:r(n).div(3).mul(2).equal(),height:r(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},PZ=e=>{const{componentCls:t,calc:n,lineWidthBold:r,borderRadius:i,borderRadiusSM:s,motionDurationMid:c}=e,d=`${t}-item`,f=`${te(r)} ${e.lineType} var(--steps-panel-border-color)`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{"--steps-panel-padding":e.paddingSM,"--steps-item-border-radius":i,[d]:{"--steps-panel-bg-color":"var(--steps-item-icon-bg-color)","--steps-panel-border-color":"var(--steps-item-icon-border-color)","--steps-panel-active-bg-color":"var(--steps-item-icon-active-bg-color)","--steps-panel-active-border-color":"var(--steps-item-icon-active-border-color)","--steps-panel-title-height":"calc(var(--steps-title-font-size) * var(--steps-title-line-height))","--steps-item-base-height":n("var(--steps-panel-padding)").mul(2).add("var(--steps-icon-size)").add("var(--steps-panel-title-height)").equal(),"--steps-item-base-width":"calc(var(--steps-item-base-height) * 0.7071)",transition:`background ${c}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:n(r).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:n(r).mul(2).add("100%").equal(),width:"var(--steps-item-base-width)",overflow:"visible",strokeLinecap:"round",path:{fill:"var(--steps-panel-bg-color)",stroke:"var(--steps-panel-border-color)",strokeWidth:r,vectorEffect:"non-scaling-stroke",transition:`fill ${c}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:"var(--steps-panel-padding)",background:"var(--steps-panel-bg-color)",position:"relative",borderBlock:f,"&:not(:first-child)":{paddingInlineStart:"calc(var(--steps-panel-padding) + var(--steps-item-base-width))"},"&:first-child":{borderInlineStart:f,borderStartStartRadius:"var(--steps-item-border-radius)",borderEndStartRadius:"var(--steps-item-border-radius)"},"&:last-child":{borderInlineEnd:f,borderStartEndRadius:"var(--steps-item-border-radius)",borderEndEndRadius:"var(--steps-item-border-radius)"},"&-active":{background:"var(--steps-panel-active-bg-color)",borderColor:"var(--steps-panel-active-border-color)",[`${t}-panel-arrow`]:{path:{fill:"var(--steps-panel-active-bg-color)",stroke:"var(--steps-panel-active-border-color)"}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:"var(--steps-item-icon-active-text-color)"}}}},{[`&${t}-small`]:{"--steps-panel-padding":e.paddingXS,"--steps-item-border-radius":s}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${te(r)} 0`,"calc(100% + var(--steps-item-base-width)) 0","calc(100% + var(--steps-item-base-width)) 100%",`${te(r)} 100%`,`calc(var(--steps-item-base-width) + ${te(r)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:n(r).div(2).mul(-1).equal(),height:n(r).add("100%").equal()}}}]}},zZ=e=>{const{calc:t,antCls:n,componentCls:r,iconSize:i,iconSizeSM:s,lineWidthBold:c,paddingXXS:d}=e,f=`${r}-item`,p=e.calc(i).add(e.calc(c).mul(4).equal()).equal(),g=e.calc(s).add(e.calc(e.lineWidth).mul(4).equal()).equal(),h=t(c).add(c).equal();return{[`${r}${r}-with-progress`]:{"--steps-item-wrapper-padding-top":h,[`${f}${f}-process`]:{[`${f}-icon`]:{position:"relative"}},[`${f}-progress-icon`]:{"&-svg":{"--steps-svg-size":t(h).mul(2).add("var(--steps-icon-size)").equal(),"--icon-size-ptg-unitless":"calc(100 / tan(atan2(var(--steps-svg-size),1px)))",fontSize:"var(--steps-svg-size)",lineHeight:"var(--icon-size-ptg-unitless)",position:"absolute",inset:t(h).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:"var(--icon-size-ptg-unitless)",strokeWidth:t("var(--icon-size-ptg-unitless)").mul(c).equal(),"--progress-r":t("var(--steps-svg-size)").sub(c).mul("var(--icon-size-ptg-unitless)").div(2).equal(),r:"var(--progress-r)",fill:"none",cx:50,cy:50,transition:`all ${e.motionDurationSlow} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}},[`&${r}-with-progress11`]:{[f]:{paddingTop:d,paddingInlineStart:d},[`${f}-icon`]:{position:"relative",[`${n}-progress`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)","&-body":{width:`${te(p)} !important`,height:`${te(p)} !important`}}},[`&${r}-small`]:{[`${f}-icon ${n}-progress-body`]:{width:`${te(g)} !important`,height:`${te(g)} !important`}}}}},AZ=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:i,marginXXS:s,lineWidthBold:c,fontSizeSM:d}=e,f=`${t}-item`;return{[`${t}${t}-dot`]:{"--steps-icon-size-active":i,"--steps-icon-size":r,"--steps-dot-icon-size":r,"--steps-dot-icon-border-width":e.lineWidthBold,"--steps-rail-size":c,"--steps-icon-border-width":c,[`${f}-custom ${f}-icon`]:{fontSize:d},[`${f}-icon`]:{position:"relative","&:after":{content:'""',width:n,height:n,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${f}-active ${f}-icon`]:{"--steps-icon-size":"var(--steps-icon-size-active)"},[`&${t}-horizontal`]:{[`&, &${t}-small`]:x1(e,s)}}}},DZ=e=>{const{componentCls:t,lineWidthBold:n}=e,r=`${t}-item`;return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${r}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[r]:{"&:not(:first-child)":{clipPath:`polygon(${["calc(0px - var(--steps-item-base-width)) 0px",`calc(100% - ${te(n)}) 0px`,`calc(100% - var(--steps-item-base-width) - ${te(n)}) 50%`,`calc(100% - ${te(n)}) 100%`,"calc(0px - var(--steps-item-base-width)) 100%"].join(",")})`}}}}}}},jZ=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:i,marginXS:s}=e;return{[`${t}${t}-small`]:{"--steps-icon-size":n,"--steps-title-horizontal-item-margin":e.marginSM,"--steps-title-vertical-row-gap":e.paddingXS,"--steps-title-font-size":r,"--steps-title-line-height":i,"--steps-title-horizontal-rail-margin":e.marginXS,"--steps-title-horizontal-title-height":e.fontHeight,[`&${t}-horizontal${t}-title-vertical`]:x1(e,s)}}},om="wait",am="process",im="finish",lm="error",_Z=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:s,colorError:c,colorText:d,colorTextDescription:f,colorBgContainer:p,colorPrimaryHover:g}=e,h=`${t}-item`;return{[t]:[{[h]:{"--steps-item-solid-line-color":"#000","--steps-item-title-color":"#000","--steps-item-content-color":"#000","--steps-item-subtitle-color":"var(--steps-item-content-color)","--steps-item-icon-custom-color":"#000","--steps-item-icon-bg-color":"#000","--steps-item-icon-border-color":"#000","--steps-item-icon-text-color":"#fff","--steps-item-icon-dot-color":"#000","--steps-item-icon-dot-bg-color":"var(--steps-item-icon-dot-color)","--steps-item-icon-dot-border-color":"var(--steps-item-icon-dot-color)","--steps-item-text-hover-color":"#000","--steps-item-icon-bg-hover-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-border-hover-color":"var(--steps-item-icon-border-color)","--steps-item-icon-text-hover-color":"var(--steps-item-icon-text-color)","--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)","--steps-item-process-rail-line-style":e.lineType},[`${h}-rail`]:{borderColor:"var(--steps-item-solid-line-color)"},[`${h}-custom ${h}-icon`]:{color:"var(--steps-item-icon-custom-color)"},[`${h}-title`]:{color:"var(--steps-item-title-color)"},[`${h}-subtitle`]:{color:"var(--steps-item-subtitle-color)"},[`${h}-content`]:{color:"var(--steps-item-content-color)"},[`${h}-active ${h}-icon`]:{},[`${h}-active ${h}-content`]:{color:"var(--steps-item-content-active-color)"},[`${h}[role='button']:not(${h}-active):hover`]:{[`${h}-title, ${h}-content`]:{color:"var(--steps-item-text-hover-color)"}},[`&:not(${t}-dot)`]:{[`${h}:not(${h}-custom)`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-color)",borderColor:"var(--steps-item-icon-border-color)",color:"var(--steps-item-icon-text-color)"},[`&[role='button']:not(${h}-active):hover`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-hover-color)",borderColor:"var(--steps-item-icon-border-hover-color)",color:"var(--steps-item-icon-text-hover-color)"}},[`&${h}-active`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-active-bg-color)",borderColor:"var(--steps-item-icon-active-border-color)",color:"var(--steps-item-icon-active-text-color)"}}}},[`&${t}-dot`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-dot-bg-color)",borderColor:"var(--steps-item-icon-dot-border-color)",color:"var(--steps-item-icon-dot-color)",[`&${h}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${h}-${om}`]:{"--steps-item-icon-custom-color":n,"--steps-item-title-color":f,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${om}`]:{"--steps-item-solid-line-color":n},[`${h}-${am}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${am}`]:{"--steps-item-solid-line-color":i,"--steps-rail-line-style":"var(--steps-item-process-rail-line-style)"},[`${h}-${im}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${im}`]:{"--steps-item-solid-line-color":i},[`${h}-${lm}`]:{"--steps-item-icon-custom-color":c,"--steps-item-title-color":c,"--steps-item-content-color":c,"--steps-item-content-active-color":c,"--steps-item-text-hover-color":e.colorErrorHover},[`${h}-rail-${lm}`]:{"--steps-item-solid-line-color":c}},{[`&${t}-filled`]:{[h]:{"--steps-item-icon-dot-border-color":"transparent"},[`${h}-${om}`]:{"--steps-item-icon-bg-color":e.colorFillTertiary,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":s,"--steps-item-icon-dot-bg-color":n,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${am}, ${h}-${im}`]:{"--steps-item-icon-bg-color":e.colorPrimaryBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":i,"--steps-item-icon-dot-bg-color":i,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${lm}`]:{"--steps-item-icon-bg-color":e.colorErrorBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":c,"--steps-item-icon-dot-bg-color":c,"--steps-item-icon-bg-hover-color":e.colorErrorBgFilledHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":c,"--steps-item-icon-active-bg-color":c,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r}}},{[`&${t}-outlined`]:{[h]:{"--steps-item-icon-dot-bg-color":"transparent"},[`${h}-${om}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":n,"--steps-item-icon-text-color":n,"--steps-item-icon-dot-color":n,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":g,"--steps-item-icon-text-hover-color":g,"--steps-item-icon-active-bg-color":e.colorFillTertiary},[`${h}-${am}, ${h}-${im}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":i,"--steps-item-icon-text-color":i,"--steps-item-icon-dot-color":i,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorPrimaryHover,"--steps-item-icon-text-hover-color":e.colorPrimaryHover,"--steps-item-icon-active-bg-color":e.colorPrimaryBg},[`${h}-${lm}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":c,"--steps-item-icon-text-color":c,"--steps-item-icon-dot-color":c,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorErrorHover,"--steps-item-icon-text-hover-color":e.colorErrorHover,"--steps-item-icon-active-bg-color":e.colorErrorBg}}}]}},HZ=e=>{const{componentCls:t,calc:n}=e,r=`${t}-item`;return{[`${t}-vertical`]:{"--steps-vertical-rail-margin":n(e.marginXXS).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${r}`]:{minHeight:n(e.controlHeight).mul(1.5).equal(),paddingBottom:e.paddingSM,"&:last-child":{paddingBottom:0},[`${r}-icon`]:{marginInlineStart:"calc((var(--steps-icon-size-max) - var(--steps-icon-size)) / 2)"},[`${r}-rail`]:{"--steps-rail-offset":n("var(--steps-heading-height)").sub("var(--steps-icon-size)").div(2).equal(),borderInlineStartWidth:"var(--steps-rail-size)",position:"absolute",top:n("var(--steps-icon-size)").add("var(--steps-item-wrapper-padding-top)").add("var(--steps-rail-offset)").add("var(--steps-vertical-rail-margin)").equal(),insetInlineStart:n("var(--steps-icon-size-max)").div(2).equal(),bottom:n("var(--steps-vertical-rail-margin)").sub("var(--steps-rail-offset)").equal(),marginInlineStart:"calc(var(--steps-rail-size) / -2)"}}}}},BZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[t]:{"--steps-title-font-size":e.fontSizeLG,"--steps-title-line-height":e.lineHeightLG,"--steps-subtitle-font-size":e.fontSize,"--steps-subtitle-line-height":e.lineHeight,"--steps-item-wrapper-padding-top":"0px","--steps-rail-size":e.lineWidth,"--steps-rail-line-style":e.lineType,...Zt(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[n]:{flex:"none",position:"relative"},[`${n}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:"var(--steps-item-wrapper-padding-top)"},[`${n}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${n}-title`]:{color:e.colorText,fontSize:"var(--steps-title-font-size)",lineHeight:"var(--steps-title-line-height)",wordBreak:"break-word"},[`${n}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:"var(--steps-subtitle-font-size)",lineHeight:"var(--steps-subtitle-line-height)",marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${n}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${n}-rail`]:{borderStyle:"var(--steps-rail-line-style)",borderWidth:0},[`${n}-title, ${n}-subtitle, ${n}-content, ${n}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:$o},[`${n}[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}},LZ=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),VZ=Pt("Steps",e=>{const t=Ot(e,{inlineDotSize:6});return[BZ(t),RZ(t),HZ(t),MZ(t),NZ(t),jZ(t),AZ(t),_Z(t),IZ(t),PZ(t),TZ(t),zZ(t),DZ(t)]},LZ),FZ={itemIcon:dd},kZ=e=>{const{size:t,className:n,rootClassName:r,style:i,variant:s="filled",type:c,classNames:d,styles:f,direction:p,orientation:g,responsive:h=!0,progressDot:y,labelPlacement:C,titlePlacement:b,ellipsis:$,offset:S=0,items:w,percent:M,current:x=0,onChange:R,iconRender:T,...N}=e,O=l.useContext(xZ),P=It("steps"),{getPrefixCls:D,direction:W,className:k,style:U}=P;let G,L,H={};O?H={root:O.rootComponent,item:O.itemComponent}:{classNames:G,styles:L}=P;const _=D("steps",e.prefixCls),B=`${_}-item-icon`,[I,z]=VZ(_),V=fr(t),A=l.useMemo(()=>(w||[]).filter(Boolean),[w]),{xs:j}=Ap(h),q=l.useMemo(()=>c&&c!=="default"?c:y?"dot":c,[y,c]),X=q==="inline",K=q==="dot"||q==="inline",Z=l.useMemo(()=>q==="dot"&&typeof y=="function"?y:void 0,[q,y]),ee=l.useMemo(()=>{const pe=g||p;return q==="panel"?"horizontal":h&&j||pe==="vertical"?"vertical":"horizontal"},[g,p,q,h,j]),ie=l.useMemo(()=>K||ee==="vertical"?ee==="vertical"?"horizontal":"vertical":c==="navigation"?"horizontal":b||C||"horizontal",[K,C,ee,b,c]),ne=X?void 0:M,oe={...e,variant:s,size:V,type:q,orientation:ee,titlePlacement:ie,current:x,percent:ne,responsive:h,offset:S},[de,le]=Lt([FZ,G,d],[L,f],{props:oe}),fe=(pe,Se)=>{const{item:Ie,index:Re,active:we,components:{Icon:se}}=Se,{status:be,icon:Ee}=Ie;let Ne=null;if(K||Ee)Ne=Ee;else switch(be){case"finish":Ne=l.createElement(sl,{className:`${B}-finish`});break;case"error":Ne=l.createElement(qr,{className:`${B}-error`});break;default:{let Ge=l.createElement("span",{className:`${B}-number`},Se.index+1);be==="process"&&ne!==void 0&&(Ge=l.createElement(EZ,{prefixCls:_,percent:ne},Ge)),Ne=Ge}}let Ve=l.createElement(se,null,Ne);return T?Ve=T(Ve,{index:Re,active:we,item:Ie,components:{Icon:se}}):typeof Z=="function"&&(Ve=Z(Ve,{index:Re,...Ie})),Ve},ge=(pe,Se)=>{let Ie=pe;return X&&Se.item.content&&(Ie=l.createElement(ur,{destroyOnHidden:!0,title:Se.item.content},pe)),l.createElement(fd,{component:"Steps",disabled:Se.item.disabled||!R,colorSource:s==="filled"?"color":null},Ie)},re=q==="panel"?pe=>l.createElement(l.Fragment,null,pe,l.createElement(wZ,{prefixCls:_})):void 0,ue={"--steps-items-offset":`${S}`,...U,...i},he=Q(k,`${_}-${s}`,{[`${_}-${q}`]:q!=="dot"?q:!1,[`${_}-rtl`]:W==="rtl",[`${_}-dot`]:K,[`${_}-ellipsis`]:$,[`${_}-with-progress`]:ne!==void 0,[`${_}-${V}`]:V},n,r,I,z);return l.createElement($Z,{...N,prefixCls:_,className:he,style:ue,classNames:de,styles:le,orientation:ee,titlePlacement:ie,components:H,current:x,items:A,onChange:R,iconRender:fe,itemRender:ge,itemWrapperRender:re})},WZ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:s}=e,c=s(r).sub(n).equal(),d=s(t).sub(n).equal();return{[i]:{...Zt(e),display:"inline-block",height:"auto",paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:d,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},w1=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Ot(e,{tagFontSize:i,tagLineHeight:te(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},E1=e=>{const t=HT(new Wm(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new en(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},M1=Pt("Tag",e=>{const t=w1(e);return WZ(t)},E1),pN=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:s,children:c,icon:d,onChange:f,onClick:p,disabled:g,...h}=e,{getPrefixCls:y,tag:C}=l.useContext(dt),b=l.useContext(kr),$=g??b,S=T=>{$||(f?.(!s),p?.(T))},w=y("tag",n),[M,x]=M1(w),R=Q(w,`${w}-checkable`,{[`${w}-checkable-checked`]:s,[`${w}-checkable-disabled`]:$},C?.className,i,M,x);return l.createElement("span",{...h,ref:t,style:{...r,...C?.style},className:R,onClick:S},d,l.createElement("span",null,c))});function qZ(e,t){const{id:n,prefixCls:r,rootClassName:i,className:s,style:c,classNames:d,styles:f,disabled:p,options:g,value:h,defaultValue:y,onChange:C,multiple:b,...$}=e,{getPrefixCls:S,direction:w,className:M,style:x,classNames:R,styles:T}=It("tag"),N=S("tag",r),O=`${N}-checkable-group`,P=ar(N),[D,W]=M1(N,P),[k,U]=Lt([R,d],[T,f],{props:e}),G=l.useMemo(()=>(g||[]).map(z=>z&&typeof z=="object"?z:{value:z,label:z}),[g]),[L,H]=Yt(y,h),_=(z,V)=>{let A=null;if(b){const j=L||[];A=z?[].concat(xn(j),[V.value]):j.filter(q=>q!==V.value)}else A=z?V.value:null;H(A),C?.(A)},B=ae.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:B.current}));const I=jn($,{aria:!0,data:!0});return ae.createElement("div",{...I,className:Q(O,M,i,{[`${O}-disabled`]:p,[`${O}-rtl`]:w==="rtl"},D,W,s,k.root),style:{...x,...U.root,...c},id:n,ref:B},G.map(z=>ae.createElement(pN,{key:z.value,className:Q(`${O}-item`,k.item),style:U.item,checked:b?(L||[]).includes(z.value):L===z.value,onChange:V=>_(V,z),disabled:p},z.label)))}const YZ=ae.forwardRef(qZ);function UZ(e,t){const{color:n,variant:r,bordered:i}=e;return l.useMemo(()=>{const s=n?.endsWith("-inverse");let c;r?c=r:s?c="solid":i===!1?c="filled":c=t||"filled";const d=s?n?.replace("-inverse",""):n,f=_p(n),p=dH(n),g={};if(!f&&!p&&d)if(c==="solid")g.backgroundColor=n;else{const h=new en(d).toHsl();h.l=.95,g.backgroundColor=new en(h).toHexString(),g.color=n,c==="outlined"&&(g.borderColor=n)}return[c,d,f,p,g]},[n,r,i,t])}const GZ=e=>$p(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),XZ=ad(["Tag","preset"],e=>{const t=w1(e);return GZ(t)},E1);function KZ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const sm=(e,t,n)=>{const r=KZ(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},QZ=ad(["Tag","status"],e=>{const t=w1(e);return[sm(t,"success","Success"),sm(t,"processing","Info"),sm(t,"error","Error"),sm(t,"warning","Warning")]},E1),ZZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:s,children:c,icon:d,color:f,variant:p,onClose:g,bordered:h,disabled:y,href:C,target:b,styles:$,classNames:S,...w}=e,{getPrefixCls:M,direction:x,className:R,variant:T,style:N,classNames:O,styles:P}=It("tag"),[D,W,k,U,G]=UZ(e,T),L=k||U,H=l.useContext(kr),_=y??H,{tag:B}=l.useContext(dt),[I,z]=l.useState(!0),V=nn(w,["closeIcon","closable"]),A={...e,color:W,variant:D,disabled:_,href:C,target:b,icon:d},[j,q]=Lt([O,S],[P,$],{props:A}),X=l.useMemo(()=>{let ue={...q.root,...N,...s};return _||(ue={...G,...ue}),ue},[q.root,N,s,G,_]),K=M("tag",n),[Z,ee]=M1(K),ie=Q(K,R,j.root,`${K}-${D}`,{[`${K}-${W}`]:L,[`${K}-hidden`]:!I,[`${K}-rtl`]:x==="rtl",[`${K}-disabled`]:_},r,i,Z,ee),ne=ue=>{_||(ue.stopPropagation(),g?.(ue),!ue.defaultPrevented&&z(!1))},[,oe]=IS(Cs(e),Cs(B),{closable:!1,closeIconRender:ue=>{const he=l.createElement("span",{className:`${K}-close-icon`,onClick:ne},ue);return zS(ue,he,pe=>({onClick:Se=>{pe?.onClick?.(Se),ne(Se)},className:Q(pe?.className,`${K}-close-icon`)}))}}),de=typeof w.onClick=="function"||c&&c.type==="a",le=nr(d,{className:Q(l.isValidElement(d)?d.props?.className:"",j.icon),style:q.icon}),fe=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",{className:j.content,style:q.content},c)):c,ge=C?"a":"span",re=l.createElement(ge,{...V,ref:t,className:ie,style:X,href:_?void 0:C,target:b,onClick:_?void 0:V.onClick,...C&&_?{"aria-disabled":!0}:{}},fe,oe,k&&l.createElement(XZ,{key:"preset",prefixCls:K}),U&&l.createElement(QZ,{key:"status",prefixCls:K}));return de?l.createElement(fd,{component:"Tag"},re):re}),sr=ZZ;sr.CheckableTag=pN;sr.CheckableTagGroup=YZ;const JZ={defaultSeed:_m.token,defaultAlgorithm:DR},eJ=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:s}=r;return{marginBottom:i,color:n,fontWeight:s,fontSize:e,lineHeight:t}},tJ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
336
336
|
h${r}&,
|
|
337
337
|
div&-h${r},
|
|
338
338
|
div&-h${r} > textarea,
|
|
@@ -348,7 +348,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
348
348
|
${t}-collapse,
|
|
349
349
|
${t}-edit,
|
|
350
350
|
${t}-copy
|
|
351
|
-
`]:{...VR(e),marginInlineStart:e.marginXXS},...oJ(e),...aJ(e),...iJ(),"&-rtl":{direction:"rtl"}}}},sJ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),gN=Pt("Typography",lJ,sJ),cJ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:s,maxLength:c,autoSize:d=!0,value:f,onSave:p,onCancel:g,onEnd:h,component:y,enterIcon:C=l.createElement(zG,null)}=e,b=l.useRef(null),$=l.useRef(!1),S=l.useRef(null),[w,M]=l.useState(f);l.useEffect(()=>{M(f)},[f]),l.useEffect(()=>{if(b.current?.resizableTextArea){const{textArea:G}=b.current.resizableTextArea;G.focus();const{length:L}=G.value;G.setSelectionRange(L,L)}},[]);const x=({target:G})=>{M(G.value.replace(/[\n\r]/g,""))},R=()=>{$.current=!0},T=()=>{$.current=!1},N=({keyCode:G})=>{$.current||(S.current=G)},O=()=>{p(w.trim())},P=({keyCode:G,ctrlKey:L,altKey:H,metaKey:_,shiftKey:B})=>{S.current!==G||$.current||L||H||_||B||(G===nt.ENTER?(O(),h?.()):G===nt.ESC&&g())},D=()=>{O()},[W,k]=gN(t),U=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${y}`]:!!y},r,W,k);return l.createElement("div",{className:U,style:i},l.createElement(rN,{ref:b,maxLength:c,value:w,onChange:x,onKeyDown:N,onKeyUp:P,onCompositionStart:R,onCompositionEnd:T,onBlur:D,"aria-label":n,rows:1,autoSize:d}),C!==null?nr(C,{className:`${t}-edit-content-confirm`}):null)},uJ=(e,t)=>{let n=!1;const r=i=>{i.stopPropagation(),i.preventDefault(),i.clipboardData?.clearData(),i.clipboardData?.setData("text/plain",e),t&&i.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},dJ=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function fJ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await dJ(e,n)||uJ(e,n))}const mJ=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[i,s]=l.useState(!1),c=l.useRef(null),d=()=>{c.current&&clearTimeout(c.current)},f={};e.format&&(f.format=e.format),l.useEffect(()=>d,[]);const p=ut(async g=>{g?.preventDefault(),g?.stopPropagation(),s(!0);try{const h=typeof e.text=="function"?await e.text():e.text;await fJ(h||AQ(t,!0).join("")||"",f),s(!1),r(!0),d(),c.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(g)}catch(h){throw s(!1),h}});return{copied:n,copyLoading:i,onClick:p}};function tb(e,t){return l.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const pJ=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},gJ=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?{title:t??n,...e}:{title:e},[e,t,n]),hN=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:s,children:c,direction:d,style:f,...p}=e,{getPrefixCls:g,direction:h,className:y,style:C}=It("typography"),b=d??h,$=g("typography",n),[S,w]=gN($),M=Q($,y,{[`${$}-rtl`]:b==="rtl"},i,s,S,w),x={...C,...f};return l.createElement(r,{className:M,style:x,ref:t,...p},c)});function P4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function nb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function hJ(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const R1=e=>["string","number"].includes(typeof e),yJ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:s,tabIndex:c,onCopy:d,loading:f})=>{const p=P4(i),g=P4(s),{copied:h,copy:y}=n??{},C=t?h:y,b=nb(p[t?1:0],C),$=typeof b=="string"?b:C;return l.createElement(ur,{title:b},l.createElement("button",{type:"button",className:Q(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:d,"aria-label":$,tabIndex:c},t?nb(g[1],l.createElement(sl,null),!0):nb(g[0],f?l.createElement(Ep,null):l.createElement(D3,null),!0)))},cm=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),bJ=e=>e.reduce((t,n)=>t+(R1(n)?String(n).length:1),0);function z4(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const s=e[i],d=R1(s)?String(s).length:1,f=n+d;if(f>t){const p=t-n;return r.push(String(s).slice(0,p)),r}r.push(s),n=f}return e}const rb=0,ob=1,ab=2,ib=3,A4=4,um={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function vJ(e){const{enableMeasure:t,width:n,text:r,children:i,rows:s,expanded:c,miscDeps:d,onEllipsis:f}=e,p=l.useMemo(()=>dr(r),[r]),g=l.useMemo(()=>bJ(p),[r]),h=l.useMemo(()=>i(p,!1),[r]),[y,C]=l.useState(null),b=l.useRef(null),$=l.useRef(null),S=l.useRef(null),w=l.useRef(null),M=l.useRef(null),[x,R]=l.useState(!1),[T,N]=l.useState(rb),[O,P]=l.useState(0),[D,W]=l.useState(null);Nt(()=>{N(t&&n&&g?ob:rb)},[n,r,s,t,p]),Nt(()=>{if(T===ob){N(ab);const L=$.current&&getComputedStyle($.current).whiteSpace;W(L)}else if(T===ab){const L=!!S.current?.isExceed();N(L?ib:A4),C(L?[0,g]:null),R(L);const H=S.current?.getHeight()||0,_=s===1?0:w.current?.getHeight()||0,B=M.current?.getHeight()||0,I=Math.max(H,_+B);P(I+1),f(L)}},[T]);const k=y?Math.ceil((y[0]+y[1])/2):0;Nt(()=>{const[L,H]=y||[0,0];if(L!==H){const B=(b.current?.getHeight()||0)>O;let I=k;H-L===1&&(I=B?L:H),C(B?[L,I]:[I,H])}},[y,k]);const U=l.useMemo(()=>{if(!t)return i(p,!1);if(T!==ib||!y||y[0]!==y[1]){const L=i(p,!1);return[A4,rb].includes(T)?L:l.createElement("span",{style:{...um,WebkitLineClamp:s}},L)}return i(c?p:z4(p,y[0]),x)},[c,T,y,p].concat(xn(d))),G={width:n,margin:0,padding:0,whiteSpace:D==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,U,T===ab&&l.createElement(l.Fragment,null,l.createElement(cm,{style:{...G,...um,WebkitLineClamp:s},ref:S},h),l.createElement(cm,{style:{...G,...um,WebkitLineClamp:s-1},ref:w},h),l.createElement(cm,{style:{...G,...um,WebkitLineClamp:1},ref:M},i([],!0))),T===ib&&y&&y[0]!==y[1]&&l.createElement(cm,{style:{...G,top:400},ref:b},i(z4(p,k),!0)),T===ob&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:$}))}const SJ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:l.createElement(ur,{open:t?void 0:!1,...r},n);function CJ({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:s,italic:c},d){let f=d;function p(g,h){h&&(f=l.createElement(g,{},f))}return p("strong",i),p("u",n),p("del",r),p("code",t),p("mark",e),p("kbd",s),p("i",c),f}const $J="...",D4=["delete","mark","code","underline","strong","keyboard","italic"],Zp=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,type:s,disabled:c,children:d,ellipsis:f,editable:p,copyable:g,component:h,title:y,...C}=e,{getPrefixCls:b,direction:$}=l.useContext(dt),[S]=oo("Text"),w=l.useRef(null),M=l.useRef(null),x=b("typography",n),R=nn(C,D4),[T,N]=tb(p),[O,P]=Yt(!1,N.editing),{triggerType:D=["icon"]}=N,W=ve=>{ve&&N.onStart?.(),P(ve)},k=pJ(O);Nt(()=>{!O&&k&&M.current?.focus()},[O]);const U=ve=>{ve?.preventDefault(),W(!0)},G=ve=>{N.onChange?.(ve),W(!1)},L=()=>{N.onCancel?.(),W(!1)},[H,_]=tb(g),{copied:B,copyLoading:I,onClick:z}=mJ({copyConfig:_,children:d}),[V,A]=l.useState(!1),[j,q]=l.useState(!1),[X,K]=l.useState(!1),[Z,ee]=l.useState(!1),[ie,ne]=l.useState(!0),[oe,de]=tb(f,{expandable:!1,symbol:ve=>ve?S?.collapse:S?.expand}),[le,fe]=Yt(de.defaultExpanded||!1,de.expanded),ge=oe&&(!le||de.expandable==="collapsible"),{rows:re=1}=de,ue=l.useMemo(()=>ge&&(de.suffix!==void 0||de.onEllipsis||de.expandable||T||H),[ge,de,T,H]);Nt(()=>{oe&&!ue&&(A(WE("webkitLineClamp")),q(WE("textOverflow")))},[ue,oe]);const[he,pe]=l.useState(ge),Se=l.useMemo(()=>ue?!1:re===1?j:V,[ue,j,V]);Nt(()=>{pe(Se&&ge)},[Se,ge]);const Ie=ge&&(he?Z:X),Re=ge&&re===1&&he,we=ge&&re>1&&he,se=(ve,Pe)=>{fe(Pe.expanded),de.onExpand?.(ve,Pe)},[be,Ee]=l.useState(0),Ne=({offsetWidth:ve})=>{Ee(ve)},Ve=ve=>{K(ve),X!==ve&&de.onEllipsis?.(ve)};l.useEffect(()=>{const ve=w.current;if(oe&&he&&ve){const Pe=hJ(ve);Z!==Pe&&ee(Pe)}},[oe,he,d,we,ie,be]),l.useEffect(()=>{const ve=w.current;if(typeof IntersectionObserver>"u"||!ve||!he||!ge)return;const Pe=new IntersectionObserver(()=>{ne(!!ve.offsetParent)});return Pe.observe(ve),()=>{Pe.disconnect()}},[he,ge]);const Ge=gJ(de.tooltip,N.text,d),et=l.useMemo(()=>{if(!(!oe||he))return[N.text,d,y,Ge.title].find(R1)},[oe,he,y,Ge.title,Ie]);if(O)return l.createElement(cJ,{value:N.text??(typeof d=="string"?d:""),onSave:G,onCancel:L,onEnd:N.onEnd,prefixCls:x,className:r,style:i,direction:$,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const Te=()=>{const{expandable:ve,symbol:Pe}=de;return ve?l.createElement("button",{type:"button",key:"expand",className:`${x}-${le?"collapse":"expand"}`,onClick:Ze=>se(Ze,{expanded:!le}),"aria-label":le?S.collapse:S?.expand},typeof Pe=="function"?Pe(le):Pe):null},_e=()=>{if(!T)return;const{icon:ve,tooltip:Pe,tabIndex:Ze}=N,Ue=dr(Pe)[0]||S?.edit,Fe=typeof Ue=="string"?Ue:"";return D.includes("icon")?l.createElement(ur,{key:"edit",title:Pe===!1?"":Ue},l.createElement("button",{type:"button",ref:M,className:`${x}-edit`,onClick:U,"aria-label":Fe,tabIndex:Ze},ve||l.createElement(fi,{role:"button"}))):null},Le=()=>H?l.createElement(yJ,{key:"copy",..._,prefixCls:x,copied:B,locale:S,onCopy:z,loading:I,iconOnly:!Mr(d)}):null,Qe=ve=>[ve&&Te(),_e(),Le()],De=ve=>[ve&&!le&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},$J),de.suffix,Qe(ve)];return l.createElement(Vr,{onResize:Ne,disabled:!ge},ve=>l.createElement(SJ,{tooltipProps:Ge,enableEllipsis:ge,isEllipsis:Ie},l.createElement(hN,{className:Q({[`${x}-${s}`]:s,[`${x}-disabled`]:c,[`${x}-ellipsis`]:oe,[`${x}-ellipsis-single-line`]:Re,[`${x}-ellipsis-multiple-line`]:we},r),prefixCls:n,style:{...i,WebkitLineClamp:we?re:void 0},component:h,ref:or(ve,w,t),direction:$,onClick:D.includes("text")?U:void 0,"aria-label":et?.toString(),title:y,...R},l.createElement(vJ,{enableMeasure:ge&&!he,text:d,rows:re,width:be,onEllipsis:Ve,expanded:le,miscDeps:[B,le,I,T,H,S].concat(xn(D4.map(Pe=>e[Pe])))},(Pe,Ze)=>CJ(e,l.createElement(l.Fragment,null,Pe.length>0&&Ze&&!le&&et?l.createElement("span",{key:"show-content","aria-hidden":!0},Pe):Pe,De(Ze)))))))}),xJ=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:i,navigate:s,...c}=e,d={...c,rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r};return l.createElement(Zp,{...d,ref:t,ellipsis:!!n,component:"a"},i)}),wJ=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.createElement(Zp,{ref:t,...r,component:"div"},n)}),EJ=(e,t)=>{const{ellipsis:n,children:r,...i}=e,s=l.useMemo(()=>n&&typeof n=="object"?nn(n,["expandable","rows"]):n,[n]);return l.createElement(Zp,{ref:t,...i,ellipsis:s,component:"span"},r)},MJ=l.forwardRef(EJ),RJ=[1,2,3,4,5],TJ=l.forwardRef((e,t)=>{const{level:n=1,children:r,...i}=e,s=RJ.includes(n)?`h${n}`:"h1";return l.createElement(Zp,{ref:t,...i,component:s},r)}),Ir=hN;Ir.Text=MJ;Ir.Link=xJ;Ir.Title=TJ;Ir.Paragraph=wJ;var Pm={exports:{}},OJ=Pm.exports,j4;function NJ(){return j4||(j4=1,(function(e,t){(function(n,r){e.exports=r(p6())})(OJ,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var i=r(n),s={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c){return c+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(c){return c<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(s,null,!0),s}))})(Pm)),Pm.exports}NJ();const yN=l.createContext(null),fl=()=>{const e=l.useContext(yN);if(!e)throw new Error("useDashboard must be used within Dashboard");return e},IJ="/api";class bN extends Error{status;code;constructor(t,n,r){super(n),this.name="ApiError",this.status=t,this.code=r}}async function qo(e,t){const n=await fetch(`${IJ}${e}`,{...t,headers:{"Content-Type":"application/json",...t?.headers}});if(!n.ok){const r=await n.json().catch(()=>({message:"API Error"}));throw new bN(n.status,r.message||`HTTP ${n.status}`,r.code)}return n.json()}const ls={async get(e){try{return await qo(`/reports/${e}`)}catch(t){if(t instanceof bN&&t.status===404)return null;throw t}},async save(e,t){return qo(`/reports/${e}`,{method:"PUT",body:JSON.stringify(t)})},async delete(e){try{return await qo(`/reports/${e}`,{method:"DELETE"}),!0}catch{return!1}}},_4={async get(e,t){return qo(`/calendar?year=${e}&month=${t}`)},async getAvailableMonths(){return(await qo("/calendar/months")).yearMonths}},gp={async get(){return qo("/config")},async update(e){return qo("/config",{method:"PUT",body:JSON.stringify(e)})},async getRoutinesMarkdown(){return qo("/config/routines/markdown")},async saveRoutinesMarkdown(e){return qo("/config/routines/markdown",{method:"PUT",body:JSON.stringify({content:e})})}},PJ={async getStatus(){return qo("/git/status")}},{TextArea:zJ}=Nr,{Header:AJ}=Ra,{Text:wr}=Ir,H4="dashboard_save_step",DJ=({selectedDate:e,onDateChange:t,onImportClick:n,selectedProjects:r=[],onRemoveProject:i,onClearProjectFilter:s})=>{const{report:c,saveMultipleReports:d,config:f,unsavedReports:p}=fl(),g=f.config?.slack?.enabled??!1,[h,y]=l.useState(!1),[C,b]=l.useState(()=>{const z=localStorage.getItem(H4);return z?parseInt(z,10):0}),[$,S]=l.useState(!1),[w,M]=l.useState(new Set),[x,R]=l.useState(null),[T,N]=l.useState(!1);l.useEffect(()=>{localStorage.setItem(H4,String(C))},[C]),l.useEffect(()=>{!g&&C>2&&b(2)},[g,C]);const O=l.useMemo(()=>{const z=new Set(p.unsavedDates),V=e.format("YYYY-MM-DD");return c.isDirty&&z.add(V),Array.from(z).sort((A,j)=>j.localeCompare(A))},[p.unsavedDates,e,c.isDirty]);l.useEffect(()=>{h&&(M(new Set(O)),N(!0),PJ.getStatus().then(z=>R(z)).catch(z=>console.error("Git状態の取得に失敗:",z)).finally(()=>N(!1)))},[h,O]);const P=l.useMemo(()=>!!(w.size>0||C>=1&&x?.uncommitted&&x.uncommitted.count>0||C>=2&&x?.unpushed&&x.unpushed.count>0),[w.size,C,x]),D=l.useCallback(()=>{t(gn())},[t]),W=l.useCallback(()=>{t(e.subtract(1,"day"))},[e,t]),k=l.useCallback(()=>{t(e.add(1,"day"))},[e,t]),U=l.useCallback(()=>{y(!0)},[]),G=l.useCallback(async()=>{if(!P){$n.warning("実行対象がありません");return}S(!0);try{const z=C>=1,V=C>=2,A=C>=3,j={git:z?{commit:!0,push:V}:void 0,slack:A?{post:!0}:void 0},q=Array.from(w);q.length>0?await d(q,j):(z||V)&&await d([e.format("YYYY-MM-DD")],j),y(!1)}catch{$n.error("操作に失敗しました")}finally{S(!1)}},[C,w,d,P,e]),L=l.useCallback((z,V)=>{M(A=>{const j=new Set(A);return V?j.add(z):j.delete(z),j})},[]),H=l.useCallback(z=>{M(z?new Set(O):new Set)},[O]),_=l.useCallback(z=>{const V=e.format("YYYY-MM-DD");return z===V?c.markdownContent||"(日報データがありません)":p.getUnsavedReport(z)?.currentMarkdown||"(データがありません)"},[e,c.markdownContent,p]),B=l.useMemo(()=>{const z=O.length;return Y.jsxs("div",{style:{fontSize:12,whiteSpace:"nowrap"},children:[Y.jsx("div",{style:{fontWeight:600,marginBottom:2},children:"Git"}),Y.jsxs("div",{children:["未保存: ",z,"件"]})]})},[O.length]),I=O.length>0;return Y.jsxs(AJ,{style:{background:"#fff",padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #f0f0f0",position:"sticky",top:0,zIndex:100,height:64},children:[Y.jsxs(dn,{size:"large",children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[Y.jsx(z3,{style:{fontSize:24,color:"#1890ff"}}),Y.jsx(wr,{strong:!0,style:{fontSize:18},children:"日報ダッシュボード"})]}),Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",onClick:W,children:"◀"}),Y.jsx(dl,{value:e,onChange:t,allowClear:!1,format:"YYYY年MM月DD日",style:{width:150}}),Y.jsx(_t,{size:"small",onClick:k,children:"▶"}),Y.jsx(_t,{type:"primary",size:"small",onClick:D,children:"今日"}),r.length>0&&Y.jsxs(dn,{size:4,style:{marginLeft:8},children:[r.map(z=>Y.jsx(sr,{color:z.color,closable:!0,onClose:()=>i?.(z.code),closeIcon:Y.jsx(qr,{style:{fontSize:10}}),children:z.code},z.code)),r.length>1&&Y.jsx(sr,{style:{cursor:"pointer"},onClick:s,children:"すべて解除"})]})]})]}),Y.jsxs(dn,{size:"middle",align:"center",children:[Y.jsx(_t,{icon:Y.jsx(nX,{}),onClick:n,children:"取り込み"}),Y.jsx(_t,{type:"primary",icon:Y.jsx(yG,{}),onClick:U,loading:c.saving,children:"保存"}),Y.jsx(ur,{title:B,children:Y.jsxs("div",{style:{position:"relative",width:24,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[Y.jsx(KG,{style:{fontSize:18,color:I?"#ff4d4f":"#52c41a"}}),I&&Y.jsx("span",{style:{position:"absolute",top:2,right:-6,minWidth:14,height:14,borderRadius:7,backgroundColor:"#ff4d4f",color:"#fff",fontSize:10,fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center"},children:"!"})]})})]}),Y.jsxs(ao,{title:"保存の確認",open:h,onCancel:()=>y(!1),onOk:G,okText:"実行",cancelText:"キャンセル",okButtonProps:{loading:$,disabled:!P},width:900,children:[Y.jsxs("div",{style:{marginBottom:24},children:[Y.jsx(wr,{type:"secondary",style:{fontSize:12,marginBottom:12,display:"block"},children:"保存範囲を選択してください(クリックで選択、右を選ぶと左も自動で実行されます)"}),Y.jsx(kZ,{current:C,onChange:z=>b(z),items:[{title:"ローカル保存",description:"ファイルに保存",icon:Y.jsx(qG,{})},{title:"Commit",description:"Gitにコミット",icon:Y.jsx(y1,{})},{title:"Push",description:"リモートに反映",icon:Y.jsx(c4,{})},...g?[{title:"Slack",description:"日報を投稿",icon:Y.jsx(TX,{})}]:[]],style:{marginTop:16}})]}),Y.jsxs("div",{style:{marginTop:16},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14},children:["保存対象 (",w.size,"/",O.length,"件)"]}),Y.jsx(Os,{checked:w.size===O.length&&O.length>0,indeterminate:w.size>0&&w.size<O.length,onChange:z=>H(z.target.checked),children:"全選択"})]}),Y.jsxs("div",{style:{maxHeight:300,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:6},children:[O.map((z,V)=>Y.jsxs("div",{style:{padding:12,borderBottom:V<O.length-1?"1px solid #f0f0f0":"none",background:w.has(z)?"#f6ffed":"#fff"},children:[Y.jsxs(Os,{checked:w.has(z),onChange:A=>L(z,A.target.checked),style:{marginBottom:8},children:[Y.jsx(wr,{strong:!0,children:z}),z===e.format("YYYY-MM-DD")&&Y.jsx(sr,{color:"blue",style:{marginLeft:8},children:"現在表示中"})]}),w.has(z)&&Y.jsx(zJ,{value:_(z),readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace",fontSize:11,background:"#fafafa",marginTop:4}})]},z)),O.length===0&&Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未保存の変更はありません"})})]})]}),C>=1&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ri,{style:{margin:"16px 0 12px"}}),Y.jsxs("div",{children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[Y.jsx(jG,{style:{color:"#faad14"}}),"保存済み・未コミットのファイル"]}),T?Y.jsx("div",{style:{padding:16,textAlign:"center"},children:Y.jsx(mp,{size:"small"})}):x?.uncommitted&&x.uncommitted.count>0?Y.jsx(NE,{size:"small",items:[{key:"uncommitted",label:Y.jsxs(wr,{type:"secondary",children:[x.uncommitted.count,"件の未コミットファイル"]}),children:Y.jsx("div",{style:{maxHeight:150,overflow:"auto"},children:x.uncommitted.files.map((z,V)=>Y.jsxs("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:8},children:[Y.jsx(cp,{style:{color:"#1890ff"}}),Y.jsx(wr,{code:!0,style:{fontSize:11},children:z.path}),Y.jsx(sr,{color:z.status==="D"?"red":z.status==="A"||z.status==="?"?"green":"blue",style:{fontSize:10},children:z.status==="D"?"削除":z.status==="A"?"追加":z.status==="?"?"新規":"変更"})]},V))})}],defaultActiveKey:["uncommitted"]}):Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未コミットのファイルはありません"})}),Y.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Commitを選択すると、上記ファイルと未保存の変更が一緒にコミットされます"})]})]}),C>=2&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ri,{style:{margin:"16px 0 12px"}}),Y.jsxs("div",{children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[Y.jsx(c4,{style:{color:"#1890ff"}}),"未プッシュのコミット"]}),T?Y.jsx("div",{style:{padding:16,textAlign:"center"},children:Y.jsx(mp,{size:"small"})}):x?.unpushed&&x.unpushed.count>0?Y.jsx(NE,{size:"small",items:[{key:"unpushed",label:Y.jsxs(wr,{type:"secondary",children:[x.unpushed.count,"件の未プッシュコミット"]}),children:Y.jsx("div",{style:{maxHeight:200,overflow:"auto"},children:x.unpushed.commits.map((z,V)=>Y.jsxs("div",{style:{padding:"8px 0",borderBottom:V<x.unpushed.commits.length-1?"1px solid #f0f0f0":"none"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[Y.jsx(sr,{color:"purple",style:{fontSize:10,fontFamily:"monospace"},children:z.hash}),Y.jsx(wr,{style:{fontSize:12},children:z.message})]}),z.files.length>0&&Y.jsxs("div",{style:{paddingLeft:16},children:[z.files.slice(0,5).map((A,j)=>Y.jsxs("div",{style:{fontSize:11,color:"#666"},children:[Y.jsx(cp,{style:{marginRight:4}}),A]},j)),z.files.length>5&&Y.jsxs(wr,{type:"secondary",style:{fontSize:11},children:["... 他 ",z.files.length-5," ファイル"]})]})]},V))})}],defaultActiveKey:["unpushed"]}):Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未プッシュのコミットはありません"})}),Y.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Pushを選択すると、上記コミットと新しい変更がリモートにプッシュされます"})]})]})]})]})},{Text:lb}=Ir,jJ=({selectedDate:e,onDateSelect:t})=>{const{calendar:n,unsavedReports:r,report:i}=fl(),[s,c]=l.useState(e),d=gn(),f=l.useMemo(()=>{const x={};for(const R of n.days)R.hasReport&&(x[R.date]={actual:R.resultHours||0,plan:R.planHours||0});return x},[n.days]),p=l.useMemo(()=>{const x=new Map;for(const T of n.availableYearMonths){const N=`${T.year}-${T.month-1}`;x.has(N)||x.set(N,{year:T.year,month:T.month-1})}const R=`${d.year()}-${d.month()}`;x.has(R)||x.set(R,{year:d.year(),month:d.month()});for(let T=-2;T<=2;T++){const N=d.add(T,"month"),O=`${N.year()}-${N.month()}`;x.has(O)||x.set(O,{year:N.year(),month:N.month()})}return Array.from(x.values()).sort((T,N)=>T.year-N.year||T.month-N.month).map(T=>({...T,label:`${T.year}年${T.month+1}月`}))},[n.availableYearMonths,d]),g=p.map(x=>({value:`${x.year}-${x.month}`,label:x.label})),h=x=>{const[R,T]=x.split("-").map(Number),N=s.year(R).month(T);c(N),n.loadCalendar(R,T+1)},y=()=>{const x=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(x>0){const R=p[x-1],T=s.year(R.year).month(R.month);c(T),n.loadCalendar(R.year,R.month+1)}},C=()=>{const x=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(x<p.length-1){const R=p[x+1],T=s.year(R.year).month(R.month);c(T),n.loadCalendar(R.year,R.month+1)}};l.useEffect(()=>{(e.month()!==s.month()||e.year()!==s.year())&&c(e)},[e]);const b=p.findIndex(x=>x.year===s.year()&&x.month===s.month()),$=b>0,S=b<p.length-1,w=x=>x>=9?"#ff4d4f":x>=8?"#52c41a":x>=6?"#1890ff":"#d9d9d9",M=x=>{const R=x.format("YYYY-MM-DD"),T=x.isBefore(d,"day"),N=x.isAfter(d,"day"),O=x.isSame(d,"day"),P=x.isSame(e,"day"),D=x.month()===s.month(),W=f[R],k=W?Math.min(W.actual/8*100,100):0,U=r.hasUnsavedChangesForDate(R)||P&&i.isDirty;return Y.jsx(ur,{title:W?`稼働: ${W.actual}h${U?" (未保存)":""}`:U?"未保存":void 0,children:Y.jsxs("div",{onClick:()=>t(R),style:{position:"relative",width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:N?.4:D?1:.3},children:[(T||O)&&W&&Y.jsx(bZ,{type:"circle",percent:k,size:30,strokeColor:w(W.actual),railColor:"#f0f0f0",strokeWidth:10,format:()=>null,style:{position:"absolute",top:1,left:1}}),U&&Y.jsx(As,{style:{position:"absolute",top:-2,right:-2,fontSize:10,color:"#ff4d4f",zIndex:2}}),Y.jsx("span",{style:{position:"relative",zIndex:1,fontSize:12,fontWeight:O||P?600:400,color:O||P?"#1890ff":"#000",background:P?"#e6f7ff":O?"#fff":"transparent",borderRadius:"50%",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},children:x.date()})]})})};return Y.jsxs(wa,{title:Y.jsx("div",{style:{display:"flex",justifyContent:"center"},children:Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",onClick:y,disabled:!$,children:"◀"}),Y.jsx(Lr,{value:`${s.year()}-${s.month()}`,options:g,size:"small",style:{width:120},onChange:h,popupMatchSelectWidth:!1}),Y.jsx(_t,{size:"small",onClick:C,disabled:!S,children:"▶"})]})}),styles:{body:{padding:8}},children:[Y.jsx("style",{children:`
|
|
351
|
+
`]:{...VR(e),marginInlineStart:e.marginXXS},...oJ(e),...aJ(e),...iJ(),"&-rtl":{direction:"rtl"}}}},sJ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),gN=Pt("Typography",lJ,sJ),cJ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:s,maxLength:c,autoSize:d=!0,value:f,onSave:p,onCancel:g,onEnd:h,component:y,enterIcon:C=l.createElement(zG,null)}=e,b=l.useRef(null),$=l.useRef(!1),S=l.useRef(null),[w,M]=l.useState(f);l.useEffect(()=>{M(f)},[f]),l.useEffect(()=>{if(b.current?.resizableTextArea){const{textArea:G}=b.current.resizableTextArea;G.focus();const{length:L}=G.value;G.setSelectionRange(L,L)}},[]);const x=({target:G})=>{M(G.value.replace(/[\n\r]/g,""))},R=()=>{$.current=!0},T=()=>{$.current=!1},N=({keyCode:G})=>{$.current||(S.current=G)},O=()=>{p(w.trim())},P=({keyCode:G,ctrlKey:L,altKey:H,metaKey:_,shiftKey:B})=>{S.current!==G||$.current||L||H||_||B||(G===nt.ENTER?(O(),h?.()):G===nt.ESC&&g())},D=()=>{O()},[W,k]=gN(t),U=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${y}`]:!!y},r,W,k);return l.createElement("div",{className:U,style:i},l.createElement(rN,{ref:b,maxLength:c,value:w,onChange:x,onKeyDown:N,onKeyUp:P,onCompositionStart:R,onCompositionEnd:T,onBlur:D,"aria-label":n,rows:1,autoSize:d}),C!==null?nr(C,{className:`${t}-edit-content-confirm`}):null)},uJ=(e,t)=>{let n=!1;const r=i=>{i.stopPropagation(),i.preventDefault(),i.clipboardData?.clearData(),i.clipboardData?.setData("text/plain",e),t&&i.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},dJ=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function fJ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await dJ(e,n)||uJ(e,n))}const mJ=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[i,s]=l.useState(!1),c=l.useRef(null),d=()=>{c.current&&clearTimeout(c.current)},f={};e.format&&(f.format=e.format),l.useEffect(()=>d,[]);const p=ut(async g=>{g?.preventDefault(),g?.stopPropagation(),s(!0);try{const h=typeof e.text=="function"?await e.text():e.text;await fJ(h||AQ(t,!0).join("")||"",f),s(!1),r(!0),d(),c.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(g)}catch(h){throw s(!1),h}});return{copied:n,copyLoading:i,onClick:p}};function tb(e,t){return l.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const pJ=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},gJ=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?{title:t??n,...e}:{title:e},[e,t,n]),hN=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:s,children:c,direction:d,style:f,...p}=e,{getPrefixCls:g,direction:h,className:y,style:C}=It("typography"),b=d??h,$=g("typography",n),[S,w]=gN($),M=Q($,y,{[`${$}-rtl`]:b==="rtl"},i,s,S,w),x={...C,...f};return l.createElement(r,{className:M,style:x,ref:t,...p},c)});function P4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function nb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function hJ(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const R1=e=>["string","number"].includes(typeof e),yJ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:s,tabIndex:c,onCopy:d,loading:f})=>{const p=P4(i),g=P4(s),{copied:h,copy:y}=n??{},C=t?h:y,b=nb(p[t?1:0],C),$=typeof b=="string"?b:C;return l.createElement(ur,{title:b},l.createElement("button",{type:"button",className:Q(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:d,"aria-label":$,tabIndex:c},t?nb(g[1],l.createElement(sl,null),!0):nb(g[0],f?l.createElement(Ep,null):l.createElement(D3,null),!0)))},cm=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),bJ=e=>e.reduce((t,n)=>t+(R1(n)?String(n).length:1),0);function z4(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const s=e[i],d=R1(s)?String(s).length:1,f=n+d;if(f>t){const p=t-n;return r.push(String(s).slice(0,p)),r}r.push(s),n=f}return e}const rb=0,ob=1,ab=2,ib=3,A4=4,um={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function vJ(e){const{enableMeasure:t,width:n,text:r,children:i,rows:s,expanded:c,miscDeps:d,onEllipsis:f}=e,p=l.useMemo(()=>dr(r),[r]),g=l.useMemo(()=>bJ(p),[r]),h=l.useMemo(()=>i(p,!1),[r]),[y,C]=l.useState(null),b=l.useRef(null),$=l.useRef(null),S=l.useRef(null),w=l.useRef(null),M=l.useRef(null),[x,R]=l.useState(!1),[T,N]=l.useState(rb),[O,P]=l.useState(0),[D,W]=l.useState(null);Nt(()=>{N(t&&n&&g?ob:rb)},[n,r,s,t,p]),Nt(()=>{if(T===ob){N(ab);const L=$.current&&getComputedStyle($.current).whiteSpace;W(L)}else if(T===ab){const L=!!S.current?.isExceed();N(L?ib:A4),C(L?[0,g]:null),R(L);const H=S.current?.getHeight()||0,_=s===1?0:w.current?.getHeight()||0,B=M.current?.getHeight()||0,I=Math.max(H,_+B);P(I+1),f(L)}},[T]);const k=y?Math.ceil((y[0]+y[1])/2):0;Nt(()=>{const[L,H]=y||[0,0];if(L!==H){const B=(b.current?.getHeight()||0)>O;let I=k;H-L===1&&(I=B?L:H),C(B?[L,I]:[I,H])}},[y,k]);const U=l.useMemo(()=>{if(!t)return i(p,!1);if(T!==ib||!y||y[0]!==y[1]){const L=i(p,!1);return[A4,rb].includes(T)?L:l.createElement("span",{style:{...um,WebkitLineClamp:s}},L)}return i(c?p:z4(p,y[0]),x)},[c,T,y,p].concat(xn(d))),G={width:n,margin:0,padding:0,whiteSpace:D==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,U,T===ab&&l.createElement(l.Fragment,null,l.createElement(cm,{style:{...G,...um,WebkitLineClamp:s},ref:S},h),l.createElement(cm,{style:{...G,...um,WebkitLineClamp:s-1},ref:w},h),l.createElement(cm,{style:{...G,...um,WebkitLineClamp:1},ref:M},i([],!0))),T===ib&&y&&y[0]!==y[1]&&l.createElement(cm,{style:{...G,top:400},ref:b},i(z4(p,k),!0)),T===ob&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:$}))}const SJ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:l.createElement(ur,{open:t?void 0:!1,...r},n);function CJ({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:s,italic:c},d){let f=d;function p(g,h){h&&(f=l.createElement(g,{},f))}return p("strong",i),p("u",n),p("del",r),p("code",t),p("mark",e),p("kbd",s),p("i",c),f}const $J="...",D4=["delete","mark","code","underline","strong","keyboard","italic"],Zp=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,type:s,disabled:c,children:d,ellipsis:f,editable:p,copyable:g,component:h,title:y,...C}=e,{getPrefixCls:b,direction:$}=l.useContext(dt),[S]=oo("Text"),w=l.useRef(null),M=l.useRef(null),x=b("typography",n),R=nn(C,D4),[T,N]=tb(p),[O,P]=Yt(!1,N.editing),{triggerType:D=["icon"]}=N,W=ve=>{ve&&N.onStart?.(),P(ve)},k=pJ(O);Nt(()=>{!O&&k&&M.current?.focus()},[O]);const U=ve=>{ve?.preventDefault(),W(!0)},G=ve=>{N.onChange?.(ve),W(!1)},L=()=>{N.onCancel?.(),W(!1)},[H,_]=tb(g),{copied:B,copyLoading:I,onClick:z}=mJ({copyConfig:_,children:d}),[V,A]=l.useState(!1),[j,q]=l.useState(!1),[X,K]=l.useState(!1),[Z,ee]=l.useState(!1),[ie,ne]=l.useState(!0),[oe,de]=tb(f,{expandable:!1,symbol:ve=>ve?S?.collapse:S?.expand}),[le,fe]=Yt(de.defaultExpanded||!1,de.expanded),ge=oe&&(!le||de.expandable==="collapsible"),{rows:re=1}=de,ue=l.useMemo(()=>ge&&(de.suffix!==void 0||de.onEllipsis||de.expandable||T||H),[ge,de,T,H]);Nt(()=>{oe&&!ue&&(A(WE("webkitLineClamp")),q(WE("textOverflow")))},[ue,oe]);const[he,pe]=l.useState(ge),Se=l.useMemo(()=>ue?!1:re===1?j:V,[ue,j,V]);Nt(()=>{pe(Se&&ge)},[Se,ge]);const Ie=ge&&(he?Z:X),Re=ge&&re===1&&he,we=ge&&re>1&&he,se=(ve,Pe)=>{fe(Pe.expanded),de.onExpand?.(ve,Pe)},[be,Ee]=l.useState(0),Ne=({offsetWidth:ve})=>{Ee(ve)},Ve=ve=>{K(ve),X!==ve&&de.onEllipsis?.(ve)};l.useEffect(()=>{const ve=w.current;if(oe&&he&&ve){const Pe=hJ(ve);Z!==Pe&&ee(Pe)}},[oe,he,d,we,ie,be]),l.useEffect(()=>{const ve=w.current;if(typeof IntersectionObserver>"u"||!ve||!he||!ge)return;const Pe=new IntersectionObserver(()=>{ne(!!ve.offsetParent)});return Pe.observe(ve),()=>{Pe.disconnect()}},[he,ge]);const Ge=gJ(de.tooltip,N.text,d),et=l.useMemo(()=>{if(!(!oe||he))return[N.text,d,y,Ge.title].find(R1)},[oe,he,y,Ge.title,Ie]);if(O)return l.createElement(cJ,{value:N.text??(typeof d=="string"?d:""),onSave:G,onCancel:L,onEnd:N.onEnd,prefixCls:x,className:r,style:i,direction:$,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const Te=()=>{const{expandable:ve,symbol:Pe}=de;return ve?l.createElement("button",{type:"button",key:"expand",className:`${x}-${le?"collapse":"expand"}`,onClick:Ze=>se(Ze,{expanded:!le}),"aria-label":le?S.collapse:S?.expand},typeof Pe=="function"?Pe(le):Pe):null},_e=()=>{if(!T)return;const{icon:ve,tooltip:Pe,tabIndex:Ze}=N,Ue=dr(Pe)[0]||S?.edit,Fe=typeof Ue=="string"?Ue:"";return D.includes("icon")?l.createElement(ur,{key:"edit",title:Pe===!1?"":Ue},l.createElement("button",{type:"button",ref:M,className:`${x}-edit`,onClick:U,"aria-label":Fe,tabIndex:Ze},ve||l.createElement(fi,{role:"button"}))):null},Le=()=>H?l.createElement(yJ,{key:"copy",..._,prefixCls:x,copied:B,locale:S,onCopy:z,loading:I,iconOnly:!Mr(d)}):null,Qe=ve=>[ve&&Te(),_e(),Le()],De=ve=>[ve&&!le&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},$J),de.suffix,Qe(ve)];return l.createElement(Vr,{onResize:Ne,disabled:!ge},ve=>l.createElement(SJ,{tooltipProps:Ge,enableEllipsis:ge,isEllipsis:Ie},l.createElement(hN,{className:Q({[`${x}-${s}`]:s,[`${x}-disabled`]:c,[`${x}-ellipsis`]:oe,[`${x}-ellipsis-single-line`]:Re,[`${x}-ellipsis-multiple-line`]:we},r),prefixCls:n,style:{...i,WebkitLineClamp:we?re:void 0},component:h,ref:or(ve,w,t),direction:$,onClick:D.includes("text")?U:void 0,"aria-label":et?.toString(),title:y,...R},l.createElement(vJ,{enableMeasure:ge&&!he,text:d,rows:re,width:be,onEllipsis:Ve,expanded:le,miscDeps:[B,le,I,T,H,S].concat(xn(D4.map(Pe=>e[Pe])))},(Pe,Ze)=>CJ(e,l.createElement(l.Fragment,null,Pe.length>0&&Ze&&!le&&et?l.createElement("span",{key:"show-content","aria-hidden":!0},Pe):Pe,De(Ze)))))))}),xJ=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:i,navigate:s,...c}=e,d={...c,rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r};return l.createElement(Zp,{...d,ref:t,ellipsis:!!n,component:"a"},i)}),wJ=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.createElement(Zp,{ref:t,...r,component:"div"},n)}),EJ=(e,t)=>{const{ellipsis:n,children:r,...i}=e,s=l.useMemo(()=>n&&typeof n=="object"?nn(n,["expandable","rows"]):n,[n]);return l.createElement(Zp,{ref:t,...i,ellipsis:s,component:"span"},r)},MJ=l.forwardRef(EJ),RJ=[1,2,3,4,5],TJ=l.forwardRef((e,t)=>{const{level:n=1,children:r,...i}=e,s=RJ.includes(n)?`h${n}`:"h1";return l.createElement(Zp,{ref:t,...i,component:s},r)}),Ir=hN;Ir.Text=MJ;Ir.Link=xJ;Ir.Title=TJ;Ir.Paragraph=wJ;var Pm={exports:{}},OJ=Pm.exports,j4;function NJ(){return j4||(j4=1,(function(e,t){(function(n,r){e.exports=r(p6())})(OJ,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var i=r(n),s={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c){return c+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(c){return c<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(s,null,!0),s}))})(Pm)),Pm.exports}NJ();const yN=l.createContext(null),fl=()=>{const e=l.useContext(yN);if(!e)throw new Error("useDashboard must be used within Dashboard");return e},IJ="/api";class bN extends Error{status;code;constructor(t,n,r){super(n),this.name="ApiError",this.status=t,this.code=r}}async function qo(e,t){const n=await fetch(`${IJ}${e}`,{...t,headers:{"Content-Type":"application/json",...t?.headers}});if(!n.ok){const r=await n.json().catch(()=>({message:"API Error"}));throw new bN(n.status,r.message||`HTTP ${n.status}`,r.code)}return n.json()}const ls={async get(e){try{return await qo(`/reports/${e}`)}catch(t){if(t instanceof bN&&t.status===404)return null;throw t}},async save(e,t){return qo(`/reports/${e}`,{method:"PUT",body:JSON.stringify(t)})},async delete(e){try{return await qo(`/reports/${e}`,{method:"DELETE"}),!0}catch{return!1}}},_4={async get(e,t){return qo(`/calendar?year=${e}&month=${t}`)},async getAvailableMonths(){return(await qo("/calendar/months")).yearMonths}},gp={async get(){return qo("/config")},async update(e){return qo("/config",{method:"PUT",body:JSON.stringify(e)})},async getRoutinesMarkdown(){return qo("/config/routines/markdown")},async saveRoutinesMarkdown(e){return qo("/config/routines/markdown",{method:"PUT",body:JSON.stringify({content:e})})}},PJ={async getStatus(){return qo("/git/status")}},{TextArea:zJ}=Nr,{Header:AJ}=Ra,{Text:wr}=Ir,H4="dashboard_save_step",DJ=({selectedDate:e,onDateChange:t,onImportClick:n,selectedProjects:r=[],onRemoveProject:i,onClearProjectFilter:s})=>{const{report:c,saveMultipleReports:d,config:f,unsavedReports:p}=fl(),g=f.config?.slack?.enabled??!1,[h,y]=l.useState(!1),[C,b]=l.useState(()=>{const z=localStorage.getItem(H4);return z?parseInt(z,10):0}),[$,S]=l.useState(!1),[w,M]=l.useState(new Set),[x,R]=l.useState(null),[T,N]=l.useState(!1);l.useEffect(()=>{localStorage.setItem(H4,String(C))},[C]),l.useEffect(()=>{!g&&C>2&&b(2)},[g,C]);const O=l.useMemo(()=>{const z=new Set(p.unsavedDates),V=e.format("YYYY-MM-DD");return c.isDirty&&z.add(V),Array.from(z).sort((A,j)=>j.localeCompare(A))},[p.unsavedDates,e,c.isDirty]);l.useEffect(()=>{h&&(M(new Set(O)),N(!0),PJ.getStatus().then(z=>R(z)).catch(z=>console.error("Git状態の取得に失敗:",z)).finally(()=>N(!1)))},[h,O]);const P=l.useMemo(()=>!!(w.size>0||C>=1&&x?.uncommitted&&x.uncommitted.count>0||C>=2&&x?.unpushed&&x.unpushed.count>0),[w.size,C,x]),D=l.useCallback(()=>{t(gn())},[t]),W=l.useCallback(()=>{t(e.subtract(1,"day"))},[e,t]),k=l.useCallback(()=>{t(e.add(1,"day"))},[e,t]),U=l.useCallback(()=>{y(!0)},[]),G=l.useCallback(async()=>{if(!P){$n.warning("実行対象がありません");return}S(!0);try{const z=C>=1,V=C>=2,A=C>=3,j={git:z?{commit:!0,push:V}:void 0,slack:A?{post:!0}:void 0},q=Array.from(w);q.length>0?await d(q,j):(z||V)&&await d([e.format("YYYY-MM-DD")],j),y(!1)}catch{$n.error("操作に失敗しました")}finally{S(!1)}},[C,w,d,P,e]),L=l.useCallback((z,V)=>{M(A=>{const j=new Set(A);return V?j.add(z):j.delete(z),j})},[]),H=l.useCallback(z=>{M(z?new Set(O):new Set)},[O]),_=l.useCallback(z=>{const V=e.format("YYYY-MM-DD");return z===V?c.markdownContent||"(日報データがありません)":p.getUnsavedReport(z)?.currentMarkdown||"(データがありません)"},[e,c.markdownContent,p]),B=l.useMemo(()=>{const z=O.length;return Y.jsxs("div",{style:{fontSize:12,whiteSpace:"nowrap"},children:[Y.jsx("div",{style:{fontWeight:600,marginBottom:2},children:"Git"}),Y.jsxs("div",{children:["未保存: ",z,"件"]})]})},[O.length]),I=O.length>0;return Y.jsxs(AJ,{style:{background:"#fff",padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #f0f0f0",position:"sticky",top:0,zIndex:100,height:64},children:[Y.jsxs(dn,{size:"large",children:[Y.jsxs("div",{className:"dashboard-title",style:{display:"flex",alignItems:"center",gap:12},children:[Y.jsx(z3,{style:{fontSize:24,color:"#1890ff"}}),Y.jsx(wr,{className:"dashboard-title-text",strong:!0,style:{fontSize:18},children:"日報ダッシュボード"})]}),Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",onClick:W,children:"◀"}),Y.jsx(dl,{value:e,onChange:t,allowClear:!1,format:"YYYY年MM月DD日",style:{width:150}}),Y.jsx(_t,{size:"small",onClick:k,children:"▶"}),Y.jsx(_t,{type:"primary",size:"small",onClick:D,children:"今日"}),r.length>0&&Y.jsxs(dn,{size:4,style:{marginLeft:8},children:[r.map(z=>Y.jsx(sr,{color:z.color,closable:!0,onClose:()=>i?.(z.code),closeIcon:Y.jsx(qr,{style:{fontSize:10}}),children:z.code},z.code)),r.length>1&&Y.jsx(sr,{style:{cursor:"pointer"},onClick:s,children:"すべて解除"})]})]})]}),Y.jsxs(dn,{size:"middle",align:"center",children:[Y.jsx(_t,{icon:Y.jsx(nX,{}),onClick:n,children:"取り込み"}),Y.jsx(_t,{type:"primary",icon:Y.jsx(yG,{}),onClick:U,loading:c.saving,children:"保存"}),Y.jsx(ur,{title:B,children:Y.jsxs("div",{style:{position:"relative",width:24,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[Y.jsx(KG,{style:{fontSize:18,color:I?"#ff4d4f":"#52c41a"}}),I&&Y.jsx("span",{style:{position:"absolute",top:2,right:-6,minWidth:14,height:14,borderRadius:7,backgroundColor:"#ff4d4f",color:"#fff",fontSize:10,fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center"},children:"!"})]})})]}),Y.jsxs(ao,{title:"保存の確認",open:h,onCancel:()=>y(!1),onOk:G,okText:"実行",cancelText:"キャンセル",okButtonProps:{loading:$,disabled:!P},width:900,children:[Y.jsxs("div",{style:{marginBottom:24},children:[Y.jsx(wr,{type:"secondary",style:{fontSize:12,marginBottom:12,display:"block"},children:"保存範囲を選択してください(クリックで選択、右を選ぶと左も自動で実行されます)"}),Y.jsx(kZ,{current:C,onChange:z=>b(z),items:[{title:"ローカル保存",description:"ファイルに保存",icon:Y.jsx(qG,{})},{title:"Commit",description:"Gitにコミット",icon:Y.jsx(y1,{})},{title:"Push",description:"リモートに反映",icon:Y.jsx(c4,{})},...g?[{title:"Slack",description:"日報を投稿",icon:Y.jsx(TX,{})}]:[]],style:{marginTop:16}})]}),Y.jsxs("div",{style:{marginTop:16},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14},children:["保存対象 (",w.size,"/",O.length,"件)"]}),Y.jsx(Os,{checked:w.size===O.length&&O.length>0,indeterminate:w.size>0&&w.size<O.length,onChange:z=>H(z.target.checked),children:"全選択"})]}),Y.jsxs("div",{style:{maxHeight:300,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:6},children:[O.map((z,V)=>Y.jsxs("div",{style:{padding:12,borderBottom:V<O.length-1?"1px solid #f0f0f0":"none",background:w.has(z)?"#f6ffed":"#fff"},children:[Y.jsxs(Os,{checked:w.has(z),onChange:A=>L(z,A.target.checked),style:{marginBottom:8},children:[Y.jsx(wr,{strong:!0,children:z}),z===e.format("YYYY-MM-DD")&&Y.jsx(sr,{color:"blue",style:{marginLeft:8},children:"現在表示中"})]}),w.has(z)&&Y.jsx(zJ,{value:_(z),readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace",fontSize:11,background:"#fafafa",marginTop:4}})]},z)),O.length===0&&Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未保存の変更はありません"})})]})]}),C>=1&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ri,{style:{margin:"16px 0 12px"}}),Y.jsxs("div",{children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[Y.jsx(jG,{style:{color:"#faad14"}}),"保存済み・未コミットのファイル"]}),T?Y.jsx("div",{style:{padding:16,textAlign:"center"},children:Y.jsx(mp,{size:"small"})}):x?.uncommitted&&x.uncommitted.count>0?Y.jsx(NE,{size:"small",items:[{key:"uncommitted",label:Y.jsxs(wr,{type:"secondary",children:[x.uncommitted.count,"件の未コミットファイル"]}),children:Y.jsx("div",{style:{maxHeight:150,overflow:"auto"},children:x.uncommitted.files.map((z,V)=>Y.jsxs("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:8},children:[Y.jsx(cp,{style:{color:"#1890ff"}}),Y.jsx(wr,{code:!0,style:{fontSize:11},children:z.path}),Y.jsx(sr,{color:z.status==="D"?"red":z.status==="A"||z.status==="?"?"green":"blue",style:{fontSize:10},children:z.status==="D"?"削除":z.status==="A"?"追加":z.status==="?"?"新規":"変更"})]},V))})}],defaultActiveKey:["uncommitted"]}):Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未コミットのファイルはありません"})}),Y.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Commitを選択すると、上記ファイルと未保存の変更が一緒にコミットされます"})]})]}),C>=2&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ri,{style:{margin:"16px 0 12px"}}),Y.jsxs("div",{children:[Y.jsxs(wr,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[Y.jsx(c4,{style:{color:"#1890ff"}}),"未プッシュのコミット"]}),T?Y.jsx("div",{style:{padding:16,textAlign:"center"},children:Y.jsx(mp,{size:"small"})}):x?.unpushed&&x.unpushed.count>0?Y.jsx(NE,{size:"small",items:[{key:"unpushed",label:Y.jsxs(wr,{type:"secondary",children:[x.unpushed.count,"件の未プッシュコミット"]}),children:Y.jsx("div",{style:{maxHeight:200,overflow:"auto"},children:x.unpushed.commits.map((z,V)=>Y.jsxs("div",{style:{padding:"8px 0",borderBottom:V<x.unpushed.commits.length-1?"1px solid #f0f0f0":"none"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[Y.jsx(sr,{color:"purple",style:{fontSize:10,fontFamily:"monospace"},children:z.hash}),Y.jsx(wr,{style:{fontSize:12},children:z.message})]}),z.files.length>0&&Y.jsxs("div",{style:{paddingLeft:16},children:[z.files.slice(0,5).map((A,j)=>Y.jsxs("div",{style:{fontSize:11,color:"#666"},children:[Y.jsx(cp,{style:{marginRight:4}}),A]},j)),z.files.length>5&&Y.jsxs(wr,{type:"secondary",style:{fontSize:11},children:["... 他 ",z.files.length-5," ファイル"]})]})]},V))})}],defaultActiveKey:["unpushed"]}):Y.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:Y.jsx(wr,{type:"secondary",style:{fontSize:12},children:"未プッシュのコミットはありません"})}),Y.jsx(wr,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Pushを選択すると、上記コミットと新しい変更がリモートにプッシュされます"})]})]})]})]})},{Text:lb}=Ir,jJ=({selectedDate:e,onDateSelect:t})=>{const{calendar:n,unsavedReports:r,report:i}=fl(),[s,c]=l.useState(e),d=gn(),f=l.useMemo(()=>{const x={};for(const R of n.days)R.hasReport&&(x[R.date]={actual:R.resultHours||0,plan:R.planHours||0});return x},[n.days]),p=l.useMemo(()=>{const x=new Map;for(const T of n.availableYearMonths){const N=`${T.year}-${T.month-1}`;x.has(N)||x.set(N,{year:T.year,month:T.month-1})}const R=`${d.year()}-${d.month()}`;x.has(R)||x.set(R,{year:d.year(),month:d.month()});for(let T=-2;T<=2;T++){const N=d.add(T,"month"),O=`${N.year()}-${N.month()}`;x.has(O)||x.set(O,{year:N.year(),month:N.month()})}return Array.from(x.values()).sort((T,N)=>T.year-N.year||T.month-N.month).map(T=>({...T,label:`${T.year}年${T.month+1}月`}))},[n.availableYearMonths,d]),g=p.map(x=>({value:`${x.year}-${x.month}`,label:x.label})),h=x=>{const[R,T]=x.split("-").map(Number),N=s.year(R).month(T);c(N),n.loadCalendar(R,T+1)},y=()=>{const x=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(x>0){const R=p[x-1],T=s.year(R.year).month(R.month);c(T),n.loadCalendar(R.year,R.month+1)}},C=()=>{const x=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(x<p.length-1){const R=p[x+1],T=s.year(R.year).month(R.month);c(T),n.loadCalendar(R.year,R.month+1)}};l.useEffect(()=>{(e.month()!==s.month()||e.year()!==s.year())&&c(e)},[e]);const b=p.findIndex(x=>x.year===s.year()&&x.month===s.month()),$=b>0,S=b<p.length-1,w=x=>x>=9?"#ff4d4f":x>=8?"#52c41a":x>=6?"#1890ff":"#d9d9d9",M=x=>{const R=x.format("YYYY-MM-DD"),T=x.isBefore(d,"day"),N=x.isAfter(d,"day"),O=x.isSame(d,"day"),P=x.isSame(e,"day"),D=x.month()===s.month(),W=f[R],k=W?Math.min(W.actual/8*100,100):0,U=r.hasUnsavedChangesForDate(R)||P&&i.isDirty;return Y.jsx(ur,{title:W?`稼働: ${W.actual}h${U?" (未保存)":""}`:U?"未保存":void 0,children:Y.jsxs("div",{onClick:()=>t(R),style:{position:"relative",width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:N?.4:D?1:.3},children:[(T||O)&&W&&Y.jsx(bZ,{type:"circle",percent:k,size:30,strokeColor:w(W.actual),railColor:"#f0f0f0",strokeWidth:10,format:()=>null,style:{position:"absolute",top:1,left:1}}),U&&Y.jsx(As,{style:{position:"absolute",top:-2,right:-2,fontSize:10,color:"#ff4d4f",zIndex:2}}),Y.jsx("span",{style:{position:"relative",zIndex:1,fontSize:12,fontWeight:O||P?600:400,color:O||P?"#1890ff":"#000",background:P?"#e6f7ff":O?"#fff":"transparent",borderRadius:"50%",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},children:x.date()})]})})};return Y.jsxs(wa,{title:Y.jsx("div",{style:{display:"flex",justifyContent:"center"},children:Y.jsxs(dn,{size:"small",children:[Y.jsx(_t,{size:"small",onClick:y,disabled:!$,children:"◀"}),Y.jsx(Lr,{value:`${s.year()}-${s.month()}`,options:g,size:"small",style:{width:120},onChange:h,popupMatchSelectWidth:!1}),Y.jsx(_t,{size:"small",onClick:C,disabled:!S,children:"▶"})]})}),styles:{body:{padding:8}},children:[Y.jsx("style",{children:`
|
|
352
352
|
.compact-calendar .ant-picker-content th,
|
|
353
353
|
.compact-calendar .ant-picker-content td {
|
|
354
354
|
padding: 2px 0 !important;
|
|
@@ -361,7 +361,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
361
361
|
height: 32px !important;
|
|
362
362
|
line-height: 32px !important;
|
|
363
363
|
}
|
|
364
|
-
`}),Y.jsx(w3,{fullscreen:!1,value:s,className:"compact-calendar",onSelect:x=>{c(x),t(x.format("YYYY-MM-DD"))},fullCellRender:M,style:{border:"none"},headerRender:()=>null}),n.summary&&Y.jsx("div",{style:{padding:"6px 8px",marginTop:4,background:"#fafafa",borderRadius:4,fontSize:11,color:"#666"},children:Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Y.jsxs("span",{children:["稼働日数: ",n.summary.workDays,"日"]}),Y.jsxs("span",{children:["合計: ",n.summary.totalResultHours.toFixed(1),"h"]})]})}),Y.jsxs("div",{style:{padding:"4px 8px",marginTop:4,background:"#f5f5f5",borderRadius:4,display:"flex",justifyContent:"center",gap:12},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#52c41a"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"8h+"})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#1890ff"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"6-8h"})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#ff4d4f"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"9h+"})]})]})]})};function nd(e){const[t,n]=e.split(":").map(Number);return t*60+n}function Bi(e){const t=Math.floor(e/60),n=e%60;return n>0?`${t}h${n}m`:`${t}h`}const{Text:sb}=Ir,_J=({item:e,type:t,isHovered:n,isDragging:r,isDraggingToResultArea:i,dragOffset:s,getProjectColor:c,projects:d,onHover:f,onDragStart:p,onMenuAction:g})=>{const h=t==="result",y=e.topPx,C=e.heightPx,b=r&&!i?y+s:y,S={items:[{key:"project",label:"プロジェクト変更",children:d.filter(w=>w.active).map(w=>({key:`project:${e.id}:${t}:${w.code}`,label:Y.jsxs(dn,{children:[Y.jsx(di,{color:w.color}),w.name]})}))},...t==="plan"?[{key:`toResult:${e.id}`,label:"実績に反映",icon:Y.jsx(h1,{})}]:[],{type:"divider"},{key:`delete:${e.id}:${t}`,label:"削除",icon:Y.jsx(sp,{}),danger:!0}],onClick:({key:w})=>g(w),onSelect:({key:w})=>g(w),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return Y.jsxs("div",{onMouseEnter:()=>!r&&f(`${t}-${e.id}`),onMouseLeave:()=>!r&&f(null),onMouseDown:w=>p(w,e.id,t,e.startMinutes),style:{position:"absolute",top:Math.max(0,b),height:Math.max(C,20),left:4,right:4,background:h?`${c(e.project)}90`:`${c(e.project)}40`,borderLeft:`3px solid ${c(e.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",cursor:r?"grabbing":"grab",transition:r?"none":"all 0.2s",fontSize:11,opacity:i?.4:r?.8:1,zIndex:r?10:1,boxShadow:r&&!i?"0 4px 12px rgba(0,0,0,0.15)":"none"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx(sb,{style:{fontSize:10,color:"#666",flexShrink:0},children:e.time}),Y.jsx(sb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1},children:e.task}),Y.jsx("div",{style:{visibility:n&&!r?"visible":"hidden",flexShrink:0},children:Y.jsx(v1,{menu:S,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:Y.jsx(j3,{style:{fontSize:14,color:"#666",cursor:"pointer",padding:"0 2px"},onMouseDown:w=>w.stopPropagation(),onClick:w=>w.stopPropagation()})})})]}),e.description&&Y.jsx(sb,{style:{fontSize:10,color:"#888",display:"block",marginTop:2,whiteSpace:"pre-wrap",lineHeight:1.3},children:e.description})]})},{Text:cb}=Ir;function B4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}const HJ=({dragState:e,dragOffset:t,isDraggingToResult:n,planItems:r,getProjectColor:i,startHour:s=8,hourHeight:c=60})=>{if(!n||!e||e.type!=="plan")return null;const d=t/c*60,f=Math.round((e.startMinutes+d)/15)*15,p=B4(f),g=(f-s*60)/60*c;if(e.isBreak){const C=e.breakDuration||60,b=C/60*c,$=f+C,S=B4($);return Y.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(b,20),left:4,right:4,background:"repeating-linear-gradient(45deg, rgba(200,200,200,0.3), rgba(200,200,200,0.3) 4px, rgba(180,180,180,0.3) 4px, rgba(180,180,180,0.3) 8px)",borderRadius:4,border:"2px dashed #52c41a",display:"flex",alignItems:"center",justifyContent:"center",opacity:.9,zIndex:5,pointerEvents:"none"},children:Y.jsxs(cb,{style:{fontSize:10,color:"#52c41a",fontWeight:500},children:["休憩 ",p,"〜",S]})})}const h=r.find(C=>C.id===e.itemId);if(!h)return null;const y=c;return Y.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(y,20),left:4,right:4,background:`${i(h.project)}30`,borderLeft:`3px dashed ${i(h.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",fontSize:11,opacity:.8,zIndex:5,pointerEvents:"none"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx(cb,{style:{fontSize:10,color:"#666",flexShrink:0},children:p}),Y.jsx(cb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1,color:"#666"},children:h.task})]})})};function L4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function dm(e,t,n,r,i,s=15){const c=t/n*60;let d=Math.round(e+c);d=Math.round(d/s)*s;const f=0,p=(i+r)*60;d=Math.max(f,Math.min(p-60,d));const g=Math.floor(d/60),h=d%60;return`${String(g).padStart(2,"0")}:${String(h).padStart(2,"0")}`}function BJ({resultAreaRef:e,currentReport:t,updatePlan:n,updateResult:r,startHour:i=8,totalHours:s=12,hourHeight:c=60,snapMinutes:d=15}){const[f,p]=l.useState(null),[g,h]=l.useState(0),[y,C]=l.useState(!1),b=l.useCallback((w,M,x,R,T,N)=>{w.preventDefault(),w.stopPropagation(),p({itemId:M,type:x,startY:w.clientY,startMinutes:R,isBreak:T,breakDuration:N}),h(0)},[]),$=l.useCallback(w=>{if(!f)return;const M=w.clientY-f.startY,x=c/4,R=Math.round(M/x)*x;if(h(R),f.type==="plan"&&e.current){const T=e.current.getBoundingClientRect(),N=w.clientX>=T.left&&w.clientX<=T.right;C(N)}},[f,e,c]),S=l.useCallback(()=>{if(!(!f||!t)){if(f.type==="plan"&&y)if(f.isBreak){const w=g!==0?dm(f.startMinutes,g,c,s,i,d):L4(f.startMinutes),M={id:`r${Date.now()}`,time:w,project:"---",task:"休憩"},x=f.startMinutes+(f.breakDuration||60),R=g!==0?dm(x,g,c,s,i,d):L4(x),T=[...t.result,M];T.sort((N,O)=>N.time.localeCompare(O.time)),r(T),$n.success(`休憩(${w}〜${R})を実績にコピーしました`)}else{const w=t.plan.find(M=>M.id===f.itemId);if(w){const M=g!==0?dm(f.startMinutes,g,c,s,i,d):w.time,x={id:`r${Date.now()}`,time:M,project:w.project,task:w.task},R=[...t.result,x];R.sort((T,N)=>T.time.localeCompare(N.time)),r(R),$n.success(`「${w.task}」を実績にコピーしました`)}}else if(g!==0){const w=dm(f.startMinutes,g,c,s,i,d),x=(f.type==="plan"?[...t.plan]:[...t.result]).map(R=>R.id===f.itemId?{...R,time:w}:R);x.sort((R,T)=>R.time.localeCompare(T.time)),f.type==="plan"?n(x):r(x),$n.success(`予定を ${w} に移動しました`)}p(null),h(0),C(!1)}},[f,g,y,t,n,r,i,s,c,d]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",S),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect=""}},[f,$,S]),{dragState:f,dragOffset:g,isDraggingToResult:y,handleDragStart:b}}function LJ(e){const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function gS(e){const t=[];for(const n of e)if(!n.task)t.push(`* ${n.time}`);else if(t.push(`* ${n.time} [${n.project}] ${n.task}`),n.description){const r=n.description.split(`
|
|
364
|
+
`}),Y.jsx(w3,{fullscreen:!1,value:s,className:"compact-calendar",onSelect:x=>{c(x),t(x.format("YYYY-MM-DD"))},fullCellRender:M,style:{border:"none"},headerRender:()=>null}),n.summary&&Y.jsx("div",{style:{padding:"6px 8px",marginTop:4,background:"#fafafa",borderRadius:4,fontSize:11,color:"#666"},children:Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[Y.jsxs("span",{children:["稼働日数: ",n.summary.workDays,"日"]}),Y.jsxs("span",{children:["合計: ",n.summary.totalResultHours.toFixed(1),"h"]})]})}),Y.jsxs("div",{style:{padding:"4px 8px",marginTop:4,background:"#f5f5f5",borderRadius:4,display:"flex",justifyContent:"center",gap:12},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#52c41a"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"8h+"})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#1890ff"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"6-8h"})]}),Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#ff4d4f"}}),Y.jsx(lb,{type:"secondary",style:{fontSize:9},children:"9h+"})]})]})]})};function nd(e){const[t,n]=e.split(":").map(Number);return t*60+n}function Bi(e){const t=Math.floor(e/60),n=e%60;return n>0?`${t}h${n}m`:`${t}h`}const{Text:sb}=Ir,_J=({item:e,type:t,isHovered:n,isDragging:r,isDraggingToResultArea:i,dragOffset:s,getProjectColor:c,projects:d,onHover:f,onDragStart:p,onMenuAction:g})=>{const h=t==="result",y=e.topPx,C=e.heightPx,b=r&&!i?y+s:y,S={items:[{key:"project",label:"プロジェクト変更",children:d.filter(w=>w.active).map(w=>({key:`project:${e.id}:${t}:${w.code}`,label:Y.jsxs(dn,{children:[Y.jsx(di,{color:w.color}),w.name]})}))},...t==="plan"?[{key:`toResult:${e.id}`,label:"実績に反映",icon:Y.jsx(h1,{})}]:[],{type:"divider"},{key:`delete:${e.id}:${t}`,label:"削除",icon:Y.jsx(sp,{}),danger:!0}],onClick:({key:w})=>g(w),onSelect:({key:w})=>g(w),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return Y.jsxs("div",{onMouseEnter:()=>!r&&f(`${t}-${e.id}`),onMouseLeave:()=>!r&&f(null),onMouseDown:w=>p(w,e.id,t,e.startMinutes),style:{position:"absolute",top:Math.max(0,b),height:Math.max(C,20),left:4,right:4,background:h?`${c(e.project)}90`:`${c(e.project)}40`,borderLeft:`3px solid ${c(e.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",cursor:r?"grabbing":"grab",transition:r?"none":"all 0.2s",fontSize:11,opacity:i?.4:r?.8:1,zIndex:r?10:1,boxShadow:r&&!i?"0 4px 12px rgba(0,0,0,0.15)":"none"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx(sb,{style:{fontSize:10,color:"#666",flexShrink:0},children:e.time}),Y.jsx(sb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1},children:e.task}),Y.jsx("div",{style:{visibility:n&&!r?"visible":"hidden",flexShrink:0},children:Y.jsx(v1,{menu:S,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:Y.jsx(j3,{style:{fontSize:14,color:"#666",cursor:"pointer",padding:"0 2px"},onMouseDown:w=>w.stopPropagation(),onClick:w=>w.stopPropagation()})})})]}),e.description&&Y.jsx(sb,{style:{fontSize:10,color:"#888",display:"block",marginTop:2,whiteSpace:"pre-wrap",lineHeight:1.3},children:e.description})]})},{Text:cb}=Ir;function B4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}const HJ=({dragState:e,dragOffset:t,isDraggingToResult:n,planItems:r,getProjectColor:i,startHour:s=8,hourHeight:c=60})=>{if(!n||!e||e.type!=="plan")return null;const d=t/c*60,f=Math.round((e.startMinutes+d)/15)*15,p=B4(f),g=(f-s*60)/60*c;if(e.isBreak){const C=e.breakDuration||60,b=C/60*c,$=f+C,S=B4($);return Y.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(b,20),left:4,right:4,background:"repeating-linear-gradient(45deg, rgba(200,200,200,0.3), rgba(200,200,200,0.3) 4px, rgba(180,180,180,0.3) 4px, rgba(180,180,180,0.3) 8px)",borderRadius:4,border:"2px dashed #52c41a",display:"flex",alignItems:"center",justifyContent:"center",opacity:.9,zIndex:5,pointerEvents:"none"},children:Y.jsxs(cb,{style:{fontSize:10,color:"#52c41a",fontWeight:500},children:["休憩 ",p,"〜",S]})})}const h=r.find(C=>C.id===e.itemId);if(!h)return null;const y=c;return Y.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(y,20),left:4,right:4,background:`${i(h.project)}30`,borderLeft:`3px dashed ${i(h.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",fontSize:11,opacity:.8,zIndex:5,pointerEvents:"none"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Y.jsx(cb,{style:{fontSize:10,color:"#666",flexShrink:0},children:p}),Y.jsx(cb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1,color:"#666"},children:h.task})]})})};function L4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function dm(e,t,n,r,i,s=15){const c=t/n*60;let d=Math.round(e+c);d=Math.round(d/s)*s;const f=0,p=(i+r)*60;d=Math.max(f,Math.min(p-60,d));const g=Math.floor(d/60),h=d%60;return`${String(g).padStart(2,"0")}:${String(h).padStart(2,"0")}`}function BJ({resultAreaRef:e,currentReport:t,updatePlan:n,updateResult:r,startHour:i=8,totalHours:s=12,hourHeight:c=60,snapMinutes:d=15}){const[f,p]=l.useState(null),[g,h]=l.useState(0),[y,C]=l.useState(!1),b=l.useCallback((w,M,x,R,T,N)=>{w.preventDefault(),w.stopPropagation(),p({itemId:M,type:x,startY:w.clientY,startMinutes:R,isBreak:T,breakDuration:N}),h(0)},[]),$=l.useCallback(w=>{if(!f)return;const M=w.clientY-f.startY,x=c/4,R=Math.round(M/x)*x;if(h(R),f.type==="plan"&&e.current){const T=e.current.getBoundingClientRect(),N=w.clientX>=T.left&&w.clientX<=T.right;C(N)}},[f,e,c]),S=l.useCallback(()=>{if(!(!f||!t)){if(f.type==="plan"&&y)if(f.isBreak){const w=g!==0?dm(f.startMinutes,g,c,s,i,d):L4(f.startMinutes),M={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:w,project:"---",task:"休憩"},x=f.startMinutes+(f.breakDuration||60),R=g!==0?dm(x,g,c,s,i,d):L4(x),T=[...t.result,M];T.sort((N,O)=>N.time.localeCompare(O.time)),r(T),$n.success(`休憩(${w}〜${R})を実績にコピーしました`)}else{const w=t.plan.find(M=>M.id===f.itemId);if(w){const M=g!==0?dm(f.startMinutes,g,c,s,i,d):w.time,x={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:M,project:w.project,task:w.task},R=[...t.result,x];R.sort((T,N)=>T.time.localeCompare(N.time)),r(R),$n.success(`「${w.task}」を実績にコピーしました`)}}else if(g!==0){const w=dm(f.startMinutes,g,c,s,i,d),x=(f.type==="plan"?[...t.plan]:[...t.result]).map(R=>R.id===f.itemId?{...R,time:w}:R);x.sort((R,T)=>R.time.localeCompare(T.time)),f.type==="plan"?n(x):r(x),$n.success(`予定を ${w} に移動しました`)}p(null),h(0),C(!1)}},[f,g,y,t,n,r,i,s,c,d]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",$),document.addEventListener("mouseup",S),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect=""}},[f,$,S]),{dragState:f,dragOffset:g,isDraggingToResult:y,handleDragStart:b}}function LJ(e){const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function gS(e){const t=[];for(const n of e)if(!n.task)t.push(`* ${n.time}`);else if(t.push(`* ${n.time} [${n.project}] ${n.task}`),n.description){const r=n.description.split(`
|
|
365
365
|
`);for(const i of r)t.push(` ${i}`)}return t}function V4(e,t){return[`## ${t}`,...gS(e)].join(`
|
|
366
366
|
`)}function F4(e){const t=e.split(`
|
|
367
367
|
`),n=[];let r=null,i=[];const s=()=>{r&&(i.length>0&&(r.description=i.join(`
|
|
@@ -395,8 +395,8 @@ ${X.description}`:X.task;y(K),b(X.deadline),S(X.priority)},I=()=>{if(p){const X=
|
|
|
395
395
|
* 08:00 [P99] タスク確認
|
|
396
396
|
|
|
397
397
|
### [month]
|
|
398
|
-
- [ ] [P99] 月末タスク`})}):Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(H3,{}),Y.jsx("span",{children:"ルーチン"})]}),extra:Y.jsxs(dn,{children:[Y.jsxs(_t,{type:"primary",size:"small",icon:Y.jsx(ip,{}),disabled:r.size===0,onClick:L,children:["追加 ",r.size>0&&`(${r.size})`]}),Y.jsx(_t,{size:"small",icon:Y.jsx(fi,{}),onClick:M,loading:h,children:"編集"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Y.jsx(g1,{defaultActiveKey:P,size:"small",items:B})})},{Text:ub}=Ir,{TextArea:X4}=Nr,nee=()=>{const e=[];for(let t=6;t<=23;t++)for(let n=0;n<60;n+=15){const r=`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`;e.push({value:r,label:r})}return e},ree=nee(),oee=({selectedDate:e})=>{const{report:t,config:n}=fl(),[r,i]=l.useState("visual"),[s,c]=l.useState([]),[d,f]=l.useState([]),[p,g]=l.useState([]),[h,y]=l.useState("");l.useEffect(()=>{t.report&&(c(t.report.plan),f(t.report.result),g(t.report.todos),y(t.report.notes||""))},[t.report]);const C=n.projects,b=n.routines?.weekly,$=()=>YJ({date:e.format("YYYY-MM-DD"),plan:s,result:d,todos:p,notes:h,author:t.report?.author||"名前"},e.format("YYYY-MM-DD"),t.report?.author||"名前"),[S,w]=l.useState($()),M=C.filter(I=>I.active).map(I=>({value:I.code,label:Y.jsxs(dn,{children:[Y.jsx("span",{style:{color:I.color},children:"●"}),I.code," - ",I.name]})})),x=()=>{if(!b)return[];const z=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][e.day()];return b[z]||[]},R=I=>{const z={id:`${I}-${Date.now()}`,time:gn().format("HH:00"),project:"P99",task:""};I==="plan"?c([...s,z]):f([...d,z])},T=(I,z)=>{I==="plan"?c(s.filter(V=>V.id!==z)):f(d.filter(V=>V.id!==z))},N=(I,z,V,A)=>{const j=q=>q.map(X=>X.id===z?{...X,[V]:A}:X);I==="plan"?c(j(s)):f(j(d))},O=()=>{const I={id:`todo-${Date.now()}`,project:"P99",task:"",status:"pending"};g([...p,I])},P=(I,z,V)=>{g(p.map(A=>A.id===I?{...A,[z]:V}:A))},D=I=>{g(p.filter(z=>z.id!==I))},W=()=>{$n.success("保存しました")},k=()=>{const I=x(),z=I.map((V,A)=>({id:`plan-routine-${Date.now()}-${A}`,time:V.time||"09:00",project:V.project,task:V.task,duration:V.duration}));c([...s,...z]),$n.success(`${I.length}件のルーチンを計画に追加しました`)},U=()=>{const z=[{id:"g1",time:"10:00",task:"チームMTG",project:"P99"},{id:"g2",time:"14:00",task:"1on1",project:"P99"}].map((V,A)=>({id:`plan-gcal-${Date.now()}-${A}`,time:V.time,project:V.project,task:V.task}));c([...s,...z]),$n.success("Googleカレンダーから計画を取り込みました")},G=()=>{const I=s.map((z,V)=>({...z,id:`result-copy-${Date.now()}-${V}`}));f(I),$n.success("計画を実績にコピーしました")},L=(I,z)=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:I==="plan"?"[PLAN] 計画":"[RESULT] 実績"}),Y.jsxs(dn,{children:[I==="plan"&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ur,{title:"ルーチンから取り込み",children:Y.jsx(_t,{size:"small",icon:Y.jsx(H3,{}),onClick:k,children:"ルーチン"})}),Y.jsx(ur,{title:"Googleカレンダーから取り込み",children:Y.jsx(_t,{size:"small",icon:Y.jsx(JG,{}),onClick:U,children:"GCal"})})]}),I==="result"&&Y.jsx(ur,{title:"計画を実績にコピー",children:Y.jsx(_t,{size:"small",type:"primary",ghost:!0,icon:Y.jsx(D3,{}),onClick:G,children:"計画をコピー"})}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(ip,{}),onClick:()=>R(I),children:"追加"})]})]}),I==="result"&&Y.jsx(dT,{type:"info",message:"計画を元に実績を記録してください。計画と異なる場合は直接編集できます。",style:{marginBottom:8,fontSize:12},showIcon:!0}),Y.jsx(So,{dataSource:z,renderItem:V=>Y.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:Y.jsxs("div",{style:{width:"100%"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(TG,{style:{color:"#999",cursor:"grab"}}),Y.jsx(Lr,{value:V.time,options:ree,size:"small",style:{width:90},showSearch:!0,filterOption:(A,j)=>(j?.value??"").toLowerCase().includes(A.toLowerCase()),onChange:A=>N(I,V.id,"time",A),placeholder:"時刻"}),Y.jsx(Lr,{value:V.project,options:M,size:"small",style:{width:150},onChange:A=>N(I,V.id,"project",A)}),Y.jsx(Nr,{value:V.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:A=>N(I,V.id,"task",A.target.value)}),Y.jsx(cS,{title:"削除しますか?",onConfirm:()=>T(I,V.id),children:Y.jsx(_t,{type:"text",size:"small",danger:!0,icon:Y.jsx(sp,{})})})]}),Y.jsx(Nr.TextArea,{value:V.description||"",placeholder:"詳細説明(任意)",size:"small",autoSize:{minRows:1,maxRows:4},style:{marginTop:8,marginLeft:24},onChange:A=>N(I,V.id,"description",A.target.value)})]})}),size:"small",split:!1,locale:{emptyText:"項目がありません"}})]}),H=()=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:"[TODO]"}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(ip,{}),onClick:O,children:"追加"})]}),Y.jsx(So,{dataSource:p,renderItem:I=>Y.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(Lr,{value:I.status,size:"small",style:{width:110},onChange:z=>P(I.id,"status",z),options:[{value:"pending",label:"[ ] 未着手"},{value:"in_progress",label:"[*] 進行中"},{value:"completed",label:"[x] 完了"},{value:"on_hold",label:"[-] 保留"}]}),Y.jsx(Lr,{value:I.project,options:M,size:"small",style:{width:150},onChange:z=>P(I.id,"project",z)}),Y.jsx(Nr,{value:I.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:z=>P(I.id,"task",z.target.value)}),Y.jsx(Nr,{value:I.deadline||"",placeholder:"期限 (YYYY-MM-DD)",size:"small",style:{width:120},onChange:z=>P(I.id,"deadline",z.target.value)}),Y.jsx(cS,{title:"削除しますか?",onConfirm:()=>D(I.id),children:Y.jsx(_t,{type:"text",size:"small",danger:!0,icon:Y.jsx(sp,{})})})]})}),size:"small",split:!1,locale:{emptyText:"TODOがありません"}})]}),_=()=>Y.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 4px"},children:[L("plan",s),Y.jsx(ri,{style:{margin:"16px 0"}}),L("result",d),Y.jsx(ri,{style:{margin:"16px 0"}}),H(),Y.jsx(ri,{style:{margin:"16px 0"}}),Y.jsxs("div",{children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:"[NOTE] メモ"}),Y.jsx(X4,{value:h,onChange:I=>y(I.target.value),rows:4,placeholder:"自由記述メモ...",style:{marginTop:8}})]})]}),B=()=>Y.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:Y.jsx("div",{style:{flex:1,overflow:"hidden"},children:Y.jsx(X4,{value:S,onChange:I=>w(I.target.value),style:{height:"100%",fontFamily:"monospace",fontSize:13,background:"#fafafa"}})})});return Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(fi,{}),Y.jsx("span",{children:"日報編集"}),Y.jsx(sr,{children:e.format("YYYY-MM-DD (ddd)")})]}),extra:Y.jsxs(dn,{children:[Y.jsx(UU,{size:"small",options:[{label:"ビジュアル",value:"visual",icon:Y.jsx(fi,{})},{label:"テキスト",value:"text",icon:Y.jsx(cp,{})}],value:r,onChange:I=>{I==="text"&&w($()),i(I)}}),Y.jsx(ri,{type:"vertical"}),Y.jsx(ur,{title:"元に戻す (Ctrl+Z)",children:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(_X,{})})}),Y.jsx(ur,{title:"やり直し (Ctrl+Shift+Z)",children:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(CX,{})})}),Y.jsx(ri,{type:"vertical"}),Y.jsx(_t,{type:"primary",icon:Y.jsx(y1,{}),onClick:W,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:16,height:"calc(100% - 73px)",overflow:"hidden"}},children:r==="visual"?_():B()})};function aee(e){const[t,n]=l.useState(e||gn().format("YYYY-MM-DD")),[r,i]=l.useState(null),[s,c]=l.useState(null),[d,f]=l.useState(!1),[p,g]=l.useState(!1),[h,y]=l.useState(null),[C,b]=l.useState(!1),$=l.useCallback(async B=>{f(!0),y(null),n(B);try{const I=await ls.get(B);if(I)c(I.stats),i(mm(B,I.content));else{const z=CN(B),V=gn(B).subtract(1,"day").format("YYYY-MM-DD");try{const A=await ls.get(V);if(A){const q=mm(V,A.content).todos.filter(X=>X.status!=="completed");z.todos=q.map((X,K)=>({...X,id:`carryover-${Date.now()}-${K}`}))}}catch{}i(z),c(null)}b(!1)}catch(I){y(I instanceof Error?I.message:"読み込みに失敗しました")}finally{f(!1)}},[]),S=l.useCallback(async B=>{if(!r)return!1;g(!0),y(null);try{const I=K4(r),z=await ls.save(t,{content:I,git:B?.git,slack:B?.slack});if(z.saved){c(z.stats),b(!1);const V=await ls.get(t);return V&&(i(mm(t,V.content)),c(V.stats)),!0}return!1}catch(I){return y(I instanceof Error?I.message:"保存に失敗しました"),!1}finally{g(!1)}},[r,t]),w=l.useCallback(async()=>{try{const B=await ls.delete(t);return B&&(i(null),c(null),b(!1)),B}catch(B){return y(B instanceof Error?B.message:"削除に失敗しました"),!1}},[t]),M=l.useCallback(B=>{i(I=>I?{...I,plan:B}:null),b(!0)},[]),x=l.useCallback(B=>{i(I=>I?{...I,result:B}:null),b(!0)},[]),R=l.useCallback(B=>{i(I=>I?{...I,todos:B}:null),b(!0)},[]),T=l.useCallback(B=>{i(I=>I?{...I,notes:B}:null),b(!0)},[]),N=l.useCallback(B=>{const I=mm(t,B);i(I),b(!0)},[t]),O=l.useCallback(B=>{i(I=>{if(!I)return null;const z={...B,id:`t${Date.now()}`};return{...I,todos:[...I.todos,z]}}),b(!0)},[]),P=l.useCallback((B,I)=>{i(z=>z?{...z,todos:z.todos.map(V=>V.id===B?{...V,...I}:V)}:null),b(!0)},[]),D=l.useCallback(B=>{i(I=>I?{...I,todos:I.todos.filter(z=>z.id!==B)}:null),b(!0)},[]),W=l.useCallback(B=>{i(I=>I?{...I,todos:I.todos.map(z=>z.id!==B?z:{...z,status:{pending:"in_progress",in_progress:"completed",completed:"on_hold",on_hold:"pending"}[z.status]||"pending"})}:null),b(!0)},[]),k=l.useCallback((B,I)=>{i(z=>{if(!z)return null;const V={...I,id:`${B[0]}${Date.now()}`},A=[...z[B],V].sort((j,q)=>j.time.localeCompare(q.time));return{...z,[B]:A}}),b(!0)},[]),U=l.useCallback((B,I,z)=>{i(V=>{if(!V)return null;const A=V[B].map(j=>j.id===I?{...j,...z}:j);return A.sort((j,q)=>j.time.localeCompare(q.time)),{...V,[B]:A}}),b(!0)},[]),G=l.useCallback((B,I)=>{i(z=>z?{...z,[B]:z[B].filter(V=>V.id!==I)}:null),b(!0)},[]),L=l.useCallback(B=>{i(I=>{if(!I)return null;const z=B.map((A,j)=>({...A,id:`p${Date.now()}-${j}`})),V=[...I.plan,...z].sort((A,j)=>A.time.localeCompare(j.time));return{...I,plan:V}}),b(!0)},[]),H=l.useCallback(()=>{i(B=>{if(!B)return null;const I=B.plan.map((z,V)=>({...z,id:`r${Date.now()}-${V}`}));return{...B,result:I}}),b(!0)},[]);l.useEffect(()=>{e&&$(e)},[e,$]);const _=l.useMemo(()=>r?K4(r):"",[r]);return{report:r,markdownContent:_,stats:s,loading:d,saving:p,error:h,isDirty:C,loadReport:$,saveReport:S,deleteReport:w,updatePlan:M,updateResult:x,updateTodos:R,updateNotes:T,updateMarkdown:N,addTodo:O,updateTodo:P,deleteTodo:D,toggleTodoStatus:W,addScheduleItem:k,updateScheduleItem:U,deleteScheduleItem:G,applyRoutine:L,copyPlanToResult:H}}function CN(e){return{date:e,author:"",plan:[],result:[],todos:[],notes:""}}function mm(e,t){const n=CN(e),r=t.split(`
|
|
398
|
+
- [ ] [P99] 月末タスク`})}):Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(H3,{}),Y.jsx("span",{children:"ルーチン"})]}),extra:Y.jsxs(dn,{children:[Y.jsxs(_t,{type:"primary",size:"small",icon:Y.jsx(ip,{}),disabled:r.size===0,onClick:L,children:["追加 ",r.size>0&&`(${r.size})`]}),Y.jsx(_t,{size:"small",icon:Y.jsx(fi,{}),onClick:M,loading:h,children:"編集"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Y.jsx(g1,{defaultActiveKey:P,size:"small",items:B})})},{Text:ub}=Ir,{TextArea:X4}=Nr,nee=()=>{const e=[];for(let t=6;t<=23;t++)for(let n=0;n<60;n+=15){const r=`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`;e.push({value:r,label:r})}return e},ree=nee(),oee=({selectedDate:e})=>{const{report:t,config:n}=fl(),[r,i]=l.useState("visual"),[s,c]=l.useState([]),[d,f]=l.useState([]),[p,g]=l.useState([]),[h,y]=l.useState("");l.useEffect(()=>{t.report&&(c(t.report.plan),f(t.report.result),g(t.report.todos),y(t.report.notes||""))},[t.report]);const C=n.projects,b=n.routines?.weekly,$=()=>YJ({date:e.format("YYYY-MM-DD"),plan:s,result:d,todos:p,notes:h,author:t.report?.author||"名前"},e.format("YYYY-MM-DD"),t.report?.author||"名前"),[S,w]=l.useState($()),M=C.filter(I=>I.active).map(I=>({value:I.code,label:Y.jsxs(dn,{children:[Y.jsx("span",{style:{color:I.color},children:"●"}),I.code," - ",I.name]})})),x=()=>{if(!b)return[];const z=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][e.day()];return b[z]||[]},R=I=>{const z={id:`${I}-${Date.now()}`,time:gn().format("HH:00"),project:"P99",task:""};I==="plan"?c([...s,z]):f([...d,z])},T=(I,z)=>{I==="plan"?c(s.filter(V=>V.id!==z)):f(d.filter(V=>V.id!==z))},N=(I,z,V,A)=>{const j=q=>q.map(X=>X.id===z?{...X,[V]:A}:X);I==="plan"?c(j(s)):f(j(d))},O=()=>{const I={id:`todo-${Date.now()}`,project:"P99",task:"",status:"pending"};g([...p,I])},P=(I,z,V)=>{g(p.map(A=>A.id===I?{...A,[z]:V}:A))},D=I=>{g(p.filter(z=>z.id!==I))},W=()=>{$n.success("保存しました")},k=()=>{const I=x(),z=I.map((V,A)=>({id:`plan-routine-${Date.now()}-${A}`,time:V.time||"09:00",project:V.project,task:V.task,duration:V.duration}));c([...s,...z]),$n.success(`${I.length}件のルーチンを計画に追加しました`)},U=()=>{const z=[{id:"g1",time:"10:00",task:"チームMTG",project:"P99"},{id:"g2",time:"14:00",task:"1on1",project:"P99"}].map((V,A)=>({id:`plan-gcal-${Date.now()}-${A}`,time:V.time,project:V.project,task:V.task}));c([...s,...z]),$n.success("Googleカレンダーから計画を取り込みました")},G=()=>{const I=s.map((z,V)=>({...z,id:`result-copy-${Date.now()}-${V}`}));f(I),$n.success("計画を実績にコピーしました")},L=(I,z)=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:I==="plan"?"[PLAN] 計画":"[RESULT] 実績"}),Y.jsxs(dn,{children:[I==="plan"&&Y.jsxs(Y.Fragment,{children:[Y.jsx(ur,{title:"ルーチンから取り込み",children:Y.jsx(_t,{size:"small",icon:Y.jsx(H3,{}),onClick:k,children:"ルーチン"})}),Y.jsx(ur,{title:"Googleカレンダーから取り込み",children:Y.jsx(_t,{size:"small",icon:Y.jsx(JG,{}),onClick:U,children:"GCal"})})]}),I==="result"&&Y.jsx(ur,{title:"計画を実績にコピー",children:Y.jsx(_t,{size:"small",type:"primary",ghost:!0,icon:Y.jsx(D3,{}),onClick:G,children:"計画をコピー"})}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(ip,{}),onClick:()=>R(I),children:"追加"})]})]}),I==="result"&&Y.jsx(dT,{type:"info",message:"計画を元に実績を記録してください。計画と異なる場合は直接編集できます。",style:{marginBottom:8,fontSize:12},showIcon:!0}),Y.jsx(So,{dataSource:z,renderItem:V=>Y.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:Y.jsxs("div",{style:{width:"100%"},children:[Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(TG,{style:{color:"#999",cursor:"grab"}}),Y.jsx(Lr,{value:V.time,options:ree,size:"small",style:{width:90},showSearch:!0,filterOption:(A,j)=>(j?.value??"").toLowerCase().includes(A.toLowerCase()),onChange:A=>N(I,V.id,"time",A),placeholder:"時刻"}),Y.jsx(Lr,{value:V.project,options:M,size:"small",style:{width:150},onChange:A=>N(I,V.id,"project",A)}),Y.jsx(Nr,{value:V.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:A=>N(I,V.id,"task",A.target.value)}),Y.jsx(cS,{title:"削除しますか?",onConfirm:()=>T(I,V.id),children:Y.jsx(_t,{type:"text",size:"small",danger:!0,icon:Y.jsx(sp,{})})})]}),Y.jsx(Nr.TextArea,{value:V.description||"",placeholder:"詳細説明(任意)",size:"small",autoSize:{minRows:1,maxRows:4},style:{marginTop:8,marginLeft:24},onChange:A=>N(I,V.id,"description",A.target.value)})]})}),size:"small",split:!1,locale:{emptyText:"項目がありません"}})]}),H=()=>Y.jsxs("div",{style:{marginBottom:16},children:[Y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:"[TODO]"}),Y.jsx(_t,{size:"small",type:"primary",icon:Y.jsx(ip,{}),onClick:O,children:"追加"})]}),Y.jsx(So,{dataSource:p,renderItem:I=>Y.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:Y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[Y.jsx(Lr,{value:I.status,size:"small",style:{width:110},onChange:z=>P(I.id,"status",z),options:[{value:"pending",label:"[ ] 未着手"},{value:"in_progress",label:"[*] 進行中"},{value:"completed",label:"[x] 完了"},{value:"on_hold",label:"[-] 保留"}]}),Y.jsx(Lr,{value:I.project,options:M,size:"small",style:{width:150},onChange:z=>P(I.id,"project",z)}),Y.jsx(Nr,{value:I.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:z=>P(I.id,"task",z.target.value)}),Y.jsx(Nr,{value:I.deadline||"",placeholder:"期限 (YYYY-MM-DD)",size:"small",style:{width:120},onChange:z=>P(I.id,"deadline",z.target.value)}),Y.jsx(cS,{title:"削除しますか?",onConfirm:()=>D(I.id),children:Y.jsx(_t,{type:"text",size:"small",danger:!0,icon:Y.jsx(sp,{})})})]})}),size:"small",split:!1,locale:{emptyText:"TODOがありません"}})]}),_=()=>Y.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 4px"},children:[L("plan",s),Y.jsx(ri,{style:{margin:"16px 0"}}),L("result",d),Y.jsx(ri,{style:{margin:"16px 0"}}),H(),Y.jsx(ri,{style:{margin:"16px 0"}}),Y.jsxs("div",{children:[Y.jsx(ub,{strong:!0,style:{fontSize:14},children:"[NOTE] メモ"}),Y.jsx(X4,{value:h,onChange:I=>y(I.target.value),rows:4,placeholder:"自由記述メモ...",style:{marginTop:8}})]})]}),B=()=>Y.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:Y.jsx("div",{style:{flex:1,overflow:"hidden"},children:Y.jsx(X4,{value:S,onChange:I=>w(I.target.value),style:{height:"100%",fontFamily:"monospace",fontSize:13,background:"#fafafa"}})})});return Y.jsx(wa,{title:Y.jsxs(dn,{children:[Y.jsx(fi,{}),Y.jsx("span",{children:"日報編集"}),Y.jsx(sr,{children:e.format("YYYY-MM-DD (ddd)")})]}),extra:Y.jsxs(dn,{children:[Y.jsx(UU,{size:"small",options:[{label:"ビジュアル",value:"visual",icon:Y.jsx(fi,{})},{label:"テキスト",value:"text",icon:Y.jsx(cp,{})}],value:r,onChange:I=>{I==="text"&&w($()),i(I)}}),Y.jsx(ri,{type:"vertical"}),Y.jsx(ur,{title:"元に戻す (Ctrl+Z)",children:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(_X,{})})}),Y.jsx(ur,{title:"やり直し (Ctrl+Shift+Z)",children:Y.jsx(_t,{type:"text",size:"small",icon:Y.jsx(CX,{})})}),Y.jsx(ri,{type:"vertical"}),Y.jsx(_t,{type:"primary",icon:Y.jsx(y1,{}),onClick:W,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:16,height:"calc(100% - 73px)",overflow:"hidden"}},children:r==="visual"?_():B()})};function aee(e){const[t,n]=l.useState(e||gn().format("YYYY-MM-DD")),[r,i]=l.useState(null),[s,c]=l.useState(null),[d,f]=l.useState(!1),[p,g]=l.useState(!1),[h,y]=l.useState(null),[C,b]=l.useState(!1),$=l.useCallback(async B=>{f(!0),y(null),n(B);try{const I=await ls.get(B);if(I)c(I.stats),i(mm(B,I.content));else{const z=CN(B),V=gn(B).subtract(1,"day").format("YYYY-MM-DD");try{const A=await ls.get(V);if(A){const q=mm(V,A.content).todos.filter(X=>X.status!=="completed");z.todos=q.map((X,K)=>({...X,id:`carryover-${Date.now()}-${K}`}))}}catch{}i(z),c(null)}b(!1)}catch(I){y(I instanceof Error?I.message:"読み込みに失敗しました")}finally{f(!1)}},[]),S=l.useCallback(async B=>{if(!r)return!1;g(!0),y(null);try{const I=K4(r),z=await ls.save(t,{content:I,git:B?.git,slack:B?.slack});if(z.saved){c(z.stats),b(!1);const V=await ls.get(t);return V&&(i(mm(t,V.content)),c(V.stats)),!0}return!1}catch(I){return y(I instanceof Error?I.message:"保存に失敗しました"),!1}finally{g(!1)}},[r,t]),w=l.useCallback(async()=>{try{const B=await ls.delete(t);return B&&(i(null),c(null),b(!1)),B}catch(B){return y(B instanceof Error?B.message:"削除に失敗しました"),!1}},[t]),M=l.useCallback(B=>{i(I=>I?{...I,plan:B}:null),b(!0)},[]),x=l.useCallback(B=>{i(I=>I?{...I,result:B}:null),b(!0)},[]),R=l.useCallback(B=>{i(I=>I?{...I,todos:B}:null),b(!0)},[]),T=l.useCallback(B=>{i(I=>I?{...I,notes:B}:null),b(!0)},[]),N=l.useCallback(B=>{const I=mm(t,B);i(I),b(!0)},[t]),O=l.useCallback(B=>{i(I=>{if(!I)return null;const z={...B,id:`t${Date.now()}-${Math.random().toString(36).substring(2,9)}`};return{...I,todos:[...I.todos,z]}}),b(!0)},[]),P=l.useCallback((B,I)=>{i(z=>z?{...z,todos:z.todos.map(V=>V.id===B?{...V,...I}:V)}:null),b(!0)},[]),D=l.useCallback(B=>{i(I=>I?{...I,todos:I.todos.filter(z=>z.id!==B)}:null),b(!0)},[]),W=l.useCallback(B=>{i(I=>I?{...I,todos:I.todos.map(z=>z.id!==B?z:{...z,status:{pending:"in_progress",in_progress:"completed",completed:"on_hold",on_hold:"pending"}[z.status]||"pending"})}:null),b(!0)},[]),k=l.useCallback((B,I)=>{i(z=>{if(!z)return null;const V={...I,id:`${B[0]}${Date.now()}-${Math.random().toString(36).substring(2,9)}`},A=[...z[B],V].sort((j,q)=>j.time.localeCompare(q.time));return{...z,[B]:A}}),b(!0)},[]),U=l.useCallback((B,I,z)=>{i(V=>{if(!V)return null;const A=V[B].map(j=>j.id===I?{...j,...z}:j);return A.sort((j,q)=>j.time.localeCompare(q.time)),{...V,[B]:A}}),b(!0)},[]),G=l.useCallback((B,I)=>{i(z=>z?{...z,[B]:z[B].filter(V=>V.id!==I)}:null),b(!0)},[]),L=l.useCallback(B=>{i(I=>{if(!I)return null;const z=B.map((A,j)=>({...A,id:`p${Date.now()}-${j}`})),V=[...I.plan,...z].sort((A,j)=>A.time.localeCompare(j.time));return{...I,plan:V}}),b(!0)},[]),H=l.useCallback(()=>{i(B=>{if(!B)return null;const I=B.plan.map((z,V)=>({...z,id:`r${Date.now()}-${V}`}));return{...B,result:I}}),b(!0)},[]);l.useEffect(()=>{e&&$(e)},[e,$]);const _=l.useMemo(()=>r?K4(r):"",[r]);return{report:r,markdownContent:_,stats:s,loading:d,saving:p,error:h,isDirty:C,loadReport:$,saveReport:S,deleteReport:w,updatePlan:M,updateResult:x,updateTodos:R,updateNotes:T,updateMarkdown:N,addTodo:O,updateTodo:P,deleteTodo:D,toggleTodoStatus:W,addScheduleItem:k,updateScheduleItem:U,deleteScheduleItem:G,applyRoutine:L,copyPlanToResult:H}}function CN(e){return{date:e,author:"",plan:[],result:[],todos:[],notes:""}}function mm(e,t){const n=CN(e),r=t.split(`
|
|
399
399
|
`);let i="",s="P99";const c=[],d=r[0]?.match(/^#\s+\[日報\]\s+(.+?)\s+(\d{4}-\d{2}-\d{2})/);d&&(n.author=d[1]);for(let f=0;f<r.length;f++){const p=r[f];if(p.match(/^##\s+\[PLAN\]/i)){i="plan";continue}if(p.match(/^##\s+\[RESULT\]/i)){i="result";continue}if(p.match(/^##\s+\[TODO\]/i)){i="todo";continue}if(p.match(/^##\s+\[NOTE\]/i)){i="note";continue}if(i==="todo"&&p.match(/^###\s+(.+)$/)){const g=p.match(/^###\s+(.+)$/);g&&(s=g[1].trim());continue}if((i==="plan"||i==="result")&&p.startsWith("*")){const g=p.match(/^\*\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s+(.+)$/);if(g){const y={id:`${i[0]}${f}`,time:g[1],project:g[2],task:g[3]};i==="plan"?n.plan.push(y):n.result.push(y);continue}const h=p.match(/^\*\s+(\d{2}:\d{2})\s*$/);if(h){const y={id:`break${i[0]}${f}`,time:h[1],project:"",task:""};i==="plan"?n.plan.push(y):n.result.push(y)}}if(i==="todo"&&p.startsWith("-")){const g=p.match(/^-\s+\[([xX\s*\->])\]\s+(.+)$/);if(g){const h=g[1];let y=g[2],C=s,b,$;const S=y.match(/^\[([^\]]+)\]\s*/);S&&(C=S[1],y=y.substring(S[0].length));const w=y.match(/^(!!!|!!|!)\s*/);if(w){const R=w[1];$=R==="!!!"?"high":R==="!!"?"medium":"low",y=y.substring(w[0].length)}const M=y.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(M)b=M[1],y=y.substring(0,y.length-M[0].length);else{const R=y.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);R&&(b=R[1],y=y.substring(R[0].length))}b&&b.length===5&&(b=`${new Date().getFullYear()}-${b}`);const x={id:`t${f}`,status:iee(h),project:C,task:y.trim(),deadline:b,priority:$};n.todos.push(x);continue}}if(i==="todo"&&p.match(/^\s{2,}/)&&n.todos.length>0){const g=n.todos[n.todos.length-1],h=p.trim();g.description?g.description+=`
|
|
400
400
|
`+h:g.description=h;continue}i==="note"&&!p.startsWith("##")&&c.push(p)}return n.notes=c.join(`
|
|
401
401
|
`).trim(),n}function K4(e){const t=[];return t.push(`# [日報] ${e.author||"名前"} ${e.date}`),t.push(""),t.push("## [PLAN]"),t.push(""),t.push(...gS(e.plan)),t.push(""),t.push("## [RESULT]"),t.push(""),t.push(...gS(e.result)),t.push(""),t.push("## [TODO]"),t.push(""),t.push(...vN(e.todos)),t.push(""),t.push("## [NOTE]"),t.push(""),t.push(e.notes||""),t.join(`
|
|
402
|
-
`)}function iee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";case">":return"on_hold";default:return"pending"}}function lee(){const[e,t]=l.useState(null),[n,r]=l.useState(!1),[i,s]=l.useState(null),c=l.useCallback(async()=>{r(!0),s(null);try{const b=await gp.get();t(b)}catch(b){s(b instanceof Error?b.message:"設定の読み込みに失敗しました")}finally{r(!1)}},[]),d=l.useCallback(async b=>{s(null);try{const $=await gp.update(b);return t($),!0}catch($){return s($ instanceof Error?$.message:"設定の更新に失敗しました"),!1}},[]),f=l.useCallback(b=>e?.projects.find($=>$.code===b),[e]),p=l.useCallback(b=>f(b)?.color||"#999",[f]),g=l.useCallback(b=>f(b)?.name||b,[f]),h=l.useCallback(()=>e?.projects.filter(b=>b.active)||[],[e]),y=l.useCallback(b=>{if(!e?.routines?.weekly)return[];const S={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"}[b.day()];return e.routines.weekly[S]||[]},[e]),C=l.useCallback(b=>e?.routines?.monthly?e.routines.monthly[b]||[]:[],[e]);return l.useEffect(()=>{c()},[c]),{config:e,projects:e?.projects||[],routines:e?.routines||null,loading:n,error:i,loadConfig:c,updateConfig:d,getProject:f,getProjectColor:p,getProjectName:g,getActiveProjects:h,getRoutinesForDay:y,getMonthlyRoutines:C}}function see(e,t){const n=gn(),[r,i]=l.useState(e||n.year()),[s,c]=l.useState(t||n.month()+1),[d,f]=l.useState(null),[p,g]=l.useState([]),[h,y]=l.useState(!1),[C,b]=l.useState(null),$=l.useCallback(async(O,P)=>{y(!0),b(null);try{const D=await _4.get(O,P);f(D),i(O),c(P)}catch(D){b(D instanceof Error?D.message:"カレンダーデータの読み込みに失敗しました")}finally{y(!1)}},[]),S=l.useCallback(async()=>{try{const O=await _4.getAvailableMonths();g(O)}catch(O){console.error("Failed to load available months:",O)}},[]),w=l.useCallback(()=>{const O=gn(`${r}-${s}-01`).subtract(1,"month");$(O.year(),O.month()+1)},[r,s,$]),M=l.useCallback(()=>{const O=gn(`${r}-${s}-01`).add(1,"month");$(O.year(),O.month()+1)},[r,s,$]),x=l.useCallback((O,P)=>{$(O,P)},[$]),R=l.useCallback(O=>d?.days.find(P=>P.date===O),[d]),T=l.useCallback(O=>R(O)?.hasReport||!1,[R]),N=l.useCallback(O=>{const P=R(O);return{plan:P?.planHours||0,result:P?.resultHours||0}},[R]);return l.useEffect(()=>{$(r,s),S()},[]),{calendarData:d,days:d?.days||[],summary:d?.summary||null,loading:h,error:C,year:r,month:s,availableYearMonths:p,loadCalendar:$,loadAvailableMonths:S,goToPrevMonth:w,goToNextMonth:M,goToMonth:x,getDayStats:R,hasReport:T,getWorkHours:N}}function cee(){const[e,t]=l.useState(new Map),n=l.useMemo(()=>e.size>0,[e]),r=l.useMemo(()=>Array.from(e.keys()),[e]),i=l.useCallback(p=>e.has(p),[e]),s=l.useCallback((p,g,h,y)=>{if(h===y){t(C=>{const b=new Map(C);return b.delete(p),b});return}t(C=>{const b=new Map(C);return b.set(p,{date:p,report:g,originalMarkdown:h,currentMarkdown:y}),b})},[]),c=l.useCallback(p=>{t(g=>{const h=new Map(g);return h.delete(p),h})},[]),d=l.useCallback(()=>{t(new Map)},[]),f=l.useCallback(p=>e.get(p),[e]);return{unsavedReports:e,hasUnsavedChanges:n,unsavedDates:r,hasUnsavedChangesForDate:i,setUnsavedReport:s,clearUnsavedReport:c,clearAllUnsavedReports:d,getUnsavedReport:f}}gn.locale("ja");const{Content:uee}=Ra,dee=()=>{const[e,t]=l.useState(gn()),[n,r]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState([]),f=aee(e.format("YYYY-MM-DD")),p=lee(),g=see(e.year(),e.month()+1),h=cee(),y=l.useRef(h);y.current=h;const C=l.useRef(e.format("YYYY-MM-DD")),b=l.useRef(!1);l.useEffect(()=>{const L=e.format("YYYY-MM-DD");C.current!==L&&(b.current=!0,C.current=L)},[e]),l.useEffect(()=>{if(b.current){b.current=!1;return}const L=e.format("YYYY-MM-DD");f.isDirty&&f.report&&y.current.setUnsavedReport(L,f.report,"",f.markdownContent)},[f.isDirty,f.report,f.markdownContent,e]);const[$,S]=l.useState(null),w=l.useRef(null),M=l.useRef(0),x=l.useRef(0),R=l.useCallback(async L=>{if(L){const H=L.format("YYYY-MM-DD");t(L),(L.month()!==e.month()||L.year()!==e.year())&&g.loadCalendar(L.year(),L.month()+1);const _=y.current.getUnsavedReport(H);await f.loadReport(H),_&&f.updateMarkdown(_.currentMarkdown)}},[f,g,e]),T=l.useCallback(async L=>{const H=gn(L);t(H);const _=y.current.getUnsavedReport(L);await f.loadReport(L),_&&f.updateMarkdown(_.currentMarkdown)},[f]),N=l.useCallback(L=>{d(H=>H.includes(L)?H.filter(_=>_!==L):[...H,L])},[]),O=l.useCallback(()=>{d([])},[]),P=c.map(L=>p.getProject(L)).filter(L=>L!==void 0),D=l.useCallback(async L=>{await f.saveReport(L)?(h.clearUnsavedReport(e.format("YYYY-MM-DD")),$n.success("日報を保存しました"),g.loadCalendar(g.year,g.month)):$n.error("日報の保存に失敗しました")},[f,g,h,e]),W=l.useCallback(async(L,H)=>{let _=0,B=0;for(const I of L)try{if(I===e.format("YYYY-MM-DD"))await f.saveReport(H)?(_++,h.clearUnsavedReport(I)):B++;else{const z=h.getUnsavedReport(I);z&&((await ls.save(I,{content:z.currentMarkdown,git:H?.git,slack:H?.slack})).saved?(_++,h.clearUnsavedReport(I)):B++)}}catch{B++}_>0&&($n.success(`${_}件の日報を保存しました`),g.loadCalendar(g.year,g.month)),B>0&&$n.error(`${B}件の日報の保存に失敗しました`)},[f,e,h,g]),k=l.useCallback(L=>{const H=L.filter(B=>B.category==="plan"||!B.category&&B.time&&B.time!==""),_=L.filter(B=>B.category==="todo"||!B.category&&(!B.time||B.time===""));if(H.length>0){const B=H.map((I,z)=>({id:`routine-${Date.now()}-${z}`,time:I.time,project:I.project,task:I.task,duration:I.duration}));f.applyRoutine(B)}_.length>0&&_.forEach(B=>{f.addTodo({project:B.project,task:B.task,status:"pending"})}),s(!1)},[f]),U=l.useCallback(L=>{L.preventDefault();const H=w.current?.firstElementChild;if(!H||!w.current)return;M.current=L.clientX,x.current=H.getBoundingClientRect().width,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const _=I=>{if(!w.current)return;const z=I.clientX-M.current,V=w.current.getBoundingClientRect().width,A=296,j=200,q=V-A-j-20;let X=x.current+z;X=Math.max(j,Math.min(q,X)),S(X)},B=()=>{document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",B)},[]),G={selectedDate:e,setSelectedDate:R,selectedProjects:c,toggleProject:N,clearProjectFilter:O,report:f,config:p,calendar:g,unsavedReports:h,editorOpen:n,setEditorOpen:r,saveReport:D,saveMultipleReports:W};return Y.jsx(yN.Provider,{value:G,children:Y.jsx(Qo,{theme:{algorithm:JZ.defaultAlgorithm,token:{colorPrimary:"#1890ff",borderRadius:6}},locale:{locale:"ja"},children:Y.jsxs(Ra,{style:{height:"100vh",overflow:"hidden"},children:[Y.jsx(DJ,{selectedDate:e,onDateChange:R,onImportClick:()=>s(!0),selectedProjects:P,onRemoveProject:N,onClearProjectFilter:O}),Y.jsx(uee,{style:{padding:16,background:"#f0f2f5",
|
|
402
|
+
`)}function iee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";case">":return"on_hold";default:return"pending"}}function lee(){const[e,t]=l.useState(null),[n,r]=l.useState(!1),[i,s]=l.useState(null),c=l.useCallback(async()=>{r(!0),s(null);try{const b=await gp.get();t(b)}catch(b){s(b instanceof Error?b.message:"設定の読み込みに失敗しました")}finally{r(!1)}},[]),d=l.useCallback(async b=>{s(null);try{const $=await gp.update(b);return t($),!0}catch($){return s($ instanceof Error?$.message:"設定の更新に失敗しました"),!1}},[]),f=l.useCallback(b=>e?.projects.find($=>$.code===b),[e]),p=l.useCallback(b=>f(b)?.color||"#999",[f]),g=l.useCallback(b=>f(b)?.name||b,[f]),h=l.useCallback(()=>e?.projects.filter(b=>b.active)||[],[e]),y=l.useCallback(b=>{if(!e?.routines?.weekly)return[];const S={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"}[b.day()];return e.routines.weekly[S]||[]},[e]),C=l.useCallback(b=>e?.routines?.monthly?e.routines.monthly[b]||[]:[],[e]);return l.useEffect(()=>{c()},[c]),{config:e,projects:e?.projects||[],routines:e?.routines||null,loading:n,error:i,loadConfig:c,updateConfig:d,getProject:f,getProjectColor:p,getProjectName:g,getActiveProjects:h,getRoutinesForDay:y,getMonthlyRoutines:C}}function see(e,t){const n=gn(),[r,i]=l.useState(e||n.year()),[s,c]=l.useState(t||n.month()+1),[d,f]=l.useState(null),[p,g]=l.useState([]),[h,y]=l.useState(!1),[C,b]=l.useState(null),$=l.useCallback(async(O,P)=>{y(!0),b(null);try{const D=await _4.get(O,P);f(D),i(O),c(P)}catch(D){b(D instanceof Error?D.message:"カレンダーデータの読み込みに失敗しました")}finally{y(!1)}},[]),S=l.useCallback(async()=>{try{const O=await _4.getAvailableMonths();g(O)}catch(O){console.error("Failed to load available months:",O)}},[]),w=l.useCallback(()=>{const O=gn(`${r}-${s}-01`).subtract(1,"month");$(O.year(),O.month()+1)},[r,s,$]),M=l.useCallback(()=>{const O=gn(`${r}-${s}-01`).add(1,"month");$(O.year(),O.month()+1)},[r,s,$]),x=l.useCallback((O,P)=>{$(O,P)},[$]),R=l.useCallback(O=>d?.days.find(P=>P.date===O),[d]),T=l.useCallback(O=>R(O)?.hasReport||!1,[R]),N=l.useCallback(O=>{const P=R(O);return{plan:P?.planHours||0,result:P?.resultHours||0}},[R]);return l.useEffect(()=>{$(r,s),S()},[]),{calendarData:d,days:d?.days||[],summary:d?.summary||null,loading:h,error:C,year:r,month:s,availableYearMonths:p,loadCalendar:$,loadAvailableMonths:S,goToPrevMonth:w,goToNextMonth:M,goToMonth:x,getDayStats:R,hasReport:T,getWorkHours:N}}function cee(){const[e,t]=l.useState(new Map),n=l.useMemo(()=>e.size>0,[e]),r=l.useMemo(()=>Array.from(e.keys()),[e]),i=l.useCallback(p=>e.has(p),[e]),s=l.useCallback((p,g,h,y)=>{if(h===y){t(C=>{const b=new Map(C);return b.delete(p),b});return}t(C=>{const b=new Map(C);return b.set(p,{date:p,report:g,originalMarkdown:h,currentMarkdown:y}),b})},[]),c=l.useCallback(p=>{t(g=>{const h=new Map(g);return h.delete(p),h})},[]),d=l.useCallback(()=>{t(new Map)},[]),f=l.useCallback(p=>e.get(p),[e]);return{unsavedReports:e,hasUnsavedChanges:n,unsavedDates:r,hasUnsavedChangesForDate:i,setUnsavedReport:s,clearUnsavedReport:c,clearAllUnsavedReports:d,getUnsavedReport:f}}gn.locale("ja");const{Content:uee}=Ra,dee=()=>{const[e,t]=l.useState(gn()),[n,r]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState([]),f=aee(e.format("YYYY-MM-DD")),p=lee(),g=see(e.year(),e.month()+1),h=cee(),y=l.useRef(h);y.current=h;const C=l.useRef(e.format("YYYY-MM-DD")),b=l.useRef(!1);l.useEffect(()=>{const L=e.format("YYYY-MM-DD");C.current!==L&&(b.current=!0,C.current=L)},[e]),l.useEffect(()=>{if(b.current){b.current=!1;return}const L=e.format("YYYY-MM-DD");f.isDirty&&f.report&&y.current.setUnsavedReport(L,f.report,"",f.markdownContent)},[f.isDirty,f.report,f.markdownContent,e]);const[$,S]=l.useState(null),w=l.useRef(null),M=l.useRef(0),x=l.useRef(0),R=l.useCallback(async L=>{if(L){const H=L.format("YYYY-MM-DD");t(L),(L.month()!==e.month()||L.year()!==e.year())&&g.loadCalendar(L.year(),L.month()+1);const _=y.current.getUnsavedReport(H);await f.loadReport(H),_&&f.updateMarkdown(_.currentMarkdown)}},[f,g,e]),T=l.useCallback(async L=>{const H=gn(L);t(H);const _=y.current.getUnsavedReport(L);await f.loadReport(L),_&&f.updateMarkdown(_.currentMarkdown)},[f]),N=l.useCallback(L=>{d(H=>H.includes(L)?H.filter(_=>_!==L):[...H,L])},[]),O=l.useCallback(()=>{d([])},[]),P=c.map(L=>p.getProject(L)).filter(L=>L!==void 0),D=l.useCallback(async L=>{await f.saveReport(L)?(h.clearUnsavedReport(e.format("YYYY-MM-DD")),$n.success("日報を保存しました"),g.loadCalendar(g.year,g.month)):$n.error("日報の保存に失敗しました")},[f,g,h,e]),W=l.useCallback(async(L,H)=>{let _=0,B=0;for(const I of L)try{if(I===e.format("YYYY-MM-DD"))await f.saveReport(H)?(_++,h.clearUnsavedReport(I)):B++;else{const z=h.getUnsavedReport(I);z&&((await ls.save(I,{content:z.currentMarkdown,git:H?.git,slack:H?.slack})).saved?(_++,h.clearUnsavedReport(I)):B++)}}catch{B++}_>0&&($n.success(`${_}件の日報を保存しました`),g.loadCalendar(g.year,g.month)),B>0&&$n.error(`${B}件の日報の保存に失敗しました`)},[f,e,h,g]),k=l.useCallback(L=>{const H=L.filter(B=>B.category==="plan"||!B.category&&B.time&&B.time!==""),_=L.filter(B=>B.category==="todo"||!B.category&&(!B.time||B.time===""));if(H.length>0){const B=H.map((I,z)=>({id:`routine-${Date.now()}-${z}`,time:I.time,project:I.project,task:I.task,duration:I.duration}));f.applyRoutine(B)}_.length>0&&_.forEach(B=>{f.addTodo({project:B.project,task:B.task,status:"pending"})}),s(!1)},[f]),U=l.useCallback(L=>{L.preventDefault();const H=w.current?.firstElementChild;if(!H||!w.current)return;M.current=L.clientX,x.current=H.getBoundingClientRect().width,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const _=I=>{if(!w.current)return;const z=I.clientX-M.current,V=w.current.getBoundingClientRect().width,A=296,j=200,q=V-A-j-20;let X=x.current+z;X=Math.max(j,Math.min(q,X)),S(X)},B=()=>{document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",B)},[]),G={selectedDate:e,setSelectedDate:R,selectedProjects:c,toggleProject:N,clearProjectFilter:O,report:f,config:p,calendar:g,unsavedReports:h,editorOpen:n,setEditorOpen:r,saveReport:D,saveMultipleReports:W};return Y.jsx(yN.Provider,{value:G,children:Y.jsx(Qo,{theme:{algorithm:JZ.defaultAlgorithm,token:{colorPrimary:"#1890ff",borderRadius:6}},locale:{locale:"ja"},children:Y.jsxs(Ra,{style:{height:"100vh",overflow:"hidden"},children:[Y.jsx(DJ,{selectedDate:e,onDateChange:R,onImportClick:()=>s(!0),selectedProjects:P,onRemoveProject:N,onClearProjectFilter:O}),Y.jsx(uee,{className:"dashboard-content",style:{padding:16,background:"#f0f2f5",flex:1,display:"flex",flexDirection:"column"},children:Y.jsxs("div",{ref:w,className:"dashboard-container",children:[Y.jsx("div",{className:"dashboard-timeline",style:{width:$??void 0,flex:$?void 0:1},children:Y.jsx(UJ,{selectedDate:e,onEditClick:()=>r(!0),selectedProjects:c})}),Y.jsx("div",{className:"dashboard-resizer",onMouseDown:U,children:Y.jsx("div",{className:"dashboard-resizer-handle"})}),Y.jsx("div",{className:"dashboard-todo",children:Y.jsx(ZJ,{selectedDate:e,selectedProjects:c})}),Y.jsxs("div",{className:"dashboard-right-column",children:[Y.jsx("div",{className:"dashboard-calendar",children:Y.jsx(jJ,{selectedDate:e,onDateSelect:T,selectedProjects:c})}),Y.jsx("div",{className:"dashboard-project",children:Y.jsx(JJ,{selectedProjects:c,onToggleProject:N})})]})]})}),Y.jsx(ao,{title:null,open:n,onCancel:()=>r(!1),footer:null,width:"90%",style:{top:20},styles:{body:{height:"calc(100vh - 120px)",padding:0}},destroyOnHidden:!0,children:Y.jsx(oee,{selectedDate:e,onClose:()=>r(!1)})}),Y.jsx(eN,{title:"ルーチンから取り込み",placement:"right",size:"large",onClose:()=>s(!1),open:i,children:Y.jsx(tee,{onApplyRoutine:k})})]})})})},{Footer:gee}=Ra,{Text:hee}=Ir;function fee(){return Y.jsx(dee,{})}Z4.createRoot(document.getElementById("root")).render(Y.jsx(l.StrictMode,{children:Y.jsx(fee,{})}));
|