antd
Version:
An enterprise-class UI design language and React components implementation
21 lines • 1.54 MB
JavaScript
/*! For license information please see antd.min.js.LICENSE.txt */
((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("dayjs")):"function"==typeof define&&define.amd?define(["react","react-dom","dayjs"],t):"object"==typeof exports?exports.antd=t(require("react"),require("react-dom"),require("dayjs")):e.antd=t(e.React,e.ReactDOM,e.dayjs)})(this,function(t,n,r){return a={154:function(e,t,n){n(9145),e.exports=n(665)},193:function(e,t,n){n.d(t,{OF:function(){return l},Or:function(){return c},bf:function(){return s}});var r=n(5442),t=n(4277),o=n(2874),a=n(9612),i=n(9790);let{genStyleHooks:l,genComponentStyleHook:c,genSubStyleComponent:s}=(0,t.L_)({usePrefix:()=>{var{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(o.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{var[e,t,n,r,o]=(0,i.Ay)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{var e=(0,r.useContext)(o.QO).csp;return null!=e?e:{}},getResetStyles:(e,t)=>{var e=(0,a.av)(e);return[e,{"&":e},(0,a.jz)(null!=(e=null==t?void 0:t.prefix.iconPrefixCls)?e:o.pM)]},getCommonStyle:a.vj,getCompUnitless:()=>i.Is})},247:function(e,t,n){n.r(t),n.d(t,{default:function(){return s},prepareComponentToken:function(){return c}});var o=n(9612),t=n(193),a=n(5748),i=n(1014);let l=(e,t,n,r)=>{var{titleMarginBottom:r,fontWeightStrong:o}=r;return{marginBottom:r,color:n,fontWeight:o,fontSize:e,lineHeight:t}},r=e=>{var t,{componentCls:n,titleMarginTop:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success`]:{color:e.colorSuccessText},[`&${n}-warning`]:{color:e.colorWarningText},[`&${n}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},(t=>{let n={};return[1,2,3,4,5].forEach(e=>{n[`
h${e}&,
div&-h${e},
div&-h${e} > textarea,
h${e}
`]=l(t["fontSizeHeading"+e],t["lineHeightHeading"+e],t.colorTextHeading,t)}),n})(e)),{[`
& + h1${n},
& + h2${n},
& + h3${n},
& + h4${n},
& + h5${n}
`]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),{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:"1px solid 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:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:a.bK[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"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:"1px solid 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}}),(t=(r=e).componentCls,{"a&, a":Object.assign(Object.assign({},(0,o.Y1)(r)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:r.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:r.colorTextDisabled},"&:active":{pointerEvents:"none"}}})})),{[`
${n}-expand,
${n}-collapse,
${n}-edit,
${n}-copy
`]:Object.assign(Object.assign({},(0,o.Y1)(e)),{marginInlineStart:e.marginXXS})}),(e=>{var{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${(0,i.unit)(n)})`},[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"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}})(e)),{[e.componentCls+"-copy-success"]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[e.componentCls+"-copy-icon-only"]:{marginInlineStart:0}}),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","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"}}),{"&-rtl":{direction:"rtl"}})}},c=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var s=(0,t.OF)("Typography",e=>[r(e)],c)},250:function(e,t,n){var a=n(1014),i=n(8940),l=n(9612);t.A=e=>{var{prefixCls:t,componentCls:n}=e,r=n+"-menu-item",o=`
&${r}-expand ${r}-expand-icon,
${r}-loading-icon
`;return[(0,i.getStyle)(t+"-checkbox",e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[n+"-menu"]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,a.unit)(e.lineWidth)} ${e.lineType} `+e.colorSplit},"&-item":Object.assign(Object.assign({},l.L9),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:"all "+e.motionDurationMid,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]}},267:function(e,t,n){n.d(t,{Ob:function(){return i},fx:function(){return a},zv:function(){return o}});var t=n(5442),r=n.n(t);function o(e){return e&&r().isValidElement(e)&&e.type===r().Fragment}let a=(e,t,n)=>r().isValidElement(e)?r().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function i(e,t){return a(e,e,t)}},436:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(3145);var o=n(3893),a=n(7800);function i(e){return(e=>{if(Array.isArray(e))return(0,r.A)(e)})(e)||(0,o.A)(e)||(0,a.A)(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}},445:function(e){e.exports=(()=>{function e(t){return function(e){this[t]=+e}}function n(e){return(e=m[e])&&(e.indexOf?e:e.s.concat(e.f))}function t(e,t){var n,r=m.meridiem;if(r){for(var o=1;o<=24;o+=1)if(-1<e.indexOf(r(o,0,t))){n=12<o;break}}else n=e===(t?"pm":"PM");return n}var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},c=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,m={},s=function(e){return(e=+e)+(68<e?1900:2e3)},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){var t;(this.zone||(this.zone={})).offset=!e||"Z"===e||0===(t=60*(e=e.match(/([+-]|\d\d)/g))[1]+(+e[2]||0))?0:"+"===e[0]?-t:t}],p={A:[i,function(e){this.afternoon=t(e,!1)}],a:[i,function(e){this.afternoon=t(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,e("seconds")],ss:[a,e("seconds")],m:[a,e("minutes")],mm:[a,e("minutes")],H:[a,e("hours")],h:[a,e("hours")],HH:[a,e("hours")],hh:[a,e("hours")],D:[a,e("day")],DD:[o,e("day")],Do:[i,function(e){var t=m.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[a,e("week")],ww:[o,e("week")],M:[a,e("month")],MM:[o,e("month")],MMM:[i,function(e){var t=n("months"),t=(n("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],MMMM:[i,function(e){e=n("months").indexOf(e)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,e("year")],YY:[o,function(e){this.year=s(e)}],YYYY:[/\d{4}/,e("year")],Z:u,ZZ:u};function S(e){for(var t=e,o=m&&m.formats,u=(e=t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,t,n){var r=n&&n.toUpperCase();return t||o[n]||l[n]||o[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(c),d=u.length,n=0;n<d;n+=1){var r=u[n],a=p[r],i=a&&a[0],a=a&&a[1];u[n]=a?{regex:i,parser:a}:r.replace(/^\[|\]$/g,"")}return function(e){for(var t,n,r,o={},a=0,i=0;a<d;a+=1){var l,c,s=u[a];"string"==typeof s?i+=s.length:(c=s.regex,s=s.parser,l=e.slice(i),c=c.exec(l)[0],s.call(o,c),e=e.replace(c,""))}return void 0!==(r=(t=o).afternoon)&&(n=t.hours,r?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon),o}}return function(e,t,p){p.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var e=t.prototype,f=e.parse;e.parse=function(e){var t=e.date,n=e.utc,r=e.args,o=(this.$u=n,r[1]);if("string"==typeof o){var a=!0===r[2],i=!0===r[3],l=a||i,c=r[2];i&&(c=r[2]),m=this.$locale(),!a&&c&&(m=p.Ls[c]),this.$d=((e,t,n,r)=>{try{if(-1<["x","X"].indexOf(t))return new Date(("X"===t?1e3:1)*e);var o=S(t)(e),a=o.year,i=o.month,l=o.day,c=o.hours,s=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,f=o.week,m=new Date,g=l||(a||i?1:m.getDate()),h=a||m.getFullYear(),v=0;a&&!i||(v=0<i?i-1:m.getMonth());var b,y=c||0,C=s||0,x=u||0,w=d||0;return p?new Date(Date.UTC(h,v,g,y,C,x,w+60*p.offset*1e3)):n?new Date(Date.UTC(h,v,g,y,C,x,w)):(b=new Date(h,v,g,y,C,x,w),b=f?r(b).week(f).toDate():b)}catch(e){return new Date("")}})(t,o,n,p),this.init(),c&&!0!==c&&(this.$L=this.locale(c).$L),l&&t!=this.format(o)&&(this.$d=new Date("")),m={}}else if(o instanceof Array)for(var s=o.length,u=1;u<=s;u+=1){r[1]=o[u-1];var d=p.apply(this,r);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}u===s&&(this.$d=new Date(""))}else f.call(this,e)}}})()},488:function(e,t,n){n.d(t,{A:function(){return d},h:function(){return r}});var c=n(2284),i=n(9379),s=n(436),l=n(7695),u=n(6300);function d(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,u.A)(e,t.slice(0,-1))?e:function e(t,n,r,o){var a;return n.length?(a=(n=(0,l.A)(n))[0],n=n.slice(1),t=t||"number"!=typeof a?Array.isArray(t)?(0,s.A)(t):(0,i.A)({},t):[],o&&void 0===r&&1===n.length?delete t[a][n[0]]:t[a]=e(t[a],n,r,o),t):r}(e,t,n,r)}function p(e){return Array.isArray(e)?[]:{}}var f="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var l=p(t[0]);return t.forEach(function(i){!function t(n,e){var r,o=new Set(e),e=(0,u.A)(i,n),a=Array.isArray(e);a||(r=e,"object"===(0,c.A)(r)&&null!==r&&Object.getPrototypeOf(r)===Object.prototype)?o.has(e)||(o.add(e),r=(0,u.A)(l,n),a?l=d(l,n,[]):r&&"object"===(0,c.A)(r)||(l=d(l,n,p(e))),f(e).forEach(function(e){t([].concat((0,s.A)(n),[e]),o)})):l=d(l,n,e)}([])}),l}},651:function(e,t){t.A={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},665:function(f,e,t){t.r(e),t.d(e,{Affix:function(){return ce},Alert:function(){return Fe},Anchor:function(){return Ct},App:function(){return Fi},AutoComplete:function(){return ms},Avatar:function(){return Qs},BackTop:function(){return tu},Badge:function(){return uu},Breadcrumb:function(){return xp},Button:function(){return Dr},Calendar:function(){return W0},Card:function(){return jm},Carousel:function(){return Og},Cascader:function(){return Ah},Checkbox:function(){return Ph},Col:function(){return Dh},Collapse:function(){return Lh.A},ColorPicker:function(){return Fb},ConfigProvider:function(){return Hn},DatePicker:function(){return v1},Descriptions:function(){return j1},Divider:function(){return Xh},Drawer:function(){return K1},Dropdown:function(){return J1},Empty:function(){return Uc},Flex:function(){return ry},FloatButton:function(){return xy},Form:function(){return nC},Grid:function(){return rC},Image:function(){return FC},Input:function(){return px},InputNumber:function(){return Wv},Layout:function(){return bx},List:function(){return e2},Mentions:function(){return b2},Menu:function(){return ip},Modal:function(){return j2},Pagination:function(){return $x},Popconfirm:function(){return G2},Popover:function(){return Ys},Progress:function(){return yw},QRCode:function(){return Yw},Radio:function(){return Uw},Rate:function(){return lS},Result:function(){return gS},Row:function(){return hS},Segmented:function(){return nv},Select:function(){return ds},Skeleton:function(){return qa},Slider:function(){return Ab},Space:function(){return Q1},Spin:function(){return Gx},Splitter:function(){return S6},Statistic:function(){return ES},Steps:function(){return $S},Switch:function(){return DS},Table:function(){return m4},Tabs:function(){return km},Tag:function(){return x4},TimePicker:function(){return T4},Timeline:function(){return _4},Tooltip:function(){return Ws},Tour:function(){return s3},Transfer:function(){return O3},Tree:function(){return MA},TreeSelect:function(){return Y3},Typography:function(){return IO},Upload:function(){return i6},Watermark:function(){return g6},message:function(){return I2},notification:function(){return W2},theme:function(){return j4},unstableSetRender:function(){return Zn},version:function(){return l6.A}});var at=t(5442),je=t.n(at),e=t(6942),it=t.n(e),Je=t(8168),me=t(2546),Ee=t(8210),lt=t(9379),et=t(2284),ft=t(6588),Pe=t(8719),m=at.createContext(null);var g="undefined"!=typeof Map?Map:(Object.defineProperty(h.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),h.prototype.get=function(e){e=v(this.__entries__,e),e=this.__entries__[e];return e&&e[1]},h.prototype.set=function(e,t){var n=v(this.__entries__,e);~n?this.__entries__[n][1]=t:this.__entries__.push([e,t])},h.prototype.delete=function(e){var t=this.__entries__,e=v(t,e);~e&&t.splice(e,1)},h.prototype.has=function(e){return!!~v(this.__entries__,e)},h.prototype.clear=function(){this.__entries__.splice(0)},h.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},h);function h(){this.__entries__=[]}function v(e,n){var r=-1;return e.some(function(e,t){return e[0]===n&&(r=t,!0)}),r}var b="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,y=void 0!==t.g&&t.g.Math===Math?t.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),C="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(y):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},x=2;var w=["top","right","bottom","left","width","height","size","weight"],S="undefined"!=typeof MutationObserver,k=(E.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},E.prototype.removeObserver=function(e){var t=this.observers_,e=t.indexOf(e);~e&&t.splice(e,1),!t.length&&this.connected_&&this.disconnect_()},E.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},E.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),0<e.length},E.prototype.connect_=function(){b&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),S?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},E.prototype.disconnect_=function(){b&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},E.prototype.onTransitionEnd_=function(e){var e=e.propertyName,t=void 0===e?"":e;w.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},E.getInstance=function(){return this.instance_||(this.instance_=new E),this.instance_},E.instance_=null,E);function E(){function e(){a&&(a=!1,r()),i&&n()}function t(){C(e)}function n(){var e=Date.now();if(a){if(e-l<x)return;i=!0}else i=!(a=!0),setTimeout(t,o);l=e}var r,o,a,i,l;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(r=this.refresh.bind(this),i=a=!(o=20),l=0,n)}var A=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},O=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||y},I=$(0,0,0,0);function N(e){return parseFloat(e)||0}function M(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.reduce(function(e,t){return e+N(n["border-"+t+"-width"])},0)}function j(e){var t,n,r,o,a,i,l=e.clientWidth,c=e.clientHeight;return l||c?(n=(t=(e=>{for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=N(a)}return t})(i=O(e).getComputedStyle(e))).left+t.right,r=t.top+t.bottom,o=N(i.width),a=N(i.height),"border-box"===i.boxSizing&&(Math.round(o+n)!==l&&(o-=M(i,"left","right")+n),Math.round(a+r)!==c)&&(a-=M(i,"top","bottom")+r),e!==O(e).document.documentElement&&(i=Math.round(o+n)-l,e=Math.round(a+r)-c,1!==Math.abs(i)&&(o-=i),1!==Math.abs(e))&&(a-=e),$(t.left,t.top,o,a)):I}var P="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof O(e).SVGGraphicsElement}:function(e){return e instanceof O(e).SVGElement&&"function"==typeof e.getBBox};function R(e){var t;return b?P(e)?$(0,0,(t=(t=e).getBBox()).width,t.height):j(e):I}function $(e,t,n,r){return{x:e,y:t,width:n,height:r}}z.prototype.isActive=function(){var e=R(this.target);return(this.contentRect_=e).width!==this.broadcastWidth||e.height!==this.broadcastHeight},z.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var T=z;function z(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$(0,0,0,0),this.target=e}var B=function(e,t){n=(t=t).x,r=t.y,a=t.width,t=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(o.prototype),A(o,{x:n,y:r,width:a,height:t,top:r,right:n+a,bottom:t+r,left:n});var n,r,o,a=o;A(this,{target:e,contentRect:a})},H=(D.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof O(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new T(e)),this.controller_.addObserver(this),this.controller_.refresh())}},D.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof O(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},D.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},D.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},D.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new B(e.target,e.broadcastRect())}),this.callback_.call(e,t,e),this.clearActive())},D.prototype.clearActive=function(){this.activeObservations_.splice(0)},D.prototype.hasActive=function(){return 0<this.activeObservations_.length},D);function D(e,t,n){if(this.activeObservations_=[],this.observations_=new g,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}var L=new("undefined"!=typeof WeakMap?WeakMap:g),F=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=k.getInstance(),t=new H(t,n,this);L.set(this,t)};["observe","unobserve","disconnect"].forEach(function(t){F.prototype[t]=function(){var e;return(e=L.get(this))[t].apply(e,arguments)}});var W=void 0!==y.ResizeObserver?y.ResizeObserver:F,_=new Map;var K=new W(function(e){e.forEach(function(e){var t=e.target;null!=(e=_.get(t))&&e.forEach(function(e){return e(t)})})});var V=t(3029),q=t(2901),X=t(5501),G=t(9426),Y=(e=>{(0,X.A)(n,e);var t=(0,G.A)(n);function n(){return(0,V.A)(this,n),t.apply(this,arguments)}return(0,q.A)(n,[{key:"render",value:function(){return this.props.children}}]),n})(at.Component);function U(e,t){function r(){var e;return(0,ft.Ay)(a.current)||(a.current&&"object"===(0,et.A)(a.current)?(0,ft.Ay)(null==(e=a.current)?void 0:e.nativeElement):null)||(0,ft.Ay)(i.current)}var n=e.children,o=e.disabled,a=at.useRef(null),i=at.useRef(null),u=at.useContext(m),l="function"==typeof n,n=l?n(a):n,d=at.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=!l&&at.isValidElement(n)&&(0,Pe.f3)(n),c=l?(0,Pe.A9)(n):null,c=(0,Pe.xK)(c,a),p=(at.useImperativeHandle(t,r),at.useRef(e)),s=(p.current=e,at.useCallback(function(e){var t,n=p.current,r=n.onResize,n=n.data,o=e.getBoundingClientRect(),a=o.width,o=o.height,i=e.offsetWidth,l=e.offsetHeight,c=Math.floor(a),s=Math.floor(o);d.current.width===c&&d.current.height===s&&d.current.offsetWidth===i&&d.current.offsetHeight===l||(d.current=c={width:c,height:s,offsetWidth:i,offsetHeight:l},s=i===Math.round(a)?a:i,a=l===Math.round(o)?o:l,t=(0,lt.A)((0,lt.A)({},c),{},{offsetWidth:s,offsetHeight:a}),null!=u&&u(t,e,n),r&&Promise.resolve().then(function(){r(t,e)}))},[]));return at.useEffect(function(){var e,t,n=r();return n&&!o&&(e=n,t=s,_.has(e)||(_.set(e,new Set),K.observe(e)),_.get(e).add(t)),function(){var e,t;e=n,t=s,_.has(e)&&(_.get(e).delete(t),_.get(e).size||(K.unobserve(e),_.delete(e)))}},[a.current,o]),at.createElement(Y,{ref:i},l?at.cloneElement(n,{ref:c}):n)}var Q=at.forwardRef(U);function Z(r,o){var e=r.children;return("function"==typeof e?[e]:(0,me.A)(e)).map(function(e,t){var n=(null==e?void 0:e.key)||"".concat("rc-observer-key","-").concat(t);return at.createElement(Q,(0,Je.A)({},r,{key:n,ref:0===t?o:void 0}),e)})}var e=at.forwardRef(Z),mt=(e.Collection=function(e){var t=e.children,o=e.onBatchResize,a=at.useRef(0),i=at.useRef([]),l=at.useContext(m),e=at.useCallback(function(e,t,n){a.current+=1;var r=a.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then(function(){r===a.current&&(null!=o&&o(i.current),i.current=[])}),null!=l&&l(e,t,n)},[o,l]);return at.createElement(m.Provider,{value:e},t)},e),ct=t(436),He=t(5371);var J=function(n){let r;var e=(...e)=>{var t;null==r&&(r=(0,He.A)((t=e,()=>{r=null,n.apply(void 0,(0,ct.A)(t))})))};return e.cancel=()=>{He.A.cancel(r),r=null},e},ze=t(2874),ee=t(3481);function ne(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function re(e,t,n){if(void 0!==n&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function oe(e,t,n){if(void 0!==n&&Math.round(t.bottom)<Math.round(e.bottom)+n)return n+(window.innerHeight-t.bottom)}var ae=function(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let ie=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function le(){return"undefined"!=typeof window?window:null}var ce=je().forwardRef((e,t)=>{let n,{style:r,offsetTop:o,offsetBottom:a,prefixCls:i,className:l,rootClassName:c,children:s,target:u,onChange:d}=e,p=ae(e,["style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","onTestUpdatePosition"]);var{getPrefixCls:e,getTargetContainer:f}=je().useContext(ze.QO),e=e("affix",i);let[m,g]=je().useState(!1),[h,v]=je().useState(),[b,y]=je().useState(),C=je().useRef(0),x=je().useRef(null),w=je().useRef(null),S=je().useRef(null),k=je().useRef(null),E=je().useRef(null),A=null!=(n=null!=u?u:f)?n:le,O=void 0===a&&void 0===o?0:o,I=()=>{var e,t,n,r;(C.current=1)===C.current&&k.current&&S.current&&A&&(r=A())&&(e={status:0},0===(t=ne(S.current)).top&&0===t.left&&0===t.width&&0===t.height||(n=re(t,r=ne(r),O),r=oe(t,r,a),void 0!==n?(e.affixStyle={position:"fixed",top:n,width:t.width,height:t.height},e.placeholderStyle={width:t.width,height:t.height}):void 0!==r&&(e.affixStyle={position:"fixed",bottom:r,width:t.width,height:t.height},e.placeholderStyle={width:t.width,height:t.height}),e.lastAffix=!!e.affixStyle,m!==e.lastAffix&&null!=d&&d(e.lastAffix),C.current=e.status,v(e.affixStyle),y(e.placeholderStyle),g(e.lastAffix)))},N=J(()=>{I()}),M=J(()=>{if(A&&h){var e=A();if(e&&S.current){var e=ne(e),t=ne(S.current),n=re(t,e,O),t=oe(t,e,a);if(void 0!==n&&h.top===n||void 0!==t&&h.bottom===t)return}}I()}),j=()=>{let n=null==A?void 0:A();n&&(ie.forEach(e=>{var t;w.current&&null!=(t=x.current)&&t.removeEventListener(e,w.current),null!=n&&n.addEventListener(e,M)}),x.current=n,w.current=M)},P=()=>{E.current&&(clearTimeout(E.current),E.current=null);let n=null==A?void 0:A();ie.forEach(e=>{var t;null!=n&&n.removeEventListener(e,M),w.current&&null!=(t=x.current)&&t.removeEventListener(e,w.current)}),N.cancel(),M.cancel()};je().useImperativeHandle(t,()=>({updatePosition:N})),je().useEffect(()=>(E.current=setTimeout(j),()=>P()),[]),je().useEffect(()=>(j(),()=>P()),[u,h,m,o,a]),je().useEffect(()=>{N()},[u,o,a]);var[f,t,R]=(0,ee.default)(e),t=it()(c,t,e,R),e=it()({[t]:h});return f(je().createElement(mt,{onResize:N},je().createElement("div",Object.assign({style:r,className:l,ref:S},p),h&&je().createElement("div",{style:b,"aria-hidden":"true"}),je().createElement("div",{className:e,ref:k,style:h},je().createElement(mt,{onResize:N},s)))))}),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},n=t(7064),ue=at.forwardRef(function(e,t){return at.createElement(n.A,(0,Je.A)({},e,{ref:t,icon:se}))}),pe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},fe=at.forwardRef(function(e,t){return at.createElement(n.A,(0,Je.A)({},e,{ref:t,icon:pe}))}),ge={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},he=at.forwardRef(function(e,t){return at.createElement(n.A,(0,Je.A)({},e,{ref:t,icon:ge}))}),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},be=at.forwardRef(function(e,t){return at.createElement(n.A,(0,Je.A)({},e,{ref:t,icon:ve}))}),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},Ce=at.forwardRef(function(e,t){return at.createElement(n.A,(0,Je.A)({},e,{ref:t,icon:ye}))}),xe=t(754),tt=t(2065),te=t(267),we=t(2793),Se=function(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let ke={success:ue,info:Ce,error:fe,warning:be},Ae=e=>{let{icon:t,prefixCls:n,type:r}=e;e=ke[r]||null;return t?(0,te.fx)(t,at.createElement("span",{className:n+"-icon"},t),()=>({className:it()(n+"-icon",t.props.className)})):at.createElement(e,{className:n+"-icon"})},Oe=e=>{var{isClosable:e,prefixCls:t,closeIcon:n,handleClose:r,ariaProps:o}=e,n=!0===n||void 0===n?at.createElement(he,null):n;return e?at.createElement("button",Object.assign({type:"button",onClick:r,className:t+"-close-icon",tabIndex:0},o),n):null};var Ie=at.forwardRef((r,e)=>{let{description:o,prefixCls:t,message:a,banner:n,className:i,rootClassName:l,style:c,onMouseEnter:s,onMouseLeave:u,onClick:d,afterClose:p,showIcon:f,closable:m,closeText:g,closeIcon:h,action:v,id:b}=r,y=Se(r,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,x]=at.useState(!1),w=at.useRef(null),{getPrefixCls:S,direction:k,closable:E,closeIcon:A,className:O,style:I}=(at.useImperativeHandle(e,()=>({nativeElement:w.current})),(0,ze.TP)("alert")),N=S("alert",t);var[e,M,j]=(0,we.default)(N);let P=e=>{var t;x(!0),null!=(t=r.onClose)&&t.call(r,e)},R=at.useMemo(()=>void 0!==r.type?r.type:n?"warning":"info",[r.type,n]),$=at.useMemo(()=>!("object"!=typeof m||!m.closeIcon)||!!g||("boolean"==typeof m?m:!1!==h&&null!=h||!!E),[g,h,m,E]),T=!(!n||void 0!==f)||f,z=it()(N,N+"-"+R,{[N+"-with-description"]:!!o,[N+"-no-icon"]:!T,[N+"-banner"]:!!n,[N+"-rtl"]:"rtl"===k},O,i,l,j,M),B=(0,tt.A)(y,{aria:!0,data:!0}),H=at.useMemo(()=>"object"==typeof m&&m.closeIcon?m.closeIcon:g||(void 0!==h?h:"object"==typeof E&&E.closeIcon?E.closeIcon:A),[h,m,g,A]),D=at.useMemo(()=>{var e,t=null!=m?m:E;return"object"==typeof t?(e=t.closeIcon,Se(t,["closeIcon"])):{}},[m,E]);return e(at.createElement(xe.Ay,{visible:!C,motionName:N+"-motion",motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:p},({className:e,style:t},n)=>at.createElement("div",Object.assign({id:b,ref:(0,Pe.K4)(w,n),"data-show":!C,className:it()(z,e),style:Object.assign(Object.assign(Object.assign({},I),c),t),onMouseEnter:s,onMouseLeave:u,onClick:d,role:"alert"},B),T?at.createElement(Ae,{description:o,icon:r.icon,prefixCls:N,type:R}):null,at.createElement("div",{className:N+"-content"},a?at.createElement("div",{className:N+"-message"},a):null,o?at.createElement("div",{className:N+"-description"},o):null),v?at.createElement("div",{className:N+"-action"},v):null,at.createElement(Oe,{isClosable:$,prefixCls:N,closeIcon:H,handleClose:P,ariaProps:D}))))}),Ne=t(3954),Me=t(2176),Be=t(6822);var e=(e=>{function r(){var e,t,n;return(0,V.A)(this,r),e=this,t=r,n=arguments,t=(0,Ne.A)(t),(t=(0,Be.A)(e,(0,Me.A)()?Reflect.construct(t,n||[],(0,Ne.A)(e).constructor):t.apply(e,n))).state={error:void 0,info:{componentStack:""}},t}return(0,X.A)(r,e),(0,q.A)(r,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var{message:e,description:t,id:n,children:r}=this.props,{error:o,info:a}=this.state,a=(null==a?void 0:a.componentStack)||null,e=void 0===e?(o||"").toString():e;return o?at.createElement(Ie,{id:n,type:"error",message:e,description:at.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?a:t)}):r}}])})(at.Component),Le=Ie,Fe=(Le.ErrorBoundary=e,Le),st=t(6956);let We=e=>"object"==typeof e&&null!=e&&1===e.nodeType,_e=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Ke=(e,t)=>{var n;return(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(n=getComputedStyle(e,null),_e(n.overflowY,t)||_e(n.overflowX,t)||!!(t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(n=e))&&(t.clientHeight<n.scrollHeight||t.clientWidth<n.scrollWidth))},Ve=(e,t,n,r,o,a,i,l)=>a<e&&t<i||e<a&&i<t?0:a<=e&&l<=n||t<=i&&n<=l?a-e-r:t<i&&l<n||a<e&&n<l?i-t+o:0,qe=e=>{var t=e.parentElement;return null==t?e.getRootNode().host||null:t},Xe=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];let{scrollMode:y,block:C,inline:x,boundary:i,skipOverflowHiddenElements:l}=t,c="function"==typeof i?i:e=>e!==i;if(!We(e))throw new TypeError("Invalid target");var w=document.scrollingElement||document.documentElement,S=[];let s=e;for(;We(s)&&c(s);){if((s=qe(s))===w){S.push(s);break}null!=s&&s===document.body&&Ke(s)&&!Ke(document.documentElement)||null!=s&&Ke(s,l)&&S.push(s)}let k=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,E=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:A,scrollY:O}=window,{height:I,width:N,top:M,right:j,bottom:P,left:R}=e.getBoundingClientRect(),{top:u,right:d,bottom:p,left:f}=(t=window.getComputedStyle(e),{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}),$="start"===C||"nearest"===C?M-u:"end"===C?P+p:M+I/2-u+p,T="center"===x?R+N/2-f+d:"end"===x?j+d:R-f;var z=[];for(let t=0;t<S.length;t++){let n=S[t],{height:r,width:o,top:a,right:i,bottom:l,left:c}=n.getBoundingClientRect();if("if-needed"===y&&0<=M&&0<=R&&P<=E&&j<=k&&(n===w&&!Ke(n)||M>=a&&P<=l&&R>=c&&j<=i))return z;let e=getComputedStyle(n),s=parseInt(e.borderLeftWidth,10),u=parseInt(e.borderTopWidth,10),d=parseInt(e.borderRightWidth,10),p=parseInt(e.borderBottomWidth,10),f=0,m=0,g="offsetWidth"in n?n.offsetWidth-n.clientWidth-s-d:0,h="offsetHeight"in n?n.offsetHeight-n.clientHeight-u-p:0,v=!("offsetWidth"in n)||0===n.offsetWidth?0:o/n.offsetWidth,b=!("offsetHeight"in n)||0===n.offsetHeight?0:r/n.offsetHeight;if(w===n)f="start"===C?$:"end"===C?$-E:"nearest"===C?Ve(O,O+E,E,u,p,O+$,O+$+I,I):$-E/2,m="start"===x?T:"center"===x?T-k/2:"end"===x?T-k:Ve(A,A+k,k,s,d,A+T,A+T+N,N),f=Math.max(0,f+O),m=Math.max(0,m+A);else{f="start"===C?$-a-u:"end"===C?$-l+p+h:"nearest"===C?Ve(a,l,r,u,p+h,$,$+I,I):$-(a+r/2)+h/2,m="start"===x?T-c-s:"center"===x?T-(c+o/2)+g/2:"end"===x?T-i+d+g:Ve(c,i,o,s,d+g,T,T+N,N);let{scrollLeft:e,scrollTop:t}=n;f=0==b?0:Math.max(0,Math.min(t+f/b,n.scrollHeight-r/b+h)),m=0==v?0:Math.max(0,Math.min(e+m/v,n.scrollWidth-o/v+g)),$+=t-f,T+=e-m}z.push({el:n,top:f,left:m})}return z},Ge=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};function Ye(t,e){if(t.isConnected&&(()=>{let e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})()){n=window.getComputedStyle(t);var n,r={top:parseFloat(n.scrollMarginTop)||0,right:parseFloat(n.scrollMarginRight)||0,bottom:parseFloat(n.scrollMarginBottom)||0,left:parseFloat(n.scrollMarginLeft)||0};if("object"==typeof e&&"function"==typeof e.behavior)return e.behavior(Xe(t,e));var o,a,i,l="boolean"==typeof e||null==e?void 0:e.behavior;for({el:o,top:a,left:i}of Xe(t,Ge(e))){var c=a-r.top+r.bottom,s=i-r.left+r.right;o.scroll({top:c,left:s,behavior:l})}}}function Ue(e){return null!=e&&e===e.window}var Qe=e=>{var t;if("undefined"==typeof window)return 0;let n=0;return Ue(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),n=e&&!Ue(e)&&"number"!=typeof n?null==(t=(null!=(t=e.ownerDocument)?t:e).documentElement)?void 0:t.scrollTop:n};function Ze(a,e={}){let{getContainer:t=()=>window,callback:i,duration:l=450}=e,c=t(),s=Qe(c),u=Date.now(),d=()=>{var e,t,n,r=Date.now()-u,o=(e=r>l?l:r,t=s,n=a,o=l,n-=t,(e/=o/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t);Ue(c)?c.scrollTo(window.pageXOffset,o):c instanceof Document||"HTMLDocument"===c.constructor.name?c.documentElement.scrollTop=o:c.scrollTop=o,r<l?(0,He.A)(d):"function"==typeof i&&i()};(0,He.A)(d)}var rt=t(9790),Re=e=>{var[,,,,t]=(0,rt.Ay)();return t?e+"-css-var":""},ot=at.createContext(void 0),gt=e=>{let{href:t,title:n,prefixCls:r,children:o,className:a,target:i,replace:l}=e;let{registerLink:c,unregisterLink:s,scrollTo:u,onClick:d,activeLink:p,direction:f}=at.useContext(ot)||{};at.useEffect(()=>(null!=c&&c(t),()=>{null!=s&&s(t)}),[t]);var e=at.useContext(ze.QO).getPrefixCls,e=e("anchor",r),m=p===t,g=it()(e+"-link",a,{[e+"-link-active"]:m}),e=it()(e+"-link-title",{[e+"-link-title-active"]:m});return at.createElement("div",{className:g},at.createElement("a",{className:e,href:t,title:"string"==typeof n?n:"",target:i,onClick:e=>{null!=d&&d(e,{title:n,href:t}),null!=u&&u(t),e.defaultPrevented||(t.startsWith("http://")||t.startsWith("https://")?l&&(e.preventDefault(),window.location.replace(t)):(e.preventDefault(),e=l?"replaceState":"pushState",window.history[e](null,"",t)))}},n),"horizontal"!==f?o:null)},ht=t(6872);function vt(){return window}function bt(e,t){var n;return e.getClientRects().length?(n=e.getBoundingClientRect()).width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top:0}let yt=/#([\S ]+)$/;var e=e=>{let t,{rootClassName:n,prefixCls:r,className:o,style:a,offsetTop:i,affix:l=!0,showInkInFixed:c=!1,children:s,items:z,direction:u="vertical",bounds:B,targetOffset:d,onClick:p,onChange:f,getContainer:m,getCurrentAnchor:g,replace:H}=e,[h,v]=at.useState([]),[b,D]=at.useState(null),y=at.useRef(b),C=at.useRef(null),x=at.useRef(null),w=at.useRef(!1);var{direction:S,getPrefixCls:k,className:E,style:A}=(0,ze.TP)("anchor"),O=at.useContext(ze.QO).getTargetContainer;let I=k("anchor",r);var k=Re(I),[L,N,M]=(0,ht.default)(I,k);let j=null!=(t=null!=m?m:O)?t:vt;O=JSON.stringify(h);let F=(0,st.A)(t=>{h.includes(t)||v(e=>[].concat((0,ct.A)(e),[t]))}),W=(0,st.A)(t=>{h.includes(t)&&v(e=>e.filter(e=>e!==t))}),P=(0,st.A)(e=>{var t;y.current!==e&&(t="function"==typeof g?g(e):e,D(t),y.current=t,null!=f)&&f(e)}),R=at.useCallback(()=>{var e;w.current||(e=((e,n=0,r=5)=>{let o=[],a=j();return e.forEach(e=>{var t=yt.exec(null==e?void 0:e.toString());t&&(t=document.getElementById(t[1]))&&(t=bt(t,a))<=n+r&&o.push({link:e,top:t})}),o.length?o.reduce((e,t)=>t.top>e.top?t:e).link:""})(h,void 0!==d?d:i||0,B),P(e))},[O,d,i]),$=at.useCallback(e=>{P(e);var t,e=yt.exec(e);e&&(e=document.getElementById(e[1]))&&(t=j(),e=Qe(t)+bt(e,t),e-=void 0!==d?d:i||0,w.current=!0,Ze(e,{getContainer:j,callback(){w.current=!1}}))},[d,i]);N=it()(N,M,k,n,I+"-wrapper",{[I+"-wrapper-horizontal"]:"horizontal"===u,[I+"-rtl"]:"rtl"===S},o,E),M=it()(I,{[I+"-fixed"]:!l&&!c}),k=it()(I+"-ink",{[I+"-ink-visible"]:b}),S=Object.assign(Object.assign({maxHeight:i?`calc(100vh - ${i}px)`:"100vh"},A),a);let T=e=>Array.isArray(e)?e.map(e=>at.createElement(gt,Object.assign({replace:H},e,{key:e.key}),"vertical"===u&&T(e.children))):null;E=at.createElement("div",{ref:C,className:N,style:S},at.createElement("div",{className:M},at.createElement("span",{className:k,ref:x}),"items"in e?T(z):s)),at.useEffect(()=>{let e=j();return R(),null!=e&&e.addEventListener("scroll",R),()=>{null!=e&&e.removeEventListener("scroll",R)}},[O]),at.useEffect(()=>{"function"==typeof g&&P(g(y.current||""))},[g]),at.useEffect(()=>{var e,t,n;(n=null==(n=C.current)?void 0:n.querySelector(`.${I}-link-title-active`))&&x.current&&(e=x.current.style,t="horizontal"===u,e.top=t?"":n.offsetTop+n.clientHeight/2+"px",e.height=t?"":n.clientHeight+"px",e.left=t?n.offsetLeft+"px":"",e.width=t?n.clientWidth+"px":"",t)&&Ye(n,{scrollMode:"if-needed",block:"nearest"})},[u,g,O,b]),A=at.useMemo(()=>({registerLink:F,unregisterLink:W,scrollTo:$,activeLink:b,onClick:p,direction:u}),[b,p,$,u]);return L(at.createElement(ot.Provider,{value:A},l?at.createElement(ce,Object.assign({offsetTop:i,target:j},l&&"object"==typeof l?l:void 0),E):E))},Ct=(e.Link=gt,e);function xt(){}let wt=at.createContext({}),St=()=>{var e=()=>{};return e.deprecated=xt,e};function kt(e){var t=e.configList,C=e.placement,x=e.prefixCls,n=e.className,r=e.style,o=e.motion,a=e.onAllNoticeRemoved,w=e.onNoticeClose,e=e.stack,S=(0,at.useContext)(Nt).classNames,k=(0,at.useRef)({}),i=(0,at.useState)(null),E=(i=(0,ut.A)(i,2))[0],l=i[1],i=(0,at.useState)([]),A=(i=(0,ut.A)(i,2))[0],O=i[1],I=t.map(function(e){return{config:e,key:String(e.key)}}),i=jt(e),N=(t=(0,ut.A)(i,2))[0],M=(e=t[1]).offset,j=e.gap,P=N&&(0<A.length||I.length<=e.threshold),i="function"==typeof o?o(C):o;return(0,at.useEffect)(function(){N&&1<A.length&&O(function(e){return e.filter(function(t){return I.some(function(e){e=e.key;return t===e})})})},[A,I,N]),(0,at.useEffect)(function(){var e;N&&k.current[null==(e=I[I.length-1])?void 0:e.key]&&l(k.current[null==(e=I[I.length-1])?void 0:e.key])},[I,N]),je().createElement(xe.aF,(0,Je.A)({key:C,className:it()(x,"".concat(x,"-").concat(C),null==S?void 0:S.list,n,(0,nt.A)((0,nt.A)({},"".concat(x,"-stack"),!!N),"".concat(x,"-stack-expanded"),P)),style:r,keys:I,motionAppear:!0},i,{onAllRemoved:function(){a(C)}}),function(e,t){var n=e.config,r=e.className,o=e.style,e=e.index,a=n.key,i=n.times,l=String(a),c=n.className,s=n.style,u=n.classNames,d=n.styles,n=(0,dt.A)(n,Pt),p=I.findIndex(function(e){return e.key===l}),f={};if(N){var m=I.length-1-(-1<p?p:e-1),e="top"===C||"bottom"===C?"-50%":"0";if(0<m){f.height=P?null==(b=k.current[l])?void 0:b.offsetHeight:null==E?void 0:E.offsetHeight;for(var g,h=0,v=0;v<m;v++)h+=(null==(g=k.current[I[I.length-1-v].key])?void 0:g.offsetHeight)+j;var b=(P?h:m*M)*(C.startsWith("top")?1:-1),y=!P&&null!=E&&E.offsetWidth&&null!=(y=k.current[l])&&y.offsetWidth?((null==E?void 0:E.offsetWidth)-2*M*(m<3?m:3))/(null==(y=k.current[l])?void 0:y.offsetWidth):1;f.transform="translate3d(".concat(e,", ").concat(b,"px, 0) scaleX(").concat(y,")")}else f.transform="translate3d(".concat(e,", 0, 0)")}return je().createElement("div",{ref:t,className:it()("".concat(x,"-notice-wrapper"),r,null==u?void 0:u.wrapper),style:(0,lt.A)((0,lt.A)((0,lt.A)({},o),f),null==d?void 0:d.wrapper),onMouseEnter:function(){return O(function(e){return e.includes(l)?e:[].concat((0,ct.A)(e),[l])})},onMouseLeave:function(){return O(function(e){return e.filter(function(e){return e!==l})})}},je().createElement(It,(0,Je.A)({},n,{ref:function(e){-1<p?k.current[l]=e:delete k.current[l]},prefixCls:x,classNames:u,styles:d,className:it()(c,null==S?void 0:S.notice),style:s,times:i,key:a,eventKey:a,onNoticeClose:w,hovering:N&&0<A.length})))})}function Et(){return document.body}var ut=t(5544),dt=t(3986),At=t(6003),Ot=t.n(At),nt=t(4467),de=t(6928),It=at.forwardRef(function(e,t){function n(){g(u)}var r=e.prefixCls,o=e.style,a=e.className,i=e.duration,l=void 0===i?4.5:i,i=e.showProgress,c=e.pauseOnHover,s=void 0===c||c,u=e.eventKey,c=e.content,d=e.closable,p=e.closeIcon,f=void 0===p?"x":p,m=e.props,p=e.onClick,g=e.onNoticeClose,h=e.times,e=e.hovering,v=at.useState(!1),v=(0,ut.A)(v,2),b=v[0],y=v[1],v=at.useState(0),v=(0,ut.A)(v,2),C=v[0],x=v[1],v=at.useState(0),v=(0,ut.A)(v,2),w=v[0],S=v[1],k=e||b,E=0<l&&i,v=(at.useEffect(function(){var e,t;if(!k&&0<l)return e=Date.now()-w,t=setTimeout(function(){n()},1e3*l-w),function(){s&&clearTimeout(t),S(Date.now()-e)}},[l,k,h]),at.useEffect(function(){var n,e;if(!k&&E&&(s||0===w))return n=performance.now(),function t(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){e=Math.min((e+w-n)/(1e3*l),1);x(100*e),e<1&&t()})}(),function(){s&&cancelAnimationFrame(e)}},[l,w,k,E,h]),at.useMemo(function(){return"object"===(0,et.A)(d)&&null!==d?d:d?{closeIcon:f}:{}},[d,f])),e=(0,tt.A)(v,!0),b=100-(!C||C<0?0:100<C?100:C),i="".concat(r,"-notice");return at.createElement("div",(0,Je.A)({},m,{ref:t,className:it()(i,a,(0,nt.A)({},"".concat(i,"-closable"),d)),style:o,onMouseEnter:function(e){var t;y(!0),null!=m&&null!=(t=m.onMouseEnter)&&t.call(m,e)},onMouseLeave:function(e){var t;y(!1),null!=m&&null!=(t=m.onMouseLeave)&&t.call(m,e)},onClick:p}),at.createElement("div",{className:"".concat(i,"-content")},c),d&&at.createElement("a",(0,Je.A)({tabIndex:0,className:"".concat(i,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==de.A.ENTER||n()},"aria-label":"Close"},e,{onClick:function(e){e.preventDefault(),e.stopPropagation(),n()}}),v.closeIcon),E&&at.createElement("progress",{className:"".concat(i,"-progress"),max:"100",value:b},b+"%"))}),Nt=je().createContext({}),Mt=function(e){var t=e.children,e=e.classNames;return je().createElement(Nt.Provider,{value:{classNames:e}},t)},jt=function(e){var t,n={offset:8,threshold:3,gap:16};return e&&"object"===(0,et.A)(e)&&(n.offset=null!=(t=e.offset)?t:8,n.threshold=null!=(t=e.threshold)?t:3,n.gap=null!=(t=e.gap)?t:16),[!!e,n]},Pt=["className","style","classNames","styles"],Rt=at.forwardRef(function(e,t){function n(t){var e,n=f.find(function(e){return e.key===t});null!=n&&null!=(e=n.onClose)&&e.call(n),m(function(e){return e.filter(function(e){return e.key!==t})})}function r(t){h(function(e){e=(0,lt.A)({},e);return(e[t]||[]).length||delete e[t],e})}var o=e.prefixCls,a=void 0===o?"rc-notification":o,o=e.container,i=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,p=e.renderNotifications,e=at.useState([]),e=(0,ut.A)(e,2),f=e[0],m=e[1],e=(at.useImperativeHandle(t,function(){return{open:function(o){m(function(e){var t=(0,ct.A)(e),n=t.findIndex(function(e){return e.key===o.key}),r=(0,lt.A)({},o);return 0<=n?(r.times=((null==(e=e[n])?void 0:e.times)||0)+1,t[n]=r):(r.times=0,t.push(r)),t=0<l&&t.length>l?t.slice(-l):t})},close:function(e){n(e)},destroy:function(){m([])}}}),at.useState({})),t=(0,ut.A)(e,2),g=t[0],h=t[1],v=(at.useEffect(function(){var n={};f.forEach(function(e){var t=e.placement,t=void 0===t?"topRight":t;t&&(n[t]=n[t]||[],n[t].push(e))}),Object.keys(g).forEach(function(e){n[e]=n[e]||[]}),h(n)},[f]),at.useRef(!1));return at.useEffect(function(){0<Object.keys(g).length?v.current=!0:v.current&&(null!=u&&u(),v.current=!1)},[g]),o?(e=Object.keys(g),(0,At.createPortal)(at.createElement(at.Fragment,null,e.map(function(e){var t=g[e],t=at.createElement(kt,{key:e,configList:t,placement:e,prefixCls:a,className:null==c?void 0:c(e),style:null==s?void 0:s(e),motion:i,onNoticeClose:n,onAllNoticeRemoved:r,stack:d});return p?p(t,{prefixCls:a,key:e}):t})),o)):null}),De=t(1470),$t=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","r