@zlooks.cn/password-auth-server 1.1.6 → 1.1.8

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.
Files changed (20) hide show
  1. package/.hile-rsc/build-mvatymx1-25d8b6c0/client-browser/chunks/chunk-3XS5CUKE.js +252 -0
  2. package/.hile-rsc/build-mvatymx1-25d8b6c0/client-browser/src-plugin-page-frame-07c4de56a6-GLDPP7WQ.css +1 -0
  3. package/.hile-rsc/build-mvatymx1-25d8b6c0/client-browser/src-plugin-page-frame-07c4de56a6-NNLB6KOI.js +16 -0
  4. package/.hile-rsc/build-mvatymx1-25d8b6c0/client-browser/src-plugin-password-form-3bd63d69e5-HJ5W2OPR.js +6 -0
  5. package/.hile-rsc/build-mvatymx1-25d8b6c0/client-browser/src-plugin-password-form-3bd63d69e5-XRKUN4RP.css +1 -0
  6. package/.hile-rsc/build-mvatymx1-25d8b6c0/client-ssr/chunks/chunk-PN3C7DWD.js +123 -0
  7. package/.hile-rsc/build-mvatymx1-25d8b6c0/client-ssr/src-plugin-page-frame-07c4de56a6-VK2OTNLD.js +146 -0
  8. package/.hile-rsc/build-mvatymx1-25d8b6c0/client-ssr/src-plugin-password-form-3bd63d69e5-K3D6TQTX.js +352 -0
  9. package/.hile-rsc/{build-mv1v7sq7-af95bae4 → build-mvatymx1-25d8b6c0}/plugin.json +35 -35
  10. package/.hile-rsc/{build-mv1v7sq7-af95bae4 → build-mvatymx1-25d8b6c0}/server-rsc/index.js +4 -4
  11. package/package.json +6 -6
  12. package/.hile-rsc/build-mv1v7sq7-af95bae4/client-browser/chunks/chunk-UYTFSLNG.js +0 -42775
  13. package/.hile-rsc/build-mv1v7sq7-af95bae4/client-browser/src-plugin-page-frame-07c4de56a6-25BOCBWI.js +0 -2304
  14. package/.hile-rsc/build-mv1v7sq7-af95bae4/client-browser/src-plugin-page-frame-07c4de56a6-3F24AYCH.css +0 -170
  15. package/.hile-rsc/build-mv1v7sq7-af95bae4/client-browser/src-plugin-password-form-3bd63d69e5-GJ25JW7M.js +0 -4768
  16. package/.hile-rsc/build-mv1v7sq7-af95bae4/client-browser/src-plugin-password-form-3bd63d69e5-TRYMJX4F.css +0 -195
  17. package/.hile-rsc/build-mv1v7sq7-af95bae4/client-ssr/chunks/chunk-A2AYEE2Z.js +0 -36628
  18. package/.hile-rsc/build-mv1v7sq7-af95bae4/client-ssr/src-plugin-page-frame-07c4de56a6-WXFM6XOG.js +0 -15601
  19. package/.hile-rsc/build-mv1v7sq7-af95bae4/client-ssr/src-plugin-password-form-3bd63d69e5-ZZ55VGCF.js +0 -120668
  20. /package/.hile-rsc/{build-mv1v7sq7-af95bae4 → build-mvatymx1-25d8b6c0}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
