@akinon/ui-notification 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +118 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5996 -0
- package/package.json +42 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),er=require("react-dom");function So(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=So(I),di=So(er);function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eo={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var c=n.apply(null,a);c&&r.push(c)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&r.push(s)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Eo);var gi=Eo.exports;const Ce=vi(gi);function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xe.apply(this,arguments)}var xn={exports:{}},F={};/**
|
|
6
|
+
* @license React
|
|
7
|
+
* react-is.production.min.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/var Tr;function pi(){if(Tr)return F;Tr=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function m(g){if(typeof g=="object"&&g!==null){var S=g.$$typeof;switch(S){case e:switch(g=g.type,g){case n:case o:case r:case l:case u:return g;default:switch(g=g&&g.$$typeof,g){case c:case i:case s:case v:case f:case a:return g;default:return S}}case t:return S}}}return F.ContextConsumer=i,F.ContextProvider=a,F.Element=e,F.ForwardRef=s,F.Fragment=n,F.Lazy=v,F.Memo=f,F.Portal=t,F.Profiler=o,F.StrictMode=r,F.Suspense=l,F.SuspenseList=u,F.isAsyncMode=function(){return!1},F.isConcurrentMode=function(){return!1},F.isContextConsumer=function(g){return m(g)===i},F.isContextProvider=function(g){return m(g)===a},F.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},F.isForwardRef=function(g){return m(g)===s},F.isFragment=function(g){return m(g)===n},F.isLazy=function(g){return m(g)===v},F.isMemo=function(g){return m(g)===f},F.isPortal=function(g){return m(g)===t},F.isProfiler=function(g){return m(g)===o},F.isStrictMode=function(g){return m(g)===r},F.isSuspense=function(g){return m(g)===l},F.isSuspenseList=function(g){return m(g)===u},F.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===l||g===u||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===f||g.$$typeof===a||g.$$typeof===i||g.$$typeof===s||g.$$typeof===b||g.getModuleId!==void 0)},F.typeOf=m,F}var H={};/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react-is.development.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/var wr;function mi(){return wr||(wr=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),b=!1,m=!1,g=!1,S=!1,y=!1,A;A=Symbol.for("react.module.reference");function w(N){return!!(typeof N=="string"||typeof N=="function"||N===n||N===o||y||N===r||N===l||N===u||S||N===p||b||m||g||typeof N=="object"&&N!==null&&(N.$$typeof===v||N.$$typeof===f||N.$$typeof===a||N.$$typeof===i||N.$$typeof===s||N.$$typeof===A||N.getModuleId!==void 0))}function O(N){if(typeof N=="object"&&N!==null){var Z=N.$$typeof;switch(Z){case e:var be=N.type;switch(be){case n:case o:case r:case l:case u:return be;default:var ge=be&&be.$$typeof;switch(ge){case c:case i:case s:case v:case f:case a:return ge;default:return Z}}case t:return Z}}}var C=i,h=a,x=e,P=s,E=n,T=v,M=f,R=t,L=o,k=r,U=l,D=u,B=!1,W=!1;function V(N){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(N){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(N){return O(N)===i}function ce(N){return O(N)===a}function te(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function ve(N){return O(N)===s}function ae(N){return O(N)===n}function me(N){return O(N)===v}function Fe(N){return O(N)===f}function He(N){return O(N)===t}function he(N){return O(N)===o}function se(N){return O(N)===r}function ze(N){return O(N)===l}function Oe(N){return O(N)===u}H.ContextConsumer=C,H.ContextProvider=h,H.Element=x,H.ForwardRef=P,H.Fragment=E,H.Lazy=T,H.Memo=M,H.Portal=R,H.Profiler=L,H.StrictMode=k,H.Suspense=U,H.SuspenseList=D,H.isAsyncMode=V,H.isConcurrentMode=ee,H.isContextConsumer=Y,H.isContextProvider=ce,H.isElement=te,H.isForwardRef=ve,H.isFragment=ae,H.isLazy=me,H.isMemo=Fe,H.isPortal=He,H.isProfiler=he,H.isStrictMode=se,H.isSuspense=ze,H.isSuspenseList=Oe,H.isValidElementType=w,H.typeOf=O}()),H}process.env.NODE_ENV==="production"?xn.exports=pi():xn.exports=mi();var hi=xn.exports,On={},tr=[],bi=function(t){tr.push(t)};function nr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=tr.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function yi(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=tr.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Co(){On={}}function xo(e,t,n){!t&&!On[n]&&(e(!1,n),On[n]=!0)}function qe(e,t){xo(nr,e,t)}function Si(e,t){xo(yi,e,t)}qe.preMessage=bi;qe.resetWarned=Co;qe.noteOnce=Si;function X(e){"@babel/helpers - typeof";return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(e)}function Ei(e,t){if(X(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(X(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oo(e){var t=Ei(e,"string");return X(t)==="symbol"?t:String(t)}function j(e,t,n){return t=Oo(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pr(Object(n),!0).forEach(function(r){j(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ci(e){return e instanceof HTMLElement||e instanceof SVGElement}function xi(e){return Ci(e)?e:e instanceof I.Component?er.findDOMNode(e):null}function To(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Oi(e,t){typeof e=="function"?e(t):X(e)==="object"&&e&&"current"in e&&(e.current=t)}function Ti(e){var t,n,r=hi.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oo(r.key),r)}}function st(e,t,n){return t&&Nr(e.prototype,t),n&&Nr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tn(e,t){return Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Tn(e,t)}function wo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tn(e,t)}function Ut(e){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ut(e)}function wi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pi(e,t){if(t&&(X(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wn(e)}function Po(e){var t=wi();return function(){var r=Ut(e),o;if(t){var a=Ut(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return Pi(this,o)}}function Pn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ni(e){if(Array.isArray(e))return Pn(e)}function No(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rr(e,t){if(e){if(typeof e=="string")return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pn(e,t)}}function Ai(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function de(e){return Ni(e)||No(e)||rr(e)||Ai()}var Ao=function(t){return+setTimeout(t,16)},_o=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ao=function(t){return window.requestAnimationFrame(t)},_o=function(t){return window.cancelAnimationFrame(t)});var Ar=0,or=new Map;function Mo(e){or.delete(e)}var Nn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ar+=1;var r=Ar;function o(a){if(a===0)Mo(r),t();else{var i=Ao(function(){o(a-1)});or.set(r,i)}}return o(n),r};Nn.cancel=function(e){var t=or.get(e);return Mo(t),_o(t)};function ar(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function _i(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ht(e,t){if(e==null)return{};var n=_i(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if(qe(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&c>1)return!1;r.add(a);var l=c+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],l))return!1;return!0}if(a&&i&&X(a)==="object"&&X(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(v){return o(a[v],i[v],l)})}return!1}return o(e,t)}var _r="%",Ri=function(){function e(t){ct(this,e),j(this,"instanceId",void 0),j(this,"cache",new Map),this.instanceId=t}return st(e,[{key:"get",value:function(n){return this.cache.get(n.join(_r))||null}},{key:"update",value:function(n,r){var o=n.join(_r),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i)}}]),e}(),An="data-token-hash",Ve="data-css-hash",ki="data-cache-path",rt="__cssinjs_instance__";function Ii(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ve,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[rt]=o[rt]||e,o[rt]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Ve,"]"))).forEach(function(o){var a=o.getAttribute(Ve);if(r[a]){if(o[rt]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else r[a]=!0})}return new Ri(e)}var ir=d.createContext({hashPriority:"low",cache:Ii(),defaultCache:!0});function Pe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $i(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 Mr="data-rc-order",Rr="data-rc-priority",Li="rc-util-key",_n=new Map;function Ro(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Li}function Qt(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ji(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ko(e){return Array.from((_n.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Io(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Pe())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=ji(r),c=i==="prependQueue",s=document.createElement("style");s.setAttribute(Mr,i),c&&a&&s.setAttribute(Rr,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var l=Qt(t),u=l.firstChild;if(r){if(c){var f=ko(l).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Mr)))return!1;var p=Number(v.getAttribute(Rr)||0);return a>=p});if(f.length)return l.insertBefore(s,f[f.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function $o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Qt(t);return ko(n).find(function(r){return r.getAttribute(Ro(t))===e})}function Lo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$o(e,t);if(n){var r=Qt(t);r.removeChild(n)}}function Di(e,t){var n=_n.get(e);if(!n||!$i(document,n)){var r=Io("",t),o=r.parentNode;_n.set(e,o),e.removeChild(r)}}function Vt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Qt(n);Di(r,n);var o=$o(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var c;o.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=Io(e,n);return s.setAttribute(Ro(n),t),s}function jo(e){if(Array.isArray(e))return e}function Fi(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(u){l=!0,o=u}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}function Do(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(e,t){return jo(e)||Fi(e,t)||rr(e,t)||Do()}function Hi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var cr=function(){function e(){ct(this,e),j(this,"cache",void 0),j(this,"keys",void 0),j(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return st(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(c){if(!i)i=void 0;else{var s,l;i=(s=i)===null||s===void 0||(l=s.map)===null||l===void 0?void 0:l.get(c)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(l,u){var f=z(l,2),v=f[1];return o.internalGet(u)[1]<v?[u,o.internalGet(u)[1]]:l},[this.keys[0],this.cacheCallTimes]),i=z(a,1),c=i[0];this.delete(c)}this.keys.push(n)}var s=this.cache;n.forEach(function(l,u){if(u===n.length-1)s.set(l,{value:[r,o.cacheCallTimes++]});else{var f=s.get(l);f?f.map||(f.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!Hi(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();j(cr,"MAX_CACHE_SIZE",20);j(cr,"MAX_CACHE_OFFSET",5);var kr=0,Fo=function(){function e(t){ct(this,e),j(this,"derivatives",void 0),j(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=kr,t.length===0&&nr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),kr+=1}return st(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),un=new cr;function Mn(e){var t=Array.isArray(e)?e:[e];return un.has(t)||un.set(t,new Fo(t)),un.get(t)}var zi=new WeakMap,fn={};function Bi(e,t){for(var n=zi,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(fn)||n.set(fn,e()),n.get(fn)}var Ir=new WeakMap;function Gt(e){var t=Ir.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Fo?t+=r.id:r&&X(r)==="object"?t+=Gt(r):t+=r}),Ir.set(e,t)),t}function Wi(e,t){return ar("".concat(t,"_").concat(Gt(e)))}var pt="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Ho="_bAmBoO_";function Ui(e,t,n){if(Pe()){var r,o;Vt(e,pt);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a),process.env.NODE_ENV!=="production"&&(a.innerHTML="Test",a.style.zIndex="9999999");var i=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(Ho);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),Lo(pt),i}return!1}var dn=void 0;function Vi(){return dn===void 0&&(dn=Ui("@layer ".concat(pt," { .").concat(pt,' { content: "').concat(Ho,'"!important; } }'),function(e){e.className=pt})),dn}var $r=process.env.NODE_ENV!=="test"&&Pe()?d.useLayoutEffect:d.useEffect,Gi=function(t,n){var r=d.useRef(!0);$r(function(){return t(r.current)},n),$r(function(){return r.current=!1,function(){r.current=!0}},[])},Ki=$({},d),Lr=Ki.useInsertionEffect,Xi=function(t,n,r){d.useMemo(t,r),Gi(function(){return n(!0)},r)},Yi=Lr?function(e,t,n){return Lr(function(){return e(),t()},n)}:Xi,Qi=$({},d),qi=Qi.useInsertionEffect,Zi=function(t){var n=[],r=!1;function o(a){if(r){process.env.NODE_ENV!=="production"&&nr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(a)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},Ji=function(){return function(t){t()}},ec=typeof qi<"u"?Zi:Ji;function tc(){return!1}var Rn=!1;function nc(){return Rn}const rc=process.env.NODE_ENV==="production"?tc:nc;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var vn=window;if(typeof vn.webpackHotUpdate=="function"){var oc=vn.webpackHotUpdate;vn.webpackHotUpdate=function(){return Rn=!0,setTimeout(function(){Rn=!1},0),oc.apply(void 0,arguments)}}}function zo(e,t,n,r,o){var a=d.useContext(ir),i=a.cache,c=[e].concat(de(t)),s=c.join("_"),l=ec([s]),u=rc(),f=function(m){i.update(c,function(g){var S=g||[],y=z(S,2),A=y[0],w=A===void 0?0:A,O=y[1],C=O;process.env.NODE_ENV!=="production"&&O&&u&&(r==null||r(C,u),C=null);var h=C||n(),x=[w,h];return m?m(x):x})};d.useMemo(function(){f()},[s]);var v=i.get(c);process.env.NODE_ENV!=="production"&&!v&&(f(),v=i.get(c));var p=v[1];return Yi(function(){o==null||o(p)},function(b){return f(function(m){var g=z(m,2),S=g[0],y=g[1];return b&&S===0&&(o==null||o(p)),[S+1,y]}),function(){i.update(c,function(m){var g=m||[],S=z(g,2),y=S[0],A=y===void 0?0:y,w=S[1],O=A-1;return O===0?(l(function(){return r==null?void 0:r(w,!1)}),null):[A-1,w]})}},[s]),p}var ac={},ic=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",We=new Map;function cc(e){We.set(e,(We.get(e)||0)+1)}function sc(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(An,'="').concat(e,'"]'));n.forEach(function(r){if(r[rt]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var lc=0;function uc(e,t){We.set(e,(We.get(e)||0)-1);var n=Array.from(We.keys()),r=n.filter(function(o){var a=We.get(o)||0;return a<=0});n.length-r.length>lc&&r.forEach(function(o){sc(o,t),We.delete(o)})}var fc=function(t,n,r,o){var a=r.getDerivativeToken(t),i=$($({},a),n);return o&&(i=o(i)),i};function dc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=I.useContext(ir),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,c=n.override,s=c===void 0?ac:c,l=n.formatToken,u=n.getComputedToken,f=Bi(function(){return Object.assign.apply(Object,[{}].concat(de(t)))},t),v=Gt(f),p=Gt(s),b=zo("token",[i,e.id,v,p],function(){var m=u?u(f,s,e):fc(f,s,e,l),g=Wi(m,i);m._tokenKey=g,cc(g);var S="".concat(ic,"-").concat(ar(g));return m._hashId=S,[m,S]},function(m){uc(m[0]._tokenKey,o)});return b}var vc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bo="comm",Wo="rule",Uo="decl",gc="@import",pc="@keyframes",mc="@layer",hc=Math.abs,sr=String.fromCharCode;function Vo(e){return e.trim()}function Lt(e,t,n){return e.replace(t,n)}function bc(e,t){return e.indexOf(t)}function bt(e,t){return e.charCodeAt(t)|0}function yt(e,t,n){return e.slice(t,n)}function $e(e){return e.length}function yc(e){return e.length}function wt(e,t){return t.push(e),e}var qt=1,it=1,Go=0,pe=0,q=0,lt="";function lr(e,t,n,r,o,a,i,c){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:qt,column:it,length:i,return:"",siblings:c}}function Sc(){return q}function Ec(){return q=pe>0?bt(lt,--pe):0,it--,q===10&&(it=1,qt--),q}function xe(){return q=pe<Go?bt(lt,pe++):0,it++,q===10&&(it=1,qt++),q}function Ge(){return bt(lt,pe)}function jt(){return pe}function Zt(e,t){return yt(lt,e,t)}function kn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cc(e){return qt=it=1,Go=$e(lt=e),pe=0,[]}function xc(e){return lt="",e}function gn(e){return Vo(Zt(pe-1,In(e===91?e+2:e===40?e+1:e)))}function Oc(e){for(;(q=Ge())&&q<33;)xe();return kn(e)>2||kn(q)>3?"":" "}function Tc(e,t){for(;--t&&xe()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return Zt(e,jt()+(t<6&&Ge()==32&&xe()==32))}function In(e){for(;xe();)switch(q){case e:return pe;case 34:case 39:e!==34&&e!==39&&In(q);break;case 40:e===41&&In(e);break;case 92:xe();break}return pe}function wc(e,t){for(;xe()&&e+q!==47+10;)if(e+q===42+42&&Ge()===47)break;return"/*"+Zt(t,pe-1)+"*"+sr(e===47?e:xe())}function Pc(e){for(;!kn(Ge());)xe();return Zt(e,pe)}function Nc(e){return xc(Dt("",null,null,null,[""],e=Cc(e),0,[0],e))}function Dt(e,t,n,r,o,a,i,c,s){for(var l=0,u=0,f=i,v=0,p=0,b=0,m=1,g=1,S=1,y=0,A="",w=o,O=a,C=r,h=A;g;)switch(b=y,y=xe()){case 40:if(b!=108&&bt(h,f-1)==58){bc(h+=Lt(gn(y),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:h+=gn(y);break;case 9:case 10:case 13:case 32:h+=Oc(b);break;case 92:h+=Tc(jt()-1,7);continue;case 47:switch(Ge()){case 42:case 47:wt(Ac(wc(xe(),jt()),t,n,s),s);break;default:h+="/"}break;case 123*m:c[l++]=$e(h)*S;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:S==-1&&(h=Lt(h,/\f/g,"")),p>0&&$e(h)-f&&wt(p>32?Dr(h+";",r,n,f-1,s):Dr(Lt(h," ","")+";",r,n,f-2,s),s);break;case 59:h+=";";default:if(wt(C=jr(h,t,n,l,u,o,c,A,w=[],O=[],f,a),a),y===123)if(u===0)Dt(h,t,C,C,w,a,f,c,O);else switch(v===99&&bt(h,3)===110?100:v){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&wt(jr(e,C,C,0,0,o,c,A,o,w=[],f,O),O),o,O,f,c,r?w:O);break;default:Dt(h,C,C,C,[""],O,0,c,O)}}l=u=p=0,m=S=1,A=h="",f=i;break;case 58:f=1+$e(h),p=b;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Ec()==125)continue}switch(h+=sr(y),y*m){case 38:S=u>0?1:(h+="\f",-1);break;case 44:c[l++]=($e(h)-1)*S,S=1;break;case 64:Ge()===45&&(h+=gn(xe())),v=Ge(),u=f=$e(A=h+=Pc(jt())),y++;break;case 45:b===45&&$e(h)==2&&(m=0)}}return a}function jr(e,t,n,r,o,a,i,c,s,l,u,f){for(var v=o-1,p=o===0?a:[""],b=yc(p),m=0,g=0,S=0;m<r;++m)for(var y=0,A=yt(e,v+1,v=hc(g=i[m])),w=e;y<b;++y)(w=Vo(g>0?p[y]+" "+A:Lt(A,/&\f/g,p[y])))&&(s[S++]=w);return lr(e,t,n,o===0?Wo:c,s,l,u,f)}function Ac(e,t,n,r){return lr(e,t,n,Bo,sr(Sc()),yt(e,2,-2),0,r)}function Dr(e,t,n,r,o){return lr(e,t,n,Uo,yt(e,0,r),yt(e,r+1,-1),r,o)}function $n(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function _c(e,t,n,r){switch(e.type){case mc:if(e.children.length)break;case gc:case Uo:return e.return=e.return||e.value;case Bo:return"";case pc:return e.return=e.value+"{"+$n(e.children,r)+"}";case Wo:if(!$e(e.value=e.props.join(",")))return""}return $e(n=$n(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ko(e,t){var n=t.path,r=t.parentSelectors;qe(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var Mc=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof n!="string"||a.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Ko("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},Rc=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&Ko("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},Fr="data-ant-cssinjs-cache-path",Xo="_FILE_STYLE__",Ke,Yo=!0;function kc(){if(!Ke&&(Ke={},Pe())){var e=document.createElement("div");e.className=Fr,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=z(a,2),c=i[0],s=i[1];Ke[c]=s});var n=document.querySelector("style[".concat(Fr,"]"));if(n){var r;Yo=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function Ic(e){return kc(),!!Ke[e]}function $c(e){var t=Ke[e],n=null;if(t&&Pe())if(Yo)n=Xo;else{var r=document.querySelector("style[".concat(Ve,'="').concat(Ke[e],'"]'));r?n=r.innerHTML:delete Ke[e]}return[n,t]}var Hr=Pe(),Qo="_skip_check_",qo="_multi_value_";function zr(e){var t=$n(Nc(e),_c);return t.replace(/\{%%%\:[^;];}/g,";")}function Lc(e){return X(e)==="object"&&e&&(Qo in e||qo in e)}function jc(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var c,s=i.trim().split(/\s+/),l=s[0]||"",u=((c=l.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return l="".concat(u).concat(o).concat(l.slice(u.length)),[l].concat(de(s.slice(1))).join(" ")});return a.join(",")}var Dc=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,c=n.hashId,s=n.layer,l=n.path,u=n.hashPriority,f=n.transformers,v=f===void 0?[]:f,p=n.linters,b=p===void 0?[]:p,m="",g={};function S(C){var h=C.getName(c);if(!g[h]){var x=e(C.style,n,{root:!1,parentSelectors:i}),P=z(x,1),E=P[0];g[h]="@keyframes ".concat(C.getName(c)).concat(E)}}function y(C){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(x){Array.isArray(x)?y(x,h):x&&h.push(x)}),h}var A=y(Array.isArray(t)?t:[t]);if(A.forEach(function(C){var h=typeof C=="string"&&!o?{}:C;if(typeof h=="string")m+="".concat(h,`
|
|
24
|
+
`);else if(h._keyframe)S(h);else{var x=v.reduce(function(P,E){var T;return(E==null||(T=E.visit)===null||T===void 0?void 0:T.call(E,P))||P},h);Object.keys(x).forEach(function(P){var E=x[P];if(X(E)==="object"&&E&&(P!=="animationName"||!E._keyframe)&&!Lc(E)){var T=!1,M=P.trim(),R=!1;(o||a)&&c?M.startsWith("@")?T=!0:M=jc(P,c,u):o&&!c&&(M==="&"||M==="")&&(M="",R=!0);var L=e(E,n,{root:R,injectHash:T,parentSelectors:[].concat(de(i),[M])}),k=z(L,2),U=k[0],D=k[1];g=$($({},g),D),m+="".concat(M).concat(U)}else{let V=function(ee,Y){process.env.NODE_ENV!=="production"&&(X(E)!=="object"||!(E!=null&&E[Qo]))&&[Mc,Rc].concat(de(b)).forEach(function(ve){return ve(ee,Y,{path:l,hashId:c,parentSelectors:i})});var ce=ee.replace(/[A-Z]/g,function(ve){return"-".concat(ve.toLowerCase())}),te=Y;!vc[ee]&&typeof te=="number"&&te!==0&&(te="".concat(te,"px")),ee==="animationName"&&Y!==null&&Y!==void 0&&Y._keyframe&&(S(Y),te=Y.getName(c)),m+="".concat(ce,":").concat(te,";")};var B,W=(B=E==null?void 0:E.value)!==null&&B!==void 0?B:E;X(E)==="object"&&E!==null&&E!==void 0&&E[qo]&&Array.isArray(W)?W.forEach(function(ee){V(P,ee)}):V(P,W)}})}}),!o)m="{".concat(m,"}");else if(s&&Vi()){var w=s.split(","),O=w[w.length-1].trim();m="@layer ".concat(O," {").concat(m,"}"),w.length>1&&(m="@layer ".concat(s,"{%%%:%}").concat(m))}return[m,g]};function Fc(e,t){return ar("".concat(e.join("%")).concat(t))}function Hc(){return null}function Ln(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,c=e.clientOnly,s=e.order,l=s===void 0?0:s,u=d.useContext(ir),f=u.autoClear,v=u.mock,p=u.defaultCache,b=u.hashPriority,m=u.container,g=u.ssrInline,S=u.transformers,y=u.linters,A=u.cache,w=n._tokenKey,O=[w].concat(de(r)),C=Hr;process.env.NODE_ENV!=="production"&&v!==void 0&&(C=v==="client");var h=zo("style",O,function(){var M=O.join("|");if(Ic(M)){var R=$c(M),L=z(R,2),k=L[0],U=L[1];if(k)return[k,w,U,{},c,l]}var D=t(),B=Dc(D,{hashId:o,hashPriority:b,layer:a,path:r.join("-"),transformers:S,linters:y}),W=z(B,2),V=W[0],ee=W[1],Y=zr(V),ce=Fc(O,Y);return[Y,w,ce,ee,c,l]},function(M,R){var L=z(M,3),k=L[2];(R||f)&&Hr&&Lo(k,{mark:Ve})},function(M){var R=z(M,4),L=R[0];R[1];var k=R[2],U=R[3];if(C&&L!==Xo){var D={mark:Ve,prepend:"queue",attachTo:m,priority:l},B=typeof i=="function"?i():i;B&&(D.csp={nonce:B});var W=Vt(L,k,D);W[rt]=A.instanceId,W.setAttribute(An,w),process.env.NODE_ENV!=="production"&&W.setAttribute(ki,O.join("|")),Object.keys(U).forEach(function(V){Vt(zr(U[V]),"_effect-".concat(V),D)})}}),x=z(h,3),P=x[0],E=x[1],T=x[2];return function(M){var R;if(!g||C||!p)R=d.createElement(Hc,null);else{var L;R=d.createElement("style",Xe({},(L={},j(L,An,E),j(L,Ve,T),L),{dangerouslySetInnerHTML:{__html:P}}))}return d.createElement(d.Fragment,null,R,M)}}var gt=function(){function e(t,n){ct(this,e),j(this,"name",void 0),j(this,"style",void 0),j(this,"_keyframe",!0),this.name=t,this.style=n}return st(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function tt(e){return e.notSplit=!0,e}tt(["borderTop","borderBottom"]),tt(["borderTop"]),tt(["borderBottom"]),tt(["borderLeft","borderRight"]),tt(["borderLeft"]),tt(["borderRight"]);var zc=I.createContext({});const ur=zc;function Bc(e){return jo(e)||No(e)||rr(e)||Do()}function jn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Zo(e,t,n,r){if(!t.length)return n;var o=Bc(t),a=o[0],i=o.slice(1),c;return!e&&typeof a=="number"?c=[]:Array.isArray(e)?c=de(e):c=$({},e),r&&n===void 0&&i.length===1?delete c[a][i[0]]:c[a]=Zo(c[a],i,n,r),c}function pn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!jn(e,t.slice(0,-1))?e:Zo(e,t,n,r)}function Wc(e){return X(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Br(e){return Array.isArray(e)?[]:{}}var Uc=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Vc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Br(t[0]);return t.forEach(function(o){function a(i,c){var s=new Set(c),l=jn(o,i),u=Array.isArray(l);if(u||Wc(l)){if(!s.has(l)){s.add(l);var f=jn(r,i);u?r=pn(r,i,[]):(!f||X(f)!=="object")&&(r=pn(r,i,Br(l))),Uc(l).forEach(function(v){a([].concat(de(i),[v]),s)})}}else r=pn(r,i,l)}a([])}),r}function Jo(){}let Ie=null;function Gc(){Ie=null,Co()}let fr=Jo;process.env.NODE_ENV!=="production"&&(fr=(e,t,n)=>{qe(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&Gc()});const ea=d.createContext({}),dr=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=d.useContext(ea),n=(r,o,a)=>{if(!r)if(t===!1&&o==="deprecated"){const i=Ie;Ie||(Ie={}),Ie[e]=Ie[e]||[],Ie[e].includes(a||"")||Ie[e].push(a||""),i||console.warn("[antd] There exists deprecated usage in your code:",Ie)}else process.env.NODE_ENV!=="production"&&fr(r,e,a)};return n.deprecated=(r,o,a,i)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Jo,e},Jt=fr,Kc=I.createContext(void 0),Xc={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var Yc={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const Qc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ta=Qc,qc={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Yc),timePickerLocale:Object.assign({},ta)},Wr=qc,le="${label} is not a valid ${type}",Zc={locale:"en",Pagination:Xc,DatePicker:Wr,TimePicker:ta,Calendar:Wr,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:le,method:le,array:le,object:le,number:le,date:le,boolean:le,integer:le,float:le,regexp:le,email:le,url:le,hex:le},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},en=Zc;Object.assign({},en.Modal);let Ft=[];const Ur=()=>Ft.reduce((e,t)=>Object.assign(Object.assign({},e),t),en.Modal);function Jc(e){if(e){const t=Object.assign({},e);return Ft.push(t),Ur(),()=>{Ft=Ft.filter(n=>n!==t),Ur()}}Object.assign({},en.Modal)}const es=I.createContext(void 0),na=es,ra="internalMark",oa=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const a=dr("LocaleProvider");process.env.NODE_ENV!=="production"&&a(r===ra,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}d.useEffect(()=>Jc(t&&t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(na.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(oa.displayName="LocaleProvider");const ts=oa;function oe(e,t){ns(e)&&(e="100%");var n=rs(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Pt(e){return Math.min(1,Math.max(0,e))}function ns(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function rs(e){return typeof e=="string"&&e.indexOf("%")!==-1}function aa(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Nt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ue(e){return e.length===1?"0"+e:String(e)}function os(e,t,n){return{r:oe(e,255)*255,g:oe(t,255)*255,b:oe(n,255)*255}}function Vr(e,t,n){e=oe(e,255),t=oe(t,255),n=oe(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,c=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=c>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:a,s:i,l:c}}function mn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function as(e,t,n){var r,o,a;if(e=oe(e,360),t=oe(t,100),n=oe(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,c=2*n-i;r=mn(c,i,e+1/3),o=mn(c,i,e),a=mn(c,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function Dn(e,t,n){e=oe(e,255),t=oe(t,255),n=oe(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,c=r-o,s=r===0?0:c/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s,v:i}}function is(e,t,n){e=oe(e,360)*6,t=oe(t,100),n=oe(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),c=n*(1-(1-o)*t),s=r%6,l=[n,i,a,a,c,n][s],u=[c,n,n,i,a,a][s],f=[a,a,c,n,n,i][s];return{r:l*255,g:u*255,b:f*255}}function Fn(e,t,n,r){var o=[Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(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 cs(e,t,n,r,o){var a=[Ue(Math.round(e).toString(16)),Ue(Math.round(t).toString(16)),Ue(Math.round(n).toString(16)),Ue(ss(r))];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("")}function ss(e){return Math.round(parseFloat(e)*255).toString(16)}function Gr(e){return ue(e)/255}function ue(e){return parseInt(e,16)}function ls(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Hn={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 nt(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,c=!1;return typeof e=="string"&&(e=ds(e)),typeof e=="object"&&(Re(e.r)&&Re(e.g)&&Re(e.b)?(t=os(e.r,e.g,e.b),i=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Re(e.h)&&Re(e.s)&&Re(e.v)?(r=Nt(e.s),o=Nt(e.v),t=is(e.h,r,o),i=!0,c="hsv"):Re(e.h)&&Re(e.s)&&Re(e.l)&&(r=Nt(e.s),a=Nt(e.l),t=as(e.h,r,a),i=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=aa(n),{ok:i,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var us="[-\\+]?\\d+%?",fs="[-\\+]?\\d*\\.\\d+%?",Le="(?:".concat(fs,")|(?:").concat(us,")"),hn="[\\s|\\(]+(".concat(Le,")[,|\\s]+(").concat(Le,")[,|\\s]+(").concat(Le,")\\s*\\)?"),bn="[\\s|\\(]+(".concat(Le,")[,|\\s]+(").concat(Le,")[,|\\s]+(").concat(Le,")[,|\\s]+(").concat(Le,")\\s*\\)?"),ye={CSS_UNIT:new RegExp(Le),rgb:new RegExp("rgb"+hn),rgba:new RegExp("rgba"+bn),hsl:new RegExp("hsl"+hn),hsla:new RegExp("hsla"+bn),hsv:new RegExp("hsv"+hn),hsva:new RegExp("hsva"+bn),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 ds(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Hn[e])e=Hn[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ye.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ye.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ye.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ye.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ye.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ye.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ye.hex8.exec(e),n?{r:ue(n[1]),g:ue(n[2]),b:ue(n[3]),a:Gr(n[4]),format:t?"name":"hex8"}:(n=ye.hex6.exec(e),n?{r:ue(n[1]),g:ue(n[2]),b:ue(n[3]),format:t?"name":"hex"}:(n=ye.hex4.exec(e),n?{r:ue(n[1]+n[1]),g:ue(n[2]+n[2]),b:ue(n[3]+n[3]),a:Gr(n[4]+n[4]),format:t?"name":"hex8"}:(n=ye.hex3.exec(e),n?{r:ue(n[1]+n[1]),g:ue(n[2]+n[2]),b:ue(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Re(e){return!!ye.CSS_UNIT.exec(String(e))}var fe=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=ls(t)),this.originalInput=t;var o=nt(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=(r=n.format)!==null&&r!==void 0?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 t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,c=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),c<=.03928?o=c/12.92:o=Math.pow((c+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=aa(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Dn(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Dn(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Vr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Vr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Fn(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),cs(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(oe(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(oe(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Fn(this.r,this.g,this.b,!1),n=0,r=Object.entries(Hn);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},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){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Pt(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Pt(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Pt(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Pt(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){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+c)%1;return i},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],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),At=2,Kr=.16,vs=.05,gs=.05,ps=.15,ia=5,ca=4,ms=[{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 Xr(e){var t=e.r,n=e.g,r=e.b,o=Dn(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function _t(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Fn(t,n,r,!1))}function hs(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Yr(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-At*t:Math.round(e.h)+At*t:r=n?Math.round(e.h)+At*t:Math.round(e.h)-At*t,r<0?r+=360:r>=360&&(r-=360),r}function Qr(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Kr*t:t===ca?r=e.s+Kr:r=e.s+vs*t,r>1&&(r=1),n&&t===ia&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function qr(e,t,n){var r;return n?r=e.v+gs*t:r=e.v-ps*t,r>1&&(r=1),Number(r.toFixed(2))}function Ye(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=nt(e),o=ia;o>0;o-=1){var a=Xr(r),i=_t(nt({h:Yr(a,o,!0),s:Qr(a,o,!0),v:qr(a,o,!0)}));n.push(i)}n.push(_t(r));for(var c=1;c<=ca;c+=1){var s=Xr(r),l=_t(nt({h:Yr(s,c),s:Qr(s,c),v:qr(s,c)}));n.push(l)}return t.theme==="dark"?ms.map(function(u){var f=u.index,v=u.opacity,p=_t(hs(nt(t.backgroundColor||"#141414"),nt(n[f]),v*100));return p}):n}var yn={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"},Ht={},Sn={};Object.keys(yn).forEach(function(e){Ht[e]=Ye(yn[e]),Ht[e].primary=Ht[e][5],Sn[e]=Ye(yn[e],{theme:"dark",backgroundColor:"#141414"}),Sn[e].primary=Sn[e][5]});var bs=Ht.blue;const ys=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Ss=ys;function Es(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const sa={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Cs=Object.assign(Object.assign({},sa),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
25
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
26
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),St=Cs;function xs(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:c,colorPrimary:s,colorBgBase:l,colorTextBase:u}=e,f=n(s),v=n(o),p=n(a),b=n(i),m=n(c),g=r(l,u),S=e.colorLink||e.colorInfo,y=n(S);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new fe("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Os=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},Ts=Os;function ws(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},Ts(r))}const ke=(e,t)=>new fe(e).setAlpha(t).toRgbString(),vt=(e,t)=>new fe(e).darken(t).toHexString(),Ps=e=>{const t=Ye(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Ns=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ke(r,.88),colorTextSecondary:ke(r,.65),colorTextTertiary:ke(r,.45),colorTextQuaternary:ke(r,.25),colorFill:ke(r,.15),colorFillSecondary:ke(r,.06),colorFillTertiary:ke(r,.04),colorFillQuaternary:ke(r,.02),colorBgLayout:vt(n,4),colorBgContainer:vt(n,0),colorBgElevated:vt(n,0),colorBgSpotlight:ke(r,.85),colorBgBlur:"transparent",colorBorder:vt(n,15),colorBorderSecondary:vt(n,6)}};function As(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const _s=e=>{const t=As(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Ms=_s;function Rs(e){const t=Object.keys(sa).map(n=>{const r=Ye(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),xs(e,{generateColorPalettes:Ps,generateNeutralColorPalettes:Ns})),Ms(e.fontSize)),Es(e)),Ss(e)),ws(e))}const la=Mn(Rs),ua={token:St,override:{override:St},hashed:!0},fa=I.createContext(ua),vr="anticon",ks=(e,t)=>t||(e?`ant-${e}`:"ant"),ut=d.createContext({getPrefixCls:ks,iconPrefixCls:vr}),Is=`-ant-${Date.now()}-${Math.random()}`;function $s(e,t){const n={},r=(i,c)=>{let s=i.clone();return s=(c==null?void 0:c(s))||s,s.toRgbString()},o=(i,c)=>{const s=new fe(i),l=Ye(s.toRgbString());n[`${c}-color`]=r(s),n[`${c}-color-disabled`]=l[1],n[`${c}-color-hover`]=l[4],n[`${c}-color-active`]=l[6],n[`${c}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=l[0],n[`${c}-color-deprecated-border`]=l[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new fe(t.primaryColor),c=Ye(i.toRgbString());c.forEach((l,u)=>{n[`primary-${u+1}`]=l}),n["primary-color-deprecated-l-35"]=r(i,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(i,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(i,l=>l.setAlpha(l.getAlpha()*.12));const s=new fe(c[0]);n["primary-color-active-deprecated-f-30"]=r(s,l=>l.setAlpha(l.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,l=>l.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
27
|
+
:root {
|
|
28
|
+
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
29
|
+
`)}
|
|
30
|
+
}
|
|
31
|
+
`.trim()}function Ls(e,t){const n=$s(e,t);Pe()?Vt(n,`${Is}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Jt(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const zn=d.createContext(!1),js=e=>{let{children:t,disabled:n}=e;const r=d.useContext(zn);return d.createElement(zn.Provider,{value:n??r},t)},Ds=zn,Bn=d.createContext(void 0),Fs=e=>{let{children:t,size:n}=e;const r=d.useContext(Bn);return d.createElement(Bn.Provider,{value:n||r},t)},gr=Bn;function Hs(){const e=I.useContext(Ds),t=I.useContext(gr);return{componentDisabled:e,componentSize:t}}const zs="5.11.0";function En(e){return e>=0&&e<=255}function Mt(e,t){const{r:n,g:r,b:o,a}=new fe(e).toRgb();if(a<1)return e;const{r:i,g:c,b:s}=new fe(t).toRgb();for(let l=.01;l<=1;l+=.01){const u=Math.round((n-i*(1-l))/l),f=Math.round((r-c*(1-l))/l),v=Math.round((o-s*(1-l))/l);if(En(u)&&En(f)&&En(v))return new fe({r:u,g:f,b:v,a:Math.round(l*100)/100}).toRgbString()}return new fe({r:n,g:r,b:o,a:1}).toRgbString()}var Bs=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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};function da(e){const{override:t}=e,n=Bs(e,["override"]),r=Object.assign({},t);Object.keys(St).forEach(v=>{delete r[v]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,c=768,s=992,l=1200,u=1600;if(o.motion===!1){const v="0s";o.motionDurationFast=v,o.motionDurationMid=v,o.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Mt(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Mt(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Mt(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Mt(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
32
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowSecondary:`
|
|
36
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
37
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
38
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
39
|
+
`,boxShadowTertiary:`
|
|
40
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
41
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
42
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
43
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
44
|
+
0 1px 2px -2px ${new fe("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
45
|
+
0 3px 6px 0 ${new fe("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
46
|
+
0 5px 12px 4px ${new fe("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
47
|
+
`,boxShadowDrawerRight:`
|
|
48
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
49
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
50
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
51
|
+
`,boxShadowDrawerLeft:`
|
|
52
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
53
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
54
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
55
|
+
`,boxShadowDrawerUp:`
|
|
56
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
57
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
58
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
59
|
+
`,boxShadowDrawerDown:`
|
|
60
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
61
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
62
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
63
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Zr=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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};const va=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Zr(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=da(i),a&&Object.entries(a).forEach(c=>{let[s,l]=c;const{theme:u}=l,f=Zr(l,["theme"]);let v=f;u&&(v=va(Object.assign(Object.assign({},i),f),{override:f},u)),i[s]=v}),i};function tn(){const{token:e,hashed:t,theme:n,override:r}=I.useContext(fa),o=`${zs}-${t||""}`,a=n||la,[i,c]=dc(a,[St,e],{salt:o,override:r,getComputedToken:va,formatToken:da});return[a,i,t?c:""]}function zt(e){var t=d.useRef(!1),n=d.useState(e),r=z(n,2),o=r[0],a=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(c,s){s&&t.current||a(c)}return[o,i]}const Ws=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Us=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Vs=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Gs=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ga=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Wn=!0;function Un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ga)return Object.assign.apply(Object,[{}].concat(t));Wn=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),Wn=!0,r}const Jr={};function Ks(){}function Xs(e){let t,n=e,r=Ks;return ga&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return Wn&&t.add(a),o[a]}}),r=(o,a)=>{var i;Jr[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Jr[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}}const Ys=(e,t)=>{const[n,r]=tn();return Ln({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Us()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},pa=Ys;function Qs(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return c=>{const[s,l,u]=tn(),{getPrefixCls:f,iconPrefixCls:v,csp:p}=I.useContext(ut),b=f(),m={theme:s,token:l,hashId:u,nonce:()=>p==null?void 0:p.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Ln(Object.assign(Object.assign({},m),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":Vs(l)}]),pa(v,p),[Ln(Object.assign(Object.assign({},m),{path:[i,c,v]}),()=>{const{token:g,flush:S}=Xs(l),y=Object.assign({},l[a]);if(r.deprecatedTokens){const{deprecatedTokens:x}=r;x.forEach(P=>{let[E,T]=P;var M;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&qe(!(y!=null&&y[E]),`The token '${String(E)}' of ${a} had deprecated, use '${String(T)}' instead.`),(y!=null&&y[E]||y!=null&&y[T])&&((M=y[T])!==null&&M!==void 0||(y[T]=y==null?void 0:y[E]))})}const A=typeof n=="function"?n(Un(g,y??{})):n,w=Object.assign(Object.assign({},A),y),O=`.${c}`,C=Un(g,{componentCls:O,prefixCls:c,iconCls:`.${v}`,antCls:`.${b}`},w),h=t(C,{hashId:u,prefixCls:c,rootPrefixCls:b,iconPrefixCls:v,overrideComponentToken:y});return S(a,w),[r.resetStyle===!1?null:Gs(l,c),h]}),u]}}function qs(e,t){const n=e||{},r=n.inherit===!1||!t?ua:t;return To(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,c)=>{const s=a[c];return!Mi(i,s,!0)}))}var Zs=["children"],ma=d.createContext({});function Js(e){var t=e.children,n=ht(e,Zs);return d.createElement(ma.Provider,{value:n},t)}var el=function(e){wo(n,e);var t=Po(n);function n(){return ct(this,n),t.apply(this,arguments)}return st(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component),Be="none",Rt="appear",kt="enter",It="leave",eo="none",Se="prepare",ot="start",at="active",pr="end",ha="prepared";function to(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function tl(e,t){var n={animationend:to("Animation","AnimationEnd"),transitionend:to("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var nl=tl(Pe(),typeof window<"u"?window:{}),ba={};if(Pe()){var rl=document.createElement("div");ba=rl.style}var $t={};function ya(e){if($t[e])return $t[e];var t=nl[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in ba)return $t[e]=t[a],$t[e]}return""}var Sa=ya("animationend"),Ea=ya("transitionend"),Ca=!!(Sa&&Ea),no=Sa||"animationend",ro=Ea||"transitionend";function oo(e,t){if(!e)return null;if(X(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const ol=function(e){var t=I.useRef(),n=I.useRef(e);n.current=e;var r=d.useCallback(function(i){n.current(i)},[]);function o(i){i&&(i.removeEventListener(ro,r),i.removeEventListener(no,r))}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(ro,r),i.addEventListener(no,r),t.current=i)}return d.useEffect(function(){return function(){o(t.current)}},[]),[a,o]};var xa=Pe()?I.useLayoutEffect:I.useEffect;const al=function(){var e=d.useRef(null);function t(){Nn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Nn(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var il=[Se,ot,at,pr],cl=[Se,ha],Oa=!1,sl=!0;function Ta(e){return e===at||e===pr}const ll=function(e,t,n){var r=zt(eo),o=z(r,2),a=o[0],i=o[1],c=al(),s=z(c,2),l=s[0],u=s[1];function f(){i(Se,!0)}var v=t?cl:il;return xa(function(){if(a!==eo&&a!==pr){var p=v.indexOf(a),b=v[p+1],m=n(a);m===Oa?i(b,!0):b&&l(function(g){function S(){g.isCanceled()||i(b,!0)}m===!0?S():Promise.resolve(m).then(S)})}},[e,a]),d.useEffect(function(){return function(){u()}},[]),[f,a]};function ul(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,c=i===void 0?!0:i,s=r.motionLeave,l=s===void 0?!0:s,u=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,p=r.onEnterPrepare,b=r.onLeavePrepare,m=r.onAppearStart,g=r.onEnterStart,S=r.onLeaveStart,y=r.onAppearActive,A=r.onEnterActive,w=r.onLeaveActive,O=r.onAppearEnd,C=r.onEnterEnd,h=r.onLeaveEnd,x=r.onVisibleChanged,P=zt(),E=z(P,2),T=E[0],M=E[1],R=zt(Be),L=z(R,2),k=L[0],U=L[1],D=zt(null),B=z(D,2),W=B[0],V=B[1],ee=I.useRef(!1),Y=I.useRef(null);function ce(){return n()}var te=I.useRef(!1);function ve(){U(Be,!0),V(null,!0)}function ae(Q){var K=ce();if(!(Q&&!Q.deadline&&Q.target!==K)){var G=te.current,ie;k===Rt&&G?ie=O==null?void 0:O(K,Q):k===kt&&G?ie=C==null?void 0:C(K,Q):k===It&&G&&(ie=h==null?void 0:h(K,Q)),k!==Be&&G&&ie!==!1&&ve()}}var me=ol(ae),Fe=z(me,1),He=Fe[0],he=function(K){var G,ie,Ae;switch(K){case Rt:return G={},j(G,Se,v),j(G,ot,m),j(G,at,y),G;case kt:return ie={},j(ie,Se,p),j(ie,ot,g),j(ie,at,A),ie;case It:return Ae={},j(Ae,Se,b),j(Ae,ot,S),j(Ae,at,w),Ae;default:return{}}},se=d.useMemo(function(){return he(k)},[k]),ze=ll(k,!e,function(Q){if(Q===Se){var K=se[Se];return K?K(ce()):Oa}if(Z in se){var G;V(((G=se[Z])===null||G===void 0?void 0:G.call(se,ce(),null))||null)}return Z===at&&(He(ce()),u>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){ae({deadline:!0})},u))),Z===ha&&ve(),sl}),Oe=z(ze,2),N=Oe[0],Z=Oe[1],be=Ta(Z);te.current=be,xa(function(){M(t);var Q=ee.current;ee.current=!0;var K;!Q&&t&&c&&(K=Rt),Q&&t&&a&&(K=kt),(Q&&!t&&l||!Q&&f&&!t&&l)&&(K=It);var G=he(K);K&&(e||G[Se])?(U(K),N()):U(Be)},[t]),I.useEffect(function(){(k===Rt&&!c||k===kt&&!a||k===It&&!l)&&U(Be)},[c,a,l]),I.useEffect(function(){return function(){ee.current=!1,clearTimeout(Y.current)}},[]);var ge=d.useRef(!1);I.useEffect(function(){T&&(ge.current=!0),T!==void 0&&k===Be&&((ge.current||T)&&(x==null||x(T)),ge.current=!0)},[T,k]);var Ne=W;return se[Se]&&Z===ot&&(Ne=$({transition:"none"},Ne)),[k,Z,Ne,T??t]}function fl(e){var t=e;X(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=d.forwardRef(function(o,a){var i=o.visible,c=i===void 0?!0:i,s=o.removeOnLeave,l=s===void 0?!0:s,u=o.forceRender,f=o.children,v=o.motionName,p=o.leavedClassName,b=o.eventProps,m=d.useContext(ma),g=m.motion,S=n(o,g),y=I.useRef(),A=I.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:xi(A.current)}catch{return null}}var O=ul(S,c,w,o),C=z(O,4),h=C[0],x=C[1],P=C[2],E=C[3],T=d.useRef(E);E&&(T.current=!0);var M=d.useCallback(function(V){y.current=V,Oi(a,V)},[a]),R,L=$($({},b),{},{visible:c});if(!f)R=null;else if(h===Be)E?R=f($({},L),M):!l&&T.current&&p?R=f($($({},L),{},{className:p}),M):u||!l&&!p?R=f($($({},L),{},{style:{display:"none"}}),M):R=null;else{var k,U;x===Se?U="prepare":Ta(x)?U="active":x===ot&&(U="start");var D=oo(v,"".concat(h,"-").concat(U));R=f($($({},L),{},{className:Ce(oo(v,h),(k={},j(k,D,D&&U),j(k,v,typeof v=="string"),k)),style:P}),M)}if(d.isValidElement(R)&&Ti(R)){var B=R,W=B.ref;W||(R=d.cloneElement(R,{ref:M}))}return d.createElement(el,{ref:A},R)});return r.displayName="CSSMotion",r}const dl=fl(Ca);var Vn="add",Gn="keep",Kn="remove",Cn="removed";function vl(e){var t;return e&&X(e)==="object"&&"key"in e?t=e:t={key:e},$($({},t),{},{key:String(t.key)})}function Xn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(vl)}function gl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=Xn(e),i=Xn(t);a.forEach(function(l){for(var u=!1,f=r;f<o;f+=1){var v=i[f];if(v.key===l.key){r<f&&(n=n.concat(i.slice(r,f).map(function(p){return $($({},p),{},{status:Vn})})),r=f),n.push($($({},v),{},{status:Gn})),r+=1,u=!0;break}}u||n.push($($({},l),{},{status:Kn}))}),r<o&&(n=n.concat(i.slice(r).map(function(l){return $($({},l),{},{status:Vn})})));var c={};n.forEach(function(l){var u=l.key;c[u]=(c[u]||0)+1});var s=Object.keys(c).filter(function(l){return c[l]>1});return s.forEach(function(l){n=n.filter(function(u){var f=u.key,v=u.status;return f!==l||v!==Kn}),n.forEach(function(u){u.key===l&&(u.status=Gn)})}),n}var pl=["component","children","onVisibleChanged","onAllRemoved"],ml=["status"],hl=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function bl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dl,n=function(r){wo(a,r);var o=Po(a);function a(){var i;ct(this,a);for(var c=arguments.length,s=new Array(c),l=0;l<c;l++)s[l]=arguments[l];return i=o.call.apply(o,[this].concat(s)),j(wn(i),"state",{keyEntities:[]}),j(wn(i),"removeKey",function(u){var f=i.state.keyEntities,v=f.map(function(p){return p.key!==u?p:$($({},p),{},{status:Cn})});return i.setState({keyEntities:v}),v.filter(function(p){var b=p.status;return b!==Cn}).length}),i}return st(a,[{key:"render",value:function(){var c=this,s=this.state.keyEntities,l=this.props,u=l.component,f=l.children,v=l.onVisibleChanged,p=l.onAllRemoved,b=ht(l,pl),m=u||d.Fragment,g={};return hl.forEach(function(S){g[S]=b[S],delete b[S]}),delete b.keys,d.createElement(m,b,s.map(function(S,y){var A=S.status,w=ht(S,ml),O=A===Vn||A===Gn;return d.createElement(t,Xe({},g,{key:w.key,visible:O,eventProps:w,onVisibleChanged:function(h){if(v==null||v(h,{key:w.key}),!h){var x=c.removeKey(w.key);x===0&&p&&p()}}}),function(C,h){return f($($({},C),{},{index:y}),h)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,s){var l=c.keys,u=s.keyEntities,f=Xn(l),v=gl(u,f);return{keyEntities:v.filter(function(p){var b=u.find(function(m){var g=m.key;return p.key===g});return!(b&&b.status===Cn&&p.status===Kn)})}}}]),a}(d.Component);return j(n,"defaultProps",{component:"div"}),n}const yl=bl(Ca);function Sl(e){const{children:t}=e,[,n]=tn(),{motion:r}=n,o=d.useRef(!1);return o.current=o.current||r===!1,o.current?d.createElement(Js,{motion:r},t):t}const wa=d.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return dr("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(wa.displayName="PropWarning");const El=process.env.NODE_ENV!=="production"?wa:()=>null;var Cl=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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};let Yn=!1;const xl=process.env.NODE_ENV!=="production"?e=>{process.env.NODE_ENV!=="production"&&Jt(!Yn,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,Ol=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],Tl="ant";let Kt,Pa,Na;function Bt(){return Kt||Tl}function wl(){return Pa||vr}function Pl(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Nl=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(Kt=t),n!==void 0&&(Pa=n),r&&(Pl(r)?(process.env.NODE_ENV!=="production"&&Jt(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ls(Bt(),r)):Na=r)},Aa=()=>({getPrefixCls:(e,t)=>t||(e?`${Bt()}-${e}`:Bt()),getIconPrefixCls:wl,getRootPrefixCls:()=>Kt||Bt(),getTheme:()=>Na}),Al=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:c,componentSize:s,direction:l,space:u,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:p,popupOverflow:b,legacyLocale:m,parentContext:g,iconPrefixCls:S,theme:y,componentDisabled:A,segmented:w,statistic:O,spin:C,calendar:h,carousel:x,cascader:P,collapse:E,typography:T,checkbox:M,descriptions:R,divider:L,drawer:k,skeleton:U,steps:D,image:B,layout:W,list:V,mentions:ee,modal:Y,progress:ce,result:te,slider:ve,breadcrumb:ae,menu:me,pagination:Fe,input:He,empty:he,badge:se,radio:ze,rate:Oe,switch:N,transfer:Z,avatar:be,message:ge,tag:Ne,table:Q,card:K,tabs:G,timeline:ie,timePicker:Ae,upload:an,notification:Je,tree:_e,colorPicker:cn,datePicker:ei,rangePicker:ti,flex:ni,wave:ri,dropdown:oi,warning:ai}=e,ii=d.useCallback((J,re)=>{const{prefixCls:Te}=e;if(re)return re;const we=Te||g.getPrefixCls("");return J?`${we}-${J}`:we},[g.getPrefixCls,e.prefixCls]),ft=S||g.iconPrefixCls||vr,dt=n||g.csp;pa(ft,dt);const xt=qs(y,g.theme);process.env.NODE_ENV!=="production"&&(Yn=Yn||!!xt);const sn={csp:dt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:c||m,direction:l,space:u,virtual:f,popupMatchSelectWidth:p??v,popupOverflow:b,getPrefixCls:ii,iconPrefixCls:ft,theme:xt,segmented:w,statistic:O,spin:C,calendar:h,carousel:x,cascader:P,collapse:E,typography:T,checkbox:M,descriptions:R,divider:L,drawer:k,skeleton:U,steps:D,image:B,input:He,layout:W,list:V,mentions:ee,modal:Y,progress:ce,result:te,slider:ve,breadcrumb:ae,menu:me,pagination:Fe,empty:he,badge:se,radio:ze,rate:Oe,switch:N,transfer:Z,avatar:be,message:ge,tag:Ne,table:Q,card:K,tabs:G,timeline:ie,timePicker:Ae,upload:an,notification:Je,tree:_e,colorPicker:cn,datePicker:ei,rangePicker:ti,flex:ni,wave:ri,dropdown:oi,warning:ai},Ot=Object.assign({},g);Object.keys(sn).forEach(J=>{sn[J]!==void 0&&(Ot[J]=sn[J])}),Ol.forEach(J=>{const re=e[J];re&&(Ot[J]=re)});const et=To(()=>Ot,Ot,(J,re)=>{const Te=Object.keys(J),we=Object.keys(re);return Te.length!==we.length||Te.some(Tt=>J[Tt]!==re[Tt])}),ci=d.useMemo(()=>({prefixCls:ft,csp:dt}),[ft,dt]);let ne=d.createElement(d.Fragment,null,d.createElement(El,{dropdownMatchSelectWidth:v}),t);const Cr=d.useMemo(()=>{var J,re,Te,we;return Vc(((J=en.Form)===null||J===void 0?void 0:J.defaultValidateMessages)||{},((Te=(re=et.locale)===null||re===void 0?void 0:re.Form)===null||Te===void 0?void 0:Te.defaultValidateMessages)||{},((we=et.form)===null||we===void 0?void 0:we.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[et,i==null?void 0:i.validateMessages]);Object.keys(Cr).length>0&&(ne=d.createElement(Kc.Provider,{value:Cr},ne)),c&&(ne=d.createElement(ts,{locale:c,_ANT_MARK__:ra},ne)),(ft||dt)&&(ne=d.createElement(ur.Provider,{value:ci},ne)),s&&(ne=d.createElement(Fs,{size:s},ne)),ne=d.createElement(Sl,null,ne);const si=d.useMemo(()=>{const J=xt||{},{algorithm:re,token:Te,components:we}=J,Tt=Cl(J,["algorithm","token","components"]),xr=re&&(!Array.isArray(re)||re.length>0)?Mn(re):la,ln={};Object.entries(we||{}).forEach(li=>{let[ui,fi]=li;const Me=Object.assign({},fi);"algorithm"in Me&&(Me.algorithm===!0?Me.theme=xr:(Array.isArray(Me.algorithm)||typeof Me.algorithm=="function")&&(Me.theme=Mn(Me.algorithm)),delete Me.algorithm),ln[ui]=Me});const Or=Object.assign(Object.assign({},St),Te);return Object.assign(Object.assign({},Tt),{theme:xr,token:Or,components:ln,override:Object.assign({override:Or},ln)})},[xt]);return y&&(ne=d.createElement(fa.Provider,{value:si},ne)),et.warning&&(ne=d.createElement(ea.Provider,{value:et.warning},ne)),A!==void 0&&(ne=d.createElement(js,{disabled:A},ne)),d.createElement(ut.Provider,{value:et},ne)},Ze=e=>{const t=d.useContext(ut),n=d.useContext(na);return d.createElement(Al,Object.assign({parentContext:t,legacyLocale:n},e))};Ze.ConfigContext=ut;Ze.SizeContext=gr;Ze.config=Nl;Ze.useConfig=Hs;Object.defineProperty(Ze,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Jt(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),gr)});process.env.NODE_ENV!=="production"&&(Ze.displayName="ConfigProvider");function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},De.apply(this,arguments)}var _l={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"};const Ml=_l;function Rl(e){if(Array.isArray(e))return e}function kl(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(u){l=!0,o=u}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}function ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Il(e,t){if(e){if(typeof e=="string")return ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ao(e,t)}}function $l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _a(e,t){return Rl(e)||kl(e,t)||Il(e,t)||$l()}function Qe(e){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(e)}function Ll(e,t){if(Qe(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qe(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jl(e){var t=Ll(e,"string");return Qe(t)==="symbol"?t:String(t)}function Qn(e,t,n){return t=jl(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dl(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ma(e,t){if(e==null)return{};var n=Dl(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?io(Object(n),!0).forEach(function(r){Qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Hl(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 co="data-rc-order",so="data-rc-priority",zl="rc-util-key",qn=new Map;function Ra(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):zl}function mr(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Bl(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ka(e){return Array.from((qn.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ia(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Fl())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=Bl(r),c=i==="prependQueue",s=document.createElement("style");s.setAttribute(co,i),c&&a&&s.setAttribute(so,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var l=mr(t),u=l.firstChild;if(r){if(c){var f=ka(l).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(co)))return!1;var p=Number(v.getAttribute(so)||0);return a>=p});if(f.length)return l.insertBefore(s,f[f.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function Wl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mr(t);return ka(n).find(function(r){return r.getAttribute(Ra(t))===e})}function Ul(e,t){var n=qn.get(e);if(!n||!Hl(document,n)){var r=Ia("",t),o=r.parentNode;qn.set(e,o),e.removeChild(r)}}function Vl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=mr(n);Ul(r,n);var o=Wl(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var c;o.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=Ia(e,n);return s.setAttribute(Ra(n),t),s}function $a(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Gl(e){return $a(e)instanceof ShadowRoot}function Kl(e){return Gl(e)?$a(e):null}var Zn={},hr=[],Xl=function(t){hr.push(t)};function Yl(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=hr.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function Ql(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=hr.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function ql(){Zn={}}function La(e,t,n){!t&&!Zn[n]&&(e(!1,n),Zn[n]=!0)}function nn(e,t){La(Yl,e,t)}function Zl(e,t){La(Ql,e,t)}nn.preMessage=Xl;nn.resetWarned=ql;nn.noteOnce=Zl;function Jl(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function eu(e,t){nn(e,"[@ant-design/icons] ".concat(t))}function lo(e){return Qe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Qe(e.icon)==="object"||typeof e.icon=="function")}function uo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Jl(n)]=r}return t},{})}function Jn(e,t,n){return n?I.createElement(e.tag,je(je({key:t},uo(e.attrs)),n),(e.children||[]).map(function(r,o){return Jn(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):I.createElement(e.tag,je({key:t},uo(e.attrs)),(e.children||[]).map(function(r,o){return Jn(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function ja(e){return Ye(e)[0]}function Da(e){return e?Array.isArray(e)?e:[e]:[]}var tu=`
|
|
65
|
+
.anticon {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
color: inherit;
|
|
68
|
+
font-style: normal;
|
|
69
|
+
line-height: 0;
|
|
70
|
+
text-align: center;
|
|
71
|
+
text-transform: none;
|
|
72
|
+
vertical-align: -0.125em;
|
|
73
|
+
text-rendering: optimizeLegibility;
|
|
74
|
+
-webkit-font-smoothing: antialiased;
|
|
75
|
+
-moz-osx-font-smoothing: grayscale;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.anticon > * {
|
|
79
|
+
line-height: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.anticon svg {
|
|
83
|
+
display: inline-block;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.anticon::before {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.anticon .anticon-icon {
|
|
91
|
+
display: block;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.anticon[tabindex] {
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.anticon-spin::before,
|
|
99
|
+
.anticon-spin {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
102
|
+
animation: loadingCircle 1s infinite linear;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@-webkit-keyframes loadingCircle {
|
|
106
|
+
100% {
|
|
107
|
+
-webkit-transform: rotate(360deg);
|
|
108
|
+
transform: rotate(360deg);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@keyframes loadingCircle {
|
|
113
|
+
100% {
|
|
114
|
+
-webkit-transform: rotate(360deg);
|
|
115
|
+
transform: rotate(360deg);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`,nu=function(t){var n=I.useContext(ur),r=n.csp,o=n.prefixCls,a=tu;o&&(a=a.replace(/anticon/g,o)),I.useEffect(function(){var i=t.current,c=Kl(i);Vl(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:c})},[])},ru=["icon","className","onClick","style","primaryColor","secondaryColor"],mt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ou(e){var t=e.primaryColor,n=e.secondaryColor;mt.primaryColor=t,mt.secondaryColor=n||ja(t),mt.calculated=!!n}function au(){return je({},mt)}var rn=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,c=t.secondaryColor,s=Ma(t,ru),l=d.useRef(),u=mt;if(i&&(u={primaryColor:i,secondaryColor:c||ja(i)}),nu(l),eu(lo(n),"icon should be icon definiton, but got ".concat(n)),!lo(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=je(je({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Jn(f.icon,"svg-".concat(f.name),je(je({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};rn.displayName="IconReact";rn.getTwoToneColors=au;rn.setTwoToneColors=ou;const br=rn;function Fa(e){var t=Da(e),n=_a(t,2),r=n[0],o=n[1];return br.setTwoToneColors({primaryColor:r,secondaryColor:o})}function iu(){var e=br.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var cu=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fa(bs.primary);var on=d.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,c=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=Ma(e,cu),f=d.useContext(ur),v=f.prefixCls,p=v===void 0?"anticon":v,b=f.rootClassName,m=Ce(b,p,(n={},Qn(n,"".concat(p,"-").concat(o.name),!!o.name),Qn(n,"".concat(p,"-spin"),!!a||o.name==="loading"),n),r),g=c;g===void 0&&s&&(g=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=Da(l),A=_a(y,2),w=A[0],O=A[1];return d.createElement("span",De({role:"img","aria-label":o.name},u,{ref:t,tabIndex:g,onClick:s,className:m}),d.createElement(br,{icon:o,primaryColor:w,secondaryColor:O,style:S}))});on.displayName="AntdIcon";on.getTwoToneColor=iu;on.setTwoToneColor=Fa;const Et=on;var Ha=function(t,n){return d.createElement(Et,De({},t,{ref:n,icon:Ml}))};process.env.NODE_ENV!=="production"&&(Ha.displayName="CheckCircleFilled");const su=d.forwardRef(Ha);var lu={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"};const uu=lu;var za=function(t,n){return d.createElement(Et,De({},t,{ref:n,icon:uu}))};process.env.NODE_ENV!=="production"&&(za.displayName="CloseCircleFilled");const fu=d.forwardRef(za);var du={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"};const vu=du;var Ba=function(t,n){return d.createElement(Et,De({},t,{ref:n,icon:vu}))};process.env.NODE_ENV!=="production"&&(Ba.displayName="CloseOutlined");const gu=d.forwardRef(Ba);var pu={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"};const mu=pu;var Wa=function(t,n){return d.createElement(Et,De({},t,{ref:n,icon:mu}))};process.env.NODE_ENV!=="production"&&(Wa.displayName="ExclamationCircleFilled");const hu=d.forwardRef(Wa);var bu={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"};const yu=bu;var Ua=function(t,n){return d.createElement(Et,De({},t,{ref:n,icon:yu}))};process.env.NODE_ENV!=="production"&&(Ua.displayName="InfoCircleFilled");const Su=d.forwardRef(Ua);var _={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=_.F1&&n<=_.F12)return!1;switch(n){case _.ALT:case _.CAPS_LOCK:case _.CONTEXT_MENU:case _.CTRL:case _.DOWN:case _.END:case _.ESC:case _.HOME:case _.INSERT:case _.LEFT:case _.MAC_FF_META:case _.META:case _.NUMLOCK:case _.NUM_CENTER:case _.PAGE_DOWN:case _.PAGE_UP:case _.PAUSE:case _.PRINT_SCREEN:case _.RIGHT:case _.SHIFT:case _.UP:case _.WIN_KEY:case _.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=_.ZERO&&t<=_.NINE||t>=_.NUM_ZERO&&t<=_.NUM_MULTIPLY||t>=_.A&&t<=_.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case _.SPACE:case _.QUESTION_MARK:case _.NUM_PLUS:case _.NUM_MINUS:case _.NUM_PERIOD:case _.NUM_DIVISION:case _.SEMICOLON:case _.DASH:case _.EQUALS:case _.COMMA:case _.PERIOD:case _.SLASH:case _.APOSTROPHE:case _.SINGLE_QUOTE:case _.OPEN_SQUARE_BRACKET:case _.BACKSLASH:case _.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Va=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,c=e.eventKey,s=e.content,l=e.closable,u=e.closeIcon,f=u===void 0?"x":u,v=e.props,p=e.onClick,b=e.onNoticeClose,m=e.times,g=e.hovering,S=d.useState(!1),y=z(S,2),A=y[0],w=y[1],O=g||A,C=function(){b(c)},h=function(E){(E.key==="Enter"||E.code==="Enter"||E.keyCode===_.ENTER)&&C()};d.useEffect(function(){if(!O&&i>0){var P=setTimeout(function(){C()},i*1e3);return function(){clearTimeout(P)}}},[i,O,m]);var x="".concat(n,"-notice");return d.createElement("div",Xe({},v,{ref:t,className:Ce(x,o,j({},"".concat(x,"-closable"),l)),style:r,onMouseEnter:function(E){var T;w(!0),v==null||(T=v.onMouseEnter)===null||T===void 0||T.call(v,E)},onMouseLeave:function(E){var T;w(!1),v==null||(T=v.onMouseLeave)===null||T===void 0||T.call(v,E)},onClick:p}),d.createElement("div",{className:"".concat(x,"-content")},s),l&&d.createElement("a",{tabIndex:0,className:"".concat(x,"-close"),onKeyDown:h,onClick:function(E){E.preventDefault(),E.stopPropagation(),C()}},f))}),Ga=I.createContext({}),Eu=function(t){var n=t.children,r=t.classNames;return I.createElement(Ga.Provider,{value:{classNames:r}},n)},fo=8,vo=3,go=16,Cu=function(t){var n={offset:fo,threshold:vo,gap:go};if(t&&X(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:fo,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:vo,n.gap=(a=t.gap)!==null&&a!==void 0?a:go}return[!!t,n]},xu=["className","style","classNames","styles"],Ka=function(t){var n,r=t.configList,o=t.placement,a=t.prefixCls,i=t.className,c=t.style,s=t.motion,l=t.onAllNoticeRemoved,u=t.onNoticeClose,f=t.stack,v=I.useContext(Ga),p=v.classNames,b=I.useRef({}),m=I.useState(null),g=z(m,2),S=g[0],y=g[1],A=I.useState([]),w=z(A,2),O=w[0],C=w[1],h=r.map(function(D){return{config:D,key:String(D.key)}}),x=Cu(f),P=z(x,2),E=P[0],T=P[1],M=T.offset,R=T.threshold,L=T.gap,k=E&&(O.length>0||h.length<=R),U=typeof s=="function"?s(o):s;return I.useEffect(function(){E&&O.length>1&&C(function(D){return D.filter(function(B){return h.some(function(W){var V=W.key;return B===V})})})},[O,h,E]),I.useEffect(function(){var D;if(E&&b.current[(D=h[h.length-1])===null||D===void 0?void 0:D.key]){var B;y(b.current[(B=h[h.length-1])===null||B===void 0?void 0:B.key])}},[h,E]),I.createElement(yl,Xe({key:o,className:Ce(a,"".concat(a,"-").concat(o),p==null?void 0:p.list,i,(n={},j(n,"".concat(a,"-stack"),!!E),j(n,"".concat(a,"-stack-expanded"),k),n)),style:c,keys:h,motionAppear:!0},U,{onAllRemoved:function(){l(o)}}),function(D,B){var W=D.config,V=D.className,ee=D.style,Y=D.index,ce=W,te=ce.key,ve=ce.times,ae=String(te),me=W,Fe=me.className,He=me.style,he=me.classNames,se=me.styles,ze=ht(me,xu),Oe=h.findIndex(function(Je){return Je.key===ae}),N={};if(E){var Z=h.length-1-(Oe>-1?Oe:Y-1),be=o==="top"||o==="bottom"?"-50%":"0";if(Z>0){var ge,Ne,Q;N.height=k?(ge=b.current[ae])===null||ge===void 0?void 0:ge.offsetHeight:S==null?void 0:S.offsetHeight;for(var K=0,G=0;G<Z;G++){var ie;K+=((ie=b.current[h[h.length-1-G].key])===null||ie===void 0?void 0:ie.offsetHeight)+L}var Ae=(k?K:Z*M)*(o.startsWith("top")?1:-1),an=!k&&S!==null&&S!==void 0&&S.offsetWidth&&(Ne=b.current[ae])!==null&&Ne!==void 0&&Ne.offsetWidth?((S==null?void 0:S.offsetWidth)-M*2*(Z<3?Z:3))/((Q=b.current[ae])===null||Q===void 0?void 0:Q.offsetWidth):1;N.transform="translate3d(".concat(be,", ").concat(Ae,"px, 0) scaleX(").concat(an,")")}else N.transform="translate3d(".concat(be,", 0, 0)")}return I.createElement("div",{ref:B,className:Ce("".concat(a,"-notice-wrapper"),V,he==null?void 0:he.wrapper),style:$($($({},ee),N),se==null?void 0:se.wrapper),onMouseEnter:function(){return C(function(_e){return _e.includes(ae)?_e:[].concat(de(_e),[ae])})},onMouseLeave:function(){return C(function(_e){return _e.filter(function(cn){return cn!==ae})})}},I.createElement(Va,Xe({},ze,{ref:function(_e){Oe>-1?b.current[ae]=_e:delete b.current[ae]},prefixCls:a,classNames:he,styles:se,className:Ce(Fe,p==null?void 0:p.notice),style:He,times:ve,key:te,eventKey:te,onNoticeClose:u,hovering:E&&O.length>0})))})};process.env.NODE_ENV!=="production"&&(Ka.displayName="NoticeList");var Xa=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,c=e.className,s=e.style,l=e.onAllRemoved,u=e.stack,f=e.renderNotifications,v=d.useState([]),p=z(v,2),b=p[0],m=p[1],g=function(P){var E,T=b.find(function(M){return M.key===P});T==null||(E=T.onClose)===null||E===void 0||E.call(T),m(function(M){return M.filter(function(R){return R.key!==P})})};d.useImperativeHandle(t,function(){return{open:function(P){m(function(E){var T=de(E),M=T.findIndex(function(k){return k.key===P.key}),R=$({},P);if(M>=0){var L;R.times=(((L=E[M])===null||L===void 0?void 0:L.times)||0)+1,T[M]=R}else R.times=0,T.push(R);return i>0&&T.length>i&&(T=T.slice(-i)),T})},close:function(P){g(P)},destroy:function(){m([])}}});var S=d.useState({}),y=z(S,2),A=y[0],w=y[1];d.useEffect(function(){var x={};b.forEach(function(P){var E=P.placement,T=E===void 0?"topRight":E;T&&(x[T]=x[T]||[],x[T].push(P))}),Object.keys(A).forEach(function(P){x[P]=x[P]||[]}),w(x)},[b]);var O=function(P){w(function(E){var T=$({},E),M=T[P]||[];return M.length||delete T[P],T})},C=d.useRef(!1);if(d.useEffect(function(){Object.keys(A).length>0?C.current=!0:C.current&&(l==null||l(),C.current=!1)},[A]),!o)return null;var h=Object.keys(A);return er.createPortal(d.createElement(d.Fragment,null,h.map(function(x){var P=A[x],E=d.createElement(Ka,{key:x,configList:P,placement:x,prefixCls:r,className:c==null?void 0:c(x),style:s==null?void 0:s(x),motion:a,onNoticeClose:g,onAllNoticeRemoved:O,stack:u});return f?f(E,{prefixCls:r,key:x}):E})),o)});process.env.NODE_ENV!=="production"&&(Xa.displayName="Notifications");var Ou=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Tu=function(){return document.body},po=0;function wu(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var i=o[a];i!==void 0&&(e[a]=i)})}),e}function Pu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Tu:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,c=e.style,s=e.onAllRemoved,l=e.stack,u=e.renderNotifications,f=ht(e,Ou),v=d.useState(),p=z(v,2),b=p[0],m=p[1],g=d.useRef(),S=d.createElement(Xa,{container:b,ref:g,prefixCls:o,motion:r,maxCount:a,className:i,style:c,onAllRemoved:s,stack:l,renderNotifications:u}),y=d.useState([]),A=z(y,2),w=A[0],O=A[1],C=d.useMemo(function(){return{open:function(x){var P=wu(f,x);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(po),po+=1),O(function(E){return[].concat(de(E),[{type:"open",config:P}])})},close:function(x){O(function(P){return[].concat(de(P),[{type:"close",key:x}])})},destroy:function(){O(function(x){return[].concat(de(x),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){m(n())}),d.useEffect(function(){g.current&&w.length&&(w.forEach(function(h){switch(h.type){case"open":g.current.open(h.config);break;case"close":g.current.close(h.key);break;case"destroy":g.current.destroy();break}}),O(function(h){return h.filter(function(x){return!w.includes(x)})}))},[w]),[C,S]}var Ct=$({},di),Nu=Ct.version,Au=Ct.render;Ct.unmountComponentAtNode;var yr;try{var _u=Number((Nu||"").split(".")[0]);_u>=18&&(yr=Ct.createRoot)}catch{}function mo(e){var t=Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&X(t)==="object"&&(t.usingClientEntryPoint=e)}var ho="__rc_react_root__";function Mu(e,t){mo(!0);var n=t[ho]||yr(t);mo(!1),n.render(e),t[ho]=n}function Ru(e,t){Au(e,t)}function ku(e,t){if(yr){Mu(e,t);return}Ru(e,t)}const Iu=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new gt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new gt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),c=new gt("antNotificationBottomFadeIn",{"0%":{bottom:-r,opacity:0},"100%":{bottom:0,opacity:1}}),s=new gt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},$u=Iu,Lu=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],ju={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Du=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[ju[t]]:{value:0,_skip_check_:!0}}}}},Fu=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Hu=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},zu=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Fu(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Hu(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,width:e.width,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:-e.margin,background:"transparent",pointerEvents:"auto"}}}},Lu.map(n=>Du(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Bu=zu,Wu=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:c,colorInfo:s,colorWarning:l,colorError:u,colorTextHeading:f,notificationBg:v,notificationPadding:p,notificationMarginEdge:b,motionDurationMid:m,motionEaseInOut:g,fontSize:S,lineHeight:y,width:A,notificationIconSize:w,colorText:O}=e,C=`${n}-notice`,h=new gt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),x={position:"relative",width:A,maxWidth:`calc(100vw - ${b*2}px)`,marginBottom:a,marginInlineStart:"auto",background:v,borderRadius:i,boxShadow:r,[C]:{padding:p,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:S,cursor:"pointer"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:S,color:O},[`&${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+w,fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.marginSM+w,fontSize:S},[`${C}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${t}`]:{color:c},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:l},[`&-error${t}`]:{color:u}},[`${C}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign({},Ws(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:b,_skip_check_:!0},[`${n}-hook-holder`]:{position:"relative"},[`${n}-fade-appear-prepare`]:{opacity:"0 !important"},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:h,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${C}-btn`]:{float:"left"}}})},{[n]:{[`${C}-wrapper`]:Object.assign({},x)}},{[`${C}-pure-panel`]:Object.assign(Object.assign({},x),{margin:0})}]},Ya=Qs("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=Un(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3});return[Wu(r),$u(r),Bu(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));var Uu=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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};function Sr(e,t){return t===null||t===!1?null:t||d.createElement("span",{className:`${e}-close-x`},d.createElement(gu,{className:`${e}-close-icon`}))}const Vu={success:su,info:Su,error:fu,warning:hu},Qa=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:c="alert"}=e;let s=null;return n?s=d.createElement("span",{className:`${t}-icon`},n):r&&(s=d.createElement(Vu[r]||null,{className:Ce(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:Ce({[`${t}-with-icon`]:s}),role:c},s,d.createElement("div",{className:`${t}-message`},o),d.createElement("div",{className:`${t}-description`},a),i&&d.createElement("div",{className:`${t}-btn`},i))},Gu=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:c,closable:s=!0,closeIcon:l}=e,u=Uu(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:f}=d.useContext(ut),v=t||f("notification"),p=`${v}-notice`,[,b]=Ya(v);return d.createElement("div",{className:Ce(`${p}-pure-panel`,b,n)},d.createElement(Va,Object.assign({},u,{prefixCls:v,eventKey:"pure",duration:null,closable:s,closeIcon:Sr(v,l),content:d.createElement(Qa,{prefixCls:p,icon:r,type:o,message:a,description:i,btn:c})})))},Ku=Gu;function Xu(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Yu(e){return{motionName:`${e}-fade`}}var Qu=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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};const bo=24,qu=4.5,Zu="topRight",Ju=e=>{let{children:t,prefixCls:n}=e;const[,r]=Ya(n);return d.createElement(Eu,{classNames:{list:r,notice:r}},t)},ef=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(Ju,{prefixCls:n,key:r},e)},tf=d.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:c,onAllRemoved:s,stack:l}=e,{getPrefixCls:u,getPopupContainer:f,notification:v}=d.useContext(ut),[,p]=tn(),b=o||u("notification"),m=w=>Xu(w,n??bo,r??bo),g=()=>Ce({[`${b}-rtl`]:c}),S=()=>Yu(b),[y,A]=Pu({prefixCls:b,style:m,className:g,motion:S,closable:!0,closeIcon:Sr(b),duration:qu,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:s,renderNotifications:ef,stack:l===!1?!1:{threshold:typeof l=="object"?l==null?void 0:l.threshold:void 0,offset:8,gap:p.margin}});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},y),{prefixCls:b,notification:v})),A});function qa(e){const t=d.useRef(null),n=dr("Notification");return[d.useMemo(()=>{const o=s=>{var l;if(!t.current){process.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:u,prefixCls:f,notification:v}=t.current,p=`${f}-notice`,{message:b,description:m,icon:g,type:S,btn:y,className:A,style:w,role:O="alert",closeIcon:C}=s,h=Qu(s,["message","description","icon","type","btn","className","style","role","closeIcon"]),x=Sr(p,C);return u(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:Zu},h),{content:d.createElement(Qa,{prefixCls:p,icon:g,type:S,message:b,description:m,btn:y,role:O}),className:Ce(S&&`${p}-${S}`,A,v==null?void 0:v.className),style:Object.assign(Object.assign({},v==null?void 0:v.style),w),closeIcon:x,closable:!!x}))},i={open:o,destroy:s=>{var l,u;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{i[s]=l=>o(Object.assign(Object.assign({},l),{type:s}))}),i},[]),d.createElement(tf,Object.assign({key:"notification-holder"},e,{ref:t}))]}function nf(e){return qa(e)}let Ee=null,Wt=e=>e(),Xt=[],Yt={};function yo(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:a}=Yt,i=e??Aa().getPrefixCls("notification"),c=(t==null?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>c,rtl:n,maxCount:r,top:o,bottom:a}}const rf=d.forwardRef((e,t)=>{const[n,r]=d.useState(yo),[o,a]=qa(n),i=Aa(),c=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),u=()=>{r(yo)};return d.useEffect(u,[]),d.useImperativeHandle(t,()=>{const f=Object.assign({},o);return Object.keys(f).forEach(v=>{f[v]=function(){return u(),o[v].apply(o,arguments)}}),{instance:f,sync:u}}),d.createElement(Ze,{prefixCls:c,iconPrefixCls:s,theme:l},a)});function Er(){if(!Ee){const e=document.createDocumentFragment(),t={fragment:e};Ee=t,Wt(()=>{ku(d.createElement(rf,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Er())})}}),e)});return}Ee.instance&&(Xt.forEach(e=>{switch(e.type){case"open":{Wt(()=>{Ee.instance.open(Object.assign(Object.assign({},Yt),e.config))});break}case"destroy":Wt(()=>{Ee==null||Ee.instance.destroy(e.key)});break}}),Xt=[])}function of(e){Yt=Object.assign(Object.assign({},Yt),e),Wt(()=>{var t;(t=Ee==null?void 0:Ee.sync)===null||t===void 0||t.call(Ee)})}function Za(e){process.env.NODE_ENV!=="production"&&xl("notification"),Xt.push({type:"open",config:e}),Er()}function af(e){Xt.push({type:"destroy",key:e}),Er()}const cf=["success","info","warning","error"],sf={open:Za,destroy:af,config:of,useNotification:nf,_InternalPanelDoNotUseOrYouWillBeFired:Ku},Ja=sf;cf.forEach(e=>{Ja[e]=t=>Za(Object.assign(Object.assign({},t),{type:e}))});process.env.NODE_ENV;const lf=Ja;exports.notification=lf;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC"}
|