import{o as e}from"./request-xrnk7ZJV.js";import{Ct as t,Er as n,Hn as r,Jt as i,Kt as a,Ln as o,N as s,Pr as c,Q as l,Qn as u,Wn as d,Xt as f,Zt as p,cr as m,en as h,kt as g,n as _,pt as ee,qt as v,rn as y,u as b,vt as te,wn as x,wt as S}from"./jsx-runtime-OfKoVykY.js";import{l as ne,m as C,n as w,p as re,r as T,s as ie,t as E}from"./style-CSZsuTOx.js";import{t as D}from"./useBreakpoint-DER0GTnn.js";import{t as O}from"./LeftOutlined-V7kBMNHZ.js";import{t as ae}from"./zh_CN-BT8mdvr9.js";import{Dt as k,Et as oe,Kt as se}from"./index-Cf1llsZx.js";var A=e(c()),ce=[10,20,50,100],le=e=>{let{pageSizeOptions:t=ce,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=A.useState(``),h=A.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),g=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,_=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},ee=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(h))},v=e=>{f!==``&&(e.keyCode===m.ENTER||e.type===`click`)&&(p(``),o?.(h))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let te=null,x=null,S=null;return u&&d&&(te=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:g(e),value:e}))})),o&&(a&&(S=typeof a==`boolean`?A.createElement(`button`,{type:`button`,onClick:v,onKeyUp:v,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):A.createElement(`span`,{onClick:v,onKeyUp:v},a)),x=A.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,A.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:_,onKeyUp:v,onBlur:ee,"aria-label":n.page}),n.page,S)),A.createElement(`li`,{className:b},te,x)},j=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,f=d(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),p=()=>{s(n)},m=e=>{c(e,s,n)},h=l(n,`page`,A.createElement(`a`,{rel:`nofollow`},n));return h?A.createElement(`li`,{title:o?String(n):null,className:f,style:a,onClick:p,onKeyDown:m,tabIndex:0},h):null};function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function N(){}function de(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function P(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var F=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:r=`rc-select`,className:i,classNames:a,styles:o,current:s,defaultCurrent:c=1,total:l=0,pageSize:f,defaultPageSize:p=10,onChange:h=N,hideOnSinglePage:g,align:_,showPrevNextJumpers:ee=!0,showQuickJumper:v,showLessItems:y,showTitle:b=!0,onShowSizeChange:te=N,locale:x=ae,style:S,totalBoundaryShowSizeChanger:ne=50,disabled:C,simple:w,showTotal:re,showSizeChanger:T=l>ne,sizeChangerRender:ie,pageSizeOptions:E,itemRender:D=ue,jumpPrevIcon:O,jumpNextIcon:k,prevIcon:oe,nextIcon:se}=e,ce=A.useRef(null),[F,I]=n(p,f),[fe,L]=n(c,s),R=Math.max(1,Math.min(fe,P(void 0,F,l))),[z,B]=A.useState(R);(0,A.useEffect)(()=>{B(R)},[R]),`current`in e;let V=Math.max(1,R-(y?3:5)),H=Math.min(P(void 0,F,l),R+(y?3:5));function U(n,r){let i=n||A.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=A.createElement(n,e)),i}function W(e){let t=e.target.value,n=P(void 0,F,l),r;return r=t===``?t:Number.isNaN(Number(t))?z:t>=n?n:Number(t),r}function G(e){return de(e)&&e!==R&&de(l)&&l>0}let pe=l>F&&v;function me(e){(e.keyCode===m.UP||e.keyCode===m.DOWN)&&e.preventDefault()}function he(e){let t=W(e);switch(t!==z&&B(t),e.keyCode){case m.ENTER:K(t);break;case m.UP:K(t-1);break;case m.DOWN:K(t+1)}}function ge(e){K(W(e))}function _e(e){let t=P(e,F,l),n=R>t&&t!==0?t:R;I(e),B(n),te?.(R,e),L(n),h?.(n,e)}function K(e){if(G(e)&&!C){let t=P(void 0,F,l),n=e;return e>t?n=t:e<1&&(n=1),n!==z&&B(n),L(n),h?.(n,F),n}return R}let q=R>1,J=Rl?l:R*F])),Me=null,X=P(void 0,F,l);if(g&&l<=F)return null;let Z=[],Q={rootPrefixCls:t,onClick:K,onKeyPress:Y,showTitle:b,itemRender:D,page:-1,className:a?.item,style:o?.item},Ne=R-1>0?R-1:0,Pe=R+1=$*2&&R!==3,c=!!Me&&X-R>=$*2&&R!==X-2;!y&&s&&o!==X&&(a+=1),!y&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)Z.push(A.createElement(j,M({},Q,{key:e,page:e,active:R===e})));if(s&&(Z[0]=A.cloneElement(Z[0],{className:d(`${t}-item-after-jump-prev`,Z[0].props.className)}),Z.unshift(ke)),c){let e=Z[Z.length-1];Z[Z.length-1]=A.cloneElement(e,{className:d(`${t}-item-before-jump-next`,e.props.className)}),Z.push(Me)}a!==1&&Z.unshift(A.createElement(j,M({},Q,{key:1,page:1}))),o!==X&&Z.push(A.createElement(j,M({},Q,{key:X,page:X})))}let ze=Ee(Ne);if(ze){let e=!q||!X;ze=A.createElement(`li`,{title:b?x.prev_page:null,onClick:ve,tabIndex:e?null:0,onKeyDown:Se,className:d(`${t}-prev`,a?.item,{[`${t}-disabled`]:e}),style:o?.item,"aria-disabled":e},ze)}let Be=De(Pe);if(Be){let e,n;w?(e=!J,n=q?0:null):(e=!J||!X,n=e?null:0),Be=A.createElement(`li`,{title:b?x.next_page:null,onClick:ye,tabIndex:n,onKeyDown:Ce,className:d(`${t}-next`,a?.item,{[`${t}-disabled`]:e}),style:o?.item,"aria-disabled":e},Be)}let Ve=d(t,i,{[`${t}-start`]:_===`start`,[`${t}-center`]:_===`center`,[`${t}-end`]:_===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return A.createElement(`ul`,M({className:Ve,style:S,ref:ce},Ae),je,ze,w?Re:Z,Be,A.createElement(le,{locale:x,rootPrefixCls:t,disabled:C,selectPrefixCls:r,changeSize:_e,pageSize:F,pageSizeOptions:E,quickGo:pe?K:null,goButton:Le,showSizeChanger:T,sizeChangerRender:ie}))},I=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},fe=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...T(e),width:e.paginationMiniQuickJumperInputWidth}}}}},L=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...w(e)}}}}},R=e=>{let{componentCls:t,antCls:n}=e,[,r]=a(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${o(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${o(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${o(e.inputOutlineOffset)} 0 ${o(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},z=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...ne(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${o(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},B=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,s]=a(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:s(`item-spacing-actual`)},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:`inline-block`,minWidth:s(`item-size-actual`),height:s(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:s(`item-size-actual`),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:`${o(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,[`&-size-changer, &-size-changer${t}-options-size-changer-select`]:{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:s(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:s(`item-size-actual`),verticalAlign:`baseline`,input:{...E(e),...ie(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...ne(e)},width:e.quickJumperInputWidth,height:s(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:s(`item-spacing-actual`),marginInlineEnd:s(`item-spacing-actual`)}}}}},V=e=>{let{componentCls:t,antCls:n}=e,[,r]=a(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:o(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${o(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${o(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},H=e=>{let{componentCls:t,antCls:n}=e,[r,i]=a(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:o(e.itemSize),[r(`item-spacing-actual`)]:o(e.marginXS),"&-small":{[r(`item-size-actual`)]:o(e.itemSizeSM),[r(`item-spacing-actual`)]:o(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:o(e.itemSizeLG),[r(`item-spacing-actual`)]:o(e.marginSM)},...h(e),display:`flex`,alignItems:`center`,userSelect:`none`,"&-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:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:o(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`,userSelect:`text`},...V(e),...B(e),...R(e),...z(e),...fe(e),...L(e),...I(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`}}},U=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...p(e),"> a, > button":{borderRadius:`inherit`,...p(e)}},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible, &:has(> :focus-visible)":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...f(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link, ${t}-item-link:focus-visible`]:f(e)}}}},W=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...re(e)}),G=e=>x(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`},C(e)),pe=v(`Pagination`,e=>{let t=G(e);return[H(t),U(t)]},W),me=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.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`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${o(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},he=i([`Pagination`,`bordered`],e=>me(G(e)),W);function ge(e){return(0,A.useMemo)(()=>typeof e==`boolean`?[e,{}]:g(e)?[!0,e]:[void 0,void 0],[e])}var _e=e=>{let{align:n,prefixCls:i,selectPrefixCls:a,className:o,rootClassName:c,style:u,size:f,locale:p,responsive:m,showSizeChanger:h,components:g,selectComponentClass:v,pageSizeOptions:x,styles:ne,classNames:C,...w}=e,{xs:re}=D(m),[,T]=y(),{getPrefixCls:ie,direction:E,showSizeChanger:ae,className:ce,style:le,classNames:j,styles:M,totalBoundaryShowSizeChanger:ue}=r(`pagination`),N=ie(`pagination`,i),[de,P]=pe(N),I=l(f),fe=I===`small`||!!(re&&!I&&m),[L,R]=b(`input`),z={...e,size:I},B=S(le),V=S(u),[H,U]=t([j,C],[M,B,ne,V],{props:z}),[W]=ee(`Pagination`,te),G={...W,...p},[me,_e]=ge(h),[K,q]=ge(ae),J=me??K,ve=_e??q,ye=v||se,be=A.useMemo(()=>x?x.map(Number):void 0,[x]),xe=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,s=g?.sizeChanger;if(s)return A.createElement(s,{value:n,onChange:r,disabled:!!t,className:a});let{className:c,onChange:l}=ve||{},u=o.find(e=>String(e.value)===String(n))?.value;return A.createElement(ye,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...ve,value:u,onChange:(e,t)=>{r?.(e),l?.(e,t)},size:I,className:d(`${N}-options-size-changer-select`,a,c)})},Y=A.useMemo(()=>{let e=A.createElement(`span`,{className:`${N}-item-ellipsis`},A.createElement(_,null));return{prevIcon:A.createElement(`button`,{className:`${N}-item-link`,type:`button`,tabIndex:-1},E===`rtl`?A.createElement(s,null):A.createElement(O,null)),nextIcon:A.createElement(`button`,{className:`${N}-item-link`,type:`button`,tabIndex:-1},E===`rtl`?A.createElement(O,null):A.createElement(s,null)),jumpPrevIcon:A.createElement(`a`,{className:`${N}-item-link`},A.createElement(`div`,{className:`${N}-item-container`},E===`rtl`?A.createElement(oe,{className:`${N}-item-link-icon`}):A.createElement(k,{className:`${N}-item-link-icon`}),e)),jumpNextIcon:A.createElement(`a`,{className:`${N}-item-link`},A.createElement(`div`,{className:`${N}-item-container`},E===`rtl`?A.createElement(k,{className:`${N}-item-link-icon`}):A.createElement(oe,{className:`${N}-item-link-icon`}),e))}},[E,N]),Se=ie(`select`,a),Ce=d({[`${N}-${n}`]:!!n,[`${N}-${I}`]:I,[`${N}-${L}`]:R&&L!==`outlined`,[`${N}-mini`]:fe,[`${N}-rtl`]:E===`rtl`,[`${N}-bordered`]:T.wireframe},ce,o,c,H.root,de,P),we={...U.root};return A.createElement(A.Fragment,null,T.wireframe&&A.createElement(he,{prefixCls:N}),A.createElement(F,{...Y,...w,styles:U,classNames:H,style:we,prefixCls:N,selectPrefixCls:Se,className:Ce,locale:G,pageSizeOptions:be,showSizeChanger:J,totalBoundaryShowSizeChanger:w.totalBoundaryShowSizeChanger??ue,sizeChangerRender:xe}))};export{_e as t};