UNPKG

react-route-cache

Version:
15 lines 297 kB
import*as e from"react";import t,{useState as n,useEffect as r,createContext as o,useContext as i,useRef as a,version as c,isValidElement as s,useCallback as l,useLayoutEffect as u,forwardRef as d,useMemo as f,Children as p,createRef as m,cloneElement as h,useId as g}from"react";import*as v from"react-dom";import y,{createPortal as b}from"react-dom";import{useLocation as E,useMatches as x,useNavigate as w}from"react-router-dom";function C(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError;const O=({name:e,show:t,children:o,to:i,style:a})=>{const[c]=n((()=>document.createElement("div")));return r((()=>{c.style.cssText="",Object.keys(a||{}).forEach((e=>{c.style[e]=a[e]}))}),[a]),r((()=>{var e;t&&(null===(e=i.current)||void 0===e||e.replaceChildren(c))}),[t]),b(o,c,e)},S=o({activateds:{},deactivateds:{}});S.displayName="KeepAliveContext";const k=({mode:e="path",nameKey:o="name",cacheMaxRemove:i,children:a})=>{const{pathname:c,search:s}=E(),l=x(),[u,d]=n({}),[f,p]=n({}),[m,h]=n(""),[g,v]=n([]),[y,b]=n([]),w=()=>{var t;const n="path"===e?c:c+s;(null===(t=u[n])||void 0===t?void 0:t.length)&&u[n].forEach((e=>{const t=e();t&&(t.__shouldRemove=!0,f[n]||(f[n]=[]),f[n].push(t),p(Object.assign({},f)))}))};return r((()=>{var t;const n="path"===e?c:c+s;h((e=>{var t;return(null===(t=f[e])||void 0===t?void 0:t.length)&&(f[e]=f[e].filter((e=>(e(),!e.__shouldRemove))),p(Object.assign({},f))),n})),w();const r=null===(t=l[l.length-1].handle)||void 0===t?void 0:t[o];!g.find((e=>e.key===n))&&r&&v([...g,{key:n,label:r}])}),[c,s,e]),r((()=>{w()}),[u]),t.createElement(S.Provider,{value:{activateds:u,setActivateds:d,deactivateds:f,setDeactivateds:p,active:m,setActive:h,tabs:g,setTabs:v,caches:y,setCaches:b,nameKey:o,cacheMaxRemove:i}},a)},$=()=>{const e=i(S);if(!e)throw new Error("useKeepAlive必须在KeepAliveContext中使用");return e},N=()=>{const e=w(),{pathname:t}=E(),{active:n,setActive:r,tabs:o,setTabs:i}=$();return{active:n,tabs:o,setTabs:i,setActive:r,close:r=>{const a=r||t,c=o.findIndex((e=>e.key===a));-1!==c&&o.length>1&&(o.splice(c,1),i([...o]),n===a&&e(o[0].key))},closeNavigator:n=>{const r=o.findIndex((e=>e.key===t));-1!==r&&(o.splice(r,1),i([...o]),e(n))},closeAll:()=>{i([o.find((e=>e.key===n))])}}},j=e=>{var n,{children:o,exclude:i,include:c,max:s=10,style:l,className:u,styles:d}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","exclude","include","max","style","className","styles"]);const p=a(null),{active:m,tabs:h,caches:g,setCaches:v,nameKey:y,cacheMaxRemove:b}=$(),{close:E}=N(),w=x(),C=w[w.length-1].handle,S=(null==C?void 0:C[y])&&(null===(n=null==C?void 0:C.cache)||void 0===n||n);return r((()=>{if(!m||!S)return;let e=g;if(!e.find((e=>e.name===m))&&(e.push({name:m,ele:o}),e.length>s)){const t=e.shift();console.log(t),b&&E(null==t?void 0:t.name)}e=e.filter((e=>h.some((t=>t.key===e.name)))),(i||c)&&(e=e.filter((({name:e})=>(!i||!i.includes(e))&&(!c||c.includes(e))))),v([...e])}),[o,m,i,s,c,h]),t.createElement(t.Fragment,null,S&&t.createElement("div",Object.assign({ref:p,style:Object.assign(Object.assign({},l),null==d?void 0:d.wrapper),className:u},f)),!S&&o,g.map((({name:e,ele:n})=>t.createElement(O,{key:e,name:e,show:e===m,to:p,style:null==d?void 0:d.content},n))))};var P=o({});function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(null,arguments)}function F(e){if(Array.isArray(e))return e}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function _(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e,t){return F(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||T(e,t)||_()}function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function L(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}function D(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function H(e,t){if(null==e)return{};var n,r,o=z(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B={exports:{}}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(B);var W=V(B.exports);function q(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function U(e){return Math.min(1,Math.max(0,e))}function G(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function X(e){return e<=1?"".concat(100*Number(e),"%"):e}function K(e){return 1===e.length?"0"+e:String(e)}function Y(e,t,n){e=q(e,255),t=q(t,255),n=q(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,c=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=c>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:a,l:c}}function Z(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Q(e,t,n){e=q(e,255),t=q(t,255),n=q(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,c=r-o,s=0===r?0:c/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:s,v:a}}function J(e,t,n,r){var o=[K(Math.round(e).toString(16)),K(Math.round(t).toString(16)),K(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function ee(e){return te(e)/255}function te(e){return parseInt(e,16)}var ne={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function re(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,c=null,s=null,l=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(ne[e])e=ne[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ce.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ce.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ce.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=ce.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ce.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=ce.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ce.hex8.exec(e),n)return{r:te(n[1]),g:te(n[2]),b:te(n[3]),a:ee(n[4]),format:t?"name":"hex8"};if(n=ce.hex6.exec(e),n)return{r:te(n[1]),g:te(n[2]),b:te(n[3]),format:t?"name":"hex"};if(n=ce.hex4.exec(e),n)return{r:te(n[1]+n[1]),g:te(n[2]+n[2]),b:te(n[3]+n[3]),a:ee(n[4]+n[4]),format:t?"name":"hex8"};if(n=ce.hex3.exec(e),n)return{r:te(n[1]+n[1]),g:te(n[2]+n[2]),b:te(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(se(e.r)&&se(e.g)&&se(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*q(t,255),g:255*q(n,255),b:255*q(r,255)},l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):se(e.h)&&se(e.s)&&se(e.v)?(a=X(e.s),c=X(e.v),o=function(e,t,n){e=6*q(e,360),t=q(t,100),n=q(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,c,n][s],g:255*[c,n,n,a,i,i][s],b:255*[i,i,c,n,n,a][s]}}(e.h,a,c),l=!0,u="hsv"):se(e.h)&&se(e.s)&&se(e.l)&&(a=X(e.s),s=X(e.l),o=function(e,t,n){var r,o,i;if(e=q(e,360),t=q(t,100),n=q(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=Z(c,a,e+1/3),o=Z(c,a,e),i=Z(c,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,s),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=G(i),{ok:l,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var oe="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ie="[\\s|\\(]+(".concat(oe,")[,|\\s]+(").concat(oe,")[,|\\s]+(").concat(oe,")\\s*\\)?"),ae="[\\s|\\(]+(".concat(oe,")[,|\\s]+(").concat(oe,")[,|\\s]+(").concat(oe,")[,|\\s]+(").concat(oe,")\\s*\\)?"),ce={CSS_UNIT:new RegExp(oe),rgb:new RegExp("rgb"+ie),rgba:new RegExp("rgba"+ae),hsl:new RegExp("hsl"+ie),hsla:new RegExp("hsla"+ae),hsv:new RegExp("hsv"+ie),hsva:new RegExp("hsva"+ae),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function se(e){return Boolean(ce.CSS_UNIT.exec(String(e)))}var le=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=re(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=G(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Q(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Q(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Y(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Y(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),J(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[K(Math.round(e).toString(16)),K(Math.round(t).toString(16)),K(Math.round(n).toString(16)),K((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*q(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*q(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+J(this.r,this.g,this.b,!1),t=0,n=Object.entries(ne);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=U(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=U(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=U(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=U(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ue=2,de=.16,fe=.05,pe=.05,me=.15,he=5,ge=4,ve=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ye(e){var t=Q(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function be(e){var t=e.r,n=e.g,r=e.b;return"#".concat(J(t,n,r,!1))}function Ee(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ue*t:Math.round(e.h)+ue*t:n?Math.round(e.h)+ue*t:Math.round(e.h)-ue*t)<0?r+=360:r>=360&&(r-=360),r}function xe(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-de*t:t===ge?e.s+de:e.s+fe*t)>1&&(r=1),n&&t===he&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function we(e,t,n){var r;return(r=n?e.v+pe*t:e.v-me*t)>1&&(r=1),Number(r.toFixed(2))}function Ce(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=re(e),o=he;o>0;o-=1){var i=ye(r),a=be(re({h:Ee(i,o,!0),s:xe(i,o,!0),v:we(i,o,!0)}));n.push(a)}n.push(be(r));for(var c=1;c<=ge;c+=1){var s=ye(r),l=be(re({h:Ee(s,c),s:xe(s,c),v:we(s,c)}));n.push(l)}return"dark"===t.theme?ve.map((function(e){var r,o,i,a=e.index,c=e.opacity;return be((r=re(t.backgroundColor||"#141414"),o=re(n[a]),i=100*c/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var Oe={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Se=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Se.primary=Se[5];var ke=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ke.primary=ke[5];var $e=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];$e.primary=$e[5];var Ne=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ne.primary=Ne[5];var je=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];je.primary=je[5];var Pe=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Pe.primary=Pe[5];var Me=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Me.primary=Me[5];var Fe=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Fe.primary=Fe[5];var Ae=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ae.primary=Ae[5];var Te=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Te.primary=Te[5];var _e=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_e.primary=_e[5];var Ie=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ie.primary=Ie[5];var Re=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Re.primary=Re[5];var Le={red:Se,volcano:ke,orange:$e,gold:Ne,yellow:je,lime:Pe,green:Me,cyan:Fe,blue:Ae,geekblue:Te,purple:_e,magenta:Ie,grey:Re};function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ve(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Be="data-rc-order",We="data-rc-priority",qe="rc-util-key",Ue=new Map;function Ge(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):qe}function Xe(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ke(e){return Array.from((Ue.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!He())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),c="prependQueue"===a,s=document.createElement("style");s.setAttribute(Be,a),c&&i&&s.setAttribute(We,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var l=Xe(t),u=l.firstChild;if(r){if(c){var d=(t.styles||Ke(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Be)))return!1;var t=Number(e.getAttribute(We)||0);return i>=t}));if(d.length)return l.insertBefore(s,d[d.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xe(t);return(t.styles||Ke(n)).find((function(n){return n.getAttribute(Ge(t))===e}))}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ze(e,t);n&&Xe(t).removeChild(n)}function Je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Xe(n),o=Ke(r),i=ze(ze({},n),{},{styles:o});!function(e,t){var n=Ue.get(e);if(!n||!Ve(document,n)){var r=Ye("",t),o=r.parentNode;Ue.set(e,o),e.removeChild(r)}}(r,i);var a=Ze(t,i);if(a){var c,s,l;if(null!==(c=i.csp)&&void 0!==c&&c.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Ye(e,i);return u.setAttribute(Ge(i),t),u}function et(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function tt(e){return function(e){return et(e)instanceof ShadowRoot}(e)?et(e):null}var nt={},rt=[];function ot(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=rt.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function it(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=rt.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function at(){nt={}}function ct(e,t,n){t||nt[n]||(e(!1,n),nt[n]=!0)}function st(e,t){ct(ot,e,t)}function lt(e){return"object"===R(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===R(e.icon)||"function"==typeof e.icon)}function ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function dt(e,n,r){return r?t.createElement(e.tag,ze(ze({key:n},ut(e.attrs)),r),(e.children||[]).map((function(t,r){return dt(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,ze({key:n},ut(e.attrs)),(e.children||[]).map((function(t,r){return dt(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function ft(e){return Ce(e)[0]}function pt(e){return e?Array.isArray(e)?e:[e]:[]}st.preMessage=function(e){rt.push(e)},st.resetWarned=at,st.noteOnce=function(e,t){ct(it,e,t)};var mt=["icon","className","onClick","style","primaryColor","secondaryColor"],ht={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var gt=function(t){var n,o,a,c,s,l,u,d=t.icon,f=t.className,p=t.onClick,m=t.style,h=t.primaryColor,g=t.secondaryColor,v=H(t,mt),y=e.useRef(),b=ht;if(h&&(b={primaryColor:h,secondaryColor:g||ft(h)}),n=y,o=i(P),a=o.csp,c=o.prefixCls,s="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",c&&(s=s.replace(/anticon/g,c)),r((function(){var e=tt(n.current);Je(s,"@ant-design-icons",{prepend:!0,csp:a,attachTo:e})}),[]),l=lt(d),u="icon should be icon definiton, but got ".concat(d),st(l,"[@ant-design/icons] ".concat(u)),!lt(d))return null;var E=d;return E&&"function"==typeof E.icon&&(E=ze(ze({},E),{},{icon:E.icon(b.primaryColor,b.secondaryColor)})),dt(E.icon,"svg-".concat(E.name),ze(ze({className:f,onClick:p,style:m,"data-icon":E.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v),{},{ref:y}))};function vt(e){var t=I(pt(e),2),n=t[0],r=t[1];return gt.setTwoToneColors({primaryColor:n,secondaryColor:r})}gt.displayName="IconReact",gt.getTwoToneColors=function(){return ze({},ht)},gt.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ht.primaryColor=t,ht.secondaryColor=n||ft(t),ht.calculated=!!n};var yt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];vt(Ae.primary);var bt=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,c=t.tabIndex,s=t.onClick,l=t.twoToneColor,u=H(t,yt),d=e.useContext(P),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,h=W(m,p,D(D({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),g=c;void 0===g&&s&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=I(pt(l),2),b=y[0],E=y[1];return e.createElement("span",M({role:"img","aria-label":o.name},u,{ref:n,tabIndex:g,onClick:s,className:h}),e.createElement(gt,{icon:o,primaryColor:b,secondaryColor:E,style:v}))}));bt.displayName="AntdIcon",bt.getTwoToneColor=function(){var e=gt.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bt.setTwoToneColor=vt;var Et={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"},xt=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:Et}))},wt=e.forwardRef(xt);"production"!==process.env.NODE_ENV&&(wt.displayName="CheckCircleFilled");var Ct={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"},Ot=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:Ct}))},St=e.forwardRef(Ot);"production"!==process.env.NODE_ENV&&(St.displayName="CloseCircleFilled");var kt={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},$t=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:kt}))},Nt=e.forwardRef($t);"production"!==process.env.NODE_ENV&&(Nt.displayName="CloseCircleOutlined");var jt={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"},Pt=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:jt}))},Mt=e.forwardRef(Pt);"production"!==process.env.NODE_ENV&&(Mt.displayName="CloseOutlined");var Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},At=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:Ft}))},Tt=e.forwardRef(At);"production"!==process.env.NODE_ENV&&(Tt.displayName="DotChartOutlined");var _t={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"},It=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:_t}))},Rt=e.forwardRef(It);"production"!==process.env.NODE_ENV&&(Rt.displayName="ExclamationCircleFilled");var Lt={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"},Dt=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:Lt}))},zt=e.forwardRef(Dt);"production"!==process.env.NODE_ENV&&(zt.displayName="InfoCircleFilled");var Ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Vt=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:Ht}))},Bt=e.forwardRef(Vt);"production"!==process.env.NODE_ENV&&(Bt.displayName="LeftOutlined");var Wt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},qt=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:Wt}))},Ut=e.forwardRef(qt);"production"!==process.env.NODE_ENV&&(Ut.displayName="LoadingOutlined");var Gt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Xt=function(t,n){return e.createElement(bt,M({},t,{ref:n,icon:Gt}))},Kt=e.forwardRef(Xt);"production"!==process.env.NODE_ENV&&(Kt.displayName="RightOutlined");var Yt,Zt={exports:{}},Qt={};var Jt,en={}; /** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"production"===process.env.NODE_ENV?Zt.exports=function(){if(Yt)return Qt;Yt=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case l:case p:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),Qt.ContextConsumer=c,Qt.ContextProvider=a,Qt.Element=t,Qt.ForwardRef=l,Qt.Fragment=r,Qt.Lazy=p,Qt.Memo=f,Qt.Portal=n,Qt.Profiler=i,Qt.StrictMode=o,Qt.Suspense=u,Qt.SuspenseList=d,Qt.isAsyncMode=function(){return!1},Qt.isConcurrentMode=function(){return!1},Qt.isContextConsumer=function(e){return h(e)===c},Qt.isContextProvider=function(e){return h(e)===a},Qt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Qt.isForwardRef=function(e){return h(e)===l},Qt.isFragment=function(e){return h(e)===r},Qt.isLazy=function(e){return h(e)===p},Qt.isMemo=function(e){return h(e)===f},Qt.isPortal=function(e){return h(e)===n},Qt.isProfiler=function(e){return h(e)===i},Qt.isStrictMode=function(e){return h(e)===o},Qt.isSuspense=function(e){return h(e)===u},Qt.isSuspenseList=function(e){return h(e)===d},Qt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Qt.typeOf=h,Qt}():Zt.exports=(Jt||(Jt=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case i:case o:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case s:case c:case l:case p:case f:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=c,v=a,y=t,b=l,E=r,x=p,w=f,C=n,O=i,S=o,k=u,$=d,N=!1,j=!1;en.ContextConsumer=g,en.ContextProvider=v,en.Element=y,en.ForwardRef=b,en.Fragment=E,en.Lazy=x,en.Memo=w,en.Portal=C,en.Profiler=O,en.StrictMode=S,en.Suspense=k,en.SuspenseList=$,en.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},en.isConcurrentMode=function(e){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},en.isContextConsumer=function(e){return h(e)===c},en.isContextProvider=function(e){return h(e)===a},en.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},en.isForwardRef=function(e){return h(e)===l},en.isFragment=function(e){return h(e)===r},en.isLazy=function(e){return h(e)===p},en.isMemo=function(e){return h(e)===f},en.isPortal=function(e){return h(e)===n},en.isProfiler=function(e){return h(e)===i},en.isStrictMode=function(e){return h(e)===o},en.isSuspense=function(e){return h(e)===u},en.isSuspenseList=function(e){return h(e)===d},en.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},en.typeOf=h}()),en);var tn=Zt.exports;function nn(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}var rn=function(e,t){"function"==typeof e?e(t):"object"===R(e)&&e&&"current"in e&&(e.current=t)},on=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){rn(t,e)}))}},an=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return nn((function(){return on.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},cn=function(e){var t,n,r=tn.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===tn.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===tn.ForwardRef)};Number(c.split(".")[0]);var sn=function(e){return"function"==typeof e},ln="development"===process.env.NODE_ENV||"test"===process.env.NODE_ENV;function un(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var dn=function(e){ln&&(sn(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t,n,o=((n=a(t=e)).current=t,n);r((function(){return function(){o.current()}}),[])},fn=!("undefined"==typeof window||!window.document||!window.document.createElement);function pn(e,t){if(fn)return e?sn(e)?e():"current"in e?e.current:e:t}var mn=function(e){return function(t,n,r){var o=a(!1),i=a([]),c=a([]),s=a();e((function(){var e,a=(Array.isArray(r)?r:[r]).map((function(e){return pn(e)}));if(!o.current)return o.current=!0,i.current=a,c.current=n,void(s.current=t());a.length===i.current.length&&un(i.current,a)&&un(c.current,n)||(null===(e=s.current)||void 0===e||e.call(s),i.current=a,c.current=n,s.current=t())})),dn((function(){var e;null===(e=s.current)||void 0===e||e.call(s),o.current=!1}))}},hn=mn(r);var gn=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.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])}},t}()}(),vn="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,yn="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),bn="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(yn):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var En=["top","right","bottom","left","width","height","size","weight"],xn="undefined"!=typeof MutationObserver,wn=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&c()}function a(){bn(i)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return c}(this.refresh.bind(this),20)}return 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_,n=t.indexOf(e);~n&&t.splice(n,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()})),e.length>0},e.prototype.connect_=function(){vn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xn?(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(){vn&&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 t=e.propertyName,n=void 0===t?"":t;En.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Cn=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},On=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||yn},Sn=Mn(0,0,0,0);function kn(e){return parseFloat(e)||0}function $n(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+kn(e["border-"+n+"-width"])}),0)}function Nn(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Sn;var r=On(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=kn(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=kn(r.width),s=kn(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=$n(r,"left","right")+i),Math.round(s+a)!==n&&(s-=$n(r,"top","bottom")+a)),!function(e){return e===On(e).document.documentElement}(e)){var l=Math.round(c+i)-t,u=Math.round(s+a)-n;1!==Math.abs(l)&&(c-=l),1!==Math.abs(u)&&(s-=u)}return Mn(o.left,o.top,c,s)}var jn="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof On(e).SVGGraphicsElement}:function(e){return e instanceof On(e).SVGElement&&"function"==typeof e.getBBox};function Pn(e){return vn?jn(e)?function(e){var t=e.getBBox();return Mn(0,0,t.width,t.height)}(e):Nn(e):Sn}function