@@ -0,0 +1,146 @@
1
+ "use client";import{$ as Ua,Aa as Je,Ba as jn,Ca as Wp,Da as _p,Ea as Ka,Fa as Vp,Ga as kp,Ha as Ya,Ma as Qa,Na as Ja,S as be,U as vr,V as $r,X as Se,Y as No,Z as er,aa as Mp,b as E,d as y,e as je,f as de,g as m,h as ka,i as W,j as wo,k as Vn,l as Yt,m as N,n as ge,na as qa,o as Ga,oa as zp,p as Ge,pa as Bp,q as P,qa as Op,r as V,ra as Lp,s as q,sa as Ap,t as ja,ta as Hp,ua as kn,v as b,va as Dp,w as Xa,wa as Fp,x as Sr,xa as Gn,y as F,ya as Za,z as Me,za as Rr}from"./chunks/chunk-PN3C7DWD.js";b();function es(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=es(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function C(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=es(e))&&(r&&(r+=" "),r+=t);return r}b();var ts=E(be());function Gp(){}var{resetWarned:wC}=ts.warning;var os=de({}),Xn=()=>{let e=()=>{};return e.deprecated=Gp,e},Qt=Xn;b();var tr="ant",or="anticon",Un=["outlined","borderless","filled","underlined"],jp=(e,t)=>t||(e?`${tr}-${e}`:tr),j=de({getPrefixCls:jp,iconPrefixCls:or}),{Consumer:Xp}=j,rs={};function me(e){let t=N(j),{getPrefixCls:o,direction:r,getPopupContainer:n,renderEmpty:i}=t,a=t[e];return{classNames:rs,styles:rs,...a,getPrefixCls:o,direction:r,getPopupContainer:n,renderEmpty:i}}b();var Jr=E($r());function rr(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function ns(e){if(Array.isArray(e))return rr(e)}function is(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function as(e,t){if(e){if(typeof e=="string")return rr(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?rr(e,t):void 0}}function ss(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ie(e){return ns(e)||is(e)||as(e)||ss()}b();var Fe=e=>e!=null,Re=e=>Fe(e)&&e!==!1&&e!=="",Xe=e=>typeof e=="number"&&!Number.isNaN(e),Ot=e=>typeof e=="string",Y=e=>e!==null&&typeof e=="object",te=e=>typeof e=="function",Er=e=>Fe(e)&&te(e.then);var ls=e=>Y(e)&&"propertyName"in e&&Ot(e.propertyName);var wr=(e,t)=>{let o={...e};return Object.keys(t).forEach(r=>{t[r]._default?o[r]||(o[r]={}):o[r]=wr(o[r],t[r])}),o};var cs=(e={},...t)=>t.filter(o=>!!o).reduce((o,r)=>(Object.keys(r).forEach(n=>{let i=e[n],a=r[n];if(i)if(Y(a))o[n]=cs(i,o[n],a);else{let{_default:s}=i;s&&(o[n]=o[n]||{},o[n][s]=C(o[n][s],a))}else o[n]=C(o[n],a)}),o),{}),Up=(e,...t)=>P(()=>cs.apply(void 0,[e].concat(t)),[e].concat(t)),qp=(...e)=>e.filter(t=>!!t).reduce((t,o={})=>(Object.keys(o).forEach(r=>{t[r]={...t[r],...o[r]}}),t),{}),Zp=(...e)=>P(()=>qp.apply(void 0,e),[].concat(e)),xe=(e,t="root")=>P(()=>e?{[t]:e}:void 0,[e,t]),Jt=(e,t)=>te(e)?e(t):e,ve=(e,t,o,r)=>{let n=e.map(l=>l?Jt(l,o):void 0),i=t.map(l=>l?Jt(l,o):void 0),a=Up.apply(void 0,[r].concat(Ie(n))),s=Zp.apply(void 0,Ie(i));return P(()=>r?[wr(a,r),wr(s,r)]:[a,s],[a,s,r])};b();var cr=E(Se());b();var Kp=de({}),Po=Kp;var jr=E(be());b();var ds=de(void 0);b();var Yp={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},ms=Yp;var ps={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var Qp={...ps,locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month",nextMonth:"Next month",previousYear:"Last year",nextYear:"Next year",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},us=Qp;var Jp={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Nr=Jp;var eu={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...us},timePickerLocale:{...Nr}},Pr=eu;var fs=Pr;var ut="${label} is not a valid ${type}",tu={locale:"en",Pagination:ms,DatePicker:Pr,TimePicker:Nr,Calendar:fs,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Carousel:{prevSlide:"Previous slide",nextSlide:"Next slide"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ut,method:ut,array:ut,object:ut,number:ut,date:ut,boolean:ut,integer:ut,float:ut,regexp:ut,email:ut,url:ut,hex:ut},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},et=tu;var Ir={...et.Modal},Tr=[],gs=()=>Tr.reduce((e,t)=>({...e,...t}),et.Modal);function xs(e){if(e){let t={...e};return Tr.push(t),Ir=gs(),()=>{Tr=Tr.filter(o=>o!==t),Ir=gs()}}Ir={...et.Modal}}function hs(){return Ir}b();var ou=de(void 0),Io=ou;b();var ru=(e,t)=>{let o=N(Io),r=P(()=>{let i=t||et[e],a=o?.[e]??{};return{...te(i)?i():i,...a||{}}},[e,t,o]),n=P(()=>{let i=o?.locale;return o?.exist&&!i?et.locale:i},[o]);return[r,n]},We=ru;var Cs="internalMark",nu=e=>{let{locale:t={},children:o,_ANT_MARK__:r}=e;ge(()=>xs(t?.Modal),[t]);let n=P(()=>({...t,exist:!0}),[t]);return m(Io.Provider,{value:n},o)},ys=nu;b();var nr={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},iu={...nr,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
3
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
4
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,focusOutline:!0,motion:!0},Nt=iu;var Rs=E(Se());var Lt=E(er());var Mr=E(No());var Ae=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ir(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){let{colorSuccess:r,colorWarning:n,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,d=t(s),u=t(r),p=t(n),g=t(i),f=t(a),x=o(l,c),h=e.colorLink||e.colorInfo,v=t(h),S=new Mr.FastColor(g[1]).mix(new Mr.FastColor(g[3]),50).toHexString(),$={};return Ae.forEach(R=>{let I=e[R];if(I){let B=t(I);$[`${R}Hover`]=B[5],$[`${R}Active`]=B[7]}}),{...x,colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:S,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],...$,colorBgMask:new Mr.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}var au=e=>{let t=e,o=e,r=e,n=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:n}},bs=au;function qn(e){let{motionUnit:t,motionBase:o,borderRadius:r,lineWidth:n}=e;return{motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:n+1,...bs(r)}}var su=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},zr=su;function To(e){return(e+8)/e}function Zn(e){let t=Array.from({length:10}).map((o,r)=>{let n=r-1,i=e*Math.E**(n/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:To(o)}))}var lu=e=>{let t=Zn(e),o=t.map(d=>d.size),r=t.map(d=>d.lineHeight),n=o[1],i=o[0],a=o[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Br=lu;function Kn(e){let{sizeUnit:t,sizeStep:o}=e;return{sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}var Ss=E(er());var Yn=E(No()),ft=(e,t)=>new Yn.FastColor(e).setA(t).toRgbString(),uo=(e,t)=>new Yn.FastColor(e).darken(t).toHexString();var vs=e=>{let t=(0,Ss.generate)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},$s=(e,t,o)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorShadow:o||"#000",colorText:ft(n,.88),colorTextSecondary:ft(n,.65),colorTextTertiary:ft(n,.45),colorTextQuaternary:ft(n,.25),colorFill:ft(n,.15),colorFillSecondary:ft(n,.06),colorFillTertiary:ft(n,.04),colorFillQuaternary:ft(n,.02),colorBgSolid:ft(n,1),colorBgSolidHover:ft(n,.75),colorBgSolidActive:ft(n,.95),colorBgLayout:uo(r,4),colorBgContainer:uo(r,0),colorBgElevated:uo(r,0),colorBgSpotlight:ft(n,.85),colorBgBlur:"transparent",colorBorder:uo(r,15),colorBorderDisabled:uo(r,15),colorBorderSecondary:uo(r,6)}};function kt(e){Lt.presetPrimaryColors.pink=Lt.presetPrimaryColors.magenta,Lt.presetPalettes.pink=Lt.presetPalettes.magenta;let t=Object.keys(nr).map(o=>{let r=e[o]===Lt.presetPrimaryColors[o]?Lt.presetPalettes[o]:(0,Lt.generate)(e[o]);return Array.from({length:10},()=>1).reduce((n,i,a)=>(n[`${o}-${a+1}`]=r[a],n[`${o}${a+1}`]=r[a],n),{})}).reduce((o,r)=>(o={...o,...r},o),{});return{...e,...t,...ir(e,{generateColorPalettes:vs,generateNeutralColorPalettes:$s}),...Br(e.fontSize),...Kn(e),...zr(e),...qn(e)}}var cu=(0,Rs.createTheme)(kt),fo=cu;var eo={token:Nt,override:{override:Nt},hashed:!0},go=y.createContext(eo);b();var Ns=E(Mp());b();var Es=E(vr());b();function Or(e){return e&&y.isValidElement(e)&&e.type===y.Fragment}var du=(e,t,o)=>y.isValidElement(e)?y.cloneElement(e,te(o)?o(e.props||{}):o):t;function Pt(e,t){return du(e,e,t)}var mu=({children:e})=>{let{getPrefixCls:t}=y.useContext(j),o=t();return y.isValidElement(e)?y.createElement(Es.default,{visible:!0,motionName:`${o}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:n})=>Pt(e,i=>({className:C(i.className,n),style:{...i.style,...r}}))):e},ws=mu;var Lr=[null,null];function pu(e){if(Lr[0]!==e){let t={};Object.keys(e).forEach(o=>{t[o]={...e[o],dynamicInset:!1}}),Lr[0]=e,Lr[1]=t}return Lr[1]}var uu=({children:e})=>{let t=o=>{let{id:r,builtinPlacements:n,popup:i}=o,a=te(i)?i():i,s=pu(n);return{...o,getPopupContainer:null,arrow:!1,popup:y.createElement(ws,{key:r},a),builtinPlacements:s}};return y.createElement(Ns.UniqueProvider,{postTriggerProps:t},e)},Ar=uu;b();var Qn=de(!1),Hr=({children:e,disabled:t})=>{let o=N(Qn);return m(Qn.Provider,{value:t??o},e)},Mo=Qn;b();b();var Jn=de(void 0),Ps=({children:e,size:t})=>{let o=N(Jn);return m(Jn.Provider,{value:t||o},e)},xo=Jn;function fu(){let e=N(Mo),t=N(xo);return{componentDisabled:e,componentSize:t}}var Is=fu;b();var Gr=E(be());var bu=E(Se()),Z=E(qa());b();var Bs=E(Se());var Ts="6.6.1";var Ms=Ts;var zs=E(No());var ar=E(No());function ei(e){return e>=0&&e<=255}function gu(e,t){let{r:o,g:r,b:n,a:i}=new ar.FastColor(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new ar.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let d=Math.round((o-a*(1-c))/c),u=Math.round((r-s*(1-c))/c),p=Math.round((n-l*(1-c))/c);if(ei(d)&&ei(u)&&ei(p))return new ar.FastColor({r:d,g:u,b:p,a:Math.round(c*100)/100}).toRgbString()}return new ar.FastColor({r:o,g:r,b:n,a:1}).toRgbString()}var ho=gu;function sr(e){let{override:t,...o}=e,r={...t};Object.keys(Nt).forEach(h=>{delete r[h]});let n={...o,...r},i=new zs.FastColor(n.colorShadow),a=i.a,s=h=>i.clone().setA(a*h).toRgbString(),l=480,c=576,d=768,u=992,p=1200,g=1600,f=1920;return n.motion===!1&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:ho(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:ho(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:ho(n.colorWarningBg,n.colorBgContainer),colorErrorAffix:n.colorError,colorWarningAffix:n.colorWarning,fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.focusOutline===!1?0:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:ho(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
5
+ 0 6px 16px 0 ${s(.08)},
6
+ 0 3px 6px -4px ${s(.12)},
7
+ 0 9px 28px 8px ${s(.05)}
8
+ `,boxShadowSecondary:`
9
+ 0 6px 16px 0 ${s(.08)},
10
+ 0 3px 6px -4px ${s(.12)},
11
+ 0 9px 28px 8px ${s(.05)}
12
+ `,boxShadowTertiary:`
13
+ 0 1px 2px 0 ${s(.05)},
14
+ 0 1px 6px -1px ${s(.03)},
15
+ 0 2px 4px 0 ${s(.03)}
16
+ `,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:d-1,screenMD:d,screenMDMin:d,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,screenXXLMax:f-1,screenXXXL:f,screenXXXLMin:f,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${s(.08)}) drop-shadow(0 3px 6px ${s(.12)}) drop-shadow(0 9px 28px ${s(.05)})`,boxShadowCard:`
17
+ 0 1px 2px -2px ${s(.16)},
18
+ 0 3px 6px 0 ${s(.12)},
19
+ 0 5px 12px 4px ${s(.09)}
20
+ `,boxShadowDrawerRight:`
21
+ -6px 0 16px 0 ${s(.08)},
22
+ -3px 0 6px -4px ${s(.12)},
23
+ -9px 0 28px 8px ${s(.05)}
24
+ `,boxShadowDrawerLeft:`
25
+ 6px 0 16px 0 ${s(.08)},
26
+ 3px 0 6px -4px ${s(.12)},
27
+ 9px 0 28px 8px ${s(.05)}
28
+ `,boxShadowDrawerUp:`
29
+ 0 6px 16px 0 ${s(.08)},
30
+ 0 3px 6px -4px ${s(.12)},
31
+ 0 9px 28px 8px ${s(.05)}
32
+ `,boxShadowDrawerDown:`
33
+ 0 -6px 16px 0 ${s(.08)},
34
+ 0 -3px 6px -4px ${s(.12)},
35
+ 0 -9px 28px 8px ${s(.05)}
36
+ `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var ti={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},xu={motionBase:!0,motionUnit:!0},hu={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},Os=(e,t,o)=>{let r=o.getDerivativeToken(e),{override:n,...i}=t,a={...r,override:n};return a=sr(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c,...d}=l,u=d;c&&(u=Os({...a,...d},{override:d},c)),a[s]=u}),a};function Ee(){let{token:e,hashed:t,theme:o,override:r,cssVar:n,zeroRuntime:i}=y.useContext(go),{csp:a,getPrefixCls:s}=y.useContext(j),l={prefix:n?.prefix??s(),key:n?.key??"css-var-root"},c=`${Ms}-${t||""}`,d=o||fo,[u,p,g]=(0,Bs.useCacheToken)(d,[Nt,e],{salt:c,override:r,getComputedToken:Os,cssVar:{...l,unitless:ti,ignore:xu,preserve:hu},nonce:a?.nonce});return[d,g,t?p:"",u,l,!!i]}b();var Ds=E(qa());var Dr=E(Se()),Ls={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ue=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),oi=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block",verticalAlign:"inherit"}}),Cu=new Dr.Keyframes("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),Fr=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),lr=(e,t)=>({outline:`${(0,Dr.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),to=(e,t)=>({"&:focus-visible":lr(e,t)}),As=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...to(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Hs=(e,t,o,r)=>{let n=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...s,...a,[n]:a}}},Wr=e=>({[`.${e}`]:{...oi(),"&::before":{display:"none"},"&[tabindex]":{cursor:"pointer"}},[`.${e} .${e}-icon`]:{display:"block"},[`.${e}-spin`]:{animationName:Cu,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),_r=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...to(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}});var{genStyleHooks:Q,genComponentStyleHook:ri,genSubStyleComponent:Gt}=(0,Ds.genStyleUtils)({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=N(j);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,o,r,n,i]=Ee();return{theme:e,realToken:t,hashId:o,token:r,cssVar:n,zeroRuntime:i}},useCSP:()=>{let{csp:e}=N(j);return e??{}},getResetStyles:(e,t)=>{let o=As(e);return[o,{"&":o},Wr(t?.prefix.iconPrefixCls??or)]},getCommonStyle:Hs,getCompUnitless:()=>ti}),Te=(e,t)=>{let o=`--${e.replace(/\./g,"")}-${t}-`;return[i=>`${o}${i}`,(i,a)=>a?`var(${o}${i}, ${a})`:`var(${o}${i})`]};function Vr(e,t){return Ae.reduce((o,r)=>{let n=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return{...o,...t(r,{lightColor:n,lightBorderColor:i,darkColor:a,textColor:s})}},{})}var Fs=E(Se());var yu=(e,t)=>{let[o,r]=Ee();return(0,Fs.useStyleRegister)({theme:o,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Wr(e))},kr=yu;function ni(e,t,o){let r=Qt("ConfigProvider"),n=e||{},i=n.inherit===!1||!t?{...eo,hashed:t?.hashed??eo.hashed,cssVar:t?.cssVar}:t,a=Ga();return(0,Gr.useMemo)(()=>{if(!e)return t;let s={...i.components};Object.keys(e.components||{}).forEach(d=>{s[d]={...s[d],...e.components[d]}});let l=`css-var-${a.replace(/:/g,"")}`,c={prefix:o?.prefixCls,...i.cssVar,...n.cssVar,key:n.cssVar?.key||l};return{...i,...n,token:{...i.token,...n.token},components:s,cssVar:c}},[n,i,o?.prefixCls,a],(s,l)=>s.some((c,d)=>{let u=l[d];return!(0,Gr.isEqual)(c,u,!0)}))}b();var _s=E(vr());var Ws=de(!0);function ii(e){let t=N(Ws),{children:o}=e,[,r]=Ee(),{motion:n}=r,i=V(!1);return i.current||(i.current=t!==n),i.current?m(Ws.Provider,{value:n},m(_s.Provider,{motion:n},o)):o}b();var Vs=()=>null;var Su=({iconPrefixCls:e,csp:t})=>(kr(e,t),null);var vu=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],$u,Ru,Eu,wu;var Nu=e=>{let{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:n}=e;t!==void 0&&($u=t),o!==void 0&&(Ru=o),"holderRender"in e&&(wu=n),r&&(Eu=r)};var Pu=e=>{let{children:t,csp:o,autoInsertSpaceInButton:r,alert:n,affix:i,anchor:a,app:s,form:l,locale:c,componentSize:d,direction:u,space:p,splitter:g,virtual:f,dropdownMatchSelectWidth:x,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:S,parentContext:$,iconPrefixCls:R,theme:I,componentDisabled:B,segmented:O,statistic:A,spin:w,calendar:T,carousel:z,cascader:M,collapse:H,typography:_,checkbox:L,descriptions:k,divider:X,drawer:J,skeleton:oe,steps:K,image:U,layout:ie,list:re,listy:le,mentions:Ne,modal:he,progress:Ce,result:pe,slider:$e,breadcrumb:ue,masonry:ae,menu:G,pagination:Oe,input:fe,inputPassword:qe,inputSearch:we,textArea:_e,otp:ye,empty:ce,badge:ze,borderBeam:vt,radio:Pe,rate:Le,ribbon:ct,switch:Ze,transfer:$t,avatar:Rt,message:Ke,tag:Ye,table:Ve,card:Mt,cardMeta:nt,tabs:dt,timeline:mt,timePicker:_t,upload:Et,notification:Ct,tree:it,colorPicker:at,datePicker:yt,rangePicker:ot,flex:wt,wave:zt,dropdown:pt,warning:st,tour:bt,tooltip:se,popover:ee,popconfirm:ne,qrcode:Qe,floatButton:Kt,floatButtonGroup:Hn,variant:$p,inputNumber:Rp,treeSelect:Ep,watermark:wp}=e,Dn=P(()=>Y(c)&&Object.prototype.hasOwnProperty.call(c,"default")&&c.default?.locale?c.default:c,[c]),Fa=Yt((ke,Bt)=>{let{prefixCls:Ro}=e;if(Bt)return Bt;let Eo=Ro||$.getPrefixCls("");return ke?`${Eo}-${ke}`:Eo},[$.getPrefixCls,e.prefixCls]),Yo=R||$.iconPrefixCls||or,Qo=o||$.csp,Jo=ni(I,$.theme,{prefixCls:Fa("")}),Fn={csp:Qo,autoInsertSpaceInButton:r,alert:n,affix:i,anchor:a,app:s,locale:Dn||S,direction:u,space:p,splitter:g,virtual:f,popupMatchSelectWidth:h??x,popupOverflow:v,getPrefixCls:Fa,iconPrefixCls:Yo,theme:Jo,segmented:O,statistic:A,spin:w,calendar:T,carousel:z,cascader:M,collapse:H,typography:_,checkbox:L,descriptions:k,divider:X,drawer:J,skeleton:oe,steps:K,image:U,input:fe,inputPassword:qe,inputSearch:we,textArea:_e,otp:ye,layout:ie,list:re,listy:le,mentions:Ne,modal:he,progress:Ce,result:pe,slider:$e,breadcrumb:ue,masonry:ae,menu:G,pagination:Oe,empty:ce,badge:ze,borderBeam:vt,radio:Pe,rate:Le,ribbon:ct,switch:Ze,transfer:$t,avatar:Rt,message:Ke,tag:Ye,table:Ve,card:Mt,cardMeta:nt,tabs:dt,timeline:mt,timePicker:_t,upload:Et,notification:Ct,tree:it,colorPicker:at,datePicker:yt,rangePicker:ot,flex:wt,wave:zt,dropdown:pt,warning:st,tour:bt,tooltip:se,popover:ee,popconfirm:ne,qrcode:Qe,floatButton:Kt,floatButtonGroup:Hn,variant:$p,inputNumber:Rp,treeSelect:Ep,watermark:wp},vo={...$};Object.keys(Fn).forEach(ke=>{Fn[ke]!==void 0&&(vo[ke]=Fn[ke])}),vu.forEach(ke=>{let Bt=e[ke];Bt&&(vo[ke]=Bt)}),typeof r<"u"&&(vo.button={autoInsertSpace:r,...vo.button});let $o=(0,jr.useMemo)(()=>vo,vo,(ke,Bt)=>{let Ro=Object.keys(ke),Eo=Object.keys(Bt);return Ro.length!==Eo.length||Ro.some(br=>ke[br]!==Bt[br])}),{layer:Wn}=N(cr.StyleContext),Np=P(()=>({prefixCls:Yo,csp:Qo,layer:Wn?"antd":void 0,zeroRuntime:!!Wn||Jo?.zeroRuntime}),[Yo,Qo,Wn,Jo?.zeroRuntime]),De=m(je,null,m(Su,{iconPrefixCls:Yo,csp:Qo}),m(Vs,{dropdownMatchSelectWidth:x}),t),Wa=P(()=>(0,jr.merge)(et.Form?.defaultValidateMessages||{},$o.locale?.Form?.defaultValidateMessages||{},$o.form?.validateMessages||{},l?.validateMessages||{}),[$o,l?.validateMessages]);Object.keys(Wa).length>0&&(De=m(ds.Provider,{value:Wa},De)),Dn&&(De=m(ys,{locale:Dn,_ANT_MARK__:Cs},De)),(Yo||Qo)&&(De=m(Po.Provider,{value:Np},De)),d&&(De=m(Ps,{size:d},De)),De=m(ii,null,De),se?.unique&&(De=m(Ar,null,De));let Pp=P(()=>{let{algorithm:ke,token:Bt,components:Ro,cssVar:Eo,...br}=Jo||{},_a=ke&&(!Array.isArray(ke)||ke.length>0)?(0,cr.createTheme)(ke):fo,_n={};Object.entries(Ro||{}).forEach(([Ip,Tp])=>{let Vt={...Tp};"algorithm"in Vt&&(Vt.algorithm===!0?Vt.theme=_a:(Array.isArray(Vt.algorithm)||te(Vt.algorithm))&&(Vt.theme=(0,cr.createTheme)(Vt.algorithm)),delete Vt.algorithm),_n[Ip]=Vt});let Va={...Nt,...Bt};return{...br,theme:_a,token:Va,components:_n,override:{override:Va,..._n},cssVar:Eo}},[Jo]);return I&&(De=m(go.Provider,{value:Pp},De)),$o.warning&&(De=m(os.Provider,{value:$o.warning},De)),B!==void 0&&(De=m(Hr,{disabled:B},De)),m(j.Provider,{value:$o},De)},zo=e=>{let t=N(j),o=N(Io);return m(Pu,{parentContext:t,legacyLocale:o,...e})};zo.ConfigContext=j;zo.SizeContext=xo;zo.config=Nu;zo.useConfig=Is;Object.defineProperty(zo,"SizeContext",{get:()=>xo});var Bo=zo;var Iu=e=>`${e}-css-var`,lt=Iu;b();var Tu=(e,t)=>P(()=>{let o=e??t;return o?{...Y(t)?t:{},...Y(o)?o:{}}:!1},[e,t]),Xr=Tu;var ai=E(Se());function Ur(e,t){return{...Fe(e)&&{"--notification-top":(0,ai.unit)(e)},...Fe(t)&&{"--notification-bottom":(0,ai.unit)(t)}}}function ks(e){return{motionName:`${e}-fade`}}function Gs(e,t,o){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:o?.closeIcon}b();b();var il=E(zp());b();b();b();var js="data-rc-order",Xs="data-rc-priority",Mu="rc-util-key",si=new Map;function qs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function zu(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o.parentNode}return!1}function Zs({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Mu}function li(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Bu(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ci(e){return Array.from((si.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Ks(e,t={}){if(!qs())return null;let{csp:o,prepend:r,priority:n=0}=t,i=Bu(r),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(js,i),a&&n&&s.setAttribute(Xs,`${n}`),o?.nonce&&(s.nonce=o.nonce),s.innerHTML=e;let l=li(t),{firstChild:c}=l;if(r){if(a){let d=(t.styles||ci(l)).filter(u=>{if(!["prepend","prependQueue"].includes(u.getAttribute(js)))return!1;let p=Number(u.getAttribute(Xs)||0);return n>=p});if(d.length)return l.insertBefore(s,d[d.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function Ou(e,t={}){let{styles:o}=t;return o||=ci(li(t)),o.find(r=>r.getAttribute(Zs(t))===e)}function Lu(e,t){let o=si.get(e);if(!o||!zu(document,o)){let r=Ks("",t);if(!r)return;let{parentNode:n}=r;si.set(e,n),e.removeChild(r)}}function Ys(e,t,o={}){if(!qs())return null;let r=li(o),n=ci(r),i={...o,styles:n};Lu(r,i);let a=Ou(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp.nonce&&(a.nonce=i.csp.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;let s=Ks(e,i);return s?.setAttribute(Zs(i),t),s}function Au(e){return e?.getRootNode?.()}function Qs(e){let t=Au(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}var Us={};function Js(e,t){e||Us[t]||(Us[t]=!0)}function Hu(e){return e.replace(/-(.)/g,(t,o)=>o.toUpperCase())}function tl(e,t){Js(e,`[@ant-design/icons] ${t}`)}function di(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function el(e={}){return Object.keys(e).reduce((t,o)=>{let r=e[o];return o==="class"?(t.className=r,delete t.class):(delete t[o],t[Hu(o)]=r),t},{})}function qr(e,t,o){return o?y.createElement(e.tag,{key:t,...el(e.attrs),...o},(e.children||[]).map((r,n)=>qr(r,`${t}-${e.tag}-${n}`))):y.createElement(e.tag,{key:t,...el(e.attrs)},(e.children||[]).map((r,n)=>qr(r,`${t}-${e.tag}-${n}`)))}var Du=`
37
+ .anticon {
38
+ display: inline-flex;
39
+ align-items: center;
40
+ color: inherit;
41
+ font-style: normal;
42
+ line-height: 0;
43
+ text-align: center;
44
+ text-transform: none;
45
+ vertical-align: -0.125em;
46
+ text-rendering: optimizeLegibility;
47
+ -webkit-font-smoothing: antialiased;
48
+ -moz-osx-font-smoothing: grayscale;
49
+ }
50
+
51
+ .anticon > * {
52
+ line-height: 1;
53
+ }
54
+
55
+ .anticon svg {
56
+ display: inline-block;
57
+ vertical-align: inherit;
58
+ }
59
+
60
+ .anticon::before {
61
+ display: none;
62
+ }
63
+
64
+ .anticon .anticon-icon {
65
+ display: block;
66
+ }
67
+
68
+ .anticon[tabindex] {
69
+ cursor: pointer;
70
+ }
71
+
72
+ .anticon-spin {
73
+ -webkit-animation: loadingCircle 1s infinite linear;
74
+ animation: loadingCircle 1s infinite linear;
75
+ }
76
+
77
+ @-webkit-keyframes loadingCircle {
78
+ 100% {
79
+ -webkit-transform: rotate(360deg);
80
+ transform: rotate(360deg);
81
+ }
82
+ }
83
+
84
+ @keyframes loadingCircle {
85
+ 100% {
86
+ -webkit-transform: rotate(360deg);
87
+ transform: rotate(360deg);
88
+ }
89
+ }
90
+ `,ol=e=>{let{csp:t,prefixCls:o,layer:r,zeroRuntime:n}=N(Po),i=Du;o&&(i=i.replace(/anticon/g,o)),r&&(i=`@layer ${r} {
91
+ ${i}
92
+ }`),ge(()=>{if(n)return;let a=e.current,s=Qs(a);Ys(i,"@ant-design-icons",{prepend:!r,csp:t,attachTo:s})},[])};var rl=e=>{let{icon:t,className:o,onClick:r,style:n,primaryColor:i,secondaryColor:a,...s}=e,l=V(null);if(ol(l),tl(di(t),`icon should be icon definiton, but got ${t}`),!di(t))return null;let c=t;return qr(c.icon,`svg-${c.name}`,{className:o,onClick:r,style:n,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};rl.displayName="IconReact";var nl=rl;function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},mi.apply(this,arguments)}var Fu=W((e,t)=>{let{className:o,icon:r,spin:n,rotate:i,tabIndex:a,onClick:s,twoToneColor:l,...c}=e,{prefixCls:d="anticon",rootClassName:u}=N(Po),p=C(u,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!n||r.name==="loading"},o),g=a;g===void 0&&s&&(g=-1);let f=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0;return m("span",mi({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:p}),m(nl,{icon:r,style:f}))}),He=Fu;function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},pi.apply(this,arguments)}var Wu=(e,t)=>m(He,pi({},e,{ref:t,icon:il.default})),_u=W(Wu),Oo=_u;b();var al=E(Bp());function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ui.apply(this,arguments)}var Vu=(e,t)=>m(He,ui({},e,{ref:t,icon:al.default})),ku=W(Vu),oo=ku;b();var sl=E(Op());function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fi.apply(this,arguments)}var Gu=(e,t)=>m(He,fi({},e,{ref:t,icon:sl.default})),ju=W(Gu),Lo=ju;b();var ll=E(Lp());function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},gi.apply(this,arguments)}var Xu=(e,t)=>m(He,gi({},e,{ref:t,icon:ll.default})),Uu=W(Xu),Ao=Uu;b();var cl=E(Ap());function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},xi.apply(this,arguments)}var qu=(e,t)=>m(He,xi({},e,{ref:t,icon:cl.default})),Zu=W(qu),ro=Zu;var Ef=E($r());var Qr=E(Se());b();function no(...e){return e.find(t=>t!==void 0)}var dl=e=>{let{allowClear:t,clearIcon:o,contextAllowClear:r,contextClearIcon:n,defaultAllowClear:i,componentName:a}=e;return P(()=>t??r??i?{clearIcon:no(Y(t)?t?.clearIcon:o,Y(r)?r?.clearIcon:n,y.createElement(oo,null)),disabled:(Y(t)?t?.disabled:void 0)??(Y(r)?r?.disabled:void 0)}:!1,[t,o,r,n,i])};b();b();var ml=E(Hp());function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},hi.apply(this,arguments)}var Ku=(e,t)=>m(He,hi({},e,{ref:t,icon:ml.default})),Yu=W(Ku),jt=Yu;var dr=E(be());var Ho=e=>{if(!e)return;let{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},ul={},pl=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!Fe(e)&&!Fe(t))return null;let o={closeIcon:typeof t!="boolean"&&Fe(t)?t:void 0};return Y(e)&&(o={...o,...e}),o},Qu=(e,t,o)=>e===!1?!1:e?(0,dr.mergeProps)(o,t,e):t===!1?!1:t?(0,dr.mergeProps)(o,t):o.closable?o:!1,Ju=(e,t,o)=>{let{closeIconRender:r}=t,{closeIcon:n,...i}=e,a=n,s=(0,dr.pickAttrs)(i,!0);return Fe(a)&&(r&&(a=r(a)),a=y.isValidElement(a)?y.cloneElement(a,{"aria-label":o,...a.props,...s}):y.createElement("span",{"aria-label":o,...s},a)),[a,{"aria-label":o,...s}]},Ci=(e,t,o=ul,r="Close")=>{let n=pl(e?.closable,e?.closeIcon),i=pl(t?.closable,t?.closeIcon),a={closeIcon:y.createElement(jt,null),...o},s=Qu(n,i,a),l=typeof s!="boolean"?!!s?.disabled:!1;if(s===!1)return[!1,null,l,{}];let[c,d]=Ju(s,a,r);return[!0,c,l,d]},fl=(e,t,o=ul)=>{let[r]=We("global",et.global);return y.useMemo(()=>Ci(e,t,{closeIcon:y.createElement(jt,null),...o},r.close),[e,t,o,r.close])};b();var gl=()=>y.useReducer(e=>e+1,0);b();var Zr=(e,t)=>{let o={};return Y(e)&&(o=e),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},xl=(e,t,o,r)=>P(()=>{let n=Zr(e,r),i=Zr(t),a={blur:!1,...i,...n,closable:n.closable??r??i.closable??!0},s=a.blur?`${o}-mask-blur`:void 0;return[a.enabled!==!1,{mask:s},!!a.closable]},[e,t,o,r]);b();var hl=e=>e==="horizontal"||e==="vertical",io=(e,t,o)=>P(()=>{let r=hl(e),n;return r?n=e:typeof t=="boolean"?n=t?"vertical":"horizontal":n=hl(o)?o:"horizontal",[n,n==="vertical"]},[o,e,t]);b();var Cl=()=>{let[e,t]=q([]),o=Yt(r=>(t(n=>[].concat(Ie(n),[r])),()=>{t(n=>n.filter(i=>i!==r))}),[]);return[e,o]};b();b();var ef=y.createContext(void 0),Do=ef;var Xt=100,tf=10,Co=Xt*tf,Iv=Co+Xt,yl={Modal:Xt,Drawer:Xt,Popover:Xt,Popconfirm:Xt,Tooltip:Xt,Tour:Xt,FloatButton:Xt},of={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},rf=e=>e in yl,Kr=(e,t)=>{let[,o]=Ee(),r=y.useContext(Do),n=rf(e),i;if(t!==void 0)i=[t,t];else{let a=r??0;n?a+=(r?0:o.zIndexPopupBase)+yl[e]:a+=of[e],i=[r===void 0?t:a,a]}return i};var mr=E(Se());var yi=E(Se());var nf=e=>{let{motionDurationMid:t,motionEaseInOut:o}=e,r=`${t} ${o}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(n=>`${n} ${r}`).join(", ")}},bi=(e,t)=>{let{componentCls:o,antCls:r,colorSuccess:n,colorInfo:i,colorWarning:a,colorError:s,colorTextHeading:l,colorText:c,boxShadow:d,borderRadiusLG:u,fontSize:p,lineHeight:g,notificationBg:f,notificationPadding:x,notificationMarginEdge:h,margin:v,calc:S}=e,$=`${o}-notice`,[R,I]=Te(r,"notification");return{[$]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${(0,yi.unit)(S(h).mul(2).equal())})`,padding:x,pointerEvents:"auto",[R("icon-font-size")]:t.iconFontSize,[R("title-font-size")]:t.titleFontSize,[R("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:c,background:f,borderRadius:u,boxShadow:d,fontSize:p,lineHeight:g,wordWrap:"break-word",overflow:"visible",...nf(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:S(v).mul(-1).equal(),height:v,content:'""'},...t.typeStyle&&{"&-success":{background:I("color-success-bg",f)},"&-error":{background:I("color-error-bg",f)},"&-info":{background:I("color-info-bg",f)},"&-warning":{background:I("color-warning-bg",f)}}},[`${$}-wrapper`]:{display:"flex",...t.contentStyle},[`${$}-title`]:{color:l,fontSize:I("title-font-size"),lineHeight:I("title-line-height")},[`${$}-icon`]:{flex:"none",fontSize:I("icon-font-size"),lineHeight:1,[`&${$}-icon-success`]:{color:n},[`&${$}-icon-info, &${$}-icon-loading`]:{color:i},[`&${$}-icon-warning`]:{color:a},[`&${$}-icon-error`]:{color:s}}}},bl=e=>{let{componentCls:t,progressBg:o,notificationProgressHeight:r,fontSize:n,borderRadiusLG:i,width:a,notificationIconSize:s,colorText:l,motionDurationMid:c,fontSizeLG:d,lineHeightLG:u,marginSM:p,marginXS:g,paddingLG:f,notificationPaddingVertical:x,notificationPaddingHorizontal:h,notificationCloseButtonSize:v,colorIcon:S,borderRadiusSM:$,colorIconHover:R,colorBgTextHover:I,colorBgTextActive:B}=e,O=`${t}-notice`;return{...bi(e,{width:a,iconFontSize:s,titleFontSize:d,titleLineHeight:u,contentStyle:{alignItems:"flex-start",gap:p},typeStyle:!0}),[`${O}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:g,minWidth:0},[`${O}-description`]:{color:l,fontSize:n},[`${O}-closable`]:{[`${O}-title, ${O}-description`]:{paddingInlineEnd:f},[`${O}-title + ${O}-description`]:{paddingInlineEnd:0}},[`${O}-close`]:{position:"absolute",top:x,insetInlineEnd:h,display:"flex",alignItems:"center",justifyContent:"center",width:v,height:v,color:S,background:"none",border:"none",borderRadius:$,outline:"none",transition:["color","background-color"].map(A=>`${A} ${c}`).join(", "),"&:hover":{color:R,backgroundColor:I},"&:active":{backgroundColor:B},...to(e)},[`${O}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,yi.unit)(i)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:o},"&::-webkit-progress-value":{borderRadius:i,background:o}},[`${O}-actions`]:{float:"right",marginTop:p}}},Sl=e=>{let{componentCls:t,width:o}=e,r=`${t}-notice`,n=`${r}-actions`,i=bl(e);return{[`${r}-pure-panel`]:{width:o,maxWidth:"100%",...i,[r]:{...i[r],position:"relative",width:"100%",maxWidth:"100%"},[n]:{...i[n],float:"none",textAlign:"end"}}}},af=e=>{let{componentCls:t}=e;return{[t]:bl(e)}},vl=af;var Si=E(Se());var $l=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var sf="--notification-margin-edge",lf=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),Rl=e=>{let t=e?.x??"0",o=e?.y??"0";return`translate3d(${t}, ${o}, 0) scale(var(--notification-scale, 1))`},cf=(e,t)=>{let o=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:n,inlineEnd:i}=lf(o,r),a=e==="top"||e==="bottom",s=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:o,blockEnd:n,horizontal:r,inlineEnd:i,motionOffset:a?{x:"-50%",y:s}:{x:s},baseMotionOffset:a?{x:"-50%"}:void 0,isCenterPlacement:a}},df=e=>e==="bottom"?"column-reverse":"column",mf=e=>{let t=`var(${sf}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},pf=e=>e==="bottom"?"center top":"center bottom",El=e=>(0,Si.unit)(e.calc(e.marginXXL).mul(-1).equal()),uf=e=>{let t=El(e);return`inset(${t} ${t} ${t} ${t})`},ff=(e,t)=>{let o=El(e);return t==="bottom"?`inset(${o} ${o} 50% ${o})`:`inset(50% ${o} ${o} ${o})`},gf=(e,t)=>{let{componentCls:o}=e,{placement:r,vertical:n,blockEnd:i,horizontal:a,inlineEnd:s,isCenterPlacement:l}=t,c=`${o}-notice`,d=`${c}${o}-fade`,u=Rl(t.motionOffset),p=Rl(t.baseMotionOffset),g=pf(n);return{[`&${o}-${r}`]:{[n]:mf(n),[i]:"auto",display:"flex",flexDirection:df(n),...l?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[a]:0,[s]:"auto"},[c]:{[n]:"var(--notification-y, 0)",...l?{left:"50%",transform:p}:{[a]:"var(--notification-x, 0)"},transformOrigin:g},[`${d}-appear-prepare, ${d}-enter-prepare`]:{opacity:0,transform:u,transition:"none"},[`${d}-appear-start, ${d}-enter-start`]:{opacity:0,transform:u},[`${d}-appear-active, ${d}-enter-active`]:{opacity:1,transform:p},[`${d}-leave-start`]:{opacity:1,transform:p},[`${d}-leave-active`]:{opacity:0,transform:u},[`&${o}-stack:not(${o}-stack-expanded)`]:{[c]:{clipPath:ff(e,n)},[`${c}[data-notification-index='0']`]:{clipPath:uf(e)}}}}},xf=(e,t=$l)=>{let{notificationMotionOffset:o}=e,r=(0,Si.unit)(o);return{...t.reduce((n,i)=>({...n,...gf(e,cf(i,r))}),{})}},hf=e=>{let{componentCls:t}=e;return{[t]:xf(e)}},wl=hf;var Cf=3,Nl=e=>({zIndexPopup:e.zIndexPopupBase+Co+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Yr=e=>{let t=e.paddingMD,o=e.paddingLG;return(0,Z.mergeToken)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,mr.unit)(e.paddingMD)} ${(0,mr.unit)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},yf=e=>`inset(${e} ${e} ${e} ${e})`,bf=e=>{let{componentCls:t,motionDurationMid:o,motionDurationSlow:r,motionEaseInOut:n}=e,a=`${`${t}-list`}-content`;return{[a]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${n} ${o}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},Sf=(e,t)=>{let{componentCls:o,notificationMarginEdge:r}=e,n="--notification-margin-edge",i=`${o}-notice`,a=`${o}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",l=t.stackVisibleCount??Cf,c=`${i}:nth-last-child(n + ${l+1})`,d=(0,mr.unit)(e.calc(e.marginXXL).mul(-1).equal()),u=yf(d);return{[o]:{...Ue(e),[n]:(0,mr.unit)(r),position:"fixed",zIndex:e.zIndexPopup,width:s,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${o}-hook-holder`]:{position:"relative"},[`&${a}`]:{maxHeight:"100vh",padding:`var(${n})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...bf(e),[`&${o}-stack`]:{[i]:{clipPath:u},[`&:not(${o}-stack-expanded)`]:{[i]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${i}:not(${i}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[c]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}}}},Vv=Gt(["Notification","PurePanel"],e=>Sl(Yr(e)),Nl),vi=(e,t)=>{let o=t.itemStyle??vl;return[Sf(e,t),o(e),wl(e)]},Pl=Q("Notification",e=>{let t=Yr(e);return vi(t,{listWidthKey:"width"})},Nl);var Il=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),o=e.paddingSM;return(0,Z.mergeToken)(Yr(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:o})},Tl=e=>({zIndexPopup:e.zIndexPopupBase+Co+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),$i=e=>{let{fontSize:t,fontSizeLG:o,lineHeight:r}=e;return bi(e,{width:"max-content",iconFontSize:o,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},vf=e=>{let{componentCls:t}=e,o=`${t}-notice`,r=`${t}-list-content`,n=$i(e),{"&::after":i,...a}=n[o],s={...a,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:"isolate","&::before":{...s,top:`calc(var(--top-notificiation-height) - ${(0,Qr.unit)(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${(0,Qr.unit)(e.margin)})`},"&::after":{...s,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${(0,Qr.unit)(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},$f=e=>{let{componentCls:t}=e,o=`${t}-notice`,r=$i(e);return{[`${o}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[o]:{...r[o],position:"relative",width:"max-content",maxWidth:"100%"}}}},qv=Gt(["Message","PurePanel"],e=>$f(Il(e)),Tl),Rf=e=>({[e.componentCls]:$i(e)}),Ml=Q("Message",e=>{let t=Il(e);return[vi(t,{stackVisibleCount:1,itemStyle:Rf}),vf(t)]},Tl);var wf={info:m(Ao,null),success:m(Oo,null),error:m(oo,null),warning:m(Lo,null),loading:m(ro,null)},zl=(e,t)=>t||e&&wf[e]||null;function Bl(e,t){return{motionName:t??`${e}-fade`}}function Ol(e){let t,o=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(n,i)=>o.then(n,i),r.promise=o,r}var Nf=8,Pf=3,If=!1,Tf=({children:e,prefixCls:t})=>{let o=lt(t),[r,n]=Ml(t,o);return m(Jr.NotificationProvider,{classNames:{list:C(r,n,o)}},e)},Mf=(e,{prefixCls:t,key:o})=>m(Tf,{prefixCls:t,key:o},e),zf=W((e,t)=>{let{top:o,prefixCls:r,getContainer:n,maxCount:i,duration:a=Pf,rtl:s,classNames:l,styles:c,transitionName:d,pauseOnHover:u=!0,stack:p,onAllRemoved:g}=e,{getPrefixCls:f,direction:x,getPopupContainer:h}=me("message"),{message:v}=N(j),S=r||f("message"),$=xe(v?.style),[R,I]=ve([v?.classNames,l],[v?.styles,$,c],{props:e}),B=()=>Ur(o??Nf),O=()=>C({[`${S}-rtl`]:s??x==="rtl"}),A=()=>Bl(S,d),w=Xr(p,If),[T,z]=(0,Jr.useNotification)({prefixCls:S,style:B,className:O,motion:A,closable:!1,duration:a,getContainer:()=>n?.()||h?.()||document.body,maxCount:i,onAllRemoved:g,classNames:R,styles:I,renderNotifications:Mf,pauseOnHover:u,stack:w});return Ge(t,()=>({...T,prefixCls:S,message:v})),z}),Ll=0;function Bf(e){let t=V(null),o=Qt("Message");return[P(()=>{let n=c=>{t.current?.close(c)},i=c=>{if(!t.current){let L=()=>{};return L.then=()=>{},L}let{open:d,prefixCls:u,message:p}=t.current,g=p?.className||{},f=`${u}-notice`,{content:x,icon:h,type:v,key:S,className:$,style:R,onClose:I,classNames:B={},styles:O={},...A}=c,w=S;Fe(w)||(Ll+=1,w=`antd-message-${Ll}`);let T={...e,...c},z=Jt(B,{props:T}),M=Jt(O,{props:T}),H=zl(v,h),_=v?`${f}-icon-${v}`:void 0;return Ol(L=>(d({...A,key:w,icon:H,title:x,classNames:{...z,wrapper:C(v&&`${u}-${v}`,z?.wrapper),icon:C(_,z?.icon)},styles:M,placement:"top",className:C({[`${f}-${v}`]:v},$,g),style:R,onClose:()=>{I?.(),L()}}),()=>{n(w)}))},s={open:i,destroy:c=>{c!==void 0?n(c):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{let d=(u,p,g)=>{let f;Y(u)&&"content"in u?f=u:f={content:u};let x,h;te(p)?h=p:(x=p,h=g);let v={onClose:h,duration:x,...f,type:c};return i(v)};s[c]=d}),s},[]),m(zf,{key:"message-holder",...e,ref:t})]}function Ri(e){return Bf(e)}b();b();var Jc=E(be());b();var Kc=E(be());var At=(e,t,o)=>o!==void 0?o:`${e}-${t}`;b();b();var Nc=E(be());b();var Ht=E(be());b();var ao=E(be());var Of=e=>{let{componentCls:t,colorPrimary:o,motionDurationSlow:r,motionEaseInOut:n,motionEaseOutCirc:i,antCls:a}=e,[,s]=Te(a,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:s("color",o),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(l=>`${l} ${i}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(l=>`${l} ${r} ${n}`).join(",")}}}}},Al=ri("Wave",Of);b();var Fo=E(be());var en=`${tr}-wave-target`;b();var Fl=E(vr()),Ut=E(be());var Hl=e=>e?Ot(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function Dl(e,t=null){let o=getComputedStyle(e),{borderTopColor:r,borderColor:n,backgroundColor:i}=o;return t&&Hl(o[t])?o[t]:[r,n,i].find(Hl)??null}function Ei(e){return Number.isNaN(e)?0:e}var Lf=e=>{let{className:t,target:o,component:r,colorSource:n}=e,i=V(null),{getPrefixCls:a}=N(j),s=a(),[l]=Te(s,"wave"),[c,d]=q(null),[u,p]=q([]),[g,f]=q(0),[x,h]=q(0),[v,S]=q(0),[$,R]=q(0),[I,B]=q(!1),O={left:g,top:x,width:v,height:$,borderRadius:u.map(T=>`${T}px`).join(" ")};c&&(O[l("color")]=c);function A(){let T=getComputedStyle(o);d(Dl(o,n));let z=T.position==="static",{borderLeftWidth:M,borderTopWidth:H}=T;f(z?o.offsetLeft:Ei(-Number.parseFloat(M))),h(z?o.offsetTop:Ei(-Number.parseFloat(H))),S(o.offsetWidth),R(o.offsetHeight);let{borderTopLeftRadius:_,borderTopRightRadius:L,borderBottomLeftRadius:k,borderBottomRightRadius:X}=T;p([_,L,X,k].map(J=>Ei(Number.parseFloat(J))))}if(ge(()=>{if(o){let T=(0,Ut.raf)(()=>{A(),B(!0)}),z;return typeof ResizeObserver<"u"&&(z=new ResizeObserver(A),z.observe(o)),()=>{Ut.raf.cancel(T),z?.disconnect()}}},[o]),!I)return null;let w=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(en);return m(Fl.default,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,z)=>{if(z.deadline||ls(z)&&z.propertyName==="opacity"){let M=i.current?.parentElement;(0,Ut.unmount)(M).then(()=>{M?.remove()})}return!1}},({className:T},z)=>m("div",{ref:(0,Ut.composeRef)(i,z),className:C(t,T,{"wave-quick":w}),style:O}))},Af=(e,t)=>{let{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),(0,Ut.render)(m(Lf,{...t,target:e}),r)},Wl=Af;var Hf=(e,t,o,r)=>{let{wave:n}=N(j),[,i,a]=Ee(),s=(0,Fo.useEvent)(d=>{let u=e.current;if(n?.disabled||!u)return;let p=u.querySelector(`.${en}`)||u,{showEffect:g}=n||{};(g||Wl)(p,{className:t,token:i,component:o,event:d,hashId:a,colorSource:r})}),l=V(null);return ge(()=>()=>{Fo.raf.cancel(l.current)},[]),d=>{Fo.raf.cancel(l.current),l.current=(0,Fo.raf)(()=>{s(d)})}},_l=Hf;var Vl={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},Df=e=>{let{children:t,disabled:o,component:r,colorSource:n}=e,{getPrefixCls:i,wave:a}=N(j),s=V(null),l=i("wave"),c=Al(l),d=_l(s,C(l,c),r,n);if(y.useEffect(()=>{let p=s.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||o)return;let g=h=>{!(0,ao.isVisible)(h.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")&&!p.className.includes("disabled:")||p.getAttribute("aria-disabled")==="true"||p.className.includes("-leave")||d(h)},f=a?.triggerType,x=f&&f in Vl?Vl[f]:"click";return p.addEventListener(x,g,!0),()=>{p.removeEventListener(x,g,!0)}},[o,a?.triggerType]),!y.isValidElement(t))return t??null;let u=(0,ao.supportRef)(t)?(0,ao.composeRef)((0,ao.getNodeRef)(t),s):s;return Pt(t,{ref:u})},kl=Df;b();var Ff=e=>{let t=y.useContext(xo);return y.useMemo(()=>e?Ot(e)?e??t:te(e)?e(t):t:t,[e,t])},tt=Ff;b();var jl=E(be());var Wf=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Gl=Q(["Space","Compact"],Wf,()=>({}),{resetStyle:!1});var tn=de(null),Wo=(e,t)=>{let o=N(tn),r=P(()=>{if(!o)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=o,s=n==="vertical"?"-vertical-":"-";return C(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,o]);return{compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:r}},Xl=e=>{let{children:t}=e;return m(tn.Provider,{value:null},t)},_f=e=>{let{children:t,...o}=e;return m(tn.Provider,{value:P(()=>o,[o])},t)},Vf=W((e,t)=>{let{getPrefixCls:o,direction:r}=N(j),{size:n,direction:i,orientation:a,block:s,prefixCls:l,className:c,rootClassName:d,children:u,vertical:p,...g}=e,[f,x]=io(a,p,i),h=tt(A=>n??A),v=o("space-compact",l),[S]=Gl(v),$=C(v,S,{[`${v}-rtl`]:r==="rtl",[`${v}-block`]:s,[`${v}-vertical`]:x},c,d),R=N(tn),I=V(null);Ge(t,()=>({nativeElement:I.current}));let B=(0,jl.toArray)(u),O=P(()=>B.map((A,w)=>{let T=A?.key||`${v}-item-${w}`;return m(_f,{key:T,compactSize:h,compactDirection:f,isFirstItem:w===0&&(!R||R?.isFirstItem),isLastItem:w===B.length-1&&(!R||R?.isLastItem)},A)}),[B,R,f,h,v]);return B.length===0?null:m("div",{ref:I,className:$,...g},O)}),Ul=Vf;b();var wi=de(void 0),kf=e=>{let{getPrefixCls:t,direction:o}=N(j),{prefixCls:r,size:n,className:i,...a}=e,s=t("btn-group",r),[,,l]=Ee(),c=P(()=>{switch(n){case"large":return"lg";case"small":return"sm";default:return""}},[n]),d=C(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:o==="rtl"},i,l);return m(wi.Provider,{value:n},m("div",{...a,className:d}))},ql=kf;b();var Zl=/^[\u4E00-\u9FA5]{2}$/,on=Zl.test.bind(Zl);function rn(e){return e==="danger"?{danger:!0}:{type:e}}function nn(e){return e==="text"||e==="link"}function Gf(e,t,o,r){if(!Re(e))return;let n=t?" ":"";return!Ot(e)&&!Xe(e)&&Ot(e.type)&&on(e.props.children)?Pt(e,i=>{let a=C(i.className,r)||void 0,s={...o,...i.style};return{...i,children:i.children.split("").join(n),className:a,style:s}}):Ot(e)?y.createElement("span",{className:r,style:o},on(e)?e.split("").join(n):e):Or(e)?y.createElement("span",{className:r,style:o},e):Pt(e,i=>({...i,className:C(i.className,r)||void 0,style:{...i.style,...o}}))}function Kl(e,t,o,r){let n=!1,i=[];return y.Children.forEach(e,a=>{let s=Ot(a)||Xe(a);if(n&&s){let l=i.length-1,c=i[l];i[l]=`${c}${a}`}else i.push(a);n=s}),y.Children.map(i,a=>Gf(a,t,o,r))}var p0=["default","primary","danger"].concat(Ie(Ae));b();var Ql=E(vr());b();var jf=W((e,t)=>{let{className:o,style:r,children:n,prefixCls:i}=e,a=C(`${i}-icon`,o);return y.createElement("span",{ref:t,className:a,style:r},n)}),an=jf;var Yl=W((e,t)=>{let{prefixCls:o,className:r,style:n,iconClassName:i}=e,a=C(`${o}-loading-icon`,r);return y.createElement(an,{prefixCls:o,className:a,style:n,ref:t},y.createElement(ro,{className:i}))}),Ni=()=>({width:0,opacity:0,transform:"scale(0)"}),Pi=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Xf=e=>{let{prefixCls:t,loading:o,existIcon:r,className:n,style:i,mount:a}=e,s=!!o;return r?y.createElement(Yl,{prefixCls:t,className:n,style:i}):y.createElement(Ql.default,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Ni,onAppearActive:Pi,onEnterStart:Ni,onEnterActive:Pi,onLeaveStart:Pi,onLeaveActive:Ni},({className:l,style:c},d)=>{let u={...i,...c};return y.createElement(Yl,{prefixCls:t,className:C(n,l),style:u,ref:d})})},Jl=Xf;var Li=E(Se());var Ii=E(Se());var ec=e=>({animationDuration:e,animationFillMode:"both"}),sn=(e,t,o,r,n=!1)=>{let i=n?"&":"";return{[`
93
+ ${i}${e}-enter,
94
+ ${i}${e}-appear
95
+ `]:{...ec(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...ec(r),animationPlayState:"paused"},[`
96
+ ${i}${e}-enter${e}-enter-active,
97
+ ${i}${e}-appear${e}-appear-active
98
+ `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}};var tc=new Ii.Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),oc=new Ii.Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),pr=(e,t=!1)=>{let{antCls:o}=e,r=`${o}-fade`,n=t?"&":"";return[sn(r,tc,oc,e.motionDurationMid,t),{[`
99
+ ${n}${r}-enter,
100
+ ${n}${r}-appear
101
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};var Ti=()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}});var gt=E(Se());var rc=new gt.Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),nc=new gt.Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Mi=new gt.Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zi=new gt.Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),ic=new gt.Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ac=new gt.Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),sc=new gt.Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),lc=new gt.Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),cc=new gt.Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),dc=new gt.Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),mc=new gt.Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),pc=new gt.Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Uf={zoom:{inKeyframes:rc,outKeyframes:nc},"zoom-big":{inKeyframes:Mi,outKeyframes:zi},"zoom-big-fast":{inKeyframes:Mi,outKeyframes:zi},"zoom-left":{inKeyframes:sc,outKeyframes:lc},"zoom-right":{inKeyframes:cc,outKeyframes:dc},"zoom-up":{inKeyframes:ic,outKeyframes:ac},"zoom-down":{inKeyframes:mc,outKeyframes:pc}},yo=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=Uf[t];return[sn(r,n,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
102
+ ${r}-enter,
103
+ ${r}-appear
104
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var uc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),qf=e=>{let{componentCls:t,fontSize:o,lineWidth:r,groupBorderColor:n,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},uc(`${t}-primary`,n),uc(`${t}-danger`,i)]}},fc=qf;var vc=E(Se());function gc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bo(e){"@babel/helpers - typeof";return bo=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},bo(e)}function xc(e,t){if(bo(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(bo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hc(e){var t=xc(e,"string");return bo(t)=="symbol"?t:t+""}function Cc(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hc(r.key),r)}}function yc(e,t,o){return t&&Cc(e.prototype,t),o&&Cc(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var Bi=E(kn()),Zf=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"",Kf=(e,t)=>e?Zf(e,t):"",ur=(function(){function e(t){if(gc(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:r,percent:n})=>({color:new e(r),percent:n})),this.metaColor=new Bi.Color(this.colors[0].color.metaColor)):this.metaColor=new Bi.Color(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return yc(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Kf(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:o}=this;return o?`linear-gradient(90deg, ${o.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(o){return!o||this.isGradient()!==o.isGradient()?!1:this.isGradient()?this.colors.length===o.colors.length&&this.colors.every((r,n)=>{let i=o.colors[n];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===o.toHexString()}}])})();b();var Oi=E(kn());var Yf=E(kn());var bc=e=>e instanceof ur?e:new ur(e);var Sc=(e,t)=>{let{r:o,g:r,b:n,a:i}=e.toRgb(),a=new Oi.Color(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:o*.299+r*.587+n*.114>192};var ln=e=>{let{paddingInline:t,onlyIconSize:o,borderColorDisabled:r}=e;return(0,Z.mergeToken)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o,colorBorderDisabled:r})},cn=e=>{let t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,n=e.contentLineHeight??To(t),i=e.contentLineHeightSM??To(o),a=e.contentLineHeightLG??To(r),s=Sc(new ur(e.colorBgSolid),"#fff")?"#000":"#fff",l=Ae.reduce((u,p)=>({...u,[`${p}ShadowColor`]:`0 ${(0,vc.unit)(e.controlOutlineWidth)} 0 ${ho(e[`${p}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,d=e.colorBgContainerDisabled;return{...l,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:r,contentLineHeight:n,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*n)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:d}};var Qf=e=>{let{componentCls:t,antCls:o,lineWidth:r,lineType:n}=e,[i,a]=Te(o,"btn");return{[t]:[{[i("border-width")]:r,[i("border-color")]:"#000",[i("border-color-hover")]:a("border-color"),[i("border-color-active")]:a("border-color"),[i("border-color-disabled")]:a("border-color"),[i("border-style")]:n,[i("text-color")]:"#000",[i("text-color-hover")]:a("text-color"),[i("text-color-active")]:a("text-color"),[i("text-color-disabled")]:a("text-color"),[i("bg-color")]:"#ddd",[i("bg-color-hover")]:a("bg-color"),[i("bg-color-active")]:a("bg-color"),[i("bg-color-disabled")]:e.colorBgContainerDisabled,[i("bg-color-container")]:e.colorBgContainer,[i("shadow")]:"none"},{border:[a("border-width"),a("border-style"),a("border-color")].join(" "),color:a("text-color"),backgroundColor:a("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a("border-width"),a("border-style"),a("border-color-hover")].join(" "),color:a("text-color-hover"),backgroundColor:a("bg-color-hover")},"&:active":{border:[a("border-width"),a("border-style"),a("border-color-active")].join(" "),color:a("text-color-active"),backgroundColor:a("bg-color-active")}}},{[`&${t}-variant-solid`]:{[i("solid-bg-color")]:a("color-base"),[i("solid-bg-color-hover")]:a("color-hover"),[i("solid-bg-color-active")]:a("color-active"),[i("border-color")]:"transparent",[i("text-color")]:e.colorTextLightSolid,[i("bg-color")]:a("solid-bg-color"),[i("bg-color-hover")]:a("solid-bg-color-hover"),[i("bg-color-active")]:a("solid-bg-color-active"),boxShadow:a("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("border-color")]:a("color-base"),[i("border-color-hover")]:a("color-hover"),[i("border-color-active")]:a("color-active"),[i("bg-color")]:a("bg-color-container"),[i("text-color")]:a("color-base"),[i("text-color-hover")]:a("color-hover"),[i("text-color-active")]:a("color-active"),boxShadow:a("shadow")},[`&${t}-variant-dashed`]:{[i("border-style")]:"dashed",[i("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i("border-color")]:"transparent",[i("text-color")]:a("color-base"),[i("bg-color")]:a("color-light"),[i("bg-color-hover")]:a("color-light-hover"),[i("bg-color-active")]:a("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[i("border-color")]:"transparent",[i("text-color")]:a("color-base"),[i("text-color-hover")]:a("color-hover"),[i("text-color-active")]:a("color-active"),[i("bg-color")]:"transparent",[i("bg-color-hover")]:"transparent",[i("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[i("bg-color-hover")]:a("color-light"),[i("bg-color-active")]:a("color-light-active")}},{[`&${t}-variant-link`]:{[i("color-base")]:e.colorLink,[i("color-hover")]:e.colorLinkHover,[i("color-active")]:e.colorLinkActive,[i("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[i("color-base")]:e.colorPrimary,[i("color-hover")]:e.colorPrimaryHover,[i("color-active")]:e.colorPrimaryActive,[i("color-light")]:e.colorPrimaryBg,[i("color-light-hover")]:e.colorPrimaryBgHover,[i("color-light-active")]:e.colorPrimaryBorder,[i("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.primaryColor,[i("text-color-hover")]:a("text-color"),[i("text-color-active")]:a("text-color")}},[`&${t}-color-dangerous`]:{[i("color-base")]:e.colorError,[i("color-hover")]:e.colorErrorHover,[i("color-active")]:e.colorErrorActive,[i("color-light")]:e.colorErrorBg,[i("color-light-hover")]:e.colorErrorBgFilledHover,[i("color-light-active")]:e.colorErrorBgActive,[i("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[i("text-color")]:e.dangerColor,[i("text-color-hover")]:a("text-color"),[i("text-color-active")]:a("text-color")}},[`&${t}-color-default`]:{[i("solid-bg-color")]:e.colorBgSolid,[i("solid-bg-color-hover")]:e.colorBgSolidHover,[i("solid-bg-color-active")]:e.colorBgSolidActive,[i("color-base")]:e.defaultBorderColor,[i("color-hover")]:e.defaultHoverBorderColor,[i("color-active")]:e.defaultActiveBorderColor,[i("color-light")]:e.colorFillTertiary,[i("color-light-hover")]:e.colorFillSecondary,[i("color-light-active")]:e.colorFill,[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i("text-color")]:e.solidTextColor,[i("text-color-hover")]:a("text-color"),[i("text-color-active")]:a("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[i("text-color-hover")]:a("text-color"),[i("text-color-active")]:a("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultColor,[i("text-color-hover")]:e.defaultHoverColor,[i("text-color-active")]:e.defaultActiveColor,[i("bg-color-container")]:e.defaultBg,[i("bg-color-hover")]:e.defaultHoverBg,[i("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i("text-color")]:e.textTextColor,[i("text-color-hover")]:e.textTextHoverColor,[i("text-color-active")]:e.textTextActiveColor,[i("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("text-color")]:e.defaultGhostColor,[i("border-color")]:e.defaultGhostBorderColor}}}},Ae.map(s=>{let l=e[`${s}6`],c=e[`${s}1`],d=e[`${s}Hover`],u=e[`${s}2`],p=e[`${s}3`],g=e[`${s}Active`],f=e[`${s}ShadowColor`];return{[`&${t}-color-${s}`]:{[i("color-base")]:l,[i("color-hover")]:d,[i("color-active")]:g,[i("color-light")]:c,[i("color-light-hover")]:u,[i("color-light-active")]:p,[i("shadow")]:f}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:a("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[i("bg-color")]:e.ghostBg,[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg,[i("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i("bg-color-hover")]:e.ghostBg,[i("bg-color-active")]:e.ghostBg}}}]}},$c=Qf;var Jf=e=>{let{componentCls:t,iconCls:o,fontWeight:r,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...Ti(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:oi(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",[o]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":to(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:n,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineEnd:l(s).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineStart:l(s).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},eg=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Ai=(e,t="")=>{let{componentCls:o,controlHeight:r,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:n,height:r,padding:`${(0,Li.unit)(l)} ${(0,Li.unit)(a)}`,borderRadius:i,[`&${o}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${o}${o}-circle${t}`]:eg(e)},{[`${o}${o}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${o}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},tg=e=>{let t=(0,Z.mergeToken)(e,{fontSize:e.contentFontSize});return Ai(t,e.componentCls)},og=e=>{let t=(0,Z.mergeToken)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ai(t,`${e.componentCls}-sm`)},rg=e=>{let t=(0,Z.mergeToken)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ai(t,`${e.componentCls}-lg`)},ng=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Rc=Q("Button",e=>{let t=ln(e);return[Jf(t),tg(t),og(t),rg(t),ng(t),$c(t),fc(t)]},cn,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ig(e,t,o,r){let{focusElCls:n,focus:i,borderElCls:a}=o,s=a?"> *":"",l=s?` ${s}`:"",c=p=>p.filter(Boolean).map(g=>`&:${g}${l}`).join(","),d=c(["hover",n?`hover${n}`:null]),u=c([i?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[u]:{zIndex:3},[d]:{zIndex:4},...n?{[`&${n}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function ag(e,t,o){let{borderElCls:r}=o,n=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function _o(e,t={focus:!0}){let{componentCls:o}=e,{componentCls:r}=t,n=r||o,i=`${n}-compact`;return{[i]:{...ig(e,i,t,n),...ag(n,i,t)}}}function sg(e,t,o){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function lg(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ec(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...sg(e,t,e.componentCls),...lg(e.componentCls,t)}}}var cg=e=>{let{antCls:t,componentCls:o,lineWidth:r,calc:n,colorBgContainer:i}=e,a=`${o}-variant-solid:not([disabled])`,s=n(r).mul(-1).equal(),[l,c]=Te(t,"btn"),d=u=>({[`${o}-compact${u?"-vertical":""}-item`]:{[l("compact-connect-border-color")]:c("bg-color-hover"),[`&${a}`]:{transition:"none",[`& + ${a}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},u?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:"none"}}}});return[d(),d(!0),{[`${a}${o}-color-default`]:{[l("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${i})`}}]},wc=Gt(["Button","compact"],e=>{let t=ln(e);return[_o(t),Ec(t),cg(t)]},cn);function dg(e){if(Y(e)){let t=e?.delay;return t=Xe(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var mg={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},pg=y.forwardRef((e,t)=>{let{_skipSemantic:o,loading:r=!1,prefixCls:n,color:i,variant:a,type:s,danger:l=!1,shape:c,size:d,disabled:u,className:p,rootClassName:g,children:f,icon:x,iconPosition:h,iconPlacement:v,ghost:S=!1,block:$=!1,htmlType:R="button",classNames:I,styles:B,style:O,autoInsertSpace:A,autoFocus:w,...T}=e,z=(0,Ht.toArray)(f),M=s||"default",{getPrefixCls:H,direction:_,autoInsertSpace:L,className:k,style:X,classNames:J,styles:oe,loadingIcon:K,shape:U,color:ie,variant:re}=me("button"),le=c||U||"default",[Ne,he]=P(()=>{if(i&&a)return[i,a];if(s||l){let se=mg[M]||[];return l?["danger",se[1]]:se}return a==="solid"?["primary",a]:ie&&re?[ie,re]:re==="solid"?["primary",re]:["default","outlined"]},[i,a,s,l,ie,re,M]),[Ce,pe]=P(()=>S&&he==="solid"?[Ne,"outlined"]:[Ne,he],[Ne,he,S]),$e=Ce==="danger",ue=$e?"dangerous":Ce,ae=A??L??!0,G=H("btn",n),[Oe,fe]=Rc(G),qe=N(Mo),we=u??qe,_e=N(wi),ye=P(()=>dg(r),[r]),[ce,ze]=(0,Ht.useDelayState)(ye.loading),[vt,Pe]=q(!1),Le=V(null),ct=(0,Ht.useComposeRef)(t,Le),Ze=z.length===1&&!x&&!nn(pe),$t=V(!0);y.useEffect(()=>($t.current=!1,()=>{$t.current=!0}),[]),(0,Ht.useLayoutEffect)(()=>{ye.delay>0?ze(!0,{ms:ye.delay}):ze(ye.loading,!0)},[ye.delay,ye.loading]),ge(()=>{if(!Le.current||!ae)return;let se=Le.current.textContent||"";Ze&&on(se)?vt||Pe(!0):vt&&Pe(!1)}),ge(()=>{w&&Le.current?.focus()},[]);let Rt=y.useCallback(se=>{if(ce||we){se.preventDefault();return}e.onClick?.(("href"in e,se))},[e.onClick,ce,we]),{compactSize:Ke,compactItemClassnames:Ye}=Wo(G,_),Ve=tt(se=>d??Ke??_e??se),Mt=ce?"loading":x,nt=v??h??"start",dt=(0,Ht.omit)(T,["navigate"]),mt={...e,type:M,color:Ce,variant:pe,danger:$e,shape:le,size:Ve,disabled:we,loading:ce,iconPlacement:nt},_t=xe(X),Et=xe(O),[Ct,it]=ve([o?void 0:J,I],[o?void 0:oe,_t,B,Et],{props:mt}),at=C(G,Oe,fe,{[`${G}-${le}`]:le!=="default"&&le!=="square"&&le,[`${G}-${M}`]:M,[`${G}-dangerous`]:l,[`${G}-color-${ue}`]:ue,[`${G}-variant-${pe}`]:pe,[`${G}-lg`]:Ve==="large",[`${G}-sm`]:Ve==="small",[`${G}-icon-only`]:!f&&f!==0&&!!Mt,[`${G}-background-ghost`]:S&&!nn(pe),[`${G}-loading`]:ce,[`${G}-two-chinese-chars`]:vt&&ae&&!ce,[`${G}-block`]:$,[`${G}-rtl`]:_==="rtl",[`${G}-icon-end`]:nt==="end"},Ye,p,g,k,Ct.root),yt={className:Ct.icon,style:it.icon},ot=se=>y.createElement(an,{prefixCls:G,...yt},se),wt=y.createElement(Jl,{existIcon:!!x,prefixCls:G,loading:ce,mount:$t.current,...yt}),zt=Y(r)&&r.icon||K,pt;x&&!ce?pt=ot(x):r&&zt?pt=ot(zt):pt=wt;let st=Re(f)?Kl(f,Ze&&ae,it.content,Ct.content):null;if(dt.href!==void 0)return y.createElement("a",{...dt,className:C(at,{[`${G}-disabled`]:we}),href:we?void 0:dt.href,style:it.root,onClick:Rt,ref:ct,tabIndex:we?-1:0,"aria-disabled":we},pt,st);let bt=y.createElement("button",{...T,type:R,className:at,style:it.root,onClick:Rt,disabled:we,ref:ct},pt,st,Ye&&y.createElement(wc,{prefixCls:G}));return nn(pe)||(bt=y.createElement(kl,{component:"Button",disabled:ce},bt)),bt}),Hi=pg;Hi.Group=ql;Hi.__ANT_BUTTON=!0;var so=Hi;var ug=e=>{let{type:t,children:o,prefixCls:r,buttonProps:n,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:d}=e,u=V(!1),p=V(null),[g,f]=(0,Nc.useState)(!1),x=(...S)=>{i?.(...S)};ge(()=>{let S=null;return a&&(S=setTimeout(()=>{p.current?.focus({preventScroll:!0})})),()=>{S&&clearTimeout(S)}},[a]);let h=S=>{Er(S)&&(f(!0),S.then((...$)=>{f(!1,!0),x.apply(void 0,$),u.current=!1},$=>{if(f(!1,!0),u.current=!1,!l?.())return Promise.reject($)}))},v=S=>{if(u.current)return;if(u.current=!0,!d){x();return}let $;if(s){if($=d(S),c&&!Er($)){u.current=!1,x(S);return}}else if(d.length)$=d(i),u.current=!1;else if($=d(),!Er($)){x();return}h($)};return m(so,{...rn(t),onClick:v,loading:g,prefixCls:r,...n,ref:p},o)},dn=ug;b();var qt=y.createContext({}),{Provider:mn}=qt;var fg=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:n,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l,onClose:c}=N(qt);return n?y.createElement(dn,{isSilent:r,actionFn:s,close:(...d)=>{a?.(...d),l?.(!1),c?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},o):null},Di=fg;b();var gg=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:n,okTextLocale:i,okType:a,onConfirm:s,onOk:l,onClose:c}=N(qt);return y.createElement(dn,{isSilent:o,type:a||"primary",actionFn:l,close:(...d)=>{t?.(...d),s?.(!0),c?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${n}-btn`},i)},Fi=gg;b();var qc=E(Dp()),fr=E(be());b();b();var xg=E(Fp()),hg=E(be());var pn=de({}),Pc=({children:e,status:t,override:o})=>{let r=N(pn),n=P(()=>{let i={...r};return o&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,o,r]);return m(pn.Provider,{value:n},e)},Ic=de(void 0);var Cg=e=>{let{space:t,form:o,children:r}=e;if(!Re(r))return null;let n=r;return o&&(n=y.createElement(Pc,{override:!0,status:!0},n)),t&&(n=y.createElement(Xl,null,n)),n},un=Cg;var Vo=E(be()),Tc=()=>(0,Vo.canUseDom)()&&window.document.documentElement;b();function Wi(e,t,o){return P(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}b();b();b();var yg=e=>{let{prefixCls:t,className:o,style:r,size:n,shape:i}=e,a=C({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),s=C({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=P(()=>Xe(n)?{width:n,height:n,lineHeight:`${n}px`}:{},[n]);return m("span",{className:C(t,a,s,o),style:{...l,...r}})},lo=yg;var fn=E(Se());var bg=new fn.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Gi=e=>({height:e,lineHeight:(0,fn.unit)(e)}),co=e=>({width:e,...Gi(e)}),Sg=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:bg,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),_i=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Gi(e)}),vg=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...co(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...co(n)},[`${t}${t}-sm`]:{...co(i)}}},$g=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,..._i(t,s)},[`${r}-lg`]:{..._i(n,s)},[`${r}-sm`]:{..._i(i,s)}}},Mc=e=>{let{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:r,calc:n}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...co(n(r).mul(2).equal())}},Rg=e=>({[e.skeletonNodeCls]:{...Mc(e)}}),Eg=e=>{let{skeletonImageCls:t,imageSizeBase:o,calc:r}=e;return{[t]:{...Mc(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...co(o),maxWidth:r(o).mul(4).equal(),maxHeight:r(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},Vi=(e,t,o)=>{let{skeletonButtonCls:r}=e;return{[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},ki=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Gi(e)}),wg=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...ki(r,s)},...Vi(e,r,o),[`${o}-lg`]:{...ki(n,s)},...Vi(e,n,`${o}-lg`),[`${o}-sm`]:{...ki(i,s)},...Vi(e,i,`${o}-sm`)}},Ng=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:n,skeletonButtonCls:i,skeletonInputCls:a,skeletonNodeCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:d,controlHeightSM:u,gradientFromColor:p,padding:g,marginSM:f,borderRadius:x,titleHeight:h,blockRadius:v,paragraphLiHeight:S,controlHeightXS:$,paragraphMarginTop:R}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:g,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:p,...co(c)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...co(d)},[`${o}-sm`]:{...co(u)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:h,background:p,borderRadius:v,[`+ ${n}`]:{marginBlockStart:u}},[n]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:p,borderRadius:v,"+ li":{marginBlockStart:$}}},[`${n}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${n} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:f,[`+ ${n}`]:{marginBlockStart:R}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...wg(e),...vg(e),...$g(e),...Rg(e),...Eg(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
105
+ ${r},
106
+ ${n} > li,
107
+ ${o},
108
+ ${i},
109
+ ${a},
110
+ ${s},
111
+ ${l}
112
+ `]:{...Sg(e)}}}},Pg=e=>{let{colorFillContent:t,colorFill:o}=e,r=t,n=o;return{color:r,colorGradientEnd:n,gradientFromColor:r,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Dt=Q("Skeleton",e=>{let{componentCls:t,calc:o}=e,r=(0,Z.mergeToken)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(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 Ng(r)},Pg,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Ig=e=>{let{prefixCls:t,className:o,classNames:r,rootClassName:n,active:i,style:a,styles:s,shape:l="circle",size:c,...d}=e,{getPrefixCls:u}=N(j),p=u("skeleton",t),[g,f]=Dt(p),x=tt(v=>c??v),h=C(p,`${p}-element`,{[`${p}-active`]:i},r?.root,o,n,g,f);return m("div",{className:h,style:s?.root},m(lo,{prefixCls:`${p}-avatar`,className:r?.content,style:{...s?.content,...a},shape:l,size:x,...d}))},zc=Ig;b();var Tg=e=>{let{prefixCls:t,className:o,rootClassName:r,classNames:n,active:i,style:a,styles:s,block:l=!1,size:c,...d}=e,{getPrefixCls:u}=N(j),p=u("skeleton",t),[g,f]=Dt(p),x=tt(v=>c??v),h=C(p,`${p}-element`,{[`${p}-active`]:i,[`${p}-block`]:l},n?.root,o,r,g,f);return m("div",{className:h,style:s?.root},m(lo,{prefixCls:`${p}-button`,className:n?.content,style:{...s?.content,...a},size:x,...d}))},Bc=Tg;b();b();var Mg=e=>{let{prefixCls:t,className:o,classNames:r,rootClassName:n,internalClassName:i,style:a,styles:s,active:l,children:c}=e,{getPrefixCls:d}=N(j),u=d("skeleton",t),[p,g]=Dt(u),f=C(u,`${u}-element`,{[`${u}-active`]:l},p,r?.root,o,n,g);return m("div",{className:f,style:s?.root},m("div",{className:C(r?.content,i||`${u}-node`),style:{...s?.content,...a}},c))},gn=Mg;var zg=e=>{let{getPrefixCls:t}=N(j),o=t("skeleton",e.prefixCls);return m(gn,{...e,internalClassName:`${o}-image`},m("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},m("title",null,"Image placeholder"),m("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},Oc=zg;b();var Bg=e=>{let{prefixCls:t,className:o,classNames:r,rootClassName:n,active:i,block:a,style:s,styles:l,size:c,...d}=e,{getPrefixCls:u}=N(j),p=u("skeleton",t),[g,f]=Dt(p),x=tt(v=>c??v),h=C(p,`${p}-element`,{[`${p}-active`]:i,[`${p}-block`]:a},r?.root,o,n,g,f);return m("div",{className:h,style:l?.root},m(lo,{prefixCls:`${p}-input`,className:r?.content,style:{...l?.content,...s},size:x,...d}))},Lc=Bg;b();var Og=(e,t)=>{let{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},Lg=e=>{let{prefixCls:t,className:o,style:r,rows:n=0}=e,i=Array.from({length:n}).map((a,s)=>m("li",{key:s,style:{width:Og(s,e)}}));return m("ul",{className:C(t,o),style:r},i)},Ac=Lg;b();var Ag=({prefixCls:e,className:t,width:o,style:r})=>m("h3",{className:C(e,t),style:{width:o,...r}}),Hc=Ag;function ji(e){return Y(e)?e:{}}function Hg(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Dg(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Fg(e,t){let o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var ko=y.forwardRef((e,t)=>{let{prefixCls:o,loading:r,className:n,rootClassName:i,classNames:a,style:s,styles:l,children:c,avatar:d=!1,title:u=!0,paragraph:p=!0,active:g,round:f}=e,{getPrefixCls:x,direction:h,className:v,style:S,classNames:$,styles:R}=me("skeleton"),I=x("skeleton",o),[B,O]=Dt(I),A={...e,avatar:d,title:u,paragraph:p},w=xe(S),T=xe(s),[z,M]=ve([$,a],[R,w,l,T],{props:A}),H=y.useRef(null);if(y.useImperativeHandle(t,()=>({nativeElement:H.current})),r||!("loading"in e)){let _=!!d,L=!!u,k=!!p,X;if(_){let K={className:z.avatar,prefixCls:`${I}-avatar`,...Hg(L,k),...ji(d),style:M.avatar};X=y.createElement("div",{className:C(z.header,`${I}-header`),style:M.header},y.createElement(lo,{...K}))}let J;if(L||k){let K;if(L){let ie={className:z.title,prefixCls:`${I}-title`,...Dg(_,k),...ji(u),style:M.title};K=y.createElement(Hc,{...ie})}let U;if(k){let ie={className:z.paragraph,prefixCls:`${I}-paragraph`,...Fg(_,L),...ji(p),style:M.paragraph};U=y.createElement(Ac,{...ie})}J=y.createElement("div",{className:C(z.section,`${I}-section`),style:M.section},K,U)}let oe=C(I,{[`${I}-with-avatar`]:_,[`${I}-active`]:g,[`${I}-rtl`]:h==="rtl",[`${I}-round`]:f},z.root,v,n,i,B,O);return y.createElement("div",{ref:H,className:oe,style:M.root},X,J)}return c??null});ko.Button=Bc;ko.Avatar=zc;ko.Input=Lc;ko.Image=Oc;ko.Node=gn;var Dc=ko;var Fc=Dc;b();var _c=E(be());function Wc(){}var Wg=de({add:Wc,remove:Wc});function Vc(e){let t=N(Wg),o=V(null);return(0,_c.useEvent)(n=>{if(n){let i=e?n.querySelector(e):n;i&&(t.add(i),o.current=i)}else t.remove(o.current)})}b();b();var _g=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=N(qt);return y.createElement(so,{onClick:o,...e},t)},Xi=_g;b();var Vg=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:n}=N(qt);return y.createElement(so,{...rn(o),loading:e,onClick:n,...t},r)},Ui=Vg;function kc(e,t){return y.createElement("span",{className:`${e}-close-x`},t||y.createElement(jt,{className:`${e}-close-icon`}))}var Gc=e=>{let{okText:t,okType:o="primary",cancelText:r,confirmLoading:n,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[d]=We("Modal",hs()),u=t||d?.okText,p=r||d?.cancelText,g=y.useMemo(()=>({confirmLoading:n,okButtonProps:s,cancelButtonProps:l,okTextLocale:u,cancelTextLocale:p,okType:o,onOk:i,onCancel:a}),[n,s,l,u,p,o,i,a]),f;return te(c)||typeof c>"u"?(f=y.createElement(y.Fragment,null,y.createElement(Xi,null),y.createElement(Ui,null)),te(c)&&(f=c(f,{OkBtn:Ui,CancelBtn:Xi})),f=y.createElement(mn,{value:g},f)):f=c,y.createElement(Hr,{disabled:!1},f)};var Be=E(Se());var jc=E(Se());var kg=e=>{let{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"}}}},Gg=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},jg=(e,t)=>{let{componentCls:o,gridColumns:r,antCls:n}=e,[i,a]=Te(n,"grid"),[,s]=Te(n,"col"),l={};for(let c=r;c>=0;c--)c===0?(l[`${o}${t}-${c}`]={display:"none"},l[`${o}-push-${c}`]={insetInlineStart:"auto"},l[`${o}-pull-${c}`]={insetInlineEnd:"auto"},l[`${o}${t}-push-${c}`]={insetInlineStart:"auto"},l[`${o}${t}-pull-${c}`]={insetInlineEnd:"auto"},l[`${o}${t}-offset-${c}`]={marginInlineStart:0},l[`${o}${t}-order-${c}`]={order:0}):(l[`${o}${t}-${c}`]=[{[i("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${c/r*100}%`,maxWidth:`${c/r*100}%`}],l[`${o}${t}-push-${c}`]={insetInlineStart:`${c/r*100}%`},l[`${o}${t}-pull-${c}`]={insetInlineEnd:`${c/r*100}%`},l[`${o}${t}-offset-${c}`]={marginInlineStart:`${c/r*100}%`},l[`${o}${t}-order-${c}`]={order:c});return l[`${o}${t}-flex`]={flex:s(`${t.replace(/-/,"")}-flex`)},l},qi=(e,t)=>jg(e,t),Xg=(e,t,o)=>({[`@media (min-width: ${(0,jc.unit)(t)})`]:{...qi(e,o)}}),Ug=()=>({}),qg=()=>({}),ww=Q("Grid",kg,Ug),Zi=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Nw=Q("Grid",e=>{let t=(0,Z.mergeToken)(e,{gridColumns:24}),o=Zi(t);return delete o.xs,[Gg(t),qi(t,""),qi(t,"-xs"),Object.keys(o).map(r=>Xg(t,o[r],`-${r}`)).reduce((r,n)=>({...r,...n}),{})]},qg);function Xc(e){return{position:e,inset:0}}var Zg=e=>{let{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...Xc("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...Xc("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:pr(e)}]},Kg=e=>{let{componentCls:t,motionDurationMid:o}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,Be.unit)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Ue(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,Be.unit)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...lr(e)},[`${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","background-color"].map(r=>`${r} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,Be.unit)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...to(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,Be.unit)(e.borderRadiusLG)} ${(0,Be.unit)(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:`${(0,Be.unit)(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,
113
+ ${t}-body,
114
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Yg=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Qg=e=>{let{componentCls:t}=e,o=Zi(e),r={...o};delete r.xs;let n=`--${t.replace(".","")}-`,i=Object.keys(r).map(a=>({[`@media (min-width: ${(0,Be.unit)(r[a])})`]:{width:`var(${n}${a}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ie(Object.keys(o).map((a,s)=>{let l=Object.keys(o)[s-1];return l?{[`${n}${a}-width`]:`var(${n}${l}-width)`}:null})),[{width:`var(${n}xs-width)`}],Ie(i))}}},Ki=e=>{let t=e.padding,o=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,Z.mergeToken)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(o).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()})},Yi=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,Be.unit)(e.paddingMD)} ${(0,Be.unit)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,Be.unit)(e.padding)} ${(0,Be.unit)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,Be.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,Be.unit)(e.paddingXS)} ${(0,Be.unit)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,Be.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,Be.unit)(e.borderRadiusLG)} ${(0,Be.unit)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,Be.unit)(e.padding*2)} ${(0,Be.unit)(e.padding*2)} ${(0,Be.unit)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),Uc=Q("Modal",e=>{let t=Ki(e);return[Kg(t),Yg(t),Zg(t),yo(t,"zoom"),Qg(t)]},Yi,{unitless:{titleLineHeight:!0}});var Qi,Jg=e=>{Qi={x:e.pageX,y:e.pageY},setTimeout(()=>{Qi=null},100)};Tc()&&document.documentElement.addEventListener("click",Jg,!0);var ex=e=>{let{prefixCls:t,className:o,rootClassName:r,open:n,wrapClassName:i,centered:a,getContainer:s,style:l,width:c=520,footer:d,classNames:u,styles:p,children:g,loading:f,confirmLoading:x,zIndex:h,mousePosition:v,onOk:S,onCancel:$,okButtonProps:R,cancelButtonProps:I,destroyOnHidden:B,destroyOnClose:O,panelRef:A=null,closable:w,mask:T,modalRender:z,maskClosable:M,_semanticOmit:H,scrollLock:_,focusTriggerAfterClose:L,focusable:k,_renderSemanticContent:X,...J}=e,{getPopupContainer:oe,getPrefixCls:K,direction:U,className:ie,style:re,classNames:le,styles:Ne,centered:he,cancelButtonProps:Ce,okButtonProps:pe,mask:$e,focusable:ue}=me("modal"),{modal:ae}=N(j),[G,Oe]=P(()=>typeof w=="boolean"?[void 0,void 0]:[w?.afterClose,w?.onClose],[w]),fe=K("modal",t),qe=K(),[we,_e,ye]=xl(T,$e,fe,M),ce=Wi({...ue,...k},we,L),ze=se=>{x||($?.(se),Oe?.())},vt=se=>{S?.(se),Oe?.()},Pe=lt(fe),[Le,ct]=Uc(fe,Pe),Ze=C(i,{[`${fe}-centered`]:a??he,[`${fe}-wrap-rtl`]:U==="rtl"}),$t=d!==null&&!f?m(Gc,{...e,okButtonProps:{...pe,...R},onOk:vt,cancelButtonProps:{...Ce,...I},onCancel:ze}):null,[Rt,Ke,Ye,Ve]=fl(Ho(e),Ho(ae),{closable:!0,closeIcon:m(jt,{className:`${fe}-close-icon`}),closeIconRender:se=>kc(fe,se)}),Mt=Rt?{disabled:Ye,closeIcon:Ke,afterClose:G,...Ve}:!1,nt=z?se=>m("div",{className:`${fe}-render`},z(se)):void 0,dt=`.${fe}-${z?"render":"container"}`,mt=Vc(dt),_t=(0,fr.composeRef)(A,mt),[Et,Ct]=Kr("Modal",h),it={...e,width:c,panelRef:A,focusTriggerAfterClose:ce.focusTriggerAfterClose,focusable:ce,mask:we,maskClosable:ye,zIndex:Et},[at,yt]=ve([le,u,_e],[Ne,p],{props:it}),ot=H?(0,fr.omit)(at,H):at,wt=H?(0,fr.omit)(yt,H):yt,zt=X?X({classNames:at,styles:yt}):g,[pt,st]=P(()=>Y(c)?[void 0,c]:[c,void 0],[c]),bt=P(()=>{let se={};return st&&Object.keys(st).forEach(ee=>{let ne=st[ee];Fe(ne)&&(se[`--${fe}-${ee}-width`]=Xe(ne)?`${ne}px`:ne)}),se},[fe,st]);return m(un,{form:!0,space:!0},m(Do.Provider,{value:Ct},m(qc.default,{width:pt,...J,zIndex:Et,getContainer:s===void 0?oe:s,prefixCls:fe,rootClassName:C(Le,r,ct,Pe,ot.root),rootStyle:wt.root,footer:$t,visible:n,mousePosition:v??Qi,onClose:ze,closable:Mt,closeIcon:Ke,transitionName:At(qe,"zoom",e.transitionName),maskTransitionName:At(qe,"fade",e.maskTransitionName),mask:we,maskClosable:ye,scrollLock:_,className:C(Le,o,ie),style:{...re,...l,...bt},classNames:{...ot,wrapper:C(ot.wrapper,Ze)},styles:wt,panelRef:_t,destroyOnHidden:B??O,modalRender:nt,focusTriggerAfterClose:ce.focusTriggerAfterClose,focusTrap:ce.trap},f?m(Fc,{active:!0,title:!1,paragraph:{rows:4},className:`${fe}-body-skeleton`}):zt)))},xn=ex;var Ji=E(Se());var tx=e=>{let{componentCls:t,titleFontSize:o,titleLineHeight:r,modalConfirmIconSize:n,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:{...Fr()},[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:n,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(n).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(n).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,Ji.unit)(e.marginSM)})`},[`${d}-body-no-icon ${d}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${(0,Ji.unit)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:r},[`${d}-container`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
115
+ ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Zc=Gt(["Modal","confirm"],e=>{let t=Ki(e);return tx(t)},Yi,{order:-1e3});var ox=["body"],rx=e=>{let{prefixCls:t,icon:o,okText:r,cancelText:n,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c,autoFocusButton:d,focusable:u,contentClassName:p,contentStyle:g,...f}=e,{infoIcon:x,successIcon:h,errorIcon:v,warningIcon:S}=me("modal"),$=o;if(o===void 0)switch(a){case"info":$=no(x,m(Ao,null));break;case"success":$=no(h,m(Oo,null));break;case"error":$=no(v,m(oo,null));break;default:$=no(S,m(Lo,null))}let R=s??a==="confirm",I=P(()=>{let X=u?.autoFocusButton||d;return X||X===null?X:"ok"},[d,u?.autoFocusButton]),[B]=We("Modal"),O=c||B,A=r||(R?O?.okText:O?.justOkText),w=n||O?.cancelText,{closable:T}=f,{onClose:z}=Y(T)?T:{},M=P(()=>({autoFocusButton:I,cancelTextLocale:w,okTextLocale:A,mergedOkCancel:R,onClose:z,...f}),[I,w,A,R,z,f]),H=m(je,null,m(Di,null),m(Fi,null)),_=Re(e.title),L=Re($),k=`${i}-body`;return m("div",{className:`${i}-body-wrapper`},m("div",{className:C(k,{[`${k}-has-title`]:_,[`${k}-no-icon`]:!L})},$,m("div",{className:`${i}-paragraph`},_&&m("span",{className:`${i}-title`},e.title),m("div",{className:C(`${i}-content`,p),style:g},e.content))),l===void 0||te(l)?m(mn,{value:M},m("div",{className:`${i}-btns`},te(l)?l(H,{OkBtn:Fi,CancelBtn:Di}):H)):l,m(Zc,{prefixCls:t}))},nx=e=>{let{close:t,zIndex:o,maskStyle:r,direction:n,prefixCls:i,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:d,styles:u,title:p,mask:g,maskClosable:f,okButtonProps:x,cancelButtonProps:h}=e,{cancelButtonProps:v,okButtonProps:S}=me("modal"),$=`${i}-confirm`,R=e.width||416,I=e.style||{},B=te(u)?M=>({body:l,mask:r,...u(M)}):{body:l,mask:r,...u},O=(0,Kc.omit)(e,["bodyStyle","maskStyle"]),A=C($,`${$}-${e.type}`,{[`${$}-rtl`]:n==="rtl"},e.className),w=P(()=>{let M=Zr(g,f);return M.closable??(M.closable=!1),M},[g,f]),[,T]=Ee(),z=P(()=>o!==void 0?o:T.zIndexPopupBase+Co,[o,T]);return m(xn,{...O,className:A,wrapClassName:C({[`${$}-centered`]:!!e.centered},a),onCancel:()=>{t?.({triggerCancel:!0}),d?.(!1)},title:p,footer:null,transitionName:At(s||"","zoom",e.transitionName),maskTransitionName:At(s||"","fade",e.maskTransitionName),mask:w,style:I,styles:B,width:R,zIndex:z,closable:c,_semanticOmit:ox,_renderSemanticContent:({classNames:M,styles:H})=>m(rx,{...e,confirmPrefixCls:$,okButtonProps:{...S,...x},cancelButtonProps:{...v,...h},contentClassName:M.body,contentStyle:H.body})})},ix=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:n}=e;return m(Bo,{prefixCls:t,iconPrefixCls:o,direction:r,theme:n},m(nx,{...e}))},Yc=ix;var ax=[],Qc=ax;function ed(e){return{...e,type:"warning"}}function td(e){return{...e,type:"info"}}function od(e){return{...e,type:"success"}}function rd(e){return{...e,type:"error"}}function nd(e){return{...e,type:"confirm"}}b();var sx=W((e,t)=>{let{afterClose:o,config:r,...n}=e,[i,a]=q(!0),[s,l]=q(r),{direction:c,getPrefixCls:d}=N(j),u=d("modal"),p=d(),g=()=>{o(),s.afterClose?.()},f=(...v)=>{a(!1),v.some($=>$?.triggerCancel)&&s.onCancel?.(()=>{},...v.slice(1))};Ge(t,()=>({destroy:f,update:v=>{l(S=>{let $=te(v)?v(S):v;return{...S,...$}})}}));let x=s.okCancel??s.type==="confirm",[h]=We("Modal",et.Modal);return m(Yc,{prefixCls:u,rootPrefixCls:p,...s,close:f,open:i,afterClose:g,okText:s.okText||(x?h?.okText:h?.justOkText),direction:s.direction||c,cancelText:s.cancelText||h?.cancelText,...n})}),id=sx;var ad=0,lx=Vn(W((e,t)=>{let[o,r]=Cl();return Ge(t,()=>({patchElement:r}),[r]),m(je,null,o)}));function cx(){let e=V(null),[t,o]=q([]);ge(()=>{t.length&&(Ie(t).forEach(a=>{a()}),o([]))},[t]);let r=Yt(i=>function(s){ad+=1;let l=ka(),c,d=new Promise(x=>{c=x}),u=!1,p,g=m(id,{key:`modal-${ad}`,config:i(s),ref:l,afterClose:()=>{p?.()},isSilent:()=>u,onConfirm:x=>{c(x)}});return p=e.current?.patchElement(g),p&&Qc.push(p),{destroy:()=>{function x(){l.current?.destroy()}l.current?x():o(h=>[].concat(Ie(h),[x]))},update:x=>{function h(){l.current?.update(x)}l.current?h():o(v=>[].concat(Ie(v),[h]))},then:x=>(u=!0,d.then(x))}},[]);return[P(()=>({info:r(td),success:r(od),error:r(rd),warning:r(ed),confirm:r(nd)}),[r]),m(lx,{key:"modal-holder",ref:e})]}var sd=cx;b();var hn=E($r());b();var dx=E($r());var ld={info:m(Ao,null),success:m(Oo,null),error:m(oo,null),warning:m(Lo,null),loading:m(ro,null)};function ea(e,t){return t===null||t===!1?null:t||m(jt,{className:`${e}-close-icon`})}var mx=4.5,px="topRight",ux={offset:8},fx=({children:e,prefixCls:t})=>{let o=lt(t),[r,n]=Pl(t,o);return y.createElement(hn.NotificationProvider,{classNames:{list:C(r,n,o)}},e)},gx=(e,{prefixCls:t,key:o})=>y.createElement(fx,{prefixCls:t,key:o},e),xx=y.forwardRef((e,t)=>{let{top:o,bottom:r,prefixCls:n,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:d=mx,pauseOnHover:u=!0,showProgress:p}=e,{getPrefixCls:g,getPopupContainer:f,direction:x}=me("notification"),{notification:h}=N(j),[v]=We("global",et.global),S=n||g("notification"),$=P(()=>Xe(d)&&d>0?d:!1,[d]),R=xe(h?.style),[I,B]=ve([h?.classNames,e?.classNames],[h?.styles,R,e?.styles],{props:e}),O=()=>Ur(o,r),A=()=>C({[`${S}-rtl`]:s??x==="rtl"}),w=()=>ks(S),T=Xr(c,ux),[z,M]=(0,hn.useNotification)({prefixCls:S,style:O,className:A,motion:w,closable:{closeIcon:ea(S)},duration:$,getContainer:()=>i?.()||f?.()||document.body,maxCount:a,pauseOnHover:u,showProgress:p,classNames:I,styles:B,onAllRemoved:l,renderNotifications:gx,stack:T});return y.useImperativeHandle(t,()=>({...z,prefixCls:S,notification:h,closeLabel:v.close??et.global?.close??"Close"})),M});function hx(e){let t=y.useRef(null),o=Qt("Notification"),{notification:r}=y.useContext(j);return[y.useMemo(()=>{let i=c=>{if(!t.current)return;let{open:d,prefixCls:u,notification:p,closeLabel:g}=t.current,f=p?.className||{},x=`${u}-notice`,{title:h,message:v,description:S,icon:$,type:R,btn:I,actions:B,className:O,style:A,role:w="alert",closeIcon:T,closable:z,classNames:M={},styles:H={},..._}=c,L=h??v,k=Re(L),X=B??I,J=ea(x,Gs(T,e,p)),[oe,K,,U]=Ci(Ho({...e||{},...c}),Ho(r),{closable:!0,closeIcon:J},g),ie=oe?{onClose:Y(z)?z.onClose:void 0,closeIcon:K,...U}:!1,re=Jt(M,{props:c}),le=Jt(H,{props:c}),Ne=$||(R?ld[R]:null),he=!$&&R?`${x}-icon-${R}`:void 0;return d({placement:e?.placement??px,..._,title:k?L:null,description:S,icon:Ne,actions:X,role:w,classNames:{...re,icon:C(he,re?.icon)},styles:le,className:C({[`${x}-${R}`]:R},O,f),style:A,closable:ie})},s={open:i,destroy:c=>{c!==void 0?t.current?.close(c):t.current?.destroy()}};return["success","info","warning","error"].forEach(c=>{s[c]=d=>i({...d,type:c})}),s},[e,r]),y.createElement(xx,{key:"notification-holder",...e,ref:t})]}function ta(e){return hx(e)}var Cx=e=>{let{componentCls:t,colorText:o,fontSize:r,lineHeight:n,fontFamily:i}=e;return{[t]:{color:o,fontSize:r,lineHeight:n,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},yx=()=>({}),cd=Q("App",Cx,yx);var bx=y.forwardRef((e,t)=>{let{prefixCls:o,children:r,className:n,rootClassName:i,message:a,notification:s,style:l,component:c="div"}=e,{direction:d,getPrefixCls:u,className:p,style:g}=me("app"),f=u("app",o),[x,h]=cd(f),v=C(x,f,n,i,h,{[`${f}-rtl`]:d==="rtl"}),S=N(Gn),$=y.useMemo(()=>({message:{...S.message,...a},notification:{...S.notification,...s}}),[a,s,S.message,S.notification]),[R,I]=Ri($.message),[B,O]=ta($.notification),[A,w]=sd(),T=y.useMemo(()=>({message:R,notification:B,modal:A}),[R,B,A]),z=Xn("App");z(!(h&&c===!1&&!!(n||i||l||p||g)),"usage","When using cssVar, ensure `component` is assigned a valid React component string."),z(!t||c!==!1,"usage","`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");let H=c===!1?y.Fragment:c,_={className:C(p,v),style:{...g,...l}};return y.createElement(Za.Provider,{value:T},y.createElement(Gn.Provider,{value:$},y.createElement(H,{...c===!1?void 0:{..._,ref:t}},w,I,O,r)))}),dd=bx;var Cn=E(Se());var Sx=e=>{let t=e?.algorithm?(0,Cn.createTheme)(e.algorithm):fo,o={...Nt,...e?.token};return(0,Cn.getComputedToken)(o,{override:e?.token},t,sr)},md=Sx;function oa(e){let{sizeUnit:t,sizeStep:o}=e,r=o-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}var vx=(e,t)=>{let o=t??kt(e),r=o.fontSizeSM,n=o.controlHeight-4;return{...o,...oa(t??e),...Br(r),controlHeight:n,...zr({...o,controlHeight:n})}},pd=vx;var gd=E(er());var ud=E(er());var ra=E(No()),xt=(e,t)=>new ra.FastColor(e).setA(t).toRgbString(),mo=(e,t)=>new ra.FastColor(e).lighten(t).toHexString();var na=e=>{let t=(0,ud.generate)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},fd=(e,t,o)=>{let r=e||"#000",n=t||"#fff";return{colorBgBase:r,colorTextBase:n,colorShadow:o||"rgba(255, 255, 255, 0.2)",colorText:xt(n,.85),colorTextSecondary:xt(n,.65),colorTextTertiary:xt(n,.45),colorTextQuaternary:xt(n,.25),colorFill:xt(n,.18),colorFillSecondary:xt(n,.12),colorFillTertiary:xt(n,.08),colorFillQuaternary:xt(n,.04),colorBgSolid:xt(n,.95),colorBgSolidHover:xt(n,1),colorBgSolidActive:xt(n,.9),colorBgElevated:mo(r,12),colorBgContainer:mo(r,8),colorBgLayout:mo(r,0),colorBgSpotlight:mo(r,26),colorBgBlur:xt(n,.04),colorBorder:mo(r,26),colorBorderDisabled:mo(r,26),colorBorderSecondary:mo(r,19)}};var $x=(e,t)=>{let o=Object.keys(nr).map(a=>{let s=(0,gd.generate)(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((l,c,d)=>(l[`${a}-${d+1}`]=s[d],l[`${a}${d+1}`]=s[d],l),{})}).reduce((a,s)=>(a={...a,...s},a),{}),r=t??kt(e),n=ir(e,{generateColorPalettes:na,generateNeutralColorPalettes:fd}),i=Ae.reduce((a,s)=>{let l=e[s];if(l){let c=na(l);a[`${s}Hover`]=c[7],a[`${s}Active`]=c[5]}return a},{});return{...r,...o,...n,...i,colorPrimaryBg:n.colorPrimaryBorder,colorPrimaryBgHover:n.colorPrimaryBorderHover}},xd=$x;function Rx(){let[e,t,o,r]=Ee();return{theme:e,token:t,hashId:o,cssVar:r}}var Ex={defaultSeed:eo.token,useToken:Rx,defaultAlgorithm:kt,darkAlgorithm:xd,compactAlgorithm:pd,getDesignToken:md,defaultConfig:eo,_internalContext:go},hd=Ex;b();var wx={token:{colorPrimary:"#1677ff",borderRadius:10,motion:!0,fontFamily:["-apple-system","BlinkMacSystemFont","'Segoe UI'","Roboto","'Helvetica Neue'","Arial","'Noto Sans'","sans-serif"].join(", ")}},Cd=Rr(wx);b();var aa="zlooks.theme",ia="zlooks:theme-change",Go="default";function gr(){return{mode:ja(Tx,Nx,Px),setMode:Ix}}function yn(e){return e==="dark"||e==="light"||e==="default"?e:"default"}function Nx(){if(typeof window>"u")return Go;try{let e=window.localStorage.getItem(aa);e!==null&&(Go=yn(e))}catch{}return Go}function Px(){return"default"}function Ix(e){if(yn(e)!==e)throw new TypeError(`Unsupported Zlooks theme mode: ${String(e)}`);if(Go=e,!(typeof window>"u")){try{window.localStorage.setItem(aa,e)}catch{}window.dispatchEvent(new CustomEvent(ia,{detail:e}))}}function Tx(e){if(typeof window>"u")return()=>{};let t=r=>{Go=yn(r.detail),e()},o=r=>{r.key===aa&&(Go=yn(r.newValue),e())};return window.addEventListener(ia,t),window.addEventListener("storage",o),()=>{window.removeEventListener(ia,t),window.removeEventListener("storage",o)}}var Mx=Je(dd),zx=Je(Bo),yd=Je(hd);function sa({children:e,theme:t}){let o=gr(),{resolvedMode:r,resolvedTheme:n}=la(t??o.mode);return F(zx,{button:{autoInsertSpace:!1},theme:n,children:F(Mx,{children:F("div",{className:"zlooks-ui-theme","data-zlooks-theme":r,children:e})})})}function la(e){let t=Bx(e==="default"),o=e==="default"?t?"dark":"light":e,r=P(()=>({...Cd,algorithm:o==="dark"?yd.darkAlgorithm:yd.defaultAlgorithm,cssVar:{key:`zlooks-${o}`},hashed:!1,zeroRuntime:!0}),[o]);return{resolvedMode:o,resolvedTheme:r}}function Bx(e){let[t,o]=q(!1);return ge(()=>{if(!e)return;let r=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>o(r.matches);return n(),r.addEventListener("change",n),()=>r.removeEventListener("change",n)},[e]),t}b();var wd=E(Ua()),Nd=E(be());b();var xr=["xxxl","xxl","xl","lg","md","sm","xs"],uI=[].concat(xr).reverse(),Ox=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Lx=e=>{let t=e,o=[].concat(xr).reverse();return o.forEach((r,n)=>{let i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(n<o.length-1){let l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);let d=`screen${o[n+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e};var Ax=()=>{let[,e]=Ee(),t=Ox(Lx(e));return y.useMemo(()=>{let o=new Map,r=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return n=i,o.forEach(a=>{a(n)}),o.size>=1},subscribe(i){return o.size||this.register(),r+=1,o.set(r,i),i(n),r},unsubscribe(i){o.delete(i),o.size||this.unregister()},register(){Object.entries(t).forEach(([i,a])=>{let s=({matches:c})=>{this.dispatch({...n,[i]:c})},l=window.matchMedia(a);te(l.addEventListener)&&l.addEventListener("change",s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(i=>{let a=this.matchHandlers[i];te(a?.mql.removeEventListener)&&a.mql.removeEventListener("change",a?.listener)}),o.clear()}}},[t])},bd=Ax;b();var Sd=E(be());function Hx(e=!0,t={}){let o=V(t),[,r]=gl(),n=bd();return(0,Sd.useLayoutEffect)(()=>{let i=n.subscribe(a=>{o.current=a,e&&r()});return()=>n.unsubscribe(i)},[e]),o.current}var vd=Hx;b();var Dx=de({}),$d=Dx;var Rd=E(Se());var Fx=e=>{let{antCls:t,componentCls:o,iconCls:r,avatarBg:n,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:d,textFontSizeSM:u,iconFontSize:p,iconFontSizeLG:g,iconFontSizeSM:f,borderRadius:x,borderRadiusLG:h,borderRadiusSM:v,lineWidth:S,lineType:$}=e,R=(I,B,O,A)=>({width:I,height:I,borderRadius:"50%",fontSize:B,[`&${o}-square`]:{borderRadius:A},[`&${o}-icon`]:{fontSize:O,[`> ${r}`]:{margin:0}}});return{[o]:{...Ue(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${(0,Rd.unit)(S)} ${$} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...R(a,c,p,x),"&-lg":{...R(s,d,g,h)},"&-sm":{...R(l,u,f,v)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},Wx=e=>{let{componentCls:t,groupBorderColor:o,groupOverlapping:r,groupSpace:n}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:n}}}},_x=e=>{let{controlHeight:t,controlHeightLG:o,controlHeightSM:r,fontSize:n,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:o,containerSizeSM:r,textFontSize:n,textFontSizeLG:n,textFontSizeSM:n,iconFontSize:Math.round((i+a)/2),iconFontSizeLG:s,iconFontSizeSM:n,groupSpace:c,groupOverlapping:-l,groupBorderColor:d}},Ed=Q("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=(0,Z.mergeToken)(e,{avatarBg:o,avatarColor:t});return[Fx(r),Wx(r)]},_x);var Vx=W((e,t)=>{let{prefixCls:o,shape:r,size:n,src:i,srcSet:a,icon:s,className:l,rootClassName:c,style:d,alt:u,draggable:p,children:g,crossOrigin:f,gap:x=4,onError:h,...v}=e,[S,$]=q(1),[R,I]=q(!1),[B,O]=q(!0),A=V(null),w=V(null),T=(0,Nd.composeRef)(t,A),{getPrefixCls:z,className:M,style:H}=me("avatar"),_=N($d),L=()=>{if(!w.current||!A.current)return;let ae=w.current.offsetWidth,G=A.current.offsetWidth;ae!==0&&G!==0&&x*2<G&&$(G-x*2<ae?(G-x*2)/ae:1)};ge(()=>{I(!0)},[]),ge(()=>{O(!0),$(1)},[i]),ge(L,[x]);let k=()=>{h?.()!==!1&&O(!1)},X=tt(ae=>n??_?.size??ae??"medium"),J=Object.keys(Y(X)?X||{}:{}).some(ae=>xr.includes(ae)),oe=vd(J),K=P(()=>{if(!Y(X))return{};let ae=xr.find(Oe=>oe[Oe]),G=X[ae];return G?{width:G,height:G,fontSize:G&&(s||g)?G/2:18}:{}},[oe,X,s,g]),U=z("avatar",o),ie=lt(U),[re,le]=Ed(U,ie),Ne=C({[`${U}-lg`]:X==="large",[`${U}-sm`]:X==="small"}),he=wo(i),Ce=r||_?.shape||"circle",pe=C(U,Ne,M,`${U}-${Ce}`,{[`${U}-image`]:he||i&&B,[`${U}-icon`]:!!s},le,ie,l,c,re),$e=Xe(X)?{width:X,height:X,fontSize:s?X/2:18}:{},ue;if(typeof i=="string"&&B)ue=m("img",{src:i,draggable:p,srcSet:a,onError:k,alt:u,crossOrigin:f});else if(he)ue=i;else if(s)ue=s;else if(R||S!==1){let ae=`scale(${S})`,G={msTransform:ae,WebkitTransform:ae,transform:ae};ue=m(wd.default,{onResize:L},m("span",{className:`${U}-string`,ref:w,style:G},g))}else ue=m("span",{className:`${U}-string`,style:{opacity:0},ref:w},g);return m("span",{...v,style:{...$e,...K,...H,...d},className:pe,ref:T},ue)}),Pd=Vx;b();var Ft=E(Se());var kx=e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Gx=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:n,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e,l=`${t}-rail`;return{[t]:{...Ue(e),borderBlockStart:`${(0,Ft.unit)(n)} solid ${r}`,[l]:{borderBlockStart:`${(0,Ft.unit)(n)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Ft.unit)(n)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Ft.unit)(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Ft.unit)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${l}-start, ${l}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${l}-start`]:{width:`calc(${a} * 100%)`},[`${l}-end`]:{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${l}-start`]:{width:`calc(100% - ${a} * 100%)`},[`${l}-end`]:{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${(0,Ft.unit)(n)} 0 0`,[l]:{borderBlockStart:`${(0,Ft.unit)(n)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${l}-start, ${l}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${(0,Ft.unit)(n)} 0 0`,[l]:{borderBlockStart:`${(0,Ft.unit)(n)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${l}-start`]:{width:0},[`${l}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${l}-start`]:{width:"100%"},[`${l}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}}}},jx=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Id=Q("Divider",e=>{let t=(0,Z.mergeToken)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Gx(t),kx(t)]},jx,{unitless:{orientationMargin:!0}});var Xx=["left","right","center","start","end"],Ux=W((e,t)=>{let{getPrefixCls:o,direction:r,className:n,style:i,classNames:a,styles:s}=me("divider"),{prefixCls:l,type:c,orientation:d,vertical:u,titlePlacement:p,orientationMargin:g,className:f,rootClassName:x,children:h,dashed:v,variant:S="solid",plain:$,style:R,size:I,classNames:B,styles:O,...A}=e,w=o("divider",l),T=`${w}-rail`,[z,M]=Id(w),H=tt(I),_=!!h,L=Xx.includes(d||""),k=P(()=>{let $e=p??(L?d:"center");return $e==="left"?r==="rtl"?"end":"start":$e==="right"?r==="rtl"?"start":"end":$e},[r,d,p,L]),X=k==="start"&&g!=null,J=k==="end"&&g!=null,[oe,K]=io(d,u,c),U={...e,orientation:oe,titlePlacement:k,size:H},ie=xe(i),[re,le]=ve([a,B],[s,ie,O],{props:U}),Ne=C(w,n,z,M,`${w}-${oe}`,{[`${w}-with-text`]:_,[`${w}-with-text-${k}`]:_,[`${w}-dashed`]:!!v,[`${w}-${S}`]:S!=="solid",[`${w}-plain`]:!!$,[`${w}-rtl`]:r==="rtl",[`${w}-no-default-orientation-margin-start`]:X,[`${w}-no-default-orientation-margin-end`]:J,[`${w}-md`]:H==="medium"||H==="middle",[`${w}-sm`]:H==="small",[T]:!h,[re.rail]:re.rail&&!h},f,x,re.root),he=P(()=>Xe(g)?g:/^\d+$/.test(g)?Number(g):g,[g]),Ce={marginInlineStart:X?he:void 0,marginInlineEnd:J?he:void 0},pe=V(null);return Ge(t,()=>({nativeElement:pe.current})),m("div",{ref:pe,className:Ne,style:{...le.root,...h?{}:le.rail,...R},...A,role:"separator"},h&&!K&&m(je,null,m("div",{className:C(T,`${T}-start`,re.rail),style:le.rail}),m("span",{className:C(`${w}-inner-text`,re.content),style:{...Ce,...le.content}},h),m("div",{className:C(T,`${T}-end`,re.rail),style:le.rail})))}),Td=Ux;b();b();b();var Md=E(No()),Zt=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new Md.FastColor(e).onBackground(t).toHexString();var qx=()=>{let[,e]=Ee(),[t]=We("Empty"),{colorBgContainer:o,colorFill:r,colorFillSecondary:n,colorFillTertiary:i,colorTextQuaternary:a}=e,{panelBgColor:s,borderColor:l,detailColor:c,shadowColor:d,iconColor:u}=P(()=>({panelBgColor:Zt(i,o),borderColor:Zt(a,o),detailColor:Zt(r,o),shadowColor:Zt(n,o),iconColor:o}),[o,r,n,i,a]);return m("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m("title",null,t?.description||"Empty"),m("g",{fill:"none",fillRule:"evenodd"},m("g",{transform:"translate(24 31.7)"},m("ellipse",{fillOpacity:".8",fill:d,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),m("path",{fill:l,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),m("path",{fill:s,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),m("path",{fill:c,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),m("path",{fill:c,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),m("g",{fill:u,transform:"translate(149.7 15.4)"},m("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),m("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},zd=qx;b();b();var Zx=()=>{let[,e]=Ee(),[t]=We("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=P(()=>({borderColor:Zt(o,i),shadowColor:Zt(r,i),contentColor:Zt(n,i)}),[o,r,n,i]);return m("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m("title",null,t?.description||"Empty"),m("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),m("g",{fillRule:"nonzero",stroke:a},m("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),m("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:l}))))},Bd=Zx;var Kx=e=>{let{componentCls:t,margin:o,marginXS:r,marginXL:n,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:n,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Od=Q("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:r}=e,n=(0,Z.mergeToken)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return Kx(n)});var Ld=m(zd,null),Ad=m(Bd,null),ca=W((e,t)=>{let{className:o,rootClassName:r,prefixCls:n,image:i,description:a,children:s,imageStyle:l,style:c,classNames:d,styles:u,...p}=e,{getPrefixCls:g,direction:f,className:x,style:h,classNames:v,styles:S,image:$}=me("empty"),R=g("empty",n),[I,B]=Od(R),O=xe(h),A=xe(c),[w,T]=ve([v,d],[S,O,u,A],{props:e}),[z]=We("Empty"),M=typeof a<"u"?a:z?.description,H=typeof M=="string"?M:"empty",_=i??$??Ld,L=null;typeof _=="string"?L=m("img",{draggable:!1,alt:H,src:_}):L=_;let k=V(null);return Ge(t,()=>({nativeElement:k.current})),m("div",{ref:k,className:C(I,B,R,x,{[`${R}-normal`]:_===Ad,[`${R}-rtl`]:f==="rtl"},o,r,w.root),style:T.root,...p},m("div",{className:C(`${R}-image`,w.image),style:{...l,...T.image}},L),M&&m("div",{className:C(`${R}-description`,w.description),style:T.description},M),s&&m("div",{className:C(`${R}-footer`,w.footer),style:T.footer},s))});ca.PRESENTED_IMAGE_DEFAULT=Ld;ca.PRESENTED_IMAGE_SIMPLE=Ad;var Hd=ca;b();var Wd=E(be());function jo(e){return["small","middle","medium","large"].includes(e)}function da(e){return e?Xe(e):!1}var ma=["wrap","nowrap","wrap-reverse"],pa=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],ua=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Yx=(e,t)=>{let o=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${o}`]:o&&ma.includes(o)}},Qx=(e,t)=>{let o={};return ua.forEach(r=>{o[`${e}-align-${r}`]=t.align===r}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},Jx=(e,t)=>{let o={};return pa.forEach(r=>{o[`${e}-justify-${r}`]=t.justify===r}),o},eh=(e,t)=>C({...Yx(e,t),...Qx(e,t),...Jx(e,t)}),Dd=eh;var th=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},oh=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},rh=e=>{let{componentCls:t}=e,o={};return ma.forEach(r=>{o[`${t}-wrap-${r}`]={flexWrap:r}}),o},nh=e=>{let{componentCls:t}=e,o={};return ua.forEach(r=>{o[`${t}-align-${r}`]={alignItems:r}}),o},ih=e=>{let{componentCls:t}=e,o={};return pa.forEach(r=>{o[`${t}-justify-${r}`]={justifyContent:r}}),o},ah=()=>({}),Fd=Q("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:r}=e,n=(0,Z.mergeToken)(e,{flexGapSM:t,flexGap:o,flexGapLG:r});return[th(n),oh(n),rh(n),nh(n),ih(n)]},ah,{resetStyle:!1});var sh=y.forwardRef((e,t)=>{let{prefixCls:o,rootClassName:r,className:n,style:i,flex:a,gap:s,vertical:l,orientation:c,component:d="div",children:u,...p}=e,{flex:g,direction:f,getPrefixCls:x}=y.useContext(j),h=x("flex",o),[v,S]=Fd(h),[,$]=io(c,l??g?.vertical),R=C(n,r,g?.className,h,v,S,Dd(h,{...e,vertical:$}),{[`${h}-rtl`]:f==="rtl",[`${h}-gap-${s}`]:jo(s),[`${h}-vertical`]:$}),I={...g?.style,...i};return Fe(a)&&(I.flex=a),Fe(s)&&!jo(s)&&(I.gap=s),y.createElement(d,{ref:t,className:R,style:I,...(0,Wd.omit)(p,["justify","wrap","align"])},u)}),_d=sh;b();var tm=E(be());var Xo=e=>Re(e)?te(e)?e():e:null;b();var Kd=E(jn()),Yd=E(be());var fa=E(Se());var Vd=E(Se());function bn(e){let{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:r}=e,n=t/2,i=0,a=n,s=r*1/Math.sqrt(2),l=n-r*(1-1/Math.sqrt(2)),c=n-o*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),u=2*n-c,p=d,g=2*n-s,f=l,x=2*n-i,h=a,v=n*Math.sqrt(2)+r*(Math.sqrt(2)-2),S=r*(Math.sqrt(2)-1),$=`polygon(${S}px 100%, 50% ${S}px, ${2*n-S}px 100%, ${S}px 100%)`,R=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${d} A ${o} ${o} 0 0 1 ${u} ${p} L ${g} ${f} A ${r} ${r} 0 0 0 ${x} ${h} Z')`;return{arrowShadowWidth:v,arrowPath:R,arrowPolygon:$}}var kd=(e,t,o)=>{let{sizePopupArrow:r,arrowPolygon:n,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e,c={content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,Vd.unit)(s)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return o&&(c.boxShadow=o),{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[n,i]},content:'""'},"&::after":c}};var ga=8;function Uo(e){let{contentRadius:t,limitVerticalRadius:o}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:o?ga:r}}var lh=(e,t,o)=>{let{componentCls:r,boxShadowPopoverArrow:n,arrowOffsetVertical:i,arrowOffsetHorizontal:a,antCls:s}=e,[l]=Te(s,"tooltip"),{arrowDistance:c=0,arrowShadow:d=!0}=o||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...kd(e,t,d?n:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[l("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{[l("arrow-offset-x")]:`calc(100% - ${(0,fa.unit)(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[l("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{[l("arrow-offset-x")]:`calc(100% - ${(0,fa.unit)(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}}},Sn=lh;function ch(e,t,o,r){if(r===!1)return{adjustX:!1,adjustY:!1};let n=Y(r)?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+o,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+o,i.shiftX=!0,i.adjustX=!0;break}let a={...i,...n};return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}var Gd={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"]}},dh={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"]}},mh=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function xa(e){let{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:r,offset:n,borderRadius:i,visibleFirst:a}=e,s=t/2,l={},c=Uo({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Gd).forEach(d=>{let p={...r&&dh[d]||Gd[d],offset:[0,0],dynamicInset:!0};switch(l[d]=p,mh.has(d)&&(p.autoArrow=!1),d){case"top":case"topLeft":case"topRight":p.offset[1]=-s-n;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=s+n;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-s-n;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=s+n;break}if(r)switch(d){case"topLeft":case"bottomLeft":p.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":p.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":p.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":p.offset[1]=c.arrowOffsetHorizontal*2-s;break}p.overflow=ch(d,c,t,o),a&&(p.htmlRegion="visibleFirst")}),l}b();var ph=y.createContext(!1),jd=ph;b();var uh=(e,t)=>{let o=r=>typeof r=="boolean"?{show:r}:r||{};return y.useMemo(()=>{let r=o(e),n=o(t);return{...n,...r,show:r.show??n.show??!0}},[e,t])},vn=uh;b();var qd=E(jn());var ha=E(Se());var Xd="50%",fh=e=>{let{calc:t,componentCls:o,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,dropShadowPopover:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:p,sizePopupArrow:g,antCls:f}=e,[x,h]=Te(f,"tooltip"),v=t(a).add(g).add(p).equal(),$={minWidth:t(a).mul(2).add(g).equal(),minHeight:l,padding:`${(0,ha.unit)(e.calc(d).div(2).equal())} ${(0,ha.unit)(u)}`,color:h("overlay-color",n),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxSizing:"border-box"},R={[x("valid-offset-x")]:h("arrow-offset-x","var(--arrow-x)"),transformOrigin:[h("valid-offset-x",Xd),`var(--arrow-y, ${Xd})`].join(" ")};return[{[o]:{...Ue(e),position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible",filter:c,...R,"&-hidden":{display:"none"},[x("arrow-background-color")]:i,[`${o}-container`]:[$,pr(e,!0)],[`&:has(~ ${o}-unique-container)`]:{[`${o}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(a,ga)}},[`${o}-content`]:{position:"relative"},...Vr(e,(I,{darkColor:B})=>({[`&${o}-${I}`]:{[`${o}-container`]:{backgroundColor:B},[`${o}-arrow`]:{[x("arrow-background-color")]:B}}})),"&-rtl":{direction:"rtl"}}},Sn(e,h("arrow-background-color"),{arrowShadow:!1}),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${o}-unique-container`]:{...$,...R,position:"absolute",zIndex:t(s).sub(1).equal(),filter:c,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},gh=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Uo({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...bn((0,Z.mergeToken)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),$n=(e,t,o=!0)=>Q("Tooltip",n=>{let{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:s,maxWidth:l}=n,c=(0,Z.mergeToken)(n,{tooltipMaxWidth:l,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:s});return[fh(c),yo(n,"zoom-big-fast")]},gh,{resetStyle:!1,injectStyle:o})(e,t);var xh=Ae.map(e=>`${e}-inverse`);function Ud(e,t=!0){return t?[].concat(Ie(xh),Ie(Ae)).includes(e):Ae.includes(e)}var Rn=(e,t,o)=>{let r=Ud(o),[n]=Te(e,"tooltip"),i=C({[`${t}-${o}`]:o&&r}),a={},s={},l=bc(o).toRgb(),d=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return o&&!r&&(a.background=o,a[n("overlay-color")]=d,s[n("arrow-background-color")]=o),{className:i,overlayStyle:a,arrowStyle:s}};var hh=e=>{let{prefixCls:t,className:o,placement:r="top",title:n,color:i,overlayInnerStyle:a,classNames:s,styles:l}=e,{getPrefixCls:c}=N(j),d=c("tooltip",t),u=c(),p=lt(d),[g,f]=$n(d,p),x=Rn(u,d,i),h=x.arrowStyle,v=P(()=>({container:{...a,...x.overlayStyle}}),[a,x.overlayStyle]),S={...e,placement:r},[$,R]=ve([s],[v,l],{props:S}),I=C(p,g,f,d,`${d}-pure`,`${d}-placement-${r}`,o,x.className);return m("div",{className:I,style:h},m("div",{className:`${d}-arrow`}),m(qd.Popup,{...e,className:g,prefixCls:d,classNames:$,styles:R},n))},Zd=hh;var Ch=W((e,t)=>{let{prefixCls:o,openClassName:r,getTooltipContainer:n,color:i,children:a,afterOpenChange:s,arrow:l,destroyTooltipOnHide:c,destroyOnHidden:d,title:u,overlay:p,trigger:g,builtinPlacements:f,autoAdjustOverflow:x=!0,motion:h,getPopupContainer:v,placement:S="top",mouseEnterDelay:$,mouseLeaveDelay:R,rootClassName:I,styles:B,classNames:O,onOpenChange:A,overlayInnerStyle:w,overlayStyle:T,overlayClassName:z,...M}=e,[,H]=Ee(),_=e["data-popover-inject"],{getPopupContainer:L,getPrefixCls:k,direction:X,...J}=me("tooltip"),{className:oe,style:K,classNames:U,styles:ie,arrow:re,trigger:le,mouseEnterDelay:Ne,mouseLeaveDelay:he}=_?{}:J,Ce=$??Ne??.1,pe=R??he??.1,$e=vn(l,re),ue=$e.show,ae=g||le||"hover",G=v||L,Oe=d??!!c,fe=N(jd),qe=Qt("Tooltip"),we=V(null),_e=()=>{we.current?.forceAlign()};Ge(t,()=>({forceAlign:_e,nativeElement:we.current?.nativeElement,popupElement:we.current?.popupElement}));let[ye,ce]=(0,Yd.useControlledState)(e.defaultOpen??!1,e.open),ze=!u&&!p&&u!==0,vt=se=>{ce(ze?!1:se),!ze&&A&&A(se)},Pe=P(()=>f||xa({arrowPointAtCenter:$e?.pointAtCenter??!1,autoAdjustOverflow:x,arrowWidth:ue?H.sizePopupArrow:0,borderRadius:H.borderRadius,offset:H.marginXXS,visibleFirst:!0}),[$e,f,H,ue,x]),Le=P(()=>u===0?u:p||u||"",[p,u]),ct=m(un,{space:!0,form:!0},te(Le)?Le():Le),Ze={...e,trigger:ae,builtinPlacements:Pe,getPopupContainer:G,destroyOnHidden:Oe,mouseEnterDelay:Ce,mouseLeaveDelay:pe},$t=xe(K),Rt=xe(T),[Ke,Ye]=ve([U,O],[ie,$t,B,Rt],{props:Ze}),Ve=k("tooltip",o),Mt=k(),nt=ye;(!("open"in e)&&ze||fe)&&(nt=!1);let dt=wo(a)&&!Or(a)?a:m("span",null,a),mt=dt.props,_t=!mt.className||typeof mt.className=="string"?C(mt.className,r||`${Ve}-open`):mt.className,Et=lt(Ve),[Ct,it]=$n(Ve,Et,!_),at=Rn(Mt,Ve,i),yt=at.arrowStyle,ot=C(Et,Ct,it),wt=C(z,{[`${Ve}-rtl`]:X==="rtl"},at.className,I,ot,oe,Ke.root),[zt,pt]=Kr("Tooltip",M.zIndex),st={...Ye.container,...w,...at.overlayStyle},bt=m(Kd.default,{unique:!0,...M,zIndex:zt,showArrow:ue,placement:S,mouseEnterDelay:Ce,mouseLeaveDelay:pe,prefixCls:Ve,classNames:{root:wt,container:Ke.container,arrow:Ke.arrow,uniqueContainer:C(ot,Ke.container)},styles:{root:{...yt,...Ye.root},container:st,uniqueContainer:st,arrow:Ye.arrow},ref:we,overlay:ct,visible:nt,onVisibleChange:vt,afterVisibleChange:s,arrowContent:m("span",{className:`${Ve}-arrow-content`}),motion:{motionName:At(Mt,"zoom-big-fast",typeof h?.motionName=="string"?h?.motionName:void 0),motionDeadline:1e3},trigger:ae,builtinPlacements:Pe,getTooltipContainer:G,destroyOnHidden:Oe},nt&&!M.disabled?Pt(dt,{className:_t}):dt);return m(Do.Provider,{value:pt},bt)}),Ca=Ch;Ca._InternalPanelDoNotUseOrYouWillBeFired=Zd;Ca.UniqueProvider=Ar;var po=Ca;b();var Jd=E(jn());var Qd="50%",yh=e=>{let{componentCls:t,popoverColor:o,titleMinWidth:r,fontWeightStrong:n,innerPadding:i,dropShadowPopover:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:u,popoverBg:p,titleBorderBottom:g,innerContentPadding:f,titlePadding:x,antCls:h}=e,[v,S]=Te(h,"tooltip");return[{[t]:{...Ue(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:a,[v("valid-offset-x")]:S("arrow-offset-x","var(--arrow-x)"),transformOrigin:[S("valid-offset-x",Qd),`var(--arrow-y, ${Qd})`].join(" "),[v("arrow-background-color")]:u,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:n,borderBottom:g,padding:x},[`${t}-content`]:{color:o,padding:f}}},Sn(e,S("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},bh=e=>{let{componentCls:t,antCls:o}=e,[r]=Te(o,"tooltip");return{[t]:Ae.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r("arrow-background-color")]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},Sh=e=>{let{lineWidth:t,controlHeight:o,fontHeight:r,padding:n,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:d,paddingSM:u}=e,p=o-r,g=p/2,f=p/2-t,x=n;return{titleMinWidth:177,zIndexPopup:a+30,...bn(e),...Uo({contentRadius:s,limitVerticalRadius:!0}),innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${g}px ${x}px ${f}px`:0,titleBorderBottom:i?`${t}px ${c} ${d}`:"none",innerContentPadding:i?`${u}px ${x}px`:0}},En=Q("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=(0,Z.mergeToken)(e,{popoverBg:t,popoverColor:o});return[yh(r),bh(r),yo(r,"zoom-big")]},Sh,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var ya=e=>{let{title:t,content:o,prefixCls:r,classNames:n,styles:i}=e;return!Re(t)&&!Re(o)?null:m(je,null,Re(t)&&m("div",{className:C(`${r}-title`,n?.title),style:i?.title},t),Re(o)&&m("div",{className:C(`${r}-content`,n?.content),style:i?.content},o))},vh=e=>{let{hashId:t,prefixCls:o,className:r,style:n,placement:i="top",title:a,content:s,children:l,classNames:c,styles:d}=e,u=Xo(a),p=Xo(s),g={...e,placement:i},[f,x]=ve([c],[d],{props:g}),h=C(t,o,`${o}-pure`,`${o}-placement-${i}`,r);return m("div",{className:h,style:n},m("div",{className:`${o}-arrow`}),m(Jd.Popup,{...e,className:t,prefixCls:o,classNames:f,styles:x},l||m(ya,{prefixCls:o,title:u,content:p,classNames:f,styles:x})))},$h=e=>{let{prefixCls:t,className:o,...r}=e,{getPrefixCls:n}=N(j),i=n("popover",t),[a,s]=En(i);return m(vh,{...r,prefixCls:i,hashId:a,className:C(o,s)})},em=$h;var Rh=W((e,t)=>{let{prefixCls:o,title:r,content:n,overlayClassName:i,placement:a="top",trigger:s,children:l,mouseEnterDelay:c,mouseLeaveDelay:d,onOpenChange:u,overlayStyle:p={},styles:g,classNames:f,motion:x,arrow:h,...v}=e,{getPrefixCls:S,className:$,style:R,classNames:I,styles:B,arrow:O,trigger:A,mouseEnterDelay:w,mouseLeaveDelay:T}=me("popover"),z=c??w??.1,M=d??T??.1,H=S("popover",o),[_,L]=En(H),k=S(),X=vn(h,O),J=s||A||"hover",oe={...e,placement:a,trigger:J,mouseEnterDelay:z,mouseLeaveDelay:M,overlayStyle:p,styles:g,classNames:f},K=xe(R),U=xe(p),[ie,re]=ve([I,f],[B,K,g,U],{props:oe}),le=C(i,_,L,$,ie.root),[Ne,he]=(0,tm.useControlledState)(e.defaultOpen??!1,e.open),Ce=ue=>{he(ue),u?.(ue)},pe=Xo(r),$e=Xo(n);return m(po,{unique:!1,arrow:X,placement:a,trigger:J,mouseEnterDelay:z,mouseLeaveDelay:M,...v,prefixCls:H,classNames:{root:le,container:ie.container,arrow:ie.arrow},styles:{root:re.root,container:re.container,arrow:re.arrow},ref:t,open:Ne,onOpenChange:Ce,overlay:Re(pe)||Re($e)?m(ya,{prefixCls:H,title:pe,content:$e,classNames:ie,styles:re}):null,motion:{motionName:At(k,"zoom-big",typeof x?.motionName=="string"?x?.motionName:void 0)},"data-popover-inject":!0},l)}),om=Rh;om._InternalPanelDoNotUseOrYouWillBeFired=em;var rm=om;b();var dm=E(be());b();var wn=(e,t,o)=>C({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o}),nm=(e,t)=>t||e;var Eh=e=>{let{componentCls:t,borderRadius:o,paddingSM:r,colorBorder:n,paddingXS:i,fontSizeLG:a,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:d,lineWidth:u,lineType:p,antCls:g}=e,[f,x]=Te(g,"space-addon");return{[t]:[{...Ue(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:r,margin:0,borderWidth:u,borderStyle:p,borderRadius:o,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:a,borderRadius:l},"&-small":{paddingInline:i,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[f("addon-border-color")]:n,[f("addon-background")]:d,[f("addon-border-color-outlined")]:n,[f("addon-background-filled")]:d,borderColor:x("addon-border-color"),background:x("addon-background"),"&-variant-outlined":{[f("addon-border-color")]:x("addon-border-color-outlined")},"&-variant-filled":{[f("addon-border-color")]:"transparent",[f("addon-background")]:x("addon-background-filled"),[`&${t}-disabled`]:{[f("addon-border-color")]:n,[f("addon-background")]:d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[f("addon-border-color-outlined")]:e.colorError,[f("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[f("addon-border-color-outlined")]:e.colorWarning,[f("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},im=Q("Addon",e=>[Eh(e),_o(e,{focus:!1})]);var wh=y.forwardRef((e,t)=>{let{className:o,children:r,style:n,prefixCls:i,variant:a="outlined",disabled:s,status:l,...c}=e,{getPrefixCls:d,direction:u}=y.useContext(j),p=d("space-addon",i),[g,f]=im(p),{compactItemClassnames:x,compactSize:h}=Wo(p,u),v=wn(p,l),S=C(p,g,x,f,`${p}-variant-${a}`,v,{[`${p}-${h}`]:h,[`${p}-disabled`]:s},o);return y.createElement("div",{ref:t,className:S,style:n,...c},r)}),am=wh;b();var ba=y.createContext({latestIndex:0}),sm=ba.Provider;b();var Nh=e=>{let{className:t,prefix:o,index:r,children:n,separator:i,style:a,classNames:s,styles:l}=e,{latestIndex:c}=N(ba);return Re(n)?m(je,null,m("div",{className:t,style:a},n),r<c&&i&&m("span",{className:C(`${o}-item-separator`,s?.separator),style:l?.separator},i)):null},lm=Nh;var Ph=e=>{let{componentCls:t,antCls:o}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Ih=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var cm=Q("Space",e=>{let t=(0,Z.mergeToken)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ph(t),Ih(t)]},()=>({}),{resetStyle:!1});var Th=W((e,t)=>{let{getPrefixCls:o,direction:r,size:n,className:i,style:a,classNames:s,styles:l}=me("space"),{size:c=n??"small",align:d,className:u,rootClassName:p,children:g,direction:f,orientation:x,prefixCls:h,split:v,separator:S,style:$,vertical:R,wrap:I=!1,classNames:B,styles:O,...A}=e,[w,T]=Array.isArray(c)?c:[c,c],z=jo(T),M=jo(w),H=da(T),_=da(w),L=(0,dm.toArray)(g,{keepEmpty:!0}),[k,X]=io(x,R,f),J=d===void 0&&!X?"center":d,oe=S??v,K=o("space",h),[U,ie]=cm(K),re={...e,size:c,orientation:k,align:J},le=xe(a),Ne=xe($),[he,Ce]=ve([s,B],[l,le,O,Ne],{props:re}),pe=C(K,i,U,`${K}-${k}`,{[`${K}-rtl`]:r==="rtl",[`${K}-align-${J}`]:J,[`${K}-gap-row-${T}`]:z,[`${K}-gap-col-${w}`]:M},u,p,ie,he.root),$e=C(`${K}-item`,he.item),ue=L.map((Oe,fe)=>{let qe=Oe?.key||`${$e}-${fe}`;return m(lm,{prefix:K,classNames:he,styles:Ce,className:$e,key:qe,index:fe,separator:oe,style:Ce.item},Oe)}),ae=P(()=>({latestIndex:L.reduce((fe,qe,we)=>Re(qe)?we:fe,0)}),[L]);if(L.length===0)return null;let G={};return I&&(G.flexWrap="wrap"),!M&&_&&(G.columnGap=w),!z&&H&&(G.rowGap=T),m("div",{ref:t,className:pe,style:{...G,...Ce.root},...A},m(sm,{value:ae},ue))}),Sa=Th;Sa.Compact=Ul;Sa.Addon=am;var mm=Sa;b();var up=E(be());b();b();var pm=E(Wp());function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},va.apply(this,arguments)}var Mh=(e,t)=>m(He,va({},e,{ref:t,icon:pm.default})),zh=W(Mh),um=zh;var mp=E(Ua()),rt=E(be());b();b();var fm=E(_p());function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},$a.apply(this,arguments)}var Bh=(e,t)=>m(He,$a({},e,{ref:t,icon:fm.default})),Oh=W(Bh),gm=Oh;var Ea=E(be());b();b();var Fm=E(Ka());b();var Lh=(e,t,o,r)=>{let n=N(j),{variant:i,[e]:a}=n,s=N(Ic),l=r?n[r]:void 0,c=a?.variant??l?.variant,d=typeof t<"u"||o===!1||typeof s<"u"||typeof c<"u"||typeof i<"u",u;typeof t<"u"?u=t:o===!1?u="borderless":u=s??c??i??"outlined";let p=Un.includes(u);return[u,p,d]},xm=Lh;b();var Gh=E(Ka()),Nn=E(be());var ht=E(Se());function hr(e){return(0,Z.mergeToken)(e,{inputAffixPadding:e.paddingXXS})}var Cr=e=>{let{controlHeight:t,fontSize:o,lineHeight:r,lineWidth:n,lineWidthFocus:i,controlHeightSM:a,controlHeightLG:s,fontSizeLG:l,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:u,controlPaddingHorizontal:p,colorFillAlter:g,colorPrimaryHover:f,colorPrimary:x,controlOutlineWidth:h,controlOutline:v,colorErrorOutline:S,colorWarningOutline:$,colorBgContainer:R,inputFontSize:I,inputFontSizeLG:B,inputFontSizeSM:O}=e,A=I||o,w=O||A,T=B||l,z=Math.round((t-A*r)/2*10)/10-n,M=Math.round((a-w*r)/2*10)/10-n,H=Math.ceil((s-T*c)/2*10)/10-n;return{lineWidthFocus:i===0?0:n,paddingBlock:Math.max(z,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(H,0),paddingInline:d-n,paddingInlineSM:u-n,paddingInlineLG:p-n,addonBg:g,activeBorderColor:x,hoverBorderColor:f,activeShadow:`0 0 0 ${h}px ${v}`,errorActiveShadow:`0 0 0 ${h}px ${S}`,warningActiveShadow:`0 0 0 ${h}px ${$}`,hoverBg:R,activeBg:R,inputFontSize:A,inputFontSizeLG:T,inputFontSizeSM:w}};var It=E(Se());var Ah=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ra=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...Ah((0,Z.mergeToken)(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),$m=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),hm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...$m(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Rm=(e,t)=>({"&-outlined":{...$m(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Ra(e)},...hm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...hm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),Cm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Em=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,It.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Cm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Cm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Ra(e)}}}}),wm="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",Nm=(e,t)=>({outline:`${(0,It.unit)(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:(0,It.unit)(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(o=>`${o} 0s`).join(", ")}),ym=(e,t)=>({"&, & input, & textarea":{color:t.color},[wm]:Nm(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),Pm=(e,t)=>{let{componentCls:o}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${o}-sm, &${o}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${o}-lg, &${o}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[wm]:Nm(e,e.activeBorderColor),[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:ym(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${o}-status-warning`]:ym(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},Im=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),bm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Im(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Tm=(e,t)=>({"&-filled":{...Im(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Ra(e)},...bm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...bm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),Sm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Mm=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...Sm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Sm(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,It.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,It.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,It.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,It.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,It.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,It.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),zm=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,It.unit)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),vm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...zm(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Bm=(e,t)=>({"&-underlined":{...zm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...vm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...vm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}});var Hh=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var Om=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:n}=e;return{padding:`${(0,ht.unit)(t)} ${(0,ht.unit)(n)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},Lm=e=>({padding:`${(0,ht.unit)(e.paddingBlockSM)} ${(0,ht.unit)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Am=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,ht.unit)(e.paddingBlock)} ${(0,ht.unit)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Hh(e.colorTextPlaceholder),"&-lg":{...Om(e),...t.largeStyle},"&-sm":{...Lm(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Dh=e=>{let{componentCls:t,antCls:o}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...Om(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Lm(e)},[`&-lg ${o}-select-single`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,ht.unit)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${(0,ht.unit)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,ht.unit)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${(0,ht.unit)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${o}-cascader-picker`]:{margin:`-9px ${(0,ht.unit)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Fr(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
116
+ & > ${t}-affix-wrapper,
117
+ & > ${t}-number-affix-wrapper,
118
+ & > ${o}-picker-range
119
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${o}-select,
120
+ & > ${o}-select-auto-complete ${t},
121
+ & > ${o}-cascader-picker ${t},
122
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${o}-select-focused`]:{zIndex:1},[`& > ${o}-select > ${o}-select-arrow`]:{zIndex:1},[`& > *:first-child,
123
+ & > ${o}-select:first-child,
124
+ & > ${o}-select-auto-complete:first-child ${t},
125
+ & > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
126
+ & > ${o}-select:last-child,
127
+ & > ${o}-cascader-picker:last-child ${t},
128
+ & > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},Fh=e=>{let{componentCls:t,controlHeightSM:o,lineWidth:r,calc:n}=e,a=n(o).sub(n(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Ue(e),...Am(e),...Rm(e),...Tm(e),...Pm(e),...Bm(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},Wh=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...lr(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,ht.unit)(e.inputAffixPadding)}`}}}},_h=e=>{let{componentCls:t,inputAffixPadding:o,colorTextDescription:r,motionDurationSlow:n,colorIcon:i,colorIconHover:a}=e,s=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[s]:{...Am(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o},"&-password-icon":{display:"inline-flex",color:i,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:a}}},...Wh(e)},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},Vh=e=>{let{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Ue(e),...Dh(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...Em(e),...Mm(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},kh=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Hm=Q(["Input","Shared"],e=>{let t=(0,Z.mergeToken)(e,hr(e));return[Fh(t),_h(t)]},Cr,{resetFont:!1}),ZM=Q(["Input","Component"],e=>{let t=(0,Z.mergeToken)(e,hr(e));return[Vh(t),kh(t),_o(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Cr,{resetFont:!1});var jh=e=>{let{componentCls:t,paddingLG:o}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical","@media (hover: none) and (pointer: coarse)":{resize:"none"},[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
129
+ &-allow-clear > ${t},
130
+ &-affix-wrapper${r}-has-feedback ${t}
131
+ `]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Dm=Q(["Input","TextArea"],e=>{let t=(0,Z.mergeToken)(e,hr(e));return jh(t)},Cr,{resetFont:!1});var Xh=W((e,t)=>{let{prefixCls:o,bordered:r=!0,size:n,disabled:i,status:a,allowClear:s,classNames:l,rootClassName:c,className:d,style:u,styles:p,variant:g,showCount:f,onMouseDown:x,onResize:h,...v}=e,{getPrefixCls:S,direction:$,allowClear:R,autoComplete:I,className:B,style:O,classNames:A,styles:w}=me("textArea"),T=N(Mo),z=i??T,{status:M,hasFeedback:H,feedbackIcon:_}=N(pn),L=nm(M,a),k=xe(O),X=xe(u),[J,oe]=ve([A,l],[w,k,p,X],{props:e}),K=V(null);Ge(t,()=>({resizableTextArea:K.current?.resizableTextArea,focus:_e=>{(0,Nn.triggerFocus)(K.current?.resizableTextArea?.textArea,_e)},blur:()=>K.current?.blur(),nativeElement:K.current?.nativeElement||null}));let U=S("input",o),ie=lt(U),[re,le]=Hm(U,c);Dm(U,ie);let{compactSize:Ne,compactItemClassnames:he}=Wo(U,$),Ce=tt(_e=>n??Ne??_e),[pe,$e]=xm("textArea",g,r),ue=dl({allowClear:s,contextAllowClear:R,componentName:"TextArea"}),[ae,G]=q(!1),[Oe,fe]=q(!1),qe=_e=>{G(!0),x?.(_e);let ye=()=>{G(!1),document.removeEventListener("mouseup",ye)};document.addEventListener("mouseup",ye)},we=_e=>{if(h?.(_e),ae&&te(getComputedStyle)){let ye=K.current?.nativeElement?.querySelector("textarea");ye&&getComputedStyle(ye).resize==="both"&&fe(!0)}};return m(Fm.TextArea,{autoComplete:I,...v,style:oe.root,styles:oe,disabled:z,allowClear:ue,className:C(le,ie,d,c,he,B,J.root,{[`${U}-textarea-affix-wrapper-resize-dirty`]:Oe}),classNames:{...J,textarea:C({[`${U}-sm`]:Ce==="small",[`${U}-lg`]:Ce==="large"},re,J.textarea,ae&&`${U}-mouse-active`),variant:C({[`${U}-${pe}`]:$e},wn(U,L)),affixWrapper:C(`${U}-textarea-affix-wrapper`,{[`${U}-affix-wrapper-rtl`]:$==="rtl",[`${U}-affix-wrapper-sm`]:Ce==="small",[`${U}-affix-wrapper-lg`]:Ce==="large",[`${U}-textarea-show-count`]:f||e.count?.show},re)},prefixCls:U,suffix:H&&m("span",{className:`${U}-textarea-suffix`},_),showCount:f,ref:K,onResize:we,onMouseDown:qe})}),Wm=Xh;var _m=E(er()),qo=E(Se());var Uh=(e,t,o,r)=>{let{titleMarginBottom:n,fontWeightStrong:i}=r;return{marginBottom:n,color:o,fontWeight:i,fontSize:e,lineHeight:t}},Vm=e=>{let t=[1,2,3,4,5],o={};return t.forEach(r=>{o[`
132
+ h${r}&,
133
+ div&-h${r},
134
+ div&-h${r} > textarea,
135
+ h${r}
136
+ `]=Uh(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),o},km=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{..._r(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}},Gm=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:`${(0,qo.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:`${(0,qo.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:_m.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:`${(0,qo.unit)(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:(0,qo.unit)(e.padding),overflowWrap:"break-word",borderBottom:`${(0,qo.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),jm=e=>{let{componentCls:t,paddingSM:o}=e,r=o;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},[`&${t}-edit-content textarea`]:{margin:"0!important",fontSize:"inherit",lineHeight:"inherit",fontFamily:"inherit",fontWeight:"inherit",MozTransition:"none",height:"1em"}}}},Xm=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Um=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...Ls,"a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});var qh=e=>{let{componentCls:t,titleMarginTop:o}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...Vm(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:o},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:o}},...Gm(e),...km(e),[`${t}-actions`]:{display:"inline"},[`
137
+ ${t}-expand,
138
+ ${t}-collapse,
139
+ ${t}-edit,
140
+ ${t}-copy
141
+ `]:{..._r(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
142
+ ${t}-expand,
143
+ ${t}-collapse,
144
+ ${t}-edit,
145
+ ${t}-copy:not(${t}-copy-icon-only)
146
+ `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...jm(e),...Xm(e),...Um(),"&-rtl":{direction:"rtl"}}}},Zh=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Pn=Q("Typography",qh,Zh);var Kh=e=>{let{prefixCls:t,"aria-label":o,className:r,style:n,classNames:i,styles:a,direction:s,maxLength:l,autoSize:c=!0,value:d,onSave:u,onCancel:p,onEnd:g,component:f,enterIcon:x=m(gm,null)}=e,h=V(null),v=V(!1),S=V(null),[$,R]=q(d);ge(()=>{R(d)},[d]),ge(()=>{if(h.current?.resizableTextArea){let{textArea:L}=h.current.resizableTextArea;L.focus();let{length:k}=L.value;L.setSelectionRange(k,k)}},[]);let I=({target:L})=>{R(L.value.replace(/[\n\r]/g,""))},B=()=>{v.current=!0},O=()=>{v.current=!1},A=({keyCode:L})=>{v.current||(S.current=L)},w=()=>{u($.trim())},T=({keyCode:L,ctrlKey:k,altKey:X,metaKey:J,shiftKey:oe})=>{S.current!==L||v.current||k||X||J||oe||(L===Ea.KeyCode.ENTER?(w(),g?.()):L===Ea.KeyCode.ESC&&p())},z=()=>{w()},[M,H]=Pn(t),_=C(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${f}`]:!!f},r,i.root,M,H);return m("div",{className:_,style:{...a.root,...n}},m(Wm,{ref:h,maxLength:l,value:$,onChange:I,onKeyDown:A,onKeyUp:T,onCompositionStart:B,onCompositionEnd:O,onBlur:z,"aria-label":o,rows:1,autoSize:c,className:i.textarea,style:a.textarea}),x!==null?Pt(x,{className:`${t}-edit-content-confirm`}):null)},qm=Kh;b();var Tn=E(be());var Yh=(e,t)=>{let o=!1,r=n=>{n.stopPropagation(),n.preventDefault(),n.clipboardData?.clearData(),n.clipboardData?.setData("text/plain",e),t&&n.clipboardData?.setData("text/html",e),o=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),o}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},Qh=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 Jh(e,t){if(typeof e!="string")return!1;let o=t?.format==="text/html";return!!(await Qh(e,o)||Yh(e,o))}var Zm=Jh;var eC=(e,t={})=>!Fe(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],In=eC;var tC=({copyConfig:e,children:t})=>{let[o,r]=(0,Tn.useDelayState)(!1),[n,i]=q(!1),a={};e.format&&(a.format=e.format);let s=(0,Tn.useEvent)(async l=>{l?.preventDefault(),l?.stopPropagation(),i(!0);try{let c=te(e.text)?await e.text():e.text;await Zm(c||In(t,{skipEmpty:!0}).join("")||"",a),i(!1),r(!0,!0),r(!1,{ms:3e3}),e.onCopy?.(l)}catch(c){throw i(!1),c}});return{copied:o,copyLoading:n,onClick:s}},Km=tC;b();var oC=(e,t)=>{let o=!!e;return P(()=>{let r={...t,...o&&Y(e)?e:null};return[o,r]},[o,e,t])},Mn=oC;b();var rC=e=>{let t=V(void 0);return ge(()=>{t.current=e}),t.current},Ym=rC;b();var nC=(e,t,o)=>P(()=>e===!0?{title:t??o}:wo(e)?{title:e}:Y(e)?{title:t??o,...e}:{title:e},[e,t,o]),Qm=nC;b();var Jm=(e,t,o,r,n)=>{let{getPrefixCls:i,direction:a,className:s,style:l,classNames:c,styles:d}=me("typography"),u=r??a,p=i("typography",e),g={...n,prefixCls:p,direction:u},f=P(()=>({root:s}),[s]),x=xe(l),[h,v]=ve([f,c,t],[d,x,o],{props:g});return[h,v,p,u]};b();var ep=W((e,t)=>{let{component:o="article",className:r,rootClassName:n,children:i,direction:a,style:s,classNames:l,styles:c,prefixCls:d,...u}=e,[p,g]=Pn(d),f=C(d,{[`${d}-rtl`]:a==="rtl"},r,n,p,g,l?.root),x={...c?.root,...s};return m(o,{...u,className:f,style:x,ref:t},i)});b();b();var tp=E(Vp());function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wa.apply(this,arguments)}var iC=(e,t)=>m(He,wa({},e,{ref:t,icon:tp.default})),aC=W(iC),op=aC;b();var rp=E(kp());function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Na.apply(this,arguments)}var sC=(e,t)=>m(He,Na({},e,{ref:t,icon:rp.default})),lC=W(sC),np=lC;var Pa=e=>e===!1?[!1,!1]:In(e);function zn(e,t,o){return e===!0||e===void 0?t:e||o&&t}function ip(e){let t=document.createElement("em");e.appendChild(t);let o=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),o.left>r.left||r.right>o.right||o.top>r.top||r.bottom>o.bottom}var yr=e=>["string","number"].includes(typeof e);var cC=e=>{let{prefixCls:t,copied:o,locale:r,iconOnly:n,tooltips:i,icon:a,tabIndex:s,onCopy:l,loading:c,className:d,style:u}=e,p=Pa(i),g=Pa(a),{copied:f,copy:x}=r??{},h=o?f:x,v=zn(p[o?1:0],h),S=typeof v=="string"?v:h;return m(po,{title:v},m("button",{type:"button",className:C(`${t}-copy`,d,{[`${t}-copy-success`]:o,[`${t}-copy-icon-only`]:n}),style:u,onClick:l,"aria-label":S,tabIndex:s},o?zn(g[1],m(op,null),!0):zn(g[0],c?m(ro,null):m(np,null),!0)))},ap=cC;b();var Zo=E(be());var Bn=W(({style:e,children:t},o)=>{let r=V(null);return Ge(o,()=>({isExceed:()=>{let n=r.current;return n.scrollHeight>n.clientHeight},getHeight:()=>r.current.clientHeight})),m("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)}),dC=e=>e.reduce((t,o)=>t+(yr(o)?String(o).length:1),0);function sp(e,t){let o=0,r=[];for(let n=0;n<e.length;n+=1){if(o===t)return r;let i=e[n],s=yr(i)?String(i).length:1,l=o+s;if(l>t){let c=t-o;return r.push(String(i).slice(0,c)),r}r.push(i),o=l}return e}var Ia=0,Ta=1,Ma=2,za=3,lp=4,On={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Ba(e){let{enableMeasure:t,width:o,text:r,children:n,rows:i,expanded:a,measureDeps:s,miscDeps:l,onEllipsis:c}=e,d=P(()=>(0,Zo.toArray)(r),[r]),u=P(()=>dC(d),[r]),p=P(()=>n(d,!1),[r].concat(Ie(s))),[g,f]=q(null),x=V(null),h=V(null),v=V(null),S=V(null),$=V(null),[R,I]=q(!1),[B,O]=q(Ia),[A,w]=q(0),[T,z]=q(null);(0,Zo.useLayoutEffect)(()=>{O(t&&o&&u?Ta:Ia)},[o,r,i,t,d].concat(Ie(s))),(0,Zo.useLayoutEffect)(()=>{if(B===Ta){O(Ma);let L=h.current&&getComputedStyle(h.current).whiteSpace;z(L)}else if(B===Ma){let L=!!v.current?.isExceed();O(L?za:lp),f(L?[0,u]:null),I(L);let k=v.current?.getHeight()||0,X=i===1?0:S.current?.getHeight()||0,J=$.current?.getHeight()||0,oe=Math.max(k,X+J);w(oe+1),c(L)}},[B]);let M=g?Math.ceil((g[0]+g[1])/2):0;(0,Zo.useLayoutEffect)(()=>{let[L,k]=g||[0,0];if(L!==k){let J=(x.current?.getHeight()||0)>A,oe=M;k-L===1&&(oe=J?L:k),f(J?[L,oe]:[oe,k])}},[g,M]);let H=P(()=>{if(!t)return n(d,!1);if(B!==za||!g||g[0]!==g[1]){let L=n(d,!1);return[lp,Ia].includes(B)?L:m("span",{style:{...On,WebkitLineClamp:i}},L)}return n(a?d:sp(d,g[0]),R)},[a,B,g,d].concat(Ie(l))),_={width:o,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return m(je,null,H,B===Ma&&m(je,null,m(Bn,{style:{..._,...On,WebkitLineClamp:i},ref:v},p),m(Bn,{style:{..._,...On,WebkitLineClamp:i-1},ref:S},p),m(Bn,{style:{..._,...On,WebkitLineClamp:1},ref:$},n([],!0))),B===za&&g&&g[0]!==g[1]&&m(Bn,{style:{..._,top:400},ref:x},n(sp(d,M),!0)),B===Ta&&m("span",{style:{whiteSpace:"inherit"},ref:h}))}b();var mC=({enableEllipsis:e,isEllipsis:t,disabled:o,children:r,tooltipProps:n})=>!n?.title||!e?r:m(po,{...n,disabled:!t||o},r),cp=mC;function pC({mark:e,code:t,underline:o,delete:r,strong:n,keyboard:i,italic:a},s){let l=s;function c(d,u){u&&(l=m(d,{},l))}return c("strong",n),c("u",o),c("del",r),c("code",t),c("mark",e),c("kbd",i),c("i",a),l}var uC="...",dp=["delete","mark","code","underline","strong","keyboard","italic"],fC=W((e,t)=>{let{prefixCls:o,className:r,style:n,classNames:i,styles:a,direction:s,type:l,disabled:c,children:d,ellipsis:u,editable:p,copyable:g,actions:f,component:x,title:h,onMouseEnter:v,onMouseLeave:S,...$}=e,[R]=We("Text"),I=V(null),B=V(null),[O,A,w,T]=Jm(o,i,a,s,e),z=(0,rt.omit)($,dp),[M,H]=Mn(p),[_,L]=(0,rt.useControlledState)(!1,H.editing),{triggerType:k=["icon"]}=H,X=ee=>{ee&&H.onStart?.(),L(ee)},J=Ym(_);(0,rt.useLayoutEffect)(()=>{!_&&J&&B.current?.focus()},[_]);let oe=ee=>{ee?.preventDefault(),X(!0)},K=ee=>{H.onChange?.(ee),X(!1)},U=()=>{H.onCancel?.(),X(!1)},[ie,re]=Mn(g),{placement:le="end"}=f??{},{copied:Ne,copyLoading:he,onClick:Ce}=Km({copyConfig:re,children:d}),[pe,$e]=q(!1),[ue,ae]=q(!1),[G,Oe]=q(!1),[fe,qe]=q(!1),[we,_e]=q(!0),[ye,ce]=Mn(u,{expandable:!1,symbol:ee=>ee?R?.collapse:R?.expand}),[ze,vt]=(0,rt.useControlledState)(ce.defaultExpanded||!1,ce.expanded),Pe=ye&&(!ze||ce.expandable==="collapsible"),{rows:Le=1}=ce,ct=P(()=>Pe&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||M||ie),[Pe,ce,M,ie]);(0,rt.useLayoutEffect)(()=>{ye&&!ct&&($e((0,Vo.isStyleSupport)("webkitLineClamp")),ae((0,Vo.isStyleSupport)("textOverflow")))},[ct,ye]);let[Ze,$t]=q(Pe),Rt=P(()=>ct?!1:Le===1?ue:pe,[ct,Le,pe,ue]);(0,rt.useLayoutEffect)(()=>{$t(Rt&&Pe)},[Rt,Pe]);let Ke=Qm(ce.tooltip,H.text,d),Ye=Ze&&!!Ke.title,Ve=Pe&&(Ze?Ye&&fe:G),Mt=Pe&&Le===1&&Ze,nt=Pe&&Le>1&&Ze,dt=(ee,ne)=>{vt(ne.expanded),ce.onExpand?.(ee,ne)},[mt,_t]=q(0),[Et,Ct]=(0,rt.useDelayState)(!1),it=V(!1),at=({offsetWidth:ee})=>{_t(ee)},yt=ee=>{Oe(ee),G!==ee&&ce.onEllipsis?.(ee)},ot=Yt(()=>{let ee=I.current;if(ye&&Ye&&ee){let ne=ip(ee);qe(Qe=>Qe===ne?Qe:ne)}},[ye,Ye]);ge(()=>{it.current&&ot()},[ot,d,nt,we,mt]),ge(()=>{let ee=I.current;if(typeof IntersectionObserver>"u"||!ee||!Ye||!Pe)return;let ne=new IntersectionObserver(()=>{_e(!!ee.offsetParent)});return ne.observe(ee),()=>{ne.disconnect()}},[Ye,Pe]);let wt=P(()=>{if(!(!ye||Ze))return[H.text,d,h,Ke.title].find(yr)},[ye,Ze,h,Ke.title,Ve,H.text]);if(_)return m(qm,{value:H.text??(typeof d=="string"?d:""),onSave:K,onCancel:U,onEnd:H.onEnd,prefixCls:w,className:r,style:n,direction:T,component:x,maxLength:H.maxLength,autoSize:H.autoSize,enterIcon:H.enterIcon,classNames:O,styles:A});let zt=()=>{let{expandable:ee,symbol:ne}=ce;return ee?m("button",{type:"button",key:"expand",className:C(`${w}-${ze?"collapse":"expand"}`,O.action),style:A.action,onClick:Qe=>dt(Qe,{expanded:!ze}),"aria-label":ze?R.collapse:R?.expand},te(ne)?ne(ze):ne):null},pt=()=>{if(!M)return;let{icon:ee,tooltip:ne,tabIndex:Qe}=H,Kt=(0,rt.toArray)(ne)[0]||R?.edit,Hn=typeof Kt=="string"?Kt:"";return k.includes("icon")?m(po,{key:"edit",title:ne===!1?"":Kt},m("button",{type:"button",ref:B,className:C(`${w}-edit`,O.action),style:A.action,onClick:oe,"aria-label":Hn,tabIndex:Qe},ee||m(um,{role:"button"}))):null},st=()=>ie?m(ap,{key:"copy",...re,prefixCls:w,copied:Ne,locale:R,onCopy:Ce,loading:he,iconOnly:!Re(d),className:O.action,style:A.action}):null,bt=ee=>{let ne=ee&&zt(),Qe=pt(),Kt=st();return!ne&&!Qe&&!Kt?null:m("span",{key:"operations",className:C(`${w}-actions`,O.actions,{[`${w}-actions-start`]:le==="start"}),style:A.actions,onMouseEnter:()=>Ct(!0,!0),onMouseLeave:()=>Ct(!1,{ms:500})},ne,Qe,Kt)},se=ee=>[ee&&!ze&&m("span",{"aria-hidden":!0,key:"ellipsis"},uC),ce.suffix];return m(mp.default,{onResize:at,disabled:!Pe},ee=>m(cp,{tooltipProps:Ke,enableEllipsis:Pe,isEllipsis:Ve,disabled:Et},m(ep,{onMouseEnter:ne=>{it.current=!0,ot(),v?.(ne)},onMouseLeave:ne=>{it.current=!1,S?.(ne)},className:C({[`${w}-${l}`]:l,[`${w}-disabled`]:c,[`${w}-ellipsis`]:ye,[`${w}-ellipsis-single-line`]:Mt,[`${w}-ellipsis-multiple-line`]:nt,[`${w}-link`]:x==="a"},r),classNames:O,styles:A,prefixCls:w,style:{...n,WebkitLineClamp:nt?Le:void 0},component:x,ref:(0,rt.composeRef)(ee,I,t),direction:T,onClick:k.includes("text")?oe:void 0,"aria-label":wt?.toString(),title:h,...z},m(Ba,{enableMeasure:Pe&&!Ze,text:d,rows:Le,width:mt,onEllipsis:yt,expanded:ze,measureDeps:[le],miscDeps:[Ne,ze,he,M,ie,le,R].concat(Ie(dp.map(ne=>e[ne])))},(ne,Qe)=>pC(e,m(je,null,le==="start"?bt(Qe):null,ne.length>0&&Qe&&!ze&&wt?m("span",{key:"show-content","aria-hidden":!0},ne):ne,se(Qe),le==="start"?null:bt(Qe)))))))}),pp=fC;var gC=W((e,t)=>{let{ellipsis:o,children:r,...n}=e,i=P(()=>Y(o)?(0,up.omit)(o,["expandable","rows"]):o,[o]);return m(pp,{ref:t,...n,ellipsis:i,component:"span"},r)}),fp=gC;b();function Oa(e){return!e.defaultPrevented&&e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}var So=Je(so);b();function gp(e){return[{key:"gateway:home",label:"\u9996\u9875",href:"/",order:-1},...e.navigation].map(t=>({...t,active:t.href==="/"?e.pathname==="/":e.pathname===t.href||e.pathname.startsWith(`${t.href}/`)}))}var xp=de(void 0);function La({children:e,initialContext:t}){return F(xp,{value:t,children:e})}function Aa(){let e=Ha();return P(()=>gp(e),[e])}function Ha(){let e=N(xp);if(!e)throw new Error("ZlooksShellProvider is required");return e}var hp=Rr({Button:{textActiveBg:"transparent",textHoverBg:"transparent"}});var Ko=Je(Pd),xC=Je(Bo),hC=Je(Td),Cp=Je(Hd),Wt=Je(_d),CC=Je(xn),yC=Je(rm),Ln=Je(mm),St=Je(fp);function yp({className:e,classNames:t={},style:o,size:r="middle",shape:n="round",variant:i="compact",onNavigate:a,onLogout:s}){let l=Ha().user,[c,d]=q(!1),[u,p]=q(!1),{message:g,modal:f}=Ya(),x=An("zlooks-user-access-trigger",e,t.trigger),h=An("zlooks-user-access-avatar",t.avatar),v=An("zlooks-user-access-label",t.label),S=i==="avatar",$=bC(r,S),R=S?"circle":n,I=S?"circle":"square",B=S?{height:$,minWidth:$,padding:0,width:$,...o}:o;async function O(T,z){try{await s(T),z(),d(!1)}catch(M){Qa(M)||g.error("\u9000\u51FA\u767B\u5F55\u5931\u8D25")}}function A(T){f.confirm({title:"\u786E\u8BA4\u9000\u51FA\u767B\u5F55\uFF1F",content:"\u9000\u51FA\u540E\uFF0C\u9700\u8981\u91CD\u65B0\u767B\u5F55\u624D\u80FD\u8BBF\u95EE\u4E2A\u4EBA\u8D26\u6237\u3002",okText:"\u9000\u51FA\u767B\u5F55",okButtonProps:{danger:!0},cancelText:"\u53D6\u6D88",onOk(z){O(T,z)}})}function w(T,z,M){!a||!Oa(T)||(T.preventDefault(),M(),a(z))}return l.status==="unavailable"?F(Da,{children:F(So,{"aria-label":"\u8D26\u6237\u670D\u52A1\u6682\u4E0D\u53EF\u7528",className:x,disabled:!0,shape:R,size:r,style:B,type:"text",children:Me(Ln,{align:"center",size:6,children:[F(Ko,{className:h,shape:I,size:$,style:{background:"var(--ant-color-fill-secondary)",border:S?"none":void 0,borderRadius:S?"50%":9,boxShadow:S?"none":void 0,color:"var(--ant-color-text-tertiary)",fontSize:12,fontWeight:750},children:"Z"}),i==="compact"?F(St,{type:"secondary",children:"\u6682\u4E0D\u53EF\u7528"}):null]})})}):l.status==="authenticated"?F(Da,{children:F(yC,{arrow:!1,destroyOnHidden:!0,onOpenChange:d,open:c,placement:"bottomRight",styles:{container:{border:"1px solid var(--ant-color-border-secondary)",borderRadius:16,boxShadow:"0 18px 48px rgb(15 23 42 / 14%)",overflow:"hidden",padding:0},content:{maxWidth:"calc(100vw - 32px)",width:280}},trigger:"click",content:Me(Wt,{"aria-label":"\u8D26\u6237\u4FE1\u606F",className:t.popup,role:"dialog",style:{background:"var(--ant-color-bg-elevated)"},vertical:!0,children:[Me(Wt,{align:"center",gap:12,style:{background:["linear-gradient(color-mix(in srgb, var(--ant-color-fill-quaternary) 48%, transparent) 1px, transparent 1px)","linear-gradient(90deg, color-mix(in srgb, var(--ant-color-fill-quaternary) 48%, transparent) 1px, transparent 1px)","var(--ant-color-bg-elevated)"].join(", "),backgroundSize:"28px 28px",padding:16},children:[F(Ko,{className:h,shape:"square",size:44,src:l.user.avatarUrl,style:{background:"var(--ant-color-text)",borderRadius:12,color:"var(--ant-color-bg-container)",fontSize:16,fontWeight:700},children:l.user.avatarText}),Me(Wt,{style:{flex:1,minWidth:0},vertical:!0,children:[F(St,{strong:!0,ellipsis:!0,style:{fontSize:15,lineHeight:1.4},children:l.user.label}),l.user.secondary?F(St,{ellipsis:{tooltip:l.user.secondary},style:{display:"block"},type:"secondary",children:l.user.secondary}):null]}),F("span",{"aria-label":"\u5DF2\u767B\u5F55",role:"status",style:{background:"var(--ant-color-success)",borderRadius:999,boxShadow:"0 0 0 3px var(--ant-color-success-bg)",flex:"0 0 auto",height:7,width:7}})]}),F(hC,{style:{margin:0}}),Me(Wt,{gap:2,style:{padding:8},vertical:!0,children:[F(So,{block:!0,href:l.accountHref,size:"large",style:{fontWeight:600,height:44,paddingInline:12},type:"text",onClick:T=>w(T,l.accountHref,()=>d(!1)),children:Me(Wt,{justify:"space-between",style:{width:"100%"},children:[F("span",{children:"\u4E2A\u4EBA\u8D44\u6599"}),F(St,{"aria-hidden":"true",type:"secondary",children:"\u2192"})]})}),F(So,{block:!0,danger:!0,size:"large",style:{height:44,justifyContent:"flex-start",paddingInline:12},type:"text",onClick:()=>A(l.logoutHref),children:"\u9000\u51FA\u767B\u5F55"})]})]}),children:F(So,{"aria-expanded":c,"aria-haspopup":"dialog","aria-label":`\u6253\u5F00${l.user.label}\u7684\u8D26\u6237\u4FE1\u606F`,className:x,shape:R,size:r,style:B,type:"text",children:Me(Ln,{align:"center",size:6,children:[F(Ko,{className:h,shape:I,size:$,src:l.user.avatarUrl,style:{background:S?"var(--ant-color-fill-secondary)":"var(--ant-color-text)",border:S?"none":void 0,borderRadius:S?"50%":9,boxShadow:S?"none":void 0,color:S?"var(--ant-color-text)":"var(--ant-color-bg-container)",fontSize:12,fontWeight:700},children:l.user.avatarText}),i==="compact"?F(St,{className:v,ellipsis:!0,style:{fontSize:13,fontWeight:650,maxWidth:120},children:l.user.label}):null]})})})}):Me(Da,{children:[F(So,{"aria-expanded":u,"aria-haspopup":"dialog","aria-label":"\u767B\u5F55",className:x,shape:R,size:r,style:B,type:"text",onClick:()=>p(!0),children:Me(Ln,{align:"center",size:6,children:[F(Ko,{className:h,shape:I,size:$,style:{background:"var(--ant-color-primary-bg)",border:S?"none":"1px solid var(--ant-color-primary-border)",borderRadius:S?"50%":9,boxShadow:S?"none":void 0,color:"var(--ant-color-primary)",fontSize:12,fontWeight:750},children:"Z"}),i==="compact"?F(St,{className:v,style:{fontSize:13,fontWeight:650},children:"\u767B\u5F55"}):null]})}),F(CC,{centered:!0,destroyOnHidden:!0,footer:null,open:u,rootClassName:An("zlooks-user-access-modal",t.popup),styles:{body:{paddingTop:4},container:{border:"1px solid var(--ant-color-border-secondary)",borderRadius:22,boxShadow:"0 28px 80px rgb(15 23 42 / 18%)",overflow:"hidden",padding:24},header:{marginBottom:22}},title:Me(Ln,{align:"center",size:"middle",children:[F(Ko,{shape:"square",size:44,style:{background:"var(--ant-color-text)",borderRadius:12,color:"var(--ant-color-bg-container)",fontWeight:750},children:"Z"}),Me(Wt,{vertical:!0,children:[F(St,{strong:!0,style:{fontSize:17},children:"\u6B22\u8FCE\u56DE\u6765"}),F(St,{type:"secondary",children:"\u9009\u62E9\u4E00\u79CD\u65B9\u5F0F\u7EE7\u7EED"})]})]}),width:480,onCancel:()=>p(!1),children:Me(Wt,{gap:12,vertical:!0,children:[l.loginMethods.length===0?F(Cp,{description:"\u6682\u65F6\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",image:Cp.PRESENTED_IMAGE_SIMPLE,style:{paddingBlock:24}}):l.loginMethods.map((T,z)=>F(So,{block:!0,href:T.href,onClick:M=>w(M,T.href,()=>p(!1)),style:{height:"auto",minHeight:72,padding:"10px 14px",textAlign:"left"},children:Me(Wt,{align:"center",gap:14,justify:"space-between",style:{width:"100%"},children:[Me(Wt,{align:"center",gap:12,style:{minWidth:0},children:[F(Ko,{shape:"square",size:40,style:{background:"var(--ant-color-primary-bg)",borderRadius:11,color:"var(--ant-color-primary)",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:11,fontWeight:700},children:String(z+1).padStart(2,"0")}),Me(Wt,{style:{minWidth:0},vertical:!0,children:[F(St,{strong:!0,children:T.label}),F(St,{ellipsis:!0,type:"secondary",children:"\u7EE7\u7EED\u8BBF\u95EE\u4F60\u7684\u4E2A\u4EBA\u7A7A\u95F4"})]})]}),F(St,{"aria-hidden":"true",style:{color:"var(--ant-color-primary)"},children:"\u2192"})]})},T.id)),F(St,{style:{fontSize:12,marginTop:6,textAlign:"center"},type:"secondary",children:"\u767B\u5F55\u4FE1\u606F\u4EC5\u7528\u4E8E\u8BC6\u522B\u4F60\u7684\u8D26\u6237"})]})})]})}function Da({children:e}){let{mode:t}=gr(),{resolvedMode:o,resolvedTheme:r}=la(t),n=P(()=>({...r,cssVar:{key:`zlooks-user-access-${o}`},components:{...r.components,Button:{...r.components?.Button,...hp.Button}}}),[o,r]);return F(xC,{theme:n,children:e})}function An(...e){return e.filter(Boolean).join(" ")}function bC(e,t){return t&&e==="small"?28:t&&e==="large"?48:t?40:e==="small"?20:e==="large"?28:24}b();var bp=de(void 0);function Sp({children:e,initialConfig:t}){return F(bp,{value:t,children:e})}function vp(){return SC().value}function SC(){let e=N(bp);if(!e)throw new Error("ZlooksSiteConfigProvider is required");return e}var Tt={page:"u",headerWrap:"v",header:"c",brand:"m",brandMark:"p",brandLogo:"l",navigation:"e",actions:"s",content:"f",footer:"r"};function $C({children:e,shell:t,site:o}){return F(sa,{children:F(La,{initialContext:t,children:F(Sp,{initialConfig:o,children:F(RC,{children:e})})})})}function RC({children:e}){let t=Aa(),o=vp(),r=Ja(),n=Xa();async function i(a){await r(a,{method:"POST",credentials:"same-origin"},{errorMessage:"\u9000\u51FA\u767B\u5F55\u5931\u8D25"}),n.refresh()}return Me("div",{className:Tt.page,"data-shared-page-frame":!0,children:[F("div",{className:Tt.headerWrap,children:Me("header",{className:Tt.header,children:[Me(Sr,{className:Tt.brand,href:o.identity.homeHref,children:[o.identity.logoUrl?F("img",{alt:"",className:Tt.brandLogo,src:o.identity.logoUrl}):F("span",{className:Tt.brandMark,"aria-hidden":"true",children:"Z"}),F("span",{children:o.identity.name})]}),F("nav",{"aria-label":"\u4E3B\u5BFC\u822A",className:Tt.navigation,children:t.map(a=>F(Sr,{"aria-current":a.active?"page":void 0,href:a.href,children:a.label},a.key))}),F("div",{className:Tt.actions,children:F(yp,{size:"middle",shape:"round",variant:"avatar",onLogout:i,onNavigate:n.push})})]})}),F("main",{className:Tt.content,children:e}),Me("footer",{className:Tt.footer,children:[Me("div",{children:[F("strong",{children:o.identity.name}),F("span",{children:"\u4FDD\u6301\u597D\u5947\uFF0C\u8BA4\u771F\u751F\u6D3B\u3002"})]}),Me("div",{children:[o.legal.registrations.map(a=>a.verificationUrl?F(Sr,{href:a.verificationUrl,children:a.number},a.id):F("span",{children:a.number},a.id)),o.legal.copyright?F("small",{children:o.legal.copyright}):null]})]})]})}export{$C as default};