PageSourceSearch

https://weresocialsavvy.com/wp-content/plugins/website-accessibili…/index.js?ver=bc30d91264c1e27ede9c

js weresocialsavvy.com collected 2026-10-06 16:51:06 UTC 1,088,986 bytes, 2 lines download raw bytes

1(()=>{var e={965(e,t,n){"use strict";var o=n(426),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,c,d=!1;t||(t={}),n=t.debug||!1;try{if(a=o(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))}),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return d}},799(e,t){"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case d:case m:case f:case l:return e;default:return t}}case o:return t}}}(e)===f}},363(e,t,n){"use strict";e.exports=n(799)},426(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}
1),t&&t.focus()}}},942(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}};const t={};function n(o){const r=t[o];if(void 0!==r)return r.exports;const i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],i=t[o++];n.o(e,r)?0===i&&o++:0===i?Object.defineProperty(e,r,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,r,{enumerable:!0,get:i})}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.hasOwn(e,t),n.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{accessibility1:()=>o,accessibility2:()=>r,accessibility3:()=>i,accessibility4:()=>a,accessibility5:()=>l});const t=window.ReactJSXRuntime,o=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:(0,t.jsx)("path",{d:"M24.0557 37.04C24.4857 40.37 25.3357 43.4902 26.5557 46.1602H21.5557C22.7757 43.4902 23.6257 40.37 24.0557 37.04ZM31.3262 2C32.0661 2.00014 32.7257 2.46026 32.9756 3.16016L46.0459 43.8096L46.0362 43.7803C46.4459 44.9202 45.5957 46.1299 44.3858 46.1299H31.9659C31.9459 46.0799 31.9255 46.0402 31.8955 45.9902C30.0356 42.8902 28.8257 38.45 28.5957 33.79C28.5157 32.02 28.5561 30.2698 28.7461 28.5898C31.026 28.2898 33.1961 27.7602 35.1661 27.0303C36.4159 26.5703 37.0457 25.1903 36.586 23.9404C36.126 22.6906 34.746 22.0598 33.4961 22.5195C30.6961 23.5595 27.3658 24.1104 23.8858 24.1104C20.4058 24.1103 17.156 23.5696 14.376 22.5596C13.1261 22.1096 11.7462 22.7501 11.2862 24C10.8362 25.2499 11.4758 26.6297 12.7256 27.0898C14.7556 27.8298 17.016 28.3504 19.376 28.6504C19.556 30.3201 19.6056 32.0499 19.5157 33.8096C19.2857 38.4695 18.0758 42.9098 16.2159 46.0098L16.1455 46.1504H3.7559C2.55594 46.1504 1.70583 44.97 2.09574 43.8301L14.5362 3.19043C14.7762 2.48043 15.4463 2 16.1963 2H31.3262ZM27.7559 18.3301C27.5559 16.3001 25.7458 14.8196 23.7159 15.0195C21.686 15.2195 20.2065 17.0297 20.4063 19.0596C20.6063 21.0896 22.4163 22.5701 24.4463 22.3701C26.4761 22.1699 27.9558 20.3599 27.7559 18.3301Z",fill:"black"})}),r=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,t.jsxs)("g",{id:"Layer_2","data-name":"Layer 2",children:[(0,t.jsx)("g",{id:"invisible_box","data-name":"invisible box",children:(0,t.jsx)("rect",{width:"48",height:"48",fill:"none"})}),(0,t.jsx)("g",{id:"icons_Q2","data-name":"icons Q2",children:(0,t.jsx)("path",{d:"M24,2A22,22,0,1,0,46,24,21.9,21.9,0,0,0,24,2Zm0,8a3,3,0,1,1-3,3A2.9,2.9,0,0,1,24,10ZM35,21H28v4.8l2,9.8A2.1,2.1,0,0,1,28.4,38H28a2.1,2.1,0,0,1-2-1.6L24.2,27h-.4L22,36.4A2.1,2.1,0,0,1,20,38h-.4A2.1,2.1,0,0,1,18,35.6l2-9.8V21H13a2,2,0,0,1,0-4H35a2,2,0,0,1,0,4Z"})})]})}),i=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,t.jsxs)("g",{id:"Layer_2","data-name":"Layer 2",children:[(0,t.jsx)("g",{id:"invisible_box","data-name":"invisible box",children:(0,t.jsx)("rect",{width:"48",height:"48",fill:"none"})}),(0,t.jsx)("g",{id:"Layer_6","data-name":"Layer 6",children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M24,2A22,22,0,1,0,46,24,21.9,21.9,0,0,0,24,2Zm0,40A18,18,0,1,1,42,24,18.1,18.1,0,0,1,24,42Z"}),(0,t.jsx)("circle",{cx:"24",cy:"13",r:"3"}),(0,t.jsx)("path",{d:"M35,17H13a2,2,0,0,0,0,4h7v4.8l-2,9.8A2.1,2.1,0,0,0,19.6,38H20a2.1,2.1,0,0,0,2-1.6L23.8,27h.4L26,36.4A2.1,2.1,0,0,0,28,38h.4A2.1,2.1,0,0,0,30,35.6l-2-9.8V21h7a2,2,0,0,0,0-4Z"})]})})]})}),a=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{cx:"18",cy:"4",r:"2"}),(0,t.jsx)("path",{d:"m17.836 12.014-4.345.725 3.29-4.113a1 1 0 0 0-.227-1.457l-6-4a.999.999 0 0 0-1.262.125l-4 4 1.414 1.414 3.42-3.42 2.584 1.723-2.681 3.352a5.913 5.913 0 0 0-5.5.752l1.451 1.451A3.972 3.972 0 0 1 8 12c2.206 0 4 1.794 4 4 0 .739-.216 1.425-.566 2.02l1.451 1.451A5.961 5.961 0 0 0 14 16c0-.445-.053-.878-.145-1.295L17 14.181V20h2v-7a.998.998 0 0 0-1.164-.986zM8 20c-2.206 0-4-1.794-4-4 0-.739.216-1.425.566-2.02l-1.451-1.451A5.961 5.961 0 0 0 2 16c0 3.309 2.691 6 6 6 1.294 0 2.49-.416 3.471-1.115l-1.451-1.451A3.972 3.972 0 0 1 8 20z"})]}),l=(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM9.25 3.75C9.25 4.44036 8.69036 5 8 5C7.30964 5 6.75 4.44036 6.75 3.75C6.75 3.05964 7.30964 2.5 8 2.5C8.69036 2.5 9.25 3.05964 9.25 3.75ZM12 8H9.41901L11.2047 13H9.081L8 9.97321L6.91901 13H4.79528L6.581 8H4V6H12V8Z",fill:"#000000"})}),s=window.wp.element;function c(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=c(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const d=function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=c(e))&&(o&&(o+=" "),o+=t);return o},u=window.wp.i18n;function p(e,t="block"){return"inline"===e?"inline":"default"===e||"block"===e?"block":t}const f=({profile:e,isActive:n,handleClick:o,hideItemIcons:r,hideItemLabels:i,layout:a})=>
1{const l=(0,s.useRef)(null),[c,u]=(0,s.useState)("0px");return(0,t.jsxs)("div",{className:d("wap-accessibility-profiles__item",`wap-accessibility-profiles__item--${a}`,{"wap-accessibility-profiles__item--active":n}),onClick:()=>o(e),onMouseEnter:()=>{const e=l.current;if(!e)return;const t=e.querySelector(".wap-accessibility-profiles__item-label-text");if(!t)return;const n=t.scrollWidth-e.clientWidth;u(n>0?`${n}px`:"0px")},onMouseLeave:()=>u("0px"),style:{cursor:"pointer",position:"relative"},children:[!r&&e.icon&&(0,t.jsx)("span",{className:"wap-accessibility-profiles__item-icon",children:e.icon}),!i&&(0,t.jsx)("div",{ref:l,className:d("wap-accessibility-profiles__item-label",`wap-accessibility-profiles__item-label--${a}`,{"wap-accessibility-profiles__item-label--can-scroll":"0px"!==c}),style:{"--wap-label-shift":c},children:(0,t.jsx)("span",{className:"wap-accessibility-profiles__item-label-text",title:e.name,children:e.name})})]})},m=({profiles:e,currentProfile:n,handleClick:o,hideItemIcons:r,hideItemLabels:i,layout:a,profileColumnWidth:l})=>{const{WapRow:s,WapCol:c}=window?.wapComponents;return(0,t.jsx)(s,{gutter:[10,10],className:"wap-accessibility-profiles__grid",children:e.map(e=>{const s=String(n?.id)===String(e.id);return(0,t.jsx)(c,{xs:24,sm:12,md:24,lg:24,xl:24,flex:`0 0 ${l}`,style:{maxWidth:l},children:(0,t.jsx)(f,{profile:e,isActive:s,handleClick:o,hideItemIcons:r,hideItemLabels:i,layout:a})},e.id)})})};function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},g.apply(null,arguments)}const h=window.React;var v=n.n(h);const b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};function y(e){if(Array.isArray(e))return e}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(e,t){return y(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||x(e,t)||w()}function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function E(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}function k(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var I=n(942),N=n.n(I);const j=Math.round;function M(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(e=>parseFloat(e));for(let e=0;e<3;
vendor: 4,305 bytes, line 1
1e+=1)o[e]=t(o[e]||0,n[e]||"",e);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const P=(e,t,n)=>0===n?e:e/100;function R(e,t){const n=t||255;return e>n?n:e<0?0:e}class L{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(k(this,"isValid",!0),k(this,"r",0),k(this,"g",0),k(this,"b",0),k(this,"a",1),k(this,"_h",void 0),k(this,"_s",void 0),k(this,"_l",void 0),k(this,"_v",void 0),k(this,"_max",void 0),k(this,"_min",void 0),k(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function o(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(e instanceof L)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=R(e.r),this.g=R(e.g),this.b=R(e.b),this.a="number"==typeof e.a?R(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:j(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e,t=50){const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],i={r:j(r("r")),g:j(r("g")),b:j(r("b")),a:j(100*r("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>j((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=j(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=j(100*this.getSaturation()),n=j(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=R(t,n),o}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:o}
1){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof o?o:1,t<=0){const e=j(255*n);this.r=e,this.g=e,this.b=e}let r=0,i=0,a=0;const l=e/60,s=(1-Math.abs(2*n-1))*t,c=s*(1-Math.abs(l%2-1));l>=0&&l<1?(r=s,i=c):l>=1&&l<2?(r=c,i=s):l>=2&&l<3?(i=s,a=c):l>=3&&l<4?(i=c,a=s):l>=4&&l<5?(r=c,a=s):l>=5&&l<6&&(r=s,a=c);const d=n-s/2;this.r=j(255*(r+d)),this.g=j(255*(i+d)),this.b=j(255*(a+d))}fromHsv({h:e,s:t,v:n,a:o}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof o?o:1;const r=j(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,s=j(n*(1-t)*255),c=j(n*(1-t*l)*255),d=j(n*(1-t*(1-l))*255);switch(a){case 0:this.g=d,this.b=s;break;case 1:this.r=c,this.b=s;break;case 2:this.r=s,this.b=d;break;case 3:this.r=s,this.g=c;break;case 4:this.r=d,this.g=s;break;default:this.g=s,this.b=c}}fromHsvString(e){const t=M(e,P);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=M(e,P);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=M(e,(e,t)=>t.includes("%")?j(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var T=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function z(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function B(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(100*o)/100);var o}function H(e,t,n){var o;return o=n?e.v+.05*t:e.v-.15*t,o=Math.max(0,Math.min(1,o)),Math.round(100*o)/100}function _(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=new L(e),r=o.toHsv(),i=5;i>0;i-=1){var a=new L({h:z(r,i,!0),s:B(r,i,!0),v:H(r,i,!0)});n.push(a)}n.push(o);for(var l=1;l<=4;l+=1){var s=new L({h:z(r,l),s:B(r,l),v:H(r,l)});n.push(s)}return"dark"===t.theme?T.map(function(e){var o=e.index,r=e.amount;return new L(t.backgroundColor||"#141414").mix(n[o],r).toHexString()}):n.map(function(e){return e.toHexString()})}var A={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"},D=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];D.primary=D[5];var F=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];F.primary=F[5];var W=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];W.primary=W[5];var K=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];K.primary=K[5];var V=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];V.primary=V[5];var q=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];q.primary=q[5];var G=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];G.primary=G[5];var X=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];X.primary=X[5];var U=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];U.primary=U[5];var Z=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Z.primary=Z[5];var Y=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Y.primary=Y[5];var Q=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Q.primary=Q[5];var J=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];J.primary=J[5];var ee={red:D,volcano:F,orange:W,gold:K,yellow:V,lime:q,green:G,cyan:X,blue:U,geekblue:Z,purple:Y,magenta:Q,grey:J},te=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];te.primary=te[5];var ne=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ne.primary=ne[5];var oe=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];oe.primary=oe[5];var re=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];re.primary=re[5];var ie=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];ie.primary=ie[5];var ae=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];ae.primary=ae[5];var le=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];le.primary=le[5];var se=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];se.primary=se[5];var ce=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3
1c89e8","#65a9f3","#8dc5f8","#b7dcfa"];ce.primary=ce[5];var de=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];de.primary=de[5];var ue=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];ue.primary=ue[5];var pe=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];pe.primary=pe[5];var fe=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];fe.primary=fe[5];const me=(0,h.createContext)({});function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function be(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 ye="data-rc-order",Ce="data-rc-priority",xe=new Map;function we(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function $e(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Se(e){return Array.from((xe.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ve())return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),l="prependQueue"===a,s=document.createElement("style");s.setAttribute(ye,a),l&&i&&s.setAttribute(Ce,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=$e(t),d=c.firstChild;if(o){if(l){var u=(t.styles||Se(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ye)))return!1;var t=Number(e.getAttribute(Ce)||0);return i>=t});if(u.length)return c.insertBefore(s,u[u.length-1].nextSibling),s}c.insertBefore(s,d)}else c.appendChild(s);return s}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=$e(t);return(t.styles||Se(n)).find(function(n){return n.getAttribute(we(t))===e})}function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ke(e,t);n&&$e(t).removeChild(n)}function Ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=$e(n),r=Se(o),i=he(he({},n),{},{styles:r});!function(e,t){var n=xe.get(e);if(!n||!be(document,n)){var o=Ee("",t),r=o.parentNode;xe.set(e,r),e.removeChild(o)}}(o,i);var a,l,s,c=ke(t,i);if(c)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce)&&(c.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var d=Ee(e,i);return d.setAttribute(we(i),t),d}function Ne(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function je(e){return function(e){return Ne(e)instanceof ShadowRoot}(e)?Ne(e):null}var Me={},Pe=[];function Re(e,t){}function Le(e,t){}function Te(e,t,n){t||Me[n]||(e(!1,n),Me[n]=!0)}function ze(e,t){Te(Re,e,t)}ze.preMessage=function(e){Pe.push(e)},ze.resetWarned=function(){Me={}},ze.noteOnce=function(e,t){Te(Le,e,t)};const Be=ze;function He(e){return"object"===S(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===S(e.icon)||"function"==typeof e.icon)}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[function(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}(n)]=o),t},{})}function Ae(e,t,n){return n?v().createElement(e.tag,he(he({key:t},_e(e.attrs)),n),(e.children||[]).map(function(n,o){return Ae(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):v().createElement(e.tag,he({key:t},_e(e.attrs)),(e.children||[]).map(function(n,o){return Ae(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function De(e){return _(e)[0]}function Fe(e){return e?Array.isArray(e)?e:[e]:[]}var We=["icon","className","onClick","style","primaryColor","secondaryColor"],Ke={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},Ve=function(e){var t,n,o,r,i,a,l=e.icon,s=e.className,c=e.onClick,d=e.style,u=e.primaryColor,p=e.secondaryColor,f=O(e,We),m=h.useRef(),g=Ke;if(u&&(g={primaryColor:u,secondaryColor:p||De(u)}),t=m,n=(0,h.useContext)(me),o=n.csp,r=n.prefixCls,i=n.layer,a="\n.anticon {\n  display: inline-flex;\n  align-items: center;
1\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n",r&&(a=a.replace(/anticon/g,r)),i&&(a="@layer ".concat(i," {\n").concat(a,"\n}")),(0,h.useEffect)(function(){var e=je(t.current);Ie(a,"@ant-design-icons",{prepend:!i,csp:o,attachTo:e})},[]),function(e,t){Be(e,"[@ant-design/icons] ".concat(t))}(He(l),"icon should be icon definiton, but got ".concat(l)),!He(l))return null;var v=l;return v&&"function"==typeof v.icon&&(v=he(he({},v),{},{icon:v.icon(g.primaryColor,g.secondaryColor)})),Ae(v.icon,"svg-".concat(v.name),he(he({className:s,onClick:c,style:d,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:m}))};Ve.displayName="IconReact",Ve.getTwoToneColors=function(){return he({},Ke)},Ve.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ke.primaryColor=t,Ke.secondaryColor=n||De(t),Ke.calculated=!!n};const qe=Ve;function Ge(e){var t=$(Fe(e),2),n=t[0],o=t[1];return qe.setTwoToneColors({primaryColor:n,secondaryColor:o})}var Xe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ge(U.primary);var Ue=h.forwardRef(function(e,t){var n=e.className,o=e.icon,r=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=O(e,Xe),d=h.useContext(me),u=d.prefixCls,p=void 0===u?"anticon":u,f=d.rootClassName,m=N()(f,p,k(k({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!r||"loading"===o.name),n),v=a;void 0===v&&l&&(v=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=$(Fe(s),2),C=y[0],x=y[1];return h.createElement("span",g({role:"img","aria-label":o.name},c,{ref:t,tabIndex:v,onClick:l,className:m}),h.createElement(qe,{icon:o,primaryColor:C,secondaryColor:x,style:b}))});Ue.displayName="AntdIcon",Ue.getTwoToneColor=function(){var e=qe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ue.setTwoToneColor=Ge;const Ze=Ue;var Ye=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:b}))};const Qe=h.forwardRef(Ye),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var et=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Je}))};const tt=h.forwardRef(et),nt=window.wp.apiFetch;var ot=n.n(nt);const rt=()=>(0,t.jsx)("svg",{className:"wap-panel-customization__header-icon",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M24.0557 37.04C24.4857 40.37 25.3357 43.4902 26.5557 46.1602H21.5557C22.7757 43.4902 23.6257 40.37 24.0557 37.04ZM31.3262 2C32.066 2.00014 32.7256 2.46026 32.9756 3.16016L46.0459 43.8096L46.0361 43.7803C46.4458 44.9202 45.5956 46.1299 44.3857 46.1299H31.9658C31.9458 46.0799 31.9255 46.0402 31.8955 45.9902C30.0355 42.8902 28.8257 38.45 28.5957 33.79C28.5157 32.02 28.5561 30.2698 28.7461 28.5898C31.026 28.2898 33.1961 27.7602 35.166 27.0303C36.4158 26.5703 37.0456 25.1903 36.5859 23.9404C36.126 22.6906 34.746 22.0598 33.4961 22.5195C30.6961 23.5595 27.3657 24.1104 23.8857 24.1104C20.4058 24.1103 17.156 23.5696 14.376 22.5596C13.126 22.1096 11.7462 22.7501 11.2861 24C10.8362 25.2499 11.4758 26.6297 12.7256 27.0898C14.7556 27.8298 17.016 28.3504 19.376 28.6504C19.5559 30.3201 19.6056 32.0499 19.5156 33.8096C19.2856 38.4695 18.0758 42.9098 16.2158 46.0098L16.1455 46.1504H3.75586C2.5559 46.1504 1.70579 44.97 2.0957 43.8301L14.5361 3.19043C14.7761 2.48043 15.4463 2 16.1963 2H31.3262ZM27.7559 18.3301C27.5559 16.3001 25.7458 14.8196 23.7158 15.0195C21.6859 15.2195 20.2065 17.0297 20.4062 19.0596C20.6063 21.0896 22.4163 22.5701 24.4463 22.3701C26.476 22.1699 27.9558 20.3599 27.7559 18.3301Z",fill:"#ffffff"})}),it=()=>(0,t.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,
1children:[(0,t.jsx)("path",{d:"M24.0557 37.04C24.4857 40.37 25.3357 43.4902 26.5557 46.1602H21.5557C22.7757 43.4902 23.6257 40.37 24.0557 37.04ZM31.3262 2C32.066 2.00014 32.7256 2.46026 32.9756 3.16016L46.0459 43.8096L46.0361 43.7803C46.4458 44.9202 45.5956 46.1299 44.3857 46.1299H31.9658C31.9458 46.0799 31.9255 46.0402 31.8955 45.9902C30.0355 42.8902 28.8257 38.45 28.5957 33.79C28.5157 32.02 28.5561 30.2698 28.7461 28.5898C31.026 28.2898 33.1961 27.7602 35.166 27.0303C36.4158 26.5703 37.0456 25.1903 36.5859 23.9404C36.126 22.6906 34.746 22.0598 33.4961 22.5195C30.6961 23.5595 27.3657 24.1104 23.8857 24.1104C20.4058 24.1103 17.156 23.5696 14.376 22.5596C13.126 22.1096 11.7462 22.7501 11.2861 24C10.8362 25.2499 11.4758 26.6297 12.7256 27.0898C14.7556 27.8298 17.016 28.3504 19.376 28.6504C19.5559 30.3201 19.6056 32.0499 19.5156 33.8096C19.2856 38.4695 18.0758 42.9098 16.2158 46.0098L16.1455 46.1504H3.75586C2.5559 46.1504 1.70579 44.97 2.0957 43.8301L14.5361 3.19043C14.7761 2.48043 15.4463 2 16.1963 2H31.3262ZM27.7559 18.3301C27.5559 16.3001 25.7458 14.8196 23.7158 15.0195C21.6859 15.2195 20.2065 17.0297 20.4062 19.0596C20.6063 21.0896 22.4163 22.5701 24.4463 22.3701C26.476 22.1699 27.9558 20.3599 27.7559 18.3301Z",fill:"url(#paint0_linear_wl_panel_footer)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_wl_panel_footer",x1:"13",y1:"3",x2:"43",y2:"44.5",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#007BFF"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#005A9C"})]})})]}),at=({variant:e="header",className:n=""})=>{const{header:o,footer:r}=function(){const[e,t]=(0,s.useState)(0);return(0,s.useEffect)(()=>{const e=()=>t(e=>e+1);return window.addEventListener("websac-white-label-changed",e),()=>window.removeEventListener("websac-white-label-changed",e)},[]),(0,s.useMemo)(()=>function(){if("undefined"==typeof window)return{header:"",footer:""};const e=window.websiteAccessibility?.whiteLabelBoot||window.websacAdmin?.whiteLabelBoot||null;return(window.websiteAccessibility?.whiteLabelEnabled??e?.enabled)&&e&&"object"==typeof e?{header:"string"==typeof e.panel_header_icon?e.panel_header_icon.trim():"",footer:"string"==typeof e.panel_footer_icon?e.panel_footer_icon.trim():""}:{header:"",footer:""}}(),[e])}(),i="footer"===e?r:o;if(i){const o="footer"===e?`wap-panel-footer__brand-logo wap-panel-footer__brand-logo--custom ${n}`.trim():`wap-panel-customization__header-icon wap-panel-customization__header-icon--custom ${n}`.trim();return(0,t.jsx)("img",{src:i,alt:"",className:o})}return"footer"===e?(0,t.jsx)("span",{className:`wap-panel-footer__brand-logo ${n}`.trim(),children:(0,t.jsx)(it,{})}):(0,t.jsx)(rt,{})},lt=(e,t=1e3)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e(...o),t)}},st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var ct=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:st}))};const dt=h.forwardRef(ct),ut={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var pt=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:ut}))};
1const ft=h.forwardRef(pt),mt=[{slug:"text",title:(0,u.__)("Text","website-accessibility"),keys:["biggerText","textSpacing","lineHeight","textAlign","dyslexiaFriendly","dictionary"]},{slug:"color",title:(0,u.__)("Color & Contrast","website-accessibility"),keys:["contrast","smartContrast","brightness","grayscale","saturation","highlightLinks","hideImages"]},{slug:"orientation",title:(0,u.__)("Orientation","website-accessibility"),keys:["cursor","tooltips"]},{slug:"behavior",title:(0,u.__)("Behavior","website-accessibility"),keys:["pauseAnimations","muteSounds","screenReader"]}],gt=e=>e&&"object"==typeof e?{...e,active:void 0===e.active||!!e.active}:{active:!!e};function ht({feature:e,attributes:n,layout:o,tooltipPosition:r,featureColumnWidth:i,isProActive:a,currentSettings:l,handleFeatureClick:c}){const{WapCol:p,WapBadge:f,WapTooltip:m}=window?.wapComponents||{},g=e.key,h=l?.[g]||{},v=h.currentStep||0,b=h.currentAttribute,y=e.attributes||[],C=v>0,x=v>0&&"enable"!==y[0]?.value,w=y.length,$=e?.isDummy||!1,S=(0,s.useRef)(null),[E,k]=(0,s.useState)("0px"),O=C&&x&&b?b?.name??"":e?.label??"";(0,s.useLayoutEffect)(()=>{k("0px")},[O]);const I=(0,s.useCallback)(()=>{const e=S.current;if(!e)return;const t=e.querySelector(".wap-widget-features__feature-label-text");if(!t)return;const n=t.scrollWidth-e.clientWidth;k(n>0?`${n}px`:"0px")},[]),N=(0,s.useCallback)(()=>k("0px"),[]);return(0,t.jsxs)(p,{className:d(`wap-feature-${g}`,"wap-widget-features__item-wrap",`wap-widget-features__item-wrap--${o}`,{"wap-feature--active":C}),xs:24,sm:12,md:24,lg:24,xl:24,flex:`0 0 ${i}`,style:{maxWidth:i},children:[$&&!a&&(0,t.jsx)(f,{count:(0,u.__)("PRO","website-accessibility"),color:"gold",className:"wap-widget-features-dummy"}),e?.description&&(0,t.jsx)(m,{title:e?.description,placement:"top",autoAdjustOverflow:!1,getPopupContainer:()=>document.body,mouseEnterDelay:0,styles:{root:{zIndex:9999999999}},children:(0,t.jsx)(ft,{className:d("wap-widget-features__feature-tooltip",`wap-widget-features__feature-tooltip--${r}`)})}),(0,t.jsxs)("div",{className:d("wap-widget-features__feature-btn",{"wap-widget-features__feature-btn--active":C}),onClick:()=>c(e),onMouseEnter:I,onMouseLeave:N,style:{cursor:"pointer"},"aria-label":b?.description||e?.description,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||c(e)},children:[!n?.hideItemIcons&&(0,t.jsx)("span",{className:"wap-widget-features__feature-icon",children:e.icon}),!n?.hideItemLabels&&""!==O&&(0,t.jsx)("div",{ref:S,className:d("wap-widget-features__feature-label",`wap-widget-features__feature-label--${o}
1`,{"wap-widget-features__feature-label--can-scroll":"0px"!==E}),style:{"--wap-label-shift":E},children:(0,t.jsx)("span",{className:"wap-widget-features__feature-label-text",title:O,children:O})})]}),x&&C&&b&&(0,t.jsx)("span",{className:"wap-widget-features-bottom-indicator wap-widget-features-bottom-indicator--active",children:(0,t.jsx)("span",{className:"wap-widget-features-bottom-indicator__step",children:[...Array(w).keys()].map(e=>(0,t.jsx)("span",{className:d("wap-widget-features-bottom-indicator__step-item",{"wap-widget-features-bottom-indicator__step-item--active":e+1===v})},e))})})]})}function vt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}function bt(e){return["small","middle","large"].includes(e)}function yt(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Ct="anticon",xt=["outlined","borderless","filled","underlined"],wt=h.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Ct}),{Consumer:$t}=wt,St={};function Et(e){const t=h.useContext(wt),{getPrefixCls:n,direction:o,getPopupContainer:r}=t,i=t[e];return Object.assign(Object.assign({classNames:St,styles:St},i),{getPrefixCls:n,direction:o,getPopupContainer:r})}function kt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ot(e){return function(e){if(Array.isArray(e))return C(e)}(e)||kt(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const It=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Nt(e,t,n){var o=h.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}const jt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if(Be(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var s=0;s<t.length;s++)if(!e(t[s],r[s],l))return!1;return!0}if(t&&r&&"object"===S(t)&&"object"===S(r)){var c=Object.keys(t);return c.length===Object.keys(r).length&&c.every(function(n){return e(t[n],r[n],l)})}return!1}(e,t)};function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,E(o.key),o)}}function Rt(e,t,n){return t&&Pt(e.prototype,t),n&&Pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lt(e){return e.join("%")}var Tt=function(){function e(t){Mt(this,e),k(this,"instanceId",void 0),k(this,"cache",new Map),k(this,"extracted",new Set),this.instanceId=t}return Rt(e,[{key:"get",value:function(e){return this.opGet(Lt(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Lt(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const zt=Tt;var Bt="data-token-hash",Ht="data-css-hash",_t="__cssinjs_instance__";var At=h.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ht,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[_t]=t[_t]||e,t[_t]===e&&document.head.insertBefore(t,n)});var o={};Array.from(document.querySelectorAll("style[".concat(Ht,"]"))).forEac
1h(function(t){var n,r=t.getAttribute(Ht);o[r]?t[_t]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0})}return new zt(e)}(),defaultCache:!0});const Dt=At;new RegExp("CALC_UNIT","g");var Ft=function(){function e(){Mt(this,e),k(this,"cache",void 0),k(this,"keys",void 0),k(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Rt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach(function(e){var t;r=r?null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0}),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce(function(e,t){var n=$(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=$(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(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}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();k(Ft,"MAX_CACHE_SIZE",20),k(Ft,"MAX_CACHE_OFFSET",5);var Wt=0,Kt=function(){function e(t){Mt(this,e),k(this,"derivatives",void 0),k(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Wt,0===t.length&&t.length,Wt+=1}return Rt(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),Vt=new Ft;function qt(e){var t=Array.isArray(e)?e:[e];return Vt.has(t)||Vt.set(t,new Kt(t)),Vt.get(t)}var Gt=new WeakMap,Xt={},Ut=new WeakMap;function Zt(e){var t=Ut.get(e)||"";return t||(Object.keys(e).forEach(function(n){var o=e[n];t+=n,o instanceof Kt?t+=o.id:o&&"object"===S(o)?t+=Zt(o):t+=o}),t=It(t),Ut.set(e,t)),t}function Yt(e,t){return It("".concat(t,"_").concat(Zt(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Qt=ve();function Jt(e){return"number"==typeof e?"".concat(e,"px"):e}function en(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=he(he({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},k(k({},Bt,t),Ht,n)),r=Object.keys(o).map(function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(r,">").concat(e,"</style>")}var tn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},nn=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=$(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")}).join(""),"}"):""},on=function(e,t,n){var o={},r={};return Object.entries(e).forEach(function(e){var t,i,a=$(e,2),l=a[0],s=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])r[l]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var c,d=tn(l,null==n?void 0:n.prefix);o[d]="number"!=typeof s||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[l]?String(s):"".concat(s,"px"),r[l]="var(".concat(d,")")}}),[r,nn(o,t,{scope:null==n?void 0:n.scope})]},rn=ve()?h.useLayoutEffect:h.useEffect,an=function(e,t){var n=h.useRef(!0);rn(function(){return e(n.current)},t),rn(function(){return n.current=!1,function(){n.current=!0}},[])},ln=function(e,t){an(function(t){if(!t)return e()},t)};const sn=an;var cn=he({},h).useInsertionEffect;const dn=cn?function(e,t,n){return cn(function(){return e(),t()},n)}:function(e,t,n){h.useMemo(e,n),sn(function(){return t(!0)},n)},un=void 0!==he({},h).useInsertionEffect?function(e){var t=[],n=!1;return h.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}}
1,e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function pn(e,t,n,o,r){var i=h.useContext(Dt).cache,a=Lt([e].concat(Ot(t))),l=un([a]),s=function(e){i.opUpdate(a,function(t){var o=$(t||[void 0,void 0],2),r=o[0],i=[void 0===r?0:r,o[1]||n()];return e?e(i):i})};h.useMemo(function(){s()},[a]);var c=i.opGet(a)[1];return dn(function(){null==r||r(c)},function(e){return s(function(t){var n=$(t,2),o=n[0],i=n[1];return e&&0===o&&(null==r||r(c)),[o+1,i]}),function(){i.opUpdate(a,function(t){var n=$(t||[],2),r=n[0],s=void 0===r?0:r,c=n[1];return 0==s-1?(l(function(){!e&&i.opGet(a)||null==o||o(c,!1)}),null):[s-1,c]})}},[a]),c}var fn={},mn=new Map;var gn="token";function hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,h.useContext)(Dt),r=o.cache.instanceId,i=o.container,a=n.salt,l=void 0===a?"":a,s=n.override,c=void 0===s?fn:s,d=n.formatToken,u=n.getComputedToken,p=n.cssVar,f=function(e,n){for(var o=Gt,r=0;r<n.length;r+=1){var i=n[r];o.has(i)||o.set(i,new WeakMap),o=o.get(i)}return o.has(Xt)||o.set(Xt,Object.assign.apply(Object,[{}].concat(Ot(t)))),o.get(Xt)}(0,t),m=Zt(f),g=Zt(c),v=p?Zt(p):"",b=pn(gn,[l,e.id,m,g,v],function(){var t,n=u?u(f,c,e):function(e,t,n,o){var r=he(he({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r}(f,c,e,d),o=he({},n),r="";if(p){var i=$(on(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],r=i[1]}var a=Yt(n,l);n._tokenKey=a,o._tokenKey=Yt(o,l);var s=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=s,function(e){mn.set(e,(mn.get(e)||0)+1)}(s);var m="".concat("css","-").concat(It(a));return n._hashId=m,[n,m,o,r,(null==p?void 0:p.key)||""]},function(e){!function(e,t){mn.set(e,(mn.get(e)||0)-1);var n=new Set;mn.forEach(function(e,t){e<=0&&n.add(t)}),mn.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Bt,'="').concat(e,'"]')).forEach(function(e){var n;e[_t]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),mn.delete(e)})}(e[0]._themeKey,r)},function(e){var t=$(e,4),n=t[0],o=t[3];if(p&&o){var a=Ie(o,It("css-variables-".concat(n._themeKey)),{mark:Ht,prepend:"queue",attachTo:i,priority:-999});a[_t]=r,a.setAttribute(Bt,n._themeKey)}});return b}const vn={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};var bn="comm",yn="rule",Cn="decl",xn=Math.abs,wn=String.fromCharCode;function $n(e){return e.trim()}function Sn(e,t,n){return e.replace(t,n)}function En(e,t){return 0|e.charCodeAt(t)}function kn(e,t,n){return e.slice(t,n)}function On(e){return e.length}function In(e,t){return t.push(e),e}function Nn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function jn(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Cn:return e.return=e.return||e.value;case bn:return"";case"@keyframes":return e.return=e.value+"{"+Nn(e.children,o)+"}";case yn:if(!On(e.value=e.props.join(",")))return""}return On(n=Nn(e.children,o))?e.return=e.value+"{"+n+"}":""}Object.assign;var Mn=1,Pn=1,Rn=0,Ln=0,Tn=0,zn="";function Bn(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Mn,column:Pn,length:a,return:"",siblings:l}}function Hn(){return Tn=Ln>0?En(zn,--Ln):0,Pn--,10===Tn&&(Pn=1,Mn--),Tn}function An(){return Tn=Ln<Rn?En(zn,Ln++):0,Pn++,10===Tn&&(Pn=1,Mn++),Tn}function Dn(){return En(zn,Ln)}function Fn(){return Ln}function Wn(e,t){return kn(zn,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 Vn(e){return $n(Wn(Ln-1,Xn(91===e?e+2:40===e?e+1:e)))}function qn(e){for(;(Tn=Dn())&&Tn<33;)An();return Kn(e)>2||Kn(Tn)>3?"":" "}function Gn(e,t){for(;--t&&An()&&!(Tn<48||Tn>102||Tn>57&&Tn<65||Tn>70&&Tn<97););return Wn(e,Fn()+(t<6&&32==Dn()&&32==An()))}function Xn(e){for(;An();)switch(Tn){case e:return Ln;case 34:case 39:34!==e&&39!==e&&Xn(Tn);break;case 40:41===e&&Xn(e);break;case 92:An()}return Ln}function Un(e,t){for(;An()&&e+Tn!==57&&(e+Tn!==84||47!==Dn()););return"/*"+Wn(t,Ln-1)+"*"+wn(47===e?e:An())}function Zn(e){for(;!Kn(Dn());)An();return Wn(e,Ln)}function Yn(e){return function(e){return zn="",e}(Qn("",null,null,null,[""],e=function(e){return Mn=Pn=1,Rn=On(zn=e),Ln=0,[]}(e),0,[0],e))}function Qn(e,t,n,o,r,i,a,l,s){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,h=1,v=1,b=0,y=0,C="",x=r,w=i,$=o,S=C;h;)switch(m=y,y=An()){case 40:108!=m&&58==En(S,u-1)?(b++,S+="("):S+=Vn(y);break;case 41:b--,S+=")";break;case 34:case 39:case 91:S+=Vn(y);break;case 9:case 10:case 13:case 32:if(b>0){S+=wn(y);break}S+=qn(m);break;case 92:S+=Gn(Fn()-1,7);continue;case 47:switch(Dn()){case 42:case 47:In(eo(Un(An(),Fn()),t,n,s),s),5!=Kn(m||1)&&5!=Kn(Dn()||1)||!On(S)||" "===kn(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[c++]=On(S)*v;
vendor: 11,079 bytes, line 1
1case 125*g:case 59:case 0:if(b>0&&y){S+=wn(y);break}switch(y){case 0:case 125:h=0;case 59+d:-1==v&&(S=Sn(S,/\f/g,"")),f>0&&(On(S)-u||0===g)&&In(f>32?to(S+";",o,n,u-1,s):to(Sn(S," ","")+";",o,n,u-2,s),s);break;case 59:S+=";";default:if(In($=Jn(S,t,n,c,d,r,l,C,x=[],w=[],u,i),i),123===y)if(0===d)Qn(S,t,$,$,x,i,u,l,w);else{switch(p){case 99:if(110===En(S,3))break;case 108:if(97===En(S,2))break;default:d=0;case 100:case 109:case 115:}d?Qn(e,$,$,o&&In(Jn(e,$,$,0,0,r,l,C,r,x=[],u,w),w),r,w,u,l,o?x:w):Qn(S,$,$,$,[""],w,0,l,w)}}c=d=f=0,g=v=1,C=S="",u=a;break;case 58:u=1+On(S),f=m;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Hn())continue;switch(S+=wn(y),y*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:if(b>0)break;l[c++]=(On(S)-1)*v,v=1;break;case 64:45===Dn()&&(S+=Vn(An())),p=Dn(),d=u=On(C=S+=Zn(Fn())),y++;break;case 45:45===m&&2==On(S)&&(g=0)}}return i}function Jn(e,t,n,o,r,i,a,l,s,c,d,u){for(var p=r-1,f=0===r?i:[""],m=function(e){return e.length}(f),g=0,h=0,v=0;g<o;++g)for(var b=0,y=kn(e,p+1,p=xn(h=a[g])),C=e;b<m;++b)(C=$n(h>0?f[b]+" "+y:Sn(y,/&\f/g,f[b])))&&(s[v++]=C);return Bn(e,t,n,0===r?yn:l,s,c,d,u)}function eo(e,t,n,o){return Bn(e,t,n,bn,wn(Tn),kn(e,2,-2),0,o)}function to(e,t,n,o,r){return Bn(e,t,n,Cn,kn(e,0,o),kn(e,o+1,-1),o,r)}var no,oo="data-ant-cssinjs-cache-path",ro="_FILE_STYLE__",io=!0;var ao="_multi_value_";function lo(e){return Nn(Yn(e),jn).replace(/\{%%%\:[^;];}/g,";")}var so=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,l=n.hashId,s=n.layer,c=(n.path,n.hashPriority),d=n.transformers,u=void 0===d?[]:d,p=(n.linters,""),f={};function m(t){var o=t.getName(l);if(!f[o]){var r=$(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];f[o]="@keyframes ".concat(t.getName(l)).concat(r)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return g.forEach(function(t){var o="string"!=typeof t||r?t:{};if("string"==typeof o)p+="".concat(o,"\n");else if(o._keyframe)m(o);else{var s=u.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},o);Object.keys(s).forEach(function(t){var o=s[t];if("object"!==S(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===S(e)&&e&&("_skip_check_"in e||ao in e)}(o)){var d;function x(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),o=t;vn[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),o=t.getName(l)),p+="".concat(n,":").concat(o,";")}var u=null!==(d=null==o?void 0:o.value)&&void 0!==d?d:o;"object"===S(o)&&null!=o&&o[ao]&&Array.isArray(u)?u.forEach(function(e){x(t,e)}):x(t,u)}else{var g=!1,h=t.trim(),v=!1;(r||i)&&l?h.startsWith("@")?g=!0:h=function(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(Ot(n.slice(1))).join(" ")}).join(",")}("&"===h?"":t,l,c):!r||l||"&"!==h&&""!==h||(h="",v=!0);var b=$(e(o,n,{root:v,injectHash:g,parentSelectors:[].concat(Ot(a),[h])}),2),y=b[0],C=b[1];f=he(he({},f),C),p+="".concat(h).concat(y)}})}}),r?s&&(p&&(p="@layer ".concat(s.name," {").concat(p,"}")),s.dependencies&&(f["@layer ".concat(s.name)]=s.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(s.name,";")}).join("\n"))):p="{".concat(p,"}"),[p,f]};function co(e,t){return It("".concat(e.join("%")).concat(t))}function uo(){return null}var po="style";function fo(e,t){var n=e.token,o=e.path,r=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=void 0===s?0:s,d=h.useContext(Dt),u=d.autoClear,p=(d.mock,d.defaultCache),f=d.hashPriority,m=d.container,v=d.ssrInline,b=d.transformers,y=d.linters,C=d.cache,x=d.layer,w=n._tokenKey,S=[w];x&&S.push("layer"),S.push.apply(S,Ot(o));var E=Qt,O=pn(po,S,function(){var e=S.join("|");if(function(e){return function(){if(!no&&(no={},ve())){var e=document.createElement("div");e.className=oo,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(/"$/,"")).split(";").forEach(function(e){var t=$(e.split(":"),2),n=t[0],o=t[1];no[n]=o});var n,o=document.querySelector("style[".concat(oo,"]"));o&&(io=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!no[e]}(e)){var n=function(e){var t=no[e],n=null;if(t&&ve())if(io)n=ro;else{var o=document.querySelector("style[".concat(Ht,'="').concat(no[e],'"]'));o?n=o.innerHTML:delete no[e]}return[n,t]}(e),a=$(n,2),s=a[0],d=a[1];if(s)return[s,w,d,{},l,c]}var u=t(),p=$(so(u,{hashId:r,hashPriority:f,layer:x?i:void 0,path:o.join("-"),transformers:b,linters:y}),2),m=p[0],g=p[1],h=lo(m),v=co(S,h);return[h,w,v,g,l,c]},function(e,t){var n=$(e,3)[2];(t||u)&&Qt&&Oe(n,{mark:Ht,attachTo:m})},function(e){var t=$(e,4),n=t[0],o=(t[1],t[2]),r=t[3];if(E&&n!==ro){var i={mark:Ht,prepend:!x&&"queue",attachTo:m,priority:c},l="function"==typeof a?a():a;l&&(i.csp={nonce:l});var s=[],d=[];Object.keys(r).forEach(function(e){e.startsWith("@layer")?s.push(e):d.push(e)}),s.forEach(function(e){Ie(lo(r[e]),"_layer-".concat(e),he(he({},i),{},{prepend:!0}))});var u=Ie(n,o,i);u[_t]=C.instanceId,u.setAttribute(Bt,w),d.forEach(function(e){Ie(lo(r[e]),"_effect-".concat(e),i)})}}),I=$(O,3),N=I[0],j=I[1],M=I[2];return function(e){var t;return t=v&&!E&&p?h.createElement("style",g({},k(k({},Bt,j),Ht,M),{dangerouslySetInnerHTML:{__html:N}})):h.createElement(uo,null),h.createElement(h.Fragment,null,t,e)}}var mo="cssVar";k(k(k({},po,function(e,t,n){var o=$(e,6),r=o[0],i=o[1],a=o[2],l=o[3],s=o[4],c=o[5],d=(n||{}).plain;if(s)return null;var u=r,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return u=en(r,i,a,p,d),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=en(lo(l[e]),i,"_effect-".concat(e),p,d);e.startsWith("@layer")?u=n+u:u+=n}}),[c,a,u]}),gn,function(e,t,n){var o=$(e,5),r=o[2],i=o[3],a=o[4],l=(n||{}).plain;if(!i)return null;var s=r._tokenKey;return[-999,s,en(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),mo,function(e,t,n){var o=$(e,4),r=o[1],i=o[2],a=o[3],l=(n||{}).plain;return r?[-999,i,en(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null});var go=function(){function e(t,n){Mt(this,e),k(this,"name",void 0),k(this,"style",void 0),k(this,"_keyframe",!0),this.name=t,this.style=n}return Rt(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const ho=go;function vo(e){return e.notSplit=!0,e}function bo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yo(e,t){return yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yo(e,t)}function Co(e,t){if("function"!=typeof t&&null!==t)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&&yo(e,t)}function xo(e){return xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xo(e)}function wo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wo=function(){return!!e})()}function $o(e){var t=wo();return function(){var n,o=xo(e);if(t){var r=xo(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bo(e)}(this,n)}}vo(["borderTop","borderBottom"]),vo(["borderTop"]),vo(["borderBottom"]),vo(["borderLeft","borderRight"]),vo(["borderLeft"]),vo(["borderRight"]);const So=Rt(function e(){Mt(this,e)});var Eo="CALC_UNIT",ko=new RegExp(Eo,"g");function Oo(e){return"number"==typeof e?"".concat(e).concat(Eo):e}var Io=function(e){Co(n,e);var t=$o(n);function n(e,o){var r;Mt(this,n),k(bo(r=t.call(this)),"result",""),k(bo(r),"unitlessCssVar",void 0),k(bo(r),"lowPriority",void 0);var i=S(e);return r.unitlessCssVar=o,e instanceof n?r.result="(".concat(e.result,")"):"number"===i?r.result=Oo(e):"string"===i&&(r.result=e),r}return Rt(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Oo(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Oo(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"==typeof n?o=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(o=!1),this.result=this.result.replace(ko,o?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(So);const No=function(e){Co(n,e);var t=$o(n);function n(e){var o;return Mt(this,n),k(bo(o=t.call(this)),"result",0),e instanceof n?o.result=e.result:"number"==typeof e&&(o.result=e),o}return Rt(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(So),jo=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(
1Boolean).join("-"))};function Mo(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))},[]);return n}function Po(e){var t=h.useRef(!1),n=$(h.useState(e),2),o=n[0],r=n[1];return h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[o,function(e,n){n&&t.current||r(e)}]}function Ro(e){return void 0!==e}function Lo(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,l=$(Po(function(){return Ro(r)?r:Ro(o)?"function"==typeof o?o():o:"function"==typeof e?e():e}),2),s=l[0],c=l[1],d=void 0!==r?r:s,u=a?a(d):d,p=Mo(i),f=$(Po([d]),2),m=f[0],g=f[1];return ln(function(){var e=m[0];s!==e&&p(s,e)},[m]),ln(function(){Ro(r)||c(r)},[r]),[u,Mo(function(e,t){c(e,t),g([d],t)})]}var To=n(363),zo=Symbol.for("react.element"),Bo=Symbol.for("react.transitional.element"),Ho=Symbol.for("react.fragment");function _o(e){return e&&"object"===S(e)&&(e.$$typeof===zo||e.$$typeof===Bo)&&e.type===Ho}var Ao=Number(h.version.split(".")[0]),Do=function(e,t){"function"==typeof e?e(t):"object"===S(e)&&e&&"current"in e&&(e.current=t)},Fo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach(function(t){Do(t,e)})}},Wo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Nt(function(){return Fo.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},Ko=function(e){var t,n;if(!e)return!1;if(Vo(e)&&Ao>=19)return!0;var o=(0,To.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===To.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===To.ForwardRef)};function Vo(e){return(0,h.isValidElement)(e)&&!_o(e)}var qo=function(e){if(e&&Vo(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Go(e){return y(e)||kt(e)||x(e)||w()}function Xo(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function Uo(e,t,n,o){if(!t.length)return n;var r,i=Go(t),a=i[0],l=i.slice(1);return r=e||"number"!=typeof a?Array.isArray(e)?Ot(e):he({},e):[],o&&void 0===n&&1===l.length?delete r[a][l[0]]:r[a]=Uo(r[a],l,n,o),r}function Zo(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!Xo(e,t.slice(0,-1))?e:Uo(e,t,n,o)}function Yo(e){return Array.isArray(e)?[]:{}}var Qo="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Jo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Yo(t[0]);return t.forEach(function(e){!function t(n,r){var i,a=new Set(r),l=Xo(e,n),s=Array.isArray(l);if(s||"object"===S(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var c=Xo(o,n);s?o=Zo(o,n,[]):c&&"object"===S(c)||(o=Zo(o,n,Yo(l))),Qo(l).forEach(function(e){t([].concat(Ot(n),[e]),a)})}}else o=Zo(o,n,l)}([])}),o}const er=function(e,t,n,o){var r=he({},t[e]);null!=o&&o.deprecatedTokens&&o.deprecatedTokens.forEach(function(e){var t,n=$(e,2),o=n[0],i=n[1];(null!=r&&r[o]||null!=r&&r[i])&&(null!==(t=r[i])&&void 0!==t||(r[i]=null==r?void 0:r[o]))});var i=he(he({},n),r);
1return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i};var tr="undefined"!=typeof CSSINJS_STATISTIC,nr=!0;function or(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!tr)return Object.assign.apply(Object,[{}].concat(t));nr=!1;var o={};return t.forEach(function(e){"object"===S(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),nr=!0,o}var rr={};function ir(){}const ar=function(e,t,n){var o;return"function"==typeof n?n(or(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}};var lr=function(){function e(){Mt(this,e),k(this,"map",new Map),k(this,"objectIDMap",new WeakMap),k(this,"nextID",0),k(this,"lastAccessBeat",new Map),k(this,"accessBeat",0)}return Rt(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===S(e)?"obj_".concat(t.getObjectID(e)):"".concat(S(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),sr=new lr;const cr=function(){return{}},dr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ur=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),pr=(e,t)=>({outline:`${Jt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),fr=(e,t)=>({"&:focus-visible":pr(e,t)}),mr=e=>({[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),gr=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},fr(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),hr={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"},vr=Object.assign(Object.assign({},hr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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}),br={token:vr,override:{override:vr},hashed:!0},yr=v().createContext(br);function Cr(e){return(e+8)/e}const xr=(e,t)=>
1new L(e).setA(t).toRgbString(),wr=(e,t)=>new L(e).darken(t).toHexString(),$r=e=>{const t=_(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]}},Sr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:xr(o,.88),colorTextSecondary:xr(o,.65),colorTextTertiary:xr(o,.45),colorTextQuaternary:xr(o,.25),colorFill:xr(o,.15),colorFillSecondary:xr(o,.06),colorFillTertiary:xr(o,.04),colorFillQuaternary:xr(o,.02),colorBgSolid:xr(o,1),colorBgSolidHover:xr(o,.75),colorBgSolidActive:xr(o,.95),colorBgLayout:wr(n,4),colorBgContainer:wr(n,0),colorBgElevated:wr(n,0),colorBgSpotlight:xr(o,.85),colorBgBlur:"transparent",colorBorder:wr(n,15),colorBorderSecondary:wr(n,6)}},Er=qt(function(e){A.pink=A.magenta,ee.pink=ee.magenta;const t=Object.keys(hr).map(t=>{const n=e[t]===A[t]?ee[t]:_(e[t]);return Array.from({length:10},()=>1).reduce((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e),{})}).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:r,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,d=t(l),u=t(o),p=t(r),f=t(i),m=t(a),g=n(s,c),h=t(e.colorLink||e.colorInfo),v=new L(f[1]).mix(new L(f[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:
vendor: 4,512 bytes, line 1
1d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:v,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[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:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new L("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:$r,generateNeutralColorPalettes:Sr})),(e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const o=n-1,r=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:Cr(e)}))}(e),n=t.map(e=>e.size),o=t.map(e=>e.lineHeight),r=n[1],i=n[0],a=n[2],l=o[1],s=o[0],c=o[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*r),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}})(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},(e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}})(o))}(e))}),kr=Er;function Or(e){return e>=0&&e<=255}const Ir=function(e,t){const{r:n,g:o,b:r,a:i}=new L(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new L(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((o-l*(1-e))/e),c=Math.round((r-s*(1-e))/e);if(Or(t)&&Or(i)&&Or(c))return new L({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new L({r:n,g:o,b:r,a:1}).toRgbString()};function Nr(e){const{override:t}=e,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["override"]),o=Object.assign({},t);Object.keys(vr).forEach(e=>{delete o[e]});const r=Object.assign(Object.assign({},n),o);if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Ir(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Ir(r.colorErrorBg,r.colorBg
1Container),colorWarningOutline:Ir(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:3*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Ir(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new L("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new L("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new L("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTo
1p:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}var jr=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Mr={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Pr={motionBase:!0,motionUnit:!0},Rr={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Lr=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=jr(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=Nr(a),i&&Object.entries(i).forEach(([e,t])=>{const{theme:n}=t,o=jr(t,["theme"]);let r=o;n&&(r=Lr(Object.assign(Object.assign({},a),o),{override:o},n)),a[e]=r}),a};function Tr(){const{token:e,hashed:t,theme:n,override:o,cssVar:r}=v().useContext(yr),i=`5.29.3-${t||""}`,a=n||kr,[l,s,c]=hn(a,[vr,e],{salt:i,override:o,getComputedToken:Lr,formatToken:Nr,cssVar:r&&{prefix:r.prefix,key:r.key,unitless:Mr,ignore:Pr,preserve:Rr}});return[a,c,t?s:"",l,r]}const{genStyleHooks:zr,genComponentStyleHook:Br,genSubStyleComponent:Hr}=function(e){var t=e.useCSP,n=void 0===t?cr:t,o=e.useToken,r=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function s(t,l,s){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],u=$(d,1)[0],p=d.join("-"),f=e.layer||{name:"antd"};return function(e){var t,d,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,g=o(),h=g.theme,b=g.realToken,y=g.hashId,C=g.token,x=g.cssVar,w=r(),$=w.rootPrefixCls,E=w.iconPrefixCls,k=n(),O=x?"css":"js",I=(t=function(){var e=new Set;return x&&Object.keys(c.unitless||{}).forEach(function(t){e.add(tn(t,x.prefix)),e.add(tn(t,jo(u,x.prefix)))}),function(e,t){var n="css"===e?Io:No;return function(e){return new n(e,t)}}(O,e)},d=[O,u,null==x?void 0:x.prefix],v().useMemo(function(){var e=sr.get(d);if(e)return e;var n=t();return sr.set(d,n),n},d)),N=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return Jt(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return Jt(e)}).join(","),")")}}}(O),j=N.max,M=N.min,P={theme:h,token:C,hashId:y,nonce:function(){return k.nonce},clientOnly:c.clientOnly,layer:f,order:c.order||-999};return"function"==typeof i&&fo(he(he({},P),{},{clientOnly:!1,path:["Shared",$]}),function(){return i(C,{prefix:{rootPrefixCls:$,iconPrefixCls:E},csp:k})}),[fo(he(he({},P),{},{path:[p,e,E]}),function(){if(!1===c.injectStyle)return[];var t=function(e){var t,n=e,o=ir;return tr&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;return nr&&(null===(o=t)||void 0===o||o.add(n)),e[n]}}),o=function(e,n){var o;rr[e]={global:Array.from(t),component:he(he({},null===(o=rr[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}}(C),n=t.token,o=t.flush,r=ar(u,b,s),i=".".concat(e),d=er(u,b,r,{deprecatedTokens:c.deprecatedTokens});x&&r&&"object"===S(r)&&Object.keys(r).forEach(function(e){r[e]="var(".concat(tn(e,jo(u,x.prefix)),")")});var p=or(n,{componentCls:i,prefixCls:e,iconCls:".".concat(E),antCls:".".concat($),calc:I,max:j,min:M},x?r:d),f=l(p,{hashId:y,prefixCls:e,rootPrefixCls:$,iconPrefixCls:E});o(u,d);var g="function"==typeof a?a(p,e,m,c.resetFont):null;return[!1===c.resetStyle?null:g,f]}),y]}}return{genStyleHooks:function(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var c=(null==r?void 0:r.unitless)||{},d=he(he({},"function"==typeof l?l(e):{}),{},k({},a("zIndexPopup"),!0));
1Object.keys(c).forEach(function(e){d[a(e)]=c[e]});var u=he(he({},r),{},{unitless:d,prefixToken:a}),p=s(e,t,n,u),f=function(e,t,n){var r=n.unitless,i=n.injectStyle,a=void 0===i||i,l=n.prefixToken,s=n.ignore,c=function(i){var a=i.rootCls,c=i.cssVar,d=void 0===c?{}:c,u=o().realToken;return function(e,t){var n=e.key,o=e.prefix,r=e.unitless,i=e.ignore,a=e.token,l=e.scope,s=void 0===l?"":l,c=(0,h.useContext)(Dt),d=c.cache.instanceId,u=c.container,p=a._tokenKey,f=[].concat(Ot(e.path),[n,s,p]),m=pn(mo,f,function(){var e=t(),a=$(on(e,n,{prefix:o,unitless:r,ignore:i,scope:s}),2),l=a[0],c=a[1];return[l,c,co(f,c),n]},function(e){var t=$(e,3)[2];Qt&&Oe(t,{mark:Ht,attachTo:u})},function(e){var t=$(e,3),o=t[1],r=t[2];if(o){var i=Ie(o,r,{mark:Ht,prepend:"queue",attachTo:u,priority:-999});i[_t]=d,i.setAttribute(Bt,n)}})}({path:[e],prefix:d.prefix,key:d.key,unitless:r,ignore:s,token:u,scope:a},function(){var o=ar(e,u,t),r=er(e,u,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach(function(e){r[l(e)]=r[e],delete r[e]}),r}),null};return function(t){var n=o().cssVar;return[function(o){return a&&n?v().createElement(v().Fragment,null,v().createElement(c,{rootCls:t,cssVar:n,component:e}),o):o},null==n?void 0:n.key]}}(i,n,u);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=$(p(e,t),2)[1],o=$(f(t),2);return[o[0],n,o[1]]}},genSubStyleComponent:function(e,t,n){var o=s(e,t,n,he({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null}},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,h.useContext)(wt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r]=Tr();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e}=(0,h.useContext)(wt);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const o=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[o,{"&":o},mr(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:Ct)]},getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==o&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[r]:a})}},getCompUnitless:()=>Mr}),_r=["wrap","nowrap","wrap-reverse"],Ar=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Dr=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Fr=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Wr=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Kr=e=>{const{componentCls:t}=e,n={};return _r.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},Vr=e=>{const{componentCls:t}=e,n={};return Dr.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},qr=e=>{const{componentCls:t}=e,n={};return Ar.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},Gr=zr("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:o}=e,r=or(e,{flexGapSM:t,flexGap:n,flexGapLG:o});return[Fr(r),Wr(r),Kr(r),Vr(r),qr(r)]},()=>({}),{resetStyle:!1});const Xr=v().forwardRef((e,t)=>{const{prefixCls:n,rootClassName:o,className:r,style:i,flex:a,gap:l,vertical:s=!1,component:c="div",children:d}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","rootClassName","className","style","flex","gap","vertical","component","children"]),{flex:p,direction:f,getPrefixCls:m}=v().useContext(wt),g=m("flex",n),[h,b,y]=Gr(g),C=null!=s?s:null==p?void 0:p.vertical,x=N()(r,o,null==p?void 0:p.className,g,b,y,function(e,t){return N()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&_r.includes(n)}})(e,t)),((e,t)=>{const n={};return Dr.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return Ar.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n})(e,t)))}(g,e),{[`${g}-rtl`]:"rtl"===f,[`${g}-gap-${l}`]:bt(l),[`${g}-vertical`]:C}),w=Object.assign(Object.assign({},null==p?void 0:p.style),i);return a&&(w.flex=a),l&&!bt(l)&&(w.gap=l),h(v().createElement(c,Object.assign({ref:t,className:x,style:w}
1,vt(u,["justify","wrap","align"])),d))}),Ur=Xr,Zr=h.createContext(void 0),Yr=({children:e,size:t})=>{const n=h.useContext(Zr);return h.createElement(Zr.Provider,{value:t||n},e)},Qr=Zr,Jr=e=>{const t=v().useContext(Qr);return v().useMemo(()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t,[e,t])},ei=e=>{const{prefixCls:t,className:n,style:o,size:r,shape:i}=e,a=N()({[`${t}-lg`]:"large"===r,[`${t}-sm`]:"small"===r}),l=N()({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=h.useMemo(()=>"number"==typeof r?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return h.createElement("span",{className:N()(t,a,l,n),style:Object.assign(Object.assign({},s),o)})},ti=new ho("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ni=e=>({height:e,lineHeight:Jt(e)}),oi=e=>Object.assign({width:e},ni(e)),ri=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ti,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ii=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},ni(e)),ai=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,c
vendor: 8,901 bytes, line 1
1ontrolHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},oi(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},oi(r)),[`${t}${t}-sm`]:Object.assign({},oi(i))}},li=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},ii(t,l)),[`${o}-lg`]:Object.assign({},ii(r,l)),[`${o}-sm`]:Object.assign({},ii(i,l))}},si=e=>Object.assign({width:e},ni(e)),ci=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:o,borderRadiusSM:r,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:o,borderRadius:r},si(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},si(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},di=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},ui=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},ni(e)),pi=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(o).mul(2).equal(),minWidth:l(o).mul(2).equal()},ui(o,l))},di(e,o,n)),{[`${n}-lg`]:Object.assign({},ui(r,l))}),di(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ui(i,l))}),di(e,i,`${n}-sm`))},fi=zr("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:d,gradientFromColor:u,padding:p,marginSM:f,borderRadius:m,titleHeight:g,blockRadius:h,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},oi(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},oi(c)),[`${n}-sm`]:Object.assign({},oi(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:g,background:u,borderRadius:h,[`+ ${r}`]:{marginBlockStart:d}},[r]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:u,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[o]:{marginBlockStart:f,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},pi(e)),ai(e)),li(e)),ci(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n        ${o},\n        ${r} > li,\n        ${n},\n        ${i},\n        ${a},\n        ${l}\n      `]:Object.assign({},ri(e))}}})(or(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),mi=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},gi=e=>{const{prefixCls:t,className:n,style:o,rows:r=0}=e,i=Array.from({length:r}).map((t,n)=>h.createElement("li",{key:n,style:{width:mi(n,e)}}));return h.createElement("ul",{className:N()(t,n),style:o},i)},hi=({prefixCls:e,className:t,width:n,style:o})=>h.createElement("h3",{className:N()(e,t),style:Object.assign({width:n},o)});function vi(e){return e&&"object"==typeof e?e:{}}const bi=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:r,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:d,round:u}=e,{getPrefixCls:p,direction:f,className:m,style:g}=Et("skeleton"),v=p("skeleton",t),[b,y,C]=fi(v);if(n||!("loading"in e)){const e=!!l,t=!!s,n=!!c;let a,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),vi(l));a=h.createElement("div",{className:`${v}-header`},h.createElement(ei,Object.assign({},e)))}if(t||n){let o,r;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),vi(s));o=h.createElement(hi,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),vi(c));r=h.createElement(gi,Object.assign({},n))}p=h.createElement("div",{className:`${v}-content`},o,r)}const x=N()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:d,[`${v}-rtl`]:"rtl"===f,[`${v}-round`]:u},m,o,r,y,C);return b(h.createElement("div",{className:x,style:Object.assign(Object.assign({},g),i)},a,p))}return null!=a?a:null};bi.Button=e=>{const{prefixCls:t,className:n,rootClassName:o,active:r,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=h.useContext(wt),s=l("skeleton",t),[c,d,u]=fi(s),p=vt(e,["prefixCls"]),f=N()(s,`${s}-element`,{[`${s}-active`]:r,[`${s}-block`]:i},n,o,d,u);return c(h.createElement("div",{className:f},h.createElement(ei,Object.assign({prefixCls:`${s}-button`,size:a},p))))},bi.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:o,active:r,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=h.useContext(wt),s=l("skeleton",t),[c,d,u]=fi(s),p=vt(e,["prefixCls","className"]),f=N()(s,`${s}-element`,{[`${s}-active`]:r},n,o,d,u);return c(h.createElement("div",{className:f},h.createElement(ei,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},p))))},bi.Input=e=>{const{prefixCls:t,className:n,rootClassName:o,active:r,block:i,size:a="default"}=e,{getPrefixCls:l}=h.useContext(wt),s=l("skeleton",t),[c,d,u]=fi(s),p=vt(e,["prefixCls"]),f=N()(s,`${s}-element`,{[`${s}-active`]:r,[`${s}-block`]:i},n,o,d,u);return c(h.createElement("div",{className:f},h.createElement(ei,Object.assign({prefixCls:`${s}-input`,size:a},p))))},bi.Image=e=>{const{prefixCls:t,className:n,rootClassName:o,style:r,active:i}=e,{getPrefixCls:a}=h.useContext(wt),l=a("skeleton",t),[s,c,d]=fi(l),u=N()(l,`${l}-element`,{[`${l}-active`]:i},n,o,c,d);return s(h.createElement("div",{className:u},h.createElement("div",{className:N()(`${l}-image`,n),style:r},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},h.createElement("title",null,"Image placeholder"),h.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},bi.Node=e=>{const{prefixCls:t,className:n,rootClassName:o,style:r,active:i,children:a}=e,{getPrefixCls:l}=h.useContext(wt),s=l("skeleton",t),[c,d,u]=fi(s),p=N()(s,`${s}-element`,{[`${s}-active`]:i},d,n,o,u);return c(h.createElement("div",{className:p},h.createElement("div",{className:N()(`${s}-image`,n),style:r},a)))};const yi=bi,Ci={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"}
1,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"};var xi=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Ci}))};const wi=h.forwardRef(xi),$i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Si=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:$i}))};const Ei=h.forwardRef(Si),ki={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Oi=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:ki}))};const Ii=h.forwardRef(Oi),Ni=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};n.dn(Ni);const ji=(0,h.createContext)(null);function Mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return v().Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Mi(e)):_o(e)&&e.props?n=n.concat(Mi(e.props.children,t)):n.push(e))}),n}const Pi=window.ReactDOM;var Ri=n.n(Pi);function Li(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ti(e){return e&&"object"===S(e)&&Li(e.nativeElement)?e.nativeElement:Li(e)?e:null}function zi(e){var t;return Ti(e)||(e instanceof v().Component?null===(t=Ri().findDOMNode)||void 0===t?void 0:t.call(Ri(),e):null)}var Bi=h.createContext(null),Hi=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,o){return e[0]===t&&(n=o,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),_i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ai="undefined"!=typeof globalThis&&globalThis.Math===Math?globalThis:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Di="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ai):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},Fi=["top","right","bottom","left","width","height","size","weight"],Wi="undefined"!=typeof MutationObserver,Ki=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,o=0;function r(){t&&(t=!1,e()),n&&a()}function i(){Di(r)}function a(){var e=Date.now();if(t){if(e-o<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);o=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){_i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Wi?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){_i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Fi.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 9,999 bytes, line 1
1w e),this.instance_},e.instance_=null,e}(),Vi=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},qi=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ai},Gi=Qi(0,0,0,0);function Xi(e){return parseFloat(e)||0}function Ui(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+Xi(e["border-"+n+"-width"])},0)}var Zi="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof qi(e).SVGGraphicsElement}:function(e){return e instanceof qi(e).SVGElement&&"function"==typeof e.getBBox};function Yi(e){return _i?Zi(e)?function(e){var t=e.getBBox();return Qi(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Gi;var o=qi(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Xi(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,l=Xi(o.width),s=Xi(o.height);if("border-box"===o.boxSizing&&(Math.round(l+i)!==t&&(l-=Ui(o,"left","right")+i),Math.round(s+a)!==n&&(s-=Ui(o,"top","bottom")+a)),!function(e){return e===qi(e).document.documentElement}(e)){var c=Math.round(l+i)-t,d=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(d)&&(s-=d)}return Qi(r.left,r.top,l,s)}(e):Gi}function Qi(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Ji=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qi(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Yi(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ea=function(e,t){var n,o,r,i,a,l,s,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),Vi(s,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),s);Vi(this,{target:e,contentRect:c})},ta=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Hi,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof qi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Ji(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof qi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new ea(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),na="undefined"!=typeof WeakMap?new WeakMap:new Hi,oa=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ki.getInstance(),o=new ta(t,n,this);na.set(this,o)};["observe","unobserve","disconnect"].forEach(function(e){oa.prototype[e]=function(){var t;return(t=na.get(this))[e].apply(t,arguments)}});const ra=void 0!==Ai.ResizeObserver?Ai.ResizeObserver:oa;var ia=new Map,aa=new ra(function(e){e.forEach(function(e){var t,n=e.target;null===(t=ia.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),la=function(e){Co(n,e);var t=$o(n);function n(){return Mt(this,n),t.apply(this,arguments)}return Rt(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function sa(e,t){var n=e.children,o=e.disabled,r=h.useRef(null),i=h.useRef(null),a=h.useContext(Bi),l="function"==typeof n,s=l?n(r):n,c=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&h.isValidElement(s)&&Ko(s),u=d?qo(s):null,p=Wo(u,r),f=function(){var e;return zi(r.current)||(r.current&&"object"===S(r.current)?zi(null===(e=r.current)||void 0===e?void 0:e.nativeElement):null)||zi(i.current)};h.useImperativeHandle(t,function(){return f()});var m=h.useRef(e);m.current=e;var g=h.useCallback(function(e){var t=m.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,l=r.height,s=e.offsetWidth,d=e.offsetHeight,u=Math.floor(i),p=Math.floor(l);if(c.current.width!==u||c.current.height!==p||c.current.offsetWidth!==s||c.current.offsetHeight!==d){var f={width:u,height:p,offsetWidth:s,offsetHeight:d};c.current=f;var g=s===Math.round(i)?i:s,h=d===Math.round(l)?l:d,v=he(he({},f),{},{offsetWidth:g,offsetHeight:h});null==a||a(v,e,o),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return h.useEffect(function(){var e,t,n=f();return n&&!o&&(e=n,t=g,ia.has(e)||(ia.set(e,new Set),aa.observe(e)),ia.get(e).add(t)),function(){return function(e,t){ia.has(e)&&(ia.get(e).delete(t),ia.get(e).size||(aa.unobserve(e),ia.delete(e)))}(n,g)}},[r.current,o]),h.createElement(la,{ref:i},d?h.cloneElement(s,{ref:p}):s)}const ca=h.forwardRef(sa);function da(e,t){var n=e.children;return("function"==typeof n?[n]:Mi(n)).map(function(n,o){var r=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return h.createElement(ca,g({},e,{key:r,ref:0===o?t:void 0}),n)})}var ua=h.forwardRef(da);ua.Collection=function(e){var t=e.children,n=e.onBatchResize,o=h.useRef(0),r=h.useRef([]),i=h.useContext(Bi),a=h.useCallback(function(e,t,a){o.current+=1;var l=o.current;r.current.push({size:e,element:t,data:a}),Promise.resolve().then(function(){l===o.current&&(null==n||n(r.current),r.current=[])}),null==i||i(e,t,a)},[n,i]);return h.createElement(Bi.Provider,{value:a},t)};const pa=ua;var fa=function(e){return+setTimeout(e,16)},ma=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(fa=function(e){return window.requestAnimationFrame(e)},ma=function(e){return window.cancelAnimationFrame(e)});var ga=0,ha=new Map;function va(e){ha.delete(e)}var ba=function(e){var t=ga+=1;return function n(o){if(0===o)va(t),e();else{var r=fa(function(){n(o-1)});ha.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};ba.cancel=function(e){var t=ha.get(e);return va(e),ma(t)};const ya=ba;var Ca={width:0,height:0,left:0,top:0};function xa(e,t){var n=h.useRef(e),o=$(h.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var wa=Math.pow(.995,20);function $a(e){var t=$((0,h.useState)(0),2),n=t[0],o=t[1],r=(0,h.useRef)(0),i=(0,h.useRef)();return i.current=e,ln(function(){var e;null===(e=i.current)||void 0===e||e.call(i)},[n]),function(){r.current===n&&(r.current+=1,o(r.current))}}var Sa={width:0,height:0,left:0,top:0,right:0};function Ea(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function ka(e){return String(e).replace(/"/g,"TABS_DQ")}function Oa(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var Ia=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.editable,r=e.locale,i=e.style;return o&&!1!==o.showAdd?h.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null});const Na=Ia;var ja=h.forwardRef(function(e,t){var n,o=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==S(i)||h.isValidElement(i)?a.right=i:a=i,"right"===o&&(n=a.right),"left"===o&&(n=a.left),n?h.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null});const Ma=ja,Pa=h.createContext(null);var Ra,La=[];function Ta(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var o,r,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var d=s?"width: ".concat(l.width,";"):"",u=c?"height: ".concat(l.height,";"):"";Ie("\n#".concat(t,"::-webkit-scrollbar {\n").concat(d,"\n").concat(u,"\n}"),t)}catch(e){console.error(e),o=s,r=c}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,f=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Oe(t),{width:p,height:f}}function za(e){return"undefined"==typeof document?0:((e||void 0===Ra)&&(Ra=Ta()),Ra.width)}function Ba(e){return"undefined"!=typeof document&&e&&e instanceof Element?Ta(e):{width:0,height:0}}var Ha="rc-util-locker-".concat(Date.now()),_a=0;var Aa=!1,Da=function(e){return!1!==e&&(ve()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Fa=h.forwardRef(function(e,t){var n=e.open,o=e.autoLock,r=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,l=e.children,s=$(h.useState(n),2),c=s[0],d=s[1],u=c||n;h.useEffect(function(){(a||n)&&d(n)},[n,a]);
1var p=$(h.useState(function(){return Da(r)}),2),f=p[0],m=p[1];h.useEffect(function(){var e=Da(r);m(null!=e?e:null)});var g,v,b,y=function(e){var t=$(h.useState(function(){return ve()?document.createElement("div"):null}),1)[0],n=h.useRef(!1),o=h.useContext(Pa),r=$(h.useState(La),2),i=r[0],a=r[1],l=o||(n.current?void 0:function(e){a(function(t){return[e].concat(Ot(t))})});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function c(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return sn(function(){return e?o?o(s):s():c(),c},[e]),sn(function(){i.length&&(i.forEach(function(e){return e()}),a(La))},[i]),[t,l]}(u&&!f),C=$(y,2),x=C[0],w=C[1],S=null!=f?f:x;g=o&&n&&ve()&&(S===x||S===document.body),v=!!g,b=$(h.useState(function(){return _a+=1,"".concat(Ha,"_").concat(_a)}),1)[0],sn(function(){if(v){var e=Ba(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Ie("\nhtml body {\n  overflow-y: hidden;\n  ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)}else Oe(b);return function(){Oe(b)}},[v,b]);var E=null;l&&Ko(l)&&t&&(E=l.ref);var k=Wo(E,t);if(!u||!ve()||void 0===f)return null;var O=!1===S||Aa,I=l;return t&&(I=h.cloneElement(l,{ref:k})),h.createElement(Pa.Provider,{value:w},O?I:(0,Pi.createPortal)(I,S))});const Wa=Fa;var Ka=0,Va=he({},h).useId;const qa=Va?function(e){var t=Va();return e||t}:function(e){var t=$(h.useState("ssr-id"),2),n=t[0],o=t[1];return h.useEffect(function(){var e=Ka;Ka+=1,o("rc_unique_".concat(e))},[]),e||n};var Ga=["children"],Xa=h.createContext({});function Ua(e){var t=e.children,n=O(e,Ga);return h.createElement(Xa.Provider,{value:n},t)}var Za=function(e){Co(n,e);var t=$o(n);function n(){return Mt(this,n),t.apply(this,arguments)}return Rt(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);const Ya=Za;var Qa="none",Ja="appear",el="enter",tl="leave",nl="none",ol="prepare",rl="start",il="active",al="end",ll="prepared";function sl(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}var cl,dl,ul,pl=(cl=ve(),dl="undefined"!=typeof window?window:{},ul={animationend:sl("Animation","AnimationEnd"),transitionend:sl("Transition","TransitionEnd")},cl&&("AnimationEvent"in dl||delete ul.animationend.animation,"TransitionEvent"in dl||delete ul.transitionend.transition),ul),fl={};if(ve()){var ml=document.createElement("div");fl=ml.style}var gl={};function hl(e){if(gl[e])return gl[e];var t=pl[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in fl)return gl[e]=t[i],gl[e]}return""}var vl=hl("animationend"),bl=hl("transitionend"),yl=!(!vl||!bl),Cl=vl||"animationend",xl=bl||"transitionend";function wl(e,t){return e?"object"===S(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}const $l=function(e){var t=(0,h.useRef)();function n(t){t&&(t.removeEventListener(xl,e),t.removeEventListener(Cl,e))}return h.useEffect(function(){return function(){n(t.current)}},[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(xl,e),o.addEventListener(Cl,e),t.current=o)},n]};n.dn($l);const Sl=ve()?h.useLayoutEffect:h.useEffect,El=function(){var e=h.useRef(null);function t(){ya.cancel(e.current)}return h.useEffect(function(){return function(){t()}},[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=ya(function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)});e.current=i},t]};n.dn(El);var kl=[ol,rl,il,al],Ol=[ol,ll],Il=!1;function Nl(e){return e===il||e===al}const jl=function(e,t,n){var o=$(Po(nl),2),r=o[0],i=o[1],a=$(El(),2),l=a[0],s=a[1],c=t?Ol:kl;return Sl(function(){if(r!==nl&&r!==al){var e=c.indexOf(r),t=c[e+1],o=n(r);o===Il?i(t,!0):t&&l(function(e){function n(){e.isCanceled()||i(t,!0)}!0===o?n():Promise.resolve(o).then(n)})}},[e,r]),h.useEffect(function(){return function(){s()}},[]),[function(){i(ol,!0)},r]};n.dn(jl);const Ml=function(e){var t=e;"object"===S(e)&&(t=e.transitionSupport);var n=h.forwardRef(function(e,n){var o=e.visible,r=void 0===o||o,i=e.removeOnLeave,a=void 0===i||i,l=e.forceRender,s=e.children,c=e.motionName,d=e.leavedClassName,u=e.eventProps,p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,h.useContext(Xa).motion),f=(0,h.useRef)(),m=(0,h.useRef)(),g=$(function(e,t,n,o){var r,i,a,l=o.motionEnter,s=void 0===l||l,c=o.motionAppear,d=void 0===c||c,u=o.motionLeave,p=void 0===u||u,f=o.motionDeadline,m=o.motionLeaveImmediately,g=o.onAppearPrepare,v=o.onEnterPrepare,b=o.onLeavePrepare,y=o.onAppearStart,C=o.onEnterStart,x=o.onLeaveStart,w=o.onAppearActive,S=o.onEnterActive,E=o.onLeaveActive,O=o.onAppearEnd,I=o.onEnterEnd,N=o.onLeaveEnd,j=o.onVisibleChanged,M=$(Po(),2),P=M[0],R=M[1],L=(r=Qa,i=$(h.useReducer(function(e){return e+1},0),2)[1],a=h.useRef(r),[Mo(function(){return a.current}),Mo(function(e){a.current="function"==typeof e?e(a.current):e,i()})]),T=$(L,2),z=T[0],B=T[1],H=$(Po(null),2),_=H[0],A=H[1],D=z(),F=(0,h.useRef)(!1),W=(0,h.useRef)(null);function K(){return n()}var V=(0,h.useRef)(!1);function q(){B(Qa),A(null,!0)}var G=Mo(function(e){var t=z();if(t!==Qa){var n=K();if(!e||e.deadline||e.target===n){var o,r=V.current;t===Ja&&r?o=null==O?void 0:O(n,e):t===el&&r?o=null==I?void 0:I(n,e):t===tl&&r&&(o=null==N?void 0:N(n,e)),r&&!1!==o&&q()}}}),X=$($l(G),1)[0],U=function(e){switch(e){case Ja:return k(k(k({},ol,g),rl,y),il,w);case el:return k(k(k({},ol,v),rl,C),il,S);case tl:return k(k(k({},ol,b),rl,x),il,E);default:return{}}},Z=h.useMemo(function(){return U(D)},[D]),Y=$(jl(D,!e,function(e){if(e===ol){var t=Z[ol];return t?t(K()):Il}var n;return J in Z&&A((null===(n=Z[J])||void 0===n?void 0:n.call(Z,K(),null))||null),J===il&&D!==Qa&&(X(K()),f>0&&(clearTimeout(W.current),W.current=setTimeout(function(){G({deadline:!0})},f))),J===ll&&q(),!0}),2),Q=Y[0],J=Y[1],ee=Nl(J);V.current=ee;var te=(0,h.useRef)(null);Sl(function(){if(!F.current||te.current!==t){R(t);var n,o=F.current;F.current=!0,!o&&t&&d&&(n=Ja),o&&t&&s&&(n=el),(o&&!t&&p||!o&&m&&!t&&p)&&(n=tl);var r=U(n);n&&(e||r[ol])?(B(n),Q()):B(Qa),te.current=t}},[t]),(0,h.useEffect)(function(){(D===Ja&&!d||D===el&&!s||D===tl&&!p)&&B(
1Qa)},[d,s,p]),(0,h.useEffect)(function(){return function(){F.current=!1,clearTimeout(W.current)}},[]);var ne=h.useRef(!1);(0,h.useEffect)(function(){P&&(ne.current=!0),void 0!==P&&D===Qa&&((ne.current||P)&&(null==j||j(P)),ne.current=!0)},[P,D]);var oe=_;return Z[ol]&&J===rl&&(oe=he({transition:"none"},oe)),[D,J,oe,null!=P?P:t]}(p,r,function(){try{return f.current instanceof HTMLElement?f.current:zi(m.current)}catch(e){return null}},e),4),v=g[0],b=g[1],y=g[2],C=g[3],x=h.useRef(C);C&&(x.current=!0);var w,S=h.useCallback(function(e){f.current=e,Do(n,e)},[n]),E=he(he({},u),{},{visible:r});if(s)if(v===Qa)w=C?s(he({},E),S):!a&&x.current&&d?s(he(he({},E),{},{className:d}),S):l||!a&&!d?s(he(he({},E),{},{style:{display:"none"}}),S):null;else{var O;b===ol?O="prepare":Nl(b)?O="active":b===rl&&(O="start");var I=wl(c,"".concat(v,"-").concat(O));w=s(he(he({},E),{},{className:N()(wl(c,v),k(k({},I,I&&O),c,"string"==typeof c)),style:y}),S)}else w=null;return h.isValidElement(w)&&Ko(w)&&(qo(w)||(w=h.cloneElement(w,{ref:S}))),h.createElement(Ya,{ref:m},w)});return n.displayName="CSSMotion",n}(yl);var Pl="add",Rl="keep",Ll="remove",Tl="removed";function zl(e){var t;return he(he({},t=e&&"object"===S(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Bl(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(zl)}var Hl=["component","children","onVisibleChanged","onAllRemoved"],_l=["status"],Al=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Dl=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ml,t=function(t){Co(o,t);var n=$o(o);function o(){var e;Mt(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return k(bo(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),k(bo(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:he(he({},e),{},{status:Tl})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==Tl}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Rt(o,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,o=this.props,r=o.component,i=o.children,a=o.onVisibleChanged,l=(o.onAllRemoved,O(o,Hl)),s=r||h.Fragment,c={};return Al.forEach(function(e){c[e]=l[e],delete l[e]}),delete l.keys,h.createElement(s,l,n.map(function(n,o){var r=n.status,l=O(n,_l),s=r===Pl||r===Rl;return h.createElement(e,g({},c,{key:l.key,visible:s,eventProps:l,onVisibleChanged:function(e){null==a||a(e,{key:l.key}),e||t.removeKey(l.key)}}),function(e,t){return i(he(he({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=Bl(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=Bl(e),a=Bl(t);i.forEach(function(e){for(var t=!1,i=o;i<r;i+=1){var l=a[i];if(l.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map(function(e){return he(he({},e),{},{status:Pl})})),o=i),n.push(he(he({},l),{},{status:Rl})),o+=1,t=!0;break}}t||n.push(he(he({},e),{},{status:Ll}))}),o<r&&(n=n.concat(a.slice(o).map(function(e){return he(he({},e),{},{status:Pl})})));var l={};return n.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1}),Object.keys(l).filter(function(e){return l[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,o=t.status;return n!==e||o!==Ll})).forEach(function(t){t.key===e&&(t.status=Rl)})}),n}(o,r);return{keyEntities:i.filter(function(e){var t=o.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==Tl||e.status!==Ll})}}}]),o}(h.Component);return k(t,"defaultProps",{component:"div"}),t}(yl),Fl=Ml;function Wl(e){var t=e.prefixCls,n=e.align,o=e.arrow,r=e.arrowPos,i=o||{},a=i.className,l=i.content,s=r.x,c=void 0===s?0:s,d=r.y,u=void 0===d?0:d,p=h.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],y=g[0],C=g[1];v!==y&&["t","b"].includes(v)?"t"===v?f.top=0:f.bottom=0:f.top=u,b!==C&&["l","r"].includes(b)?"l"===b?f.left=0:f.right=0:f.left=c}return h.createElement("div",{ref:p,className:N()("".concat(t,"-arrow"),a),style:f},l)}function Kl(e){var t=e.prefixCls,n=e.open,o=e.zIndex,r=e.mask,i=e.motion;return r?h.createElement(Fl,g({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return h.createElement("div",{style:{zIndex:o},className:N()("".concat(t,"-mask"),n)})}):null}var Vl=h.memo(function(e){return e.children},function(e,t){return t.cache});const ql=Vl;var Gl=h.forwardRef(function(e,t){var n=e.popup,o=e.className,r=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,d=e.fresh,u=e.onClick,p=e.mask,f=e.arrow,m=e.arrowPos,v=e.align,b=e.motion,y=e.maskMotion,C=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,S=e.portal,E=e.zIndex,k=e.onMouseEnter,O=e.onMouseLeave,I=e.onPointerEnter,j=e.onPointerDownCapture,M=e.ready,P=e.offsetX,R=e.offsetY,L=e.offsetR,T=e.offsetB,z=e.onAlign,B=e.onPrepare,H=e.stretch,_=e.targetWidth,A=e.targetHeight,D="function"==typeof n?n():n,F=s||c,W=(null==x?void 0:x.length)>
vendor: 11,036 bytes, line 1
10,K=$(h.useState(!x||!W),2),V=K[0],q=K[1];if(sn(function(){!V&&W&&a&&q(!0)},[V,W,a]),!V)return null;var G="auto",X={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(M||!s){var U,Z=v.points,Y=v.dynamicInset||(null===(U=v._experimental)||void 0===U?void 0:U.dynamicInset),Q=Y&&"r"===Z[0][1],J=Y&&"b"===Z[0][0];Q?(X.right=L,X.left=G):(X.left=P,X.right=G),J?(X.bottom=T,X.top=G):(X.top=R,X.bottom=G)}var ee={};return H&&(H.includes("height")&&A?ee.height=A:H.includes("minHeight")&&A&&(ee.minHeight=A),H.includes("width")&&_?ee.width=_:H.includes("minWidth")&&_&&(ee.minWidth=_)),s||(ee.pointerEvents="none"),h.createElement(S,{open:C||F,getContainer:x&&function(){return x(a)},autoDestroy:w},h.createElement(Kl,{prefixCls:r,open:s,zIndex:E,mask:p,motion:y}),h.createElement(pa,{onResize:z,disabled:!s},function(e){return h.createElement(Fl,g({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(r,"-hidden")},b,{onAppearPrepare:B,onEnterPrepare:B,visible:s,onVisibleChanged:function(e){var t;null==b||null===(t=b.onVisibleChanged)||void 0===t||t.call(b,e),l(e)}}),function(n,a){var l=n.className,c=n.style,p=N()(r,l,o);return h.createElement("div",{ref:Fo(e,t,a),className:p,style:he(he(he(he({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},X),ee),c),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:k,onMouseLeave:O,onPointerEnter:I,onClick:u,onPointerDownCapture:j},f&&h.createElement(Wl,{prefixCls:r,arrow:f,arrowPos:m,align:v}),h.createElement(ql,{cache:!s&&!d},D))})}))});const Xl=Gl;var Ul=h.forwardRef(function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=Ko(n),i=h.useCallback(function(e){Do(t,o?o(e):e)},[o]),a=Wo(i,qo(n));return r?h.cloneElement(n,{ref:a}):n});const Zl=Ul,Yl=h.createContext(null);function Ql(e){return e?Array.isArray(e)?e:[e]:[]}const Jl=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1};function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ts(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function ns(e){return e.ownerDocument.defaultView}function os(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=ns(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some(function(e){return o.includes(e)})&&t.push(n),n=n.parentElement}return t}function rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function is(e){return rs(parseFloat(e),0)}function as(e,t){var n=he({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=ns(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),d=e.offsetHeight,u=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=is(i),g=is(a),h=is(l),v=is(s),b=rs(Math.round(c.width/p*1e3)/1e3),y=rs(Math.round(c.height/d*1e3)/1e3),C=(p-f-h-v)*b,x=(d-u-m-g)*y,w=m*y,$=g*y,S=h*b,E=v*b,k=0,O=0;if("clip"===o){var I=is(r);k=I*b,O=I*y}var N=c.x+S-k,j=c.y+w-O,M=N+c.width+2*k-S-E-C,P=j+c.height+2*O-w-$-x;n.left=Math.max(n.left,N),n.top=Math.max(n.top,j),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,P)}}),n}function ls(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ss(e,t){var n=$(t||[],2),o=n[0],r=n[1];return[ls(e.width,o),ls(e.height,r)]}function cs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function ds(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function us(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,o){return o===t?n[e]||"c":e}).join("")}n.dn(Jl);var ps=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const fs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wa,t=h.forwardRef(function(t,n){var o=t.prefixCls,r=void 0===o?"rc-trigger-popup":o,i=t.children,a=t.action,l=void 0===a?"hover":a,s=t.showAction,c=t.hideAction,d=t.popupVisible,u=t.defaultPopupVisible,p=t.onPopupVisibleChange,f=t.afterPopupVisibleChange,m=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,b=t.focusDelay,y=t.blurDelay,C=t.mask,x=t.maskClosable,w=void 0===x||x,S=t.getPopupContainer,E=t.forceRender,k=t.autoDestroy,I=t.destroyPopupOnHide,j=t.popup,M=t.popupClassName,P=t.popupStyle,R=t.popupPlacement,L=t.builtinPlacements,T=void 0===L?{}:L,z=t.popupAlign,B=t.zIndex,H=t.stretch,_=t.getPopupClassNameFromAlign,A=t.fresh,D=t.alignPoint,F=t.onPopupClick,W=t.onPopupAlign,K=t.arrow,V=t.popupMotion,q=t.maskMotion,G=t.popupTransitionName,X=t.popupAnimation,U=t.maskTransitionName,Z=t.maskAnimation,Y=t.className,Q=t.getTriggerDOMNode,J=O(t,ps),ee=k||I||!1,te=$(h.useState(!1),2),ne=te[0],oe=te[1];sn(function(){oe(Ni())},[]);var re=h.useRef({}),ie=h.useContext(Yl),ae=h.useMemo(function(){return{registerSubPopup:function(e,t){re.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}},[ie]),le=qa(),se=$(h.useState(null),2),ce=se[0],de=se[1],ue=h.useRef(null),pe=Mo(function(e){ue.current=e,Li(e)&&ce!==e&&de(e),null==ie||ie.registerSubPopup(le,e)}),fe=$(h.useState(null),2),me=fe[0],ge=fe[1],ve=h.useRef(null),be=Mo(function(e){Li(e)&&me!==e&&(ge(e),ve.current=e)}),ye=h.Children.only(i),Ce=(null==ye?void 0:ye.props)||{},xe={},we=Mo(function(e){var t,n,o=me;return(null==o?void 0:o.contains(e))||(null===(t=je(o))||void 0===t?void 0:t.host)===e||e===o||(null==ce?void 0:ce.contains(e))||(null===(n=je(ce))||void 0===n?void 0:n.host)===e||e===ce||Object.values(re.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),$e=ts(r,V,X,G),Se=ts(r,q,Z,U),Ee=$(h.useState(u||!1),2),ke=Ee[0],Oe=Ee[1],Ie=null!=d?d:ke,Ne=Mo(function(e){void 0===d&&Oe(e)});sn(function(){Oe(d||!1)},[d]);var Me=h.useRef(Ie);Me.current=Ie;var Pe=h.useRef([]);Pe.current=[];var Re=Mo(function(e){var t;Ne(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:Ie)!==e&&(Pe.current.push(e),null==p||p(e))}),Le=h.useRef(),Te=function(){clearTimeout(Le.current)},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Te(),0===t?Re(e):Le.current=setTimeout(function(){Re(e)},1e3*t)};h.useEffect(function(){return Te},[]);var Be=$(h.useState(!1),2),He=Be[0],_e=Be[1];sn(function(e){e&&!Ie||_e(!0)},[Ie]);var Ae=$(h.useState(null),2),De=Ae[0],Fe=Ae[1],We=$(h.useState(null),2),Ke=We[0],Ve=We[1],qe=function(e){Ve([e.clientX,e.clientY])},Ge=function(e,t,n,o,r,i,a){var l=$(h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),2),s=l[0],c=l[1],d=h.useRef(0),u=h.useMemo(function(){return t?os(t):[]},[t]),p=h.useRef({});e||(p.current={});var f=Mo(function(){if(t&&n&&e){var l,s,d,f,m,g=t,h=g.ownerDocument,v=ns(g),b=v.getComputedStyle(g).position,y=g.style.left,C=g.style.top,x=g.style.right,w=g.style.bottom,S=g.style.overflow,E=he(he({},r[o]),i),k=h.createElement("div");if(null===(l=g.parentElement)||void 0===l||l.appendChild(k),k.style.left="".concat(g.offsetLeft,"px"),k.style.top="".concat(g.offsetTop,"px"),k.style.position=b,k.style.height="".concat(g.offsetHeight,"px"),k.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var O,I,N=n.getBoundingClientRect();N.x=null!==(O=N.x)&&void 0!==O?O:N.left,N.y=null!==(I=N.y)&&void 0!==I?I:N.top,m={x:N.x,y:N.y,width:N.width,height:N.height}}var j=g.getBoundingClientRect(),M=v.getComputedStyle(g),P=M.height,R=M.width;j.x=null!==(s=j.x)&&void 0!==s?s:j.left,j.y=null!==(d=j.y)&&void 0!==d?d:j.top;var L=h.documentElement,T=L.clientWidth,z=L.clientHeight,B=L.scrollWidth,H=L.scrollHeight,_=L.scrollTop,A=L.scrollLeft,D=j.height,F=j.width,W=m.height,K=m.width,V={left:0,top:0,right:T,bottom:z},q={left:-A,top:-_,right:B-A,bottom:H-_},G=E.htmlRegion,X="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=X);var Z=G===U,Y=as(q,u),Q=as(V,u),J=G===X?Q:Y,ee=Z?Q:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=y,g.style.top=C,g.style.right=x,g.style.bottom=w,g.style.overflow=S,null===(f=g.parentElement)||void 0===f||f.removeChild(k);var ne=rs(Math.round(F/parseFloat(R)*1e3)/1e3),oe=rs(Math.round(D/parseFloat(P)*1e3)/1e3);if(0===ne||0===oe||Li(n)&&!Jl(n))return;var re=E.offset,ie=E.targetOffset,ae=$(ss(j,re),2),le=ae[0],se=ae[1],ce=$(ss(m,ie),2),de=ce[0],ue=ce[1];m.x-=de,m.y-=ue;var pe=$(E.points||[],2),fe=pe[0],me=cs(pe[1]),ge=cs(fe),ve=ds(m,me),be=ds(j,ge),ye=he({},E),Ce=ve.x-be.x+le,xe=ve.y-be.y+se;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,o=j.x+e,r=j.y+t,i=o+F,a=r+D,l=Math.max(o,n.left),s=Math.max(r,n.top),c=Math.min(i,n.right),d=Math.min(a,n.bottom);return Math.max(0,(c-l)*(d-s))}var we,$e,Se,Ee,ke=mt(Ce,xe),Oe=mt(Ce,xe,Q),Ie=ds(m,["t","l"]),Ne=ds(j,["t","l"]),je=ds(m,["b","r"]),Me=ds(j,["b","r"]),Pe=E.overflow||{},Re=Pe.adjustX,Le=Pe.adjustY,Te=Pe.shiftX,ze=Pe.shiftY,Be=function(e){return"boolean"==typeof e?e:e>=0};function gt(){we=j.y+xe,$e=we+D,Se=j.x+Ce,Ee=Se+F}gt();var He=Be(Le),_e=ge[0]===me[0];if(He&&"t"===ge[0]&&($e>ee.bottom||p.current.bt)){var Ae=xe;_e?Ae-=D-W:Ae=Ie.y-Me.y-se;var De=mt(Ce,Ae),Fe=mt(Ce,Ae,Q);De>ke||De===ke&&(!Z||Fe>=Oe)?(p.current.bt=!0,xe=Ae,se=-se,ye.points=[us(ge,0),us(me,0)]):p.current.bt=!1}if(He&&"b"===ge[0]&&(we<ee.top||p.current.tb)){var We=xe;_e?We+=D-W:We=je.y-Ne.y-se;var Ke=mt(Ce,We),Ve=mt(Ce,We,Q);Ke>ke||Ke===ke&&(!Z||Ve>=Oe)?(p.current.tb=!0,xe=We,se=-se,ye.points=[us(ge,0),us(me,0)]):p.current.tb=!1}var qe=Be(Re),Ge=ge[1]===me[1];if(qe&&"l"===ge[1]&&(Ee>ee.right||p.current.rl)){var Xe=Ce;Ge?Xe-=F-K:Xe=Ie.x-Me.x-le;var Ue=mt(Xe,xe),Ze=mt(Xe,xe,Q);Ue>ke||Ue===ke&&(!Z||Ze>=Oe)?(p.current.rl=!0,Ce=Xe,le=-le,ye.points=[us(ge,1),us(me,1)]):p.current.rl=!1}if(qe&&"r"===ge[1]&&(Se<ee.left||p.current.lr)){var Ye=Ce;
1Ge?Ye+=F-K:Ye=je.x-Ne.x-le;var Qe=mt(Ye,xe),Je=mt(Ye,xe,Q);Qe>ke||Qe===ke&&(!Z||Je>=Oe)?(p.current.lr=!0,Ce=Ye,le=-le,ye.points=[us(ge,1),us(me,1)]):p.current.lr=!1}gt();var et=!0===Te?0:Te;"number"==typeof et&&(Se<Q.left&&(Ce-=Se-Q.left-le,m.x+K<Q.left+et&&(Ce+=m.x-Q.left+K-et)),Ee>Q.right&&(Ce-=Ee-Q.right-le,m.x>Q.right-et&&(Ce+=m.x-Q.right+et)));var tt=!0===ze?0:ze;"number"==typeof tt&&(we<Q.top&&(xe-=we-Q.top-se,m.y+W<Q.top+tt&&(xe+=m.y-Q.top+W-tt)),$e>Q.bottom&&(xe-=$e-Q.bottom-se,m.y>Q.bottom-tt&&(xe+=m.y-Q.bottom+tt)));var nt=j.x+Ce,ot=nt+F,rt=j.y+xe,it=rt+D,at=m.x,lt=at+K,st=m.y,ct=st+W,dt=(Math.max(nt,at)+Math.min(ot,lt))/2-nt,ut=(Math.max(rt,st)+Math.min(it,ct))/2-rt;null==a||a(t,ye);var pt=te.right-j.x-(Ce+j.width),ft=te.bottom-j.y-(xe+j.height);1===ne&&(Ce=Math.floor(Ce),pt=Math.floor(pt)),1===oe&&(xe=Math.floor(xe),ft=Math.floor(ft)),c({ready:!0,offsetX:Ce/ne,offsetY:xe/oe,offsetR:pt/ne,offsetB:ft/oe,arrowX:dt/ne,arrowY:ut/oe,scaleX:ne,scaleY:oe,align:ye})}}),m=function(){c(function(e){return he(he({},e),{},{ready:!1})})};return sn(m,[o]),sn(function(){e||m()},[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&f()})}]}(Ie,ce,D&&null!==Ke?Ke:me,R,T,z,W),Xe=$(Ge,11),Ue=Xe[0],Ze=Xe[1],Ye=Xe[2],Qe=Xe[3],Je=Xe[4],et=Xe[5],tt=Xe[6],nt=Xe[7],ot=Xe[8],rt=Xe[9],it=Xe[10],at=function(e,t,n,o){return h.useMemo(function(){var r=Ql(null!=n?n:t),i=Ql(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,o])}(ne,l,s,c),lt=$(at,2),st=lt[0],ct=lt[1],dt=st.has("click"),ut=ct.has("click")||ct.has("contextMenu"),pt=Mo(function(){He||it()});!function(e,t,n,o){sn(function(){if(e&&t&&n){var r=n,i=os(t),a=os(r),l=ns(r),s=new Set([l].concat(Ot(i),Ot(a)));function c(){o(),Me.current&&D&&ut&&ze(!1)}return s.forEach(function(e){e.addEventListener("scroll",c,{passive:!0})}),l.addEventListener("resize",c,{passive:!0}),o(),function(){s.forEach(function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)})}}},[e,t,n])}(Ie,me,ce,pt),sn(function(){pt()},[Ke,R]),sn(function(){!Ie||null!=T&&T[R]||pt()},[JSON.stringify(z)]);var ft=h.useMemo(function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(es(null===(l=e[s])||void 0===l?void 0:l.points,r,o))return"".concat(t,"-placement-").concat(s)}return""}(T,r,rt,D);return N()(e,null==_?void 0:_(rt))},[rt,_,T,r,D]);h.useImperativeHandle(n,function(){return{nativeElement:ve.current,popupElement:ue.current,forceAlign:pt}});var mt=$(h.useState(0),2),gt=mt[0],ht=mt[1],vt=$(h.useState(0),2),bt=vt[0],yt=vt[1],Ct=function(){if(H&&me){var e=me.getBoundingClientRect();ht(e.width),yt(e.height)}};function xt(e,t,n,o){xe[e]=function(r){var i;null==o||o(r),ze(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];null===(i=Ce[e])||void 0===i||i.call.apply(i,[Ce,r].concat(l))}}sn(function(){De&&(it(),De(),Fe(null))},[De]),(dt||ut)&&(xe.onClick=function(e){var t;Me.current&&ut?ze(!1):!Me.current&&dt&&(qe(e),ze(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Ce.onClick)||void 0===t||t.call.apply(t,[Ce,e].concat(o))});var wt,$t,St=function(e,t,n,o,r,i,a,l){var s=h.useRef(e);s.current=e;var c=h.useRef(!1);return h.useEffect(function(){if(t&&o&&(!r||i)){var e=function(){c.current=!1},d=function(e){var t;!s.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||l(!1)},u=ns(o);u.addEventListener("pointerdown",e,!0),u.addEventListener("mousedown",d,!0),u.addEventListener("contextmenu",d,!0);var p=je(n);return p&&(p.addEventListener("mousedown",d,!0),p.addEventListener("contextmenu",d,!0)),function(){u.removeEventListener("pointerdown",e,!0),u.removeEventListener("mousedown",d,!0),u.removeEventListener("contextmenu",d,!0),p&&(p.removeEventListener("mousedown",d,!0),p.removeEventListener("contextmenu",d,!0))}}},[t,n,o,r,i]),function(){c.current=!0}}(Ie,ut,me,ce,C,w,we,ze),Et=st.has("hover"),kt=ct.has("hover");Et&&(xt("onMouseEnter",!0,m,function(e){qe(e)}
1),xt("onPointerEnter",!0,m,function(e){qe(e)}),wt=function(e){(Ie||He)&&null!=ce&&ce.contains(e.target)&&ze(!0,m)},D&&(xe.onMouseMove=function(e){var t;null===(t=Ce.onMouseMove)||void 0===t||t.call(Ce,e)})),kt&&(xt("onMouseLeave",!1,v),xt("onPointerLeave",!1,v),$t=function(){ze(!1,v)}),st.has("focus")&&xt("onFocus",!0,b),ct.has("focus")&&xt("onBlur",!1,y),st.has("contextMenu")&&(xe.onContextMenu=function(e){var t;Me.current&&ct.has("contextMenu")?ze(!1):(qe(e),ze(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Ce.onContextMenu)||void 0===t||t.call.apply(t,[Ce,e].concat(o))}),Y&&(xe.className=N()(Ce.className,Y));var It=h.useRef(!1);It.current||(It.current=E||Ie||He);var Nt=he(he({},Ce),xe),jt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){J[e]&&(jt[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Nt[e])||void 0===t||t.call.apply(t,[Nt].concat(o)),J[e].apply(J,o)})});var Mt=h.cloneElement(ye,he(he({},Nt),jt)),Pt={x:et,y:tt},Rt=K?he({},!0!==K?K:{}):null;return h.createElement(h.Fragment,null,h.createElement(pa,{disabled:!Ie,ref:be,onResize:function(){Ct(),pt()}},h.createElement(Zl,{getTriggerDOMNode:Q},Mt)),It.current&&h.createElement(Yl.Provider,{value:ae},h.createElement(Xl,{portal:e,ref:pe,prefixCls:r,popup:j,className:N()(M,ft),style:P,target:me,onMouseEnter:wt,onMouseLeave:$t,onPointerEnter:wt,zIndex:B,open:Ie,keepDom:He,fresh:A,onClick:F,onPointerDownCapture:St,mask:C,motion:$e,maskMotion:Se,onVisibleChanged:function(e){_e(!1),it(),null==f||f(e)},onPrepare:function(){return new Promise(function(e){Ct(),Fe(function(){return e})})},forceRender:E,autoDestroy:ee,getPopupContainer:S,align:rt,arrow:Rt,arrowPos:Pt,ready:Ue,offsetX:Ze,offsetY:Ye,offsetR:Qe,offsetB:Je,onAlign:pt,stretch:H,targetWidth:gt/nt,targetHeight:bt/ot})))});return t}(Wa);var ms={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(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=ms.F1&&t<=ms.F12)return!1;switch(t){case ms.ALT:case ms.CAPS_LOCK:case ms.CONTEXT_MENU:case ms.CTRL:case ms.DOWN:case ms.END:case ms.ESC:case ms.HOME:case ms.INSERT:case ms.LEFT:case ms.MAC_FF_META:case ms.META:case ms.NUMLOCK:case ms.NUM_CENTER:case ms.PAGE_DOWN:case ms.PAGE_UP:case ms.PAUSE:case ms.PRINT_SCREEN:case ms.RIGHT:case ms.SHIFT:case ms.UP:case ms.WIN_KEY:case ms.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=ms.ZERO&&e<=ms.NINE)return!0;if(e>=ms.NUM_ZERO&&e<=ms.NUM_MULTIPLY)return!0;if(e>=ms.A&&e<=ms.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case ms.SPACE:case ms.QUESTION_MARK:case ms.NUM_PLUS:case ms.NUM_MINUS:case ms.NUM_PERIOD:case ms.NUM_DIVISION:case ms.SEMICOLON:case ms.DASH:case ms.EQUALS:case ms.COMMA:case ms.PERIOD:case ms.SLASH:case ms.APOSTROPHE:case ms.SINGLE_QUOTE:case ms.OPEN_SQUARE_BRACKET:case ms.BACKSLASH:case ms.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const gs=ms;var hs=gs.ESC,vs=gs.TAB;const bs=(0,h.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,r=e.prefixCls,i=(0,h.useMemo)(function(){return"function"==typeof n?n():n},[n]),a=Fo(t,qo(i));return v().createElement(v().Fragment,null,o&&v().createElement("div",{className:"".concat(r,"-arrow")}),v().cloneElement(i,{ref:Ko(i)?a:void 0}))});var ys={adjustX:1,adjustY:1},Cs=[0,0];const xs={topLeft:{points:["bl","tl"],overflow:ys,offset:[0,-4],targetOffset:Cs},top:{points:["bc","tc"],overflow:ys,offset:[0,-4],targetOffset:Cs},topRight:{points:["br","tr"],overflow:ys,offset:[0,-4],targetOffset:Cs},bottomLeft:{points:["tl","bl"],overflow:ys,offset:[0,4],targetOffset:Cs},bottom:{points:["tc","bc"],overflow:ys,offset:[0,4],targetOffset:Cs},bottomRight:{points:["tr","br"],overflow:ys,offset:[0,4],targetOffset:Cs}};var ws=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoF
1ocus","overlay","children","onVisibleChange"];function $s(e,t){var n,o=e.arrow,r=void 0!==o&&o,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,d=e.placement,u=void 0===d?"bottomLeft":d,p=e.placements,f=void 0===p?xs:p,m=e.getPopupContainer,b=e.showAction,y=e.hideAction,C=e.overlayClassName,x=e.overlayStyle,w=e.visible,S=e.trigger,E=void 0===S?["hover"]:S,I=e.autoFocus,j=e.overlay,M=e.children,P=e.onVisibleChange,R=O(e,ws),L=$(v().useState(),2),T=L[0],z=L[1],B="visible"in e?w:T,H=v().useRef(null),_=v().useRef(null),A=v().useRef(null);v().useImperativeHandle(t,function(){return H.current});var D=function(e){z(e),null==P||P(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,i=e.overlayRef,a=h.useRef(!1),l=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case hs:l();break;case vs:var t=!1;a.current||(t=s()),t?e.preventDefault():l()}};h.useEffect(function(){return t?(window.addEventListener("keydown",c),r&&ya(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}({visible:B,triggerRef:A,onVisibleChange:D,autoFocus:I,overlayRef:_});var F,W,K,V=function(){return v().createElement(bs,{ref:_,overlay:j,prefixCls:a,arrow:r})},q=v().cloneElement(M,{className:N()(null===(n=M.props)||void 0===n?void 0:n.className,B&&(F=e.openClassName,void 0!==F?F:"".concat(a,"-open"))),ref:Ko(M)?Fo(A,qo(M)):void 0}),G=y;return G||-1===E.indexOf("contextMenu")||(G=["click"]),v().createElement(fs,g({builtinPlacements:f},R,{prefixCls:a,ref:H,popupClassName:N()(C,k({},"".concat(a,"-show-arrow"),r)),popupStyle:x,action:E,showAction:b,hideAction:G,popupPlacement:u,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:B,stretch:(W=e.minOverlayWidthMatchTrigger,K=e.alignPoint,("minOverlayWidthMatchTrigger"in e?W:!K)?"minWidth":""),popup:"function"==typeof j?V:V(),onPopupVisibleChange:D,onPopupClick:function(t){var n=e.onOverlayClick;z(!1),n&&n(t)},getPopupContainer:m}),q)}const Ss=v().forwardRef($s);var Es=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ks=void 0;function Os(e,t){var n=e.prefixCls,o=e.invalidate,r=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,d=e.className,u=e.style,p=e.children,f=e.display,m=e.order,v=e.component,b=void 0===v?"div":v,y=O(e,Es),C=a&&!f;function x(e){s(c,e)}h.useEffect(function(){return function(){x(null)}},[]);var w,$=i&&r!==ks?i(r,{index:m}):p;o||(w={opacity:C?0:1,height:C?0:ks,overflowY:C?"hidden":ks,order:a?m:ks,pointerEvents:C?"none":ks,position:C?"absolute":ks});var S={};C&&(S["aria-hidden"]=!0);var E=h.createElement(b,g({className:N()(!o&&n,d),style:he(he({},w),u)},S,y,{ref:t}),$);return a&&(E=h.createElement(pa,{onResize:function(e){x(e.offsetWidth)},disabled:l},E)),E}var Is=h.forwardRef(Os);Is.displayName="Item";const Ns=Is;
1function js(e,t){var n=$(h.useState(t),2),o=n[0],r=n[1];return[o,Mo(function(t){e(function(){r(t)})})]}var Ms=v().createContext(null),Ps=["component"],Rs=["className"],Ls=["className"],Ts=function(e,t){var n=h.useContext(Ms);if(!n){var o=e.component,r=void 0===o?"div":o,i=O(e,Ps);return h.createElement(r,g({},i,{ref:t}))}var a=n.className,l=O(n,Rs),s=e.className,c=O(e,Ls);return h.createElement(Ms.Provider,{value:null},h.createElement(Ns,g({ref:t,className:N()(a,s)},l,c)))},zs=h.forwardRef(Ts);zs.displayName="RawItem";const Bs=zs;var Hs=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],_s="responsive",As="invalidate";function Ds(e){return"+ ".concat(e.length," ...")}function Fs(e,t){var n,o=e.prefixCls,r=void 0===o?"rc-overflow":o,i=e.data,a=void 0===i?[]:i,l=e.renderItem,s=e.renderRawItem,c=e.itemKey,d=e.itemWidth,u=void 0===d?10:d,p=e.ssr,f=e.style,m=e.className,v=e.maxCount,b=e.renderRest,y=e.renderRawRest,C=e.prefix,x=e.suffix,w=e.component,S=void 0===w?"div":w,E=e.itemComponent,k=e.onVisibleChange,I=O(e,Hs),j="full"===p,M=(n=h.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)ya(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,Pi.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})})),n.current.push(e)}),P=$(js(M,null),2),R=P[0],L=P[1],T=R||0,z=$(js(M,new Map),2),B=z[0],H=z[1],_=$(js(M,0),2),A=_[0],D=_[1],F=$(js(M,0),2),W=F[0],K=F[1],V=$(js(M,0),2),q=V[0],G=V[1],X=$(js(M,0),2),U=X[0],Z=X[1],Y=$((0,h.useState)(null),2),Q=Y[0],J=Y[1],ee=$((0,h.useState)(null),2),te=ee[0],ne=ee[1],oe=h.useMemo(function(){return null===te&&j?Number.MAX_SAFE_INTEGER:te||0},[te,R]),re=$((0,h.useState)(!1),2),ie=re[0],ae=re[1],le="".concat(r,"-item"),se=Math.max(A,W),ce=v===_s,de=a.length&&ce,ue=v===As,pe=de||"number"==typeof v&&a.length>v,fe=(0,h.useMemo)(function(){var e=a;return de?e=null===R&&j?a:a.slice(0,Math.min(a.length,T/u)):"number"==typeof v&&(e=a.slice(0,v)),e},[a,u,R,v,de]),me=(0,h.useMemo)(function(){return de?a.slice(oe+1):a.slice(fe.length)},[a,fe,de,oe]),ge=(0,h.useCallback)(function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t},[c]),ve=(0,h.useCallback)(l||function(e){return e},[l]);function be(e,t,n){(te!==e||void 0!==t&&t!==Q)&&(ne(e),n||(ae(e<a.length-1),null==k||k(e)),void 0!==t&&J(t))}function ye(e,t){H(function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o})}function Ce(e){return B.get(ge(fe[e],e))}sn(function(){if(T&&"number"==typeof se&&fe){var e=q+U,t=fe.length,n=t-1;if(!t)return void be(0,null);for(var o=0;o<t;o+=1){var r=Ce(o);if(j&&(r=r||0),void 0===r){be(o-1,void 0,!0);break}if(e+=r,0===n&&e<=T||o===n-1&&e+Ce(n)<=T){be(n,null);break}if(e+se>T){be(o-1,e-r-U+W);break}}x&&Ce(0)+U>T&&J(null)}},[T,B,W,q,U,ge,fe]);var xe=ie&&!!me.length,we={};null!==Q&&de&&(we={position:"absolute",left:Q,top:0});var $e={prefixCls:le,responsive:de,component:E,invalidate:ue},Se=s?function(e,t){var n=ge(e,t);return h.createElement(Ms.Provider,{key:n,value:he(he({},$e),{},{order:t,item:e,itemKey:n,registerSize:ye,display:t<=oe})},s(e,t))}:function(e,t){var n=ge(e,t);return h.createElement(Ns,g({},$e,{order:t,key:n,item:e,renderItem:ve,itemKey:n,registerSize:ye,display:t<=oe}))},Ee={order:xe?oe:Number.MAX_SAFE_INTEGER,className:"".concat(le,"-rest"),registerSize:function(e,t){K(t),D(W)},display:xe},ke=b||Ds,Oe=y?h.createElement(Ms.Provider,{value:he(he({},$e),Ee)},y(me)):h.createElement(Ns,g({},$e,Ee),"function"==typeof ke?ke(me):ke),Ie=h.createElement(S,g({className:N()(!ue&&r,m),style:f,ref:t},I),C&&h.createElement(Ns,g({},$e,{responsive:ce,responsiveDisabled:!de,order:-1,className:"".concat(le,"-prefix"),registerSize:function(e,t){G(t)},display:!0}),C),fe.map(Se),pe?Oe:null,x&&h.createElement(Ns,g({},$e,{responsive:ce,responsiveDisabled:!de,order:oe,className:"".concat(le,"-suffix"),registerSize:function(e,t){Z(t)},display:!0,style:we}),x));return ce?h.createElement(pa,{onResize:function(e,t){L(t.clientWidth)},disabled:!de},Ie):Ie}var Ws=h.forwardRef(Fs);Ws.displayName="Overflow",Ws.Item=Bs,Ws.RESPONSIVE=_s,Ws.INVALIDATE=As;const Ks=Ws;var Vs=h.createContext(null);function qs(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Gs(e){return qs(h.useContext(Vs),e)}var Xs=["children","locked"],Us=h.createContext(null);function Zs(e){var t=e.children,n=e.locked,o=O(e,Xs),r=h.useContext(Us),i=Nt(function(){return e=o,t=he({},r),Object.keys(e).forEach(function(n){var o=e[n];void 0!==o&&(t[n]=o)}),t;var e,t},[r,o],function(e,t){return!(n||e[0]===t[0]&&jt(e[1],t[1],!0))});return h.createElement(Us.Provider,{value:i},t)}var Ys=[],Qs=h.createContext(null);function Js(){return h.useContext(Qs)}var ec=h.createContext(Ys);function tc(e){var t=h.useContext(ec);return h.useMemo(function(){return void 0!==e?[].concat(Ot(t),[e]):t},[t,e])}var nc=h.createContext(null);const oc=h.createContext({});function rc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Jl(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var ic=gs.LEFT,ac=gs.RIGHT,lc=gs.UP,sc=gs.DOWN,cc=gs.ENTER,dc=gs.ESC,uc=gs.HOME,pc=gs.END,fc=[lc,sc,ic,ac];function mc(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ot(e.querySelectorAll("*")).filter(function(e){return rc(e,t)});return rc(e,t)&&n.unshift(e),n}(e,!0).filter(function(e){return t.has(e)})}
vendor: 10,038 bytes, line 1
1function gc(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=mc(e,t),i=r.length,a=r.findIndex(function(e){return n===e});return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var hc=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach(function(e){var i=document.querySelector("[data-menu-id='".concat(qs(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))}),{elements:n,key2element:o,element2key:r}};var vc="__RC_UTIL_PATH_SPLIT__",bc=function(e){return e.join(vc)},yc="rc-menu-more";function Cc(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))},[]);return e?n:void 0}var xc=Math.random().toFixed(5).toString().slice(2),wc=0;function $c(e,t,n,o){var r=h.useContext(Us),i=r.activeKey,a=r.onActive,l=r.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),l(e)}),s}function Sc(e){var t=h.useContext(Us),n=t.mode,o=t.rtl,r=t.inlineIndent;return"inline"!==n?null:o?{paddingRight:e*r}:{paddingLeft:e*r}}function Ec(e){var t,n=e.icon,o=e.props,r=e.children;return null===n||!1===n?null:("function"==typeof n?t=h.createElement(n,he({},o)):"boolean"!=typeof n&&(t=n),t||r||null)}var kc=["item"];function Oc(e){var t=e.item,n=O(e,kc);return Object.defineProperty(n,"item",{get:function(){return Be(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Ic=["title","attribute","elementRef"],Nc=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],jc=["active"],Mc=function(e){Co(n,e);var t=$o(n);function n(){return Mt(this,n),t.apply(this,arguments)}return Rt(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,r=vt(O(e,Ic),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Be(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(Ks.Item,g({},n,{title:"string"==typeof t?t:void 0},r,{ref:o}))}}]),n}(h.Component),Pc=h.forwardRef(function(e,t){var n=e.style,o=e.className,r=e.eventKey,i=(e.warnKey,e.disabled),a=e.itemIcon,l=e.children,s=e.role,c=e.onMouseEnter,d=e.onMouseLeave,u=e.onClick,p=e.onKeyDown,f=e.onFocus,m=O(e,Nc),v=Gs(r),b=h.useContext(Us),y=b.prefixCls,C=b.onItemClick,x=b.disabled,w=b.overflowDisabled,$=b.itemIcon,S=b.selectedKeys,E=b.onActive,I=h.useContext(oc)._internalRenderMenuItem,j="".concat(y,"-item"),M=h.useRef(),P=h.useRef(),R=x||i,L=Wo(t,P),T=tc(r),z=function(e){return{key:r,keyPath:Ot(T).reverse(),item:M.current,domEvent:e}},B=a||$,H=$c(r,R,c,d),_=H.active,A=O(H,jc),D=S.includes(r),F=Sc(T.length),W={};"option"===e.role&&(W["aria-selected"]=D);var K=h.createElement(Mc,g({ref:M,elementRef:L,role:null===s?"none":s||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&v?null:v},vt(m,["extra"]),A,W,{component:"li","aria-disabled":i,style:he(he({},F),n),className:N()(j,k(k(k({},"".concat(j,"-active"),_),"".concat(j,"-selected"),D),"".concat(j,"-disabled"),R),o),onClick:function(e){if(!R){var t=z(e);null==u||u(Oc(t)),C(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===gs.ENTER){var t=z(e);null==u||u(Oc(t)),C(t)}},onFocus:function(e){E(r),null==f||f(e)}}),l,h.createElement(Ec,{props:he(he({},e),{},{isSelected:D}),icon:B}));return I&&(K=I(K,e,{selected:D})),K});function Rc(e,t){var n=e.eventKey,o=Js(),r=tc(n);return h.useEffect(function(){if(o)return o.registerPath(n,r),function(){o.unregisterPath(n,r)}},[r]),o?null:h.createElement(Pc,g({},e,{ref:t}))}const Lc=h.forwardRef(Rc);var Tc=["className","children"],zc=function(e,t){var n=e.className,o=e.children,r=O(e,Tc),i=h.useContext(Us),a=i.prefixCls,l=i.mode,s=i.rtl;return h.createElement("ul",g({className:N()(a,s&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},r,{"data-menu-list":!0,ref:t}),o)},Bc=h.forwardRef(zc);Bc.displayName="SubMenuList";const Hc=Bc;function _c(e,t){return Mi(e).map(function(e,n){if(h.isValidElement(e)){var o,r,i=e.key,a=null!==(o=null===(r=e.props)||void 0===r?void 0:r.eventKey)&&void 0!==o?o:i;null==a&&(a="tmp_key-".concat([].concat(Ot(t),[n]).join("-")));var l={key:a,eventKey:a};return h.cloneElement(e,l)}return e})}var Ac={adjustX:1,adjustY:1},Dc={topLeft:{points:["bl","tl"],overflow:Ac},topRight:{points:["br","tr"],overflow:Ac},bottomLeft:{points:["tl","bl"],overflow:Ac},bottomRight:{points:["tr","br"],overflow:Ac},leftTop:{points:["tr","tl"],overflow:Ac},leftBottom:{points:["br","bl"],overflow:Ac},rightTop:{points:["tl","tr"],overflow:Ac},rightBottom:{points:["bl","br"],overflow:Ac}},Fc={topLeft:{points:["bl","tl"],overflow:Ac},topRight:{points:["br","tr"],overflow:Ac},bottomLeft:{points:["tl","bl"],overflow:Ac},bottomRight:{points:["tr","br"],overflow:Ac},rightTop:{points:["tr","tl"],overflow:Ac},rightBottom:{points:["br","bl"],overflow:Ac},leftTop:{points:["tl","tr"],overflow:Ac},leftBottom:{points:["bl","br"],overflow:Ac}};function Wc(e,t,n){return t||(n?n[e]||n.other:void 0)}var Kc={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Vc(e){var t=e.prefixCls,n=e.visible,o=e.children,r=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,d=e.onVisibleChange,u=h.useContext(Us),p=u.getPopupContainer,f=u.rtl,m=u.subMenuOpenDelay,g=u.subMenuCloseDelay,v=u.builtinPlacements,b=u.triggerSubMenuAction,y=u.forceSubMenuRender,C=u.rootClassName,x=u.motion,w=u.defaultMotions,S=$(h.useState(!1),2),E=S[0],O=S[1],I=he(he({},f?Fc:Dc),v),j=Kc[c],M=Wc(c,x,w),P=h.useRef(M);"inline"!==c&&(P.current=M);var R=he(he({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=h.useRef();return h.useEffect(function(){return L.current=ya(function(){O(n)}),function(){ya.cancel(L.current)}},[n]),h.createElement(fs,{prefixCls:t,popupClassName:N()("".concat(t,"-popup"),k({},"".concat(t,"-rtl"),f),a,C),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:p,builtinPlacements:I,popupPlacement:j,popupVisible:E,popup:r,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[b],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:y,popupMotion:R,fresh:!0},o)}function qc(e){var t=e.id,n=e.open,o=e.keyPath,r=e.children,i="inline",a=h.useContext(Us),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,d=a.defaultMotions,u=a.mode,p=h.useRef(!1);p.current=u===i;var f=$(h.useState(!p.current),2),m=f[0],v=f[1],b=!!p.current&&n;h.useEffect(function(){p.current&&v(!1)},[u]);var y=he({},Wc(i,c,d));o.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||v(!0),null==C?void 0:C(e)},m?null:h.createElement(Zs,{mode:i,locked:!p.current},h.createElement(Fl,g({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(e){var n=e.className,o=e.style;return h.createElement(Hc,{id:t,className:n,style:o},r)}))}var Gc=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Xc=["active"],Uc=h.forwardRef(function(e,t){var n=e.style,o=e.className,r=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),l=e.internalPopupClose,s=e.children,c=e.itemIcon,d=e.expandIcon,u=e.popupClassName,p=e.popupOffset,f=e.popupStyle,m=e.onClick,v=e.onMouseEnter,b=e.onMouseLeave,y=e.onTitleClick,C=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=O(e,Gc),S=Gs(i),E=h.useContext(Us),I=E.prefixCls,j=E.mode,M=E.openKeys,P=E.disabled,R=E.overflowDisabled,L=E.activeKey,T=E.selectedKeys,z=E.itemIcon,B=E.expandIcon,H=E.onItemClick,_=E.onOpenChange,A=E.onActive,D=h.useContext(oc)._internalRenderSubMenuItem,F=h.useContext(nc).isSubPathKey,W=tc(),K="".concat(I,"-submenu"),V=P||a,q=h.useRef(),G=h.useRef(),X=null!=c?c:z,U=null!=d?d:B,Z=M.includes(i),Y=!R&&Z,Q=F(T,i),J=$c(i,V,C,x),ee=J.active,te=O(J,Xc),ne=$(h.useState(!1),2),oe=ne[0],re=ne[1],ie=function(e){V||re(e)},ae=h.useMemo(function(){return ee||"inline"!==j&&(oe||F([L],i))},[j,ee,L,oe,i,F]),le=Sc(W.length),se=Cc(function(e){null==m||m(Oc(e)),H(e)}),ce=S&&"".concat(S,"-popup"),de=h.useMemo(function(){return h.createElement(Ec,{icon:"horizontal"!==j?U:void 0,props:he(he({},e),{},{isOpen:Y,isSubMenu:!0})},h.createElement("i",{className:"".concat(K,"-arrow")}))},[j,U,e,Y,K]),ue=h.createElement("div",g({role:"menuitem",style:le,className:"".concat(K,"-title"),tabIndex:V?null:-1,ref:q,title:"string"==typeof r?r:null,"data-menu-id":R&&S?null:S,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":V,onClick:function(e){V||(null==y||y({key:i,domEvent:e}),"inline"===j&&_(i,!Z))},onFocus:function(){A(i)}},te),r,de),pe=h.useRef(j);if("inline"!==j&&W.length>1?pe.current="vertical":pe.current=j,!R){var fe=pe.current;ue=h.createElement(Vc,{mode:fe,prefixCls:K,visible:!l&&Y&&"inline"!==j,popupClassName:u,popupOffset:p,popupStyle:f,popup:h.createElement(Zs,{mode:"horizontal"===fe?"vertical":fe},h.createElement(Hc,{id:ce,ref:G},s)),disabled:V,onVisibleChange:function(e){"inline"!==j&&_(i,e)}},ue)}var me=h.createElement(Ks.Item,g({ref:t,role:"none"},w,{component:"li",style:n,className:N()(K,"".concat(K,"-").concat(j),o,k(k(k(k({},"".concat(K,"-open"),Y),"".concat(K,"-active"),ae),"".concat(K,"-selected"),Q),"".concat(K,"-disabled"),V)),onMouseEnter:function(e){ie(!0),null==v||v({key:i,domEvent:e})},onMouseLeave:function(e){ie(!1),null==b||b({key:i,domEvent:e})}}),ue,!R&&h.createElement(qc,{id:ce,open:Y,keyPath:W},s));return D&&(me=D(me,e,{selected:Q,active:ae,open:Y,disabled:V})),h.createElement(Zs,{onItemClick:se,mode:"horizontal"===j?"vertical":j,itemIcon:X,expandIcon:U},me)});
1const Zc=h.forwardRef(function(e,t){var n,o=e.eventKey,r=e.children,i=tc(o),a=_c(r,i),l=Js();return h.useEffect(function(){if(l)return l.registerPath(o,i),function(){l.unregisterPath(o,i)}},[i]),n=l?a:h.createElement(Uc,g({ref:t},e),a),h.createElement(ec.Provider,{value:i},n)});function Yc(e){var t=e.className,n=e.style,o=h.useContext(Us).prefixCls;return Js()?null:h.createElement("li",{role:"separator",className:N()("".concat(o,"-item-divider"),t),style:n})}var Qc=["className","title","eventKey","children"],Jc=h.forwardRef(function(e,t){var n=e.className,o=e.title,r=(e.eventKey,e.children),i=O(e,Qc),a=h.useContext(Us).prefixCls,l="".concat(a,"-item-group");return h.createElement("li",g({ref:t,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:N()(l,n)}),h.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof o?o:void 0},o),h.createElement("ul",{role:"group",className:"".concat(l,"-list")},r))});const ed=h.forwardRef(function(e,t){var n=e.eventKey,o=_c(e.children,tc(n));return Js()?o:h.createElement(Jc,g({ref:t},vt(e,["warnKey"])),o)});var td=["label","children","key","type","extra"];function nd(e,t,n){var o=t.item,r=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(e,l){if(e&&"object"===S(e)){var s=e,c=s.label,d=s.children,u=s.key,p=s.type,f=s.extra,m=O(s,td),v=null!=u?u:"tmp-".concat(l);return d||"group"===p?"group"===p?h.createElement(r,g({key:v},m,{title:c}),nd(d,t,n)):h.createElement(i,g({key:v},m,{title:c}),nd(d,t,n)):"divider"===p?h.createElement(a,g({key:v},m)):h.createElement(o,g({key:v},m,{extra:f}),c,(!!f||0===f)&&h.createElement("span",{className:"".concat(n,"-item-extra")},f))}return null}).filter(function(e){return e})}function od(e,t,n,o,r){var i=e,a=he({divider:Yc,item:Lc,group:ed,submenu:Zc},o);return t&&(i=nd(t,a,r)),_c(i,n)}var rd=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],id=[],ad=h.forwardRef(function(e,t){var n,o=e,r=o.prefixCls,i=void 0===r?"rc-menu":r,a=o.rootClassName,l=o.style,s=o.className,c=o.tabIndex,d=void 0===c?0:c,u=o.items,p=o.children,f=o.direction,m=o.id,v=o.mode,b=void 0===v?"vertical":v,y=o.inlineCollapsed,C=o.disabled,x=o.disabledOverflow,w=o.subMenuOpenDelay,S=void 0===w?.1:w,E=o.subMenuCloseDelay,I=void 0===E?.1:E,j=o.forceSubMenuRender,M=o.defaultOpenKeys,P=o.openKeys,R=o.activeKey,L=o.defaultActiveFirst,T=o.selectable,z=void 0===T||T,B=o.multiple,H=void 0!==B&&B,_=o.defaultSelectedKeys,A=o.selectedKeys,D=o.onSelect,F=o.onDeselect,W=o.inlineIndent,K=void 0===W?24:W,V=o.motion,q=o.defaultMotions,G=o.triggerSubMenuAction,X=void 0===G?"hover":G,U=o.builtinPlacements,Z=o.itemIcon,Y=o.expandIcon,Q=o.overflowedIndicator,J=void 0===Q?"...":Q,ee=o.overflowedIndicatorPopupClassName,te=o.getPopupContainer,ne=o.onClick,oe=o.onOpenChange,re=o.onKeyDown,ie=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),ae=o._internalRenderSubMenuItem,le=o._internalComponents,se=O(o,rd),ce=$(h.useMemo(function(){return[od(p,u,i
1d,le,i),od(p,u,id,{},i)]},[p,u,le]),2),de=ce[0],ue=ce[1],pe=$(h.useState(!1),2),fe=pe[0],me=pe[1],ge=h.useRef(),ve=function(e){var t=$(Lo(e,{value:e}),2),n=t[0],o=t[1];return h.useEffect(function(){wc+=1;var e="".concat(xc,"-").concat(wc);o("rc-menu-uuid-".concat(e))},[]),n}(m),be="rtl"===f,ye=Lo(M,{value:P,postState:function(e){return e||id}}),Ce=$(ye,2),xe=Ce[0],we=Ce[1],$e=function(e){function t(){we(e),null==oe||oe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Pi.flushSync)(t):t()},Se=$(h.useState(xe),2),Ee=Se[0],ke=Se[1],Oe=h.useRef(!1),Ie=$(h.useMemo(function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]},[b,y]),2),Ne=Ie[0],je=Ie[1],Me="inline"===Ne,Pe=$(h.useState(Ne),2),Re=Pe[0],Le=Pe[1],Te=$(h.useState(je),2),ze=Te[0],Be=Te[1];h.useEffect(function(){Le(Ne),Be(je),Oe.current&&(Me?we(Ee):$e(id))},[Ne,je]);var He=$(h.useState(0),2),_e=He[0],Ae=He[1],De=_e>=de.length-1||"horizontal"!==Re||x;h.useEffect(function(){Me&&ke(xe)},[xe]),h.useEffect(function(){return Oe.current=!0,function(){Oe.current=!1}},[]);
1var Fe=function(){var e=$(h.useState({}),2)[1],t=(0,h.useRef)(new Map),n=(0,h.useRef)(new Map),o=$(h.useState([]),2),r=o[0],i=o[1],a=(0,h.useRef)(0),l=(0,h.useRef)(!1),s=(0,h.useCallback)(function(o,r){var i=bc(r);n.current.set(i,o),t.current.set(o,i),a.current+=1;var s,c=a.current;s=function(){c===a.current&&(l.current||e({}))},Promise.resolve().then(s)},[]),c=(0,h.useCallback)(function(e,o){var r=bc(o);n.current.delete(r),t.current.delete(e)},[]),d=(0,h.useCallback)(function(e){i(e)},[]),u=(0,h.useCallback)(function(e,n){var o=(t.current.get(e)||"").split(vc);return n&&r.includes(o[0])&&o.unshift(yc),o},[r]),p=(0,h.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return u(e,!0).includes(t)})},[u]),f=(0,h.useCallback)(function(e){var o="".concat(t.current.get(e)).concat(vc),r=new Set;return Ot(n.current.keys()).forEach(function(e){e.startsWith(o)&&r.add(n.current.get(e))}),r},[]);return h.useEffect(function(){return function(){l.current=!0}},[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:u,getKeys:function(){var e=Ot(t.current.keys());return r.length&&e.push(yc),e},getSubPathKeys:f}}(),We=Fe.registerPath,Ke=Fe.unregisterPath,Ve=Fe.refreshOverflowKeys,qe=Fe.isSubPathKey,Ge=Fe.getKeyPath,Xe=Fe.getKeys,Ue=Fe.getSubPathKeys,Ze=h.useMemo(function(){return{registerPath:We,unregisterPath:Ke}},[We,Ke]),Ye=h.useMemo(function(){return{isSubPathKey:qe}},[qe]);h.useEffect(function(){Ve(De?id:de.slice(_e+1).map(function(e){return e.key}))},[_e,De]);var Qe=$(Lo(R||L&&(null===(n=de[0])||void 0===n?void 0:n.key),{value:R}),2),Je=Qe[0],et=Qe[1],tt=Cc(function(e){et(e)}),nt=Cc(function(){et(void 0)});(0,h.useImperativeHandle)(t,function(){return{list:ge.current,focus:function(e){var t,n,o=Xe(),r=hc(o,ve),i=r.elements,a=r.key2element,l=r.element2key,s=mc(ge.current,i),c=null!=Je?Je:s[0]?l.get(s[0]):null===(t=de.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,d=a.get(c);c&&d&&(null==d||null===(n=d.focus)||void 0===n||n.call(d,e))}}});var ot=Lo(_||[],{value:A,postState:function(e){return Array.isArray(e)?e:null==e?id:[e]}}),rt=$(ot,2),it=rt[0],at=rt[1],lt=Cc(function(e){null==ne||ne(Oc(e)),function(e){if(z){var t,n=e.key,o=it.includes(n);t=H?o?it.filter(function(e){return e!==n}):[].concat(Ot(it),[n]):[n],at(t);var r=he(he({},e),{},{selectedKeys:t});o?null==F||F(r):null==D||D(r)}!H&&xe.length&&"inline"!==Re&&$e(id)}(e)}),st=Cc(function(e,t){var n=xe.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==Re){var o=Ue(e);n=n.filter(function(e){return!o.has(e)})}jt(xe,n,!0)||$e(n,!0)}),ct=function(e,t,n,o,r,i,a,l,s,c){var d=h.useRef(),u=h.useRef();u.current=t;var p=function(){ya.cancel(d.current)};return h.useEffect(function(){return function(){p()}},[]),function(f){var m=f.which;if([].concat(fc,[cc,dc,uc,pc]).includes(m)){var g=i(),h=hc(g,o),v=h,b=v.elements,y=v.key2element,C=v.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),w=C.get(x),$=function(e,t,n,o){var r,i="prev",a="next",l="children",s="parent";if("inline"===e&&o===cc)return{inlineTrigger:!0};var c=k(k({},lc,i),sc,a),d=k(k(k(k({},ic,n?a:i),ac,n?i:a),sc,l),cc,l),u=k(k(k(k(k(k({},lc,i),sc,a),cc,l),dc,s),ic,n?l:s),ac,n?s:l);switch(null===(r={inline:c,horizontal:d,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===r?void 0:r[o]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,m);if(!$&&m!==uc&&m!==pc)return;(fc.includes(m)||[uc,pc].includes(m))&&f.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=C.get(e);l(o),p(),d.current=ya(function(){u.current===o&&t.focus()})}};if([uc,pc].includes(m)||$.sibling||!x){var E,O,I=mc(E=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):r.current,b);O=m===uc?I[0]:m===pc?I[I.length-1]:gc(E,b,x,$.offset),S(O)}else if($.inlineTrigger)s(w);else if($.offset>0)s(w,!0),p(),d.current=ya(function(){h=hc(g,o);var e=x.getAttribute("aria-controls"),t=gc(document.getElementById(e),h.elements);S(t)},5);else if($.offset<0){var N=a(w,!0),j=N[N.length-2],M=y.get(j);s(j,!1),S(M)}}null==c||c(f)}}(Re,Je,be,ve,ge,Xe,Ge,et,function(e,t){var n=null!=t?t:!xe.includes(e);st(e,n)},re);h.useEffect(function(){me(!0)},[]);var dt=h.useMemo(function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}},[ie,ae]),ut="horizontal"!==Re||x?de:de.map(function(e,t){return h.createElement(Zs,{key:e.key,overflowDisabled:t>_e},e)}),pt=h.createElement(Ks,g({id:m,ref:ge,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Lc,className:N()(i,"".concat(i,"-root"),"".concat(i,"-").concat(Re),s,k(k({},"".concat(i,"-inline-collapsed"),ze),"".concat(i,"-rtl"),be),a),dir:f,style:l,role:"menu",tabIndex:d,data:ut,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?de.slice(-t):null;return h.createElement(Zc,{eventKey:yc,title:J,disabled:De,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Re||x?Ks.INVALIDATE:Ks.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ae(e)},onKeyDown:ct},se));return h.createElement(oc.Provider,{value:dt},h.createElement(Vs.Provider,{value:ve},h.createElement(Zs,{prefixCls:i,rootClassName:a,mode:Re,openKeys:xe,rtl:be,disabled:C,motion:fe?V:null,defaultMotions:fe?q:null,activeKey:Je,onActive:tt,onInactive:nt,selectedKeys:it,inlineIndent:K,subMenuOpenDelay:S,subMenuCloseDelay:I,forceSubMenuRender:j,builtinPlacements:U,triggerSubMenuAction:X,getPopupContainer:te,itemIcon:Z,expandIcon:Y,onItemClick:lt,onOpenChange:st}
vendor: 7,168 bytes, line 1
1,h.createElement(nc.Provider,{value:Ye},pt),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(Qs.Provider,{value:Ze},ue)))))}),ld=ad;ld.Item=Lc,ld.SubMenu=Zc,ld.ItemGroup=ed,ld.Divider=Yc;const sd=ld;var cd=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.id,r=e.tabs,i=e.locale,a=e.mobile,l=e.more,s=void 0===l?{}:l,c=e.style,d=e.className,u=e.editable,p=e.tabBarGutter,f=e.rtl,m=e.removeAriaLabel,v=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=$((0,h.useState)(!1),2),x=C[0],w=C[1],S=$((0,h.useState)(null),2),E=S[0],O=S[1],I=s.icon,j=void 0===I?"More":I,M="".concat(o,"-more-popup"),P="".concat(n,"-dropdown"),R=null!==E?"".concat(M,"-").concat(E):null,L=null==i?void 0:i.dropdownAriaLabel,T=h.createElement(sd,{onClick:function(e){var t=e.key,n=e.domEvent;v(t,n),w(!1)},prefixCls:"".concat(P,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[E],"aria-label":void 0!==L?L:"expanded dropdown"},r.map(function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,i=e.key,a=e.label,l=Oa(t,r,u,n);return h.createElement(Lc,{key:i,id:"".concat(M,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},h.createElement("span",null,a),l&&h.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit("remove",{key:t,event:e})}(e,i)}},r||u.removeIcon||"×"))}));function z(e){for(var t=r.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===E})||0,o=t.length,i=0;i<o;i+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void O(a.key)}}(0,h.useEffect)(function(){var e=document.getElementById(R);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[E]),(0,h.useEffect)(function(){x||O(null)},[x]);var B=k({},f?"marginRight":"marginLeft",p);r.length||(B.visibility="hidden",B.order=1);var H=N()(k({},"".concat(P,"-rtl"),f)),_=a?null:h.createElement(Ss,g({prefixCls:P,overlay:T,visible:!!r.length&&x,onVisibleChange:w,overlayClassName:N()(H,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},s),h.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:B,"aria-haspopup":"listbox","aria-controls":M,id:"".concat(o,"-more"),"aria-expanded":x,onKeyDown:function(e){var t=e.which;if(x)switch(t){case gs.UP:z(-1),e.preventDefault();break;case gs.DOWN:z(1),e.preventDefault();break;case gs.ESC:w(!1);break;case gs.SPACE:case gs.ENTER:null!==E&&v(E,e)}else[gs.DOWN,gs.SPACE,gs.ENTER].includes(t)&&(w(!0),e.preventDefault())}},j));return h.createElement("div",{className:N()("".concat(n,"-nav-operations"),d),style:c,ref:t},_,h.createElement(Na,{prefixCls:n,locale:i,editable:u}))});const dd=h.memo(cd,function(e,t){return t.tabMoving}),ud=function(e){var t=e.prefixCls,n=e.id,o=e.active,r=e.focus,i=e.tab,a=i.key,l=i.label,s=i.disabled,c=i.closeIcon,d=i.icon,u=e.closable,p=e.renderWrapper,f=e.removeAriaLabel,m=e.editable,g=e.onClick,v=e.onFocus,b=e.onBlur,y=e.onKeyDown,C=e.onMouseDown,x=e.onMouseUp,w=e.style,$=e.tabCount,S=e.currentPosition,E="".concat(t,"-tab"),O=Oa(u,c,m,s);function I(e){s||g(e)}var j=h.useMemo(function(){return d&&"string"==typeof l?h.createElement("span",null,l):l},[l,d]),M=h.useRef(null);h.useEffect(function(){r&&M.current&&M.current.focus()},[r]);var P=h.createElement("div",{key:a,"data-node-key":ka(a),className:N()(E,k(k(k(k({},"".concat(E,"-with-remove"),O),"".concat(E,"-active"),o),"".concat(E,"-disabled"),s),"".concat(E,"-focus"),r)),style:w,onClick:I},h.createElement("div",{ref:M,role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(E,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:o?0:-1,onClick:function(e){e.stopPropagation(),I(e)},onKeyDown:y,onMouseDown:C,onMouseUp:x,onFocus:v,onBlur:b},r&&h.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(S," of ").concat($)),d&&h.createElement("span",{className:"".concat(E,"-icon")},d),l&&j),O&&h.createElement("button",{type:"button",role:"tab","aria-label":f||"remove",tabIndex:o?0:-1,className:"".concat(E,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:a,event:t})}},c||m.removeIcon||"×"));return p?p(P):P};var pd=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,s=a.height;if(Math.abs(l-o)<1)return[l,s]}return[o,i]},fd=function(e,t){return e[t?0:1]},md=h.forwardRef(function(e,t){var n,o,r,i,a,l=e.className,s=e.style,c=e.id,d=e.animated,u=e.activeKey,p=e.rtl,f=e.extra,m=e.editable,b=e.locale,y=e.tabPosition,C=e.tabBarGutter,x=e.children,w=e.onTabClick,S=e.onTabScroll,E=e.indicator,O=h.useContext(ji),I=O.prefixCls,j=O.tabs,M=(0,h.useRef)(null),P=(0,h.useRef)(null),R=(0,h.useRef)(null),L=(0,h.useRef)(null),T=(0,h.useRef)(null),z=(0,h.useRef)(null),B=(0,h.useRef)(null),H="top"===y||"bottom"===y,_=xa(0,function(e,t){H&&S&&S({direction:e>t?"left":"right"})}),A=$(_,2),D=A[0],F=A[1],W=xa(0,function(e,t){!H&&S&&S({direction:e>t?"top":"bottom"})}),K=$(W,2),V=K[0],q=K[1],G=$((0,h.useState)([0,0]),2),X=G[0],U=G[1],Z=$((0,h.useState)([0,0]),2),Y=Z[0],Q=Z[1],J=$((0,h.useState)([0,0]),2),ee=J[0],te=J[1],ne=$((0,h.useState)([0,0]),2),oe=ne[0],re=ne[1],ie=(n=new Map,o=(0,h.useRef)([]),r=$((0,h.useState)({}),2)[1],i=(0,h.useRef)("function"==typeof n?n():n),a=$a(function(){var e=i.current;o.current.forEach(function(t){e=t(e)}),o.current=[],i.current=e,r({})}),[i.current,function(e){o.current.push(e),a()}]),ae=$(ie,2),le=ae[0],se=ae[1],ce=function(e,t,n){return(0,h.useMemo)(function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Ca,i=r.left+r.width,a=0;a<e.length;a+=1){var l,s=e[a].key,c=t.get(s);c||(c=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||Ca);var d=o.get(s)||he({},c);d.right=i-d.left-d.width,o.set(s,d)}return o},[e.map(function(e){return e.key}).join("_"),t,n])}(j,le,Y[0]),de=fd(X,H),ue=fd(Y,H),pe=fd(ee,H),fe=fd(oe,H),me=Math.floor(de)<Math.floor(ue+pe),ge=me?de-fe:de-pe,ve="".concat(I,"-nav-operations-hidden"),be=0,ye=0;function Ce(e){return e<be?be:e>ye?ye:e}H&&p?(be=0,ye=Math.max(0,ue-ge)):(be=Math.min(0,ge-ue),ye=0);var xe=(0,h.useRef)(null),we=$((0,h.useState)(),2),$e=we[0],Se=we[1];function Ee(){Se(Date.now())}function ke(){xe.current&&clearTimeout(xe.current)}!function(e,t){var n=$((0,h.useState)(),2),o=n[0],r=n[1],i=$((0,h.useState)(0),2),a=i[0],l=i[1],s=$((0,h.useState)(0),2),c=s[0],d=s[1],u=$((0,h.useState)(),2),p=u[0],f=u[1],m=(0,h.useRef)(),g=(0,h.useRef)(),v=(0,h.useRef)(null);v.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;r({x:n,y:o}),window.clearInterval(m.current)},onTouchMove:function(e){if(o){var n=e.touches[0],i=n.screenX,s=n.screenY;r({x:i,y:s});var c=i-o.x,u=s-o.y;t(c,u);var p=Date.now();l(p),d(p-a),f({x:c,y:u})}},onTouchEnd:function(){if(o&&(r(null),f(null),p)){var e=p.x/c,n=p.y/c,i=Math.abs(e),a=Math.abs(n);
1if(Math.max(i,a)<.1)return;var l=e,s=n;m.current=window.setInterval(function(){Math.abs(l)<.01&&Math.abs(s)<.01?window.clearInterval(m.current):t(20*(l*=wa),20*(s*=wa))},20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===g.current?n:o:i>a?(r=n,g.current="x"):(r=o,g.current="y"),t(-r,-r)&&e.preventDefault()}},h.useEffect(function(){function t(e){v.current.onTouchMove(e)}function n(e){v.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){v.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){v.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(L,function(e,t){function n(e,t){e(function(e){return Ce(e+t)})}return!!me&&(H?n(F,e):n(q,t),ke(),Ee(),!0)}),(0,h.useEffect)(function(){return ke(),$e&&(xe.current=setTimeout(function(){Se(0)},100)),ke},[$e]);var Oe=function(e,t,n,o,r,i,a){var l,s,c,d=a.tabs,u=a.tabPosition,p=a.rtl;return["top","bottom"].includes(u)?(l="width",s=p?"right":"left",c=Math.abs(n)):(l="height",s="top",c=-n),(0,h.useMemo)(function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;r<n;r+=1){var i=e.get(d[r].key)||Sa;if(Math.floor(i[s]+i[l])>Math.floor(c+t)){o=r-1;break}}for(var a=0,u=n-1;u>=0;u-=1)if((e.get(d[u].key)||Sa)[s]<c){a=u+1;break}return a>o?[0,-1]:[a,o]},[e,t,o,r,i,c,u,d.map(function(e){return e.key}).join("_"),p])}(ce,ge,H?D:V,ue,pe,fe,he(he({},e),{},{tabs:j})),Ie=$(Oe,2),Ne=Ie[0],je=Ie[1],Me=Mo(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(H){var n=D;p?t.right<D?n=t.right:t.right+t.width>D+ge&&(n=t.right+t.width-ge):t.left<-D?n=-t.left:t.left+t.width>-D+ge&&(n=-(t.left+t.width-ge)),q(0),F(Ce(n))}else{var o=V;t.top<-V?o=-t.top:t.top+t.height>-V+ge&&(o=-(t.top+t.height-ge)),F(0),q(Ce(o))}}),Pe=$((0,h.useState)(),2),Re=Pe[0],Le=Pe[1],Te=$((0,h.useState)(!1),2),ze=Te[0],Be=Te[1],He=j.filter(function(e){return!e.disabled}).map(function(e){return e.key}),_e=function(e){var t=He.indexOf(Re||u),n=He.length,o=He[(t+e+n)%n];Le(o)},Ae=function(e,t){var n=He.indexOf(e),o=j.find(function(t){return t.key===e});Oa(null==o?void 0:o.closable,null==o?void 0:o.closeIcon,m,null==o?void 0:o.disabled)&&(t.preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:e,event:t}),n===He.length-1?_e(-1):_e(1))},De=function(e){var t=e.code,n=p&&H,o=He[0],r=He[He.length-1];switch(t){case"ArrowLeft":H&&_e(n?1:-1);break;case"ArrowRight":H&&_e(n?-1:1);break;case"ArrowUp":e.preventDefault(),H||_e(-1);break;case"ArrowDown":e.preventDefault(),H||_e(1);break;case"Home":e.preventDefault(),Le(o);break;case"End":e.preventDefault(),Le(r);break;case"Enter":case"Space":e.preventDefault(),w(null!=Re?Re:u,e);break;case"Backspace":case"Delete":Ae(Re,e)}},Fe={};H?Fe[p?"marginRight":"marginLeft"]=C:Fe.marginTop=C;var We=j.map(function(e,t){var n=e.key;return h.createElement(ud,{id:c,prefixCls:I,key:n,tab:e,style:0===t?void 0:Fe,closable:e.closable,editable:m,active:n===u,focus:n===Re,renderWrapper:x,removeAriaLabel:null==b?void 0:b.removeAriaLabel,tabCount:He.length,currentPosition:t+1,onClick:function(e){w(n,e)},onKeyDown:De,onFocus:function(){ze||Le(n),Me(n),Ee(),L.current&&(p||(L.current.scrollLeft=0),L.current.scrollTop=0)},onBlur:function(){Le(void 0)},onMouseDown:function(e){return function(e,t){Be(!0),1===t.button&&Ae(e,t)}(n,e)},onMouseUp:function(){Be(!1)}})}),Ke=function(){return se(function(){var e,t=new Map,n=null===(e=T.current)||void 0===e?void 0:e.getBoundingClientRect();return j.forEach(function(e){var o,r=e.key,i=null===(o=T.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(ka(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,s=a.height,c=a.left,d=a.top;return Math.abs(l-n)<1?[l,s,c-t.left,d-t.top]:[n,o,i,r]}(i,n),l=$(a,4),s=l[0],c=l[1],d=l[2],u=l[3];t.set(r,{width:s,height:c,left:d,top:u})}}),t})};(0,h.useEffect)(function(){Ke()},[j.map(function(e){return e.key}).join("_")]);var Ve=$a(function(){var e=pd(M),t=pd(P),n=pd(R);U([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=pd(B);te(o);var r=pd(z);re(r);var i=pd(T);Q([i[0]-o[0],i[1]-o[1]]),Ke()}),qe=j.slice(0,Ne),Ge=j.slice(je+1),Xe=[].concat(Ot(qe),Ot(Ge)),Ue=ce.get(u),Ze=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,r=e.indicator,i=void 0===r?{}:r,a=i.size,l=i.align,s=void 0===l?"center":l,c=$((0,h.useState)(),2),d=c[0],u=c[1],p=(0,h.useRef)(),f=v().useCallback(function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e},[a]);function m(){ya.cancel(p.current)}return(0,h.useEffect)(function(){var e={};if(t)if(n){e.width=f(t.width);var r=o?"right":"left";
1"start"===s&&(e[r]=t[r]),"center"===s&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=f(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return m(),p.current=ya(function(){var t=d&&e&&Object.keys(e).every(function(t){var n=e[t],o=d[t];return"number"==typeof n&&"number"==typeof o?Math.round(n)===Math.round(o):n===o});t||u(e)}),m},[JSON.stringify(t),n,o,s,f]),{style:d}}({activeTabOffset:Ue,horizontal:H,indicator:E,rtl:p}).style;(0,h.useEffect)(function(){Me()},[u,be,ye,Ea(Ue),Ea(ce),H]),(0,h.useEffect)(function(){Ve()},[p]);var Ye,Qe,Je,et,tt=!!Xe.length,nt="".concat(I,"-nav-wrap");return H?p?(Qe=D>0,Ye=D!==ye):(Ye=D<0,Qe=D!==be):(Je=V<0,et=V!==be),h.createElement(pa,{onResize:Ve},h.createElement("div",{ref:Wo(t,M),role:"tablist","aria-orientation":H?"horizontal":"vertical",className:N()("".concat(I,"-nav"),l),style:s,onKeyDown:function(){Ee()}},h.createElement(Ma,{ref:P,position:"left",extra:f,prefixCls:I}),h.createElement(pa,{onResize:Ve},h.createElement("div",{className:N()(nt,k(k(k(k({},"".concat(nt,"-ping-left"),Ye),"".concat(nt,"-ping-right"),Qe),"".concat(nt,"-ping-top"),Je),"".concat(nt,"-ping-bottom"),et)),ref:L},h.createElement(pa,{onResize:Ve},h.createElement("div",{ref:T,className:"".concat(I,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(V,"px)"),transition:$e?"none":void 0}},We,h.createElement(Na,{ref:B,prefixCls:I,locale:b,editable:m,style:he(he({},0===We.length?void 0:Fe),{},{visibility:tt?"hidden":null})}),h.createElement("div",{className:N()("".concat(I,"-ink-bar"),k({},"".concat(I,"-ink-bar-animated"),d.inkBar)),style:Ze}))))),h.createElement(dd,g({},e,{removeAriaLabel:null==b?void 0:b.removeAriaLabel,ref:z,prefixCls:I,tabs:Xe,className:!tt&&ve,tabMoving:!!$e})),h.createElement(Ma,{ref:R,position:"right",extra:f,prefixCls:I})))});const gd=md;var hd=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return h.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:r,className:N()(n,a&&"".concat(n,"-active"),o),ref:t},s)});const vd=hd;var bd=["renderTabBar"],yd=["label","key"];const Cd=function(e){var t=e.renderTabBar,n=O(e,bd),o=h.useContext(ji).tabs;return t?t(he(he({},n),{},{panes:o.map(function(e){var t=e.label,n=e.key,o=O(e,yd);return h.createElement(vd,g({tab:t,key:n,tabKey:n},o))})}),gd):h.createElement(gd,n)};var xd=["key","forceRender","style","className","destroyInactiveTabPane"];const wd=function(e){var t=e.id,n=e.activeKey,o=e.animated,r=e.tabPosition,i=e.destroyInactiveTabPane,a=h.useContext(ji),l=a.prefixCls,s=a.tabs,c=o.tabPane,d="".concat(l,"-tabpane");return h.createElement("div",{className:N()("".concat(l,"-content-holder"))},h.createElement("div",{className:N()("".concat(l,"-content"),"".concat(l,"-content-").concat(r),k({},"".concat(l,"-content-animated"),c))},s.map(function(e){var r=e.key,a=e.forceRender,l=e.style,s=e.className,u=e.destroyInactiveTabPane,p=O(e,xd),f=r===n;return h.createElement(Fl,g({key:r,visible:f,forceRender:a,removeOnLeave:!(!i&&!u),leavedClassName:"".concat(d,"-hidden")},o.tabPaneMotion),function(e,n){var o=e.style,i=e.className;return h.createElement(vd,g({},p,{prefixCls:d,id:t,tabKey:r,animated:c,active:f,style:he(he({},l),o),className:N()(s,i),ref:n}))})})))};var $d=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Sd=0,Ed=h.forwardRef(function(e,t){var n=e.id,o=e.prefixCls,r=void 0===o?"rc-tabs":o,i=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,d=e.editable,u=e.animated,p=e.tabPosition,f=void 0===p?"top":p,m=e.tabBarGutter,v=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.more,x=e.destroyInactiveTabPane,w=e.renderTabBar,E=e.onCh
1ange,I=e.onTabClick,j=e.onTabScroll,M=e.getPopupContainer,P=e.popupClassName,R=e.indicator,L=O(e,$d),T=h.useMemo(function(){return(a||[]).filter(function(e){return e&&"object"===S(e)&&"key"in e})},[a]),z="rtl"===l,B=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:he({inkBar:!0},"object"===S(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(u),H=$((0,h.useState)(!1),2),_=H[0],A=H[1];(0,h.useEffect)(function(){A(Ni())},[]);var D=$(Lo(function(){var e;return null===(e=T[0])||void 0===e?void 0:e.key},{value:s,defaultValue:c}),2),F=D[0],W=D[1],K=$((0,h.useState)(function(){return T.findIndex(function(e){return e.key===F})}),2),V=K[0],q=K[1];(0,h.useEffect)(function(){var e,t=T.findIndex(function(e){return e.key===F});-1===t&&(t=Math.max(0,Math.min(V,T.length-1)),W(null===(e=T[t])||void 0===e?void 0:e.key)),q(t)},[T.map(function(e){return e.key}).join("_"),F,V]);var G=$(Lo(null,{value:n}),2),X=G[0],U=G[1];(0,h.useEffect)(function(){n||(U("rc-tabs-".concat(Sd)),Sd+=1)},[]);var Z={id:X,activeKey:F,animated:B,tabPosition:f,rtl:z,mobile:_},Y=he(he({},Z),{},{editable:d,locale:y,more:C,tabBarGutter:m,onTabClick:function(e,t){null==I||I(e,t);var n=e!==F;W(e),n&&(null==E||E(e))},onTabScroll:j,extra:b,style:v,panes:null,getPopupContainer:M,popupClassName:P,indicator:R});return h.createElement(ji.Provider,{value:{tabs:T,prefixCls:r}},h.createElement("div",g({ref:t,id:n,className:N()(r,"".concat(r,"-").concat(f),k(k(k({},"".concat(r,"-mobile"),_),"".concat(r,"-editable"),d),"".concat(r,"-rtl"),z),i)},L),h.createElement(Cd,g({},Y,{renderTabBar:w})),h.createElement(wd,g({destroyInactiveTabPane:x},Z,{animated:B}))))});const kd=Ed,Od=e=>{const[,,,,t]=Tr();return t?`${e}-css-var`:""},Id=()=>({height:0,opacity:0}),Nd=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},jd=e=>({height:e?e.offsetHeight:0}),Md=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Pd=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Rd=(e="ant")=>({motionName:`${e}-motion-collapse`,onAppearStart:Id,onEnterStart:Id,onAppearActive:Nd,onEnterActive:Nd,onLeaveStart:jd,onLeaveActive:Id,onAppearEnd:Md,onEnterEnd:Md,onLeaveEnd:Md,motionDeadline:500}),Ld={motionAppear:!1,motionEnter:!0,motionLeave:!0};const Td=function(e,t){if(e)return e.map(e=>{var t;const n=null!==(t=e.destroyOnHidden)&&void 0!==t?t:e.destroyInactiveTabPane;return Object.assign(Object.assign({},e),{destroyInactiveTabPane:n})});const n=Mi(t).map(e=>{if(h.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null});return function(e){return e.filter(e=>e)}(n)},zd=e=>({animationDuration:e,animationFillMode:"both"}),Bd=e=>({animationDuration:e,animationFillMode:"both"}),Hd=(e,t,n,o,r=!1)=>{const i=r?"&":"";return{[`\n      ${i}${e}-enter,\n      ${i}${e}-appear\n    `]:Object.assign(Object.assign({},zd(o)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Bd(o)),{animationPlayState:"paused"}),[`\n      ${i}${e}-enter${e}-enter-active,\n      ${i}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},_d=new ho("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}
1,"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ad=new ho("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dd=new ho("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Fd=new ho("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wd=new ho("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Kd=new ho("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Vd=new ho("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qd=new ho("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}
vendor: 10,633 bytes, line 1
1}),Gd={"slide-up":{inKeyframes:_d,outKeyframes:Ad},"slide-down":{inKeyframes:Dd,outKeyframes:Fd},"slide-left":{inKeyframes:Wd,outKeyframes:Kd},"slide-right":{inKeyframes:Vd,outKeyframes:qd}},Xd=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Gd[t];return[Hd(o,r,i,e.motionDurationMid),{[`\n      ${o}-enter,\n      ${o}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ud=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Xd(e,"slide-up"),Xd(e,"slide-down")]]},Zd=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${Jt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:pr(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Jt(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Jt(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Jt(e.borderRadiusLG)} 0 0 ${Jt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Yd=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ur(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Jt(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},dr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Jt(e.paddingXXS)} ${Jt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Qd=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Jt(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Jt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Jd=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,cardHeightSM:r,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Jt(e.borderRadius)} ${Jt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Jt(e.borderRadius)} ${Jt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Jt(e.borderRadius)} ${Jt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Jt(e.borderRadius)} 0 0 ${Jt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},eu=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},fr(e)),"&:hover":{color:o},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:pr(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0,verticalAlign:"middle"},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},tu=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Jt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Jt(e.marginXS)},marginLeft:{_skip_check_:!0,value:Jt(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},nu=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",
1whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},background:"transparent",border:`${Jt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},fr(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),eu(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},fr(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},ou=zr("Tabs",e=>{const t=or(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Jt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Jt(e.horizontalItemGutter)}`});return[Jd(t),tu(t),Qd(t),Yd(t),Zd(t),nu(t),Ud(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:o,controlHeight:r,controlHeightLG:i}=e,a=t||i,l=n||r,s=o||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:s,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});const ru=h.forwardRef((e,t)=>{var n,o,r,i,a,l,s,c,d,u,p;const{type:f,className:m,rootClassName:g,size:v,onEdit:b,hideAdd:y,centered:C,addIcon:x,removeIcon:w,moreIcon:$,more:S,popupClassName:E,children:k,items:O,animated:I,style:j,indicatorSize:M,indicator:P,destroyInactiveTabPane:R,destroyOnHidden:L}=e,T=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:z}=T,{direction:B,tabs:H,getPrefixCls:_,getPopupContainer:A}=h.useContext(wt),D=_("tabs",z),F=Od(D),[W,K,V]=ou(D,F),q=h.useRef(null);let G;h.useImperativeHandle(t,()=>({nativeElement:q.current})),"editable-card"===f&&(G={onEdit:(e,{key:t,event:n})=>{null==b||b("add"===e?n:t,e)},removeIcon:null!==(n=null!=w?w:null==H?void 0:H.removeIcon)&&void 0!==n?n:h.createElement(wi,null),addIcon:(null!=x?x:null==H?void 0:H.addIcon)||h.createElement(Ii,null),showAdd:!0!==y});const X=_(),U=Jr(v),Z=Td(O,k),Y=function(e,t={inkBar:!0,tabPane:!1}){let n;return n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof t?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Ld),{motionName:Pd(e,"switch")})),n}(D,I),Q=Object.assign(Object.assign({},null==H?void 0:H.style),j),J={align:null!==(o=null==P?void 0:P.align)&&void 0!==o?o:null===(r=null==H?void 0:H.indicator)||void 0===r?void 0:r.align,size:null!==(s=null!==(a=null!==(i=null==P?void 0:P.size)&&void 0!==i?i:M)&&void 0!==a?a:null===(l=null==H?void 0:H.indicator)||void 0===l?void 0:l.size)&&void 0!==s?s:null==H?void 0:H.indicatorSize};
vendor: 9,430 bytes, line 1
1return W(h.createElement(kd,Object.assign({ref:q,direction:B,getPopupContainer:A},T,{items:Z,className:N()({[`${D}-${U}`]:U,[`${D}-card`]:["card","editable-card"].includes(f),[`${D}-editable-card`]:"editable-card"===f,[`${D}-centered`]:C},null==H?void 0:H.className,m,g,K,V,F),popupClassName:N()(E,K,V,F),style:Q,editable:G,more:Object.assign({icon:null!==(p=null!==(u=null!==(d=null===(c=null==H?void 0:H.more)||void 0===c?void 0:c.icon)&&void 0!==d?d:null==H?void 0:H.moreIcon)&&void 0!==u?u:$)&&void 0!==p?p:h.createElement(Ei,null),transitionName:`${X}-slide-up`},S),prefixCls:D,animated:Y,indicator:J,destroyInactiveTabPane:null!=L?L:R})))}),iu=ru;iu.TabPane=()=>null;const au=iu;const lu=e=>{var{prefixCls:t,className:n,hoverable:o=!0}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=h.useContext(wt),a=i("card",t),l=N()(`${a}-grid`,n,{[`${a}-grid-hoverable`]:o});return h.createElement("div",Object.assign({},r,{className:l}))},su=e=>{const{antCls:t,componentCls:n,headerHeight:o,headerPadding:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${Jt(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},dr),{[`\n          > ${n}-typography,\n          > ${n}-typography-edit-content\n        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},cu=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n      ${Jt(r)} 0 0 0 ${n},\n      0 ${Jt(r)} 0 0 ${n},\n      ${Jt(r)} ${Jt(r)} 0 0 ${n},\n      ${Jt(r)} 0 0 0 ${n} inset,\n      0 ${Jt(r)} 0 0 ${n} inset;\n    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},du=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Jt(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:Jt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:Jt(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Jt(e.lineWidth)} ${e.lineType} ${i}`}}})},uu=e=>Object.assign(Object.assign({margin:`${Jt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},dr),"&-description":{color:e.colorTextDescription}}),pu=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:o,bodyPadding:r}=e;return{[`${t}-head`]:{padding:`0 ${Jt(o)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Jt(e.padding)} ${Jt(r)}`}}},fu=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},mu=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:su(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)}`},[`${t}-grid`]:cu(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:du(e),[`${t}-meta`]:uu(e)}),[`${t}-bordered`]:{border:`${Jt(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:pu(e),[`${t}-loading`]:fu(e),[`${t}-rtl`]:{direction:"rtl"}}},gu=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:o,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Jt(o)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},hu=zr("Card",e=>{const t=or(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[mu(t),gu(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(t=e.bodyPadding)&&void 0!==t?t:e.paddingLG,headerPadding:null!==(n=e.headerPadding)&&void 0!==n?n:e.paddingLG}});function vu(){vu=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new M(o||[]);return r(a,"_invoke",{value:O(e,n,l)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var p="suspendedStart",f="suspendedYield",m="executing",g="completed",h={};function v(){}function b(){}function y(){}var C={};c(C,a,function(){return this});var x=Object.getPrototypeOf,w=x&&x(x(P([])));w&&w!==n&&o.call(w,a)&&(C=w);var $=y.prototype=v.prototype=Object.create(C);function E(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){function n(r,i,a,l){var s=u(e[r],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==S(d)&&o.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(d).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t(function(t,r){n(e,o,t,r)})}return i=i?i.then(r,r):r()}})}function O(t,n,o){var r=p;return function(i,a){if(r===m)throw Error("Generator is already running");if(r===g){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var l=o.delegate;if(l){var s=I(l,o);if(s){if(s===h)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===p)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=m;var c=u(t,n,o);if("normal"===c.type){if(r=o.done?g:f,c.arg===h)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=g,o.method="throw",o.arg=c.arg)}}}function I(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&
vendor: 5,487 bytes, line 1
1(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(S(t)+" is not iterable")}return b.prototype=y,r($,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create($),e},t.awrap=function(e){return{__await:e}},E(k.prototype),c(k.prototype,l,function(){return this}),t.AsyncIterator=k,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new k(d(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E($),c($,s,"Generator"),c($,a,function(){return this}),c($,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=P,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return l.type="throw",l.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;j(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),h}},t}function bu(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function yu(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){bu(i,o,r,a,l,"next",e)}function l(e){bu(i,o,r,a,l,"throw",e)}a(void 0)})}}var Cu="RC_FORM_INTERNAL_HOOKS",xu=function(){Be(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const wu=h.createContext({getFieldValue:xu,getFieldsValue:xu,getFieldError:xu,getFieldWarning:xu,getFieldsError:xu,isFieldsTouched:xu,isFieldTouched:xu,isFieldValidating:xu,isFieldsValidating:xu,resetFields:xu,setFields:xu,setFieldValue:xu,setFieldsValue:xu,validateFields:xu,submit:xu,getInternalHooks:function(){return xu(),{dispatch:xu,initEntityValue:xu,registerField:xu,useSubscribe:xu,setInitialValues:xu,destroyForm:xu,setCallbacks:xu,registerWatch:xu,getFields:xu,setValidateMessages:xu,setPreserve:xu,getInitialValue:xu}}}),$u=h.createContext(null);function Su(e){return null==e?[]:Array.isArray(e)?e:[e]}function Eu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invali
1d for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ku=Eu();function Ou(e){var t="function"==typeof Map?new Map:void 0;return Ou=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(wo())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&yo(r,n.prototype),r}(e,arguments,xo(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yo(n,e)},Ou(e)}var Iu=/%[sdj%]/g;function Nu(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function ju(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Iu,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}):e}function Mu(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e)}function Pu(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var l=o;o+=1,l<r?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env;var Ru=function(e){Co(n,e);var t=$o(n);function n(e,o){var r;return Mt(this,n),k(bo(r=t.call(this,"Async Validation Error")),"errors",void 0),k(bo(r),"fields",void 0),r.errors=e,r.fields=o,r}return Rt(n)}(Ou(Error));function Lu(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Tu(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===S(o)&&"object"===S(e[n])?e[n]=he(he({},e[n]),o):e[n]=o}return e}var zu="enum";const Bu=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!Mu(t,i||e.type)||o.push(ju(r.messages.required,e.fullField))};var Hu;const _u=function(){if(Hu)return Hu;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],i="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).c
vendor: 9,066 bytes, line 1
1oncat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var d=c.v4().source,u=c.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(d,"|").concat(u,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Hu=new RegExp("(?:^".concat(p,"$)"),"i")};n.dn(_u);var Au=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Du=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,Fu=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Wu={integer:function(e){return Wu.number(e)&&parseInt(e,10)===e},float:function(e){return Wu.number(e)&&!Wu.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===S(e)&&!Wu.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Au)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(Du)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(_u())},hex:function(e){return"string"==typeof e&&!!e.match(Fu)}};const Ku=Bu,Vu=function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(ju(r.messages.whitespace,e.fullField))},qu=function(e,t,n,o,r){if(e.required&&void 0===t)Bu(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(i)>-1?Wu[i](t)||o.push(ju(r.messages.types[i],e.fullField,e.type)):i&&S(t)!==e.type&&o.push(ju(r.messages.types[i],e.fullField,e.type))}},Gu=function(e,t,n,o,r){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,d="number"==typeof t,u="string"==typeof t,p=Array.isArray(t);if(d?c="number":u?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),u&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&o.push(ju(r.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?o.push(ju(r.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?o.push(ju(r.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&o.push(ju(r.messages[c].range,e.fullField,e.min,e.max))},Xu=function(e,t,n,o,r){e[zu]=Array.isArray(e[zu])?e[zu]:[],-1===e[zu].indexOf(t)&&o.push(ju(r.messages[zu],e.fullField,e[zu].join(", ")))},Uu=function(e,t,n,o,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(ju(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(ju(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Zu=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t,i)&&!e.required)return n();Ku(e,t,o,a,r,i),Mu(t,i)||qu(e,t,o,a,r)}n(a)},Yu={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t,"string")&&!e.required)return n();Ku(e,t,o,i,r,"string"),Mu(t,"string")||(qu(e,t,o,i,r),Gu(e,t,o,i,r),Uu(e,t,o,i,r),!0===e.whitespace&&Vu(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t)&&!e.required)return n();Ku(e,t,o,i,r),void 0!==t&&qu(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Mu(t)&&!e.required)return n();Ku(e,t,o,i,r),void 0!==t&&(qu(e,t,o,i,r),Gu(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t)&&!e.required)return n();Ku(e,t,o,i,r),void 0!==t&&qu(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t)&&!e.required)return n();Ku(e,t,o,i,r),Mu(t)||qu(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t)&&!e.required)return n();Ku(e,t,o,i,r),void 0!==t&&(qu(e,t,o,i,r),Gu(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t)&&!e.required)return n();Ku(e,t,o,i,r),void 0!==t&&(qu(e,t,o,i,r),Gu(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Ku(e,t,o,i,r,"array"),null!=t&&(qu(e,t,o,i,r),Gu(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t)&&!e.required)return n();Ku(e,t,o,i,r),void 0!==t&&qu(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t)&&!e.required)return n();Ku(e,t,o,i,r),void 0!==t&&Xu(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t,"string")&&!e.required)return n();Ku(e,t,o,i,r),Mu(t,"string")||Uu(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t,"date")&&!e.required)return n();var a;Ku(e,t,o,i,r),Mu(t,"date")||(a=t instanceof Date?t:new Date(t),qu(e,a,o,i,r),a&&Gu(e,a.getTime(),o,i,r))}n(i)},url:Zu,hex:Zu,email:Zu,tel:Zu,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":S(t);Ku(e,t,o,i,r,a),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(Mu(t)&&!e.required)return n();Ku(e,t,o,i,r)}n(i)}};var Qu=function(){function e(t){Mt(this,e),k(this,"rules",null),k(this,"_messages",ku),this.define(t)}return Rt(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==S(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(e){return e&&(this._messages=Tu(Eu(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,o),Promise.resolve(o);if(r.messages){var a=this.messages();a===ku&&(a=Eu()),Tu(a,r.messages),r.messages=a}else r.messages=this.messages();var l={};(r.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],i=o[e];r.forEach(function(r){var a=r;"function"==typeof a.transform&&(o===t&&(o=he({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":S(i)))),(a="function"==typeof a?{validator:a}:he({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:o,field:e}))})});var s={};return function(e,t,n,o,r){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ot(e[n]||[]))}),t}(e);Pu(a,n,function(e){return o(e),e.length?i(new Ru(e,Nu(e))):t(r)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,d=[],u=new Promise(function(t,i){var u=function(e){if(d.push.apply(d,e),++c===s)return o(d),d.length?i(new Ru(d,Nu(d))):t(r)};l.length||(o(d),t(r)),l.forEach(function(t){var o=e[t];-1!==a.indexOf(t)?Pu(o,n,u):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,Ot(e||[])),++r===i&&n(o)}e.forEach(function(e){t(e,a)})}(o,n,u)})});return u.catch(function(e){return e}),u}(l,r,function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==S(a.fields)&&"object"!==S(a.defaultField));function c(e,t){return he(he({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Ot(a.fullFields),[e]):[e]})}function d(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=Array.isArray(i)?i:[i];!r.suppressWarning&&d.length&&e.warning("async-validator:",d),d.length&&void 0!==a.message&&null!==a.message&&(d=[].concat(a.message));var u=d.map(Lu(a,o));if(r.first&&u.length)return s[a.field]=1,n(u);if(l){if(a.required&&!t.value)return void 0!==a.message?u=[].concat(a.message).map(Lu(a,o)):r.error&&(u=[r.error(a,ju(r.messages.required,a.field))]),n(u);var p={};a.defaultField&&Object.keys(t.value).map(function(e){p[e]=a.defaultField}),p=he(he({},p),t.rule.fields);var f={};
1Object.keys(p).forEach(function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(c.bind(null,e))});var m=new e(f);m.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),m.validate(t.value,t.rule.options||r,function(e){var t=[];u&&u.length&&t.push.apply(t,Ot(u)),e&&e.length&&t.push.apply(t,Ot(e)),n(t.length?t:null)})}else n(u)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,d,t.source,r);else if(a.validator){try{i=a.validator(a,t.value,d,t.source,r)}catch(e){var u,p;null===(u=(p=console).error)||void 0===u||u.call(p,e),r.suppressValidatorError||setTimeout(function(){throw e},0),d(e.message)}!0===i?d():!1===i?d("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?d(i):i instanceof Error&&d(i.message)}i&&i.then&&i.then(function(){return d()},function(e){return d(e)})},function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,Ot(e)):t.push(e)}for(var a=0;a<e.length;a++)r(e[a]);t.length?(n=Nu(t),i(t,n)):i(null,o)}(e)},o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Yu.hasOwnProperty(e.type))throw new Error(ju("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Yu.required:Yu[this.getType(e)]||void 0}}]),e}();k(Qu,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Yu[e]=t}),k(Qu,"warning",function(){}),k(Qu,"messages",ku),k(Qu,"validators",Yu);var Ju="'${name}' is not a valid ${type}",ep={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Ju,method:Ju,array:Ju,object:Ju,number:Ju,date:Ju,boolean:Ju,integer:Ju,float:Ju,regexp:Ju,email:Ju,url:Ju,hex:Ju},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},tp=Qu;function np(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var op="CODE_LOGIC_ERROR";function rp(_x,e,t,n,o){return ip.apply(this,arguments)}function ip(){return ip=yu(vu().mark(function e(t,n,o,r,i){var a,l,s,c,d,u,p,f,m;return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=he({},o)).ruleIndex,tp.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(op)}}),s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new tp(k({},t,[a])),d=Jo(ep,r.validateMessages),c.messages(d),u=[],e.prev=10,e.next=13,Promise.resolve(c.validate(k({},t,n),he({},r)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(u=e.t0.errors.map(function(e,t){var n=e.message,o=n===op?d.default:n;return h.isValidElement(o)?h.cloneElement(o,{key:"error_".concat(t)}):o}));case 18:if(!(!u.length&&s&&Array.isArray(n)&&n.length>0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return rp("".concat(t,".").concat(n),e,s,r,i)}));case 21:return p=e.sent,e.abrupt("return",p.reduce(function(e,t){return[].concat(Ot(e),Ot(t))},[]));case 23:return f=he(he({},o),{},{name:t,enum:(o.enum||[]).join(", ")},i),m=u.map(function(e){return"string"==typeof e?np(e,f):e}),e.abrupt("return",m);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),ip.apply(this,arguments)}function ap(e,t,n,o,r,i){var a,l=e.join("."),s=n.map(function(e,t){var n=e.validator,o=he(he({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){Be(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)})});r=i&&"function"==typeof i.then&&"function"==typeof i.catch,Be(r,"`callback` is deprecated. Please return a promise instead."),r&&i.then(function(){o()}).catch(function(e){o(e||" ")}
1)}),o}).sort(function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n==!!r?o-i:n?1:-1});if(!0===r)a=new Promise(function(){var e=yu(vu().mark(function e(n,r){var a,c,d;return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,rp(l,t,c,o,i);case 5:if(!(d=e.sent).length){e.next=9;break}return r([{errors:d,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map(function(e){return rp(l,t,e,o,i).then(function(t){return{errors:t,rule:e}})});a=(r?function(e){return sp.apply(this,arguments)}(c):function(e){return lp.apply(this,arguments)}(c)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function lp(){return(lp=yu(vu().mark(function e(t){return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,Ot(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function sp(){return(sp=yu(vu().mark(function e(t){var n;return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(o){o.then(function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function cp(e){return Su(e)}function dp(e,t){var n={};return t.forEach(function(t){var o=Xo(e,t);n=Zo(n,t,o)}),n}function up(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return pp(t,e,n)})}function pp(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t})}function fp(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===S(t.target)&&e in t.target?t.target[e]:t}function mp(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(Ot(e.slice(0,n)),[r],Ot(e.slice(n,t)),Ot(e.slice(t+1,o))):i<0?[].concat(Ot(e.slice(0,t)),Ot(e.slice(t+1,n+1)),[r],Ot(e.slice(n+1,o))):e}var gp=["name"],hp=[];function vp(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var bp=function(e){Co(n,e);var t=$o(n);function n(e){var o;return Mt(this,n),k(bo(o=t.call(this,e)),"state",{resetCount:0}),k(bo(o),"cancelRegisterFunc",null),k(bo(o),"mounted",!1),k(bo(o),"touched",!1),k(bo(o),"dirty",!1),k(bo(o),"validatePromise",void 0),k(bo(o),"prevValidating",void 0),k(bo(o),"errors",hp),k(bo(o),"warnings",hp),k(bo(o),"cancelRegister",function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,cp(r)),o.cancelRegisterFunc=null}),k(bo(o),"getNamePath",function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ot(void 0===n?[]:n),Ot(t)):[]}),k(bo(o),"getRules",function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map(function(e){return"function"==typeof e?e(r):e})}),k(bo(o),"refresh",function(){o.mounted&&o.setState(function(e){return{resetCount:e.resetCount+1}})}),k(bo(o),"metaCache",null),k(bo(o),"triggerMetaEvent",function(e){var t=o.props.onMetaChange;if(t){var n=he(he({},o.getMeta()),{},{destroy:e});jt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null}),k(bo(o),"onStoreChange",function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,s=r.onReset,c=n.store,d=o.getNamePath(),u=o.getValue(e),p=o.getValue(c),f=t&&up(t,d);switch("valueUpdate"!==n.type||"external"!==n.source||jt(u,p)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=hp,o.warnings=hp,o.triggerMetaEvent()),n.type){case"reset":if(!t||f)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=hp,o.warnings=hp,o.triggerMetaEvent(),null==s||s(),void o.refresh();break;case"remove":if(i&&vp(i,e,c,u,p,n))return void o.reRender();break;case"setField":var m=n.data;if(f)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||hp),"w
1arnings"in m&&(o.warnings=m.warnings||hp),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&up(t,d,!0))return void o.reRender();if(i&&!d.length&&vp(i,e,c,u,p,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(cp).some(function(e){return up(n.relatedFields,e)}))return void o.reRender();break;default:if(f||(!l.length||d.length||i)&&vp(i,e,c,u,p,n))return void o.reRender()}!0===i&&o.reRender()}),k(bo(o),"validateRules",function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(yu(vu().mark(function r(){var a,l,c,d,u,p,f;return vu().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,c=void 0!==l&&l,d=a.messageVariables,u=a.validateDebounce,p=o.getRules(),i&&(p=p.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||Su(t).includes(i)})),!u||!i){r.next=10;break}return r.next=8,new Promise(function(e){setTimeout(e,u)});case 8:if(o.validatePromise===s){r.next=10;break}return r.abrupt("return",[]);case 10:return(f=ap(t,n,p,e,c,d)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hp;if(o.validatePromise===s){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?hp:o;t?r.push.apply(r,Ot(i)):n.push.apply(n,Ot(i))}),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}}),r.abrupt("return",f);case 13:case"end":return r.stop()}},r)})));return l||(o.validatePromise=s,o.dirty=!0,o.errors=hp,o.warnings=hp,o.triggerMetaEvent(),o.reRender()),s}),k(bo(o),"isFieldValidating",function(){return!!o.validatePromise}),k(bo(o),"isFieldTouched",function(){return o.touched}),k(bo(o),"isFieldDirty",function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Cu).getInitialValue)(o.getNamePath())}),k(bo(o),"getErrors",function(){return o.errors}),k(bo(o),"getWarnings",function(){return o.warnings}),k(bo(o),"isListField",function(){return o.props.isListField}),k(bo(o),"isList",function(){return o.props.isList}),k(bo(o),"isPreserve",function(){return o.props.preserve}),k(bo(o),"getMeta",function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}}),k(bo(o),"getOnlyChild",function(e){if("function"==typeof e){var t=o.getMeta();return he(he({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=Mi(e);return 1===n.length&&h.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),k(bo(o),"getValue",function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Xo(e||t(!0),n)}),k(bo(o),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,s=t.valuePropName,c=t.getValueProps,d=t.fieldContext,u=void 0!==i?i:d.validateTrigger,p=o.getNamePath(),f=d.getInternalHooks,m=d.getFieldsValue,g=f(Cu).dispatch,h=o.getValue(),v=c||function(e){return k({},s,e)},b=e[r],y=void 0!==n?v(h):{},C=he(he({},e),y);return C[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):fp.apply(void 0,[s].concat(n)),l&&(e=l(e,h,m(!0))),e!==h&&g({type:"updateValue",namePath:p,value:e}),b&&b.apply(void 0,n)},Su(u||[]).forEach(function(e){var t=C[e];C[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&g({type:"validateField",namePath:p,triggerName:e})}}),C}),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(Cu).initEntityValue)(bo(o)),o}return Rt(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(Cu).registerField;this.cancelRegisterFunc=o(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),r=o.child;return o.isFunction?e=r:h.isValidElement(r)?e=h.cloneElement(r,this.getControlled(r.props)):(Be(!r,"`children` of Field is not val
1idate ReactElement."),e=r),h.createElement(h.Fragment,{key:t},e)}}]),n}(h.Component);k(bp,"contextType",wu),k(bp,"defaultProps",{trigger:"onChange",valuePropName:"value"});const yp=function(e){var t,n=e.name,o=O(e,gp),r=h.useContext(wu),i=h.useContext($u),a=void 0!==n?cp(n):void 0,l=null!==(t=o.isListField)&&void 0!==t?t:!!i,s="keep";return l||(s="_".concat((a||[]).join("_"))),h.createElement(bp,g({key:s,name:a,isListField:l},o,{fieldContext:r}))};var Cp="__@field_split__";function xp(e){return e.map(function(e){return"".concat(S(e),":").concat(e)}).join(Cp)}var wp=function(){function e(){Mt(this,e),k(this,"kvs",new Map)}return Rt(e,[{key:"set",value:function(e,t){this.kvs.set(xp(e),t)}},{key:"get",value:function(e){return this.kvs.get(xp(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(xp(e))}},{key:"map",value:function(e){return Ot(this.kvs.entries()).map(function(t){var n=$(t,2),o=n[0],r=n[1],i=o.split(Cp);return e({key:i.map(function(e){var t=$(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o}),value:r})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null}),e}}]),e}();const $p=wp;var Sp=["name"],Ep=Rt(function e(t){var n=this;Mt(this,e),k(this,"formHooked",!1),k(this,"forceRootUpdate",void 0),k(this,"subscribable",!0),k(this,"store",{}),k(this,"fieldEntities",[]),k(this,"initialValues",{}),k(this,"callbacks",{}),k(this,"validateMessages",null),k(this,"preserve",null),k(this,"lastValidatePromise",null),k(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,is
1FieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),k(this,"getInternalHooks",function(e){return e===Cu?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Be(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),k(this,"useSubscribe",function(e){n.subscribable=e}),k(this,"prevWithoutPreserves",null),k(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var o,r=Jo(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map(function(t){var n=t.key;r=Zo(r,n,Xo(e,n))}),n.prevWithoutPreserves=null,n.updateStore(r)}}),k(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new $p;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),k(this,"getInitialValue",function(e){var t=Xo(n.initialValues,e);return e.length?Jo(t):t}),k(this,"setCallbacks",function(e){n.callbacks=e}),k(this,"setValidateMessages",function(e){n.validateMessages=e}),k(this,"setPreserve",function(e){n.preserve=e}),k(this,"watchList",[]),k(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),k(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,o,e)})}}),k(this,"timeoutId",null),k(this,"warningUnhooked",function(){}),k(this,"updateStore",function(e){n.store=e}),k(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),k(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new $p;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),k(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=cp(e);return t.get(n)||{INVALIDATE_NAME_PATH:cp(e)}})}),k(this,"getFieldsValue",function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===S(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),l=[];return a.forEach(function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var d="getMeta"in e?e.getMeta():null;r(d)&&l.push(c)}else l.push(c)}),dp(n.store,l.map(cp))}),k(this,"getFieldValue",function(e){n.warningUnhooked();var t=cp(e);return Xo(n.store,t)}),k(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:cp(e[n]),errors:[],warnings:[]}})}),k(this,"getFieldError",function(e){n.warningUnhooked();var t=cp(e);return n.getFieldsError([t])[0].errors}),k(this,"getFieldWarning",function(e){n.warningUnhooked();var t=cp(e);return n.getFieldsError([t])[0].warnings}),k(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],l=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(cp),l=!1):(r=null,l=i):(r=i.map(cp),l=a);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!r)return l?s.every(function(e){return c(e)||e.isList()}):s.some(c);var d=new $p;r.forEach(function(e){d.set(e,[])}
1),s.forEach(function(e){var t=e.getNamePath();r.forEach(function(n){n.every(function(e,n){return t[n]===e})&&d.update(n,function(t){return[].concat(Ot(t),[e])})})});var u=function(e){return e.some(c)},p=d.map(function(e){return e.value});return l?p.every(u):p.some(u)}),k(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),k(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var o=e.map(cp);return t.some(function(e){var t=e.getNamePath();return up(o,t)&&e.isFieldValidating()})}),k(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),k(this,"resetWithFieldInitialValue",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=new $p,r=n.getFieldEntities(!0);r.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var r=o.get(n)||new Set;r.add({entity:e,value:t}),o.set(n,r)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,r=o.get(t);r&&(n=e).push.apply(n,Ot(Ot(r).map(function(e){return e.entity})))})):e=r,e.forEach(function(e){if(void 0!==e.props.initialValue){var r=e.getNamePath();if(void 0!==n.getInitialValue(r))Be(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=o.get(r);if(i&&i.size>1)Be(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(Zo(n.store,r,Ot(i)[0].value))}}}})}),k(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Jo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(cp);o.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(Zo(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)}),k(this,"setFields",function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach(function(e){var r=e.name,i=O(e,Sp),a=cp(r);o.push(a),"value"in i&&n.updateStore(Zo(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(o)}),k(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),o=he(he({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})}),k(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===Xo(n.store,o)&&n.updateStore(Zo(n.store,o,t))}}),k(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),k(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!pp(e.getNamePath(),t)})){var l=n.store;n.updateStore(Zo(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),k(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}}),k(this,"notifyObservers",function(e,t,o){if(n.subscribable){var r=he(he({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,r)})}else n.forceRootUpdate()}),k(this,"triggerDependenciesUpdate",function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(Ot(o))}),o}),k(this,"updateValue",function(e,t){var o=cp(e),r=n.store;n.updateStore(Zo(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);
1var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(dp(n.store,[o]),n.getFieldsValue()),n.triggerOnFieldsChange([o].concat(Ot(i)))}),k(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var o=Jo(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),k(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),k(this,"getDependencyChildrenFields",function(e){var t=new Set,o=[],r=new $p;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=cp(t);r.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(n){(r.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}})}(e),o}),k(this,"triggerOnFieldsChange",function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new $p;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),r.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=r.filter(function(t){var n=t.name;return up(e,n)});a.length&&o(a,r)}}),k(this,"validateFields",function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(cp):[],l=[],s=String(Date.now()),c=new Set,d=r||{},u=d.recursive,p=d.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(s)),!i||up(a,t,u)){var o=e.validateRules(he({validateMessages:he(he({},ep),n.validateMessages)},r));l.push(o.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,Ot(n)):o.push.apply(o,Ot(n))}),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}}))}}});var f=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise(function(r,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))})})}):Promise.resolve([])}(l);n.lastValidatePromise=f,f.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});
1var m=f.then(function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==f})});m.catch(function(e){return e});var g=a.filter(function(e){return c.has(e.join(s))});return n.triggerOnFieldsChange(g),m}),k(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});const kp=function(e){var t=h.useRef(),n=$(h.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new Ep(function(){n({})});t.current=o.getForm()}return[t.current]};var Op=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const Ip=Op;var Np=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const jp=function(e,t){var n=e.name,o=e.initialValues,r=e.fields,i=e.form,a=e.preserve,l=e.children,s=e.component,c=void 0===s?"form":s,d=e.validateMessages,u=e.validateTrigger,p=void 0===u?"onChange":u,f=e.onValuesChange,m=e.onFieldsChange,v=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,C=O(e,Np),x=h.useRef(null),w=h.useContext(Ip),E=$(kp(i),1)[0],k=E.getInternalHooks(Cu),I=k.useSubscribe,N=k.setInitialValues,j=k.setCallbacks,M=k.setValidateMessages,P=k.setPreserve,R=k.destroyForm;h.useImperativeHandle(t,function(){return he(he({},E),{},{nativeElement:x.current})}),h.useEffect(function(){return w.registerForm(n,E),function(){w.unregisterForm(n)}},[w,E,n]),M(he(he({},w.validateMessages),d)),j({onValuesChange:f,onFieldsChange:function(e){if(w.triggerFormChange(n,e),m){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];m.apply(void 0,[e].concat(o))}},onFinish:function(e){w.triggerFormFinish(n,e),v&&v(e)},onFinishFailed:b}),P(a);var L,T=h.useRef(null);N(o,!T.current),T.current||(T.current=!0),h.useEffect(function(){return function(){return R(y)}},[]);var z="function"==typeof l;L=z?l(E.getFieldsValue(!0),E):l,I(!z);var B=h.useRef();h.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==S(e)||"object"!==S(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Ot(new Set([].concat(n,o))).every(function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r})})(B.current||[],r||[])||E.setFields(r||[]),B.current=r},[r,E]);var H=h.useMemo(function(){return he(he({},E),{},{validateTrigger:p})},[E,p]),_=h.createElement($u.Provider,{value:null},h.createElement(wu.Provider,{value:H},L));return!1===c?_:h.createElement(c,g({},C,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=C.onReset)||void 0===t||t.call(C,e)}}),_)};function Mp(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Pp=h.forwardRef(jp);Pp.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,r=e.children,i=h.useContext(Op),a=h.useRef({});return h.createElement(Op.Provider,{value:he(he({},i),{},{validateMessages:he(he({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=he(he({},a.current),{},k({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=he({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},r)},Pp.Field=yp,Pp.List=function(e){var t=e.name,n=e.initialValue,o=e.children,r=e.rules,i=e.validateTrigger,a=e.isListField,l=h.useContext(wu),s=h.useContext($u),c=h.useRef({keys:[],id:0}).current,d=h.useMemo(function(){var e=cp(l.prefixName)||[];return[].concat(Ot(e),Ot(cp(t)))},[l.prefixName,t]),u=h.useMemo(function(){return he(he({},l),{},{prefixName:d})},[l,d]),p=h.useMemo(function(){return{getKey:function(e){var t=d.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}},[d]);return"function"!=typeof o?(Be(!1,"Form.List only accepts function as children."),null):h.createElement($u.Provider,{value:p},h.createElement(wu.Provider,{value:u},h.createElement(yp,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:r,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!s}
vendor: 5,445 bytes, line 1
1,function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},u={add:function(e,t){var n=s();t>=0&&t<=n.length?(c.keys=[].concat(Ot(c.keys.slice(0,t)),[c.id],Ot(c.keys.slice(t))),i([].concat(Ot(n.slice(0,t)),[e],Ot(n.slice(t))))):(c.keys=[].concat(Ot(c.keys),[c.id]),i([].concat(Ot(n),[e]))),c.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter(function(e,t){return!n.has(t)}),i(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(c.keys=mp(c.keys,e,t),i(mp(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),o(p.map(function(__,e){var t=c.keys[e];return void 0===t&&(c.keys[e]=c.id,t=c.keys[e],c.id+=1),{name:e,key:t,isListField:!0}}),u,t)})))},Pp.useForm=kp,Pp.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],r=t[1],i=void 0===r?{}:r,a=function(e){return e&&!!e._init}(i)?{form:i}:i,l=a.form,s=$((0,h.useState)(),2),c=s[0],d=s[1],u=(0,h.useMemo)(function(){return Mp(c)},[c]),p=(0,h.useRef)(u);p.current=u;var f=(0,h.useContext)(wu),m=l||f,g=m&&m._init,v=cp(o),b=(0,h.useRef)(v);return b.current=v,(0,h.useEffect)(function(){if(g){var e=m.getFieldsValue,t=(0,m.getInternalHooks)(Cu).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof o?o(n):Xo(n,b.current)},r=t(function(e,t){var o=n(e,t),r=Mp(o);p.current!==r&&(p.current=r,d(o))}),i=n(e(),e(!0));return c!==i&&d(i),r}},[g]),c};const Rp=h.createContext({}),Lp=({children:e,status:t,override:n})=>{const o=h.useContext(Rp),r=h.useMemo(()=>{const e=Object.assign({},o);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,o]);return h.createElement(Rp.Provider,{value:r},e)},Tp=h.createContext(void 0),zp=(e,t,n)=>{var o,r;const{variant:i,[e]:a}=h.useContext(wt),l=h.useContext(Tp),s=null==a?void 0:a.variant;let c;return c=void 0!==t?t:!1===n?"borderless":null!==(r=null!==(o=null!=l?l:s)&&void 0!==o?o:i)&&void 0!==r?r:"outlined",[c,xt.includes(c)]};var Bp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Hp=e=>{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return h.createElement("ul",{className:t,style:o},n.map((e,t)=>{const o=`action-${t}`;return h.createElement("li",{style:{width:100/n.length+"%"},key:o},h.createElement("span",null,e))}))},_p=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,style:i,extra:a,headStyle:l={},bodyStyle:s={},title:c,loading:d,bordered:u,variant:p,size:f,type:m,cover:g,actions:v,tabList:b,children:y,activeTabKey:C,defaultActiveTabKey:x,tabBarExtraContent:w,hoverable:$,tabProps:S={},classNames:E,styles:k}=e,O=Bp(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:j,card:M}=h.useContext(wt),[P]=zp("card",p,u),R=e=>{var t;return N()(null===(t=null==M?void 0:M.classNames)||void 0===t?void 0:t[e],null==E?void 0:E[e])},L=e=>{var t;return Object.assign(Object.assign({},null===(t=null==M?void 0:M.styles)||void 0===t?void 0:t[e]),null==k?void 0:k[e])},T=h.useMemo(()=>{let e=!1;return h.Children.forEach(y,t=>{(null==t?void 0:t.type)===lu&&(e=!0)}),e},[y]),z=I("card",n),[B,H,_]=hu(z),A=h.createElement(yi,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),D=void 0!==C,F=Object.assign(Object.assign({},S),{[D?"activeKey":"defaultActiveKey"]:D?C:x,tabBarExtraContent:w});let W;const K=Jr(f),V=K&&"default"!==K?K:"large",q=b?h.createElement(au,Object.assign({size:V},F,{className:`${z}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:b.map(e=>{var{tab:t}=e,n=Bp(e,["tab"]);return Object.assign({label:t},n)})})):null;if(c||a||q){const e=N()(`${z}-head`,R("header")),t=N()(`${z}-head-title`,R("title")),n=N()(`${z}-extra`,R("extra")),o=Object.assign(Object.assign({},l),L("header"));W=h.createElement("div",{className:e,style:o},h.createElement("div",{className:`${z}-head-wrapper`},c&&h.createElement("div",{className:t,style:L("title")},c),a&&h.createElement("div",{className:n,style:L("extra")},a)),q)}const G=N()(`${z}-cover`,R("cover")),X=g?h.createElement("div",{className:G,style:L("cover")},g):null,U=N()(`${z}-body`,R("body")),Z=Object.assign(Object.assign({},s),L("body")),Y=h.createElement("div",{className:U,style:Z},d?A:y),Q=N()(`${z}-actions`,R("actions")),J=(null==v?void 0:v.length)?h.createElement(Hp,{actionClasses:Q,actionStyle:L("actions"),actions:v}):null,ee=vt(O,["onTabChange"]),te=N()(z,null==M?void 0:M.className,{[`${z}-loading`]:d,[`${z}-bordered`]:"borderless"!==P,[`${z}-hoverable`]:$,[`${z}-contain-grid`]:T,[`${z}-contain-tabs`]:null==b?void 0:b.length,[`${z}-${K}`]:K,[`${z}-type-${m}`]:!!m,[`${z}-rtl`]:"rtl"===j},o,r,H,_),ne=Object.assign(Object.assign({},null==M?void 0:M.style),i);return B(h.createElement("div",Object.assign({ref:t},ee,{className:te,style:ne}),W,X,Y,J))});const Ap=_p;Ap.Grid=lu,Ap.Meta=e=>
1{const{prefixCls:t,className:n,avatar:o,title:r,description:i}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=h.useContext(wt),s=l("card",t),c=N()(`${s}-meta`,n),d=o?h.createElement("div",{className:`${s}-meta-avatar`},o):null,u=r?h.createElement("div",{className:`${s}-meta-title`},r):null,p=i?h.createElement("div",{className:`${s}-meta-description`},i):null,f=u||p?h.createElement("div",{className:`${s}-meta-detail`},u,p):null;return h.createElement("div",Object.assign({},a,{className:c}),d,f)};const Dp=Ap,Fp=e=>(0,t.jsx)(Dp,{...e,children:e.children});Fp.Meta=Dp.Meta;const Wp=Fp;function Kp(e){return e&&v().isValidElement(e)&&e.type===v().Fragment}const Vp=(e,t,n)=>v().isValidElement(e)?v().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function qp(e,t){return Vp(e,e,t)}const Gp=Br("Wave",e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),Xp="ant-wave-target";var Up,Zp=he({},Pi),Yp=Zp.version,Qp=Zp.render,Jp=Zp.unmountComponentAtNode;try{Number((Yp||"").split(".")[0])>=18&&(Up=Zp.createRoot)}catch(e){}function ef(e){var t=Zp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===S(t)&&(t.usingClientEntryPoint=e)}var tf="__rc_react_root__";function nf(_x){return of.apply(this,arguments)}function of(){return(of=yu(vu().mark(function e(t){return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[tf])||void 0===e||e.unmount(),delete t[tf]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function rf(e){Jp(e)}function af(){return(af=yu(vu().mark(function e(t){return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Up){e.next=2;break}return e.abrupt("return",nf(t));case 2:rf(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let lf=(e,t)=>(function(e,t){Up?function(e,t){ef(!0);var n=t[tf]||Up(t);ef(!1),n.render(e),t[tf]=n}(e,t):function(e,t){null==Qp||Qp(e,t)}(e,t)}(e,t),()=>function(e){return af.apply(this,arguments)}(t));function sf(e){return e&&(lf=e),lf}function cf(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function df(e){return Number.isNaN(e)?0:e}const uf=e=>{const{className:t,target:n,component:o,registerUnmount:r}=e,i=h.useRef(null),a=h.useRef(null);h.useEffect(()=>{a.current=r()},[]);const[l,s]=h.useState(null),[c,d]=h.useState([]),[u,p]=h.useState(0),[f,m]=h.useState(0),[g,v]=h.useState(0),[b,y]=h.useState(0),[C,x]=h.useState(!1),w={left:u,top:f,width:g,height:b,borderRadius:c.map(e=>`${e}px`).join(" ")};function $(){const e=getComputedStyle(n);s(function(e){var t;const{borderTopColor:n,borderColor:o,backgroundColor:r}=getComputedStyle(e);return null!==(t=[n,o,r].find(cf))&&void 0!==t?t:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;p(t?n.offsetLeft:df(-Number.parseFloat(o))),m(t?n.offsetTop:df(-Number.parseFloat(r))),v(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;d([i,a,c,l].map(e=>df(Number.parseFloat(e))))}if(l&&(w["--wave-color"]=l),h.useEffect(()=>{if(n){const e=ya(()=>{$(),x(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver($),t.observe(n)),()=>{ya.cancel(e),null==t||t.disconnect()}}},[n]),!C)return null;const S=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(Xp));return h.createElement(Fl,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,o;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;null===(o=a.current)||void 0===o||o.call(a).then(()=>{null==e||e.remove()})}return!1}},({className:e},n)=>h.createElement("div",{ref:Fo(i,n),className:N()(t,e,{"wave-quick":S}),style:w}))},pf=(e,t)=>
1{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",null==e||e.insertBefore(r,null==e?void 0:e.firstChild);const i=sf();let a=null;a=i(h.createElement(uf,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),r)},ff=(e,t,n)=>{const{wave:o}=h.useContext(wt),[,r,i]=Tr(),a=Mo(a=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const s=l.querySelector(`.${Xp}`)||l,{showEffect:c}=o||{};(c||pf)(s,{className:t,token:r,component:n,event:a,hashId:i})}),l=h.useRef(null);return e=>{ya.cancel(l.current),l.current=ya(()=>{a(e)})}},mf=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:r}=(0,h.useContext)(wt),i=(0,h.useRef)(null),a=r("wave"),[,l]=Gp(a),s=ff(i,N()(a,l),o);return v().useEffect(()=>{const e=i.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!Jl(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),v().isValidElement(t)?qp(t,{ref:Ko(t)?Fo(qo(t),i):i}):null!=t?t:null},gf=h.createContext(!1),hf=({children:e,disabled:t})=>{const n=h.useContext(gf);return h.createElement(gf.Provider,{value:null!=t?t:n},e)},vf=gf,bf=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},yf=zr(["Space","Compact"],e=>[bf(e)],()=>({}),{resetStyle:!1});var Cf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const xf=h.createContext(null),wf=(e,t)=>{const n=h.useContext(xf),o=h.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,a="vertical"===o?"-vertical-":"-";return N()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},$f=e=>{const{children:t}=e;return h.createElement(xf.Provider,{value:null},t)},Sf=e=>{const{children:t}=e,n=Cf(e,["children"]);return h.createElement(xf.Provider,{value:h.useMemo(()=>n,[n])},t)};const Ef=h.createContext(void 0);function kf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Of(e){return function(e){if(Array.isArray(e))return kf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return kf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kf(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const If=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Nf=/^[\u4E00-\u9FA5]{2}$/,jf=Nf.test.bind(Nf);function Mf(e){return"danger"===e?{danger:!0}:{type:e}}function Pf(e){return"string"==typeof e}function Rf(e){return"text"===e||"link"===e}["default","primary","danger"].concat(Of(If));const Lf={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var Tf=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Lf}))};const zf=h.forwardRef(Tf),Bf=(0,h.forwardRef)((e,t)=>{const{className:n,style:o,children:r,prefixCls:i}=e,a=N()(`${i}-icon`,n);return v().createElement("span",{ref:t,className:a,style:o},r)}),Hf=Bf,_f=(0,h.forwardRef)((e,t)=>{const{prefixCls:n,className:o,style:r,iconClassName:i}=e,a=N()(`${n}-loading-icon`,o);return v().createElement(Hf,{prefixCls:n,className:a,style:r,ref:t},v().createElement(zf,{className:i}))}),Af=()=>({width:0,opacity:0,transform:"scale(0)"}),Df=e=>
vendor: 11,303 bytes, line 1
1({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ff=e=>{const{prefixCls:t,loading:n,existIcon:o,className:r,style:i,mount:a}=e,l=!!n;return o?v().createElement(_f,{prefixCls:t,className:r,style:i}):v().createElement(Fl,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Af,onAppearActive:Df,onEnterStart:Af,onEnterActive:Df,onLeaveStart:Df,onLeaveActive:Af},({className:e,style:n},o)=>{const a=Object.assign(Object.assign({},i),n);return v().createElement(_f,{prefixCls:t,className:N()(r,e),style:a,ref:o})})},Wf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Kf=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Wf(`${t}-primary`,r),Wf(`${t}-danger`,i)]}};function Vf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qf(e){return qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qf(e)}function Gf(e){var t=function(e){if("object"!=qf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qf(t)?t:t+""}function Xf(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Gf(o.key),o)}}function Uf(e,t,n){return t&&Xf(e.prototype,t),n&&Xf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Zf,Yf=["b"],Qf=["v"],Jf=function(e){return Math.round(Number(e||0))},em=function(e){Co(n,e);var t=$o(n);function n(e){return Mt(this,n),t.call(this,function(e){if(e instanceof L)return e;if(e&&"object"===S(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return he(he({},O(t,Yf)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Rt(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Jf(100*e.s),n=Jf(100*e.b),o=Jf(e.h),r=e.a,i="hsb(".concat(o,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(o,", ").concat(t,"%, ").concat(n,"%, ").concat(r.toFixed(0===r?0:2),")");return 1===r?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return he(he({},O(e,Qf)),{},{b:t,a:this.a})}}]),n}(L);(Zf="#1677ff")instanceof em||new em(Zf);let tm=function(){return Uf(function e(t){var n;if(Vf(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new em(this.colors[0].color.metaColor)):this.metaColor=new em(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const o=e.colors[n];return t.percent===o.percent&&t.color.equals(o.color)}):this.toHexString()===e.toHexString())}}])}();const nm=e=>{const{paddingInline:t,onlyIconSize:n}=e;return or(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},om=e=>{var t,n,o,r,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,d=null!==(r=e.contentLineHeight)&&void 0!==r?r:Cr(l),u=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Cr(s),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Cr(c),f=((e,t)=>{const{r:n,g:o,b:r,a:i}=e.toRgb(),a=new em(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*o+.114*r>192})(new tm(e.colorBgSolid),"#fff")?"#000":"#fff",m=If.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${Jt(e.controlOutlineWidth)} 0 ${Ir(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:f,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:u,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*u)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})},rm=e=>{const{componentCls:t,iconCls:n,fontWeight:o,opacityLoading:r,motionDurationSlow:i,motionEaseInOut:a,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Jt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{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"}},"> a":{color:"currentColor"},"&:not(:disabled)":fr(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:r,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},im=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),am=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),lm=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),sm=(e,t,n,o,r,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},im(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),cm=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},lm(e))}),dm=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),um=(e,t,n,o)=>{const r=o&&["link","text"].includes(o)?dm:cm;return Object.assign(Object.assign({},r(e)),im(e.componentCls,t,n))},pm=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},um(e,o,r))}),fm=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},um(e,o,r))}),mm=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),gm=(e,t,n,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},um(e,n,o))}),hm=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},um(e,o,r,n))}),vm=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},pm(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),mm(e)),gm(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),sm(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),hm(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bm=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow}
1,fm(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),mm(e)),gm(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),hm(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),hm(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),sm(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ym=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},pm(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),fm(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mm(e)),gm(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),hm(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),hm(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),sm(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Cm=e=>Object.assign(Object.assign({},hm(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),sm(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),xm=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:vm(e),[`${t}-color-primary`]:bm(e),[`${t}-color-dangerous`]:ym(e),[`${t}-color-link`]:Cm(e)},(e=>{const{componentCls:t}=e;return If.reduce((n,o)=>{const r=e[`${o}6`],i=e[`${o}1`],a=e[`${o}5`],l=e[`${o}2`],s=e[`${o}3`],c=e[`${o}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${o}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:r,boxShadow:e[`${o}ShadowColor`]},pm(e,e.colorTextLightSolid,r,{background:a},{background:c})),fm(e,r,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),mm(e)),gm(e,i,{color:r,background:l},{color:r,background:s})),hm(e,r,"link",{color:a},{color:c})),hm(e,r,"text",{color:a,background:i},{color:c,background:s}))})},{})})(e))},wm=e=>Object.assign(Object.assign(Object.assign(Object.assign({},fm(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),hm(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),pm(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),hm(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$m=(e,t="")=>{const{componentCls:n,controlHeight:o,fontSize:r,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:r,height:o,padding:`${Jt(s)} ${Jt(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:o,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:am(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Sm=e=>{const t=or(e,{fontSize:e.contentFontSize});return $m(t,e.componentCls)},Em=e=>{const t=or(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return $m(t,`${e.componentCls}-sm`)},km=e=>{const t=or(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return $m(t,`${e.componentCls}-lg`)},Om=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Im=zr("Button",e=>{const t=nm(e);return[rm(t),Sm(t),Em(t),km(t),Om(t),xm(t),wm(t),Kf(t)]},om,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Nm(e,t,n,o){const{focusElCls:r,focus:i,borderElCls:a}=n,l=a?">
1 *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[s]:{zIndex:3}},r?{[`&${r}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function jm(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Mm(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:o}=t,r=o||n,i=`${r}-compact`;return{[i]:Object.assign(Object.assign({},Nm(e,i,t,r)),jm(r,i,t))}}function Pm(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Rm(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Pm(e,t,e.componentCls)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const Lm=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:o,calc:r}=e,i=r(o).mul(-1).equal(),a=e=>{const r=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${r} + ${r}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":o,height:e?o:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Tm=Hr(["Button","compact"],e=>{const t=nm(e);return[Mm(t),Rm(t),Lm(t)]},om);const zm={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Bm=v().forwardRef((e,t)=>{var n,o;const{loading:r=!1,prefixCls:i,color:a,variant:l,type:s,danger:c=!1,shape:d,size:u,styles:p,disabled:f,className:m,rootClassName:g,children:b,icon:y,iconPosition:C="start",ghost:x=!1,block:w=!1,htmlType:$="button",classNames:S,style:E={},autoInsertSpace:k,autoFocus:O}=e,I=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),j=s||"default",{button:M}=v().useContext(wt),P=d||(null==M?void 0:M.shape)||"default",[R,L]=(0,h.useMemo)(()=>{if(a&&l)return[a,l];if(s||c){const e=zm[j]||[];return c?["danger",e[1]]:e}return(null==M?void 0:M.color)&&(null==M?void 0:M.variant)?[M.color,M.variant]:["default","outlined"]},[a,l,s,c,null==M?void 0:M.color,null==M?void 0:M.variant,j]),T="danger"===R?"dangerous":R,{getPrefixCls:z,direction:B,autoInsertSpace:H,className:_,style:A,classNames:D,styles:F}=Et("button"),W=null===(n=null!=k?k:H)||void 0===n||n,K=z("btn",i),[V,q,G]=Im(K),X=(0,h.useContext)(vf),U=null!=f?f:X,Z=(0,h.useContext)(Ef),Y=(0,h.useMemo)(()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(r),[r]),[Q,J]=(0,h.useState)(Y.loading),[ee,te]=(0,h.useState)(!1),ne=(0,h.useRef)(null),oe=Wo(t,ne),re=1===h.Children.count(b)&&!y&&!Rf(L),ie=(0,h.useRef)(!0);v().useEffect(()=>(ie.current=!1,()=>{ie.current=!0}),[]),sn(()=>{let e=null;return Y.delay>0?e=setTimeout(()=>{e=null,J(!0)},Y.delay):J(Y.loading),function(){e&&(clearTimeout(e),e=null)}},[Y.delay,Y.loading]),(0,h.useEffect)(()=>
1{if(!ne.current||!W)return;const e=ne.current.textContent||"";re&&jf(e)?ee||te(!0):ee&&te(!1)}),(0,h.useEffect)(()=>{O&&ne.current&&ne.current.focus()},[]);const ae=v().useCallback(t=>{var n;Q||U?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,Q,U]),{compactSize:le,compactItemClassnames:se}=wf(K,B),ce=Jr(e=>{var t,n;return null!==(n=null!==(t=null!=u?u:le)&&void 0!==t?t:Z)&&void 0!==n?n:e}),de=ce&&null!==(o={large:"lg",small:"sm",middle:void 0}[ce])&&void 0!==o?o:"",ue=Q?"loading":y,pe=vt(I,["navigate"]),fe=N()(K,q,G,{[`${K}-${P}`]:"default"!==P&&P,[`${K}-${j}`]:j,[`${K}-dangerous`]:c,[`${K}-color-${T}`]:T,[`${K}-variant-${L}`]:L,[`${K}-${de}`]:de,[`${K}-icon-only`]:!b&&0!==b&&!!ue,[`${K}-background-ghost`]:x&&!Rf(L),[`${K}-loading`]:Q,[`${K}-two-chinese-chars`]:ee&&W&&!Q,[`${K}-block`]:w,[`${K}-rtl`]:"rtl"===B,[`${K}-icon-end`]:"end"===C},se,m,g,_),me=Object.assign(Object.assign({},A),E),ge=N()(null==S?void 0:S.icon,D.icon),he=Object.assign(Object.assign({},(null==p?void 0:p.icon)||{}),F.icon||{}),ve=e=>v().createElement(Hf,{prefixCls:K,className:ge,style:he},e);let be;be=y&&!Q?ve(y):r&&"object"==typeof r&&r.icon?ve(r.icon):v().createElement(Ff,{existIcon:!!y,prefixCls:K,loading:Q,mount:ie.current});const ye=b||0===b?function(e,t){let n=!1;const o=[];return v().Children.forEach(e,e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r}),v().Children.map(o,e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Pf(e.type)&&jf(e.props.children)?qp(e,{children:e.props.children.split("").join(n)}):Pf(e)?jf(e)?v().createElement("span",null,e.split("").join(n)):v().createElement("span",null,e):Kp(e)?v().createElement("span",null,e):e}(e,t))}(b,re&&W):null;if(void 0!==pe.href)return V(v().createElement("a",Object.assign({},pe,{className:N()(fe,{[`${K}-disabled`]:U}),href:U?void 0:pe.href,style:me,onClick:ae,ref:oe,tabIndex:U?-1:0,"aria-disabled":U}),be,ye));let Ce=v().createElement("button",Object.assign({},I,{type:$,className:fe,style:me,onClick:ae,disabled:U,ref:oe}),be,ye,se&&v().createElement(Tm,{prefixCls:K}));return Rf(L)||(Ce=v().createElement(mf,{component:"Button",disabled:Q},Ce)),V(Ce)}),Hm=Bm;Hm.Group=e=>{const{getPrefixCls:t,direction:n}=h.useContext(wt),{prefixCls:o,size:r,className:i}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","size","className"]),l=t("btn-group",o),[,,s]=Tr(),c=h.useMemo(()=>{switch(r){case"large":return"lg";case"small":return"sm";default:return""}},[r]),d=N()(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:"rtl"===n},i,s);return h.createElement(Ef.Provider,{value:r},h.createElement("div",Object.assign({},a,{className:d})))},Hm.__ANT_BUTTON=!0;const _m=Hm,Am=(0,s.forwardRef)(({children:e,...n},o)=>(0,t.jsx)(_m,{ref:o,...n,children:e}));Am.displayName="WapButton";const Dm=Am,Fm=["xxl","xl","lg","md","sm","xs"],Wm=()=>{const[,e]=Tr(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Fm).reverse();return n.forEach((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}}),e})(e));return v().useMemo(()=>{const e=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(o=t,e.forEach(e=>e(o)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},o),{[e]:t}))},r=window.matchMedia(t);((e,t)=>
1{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)})(r,n),this.matchHandlers[t]={mql:r,listener:n},n(r)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];((e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)})(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[t])},Km=()=>v().useReducer(e=>e+1,0),Vm=function(e=!0,t={}){const n=(0,h.useRef)(t),[,o]=Km(),r=Wm();return sn(()=>{const t=r.subscribe(t=>{n.current=t,e&&o()});return()=>r.unsubscribe(t)},[]),n.current},qm=(0,h.createContext)({}),Gm=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Xm=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:o,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)0===e?(i[`${o}${t}-${e}`]={display:"none"},i[`${o}-push-${e}`]={insetInlineStart:"auto"},i[`${o}-pull-${e}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${e}`]={marginInlineStart:0},i[`${o}${t}-order-${e}`]={order:0}):(i[`${o}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],i[`${o}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},i[`${o}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},i[`${o}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},i[`${o}${t}-order-${e}`]={order:e});return i[`${o}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),Um=zr("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),Zm=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Ym=zr("Grid",e=>{const t=or(e,{gridColumns:24}),n=Zm(t);return delete n.xs,[Gm(t),Xm(t,""),Xm(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${Jt(t)})`]:Object.assign({},Xm(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}));function Qm(e,t){const[n,o]=h.useState("string"==typeof e?e:"");return h.useEffect(()=>{(()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n<Fm.length;n++){const r=Fm[n];if(!t||!t[r])continue;const i=e[r];if(void 0!==i)return void o(i)}})()},[JSON.stringify(e),t]),n}const Jm=h.forwardRef((e,t)=>{const{prefixCls:n,justify:o,align:r,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:u,direction:p}=h.useContext(wt),f=Vm(!0,null),m=Qm(r,f),g=Qm(o,f),v=u("row",n),[b,y,C]=Um(v),x=function(e,t){const n=[void 0,void 0],o=Array.isArray(e)?e:[e,void 0],r=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return o.forEach((e,t)=>{if("object"==typeof e&&null!==e)for(let o=0;o<Fm.length;o++){const i=Fm[o];if(r[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}(s,f),w=N()(v,{[`${v}-no-wrap`]:!1===c,[`${v}-${g}`]:g,[`${v}-${m}`]:m,[`${v}-rtl`]:"rtl"===p},i,y,C),$={};if(null==x?void 0:x[0]){const e="number"==typeof x[0]?x[0]/-2+"px":`calc(${x[0]} / -2)`;$.marginLeft=e,$.marginRight=e}const[S,E]=x;$.rowGap=E;const k=h.useMemo(()=>({gutter:[S,E],wrap:c}),[S,E,c]);return b(h.createElement(qm.Provider,{value:k},h.createElement("div",Object.assign({},d,{className:w,style:Object.assign(Object.assign({},$),a),ref:t}),l)))}),eg=Jm,tg=eg;function ng(e){return"auto"===e?"1 1 auto":"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const og=["xs","sm","md","lg","xl","xxl"],rg=h.forwardRef((e,t)=>
1{const{getPrefixCls:n,direction:o}=h.useContext(wt),{gutter:r,wrap:i}=h.useContext(qm),{prefixCls:a,span:l,order:s,offset:c,push:d,pull:u,className:p,children:f,flex:m,style:g}=e,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,C,x]=Ym(b),w={};let $={};og.forEach(t=>{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete v[t],$=Object.assign(Object.assign({},$),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===o}),n.flex&&($[`${b}-${t}-flex`]=!0,w[`--${b}-${t}-flex`]=ng(n.flex))});const S=N()(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${s}`]:s,[`${b}-offset-${c}`]:c,[`${b}-push-${d}`]:d,[`${b}-pull-${u}`]:u},p,$,C,x),E={};if(null==r?void 0:r[0]){const e="number"==typeof r[0]?r[0]/2+"px":`calc(${r[0]} / 2)`;E.paddingLeft=e,E.paddingRight=e}return m&&(E.flex=ng(m),!1!==i||E.minWidth||(E.minWidth=0)),y(h.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),w),className:S,ref:t}),f))}),ig=rg,ag=ig,lg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var sg=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:lg}))};const cg=h.forwardRef(sg);var dg=v().forwardRef(function(e,t){var n=e.prefixCls,o=e.forceRender,r=e.className,i=e.style,a=e.children,l=e.isActive,s=e.role,c=e.classNames,d=e.styles,u=$(v().useState(l||o),2),p=u[0],f=u[1];return v().useEffect(function(){(o||l)&&f(!0)},[o,l]),p?v().createElement("div",{ref:t,className:N()("".concat(n,"-content"),k(k({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),r),style:i,role:s},v().createElement("div",{className:N()("".concat(n,"-content-box"),null==c?void 0:c.body),style:null==d?void 0:d.body},a)):null});dg.displayName="PanelContent";const ug=dg;var pg=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],fg=v().forwardRef(function(e,t){var n=e.showArrow,o=void 0===n||n,r=e.headerClass,i=e.isActive,a=e.onItemClick,l=e.forceRender,s=e.className,c=e.classNames,d=void 0===c?{}:c,u=e.styles,p=void 0===u?{}:u,f=e.prefixCls,m=e.collapsible,h=e.accordion,b=e.panelKey,y=e.extra,C=e.header,x=e.expandIcon,w=e.openMotion,$=e.destroyInactivePanel,S=e.children,E=O(e,pg),I="disabled"===m,j=null!=y&&"boolean"!=typeof y,M=k(k(k({onClick:function(){null==a||a(b)},onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==gs.ENTER&&e.which!==gs.ENTER||null==a||a(b)},role:h?"tab":"button"},"aria-expanded",i),"aria-disabled",I),"tabIndex",I?-1:0),P="function"==typeof x?x(e):v().createElement("i",{className:"arrow"}),R=P&&v().createElement("div",g({className:"".concat(f,"-expand-icon")},["header","icon"].includes(m)?M:{}),P),L=N()("".concat(f,"-item"),k(k({},"".concat(f,"-item-active"),i),"".concat(f,"-item-disabled"),I),s),T=he({className:N()(r,"".concat(f,"-header"),k({},"".concat(f,"-collapsible-").concat(m),!!m),d.header),style:p.header},["header","icon"].includes(m)?{}:M);return v().createElement("div",g({},E,{ref:t,className:L}),v().createElement("div",T,o&&R,v().createElement("span",g({className:"".concat(f,"-header-text")},"header"===m?M:{}),C),j&&v().createElement("div",{className:"".concat(f,"-extra")},y)),v().createElement(Fl,g({visible:i,leavedClassName:"".concat(f,"-content-hidden")},w,{forceRender:l,removeOnLeave:$}),function(e,t){var n=e.className,o=e.style;return v().createElement(ug,{ref:t,prefixCls:f,className:n,classNames:d,style:o,styles:p,isActive:i,forceRender:l,role:h?"tabpanel":void 0},S)}))});const mg=fg;var gg=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var hg="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spell
1Check src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function vg(e,t){return 0===e.indexOf(t)}function bg(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:he({},n);var o={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||vg(n,"aria-"))||t.data&&vg(n,"data-")||t.attr&&hg.includes(n))&&(o[n]=e[n])}),o}function yg(e){var t=e;if(!Array.isArray(t)){var n=S(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var Cg=v().forwardRef(function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,r=e.destroyInactivePanel,i=void 0!==r&&r,a=e.style,l=e.accordion,s=e.className,c=e.children,d=e.collapsible,u=e.openMotion,p=e.expandIcon,f=e.activeKey,m=e.defaultActiveKey,h=e.onChange,b=e.items,y=N()(o,s),C=$(Lo([],{value:f,onChange:function(e){return null==h?void 0:h(e)},defaultValue:m,postState:yg}),2),x=C[0],w=C[1];Be(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,r=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,l=t.activeKey,s=t.openMotion,c=t.expandIcon;return e.map(function(e,t){var d,u=e.children,p=e.label,f=e.key,m=e.collapsible,h=e.onItemClick,b=e.destroyInactivePanel,y=O(e,gg),C=String(null!=f?f:t),x=null!=m?m:r,w=null!=b?b:i;return d=o?l[0]===C:l.indexOf(C)>-1,v().createElement(mg,g({},y,{prefixCls:n,key:C,panelKey:C,isActive:d,accordion:o,openMotion:s,expandIcon:c,header:p,collapsible:x,onItemClick:function(e){"disabled"!==x&&(a(e),null==h||h(e))},destroyInactivePanel:w}),u)})}(e,n):Mi(t).map(function(e,t){return function(e,t,n){if(!e)return null;var o,r=n.prefixCls,i=n.accordion,a=n.collapsible,l=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,d=n.openMotion,u=n.expandIcon,p=e.key||String(t),f=e.props,m=f.header,g=f.headerClass,h=f.destroyInactivePanel,b=f.collapsible,y=f.onItemClick;o=i?c[0]===p:c.indexOf(p)>-1;var C=null!=b?b:a,x={key:p,panelKey:p,header:m,headerClass:g,isActive:o,prefixCls:r,destroyInactivePanel:null!=h?h:l,openMotion:d,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==C&&(s(e),null==y||y(e))},expandIcon:u,collapsible:C};return"string"==typeof e.type?e:(Object.keys(x).forEach(function(e){void 0===x[e]&&delete x[e]}),v().cloneElement(e,x))}(e,t,n)})}(b,c,{prefixCls:o,accordion:l,openMotion:u,expandIcon:p,collapsible:d,destroyInactivePanel:i,onItemClick:function(e){return w(function(){return l?x[0]===e?[]:[e]:x.indexOf(e)>-1?x.filter(function(t){return t!==e}):[].concat(Ot(x),[e])})},activeKey:x});return v().createElement("div",g({ref:t,className:y,style:a,role:l?"tablist":void 0},bg(e,{aria:!0,data:!0})),S)});const xg=Object.assign(Cg,{Panel:mg}),wg=xg;xg.Panel;const $g=h.forwardRef((e,t)=>{const{getPrefixCls:n}=h.useContext(wt),{prefixCls:o,className:r,showArrow:i=!0}=e,a=n("collapse",o),l=N()({[`${a}-no-arrow`]:!i},r);return h.createElement(wg.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))}),Sg=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Eg=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:d,colorBorder:u,colorText:p,colorTextHeading:f,colorTextDisabled:m,fontSizeLG:g,lineHeight:h,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:C,paddingXS:x,motionDurationSlow:w,fontSizeIcon:$,contentPadding:S,fontHeight:E,fontHeightLG:k}=e,O=`${Jt(c)} ${d} ${u}`;return{[t]:Object.assign(Object.assign({},ur(e)),{backgroundColor:r,border:O,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:first-child":{[`\n            &,\n            & > ${t}-header`]:{borderRadius:`${Jt(s)} ${Jt(s)} 0 0`}},"&:last-child":{[`\n            &,\n            & > ${t}-header`]:{borderRadius:`0 0 ${Jt(s)} ${Jt(s)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:h,cursor:"pointer",transition:`all ${w}, visibility 0s`},fr(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:$,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}
1-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:l,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(C).sub(o).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Jt(s)} ${Jt(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},kg=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Og=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:o,borderlessContentBg:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\n        > ${t}-item:last-child,\n        > ${t}-item:last-child ${t}-header\n      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:r,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:o}}}},Ig=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Ng=zr("Collapse",e=>{const t=or(e,{collapseHeaderPaddingSM:`${Jt(e.paddingXS)} ${Jt(e.paddingSM)}`,collapseHeaderPaddingLG:`${Jt(e.padding)} ${Jt(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Eg(t),Og(t),Ig(t),kg(t),Sg(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"})),jg=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,expandIcon:r,className:i,style:a}=Et("collapse"),{prefixCls:l,className:s,rootClassName:c,style:d,bordered:u=!0,ghost:p,size:f,expandIconPosition:m="start",children:g,destroyInactivePanel:v,destroyOnHidden:b,expandIcon:y}=e,C=Jr(e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"}),x=n("collapse",l),w=n(),[$,S,E]=Ng(x),k=h.useMemo(()=>"left"===m?"start":"right"===m?"end":m,[m]),O=null!=y?y:r,I=h.useCallback((e={})=>{const t="function"==typeof O?O(e):h.createElement(cg,{rotate:e.isActive?"rtl"===o?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return qp(t,()=>{var e;return{className:N()(null===(e=t.props)||void 0===e?void 0:e.className,`${x}-arrow`)}})},[O,x,o]),j=N()(`${x}-icon-position-${k}`,{[`${x}-borderless`]:!u,[`${x}-rtl`]:"rtl"===o,[`${x}-ghost`]:!!p,[`${x}-${C}`]:"middle"!==C},i,s,c,S,E),M=h.useMemo(()=>Object.assign(Object.assign({},Rd(w)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),[w,x]),P=h.useMemo(()=>g?Mi(g).map((e,t)=>{var n,o;const r=e.props;if(null==r?void 0:r.disabled){const i=null!==(n=e.key)&&void 0!==n?n:String(t);return qp(e,Object.assign(Object.assign({},vt(e.props,["disabled"])),{key:i,collapsible:null!==(o=r.collapsible)&&void 0!==o?o:"disabled"}))}return e}):null,[g]);return $(h.createElement(wg,Object.assign({ref:t,openMotion:M},vt(e,["rootClassName"]),{expandIcon:I,prefixCls:x,className:j,style:Object.assign(Object.assign({},a),d),destroyInactivePanel:null!=b?b:v}),P))}),Mg=Object.assign(jg,{Panel:$g});function Pg(e){return or(e,{inputAffixPadding:e.paddingXXS})}const Rg=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:v,colorWarningOutline:b,colorBg
vendor: 20,504 bytes, line 1
1Container:y,inputFontSize:C,inputFontSizeLG:x,inputFontSizeSM:w}=e,$=C||n,S=w||$,E=x||l,k=Math.round((t-$*o)/2*10)/10-r,O=Math.round((i-S*o)/2*10)/10-r,I=Math.ceil((a-E*s)/2*10)/10-r;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(O,0),paddingBlockLG:Math.max(I,0),paddingInline:c-r,paddingInlineSM:d-r,paddingInlineLG:u-r,addonBg:p,activeBorderColor:m,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${h}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:$,inputFontSizeLG:E,inputFontSizeSM:S}},Lg=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Tg=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Lg(or(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),zg=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Bg=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},zg(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Hg=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zg(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Tg(e))}),Bg(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Bg(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),_g=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ag=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},_g(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),_g(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Tg(e))}})}),Dg=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Fg=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Wg=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Fg(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Kg=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fg(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Tg(e))}),Wg(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Wg(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Vg=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),qg=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Vg(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Vg(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Gg=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Jt(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Xg=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Gg(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Ug=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gg(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Xg(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Xg(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Zg=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Yg=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${Jt(t)} ${Jt(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},Qg=e=>({padding:`${Jt(e.paddingBlockSM)} ${Jt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Jg=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Jt(e.paddingBlock)} ${Jt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Zg(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Yg(e)),"&-sm":Object.assign({},Qg(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),eh=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Yg(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Qg(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Jt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Jt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Jt(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Jt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Jt(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n        & > ${t}-affix-wrapper,\n        & > ${t}-number-affix-wrapper,\n        & > ${n}-picker-range\n      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n      & > ${n}-select-auto-complete ${t},\n      & > ${n}-cascader-picker ${t},\n      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n      & > ${n}-select:first-child > ${n}-select-selector,\n      & > ${n}-select-auto-complete:first-child ${t},\n      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n      & > ${n}-select:last-child > ${n}-select-selector,\n      & > ${n}-cascader-picker:last-child ${t},\n      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},th=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),Jg(e)),Hg(e)),Kg(e)),Dg(e)),Ug(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},nh=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Jt(e.inputAffixPadding)}`}}}},oh=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Jg(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),nh(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},rh=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ur(e)),eh(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:o}}},Ag(e)),qg(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},ih=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${o}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n        > ${t},\n        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},ah=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},lh=zr(["Input","Shared"],e=>{const t=or(e,Pg(e));return[th(t),oh(t)]},Rg,{resetFont:!1}),sh=zr(["Input","Component"],e=>{const t=or(e,Pg(e));return[rh(t),ih(t),ah(t),Mm(t)]},Rg,{resetFont:!1});function ch(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function dh(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=ch(t,e,o)):n(r=ch(t,e,""))}}function uh(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var ph=v().forwardRef(function(e,t){var n,o,r,i=e.inputElement,a=e.children,l=e.prefixCls,s=e.prefix,c=e.suffix,d=e.addonBefore,u=e.addonAfter,p=e.className,f=e.style,m=e.disabled,b=e.readOnly,y=e.focused,C=e.triggerFocus,x=e.allowClear,w=e.value,$=e.handleReset,E=e.hidden,O=e.classes,I=e.classNames,j=e.dataAttrs,M=e.styles,P=e.components,R=e.onClear,L=null!=a?a:i,T=(null==P?void 0:P.affixWrapper)||"span",z=(null==P?void 0:P.groupWrapper)||"span",B=(null==P?void 0:P.wrapper)||"span",H=(null==P?void 0:P.groupAddon)||"span",_=(0,h.useRef)(null),A=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),D=(0,h.cloneElement)(L,{value:w,className:N()(null===(n=L.props)||void 0===n?void 0:n.className,!A&&(null==I?void 0:I.variant))||null}),F=(0,h.useRef)(null);if(v().useImperativeHandle(t,function(){return{nativeElement:F.current||_.current}}),A){var W=null;if(x){var K=!m&&!b&&w,V="".concat(l,"-clear-icon"),q="object"===S(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";W=v().createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==$||$(e),null==R||R()},onMouseDown:function(e){return e.preventDefault()},className:N()(V,k(k({},"".concat(V,"-hidden"),!K),"".concat(V,"-has-suffix"),!!c))},q)}var G="".concat(l,"-affix-wrapper"),X=N()(G,k(k(k(k(k({},"".concat(l,"-disabled"),m),"".concat(G,"-disabled"),m),"".concat(G,"-focused"),y),"".concat(G,"-readonly"),b),"".concat(G,"-input-with-clear-btn"),c&&x&&w),null==O?void 0:O.affixWrapper,null==I?void 0:I.affixWrapper,null==I?void 0:I.variant),U=(c||x)&&v().createElement("span",{className:N()("".concat(l,"-suffix"),null==I?void 0:I.suffix),style:null==M?void 0:M.suffix},W,c);D=v().createElement(T,g({className:X,style:null==M?void 0:M.affixWrapper,onClick:function(e){var t;null!==(t=_.current)&&void 0!==t&&t.contains(e.target)&&(null==C||C())}},null==j?void 0:j.affixWrapper,{ref:_}),s&&v().createElement("span",{className:N()("".concat(l,"-prefix"),null==I?void 0:I.prefix),style:null==M?void 0:M.prefix},s),D,U)}
1if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var Z="".concat(l,"-group"),Y="".concat(Z,"-addon"),Q="".concat(Z,"-wrapper"),J=N()("".concat(l,"-wrapper"),Z,null==O?void 0:O.wrapper,null==I?void 0:I.wrapper),ee=N()(Q,k({},"".concat(Q,"-disabled"),m),null==O?void 0:O.group,null==I?void 0:I.groupWrapper);D=v().createElement(z,{className:ee,ref:F},v().createElement(B,{className:J},d&&v().createElement(H,{className:Y},d),D,u&&v().createElement(H,{className:Y},u)))}return v().cloneElement(D,{className:N()(null===(o=D.props)||void 0===o?void 0:o.className,p)||null,style:he(he({},null===(r=D.props)||void 0===r?void 0:r.style),f),hidden:E})});const fh=ph;var mh=["show"];function gh(e,t){return h.useMemo(function(){var n={};t&&(n.show="object"===S(t)&&t.formatter?t.formatter:!!t);var o=n=he(he({},n),e),r=o.show,i=O(o,mh);return he(he({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})},[e,t])}var hh=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],vh=(0,h.forwardRef)(function(e,t){var n=e.autoComplete,o=e.onChange,r=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,c=e.prefixCls,d=void 0===c?"rc-input":c,u=e.disabled,p=e.htmlSize,f=e.className,m=e.maxLength,b=e.suffix,y=e.showCount,C=e.count,x=e.type,w=void 0===x?"text":x,S=e.classes,E=e.classNames,I=e.styles,j=e.onCompositionStart,M=e.onCompositionEnd,P=O(e,hh),R=$((0,h.useState)(!1),2),L=R[0],T=R[1],z=(0,h.useRef)(!1),B=(0,h.useRef)(!1),H=(0,h.useRef)(null),_=(0,h.useRef)(null),A=function(e){H.current&&uh(H.current,e)},D=$(Lo(e.defaultValue,{value:e.value}),2),F=D[0],W=D[1],K=null==F?"":String(F),V=$((0,h.useState)(null),2),q=V[0],G=V[1],X=gh(C,y),U=X.max||m,Z=X.strategy(K),Y=!!U&&Z>U;(0,h.useImperativeHandle)(t,function(){var e;return{focus:A,blur:function(){var e;null===(e=H.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=H.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=H.current)||void 0===e||e.select()},input:H.current,nativeElement:(null===(e=_.current)||void 0===e?void 0:e.nativeElement)||H.current}}),(0,h.useEffect)(function(){B.current&&(B.current=!1),T(function(e){return(!e||!u)&&e})},[u]);var Q=function(e,t,n){var r,i,a=t;if(!z.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)t!==(a=X.exceedFormatter(t,{max:X.max}))&&G([(null===(r=H.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=H.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;W(a),H.current&&dh(H.current,e,o,a)};(0,h.useEffect)(function(){var e;q&&(null===(e=H.current)||void 0===e||e.setSelectionRange.apply(e,Ot(q)))},[q]);var J,ee=Y&&"".concat(d,"-out-of-range");return v().createElement(fh,g({},P,{prefixCls:d,className:N()(f,ee),handleReset:function(e){W(""),A(),H.current&&dh(H.current,e,o)},value:K,focused:L,triggerFocus:A,suffix:function(){var e=Number(U)>0;if(b||X.show){var t=X.showFormatter?X.showFormatter({value:K,count:Z,maxLength:U}):"".concat(Z).concat(e?" / ".concat(U):"");return v().createElement(v().Fragment,null,X.show&&v().createElement("span",{className:N()("".concat(d,"-show-count-suffix"),k({},"".concat(d,"-show-count-has-suffix"),!!b),null==E?void 0:E.count),style:he({},null==I?void 0:I.count)},t),b)}return null}(),disabled:u,classes:S,classNames:E,styles:I,ref:_}),(J=vt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),v().createElement("input",g({autoComplete:n},J,{onChange:function(e){Q(e,e.target.value,{source:"change"})},onFocus:function(e){T(!0),null==r||r(e)},onBlur:function(e){B.current&&(B.current=!1),T(!1),null==i||i(e)},onKeyDown:function(e){a&&"Enter"===e.key&&!B.current&&(B.current=!0,a(e)),null==l||l(e)},onKeyUp:function(e){"Enter"===e.key&&(B.current=!1),null==s||s(e)},className:N()(d,k({},"".concat(d,"-disabled"),u),null==E?void 0:E.input),style:null==I?void 0:I.input,ref:H,size:p,type:w,onCompositionStart:function(e){z.current=!0,null==j||j(e)},onCompositionEnd:function(e){z.current=!1,Q(e,e.currentTarget.value,{source:"compositionEnd"}),null==M||M(e)}}))))});const bh=vh,yh=e=>{const{space:t,form:n,children:o}=e;if(null==o)return null;let r=o;return n&&(r=v().createElement(Lp,{override:!0,status:!0},r)),t&&(r=v().createElement($f,null,r)),r},Ch={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.
106L466.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"};var xh=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Ch}))};const wh=h.forwardRef(xh),$h=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:v().createElement(wh,null)}),t};function Sh(e,t,n){return N()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Eh=(e,t)=>t||e;function kh(e,t){const n=(0,h.useRef)([]),o=()=>{n.current.push(setTimeout(()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))}))};return(0,h.useEffect)(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}const Oh=(0,h.forwardRef)((e,t)=>{const{prefixCls:n,bordered:o=!0,status:r,size:i,disabled:a,onBlur:l,onFocus:s,suffix:c,allowClear:d,addonAfter:u,addonBefore:p,className:f,style:m,styles:g,rootClassName:b,onChange:y,classNames:C,variant:x,_skipAddonWarning:w}=e,$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:S,direction:E,allowClear:k,autoComplete:O,className:I,style:j,classNames:M,styles:P}=Et("input"),R=S("input",n),L=(0,h.useRef)(null),T=Od(R),[z,B,H]=lh(R,b),[_]=sh(R,T),{compactSize:A,compactItemClassnames:D}=wf(R,E),F=Jr(e=>{var t;return null!==(t=null!=i?i:A)&&void 0!==t?t:e}),W=v().useContext(vf),K=null!=a?a:W,{status:V,hasFeedback:q,feedbackIcon:G}=(0,h.useContext)(Rp),X=Eh(V,r),U=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!q;(0,h.useRef)(U);const Z=kh(L,!0),Y=(q||c)&&v().createElement(v().Fragment,null,c,q&&G),Q=$h(null!=d?d:k),[J,ee]=zp("input",x,o);return z(_(v().createElement(bh,Object.assign({ref:Fo(t,L),prefixCls:R,autoComplete:O},$,{disabled:K,onBlur:e=>{Z(),null==l||l(e)},onFocus:e=>{Z(),null==s||s(e)},style:Object.assign(Object.assign({},j),m),styles:Object.assign(Object.assign({},P),g),suffix:Y,allowClear:Q,className:N()(f,b,H,T,D,I),onChange:e=>{Z(),null==y||y(e)},addonBefore:p&&v().createElement(yh,{form:!0,space:!0},p),addonAfter:u&&v().createElement(yh,{form:!0,space:!0},u),classNames:Object.assign(Object.assign(Object.assign({},C),M),{input:N()({[`${R}-sm`]:"small"===F,[`${R}-lg`]:"large"===F,[`${R}-rtl`]:"rtl"===E},null==C?void 0:C.input,M.input,B),variant:N()({[`${R}-${J}`]:ee},Sh(R,X)),affixWrapper:N()({[`${R}-affix-wrapper-sm`]:"small"===F,[`${R}-affix-wrapper-lg`]:"large"===F,[`${R}-affix-wrapper-rtl`]:"rtl"===E},B),wrapper:N()({[`${R}-group-rtl`]:"rtl"===E},B),groupWrapper:N()({[`${R}-group-wrapper-sm`]:"small"===F,[`${R}-group-wrapper-lg`]:"large"===F,[`${R}-group-wrapper-rtl`]:"rtl"===E,[`${R}-group-wrapper-${J}`]:ee},Sh(`${R}-group-wrapper`,X,q),B)})}))))}),Ih=Oh,Nh=zr(["Input","OTP"],e=>(e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})(or(e,Pg(e))),Rg);const jh=h.forwardRef((e,t)=>
1{const{className:n,value:o,onChange:r,onActiveChange:i,index:a,mask:l}=e,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=h.useContext(wt),d=c("otp"),u="string"==typeof l?l:o,p=h.useRef(null);h.useImperativeHandle(t,()=>p.current);const f=()=>{ya(()=>{var e;const t=null===(e=p.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return h.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&""!==o&&void 0!==o&&h.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},u),h.createElement(Ih,Object.assign({"aria-label":`OTP Input ${a+1}`,type:!0===l?"password":"text"},s,{ref:p,value:o,onInput:e=>{r(a,e.target.value)},onFocus:f,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(n||r)?e.preventDefault():"Backspace"!==t||o||i(a-1),f()},onMouseDown:f,onMouseUp:f,className:N()(n,{[`${d}-mask-input`]:l})})))});function Mh(e){return(e||"").split("")}const Ph=e=>{const{index:t,prefixCls:n,separator:o}=e,r="function"==typeof o?o(t):o;return r?h.createElement("span",{className:`${n}-separator`},r):null},Rh=h.forwardRef((e,t)=>{const{prefixCls:n,length:o=6,size:r,defaultValue:i,value:a,onChange:l,formatter:s,separator:c,variant:d,disabled:u,status:p,autoFocus:f,mask:m,type:g,onInput:v,inputMode:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:x}=h.useContext(wt),w=C("otp",n),$=bg(y,{aria:!0,data:!0,attr:!0}),[S,E,k]=Nh(w),O=Jr(e=>null!=r?r:e),I=h.useContext(Rp),j=Eh(I.status,p),M=h.useMemo(()=>Object.assign(Object.assign({},I),{status:j,hasFeedback:!1,feedbackIcon:null}),[I,j]),P=h.useRef(null),R=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var e;null===(e=R.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=R.current[t])||void 0===e||e.blur()},nativeElement:P.current}));const L=e=>s?s(e):e,[T,z]=h.useState(()=>Mh(L(i||"")));h.useEffect(()=>{void 0!==a&&z(Mh(a))},[a]);const B=Mo(e=>{z(e),v&&v(e),l&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>T[t]!==e)&&l(e.join(""))}),H=Mo((e,t)=>{let n=Of(T);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Mh(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=L(n.map(e=>e||" ").join(""));return n=Mh(r).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),_=(e,t)=>
1{var n;const r=H(e,t),i=Math.min(e+t.length,o-1);i!==e&&void 0!==r[e]&&(null===(n=R.current[i])||void 0===n||n.focus()),B(r)},A=e=>{var t;null===(t=R.current[e])||void 0===t||t.focus()},D={variant:d,disabled:u,status:j,mask:m,type:g,inputMode:b};return S(h.createElement("div",Object.assign({},$,{ref:P,className:N()(w,{[`${w}-sm`]:"small"===O,[`${w}-lg`]:"large"===O,[`${w}-rtl`]:"rtl"===x},k,E),role:"group"}),h.createElement(Rp.Provider,{value:M},Array.from({length:o}).map((e,t)=>{const n=`otp-${t}`,r=T[t]||"";return h.createElement(h.Fragment,{key:n},h.createElement(jh,Object.assign({ref:e=>{R.current[t]=e},index:t,size:O,htmlSize:1,className:`${w}-input`,onChange:_,value:r,onActiveChange:A,autoFocus:0===t&&f},D)),t<o-1&&h.createElement(Ph,{separator:c,index:t,prefixCls:w}))}))))}),Lh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var Th=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Lh}))};const zh=h.forwardRef(Th);const Bh=e=>e?h.createElement(dt,null):h.createElement(zh,null),Hh={click:"onClick",hover:"onMouseOver"},_h=h.forwardRef((e,t)=>{const{disabled:n,action:o="click",visibilityToggle:r=!0,iconRender:i=Bh,suffix:a}=e,l=h.useContext(vf),s=null!=n?n:l,c="object"==typeof r&&void 0!==r.visible,[d,u]=(0,h.useState)(()=>!!c&&r.visible),p=(0,h.useRef)(null);h.useEffect(()=>{c&&u(r.visible)},[c,r]);const f=kh(p),m=()=>{var e;if(s)return;d&&f();const t=!d;u(t),"object"==typeof r&&(null===(e=r.onVisibleChange)||void 0===e||e.call(r,t))},{className:g,prefixCls:v,inputPrefixCls:b,size:y}=e,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=h.useContext(wt),w=x("input",b),$=x("input-password",v),S=r&&(e=>{const t=Hh[o]||"",n=i(d),r={[t]:m,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return h.cloneElement(h.isValidElement(n)?n:h.createElement("span",null,n),r)})($),E=N()($,g,{[`${$}-${y}`]:!!y}),k=Object.assign(Object.assign({},vt(C,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:E,prefixCls:w,suffix:h.createElement(h.Fragment,null,S,a)});return y&&(k.size=y),h.createElement(Ih,Object.assign({ref:Fo(t,p)},k))}),Ah=_h,Dh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var Fh=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Dh}))};const Wh=h.forwardRef(Fh);const Kh=h.forwardRef((e,t)=>
1{const{prefixCls:n,inputPrefixCls:o,className:r,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:d,onSearch:u,onChange:p,onCompositionStart:f,onCompositionEnd:m,variant:g,onPressEnter:v}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:C}=h.useContext(wt),x=h.useRef(!1),w=y("input-search",n),$=y("input",o),{compactSize:S}=wf(w,C),E=Jr(e=>{var t;return null!==(t=null!=i?i:S)&&void 0!==t?t:e}),k=h.useRef(null),O=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},I=e=>{var t,n;u&&u(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},j="boolean"==typeof l?h.createElement(Wh,null):null,M=`${w}-button`;let P;const R=l||{},L=R.type&&!0===R.type.__ANT_BUTTON;P=L||"button"===R.type?qp(R,Object.assign({onMouseDown:O,onClick:e=>{var t,n;null===(n=null===(t=null==R?void 0:R.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),I(e)},key:"enterButton"},L?{className:M,size:E}:{})):h.createElement(_m,{className:M,color:l?"primary":"default",size:E,disabled:d,key:"enterButton",onMouseDown:O,onClick:I,loading:c,icon:j,variant:"borderless"===g||"filled"===g||"underlined"===g?"text":l?"solid":void 0},l),s&&(P=[P,qp(s,{key:"addonAfter"})]);const T=N()(w,{[`${w}-rtl`]:"rtl"===C,[`${w}-${E}`]:!!E,[`${w}-with-button`]:!!l},r),z=Object.assign(Object.assign({},b),{className:T,prefixCls:$,type:"search",size:E,variant:g,onPressEnter:e=>{x.current||c||(null==v||v(e),I(e))},onCompositionStart:e=>{x.current=!0,null==f||f(e)},onCompositionEnd:e=>{x.current=!1,null==m||m(e)},addonAfter:P,suffix:a,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&u&&u(e.target.value,e,{source:"clear"}),null==p||p(e)},disabled:d,_skipAddonWarning:!0});return h.createElement(Ih,Object.assign({ref:Fo(k,t)},z))}),Vh=Kh;var qh,Gh=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Xh={};var Uh=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Zh=h.forwardRef(function(e,t){var n=e,o=n.prefixCls,r=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,d=n.disabled,u=n.onChange,p=(n.onInternalAutoSize,O(n,Uh)),f=$(Lo(r,{value:i,postState:function(e){return null!=e?e:""}}),2),m=f[0],v=f[1],b=h.useRef();h.useImperativeHandle(t,function(){return{textArea:b.current}});var y=$(h.useMemo(function(){return a&&"object"===S(a)?[a.minRows,a.maxRows]:[]}
1,[a]),2),C=y[0],x=y[1],w=!!a,E=$(h.useState(2),2),I=E[0],j=E[1],M=$(h.useState(),2),P=M[0],R=M[1],L=function(){j(0)};sn(function(){w&&L()},[i,C,x,w]),sn(function(){if(0===I)j(1);else if(1===I){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;qh||((qh=document.createElement("textarea")).setAttribute("tab-index","-1"),qh.setAttribute("aria-hidden","true"),qh.setAttribute("name","hiddenTextarea"),document.body.appendChild(qh)),e.getAttribute("wrap")?qh.setAttribute("wrap",e.getAttribute("wrap")):qh.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Xh[n])return Xh[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l={sizingStyle:Gh.map(function(e){return"".concat(e,":").concat(o.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(Xh[n]=l),l}(e,t),i=r.paddingSize,a=r.borderSize,l=r.boxSizing,s=r.sizingStyle;qh.setAttribute("style","".concat(s,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n")),qh.value=e.value||e.placeholder||"";var c,d=void 0,u=void 0,p=qh.scrollHeight;if("border-box"===l?p+=a:"content-box"===l&&(p-=i),null!==n||null!==o){qh.value=" ";var f=qh.scrollHeight-i;null!==n&&(d=f*n,"border-box"===l&&(d=d+i+a),p=Math.max(d,p)),null!==o&&(u=f*o,"border-box"===l&&(u=u+i+a),c=p>u?"":"hidden",p=Math.min(u,p))}var m={height:p,overflowY:c,resize:"none"};return d&&(m.minHeight=d),u&&(m.maxHeight=u),m}(b.current,!1,C,x);j(2),R(e)}},[I]);var T=h.useRef(),z=function(){ya.cancel(T.current)};h.useEffect(function(){return z},[]);var B=w?P:null,H=he(he({},c),B);return 0!==I&&1!==I||(H.overflowY="hidden",H.overflowX="hidden"),h.createElement(pa,{onResize:function(e){2===I&&(null==l||l(e),a&&(z(),T.current=ya(function(){L()})))},disabled:!(a||l)},h.createElement("textarea",g({},p,{ref:b,style:H,className:N()(o,s,k({},"".concat(o,"-disabled"),d)),disabled:d,value:m,onChange:function(e){v(e.target.value),null==u||u(e)}})))});const Yh=Zh;var Qh=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Jh=v().forwardRef(function(e,t){var n,o=e.defaultValue,r=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,d=e.onCompositionStart,u=e.onCompositionEnd,p=e.suffix,f=e.prefixCls,m=void 0===f?"rc-textarea":f,b=e.showCount,y=e.count,C=e.className,x=e.style,w=e.disabled,S=e.hidden,E=e.classNames,I=e.styles,j=e.onResize,M=e.onClear,P=e.onPressEnter,R=e.readOnly,L=e.autoSize,T=e.onKeyDown,z=O(e,Qh),B=$(Lo(o,{value:r,defaultValue:o}),2),H=B[0],_=B[1],A=null==H?"":String(H),D=$(v().useState(!1),2),F=D[0],W=D[1],K=v().useRef(!1),V=$(v().useState(null),2),q=V[0],G=V[1],X=(0,h.useRef)(null),U=(0,h.useRef)(null),Z=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},Y=function(){Z().focus()};(0,h.useImperativeHandle)(t,function(){var e;return{resizableTextArea:U.current,focus:Y,blur:function(){Z().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||Z()}}),(0,h.useEffect)(function(){W(function(e){return!w&&e})},[w]);var Q=$(v().useState(null),2),J=Q[0],ee=Q[1];v().useEffect(function(){var e;J&&(e=Z()).setSelectionRange.apply(e,Ot(J))},[J]);var te,ne=gh(y,b),oe=null!==(n=ne.max)&&void 0!==n?n:c,re=Number(oe)>0,ie=ne.strategy(A),ae=!!oe&&ie>oe,le=function(e,t){var n=t;!K.current&&ne.exceedFormatter&&ne.max&&ne.strategy(t)>ne.max&&t!==(n=ne.exceedFormatter(t,{max:ne.max}))&&ee([Z().selectionStart||0,Z().selectionEnd||0]),_(n),dh(e.currentTarget,e,l,n)},se=p;ne.show&&(te=ne.showFormatter?ne.showFormatter({value:A,count:ie,maxLength:oe}):"".concat(ie).concat(re?" / ".concat(oe):""),se=v().createElement(v().Fragment,null,se,v().createElement("span",{className:N()("".concat(m,"-data-count"),null==E?void 0:E.
1count),style:null==I?void 0:I.count},te)));var ce=!L&&!b&&!s;return v().createElement(fh,{ref:X,value:A,allowClear:s,handleReset:function(e){_(""),Y(),dh(Z(),e,l)},suffix:se,prefixCls:m,classNames:he(he({},E),{},{affixWrapper:N()(null==E?void 0:E.affixWrapper,k(k({},"".concat(m,"-show-count"),b),"".concat(m,"-textarea-allow-clear"),s))}),disabled:w,focused:F,className:N()(C,ae&&"".concat(m,"-out-of-range")),style:he(he({},x),q&&!ce?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof te?te:void 0}},hidden:S,readOnly:R,onClear:M},v().createElement(Yh,g({},z,{autoSize:L,maxLength:c,onKeyDown:function(e){"Enter"===e.key&&P&&P(e),null==T||T(e)},onChange:function(e){le(e,e.target.value)},onFocus:function(e){W(!0),null==i||i(e)},onBlur:function(e){W(!1),null==a||a(e)},onCompositionStart:function(e){K.current=!0,null==d||d(e)},onCompositionEnd:function(e){K.current=!1,le(e,e.currentTarget.value),null==u||u(e)},className:N()(null==E?void 0:E.textarea),style:he(he({},null==I?void 0:I.textarea),{},{resize:null==x?void 0:x.resize}),disabled:w,prefixCls:m,onResize:function(e){var t;null==j||j(e),null!==(t=Z())&&void 0!==t&&t.style.height&&G(!0)},ref:U,readOnly:R})))});const ev=Jh,tv=zr(["Input","TextArea"],e=>(e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[o]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n        &-allow-clear > ${t},\n        &-affix-wrapper${o}-has-feedback ${t}\n      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})(or(e,Pg(e))),Rg,{resetFont:!1});const nv=(0,h.forwardRef)((e,t)=>{var n;const{prefixCls:o,bordered:r=!0,size:i,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:d,className:u,style:p,styles:f,variant:m,showCount:g,onMouseDown:v,onResize:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:C,direction:x,allowClear:w,autoComplete:$,className:S,style:E,classNames:k,styles:O}=Et("textArea"),I=h.useContext(vf),j=null!=a?a:I,{status:M,hasFeedback:P,feedbackIcon:R}=h.useContext(Rp),L=Eh(M,l),T=h.useRef(null);h.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=T.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;uh(null===(n=null===(t=T.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=T.current)||void 0===e?void 0:e.blur()}}});const z=C("input",o),B=Od(z),[H,_,A]=lh(z,d),[D]=tv(z,B),{compactSize:F,compactItemClassnames:W}=wf(z,x),K=Jr(e=>{var t;return null!==(t=null!=i?i:F)&&void 0!==t?t:e}),[V,q]=zp("textArea",m,r),G=$h(null!=s?s:w),[X,U]=h.useState(!1),[Z,Y]=h.useState(!1);return H(D(h.createElement(ev,Object.assign({autoComplete:$},y,{style:Object.assign(Object.assign({},E),p),styles:Object.assign(Object.assign({},O),f),disabled:j,allowClear:G,className:N()(A,B,u,d,W,S,Z&&`${z}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),k),{textarea:N()({[`${z}-sm`]:"small"===K,[`${z}-lg`]:"large"===K},_,null==c?void 0:c.textarea,k.textarea,X&&`${z}-mouse-active`),variant:N()({[`${z}-${V}`]:q},Sh(z,L)),affixWrapper:N()(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:"rtl"===x,[`${z}-affix-wrapper-sm`]:"small"===K,[`${z}-affix-wrapper-lg`]:"large"===K,[`${z}-textarea-show-count`]:g||(null===(n=e.count)||void 0===n?void 0:n.show)},_)}),prefixCls:z,suffix:P&&h.createElement("span",{className:`${z}-textarea-suffix`},R),showCount:g,ref:T,onResize:e=>{var t,n;if(null==b||b(e),X&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=T.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Y(!0)}},onMouseDown:e=>{U(!0),null==v||v(e);const t=()=>{U(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}),ov=nv,rv=Ih;rv.Group=e=>{const{getPrefixCls:t,direction:n}=(0,h.useContext)(wt),{prefixCls:o,className:r}=e,i=t("input-group",o),a=t("input"),[l,s,c]=sh(a),d=N()(i,c,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},s,r),u=(0,h.useContext)(Rp),p=(0,h.useMemo)(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return l(h.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onF
1ocus:e.onFocus,onBlur:e.onBlur},h.createElement(Rp.Provider,{value:p},e.children)))},rv.Search=Vh,rv.TextArea=ov,rv.Password=Ah,rv.OTP=Rh;const iv=rv,av=({...e})=>(0,t.jsx)(iv,{...e});av.TextArea=iv.TextArea;const lv=av;var sv=h.createContext(null),cv=h.createContext({});const dv=sv;var uv=["prefixCls","className","containerRef"];const pv=function(e){var t=e.prefixCls,n=e.className,o=e.containerRef,r=O(e,uv),i=h.useContext(cv).panel,a=Wo(i,o);return h.createElement("div",g({className:N()("".concat(t,"-content"),n),role:"dialog",ref:a},bg(e,{aria:!0}),{"aria-modal":"true"},r))};function fv(e){return"string"==typeof e&&String(Number(e))===e?(Be(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var mv={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function gv(e,t){var n,o,r,i=e.prefixCls,a=e.open,l=e.placement,s=e.inline,c=e.push,d=e.forceRender,u=e.autoFocus,p=e.keyboard,f=e.classNames,m=e.rootClassName,v=e.rootStyle,b=e.zIndex,y=e.className,C=e.id,x=e.style,w=e.motion,S=e.width,E=e.he
vendor: 4,664 bytes, line 1
1ight,O=e.children,I=e.mask,j=e.maskClosable,M=e.maskMotion,P=e.maskClassName,R=e.maskStyle,L=e.afterOpenChange,T=e.onClose,z=e.onMouseEnter,B=e.onMouseOver,H=e.onMouseLeave,_=e.onClick,A=e.onKeyDown,D=e.onKeyUp,F=e.styles,W=e.drawerRender,K=h.useRef(),V=h.useRef(),q=h.useRef();h.useImperativeHandle(t,function(){return K.current}),h.useEffect(function(){var e;a&&u&&(null===(e=K.current)||void 0===e||e.focus({preventScroll:!0}))},[a]);var G=$(h.useState(!1),2),X=G[0],U=G[1],Z=h.useContext(dv),Y=null!==(n=null!==(o=null===(r="boolean"==typeof c?c?{}:{distance:0}:c||{})||void 0===r?void 0:r.distance)&&void 0!==o?o:null==Z?void 0:Z.pushDistance)&&void 0!==n?n:180,Q=h.useMemo(function(){return{pushDistance:Y,push:function(){U(!0)},pull:function(){U(!1)}}},[Y]);h.useEffect(function(){var e,t;a?null==Z||null===(e=Z.push)||void 0===e||e.call(Z):null==Z||null===(t=Z.pull)||void 0===t||t.call(Z)},[a]),h.useEffect(function(){return function(){var e;null==Z||null===(e=Z.pull)||void 0===e||e.call(Z)}},[]);var J=h.createElement(Fl,g({key:"mask"},M,{visible:I&&a}),function(e,t){var n=e.className,o=e.style;return h.createElement("div",{className:N()("".concat(i,"-mask"),n,null==f?void 0:f.mask,P),style:he(he(he({},o),R),null==F?void 0:F.mask),onClick:j&&a?T:void 0,ref:t})}),ee="function"==typeof w?w(l):w,te={};if(X&&Y)switch(l){case"top":te.transform="translateY(".concat(Y,"px)");break;case"bottom":te.transform="translateY(".concat(-Y,"px)");break;case"left":te.transform="translateX(".concat(Y,"px)");break;default:te.transform="translateX(".concat(-Y,"px)")}"left"===l||"right"===l?te.width=fv(S):te.height=fv(E);var ne={onMouseEnter:z,onMouseOver:B,onMouseLeave:H,onClick:_,onKeyDown:A,onKeyUp:D},oe=h.createElement(Fl,g({key:"panel"},ee,{visible:a,forceRender:d,onVisibleChanged:function(e){null==L||L(e)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(t,n){var o=t.className,r=t.style,a=h.createElement(pv,g({id:C,containerRef:n,prefixCls:i,className:N()(y,null==f?void 0:f.content),style:he(he({},x),null==F?void 0:F.content)},bg(e,{aria:!0}),ne),O);return h.createElement("div",g({className:N()("".concat(i,"-content-wrapper"),null==f?void 0:f.wrapper,o),style:he(he(he({},te),r),null==F?void 0:F.wrapper)},bg(e,{data:!0})),W?W(a):a)}),re=he({},v);return b&&(re.zIndex=b),h.createElement(dv.Provider,{value:Q},h.createElement("div",{className:N()(i,"".concat(i,"-").concat(l),m,k(k({},"".concat(i,"-open"),a),"".concat(i,"-inline"),s)),style:re,tabIndex:-1,ref:K,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case gs.TAB:var o;if(t===gs.TAB)if(n||document.activeElement!==q.current){if(n&&document.activeElement===V.current){var r;null===(r=q.current)||void 0===r||r.focus({preventScroll:!0})}}else null===(o=V.current)||void 0===o||o.focus({preventScroll:!0});break;case gs.ESC:T&&p&&(e.stopPropagation(),T(e))}}},J,h.createElement("div",{tabIndex:0,ref:V,style:mv,"aria-hidden":"true","data-sentinel":"start"}),oe,h.createElement("div",{tabIndex:0,ref:q,style:mv,"aria-hidden":"true","data-sentinel":"end"})))}const hv=h.forwardRef(gv),vv=function(e){var t=e.open,n=void 0!==t&&t,o=e.prefixCls,r=void 0===o?"rc-drawer":o,i=e.placement,a=void 0===i?"right":i,l=e.autoFocus,s=void 0===l||l,c=e.keyboard,d=void 0===c||c,u=e.width,p=void 0===u?378:u,f=e.mask,m=void 0===f||f,g=e.maskClosable,v=void 0===g||g,b=e.getContainer,y=e.forceRender,C=e.afterOpenChange,x=e.destroyOnClose,w=e.onMouseEnter,S=e.onMouseOver,E=e.onMouseLeave,k=e.onClick,O=e.onKeyDown,I=e.onKeyUp,N=e.panelRef,j=$(h.useState(!1),2),M=j[0],P=j[1],R=$(h.useState(!1),2),L=R[0],T=R[1];sn(function(){T(!0)},[]);var z=!!L&&n,B=h.useRef(),H=h.useRef();sn(function(){z&&(H.current=document.activeElement)},[z]);var _=h.useMemo(function(){return{panel:N}},[N]);if(!y&&!M&&!z&&x)return null;var A={onMouseEnter:w,onMouseOver:S,onMouseLeave:E,onClick:k,onKeyDown:O,onKeyUp:I},D=he(he({},e),{},{open:z,prefixCls:r,placement:a,autoFocus:s,keyboard:d,width:p,mask:m,maskClosable:v,inline:!1===b,afterOpenChange:function(e){var t,n;P(e),null==C||C(e),e||!H.current||null!==(t=B.current)&&void 0!==t&&t.contains(H.current)||null===(n=H.current)||void 0===n||n.focus({preventScroll:!0})},ref:B},A);return h.createElement(cv.Provider,{value:_},h.createElement(Wa,{open:z||y||M,autoDestroy:!1,getContainer:b,autoLock:m&&(z||M)},h.createElement(hv,D)))},bv=v().createContext(void 0),yv=100,Cv={Modal:yv,Drawer:yv,Popover:yv,Popconfirm:yv,Tooltip:yv,Tour:yv,FloatButton:yv},xv={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},wv=(e,t)=>{const[,n]=Tr(),o=v().useContext(bv),r=e in Cv;let i;if(void 0!==t)i=[t,t];else{let a=null!=o?o:0;
1a+=r?(o?0:n.zIndexPopupBase)+Cv[e]:xv[e],i=[void 0===o?t:a,a]}return i};function $v(){}const Sv=h.createContext({add:$v,remove:$v});function Ev(e){const t=h.useContext(Sv),n=h.useRef(null);return Mo(o=>{if(o){const r=e?o.querySelector(e):o;r&&(t.add(r),n.current=r)}else t.remove(n.current)})}const kv=(0,h.createContext)(void 0),Ov={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"},Iv=he(he({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"}),Nv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},jv={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"]},Iv),timePickerLocale:Object.assign({},Nv)},Mv="${label} is not a valid ${type}",Pv={locale:"en",Pagination:Ov,DatePicker:jv,TimePicker:Nv,Calendar:jv,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},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:Mv,method:Mv,array:Mv,object:Mv,number:Mv,date:Mv,boolean:Mv,integer:Mv,float:Mv,regexp:Mv,email:Mv,url:Mv,hex:Mv},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",scanned:"Scanned"}
1,ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Rv=(e,t)=>{const n=h.useContext(kv);return[h.useMemo(()=>{var o;const r=t||Pv[e],i=null!==(o=null==n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})},[e,t,n]),h.useMemo(()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Pv.locale:e},[n])]},Lv=function(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t};function Tv(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function zv(e){const{closable:t,closeIcon:n}=e||{};return v().useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}const Bv={},Hv=(e,t,n=Bv)=>{const o=zv(e),r=zv(t),[i]=Rv("global",Pv.global),a="boolean"!=typeof o&&!!(null==o?void 0:o.disabled),l=v().useMemo(()=>Object.assign({closeIcon:v().createElement(wi,null)},n),[n]),s=v().useMemo(()=>!1!==o&&(o?Lv(l,r,o):!1!==r&&(r?Lv(l,r):!!l.closable&&l)),[o,r,l]);return v().useMemo(()=>{var e,t;if(!1===s)return[!1,null,a,{}];const{closeIconRender:n}=l,{closeIcon:o}=s;let r=o;const c=bg(s,!0);return null!=r&&(n&&(r=n(o)),r=v().isValidElement(r)?v().cloneElement(r,Object.assign(Object.assign(Object.assign({},r.props),{"aria-label":null!==(t=null===(e=r.props)||void 0===e?void 0:e["aria-label"])&&void 0!==t?t:i.close}),c)):v().createElement("span",Object.assign({"aria-label":i.close},c),r)),[!0,r,a,c]},[a,i.close,s,l])},_v=e=>{var t,n;const{prefixCls:o,ariaId:r,title:i,footer:a,extra:l,closable:s,loading:c,onClose:d,headerStyle:u,bodyStyle:p,footerStyle:f,children:m,classNames:g,styles:v}=e,b=Et("drawer");let y;y=!1===s?void 0:void 0===s||!0===s?"start":"end"===(null==s?void 0:s.placement)?"end":"start";const C=h.useCallback(e=>h.createElement("button",{type:"button",onClick:d,className:N()(`${o}-close`,{[`${o}-close-${y}`]:"end"===y})},e),[d,o,y]),[x,w]=Hv(Tv(e),Tv(b),{closable:!0,closeIconRender:C});return h.createElement(h.Fragment,null,(()=>{var e,t;return i||x?h.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=b.styles)||void 0===e?void 0:e.header),u),null==v?void 0:v.header),className:N()(`${o}-header`,{[`${o}-header-close-only`]:x&&!i&&!l},null===(t=b.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},h.createElement("div",{className:`${o}-header-title`},"start"===y&&w,i&&h.createElement("div",{className:`${o}-title`,id:r},i)),l&&h.createElement("div",{className:`${o}-extra`},l),"end"===y&&w):null})(),h.createElement("div",{className:N()(`${o}-body`,null==g?void 0:g.body,null===(t=b.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=b.styles)||void 0===n?void 0:n.body),p),null==v?void 0:v.body)},c?h.createElement(yi,{active:!0,title:!1,paragraph:{rows:5},className:`${o}-body-skeleton`}):m),(()=>{var e,t;if(!a)return null;const n=`${o}-footer`;return h.createElement("div",{className:N()(n,null===(e=b.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=b.styles)||void 0===t?void 0:t.footer),f),null==v?void 0:v.footer)},a)})())},Av=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Dv=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Fv=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Dv({opacity:e},{opacity:1})),Wv=(e,t)=>[Fv(.7,t),Dv({transform:Av(e)},{transform:"none"})],Kv=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Fv(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:Wv(t,n)}),{})}}},Vv=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:o,colorBgMask:r,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:s,padding:c,paddingLG:d,fontSizeLG:u,lineHeightLG:p,lineWidth:f,lineType:m,colorSplit:g,marginXS:h,colorIcon:v,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:C,colorText:x,fontWeightStrong:w,footerPaddingBlock:$,footerPaddingInline:S,calc:E}=e,k=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:o,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:o,background:r,pointerEvents:"auto"},[k]:{position:"absolute",zIndex:o,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${k}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0}
vendor: 7,197 bytes, line 1
1,boxShadow:e.boxShadowDrawerLeft},[`&-right > ${k}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${k}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${k}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Jt(c)} ${Jt(d)}`,fontSize:u,lineHeight:p,borderBottom:`${Jt(f)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:E(u).add(s).equal(),height:E(u).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:v,fontWeight:w,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:h},[`&:not(${n}-close-end)`]:{marginInlineEnd:h},"&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:C}},fr(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Jt($)} ${Jt(S)}`,borderTop:`${Jt(f)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},qv=zr("Drawer",e=>{const t=or(e,{});return[Vv(t),Kv(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}));var Gv=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Xv={distance:180},Uv=e=>{const{rootClassName:t,width:n,height:o,size:r="default",mask:i=!0,push:a=Xv,open:l,afterOpenChange:s,onClose:c,prefixCls:d,getContainer:u,panelRef:p=null,style:f,className:m,"aria-labelledby":g,visible:v,afterVisibleChange:b,maskStyle:y,drawerStyle:C,contentWrapperStyle:x,destroyOnClose:w,destroyOnHidden:$}=e,S=Gv(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),E=qa(),k=S.title?E:void 0,{getPopupContainer:O,getPrefixCls:I,direction:j,className:M,style:P,classNames:R,styles:L}=Et("drawer"),T=I("drawer",d),[z,B,H]=qv(T),_=void 0===u&&O?()=>O(document.body):u,A=N()({"no-mask":!i,[`${T}-rtl`]:"rtl"===j},t,B,H),D=h.useMemo(()=>null!=n?n:"large"===r?736:378,[n,r]),F=h.useMemo(()=>null!=o?o:"large"===r?736:378,[o,r]),W={motionName:Pd(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},K=Ev(),V=Fo(p,K),[q,G]=wv("Drawer",S.zIndex),{classNames:X={},styles:U={}}=S;return z(h.createElement(yh,{form:!0,space:!0},h.createElement(bv.Provider,{value:G},h.createElement(vv,Object.assign({prefixCls:T,onClose:c,maskMotion:W,motion:e=>({motionName:Pd(T,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},S,{classNames:{mask:N()(X.mask,R.mask),content:N()(X.content,R.content),wrapper:N()(X.wrapper,R.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},U.mask),y),L.mask),content:Object.assign(Object.assign(Object.assign({},U.content),C),L.content),wrapper:Object.assign(Object.assign(Object.assign({},U.wrapper),x),L.wrapper)},open:null!=l?l:v,mask:i,push:a,width:D,height:F,style:Object.assign(Object.assign({},P),f),className:N()(M,m),rootClassName:A,getContainer:_,afterOpenChange:null!=s?s:b,panelRef:V,zIndex:q,"aria-labelledby":null!=g?g:k,destroyOnClose:null!=$?$:w}),h.createElement(_v,Object.assign({prefixCls:T},S,{ariaId:k,onClose:c}))))))};Uv._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:o,placement:r="right"}=e,i=Gv(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=h.useContext(wt),l=a("drawer",t),[s,c,d]=qv(l),u=N()(l,`${l}-pure`,`${l}-${r}`,c,d,o);return s(h.createElement("div",{className:u,style:n},h.createElement(_v,Object.assign({prefixCls:l},i))))};const Zv=Uv;let Yv=0,Qv=0;function Jv(){return window.lenis||window.__lenis||document.querySelector("[data-lenis]")?.__lenis||null}const eb=e=>e.stopPropagation(),tb={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"};var nb=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:tb}))};const ob=h.forwardRef(nb),rb={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"};var ib=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:rb}))};const ab=h.forwardRef(ib),lb={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"};var sb=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:lb}))};const cb=h.forwardRef(sb),db=(e,t,n,o,r)=>({background:e,border:`${Jt(o.lineWidth)} ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),ub=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:p,withDescriptionPadding:f,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n        padding-top ${n} ${c}, padding-bottom ${n} ${c},\n        margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}
1}),[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:u}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},pb=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:d,colorInfo:u,colorInfoBorder:p,colorInfoBg:f}=e;return{[t]:{"&-success":db(r,o,n,e,t),"&-info":db(f,p,u,e,t),"&-warning":db(l,a,i,e,t),"&-error":Object.assign(Object.assign({},db(d,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},fb=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:Jt(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:l}}}}},mb=zr("Alert",e=>[ub(e),pb(e),fb(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var gb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const hb={success:ob,info:cb,error:wh,warning:ab},vb=e=>{const{icon:t,prefixCls:n,type:o}=e,r=hb[o]||null;return t?Vp(t,h.createElement("span",{className:`${n}-icon`},t),()=>({className:N()(`${n}-icon`,t.props.className)})):h.createElement(r,{className:`${n}-icon`})},bb=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:r,ariaProps:i}=e,a=!0===o||void 0===o?h.createElement(wi,null):o;return t?h.createElement("button",Object.assign({type:"button",onClick:r,className:`${n}-close-icon`,tabIndex:0},i),a):null},yb=h.forwardRef((e,t)=>{const{description:n,prefixCls:o,message:r,banner:i,className:a,rootClassName:l,style:s,onMouseEnter:c,onMouseLeave:d,onClick:u,afterClose:p,showIcon:f,closable:m,closeText:g,closeIcon:v,action:b,id:y}=e,C=gb(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[x,w]=h.useState(!1),$=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:$.current}));const{getPrefixCls:S,direction:E,closable:k,closeIcon:O,className:I,style:j}=Et("alert"),M=S("alert",o),[P,R,L]=mb(M),T=t=>{var n;w(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},z=h.useMemo(()=>void 0!==e.type?e.type:i?"warning":"info",[e.type,i]),B=h.useMemo(()=>!("object"!=typeof m||!m.closeIcon)||!!g||("boolean"==typeof m?m:!1!==v&&null!=v||!!k),[g,v,m,k]),H=!(!i||void 0!==f)||f,_=N()(M,`${M}-${z}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!H,[`${M}-banner`]:!!i,[`${M}-rtl`]:"rtl"===E},I,a,l,L,R),A=bg(C,{aria:!0,data:!0}),D=h.useMemo(()=>"object"==typeof m&&m.closeIcon?m.closeIcon:g||(void 0!==v?v:"object"==typeof k&&k.closeIcon?k.closeIcon:O),[v,m,k,g,O]),F=h.useMemo(()=>{const e=null!=m?m:k;if("object"==typeof e){const{closeIcon:t}=e;return gb(e,["closeIcon"])}return{}},[m,k]);return P(h.createElement(Fl,{visible:!x,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:p},({className:t,style:o},i)=>h.createElement("div",Object.assign({id:y,ref:Fo($,i),"data-show":!x,className:N()(_,t),style:Object.assign(Object.assign(Object.assign({},j),s),o),onMouseEnter:c,onMouseLeave:d,onClick:u,role:"alert"},A),H?h.createElement(vb,{description:n,icon:e.icon,prefixCls:M,type:z}):null,h.createElement("div",{className:`${M}-content`},r?h.createElement("div",{className:`${M}-message`},r):null,n?h.createElement("div",{className:`${M}-description`},n):null),b?h.createElement("div",{className:`${M}-action`},b):null,h.createElement(bb,{isClosable:B,prefixCls:M,closeIcon:D,handleClose:T,ariaProps:F}))))}),Cb=yb;function xb(e){return xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xb(e)}function wb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wb=function(){return!!e})()}function $b(e,t){return $b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$b(e,t)}let Sb=function(e){function t(){var e,n,o,r;return Vf(this,t),n=this,r=arguments,o=xb(o=t),(e=function(e,t){if(t&&("object"==qf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
vendor: 8,913 bytes, line 1
1(n,wb()?Reflect.construct(o,r||[],xb(n).constructor):o.apply(n,r))).state={error:void 0,info:{componentStack:""}},e}return function(e,t){if("function"!=typeof t&&null!==t)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&&$b(e,t)}(t,e),Uf(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:o}=this.props,{error:r,info:i}=this.state,a=(null==i?void 0:i.componentStack)||null,l=void 0===e?(r||"").toString():e,s=void 0===t?a:t;return r?h.createElement(Cb,{id:n,type:"error",message:l,description:h.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):o}}])}(h.Component);const Eb=Sb,kb=Cb;kb.ErrorBoundary=Eb;const Ob=kb,Ib=h.createContext(null),Nb=Ib.Provider,jb=Ib,Mb=h.createContext(null),Pb=Mb.Provider;var Rb=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Lb=(0,h.forwardRef)(function(e,t){var n=e.prefixCls,o=void 0===n?"rc-checkbox":n,r=e.className,i=e.style,a=e.checked,l=e.disabled,s=e.defaultChecked,c=void 0!==s&&s,d=e.type,u=void 0===d?"checkbox":d,p=e.title,f=e.onChange,m=O(e,Rb),v=(0,h.useRef)(null),b=(0,h.useRef)(null),y=$(Lo(c,{value:a}),2),C=y[0],x=y[1];(0,h.useImperativeHandle)(t,function(){return{focus:function(e){var t;null===(t=v.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=v.current)||void 0===e||e.blur()},input:v.current,nativeElement:b.current}});var w=N()(o,r,k(k({},"".concat(o,"-checked"),C),"".concat(o,"-disabled"),l));return h.createElement("span",{className:w,title:p,style:i,ref:b},h.createElement("input",g({},m,{className:"".concat(o,"-input"),ref:v,onChange:function(t){l||("checked"in e||x(t.target.checked),null==f||f({target:he(he({},e),{},{type:u,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:l,checked:!!C,type:u})),h.createElement("span",{className:"".concat(o,"-inner")}))});const Tb=Lb;function zb(e){const t=v().useRef(null),n=()=>{ya.cancel(t.current),t.current=null};return[()=>{n(),t.current=ya(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),null==e||e(o)}]}const Bb=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},ur(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Hb=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:d,colorBgContainerDisabled:u,colorTextDisabled:p,paddingXS:f,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,C=b(r).sub(b(4).mul(2)),x=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},ur(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Jt(d)} ${g} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},ur(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n        &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:pr(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:u,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(C).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}})}},_b=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationMid:l,buttonPaddingInline:s,fontSize:c,buttonBg:d,fontSizeLG:u,controlHeightLG:p,controlHeightSM:f,paddingXS:m,borderRadius:g,borderRadiusSM:h,borderRadiusLG:v,buttonCheckedBg:b,buttonSolidCheckedColor:y,colorTextDisabled:C,colorBgContainerDisabled:x,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:$,colorPrimary:S,colorPrimaryHover:E,colorPrimaryActive:k,buttonSolidCheckedBg:O,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:N,calc:j}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:Jt(j(n).sub(j(r).mul(2)).equal()),background:d,border:`${Jt(r)} ${i} ${a}`,borderBlockStartWidth:j(r).add(.02).equal(),borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:j(r).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Jt(r)} ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${o}-group-large &`]:{height:p,fontSize:u,lineHeight:Jt(j(p).sub(j(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${o}-group-small &`]:{height:f,paddingInline:j(m).sub(r).equal(),paddingBlock:0,lineHeight:Jt(j(f).sub(j(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":pr(e),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:S,background:b,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:y,background:O,borderColor:O,"&:hover":{color:y,background:I,borderColor:I},"&:active":{color:y,background:N,borderColor:N}},"&-disabled":{color:C,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:x,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:$,backgroundColor:w,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Ab=zr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${Jt(n)} ${t}`,r=or(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[Bb(r),Hb(r),_b(r)]},e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:u,colorPrimaryHover:p,colorPrimaryActive:f,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:s,buttonSolidCheckedColor:d,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?u:m,radioBgColor:t?l:u}},{unitless:{radioSize:!0,dotSize:!0}});const Db=(e,t)=>
1{var n,o;const r=h.useContext(jb),i=h.useContext(Mb),{getPrefixCls:a,direction:l,radio:s}=h.useContext(wt),c=h.useRef(null),d=Fo(t,c),{isFormItemInput:u}=h.useContext(Rp),{prefixCls:p,className:f,rootClassName:m,children:g,style:v,title:b}=e,y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","children","style","title"]),C=a("radio",p),x="button"===((null==r?void 0:r.optionType)||i),w=x?`${C}-button`:C,$=Od(C),[S,E,k]=Ab(C,$),O=Object.assign({},y),I=h.useContext(vf);r&&(O.name=r.name,O.onChange=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null==r?void 0:r.onChange)||void 0===o||o.call(r,t)},O.checked=e.value===r.value,O.disabled=null!==(n=O.disabled)&&void 0!==n?n:r.disabled),O.disabled=null!==(o=O.disabled)&&void 0!==o?o:I;const j=N()(`${w}-wrapper`,{[`${w}-wrapper-checked`]:O.checked,[`${w}-wrapper-disabled`]:O.disabled,[`${w}-wrapper-rtl`]:"rtl"===l,[`${w}-wrapper-in-form-item`]:u,[`${w}-wrapper-block`]:!!(null==r?void 0:r.block)},null==s?void 0:s.className,f,m,E,k,$),[M,P]=zb(O.onClick);return S(h.createElement(mf,{component:"Radio",disabled:O.disabled},h.createElement("label",{className:j,style:Object.assign(Object.assign({},null==s?void 0:s.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:M},h.createElement(Tb,Object.assign({},O,{className:N()(O.className,{[Xp]:!x}),type:"radio",prefixCls:w,ref:d,onClick:P})),void 0!==g?h.createElement("span",{className:`${w}-label`},g):null)))},Fb=h.forwardRef(Db);const Wb=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o}=h.useContext(wt),{name:r}=h.useContext(Rp),i=qa(function(e){var t;return(void 0===(t=e)||!1===t?[]:Array.isArray(t)?t:[t]).join("_")}(r)),{prefixCls:a,className:l,rootClassName:s,options:c,buttonStyle:d="outline",disabled:u,children:p,size:f,style:m,id:g,optionType:v,name:b=i,defaultValue:y,value:C,block:x=!1,onChange:w,onMouseEnter:$,onMouseLeave:S,onFocus:E,onBlur:k}=e,[O,I]=Lo(y,{value:C}),j=h.useCallback(t=>{const n=O,o=t.target.value;"value"in e||I(o),o!==n&&(null==w||w(t))},[O,I,w]),M=n("radio",a),P=`${M}-group`,R=Od(M),[L,T,z]=Ab(M,R);let B=p;c&&c.length>0&&(B=c.map(e=>"string"==typeof e||"number"==typeof e?h.createElement(Fb,{key:e.toString(),prefixCls:M,disabled:u,value:e,checked:O===e},e):h.createElement(Fb,{key:`radio-group-value-options-${e.value}`,prefixCls:M,disabled:e.disabled||u,value:e.value,checked:O===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const H=Jr(f),_=N()(P,`${P}-${d}`,{[`${P}-${H}`]:H,[`${P}-rtl`]:"rtl"===o,[`${P}-block`]:x},l,s,T,z,R),A=h.useMemo(()=>({onChange:j,value:O,disabled:u,name:b,optionType:v,block:x}),[j,O,u,b,v,x]);return L(h.createElement("div",Object.assign({},bg(e,{aria:!0,data:!0}),{className:_,style:m,onMouseEnter:$,onMouseLeave:S,onFocus:E,onBlur:k,id:g,ref:t}),h.createElement(Nb,{value:A},B)))}),Kb=h.memo(Wb);const Vb=(e,t)=>{const{getPrefixCls:n}=h.useContext(wt),{prefixCls:o}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls"]),i=n("radio",o);return h.createElement(Pb,{value:"button"},h.createElement(Fb,Object.assign({prefixCls:i},r,{type:"radio",ref:t})))},qb=h.forwardRef(Vb),Gb=Fb;Gb.Button=qb,Gb.Group=Kb,Gb.__ANT_RADIO=!0;const Xb=Gb,Ub=({...e})=>(0,t.jsx)(Xb,{...e});Ub.Group=({children:e,options:n,optionType:o,buttonStyle:r,...i})=>"button"===o&&n?(0,t.jsx)(Xb.Group,{...i,optionType:o,buttonStyle:r,options:n}):n?(0,t.jsx)(Xb.Group,{...i,children:n.map(e=>(0,t.jsx)(Xb,{value:e.value,children:e.label},e.value))}):(0,t.jsx)(Xb.Group,{...i,children:e}),Ub.Button=Xb.Button;const Zb=Ub,Yb=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,r=e.children,i=e.onMouseDown,a=e.onClick,l="function"==typeof n?n(o):n;return h.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:h.createElement("span",{className:N()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},r))};var Qb=h.createContext(null);function Jb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=h.useRef(null),n=h.useRef(null);return h.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}
vendor: 10,232 bytes, line 1
1var ey=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ty=function(e,t){var n=e.prefixCls,o=e.id,r=e.inputElement,i=e.autoFocus,a=e.autoComplete,l=e.editable,s=e.activeDescendantId,c=e.value,d=e.open,u=e.attrs,p=O(e,ey),f=r||h.createElement("input",null),m=f,g=m.ref,v=m.props;return f.props,h.cloneElement(f,he(he(he({type:"search"},function(e,t,n){var o=he(he({},e),n?t:{});return Object.keys(t).forEach(function(n){var r=t[n];"function"==typeof r&&(o[n]=function(){for(var t,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r.apply(void 0,i),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})}),o}(p,v,!0)),{},{id:o,ref:Fo(t,g),autoComplete:a||"off",autoFocus:i,className:N()("".concat(n,"-selection-search-input"),null==v?void 0:v.className),role:"combobox","aria-expanded":d||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":d?s:void 0},u),{},{value:l?c:"",readOnly:!l,unselectable:l?null:"on",style:he(he({},v.style),{},{opacity:l?null:0})}))};const ny=h.forwardRef(ty);function oy(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var ry="undefined"!=typeof window&&window.document&&window.document.documentElement;function iy(e){return["string","number"].includes(S(e))}function ay(e){var t=void 0;return e&&(iy(e.title)?t=e.title.toString():iy(e.label)&&(t=e.label.toString())),t}function ly(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var sy=function(e){e.preventDefault(),e.stopPropagation()};const cy=function(e){var t,n,o=e.id,r=e.prefixCls,i=e.values,a=e.open,l=e.searchValue,s=e.autoClearSearchValue,c=e.inputRef,d=e.placeholder,u=e.disabled,p=e.mode,f=e.showSearch,m=e.autoFocus,g=e.autoComplete,v=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,C=e.maxTagCount,x=e.maxTagTextLength,w=e.maxTagPlaceholder,S=void 0===w?function(e){return"+ ".concat(e.length," ...")}:w,E=e.tagRender,O=e.onToggleOpen,I=e.onRemove,j=e.onInputChange,M=e.onInputPaste,P=e.onInputKeyDown,R=e.onInputMouseDown,L=e.onInputCompositionStart,T=e.onInputCompositionEnd,z=e.onInputBlur,B=h.useRef(null),H=$((0,h.useState)(0),2),_=H[0],A=H[1],D=$((0,h.useState)(!1),2),F=D[0],W=D[1],K="".concat(r,"-selection"),V=a||"multiple"===p&&!1===s||"tags"===p?l:"",q="tags"===p||"multiple"===p&&!1===s||f&&(a||F);t=function(){A(B.current.scrollWidth)},n=[V],ry?h.useLayoutEffect(t,n):h.useEffect(t,n);var G=function(e,t,n,o,r){return h.createElement("span",{title:ay(e),className:N()("".concat(K,"-item"),k({},"".concat(K,"-item-disabled"),n))},h.createElement("span",{className:"".concat(K,"-item-content")},t),o&&h.createElement(Yb,{className:"".concat(K,"-item-remove"),onMouseDown:sy,onClick:r,customizeIcon:y},"×"))},X=function(e,t,n,o,r,i){return h.createElement("span",{onMouseDown:function(e){sy(e),O(!a)}},E({label:t,value:e,disabled:n,closable:o,onClose:r,isMaxTag:!!i}))},U=h.createElement("div",{className:"".concat(K,"-search"),style:{width:_},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},h.createElement(ny,{ref:c,open:a,prefixCls:r,id:o,inputElement:null,disabled:u,autoFocus:m,autoComplete:g,editable:q,activeDescendantId:v,value:V,onKeyDown:P,onMouseDown:R,onChange:j,onPaste:M,onCompositionStart:L,onCompositionEnd:T,onBlur:z,tabIndex:b,attrs:bg(e,!0)}),h.createElement("span",{ref:B,className:"".concat(K,"-search-mirror"),"aria-hidden":!0},V," ")),Z=h.createElement(Ks,{prefixCls:"".concat(K,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!u&&!t,i=n;if("number"==typeof x&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>x&&(i="".concat(a.slice(0,x),"..."))}var l=function(t){t&&t.stopPropagation(),I(e)};return"function"==typeof E?X(o,i,t,r,l):G(e,i,t,r,l)},renderRest:function(e){if(!i.length)return null;var t="function"==typeof S?S(e):S;return"function"==typeof E?X(void 0,t,!1,!1,void 0,!0):G({title:t},t,!1)},suffix:U,itemKey:ly,maxCount:C});return h.createElement("span",{className:"".concat(K,"-wrap")},Z,!i.length&&!V&&h.createElement("span",{className:"".concat(K,"-placeholder")},d))},dy=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,c=e.mode,d=e.open,u=e.values,p=e.placeholder,f=e.tabIndex,m=e.showSearch,g=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,C=e.onInputMouseDown,x=e.onInputChange,w=e.onInputPaste,S=e.onInputCompositionStart,E=e.onInputCompositionEnd,k=e.onInputBlur,O=e.title,I=$(h.useState(!1),2),N=I[0],j=I[1],M="combobox"===c,P=M||m,R=u[0],L=g||"";M&&v&&!N&&(L=v),h.useEffect(function(){M&&j(!1)},[M,v]);var T=!("combobox"!==c&&!d&&!m||!L),z=void 0===O?ay(R):O,B=h.useMemo(function(){return R?null:h.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},p)},[R,T,p,n]);return h.createElement("span",{className:"".concat(n,"-selection-wrap")},h.createElement("span",{className:"".concat(n,"-selection-search")},h.createElement(ny,{ref:r,prefixCls:n,id:o,open:d,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:P,activeDescendantId:s,value:L,onKeyDown:y,onMouseDown:C,onChange:function(e){j(!0),x(e)},onPaste:w,onCompositionStart:S,onCompositionEnd:E,onBlur:k,tabIndex:f,attrs:bg(e,!0),maxLength:M?b:void 0})),!M&&R?h.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:T?{visibility:"hidden"}:void 0},R.label):null,B)};var uy=function(e,t){var n=(0,h.useRef)(null),o=(0,h.useRef)(!1),r=e.prefixCls,i=e.open,a=e.mode,l=e.showSearch,s=e.tokenWithEnter,c=e.disabled,d=e.prefix,u=e.autoClearSearchValue,p=e.onSearch,f=e.onSearchSubmit,m=e.onToggleOpen,v=e.onInputKeyDown,b=e.onInputBlur,y=e.domRef;h.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var C=$(Jb(0),2),x=C[0],w=C[1],S=(0,h.useRef)(null),E=function(e){!1!==p(e,!0,o.current)&&m(!0)},k={inputRef:n,onInputKeyDown:function(e){var t,r=e.which,l=n.current instanceof HTMLTextAreaElement;l||!i||r!==gs.UP&&r!==gs.DOWN||e.preventDefault(),v&&v(e),r!==gs.ENTER||"tags"!==a||o.current||i||null==f||f(e.target.value),l&&!i&&~[gs.UP,gs.DOWN,gs.LEFT,gs.RIGHT].indexOf(r)||(t=r)&&![gs.ESC,gs.SHIFT,gs.BACKSPACE,gs.TAB,gs.WIN_KEY,gs.ALT,gs.META,gs.WIN_KEY_RIGHT,gs.CTRL,gs.SEMICOLON,gs.EQUALS,gs.CAPS_LOCK,gs.CONTEXT_MENU,gs.F1,gs.F2,gs.F3,gs.F4,gs.F5,gs.F6,gs.F7,gs.F8,gs.F9,gs.F10,gs.F11,gs.F12].includes(t)&&m(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(s&&S.current&&/[\r\n]/.test(S.current)){var n=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,S.current)}S.current=null,E(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");S.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==a&&E(e.target.value)},onInputBlur:b},O="multiple"===a||"tags"===a?h.createElement(cy,g({},e,k)):h.createElement(dy,g({},e,k));return h.createElement("div",{ref:y,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=x();e.target===n.current||t||"combobox"===a&&c||e.preventDefault(),("combobox"===a||l&&t)&&i||(i&&!1!==u&&p("",!0,!1),m())}},d&&h.createElement("div",{className:"".concat(r,"-prefix")},d),O)};const py=h.forwardRef(uy);var fy=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],my=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),r=e.children,i=e.popupElement,a=e.animation,l=e.transitionName,s=e.dropdownStyle,c=e.dropdownClassName,d=e.direction,u=void 0===d?"ltr":d,p=e.placement,f=e.builtinPlacements,m=e.dropdownMatchSelectWidth,v=e.dropdownRender,b=e.dropdownAlign,y=e.getPopupContainer,C=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,$=e.onPopupMouseEnter,S=O(e,fy),E="".concat(n,"-dropdown"),I=i;v&&(I=v(i));var j=h.useMemo(function(){return f||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(m)},[f,m]),M=a?"".concat(E,"-").concat(a):l,P="number"==typeof m,R=h.useMemo(function(){return P?null:!1===m?"minWidth":"width"},[m,P]),L=s;P&&(L=he(he({},L),{},{width:m}));var T=h.useRef(null);return h.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.popupElement}}}),h.createElement(fs,g({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:p||("rtl"===u?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:E,popupTransitionName:M,popup:h.createElement("div",{onMouseEnter:$},I),ref:T,stretch:R,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:N()(c,k({},"".concat(E,"-empty"),C)),popupStyle:L,getTriggerDOMNode:x,onPopupVisibleChange:w}),r)};const gy=h.forwardRef(my);function hy(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function vy(e){return void 0!==e&&!Number.isNaN(e)}function by(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function yy(e){var t=he({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Be(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Cy=h.createContext(null);function xy(e){var t=e.visible,n=e.values;
1return t?h.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes(S(t))?t:n}).join(", ")),n.length>50?", ...":null):null}var wy=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],$y=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Sy=function(e){return"tags"===e||"multiple"===e},Ey=h.forwardRef(function(e,t){var n,o=e.id,r=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,d=e.displayValues,u=e.onDisplayValuesChange,p=e.emptyOptions,f=e.notFoundContent,m=void 0===f?"Not Found":f,b=e.onClear,y=e.mode,C=e.disabled,x=e.loading,w=e.getInputElement,E=e.getRawInputElement,I=e.open,j=e.defaultOpen,M=e.onDropdownVisibleChange,P=e.activeValue,R=e.onActiveValueChange,L=e.activeDescendantId,T=e.searchValue,z=e.autoClearSearchValue,B=e.onSearch,H=e.onSearchSplit,_=e.tokenSeparators,A=e.allowClear,D=e.prefix,F=e.suffixIcon,W=e.clearIcon,K=e.OptionList,V=e.animation,q=e.transitionName,G=e.dropdownStyle,X=e.dropdownClassName,U=e.dropdownMatchSelectWidth,Z=e.dropdownRender,Y=e.dropdownAlign,Q=e.placement,J=e.builtinPlacements,ee=e.getPopupContainer,te=e.showAction,ne=void 0===te?[]:te,oe=e.onFocus,re=e.onBlur,ie=e.onKeyUp,ae=e.onKeyDown,le=e.onMouseDown,se=O(e,wy),ce=Sy(y),de=(void 0!==a?a:ce)||"combobox"===y,ue=he({},se);$y.forEach(function(e){delete ue[e]}),null==c||c.forEach(function(e){delete ue[e]});var pe=$(h.useState(!1),2),fe=pe[0],me=pe[1];h.useEffect(function(){me(Ni())},[]);var ge=h.useRef(null),ve=h.useRef(null),be=h.useRef(null),ye=h.useRef(null),Ce=h.useRef(null),xe=h.useRef(!1),we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=$(h.useState(!1),2),n=t[0],o=t[1],r=h.useRef(null),i=function(){window.clearTimeout(r.current)};return h.useEffect(function(){return i},[]),[n,function(t,n){i(),r.current=window.setTimeout(function(){o(t),n&&n()},e)},i]}(),$e=$(we,3),Se=$e[0],Ee=$e[1],ke=$e[2];h.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ye.current)||void 0===e?void 0:e.focus,blur:null===(t=ye.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ce.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ge.current||ve.current}});var Oe=h.useMemo(function(){var e;if("combobox"!==y)return T;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[T,y,d]),Ie="combobox"===y&&"function"==typeof w&&w()||null,Ne="function"==typeof E&&E(),je=Wo(ve,null==Ne||null===(n=Ne.props)||void 0===n?void 0:n.ref),Me=$(h.useState(!1),2),Pe=Me[0],Re=Me[1];sn(function(){Re(!0)},[]);var Le=$(Lo(!1,{defaultValue:j,value:I}),2),Te=Le[0],ze=Le[1],Be=!!Pe&&Te,He=!m&&p;(C||He&&Be&&"combobox"===y)&&(Be=!1);var _e=!He&&Be,Ae=h.useCallback(function(e){var t=void 0!==e?e:!Be;C||(ze(t),Be!==t&&(null==M||M(t)))},[C,Be,ze,M]),De=h.useMemo(function(){return(_||[]).some(function(e){return["\n","\r\n"].includes(e)})},[_]),Fe=h.useContext(Cy)||{},We=Fe.maxCount,Ke=Fe.rawValues,Ve=function(e,t,n){if(!(ce&&vy(We)&&(null==Ke?void 0:Ke.size)>=We)){var o=!0,r=e;null==R||R(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=Go(n),i=r[0],a=r.slice(1);if(!i)return[t];var l=t.split(i);return o=o||l.length>1,l.reduce(function(t,n){return[].concat(Ot(t),Ot(e(n,a)))}
vendor: 7,642 bytes, line 1
1,[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,_,vy(We)?We-Ke.size:void 0),a=n?null:i;return"combobox"!==y&&a&&(r="",null==H||H(a),Ae(!1),o=!1),B&&Oe!==r&&B(r,{source:t?"typing":"effect"}),o}};h.useEffect(function(){Be||ce||"combobox"===y||Ve("",!1,!1)},[Be]),h.useEffect(function(){Te&&C&&ze(!1),C&&!xe.current&&Ee(!1)},[C]);var qe=$(Jb(),2),Ge=qe[0],Xe=qe[1],Ue=h.useRef(!1),Ze=h.useRef(!1),Ye=[];h.useEffect(function(){return function(){Ye.forEach(function(e){return clearTimeout(e)}),Ye.splice(0,Ye.length)}},[]);var Qe,Je=$(h.useState({}),2)[1];Ne&&(Qe=function(e){Ae(e)}),function(e,t,n,o){var r=h.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:o},h.useEffect(function(){function e(e){var t,n;if(null===(t=r.current)||void 0===t||!t.customizedTrigger){var o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),r.current.open&&[ge.current,null===(n=be.current)||void 0===n?void 0:n.getPopupElement()].filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[])}(0,_e,Ae,!!Ne);var et,tt=h.useMemo(function(){return he(he({},e),{},{notFoundContent:m,open:Be,triggerOpen:_e,id:o,showSearch:de,multiple:ce,toggleOpen:Ae})},[e,m,_e,Be,o,de,ce,Ae]),nt=!!F||x;nt&&(et=h.createElement(Yb,{className:N()("".concat(r,"-arrow"),k({},"".concat(r,"-arrow-loading"),x)),customizeIcon:F,customizeIconProps:{loading:x,searchValue:Oe,open:Be,focused:Se,showSearch:de}}));var ot,rt=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=v().useMemo(function(){return"object"===S(o)?o.clearIcon:r||void 0},[o,r]);return{allowClear:v().useMemo(function(){return!(i||!o||!n.length&&!a||"combobox"===l&&""===a)},[o,i,n.length,a,l]),clearIcon:v().createElement(Yb,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(r,function(){var e;null==b||b(),null===(e=ye.current)||void 0===e||e.focus(),u([],{type:"clear",values:d}),Ve("",!1,!1)},d,A,W,C,Oe,y),it=rt.allowClear,at=rt.clearIcon,lt=h.createElement(K,{ref:Ce}),st=N()(r,i,k(k(k(k(k(k(k(k(k(k({},"".concat(r,"-focused"),Se),"".concat(r,"-multiple"),ce),"".concat(r,"-single"),!ce),"".concat(r,"-allow-clear"),A),"".concat(r,"-show-arrow"),nt),"".concat(r,"-disabled"),C),"".concat(r,"-loading"),x),"".concat(r,"-open"),Be),"".concat(r,"-customize-input"),Ie),"".concat(r,"-show-search"),de)),ct=h.createElement(gy,{ref:be,disabled:C,prefixCls:r,visible:_e,popupElement:lt,animation:V,transitionName:q,dropdownStyle:G,dropdownClassName:X,direction:s,dropdownMatchSelectWidth:U,dropdownRender:Z,dropdownAlign:Y,placement:Q,builtinPlacements:J,getPopupContainer:ee,empty:p,getTriggerDOMNode:function(e){return ve.current||e},onPopupVisibleChange:Qe,onPopupMouseEnter:function(){Je({})}},Ne?h.cloneElement(Ne,{ref:je}):h.createElement(py,g({},e,{domRef:ve,prefixCls:r,inputElement:Ie,ref:ye,id:o,prefix:D,showSearch:de,autoClearSearchValue:z,mode:y,activeDescendantId:L,tagRender:l,values:d,open:Be,onToggleOpen:Ae,activeValue:P,searchValue:Oe,onSearch:Ve,onSearchSubmit:function(e){e&&e.trim()&&B(e,{source:"submit"})},onRemove:function(e){var t=d.filter(function(t){return t!==e});u(t,{type:"remove",values:[e]})},tokenWithEnter:De,onInputBlur:function(){Ue.current=!1}})));return ot=Ne?ct:h.createElement("div",g({className:st},ue,{ref:ge,onMouseDown:function(e){var t,n=e.target,o=null===(t=be.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout(function(){var e,t=Ye.indexOf(r);-1!==t&&Ye.splice(t,1),ke(),fe||o.contains(document.activeElement)||null===(e=ye.current)||void 0===e||e.focus()});Ye.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==le||le.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ge(),o=e.key,r="Enter"===o;if(r&&("combobox"!==y&&e.preventDefault(),Be||Ae(!0)),Xe(!!Oe),"Backspace"===o&&!n&&ce&&!Oe&&d.length){for(var i=Ot(d),a=null,l=i.length-1;l>=0;l-=1){var s=i[l];if(!s.disabled){i.splice(l,1),a=s;break}}a&&u(i,{type:"remove",values:[a]})}for(var c=arguments.length,p=new Array(c>1?c-1:0),f=1;f<c;f++)p[f-1]=arguments[f];!Be||r&&Ue.current||(r&&(Ue.current=!0),null===(t=Ce.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(p))),null==ae||ae.apply(void 0,[e].concat(p))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Be&&(null===(r=Ce.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(Ue.current=!1),null==ie||ie.apply(void 0,[e].concat(n))},onFocus:function(){Ee(!0),C||(oe&&!Ze.current&&oe.apply(void 0,arguments),ne.includes("focus")&&Ae(!0)),Ze.current=!0},onBlur:function(){xe.current=!0,Ee(!1,function(){Ze.current=!1,xe.current=!1,Ae(!1)}),C||(Oe&&("tags"===y?B(Oe,{source:"submit"}):"multiple"===y&&B("",{source:"blur"})),re&&re.apply(void 0,arguments))}}),h.createElement(xy,{visible:Se&&!Be,values:d}),ct,et,it&&at),h.createElement(Qb.Provider,{value:tt},ot)});const ky=Ey;var Oy=function(){return null};Oy.isSelectOptGroup=!0;const Iy=Oy;var Ny=function(){return null};Ny.isSelectOption=!0;const jy=Ny;var My=h.forwardRef(function(e,t){var n=e.height,o=e.offsetY,r=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,d=e.extra,u={},p={display:"flex",flexDirection:"column"};return void 0!==o&&(u={height:n,position:"relative",overflow:"hidden"},p=he(he({},p),{},k(k(k(k(k({transform:"translateY(".concat(o,"px)")},c?"marginRight":"marginLeft",-r),"position","absolute"),"left",0),"right",0),"top",0))),h.createElement("div",{style:u},h.createElement(pa,{onResize:function(e){e.offsetHeight&&l&&l()}},h.createElement("div",g({style:p,className:N()(k({},"".concat(a,"-holder-inner"),a)),ref:t},s),i,d)))});My.displayName="Filler";const Py=My;function Ry(e){var t=e.children,n=e.setRef,o=h.useCallback(function(e){n(e)},[]);return h.cloneElement(t,{ref:o})}const Ly="object"===("undefined"==typeof navigator?"undefined":S(navigator))&&/Firefox/i.test(navigator.userAgent),Ty=function(e,t,n,o){var r=(0,h.useRef)(!1),i=(0,h.useRef)(null),a=(0,h.useRef)({top:e,bottom:t,left:n,right:o});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&o?(clearTimeout(i.current),r.current=!1):o&&!r.current||(clearTimeout(i.current),r.current=!0,i.current=setTimeout(function(){r.current=!1},50)),!r.current&&o}};n.dn(Ty);const zy=function(){function e(){Mt(this,e),k(this,"maps",void 0),k(this,"id",0),k(this,"diffRecords",new Map),this.maps=Object.create(null)}return Rt(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function By(e){var t=parseFloat(e);return isNaN(t)?0:t}var Hy=14/15;function _y(e){return Math.floor(Math.pow(e,.5))}function Ay(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Dy=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,d=e.spinSize,u=e.containerSize,p=e.style,f=e.thumbStyle,m=e.showScrollBar,g=$(h.useState(!1),2),v=g[0],b=g[1],y=$(h.use
1State(null),2),C=y[0],x=y[1],w=$(h.useState(null),2),S=w[0],E=w[1],O=!o,I=h.useRef(),j=h.useRef(),M=$(h.useState(m),2),P=M[0],R=M[1],L=h.useRef(),T=function(){!0!==m&&!1!==m&&(clearTimeout(L.current),R(!0),L.current=setTimeout(function(){R(!1)},3e3))},z=i-u||0,B=u-d||0,H=h.useMemo(function(){return 0===r||0===z?0:r/z*B},[r,z,B]),_=h.useRef({top:H,dragging:v,pageY:C,startTop:S});_.current={top:H,dragging:v,pageY:C,startTop:S};var A=function(e){b(!0),x(Ay(e,c)),E(_.current.top),a(),e.stopPropagation(),e.preventDefault()};h.useEffect(function(){var e=function(e){e.preventDefault()},t=I.current,n=j.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",A,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",A)}},[]);var D=h.useRef();D.current=z;var F=h.useRef();F.current=B,h.useEffect(function(){if(v){var e,t=function(t){var n=_.current,o=n.dragging,r=n.pageY,i=n.startTop;ya.cancel(e);var a=I.current.getBoundingClientRect(),l=u/(c?a.width:a.height);if(o){var d=(Ay(t,c)-r)*l,p=i;!O&&c?p-=d:p+=d;var f=D.current,m=F.current,g=m?p/m:0,h=Math.ceil(g*f);h=Math.max(h,0),h=Math.min(h,f),e=ya(function(){s(h,c)})}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ya.cancel(e)}}},[v]),h.useEffect(function(){return T(),function(){clearTimeout(L.current)}},[r]),h.useImperativeHandle(t,function(){return{delayHidden:T}});var W="".concat(n,"-scrollbar"),K={position:"absolute",visibility:P?null:"hidden"},V={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(K,{height:8,left:0,right:0,bottom:0}),Object.assign(V,k({height:"100%",width:d},O?"left":"right",H))):(Object.assign(K,k({width:8,top:0,bottom:0},O?"right":"left",0)),Object.assign(V,{width:"100%",height:d,top:H})),h.createElement("div",{ref:I,className:N()(W,k(k(k({},"".concat(W,"-horizontal"),c),"".concat(W,"-vertical"),!c),"".concat(W,"-visible"),P)),style:he(he({},K),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:T},h.createElement("div",{ref:j,className:N()("".concat(W,"-thumb"),k({},"".concat(W,"-thumb-moving"),v)),style:he(he({},V),f),onMouseDown:A}))});const Fy=Dy;function Wy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Ky=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Vy=[],qy={overflowY:"auto",overflowAnchor:"none"};function Gy(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,r=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=void 0===l||l,c=e.style,d=e.data,u=e.children,p=e.itemKey,f=e.virtual,m=e.direction,v=e.scrollWidth,b=e.component,y=void 0===b?"div":b,C=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,E=e.innerProps,I=e.extraRender,j=e.styles,M=e.showScrollBar,P=void 0===M?"optional":M,R=O(e,Ky),L=h.useCallback(function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]},[p]),T=function(e){var t=$(h.useState(0),2),n=t[0],o=t[1],r=(0,h.useRef)(new Map),i=(0,h.useRef)(new zy),a=(0,h.useRef)(0);function l(){a.current+=1}function s(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l();var t=function(){var e=!1;r.current.forEach(function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),a=r.marginTop,l=r.marginBottom,s=o+By(a)+By(l);i.current.get(n)!==s&&(i.current.set(n,s),e=!0)}}),e&&o(function(e){return e+1})};if(e)t();else{a.current+=1;var n=a.current;Promise.resolve().then(function(){n===a.current&&t()})}}return(0,h.useEffect)(function(){return l},[]),[function(t,n){var o=e(t);r.current.get(o);n?(r.current.set(o,n),s()):r.current.delete(o)},s,i.current,n]}(L),z=$(T,4),B=z[0],H=z[1],_=z[2],A=z[3],D=!(!1===f||!i||!a),F=h.useMemo(function(){return Object.values(_.maps).reduce(function(e,t){return e+t},0)},[_.id,_.maps]),W=D&&d&&(Math.max(a*d.length,F)>i||!!v),K="rtl"===m,V=N()(o,k({},"".concat(o,"-rtl"),K),r),q=d||Vy,G=(0,h.useRef)(),X=(0,h.useRef)(),U=(0,h.useRef)(),Z=$((0,h.useState)(0),2),Y=Z[0],Q=Z[1],J=$((0,h.useState)(0),2),ee=J[0],te=J[1],ne=$((0,h.useState)(!1),2),oe=ne[0],re=ne[1],ie=function(){re(!0)},ae=function(){re(!1)},le={getKey:L};function se(e){Q(function(t){var n=function(e){var t=e;return Number.isNaN(ke.current)||(t=Math.min(t,ke.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return G.current.scrollTop=n,n})}var ce=(0,h.useRef)({start:0,end:q.length}
vendor: 13,040 bytes, line 1
1),de=(0,h.useRef)(),ue=$(function(e,t,n){var o=$(h.useState(e),2),r=o[0],i=o[1],a=$(h.useState(null),2),l=a[0],s=a[1];return h.useEffect(function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,d=1!==Math.abs(i-a),u=0;u<r.length;u+=1){var p=s(o[u]);if(p!==s(r[u])){c=u,d=d||p!==s(r[u+1]);break}}return null===c?null:{index:c,multiple:d}}(r||[],e||[],t);void 0!==(null==o?void 0:o.index)&&(null==n||n(o.index),s(e[o.index])),i(e)},[e]),[l]}(q,L),1)[0];de.current=ue;var pe=h.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};var e;if(!W)return{scrollHeight:(null===(e=X.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:q.length-1,offset:void 0};for(var t,n,o,r=0,l=q.length,s=0;s<l;s+=1){var c=q[s],d=L(c),u=_.get(d),p=r+(void 0===u?a:u);p>=Y&&void 0===t&&(t=s,n=r),p>Y+i&&void 0===o&&(o=s),r=p}return void 0===t&&(t=0,n=0,o=Math.ceil(i/a)),void 0===o&&(o=q.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,q.length-1),offset:n}},[W,D,Y,q,A,i]),fe=pe.scrollHeight,me=pe.start,ge=pe.end,ve=pe.offset;ce.current.start=me,ce.current.end=ge,h.useLayoutEffect(function(){var e=_.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),o=q[me];if(o&&void 0===n&&L(o)===t){var r=_.get(t)-a;se(function(e){return e+r})}}_.resetRecord()},[fe]);var be=$(h.useState({width:0,height:i}),2),ye=be[0],Ce=be[1],xe=(0,h.useRef)(),we=(0,h.useRef)(),$e=h.useMemo(function(){return Wy(ye.width,v)},[ye.width,v]),Se=h.useMemo(function(){return Wy(ye.height,fe)},[ye.height,fe]),Ee=fe-i,ke=(0,h.useRef)(Ee);ke.current=Ee;var Oe=Y<=0,Ie=Y>=Ee,Ne=ee<=0,je=ee>=v,Me=Ty(Oe,Ie,Ne,je),Pe=function(){return{x:K?-ee:ee,y:Y}},Re=(0,h.useRef)(Pe()),Le=Mo(function(e){if(x){var t=he(he({},Pe()),e);Re.current.x===t.x&&Re.current.y===t.y||(x(t),Re.current=t)}});function Te(e,t){var n=e;t?((0,Pi.flushSync)(function(){te(n)}),Le()):se(n)}var ze=function(e){var t=e,n=v?v-ye.width:0;return t=Math.max(t,0),Math.min(t,n)},Be=Mo(function(e,t){t?((0,Pi.flushSync)(function(){te(function(t){return ze(t+(K?-e:e))})}),Le()):se(function(t){return t+e})}),He=$(function(e,t,n,o,r,i,a){var l=(0,h.useRef)(0),s=(0,h.useRef)(null),c=(0,h.useRef)(null),d=(0,h.useRef)(!1),u=Ty(t,n,o,r),p=(0,h.useRef)(null),f=(0,h.useRef)(null);return[function(t){if(e){ya.cancel(f.current),f.current=ya(function(){p.current=null},2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,m=n,g=o;("sx"===p.current||!p.current&&r&&o&&!n)&&(m=o,g=0,p.current="sx");var h=Math.abs(m),v=Math.abs(g);null===p.current&&(p.current=i&&h>v?"x":"y"),"y"===p.current?function(e,t){if(ya.cancel(s.current),!u(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,c.current=t,Ly||n.preventDefault(),s.current=ya(function(){var e=d.current?10:1;a(l.current*e,!1),l.current=0}))}}(t,g):function(e,t){a(t,!0),Ly||e.preventDefault()}(t,m)}},function(t){e&&(d.current=t.detail===c.current)}]}(D,Oe,Ie,Ne,je,!!v,Be),2),_e=He[0],Ae=He[1];!function(e,t,n){var o,r=(0,h.useRef)(!1),i=(0,h.useRef)(0),a=(0,h.useRef)(0),l=(0,h.useRef)(null),s=(0,h.useRef)(null),c=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),l=i.current-t,c=a.current-o,d=Math.abs(l)>Math.abs(c);d?i.current=t:a.current=o;var u=n(d,d?l:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(function(){d?l*=Hy:c*=Hy;var e=Math.floor(d?l:c);(!n(d,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,o()},u=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",c,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};o=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",d))},sn(function(){return e&&t.current.addEventListener("touchstart",u,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),o(),clearInterval(s.current)}},[e])}(D,G,function(e,t,n,o){var r=o;return!(Me(e,t,n)||r&&r._virtualHandled||(r&&(r._virtualHandled=!0),_e({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))}),function(e,t){h.useEffect(function(){var n=t.current;if(e&&n){var o,r,i=!1,a=function(){ya.cancel(o)},l=function e(){a(),o=ya(function(){var t;t=r,se(function(e){return e+t}),e()})},s=function(){i=!1,a()},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},d=function(e){if(i){var t=Ay(e,!1),o=n.getBoundingClientRect(),s=o.top,c=o.bottom;t<=s?(r=-_y(s-t),l()):t>=c?(r=_y(t-c),l()):a()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",s),n.ownerDocument.addEventListener("mousemove",d),n.ownerDocument.addEventListener("dragend",s),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",s),n.ownerDocument.removeEventListener("mousemove",d),n.ownerDocument.removeEventListener("dragend",s),a()}}},[e])}(W,G),sn(function(){function e(e){var t=Oe&&e.detail<0,n=Ie&&e.detail>0;!D||t||n||e.preventDefault()}var t=G.current;return t.addEventListener("wheel",_e,{passive:!1}),t.addEventListener("DOMMouseScroll",Ae,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",_e),t.removeEventListener("DOMMouseScroll",Ae),t.removeEventListener("MozMousePixelScroll",e)}},[D,Oe,Ie]),sn(function(){if(v){var e=ze(ee);te(e),Le({x:e})}},[ye.width,v]);var De=function(){var e,t;null===(e=xe.current)||void 0===e||e.delayHidden(),null===(t=we.current)||void 0===t||t.delayHidden()},Fe=function(e,t,n,o,r,i,a,l){var s=h.useRef(),c=$(h.useState(null),2),d=c[0],u=c[1];return sn(function(){if(d&&d.times<10){if(!e.current)return void u(function(e){return he({},e)});i();var l=d.targetAlign,s=d.originAlign,c=d.index,p=d.offset,f=e.current.clientHeight,m=!1,g=l,h=null;if(f){for(var v=l||s,b=0,y=0,C=0,x=Math.min(t.length-1,c),w=0;w<=x;w+=1){var $=r(t[w]);y=b;var S=n.get($);b=C=y+(void 0===S?o:S)}for(var E="top"===v?p:f-p,k=x;k>=0;k-=1){var O=r(t[k]),I=n.get(O);if(void 0===I){m=!0;break}if((E-=I)<=0)break}switch(v){case"top":h=y-p;break;case"bottom":h=C-f+p;break;default:var N=e.current.scrollTop;y<N?g="top":C>N+f&&(g="bottom")}null!==h&&a(h),h!==d.lastTop&&(m=!0)}m&&u(he(he({},d),{},{times:d.times+1,targetAlign:g,lastTop:h}))}},[d,e.current]),function(e){if(null!=e){if(ya.cancel(s.current),"number"==typeof e)a(e);else if(e&&"object"===S(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex(function(t){return r(t)===e.key});var i=e.offset;u({times:0,index:n,offset:void 0===i?0:i,originAlign:o})}}else l()}}(G,q,_,a,L,function(){return H(!0)},se,De);h.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:Pe,scrollTo:function(e){var t;(t=e)&&"object"===S(t)&&("left"in t||"top"in t)?(void 0!==e.left&&te(ze(e.left)),Fe(e.top)):Fe(e)}}}),sn(function(){if(w){var e=q.slice(me,ge+1);w(e,q)}},[me,ge,q]);var We=function(e,t,n,o){var r=$(h.useMemo(function(){return[new Map,[]]},[e,n.id,o]),2),i=r[0],a=r[1];return function(r){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,s=i.get(r),c=i.get(l);if(void 0===s||void 0===c)for(var d=e.length,u=a.length;u<d;u+=1){var p,f=e[u],m=t(f);i.set(m,u);var g=null!==(p=n.get(m))&&void 0!==p?p:o;if(a[u]=(a[u-1]||0)+g,m===r&&(s=u),m===l&&(c=u),void 0!==s&&void 0!==c)break}return{top:a[s-1]||0,bottom:a[c]}}}(q,L,_,a),Ke=null==I?void 0:I({start:me,end:ge,virtual:W,offsetX:ee,offsetY:ve,rtl:K,getSize:We}),Ve=function(e,t,n,o,r,i,a,l){var s=l.getKey;return e.slice(t,n+1).map(function(e,n){var l=a(e,t+n,{style:{width:o},offsetX:r}),c=s(e);return h.createElement(Ry,{key:c,setRef:function(t){return i(e,t)}},l)})}(q,me,ge,v,ee,B,u,le),qe=null;i&&(qe=he(k({},s?"height":"maxHeight",i),qy),D&&(qe.overflowY="hidden",v&&(qe.overflowX="hidden"),oe&&(qe.pointerEvents="none")));var Ge={};return K&&(Ge.dir="rtl"),h.createElement("div",g({ref:U,style:he(he({},c),{},{position:"relative"}),className:V},Ge,R),h.createElement(pa,{onResize:function(e){Ce({width:e.offsetWidth,height:e.offsetHeight})}},h.createElement(y,{className:"".concat(o,"-holder"),style:qe,ref:G,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Y&&se(t),null==C||C(e),Le()},onMouseEnter:De},h.createElement(Py,{prefixCls:o,height:fe,offsetX:ee,offsetY:ve,scrollWidth:v,onInnerResize:H,ref:X,innerProps:E,rtl:K,extra:Ke},Ve))),W&&fe>i&&h.createElement(Fy,{ref:xe,prefixCls:o,scrollOffset:Y,scrollRange:fe,rtl:K,onScroll:Te,onStartMove:ie,onStopMove:ae,spinSize:Se,containerSize:ye.height,style:null==j?void 0:j.verticalScrollBar,thumbStyle:null==j?void 0:j.verticalScrollBarThumb,showScrollBar:P}),W&&v>ye.width&&h.createElement(Fy,{ref:we,prefixCls:o,scrollOffset:ee,scrollRange:v,rtl:K,onScroll:Te,onStartMove:ie,onStopMove:ae,spinSize:$e,containerSize:ye.width,horizontal:!0,style:null==j?void 0:j.horizontalScrollBar,thumbStyle:null==j?void 0:j.horizontalScrollBarThumb,showScrollBar:P}))}var Xy=h.forwardRef(Gy);Xy.displayName="List";const Uy=Xy;var Zy=["disabled","title","children","style","className"];function Yy(e){return"string"==typeof e||"number"==typeof e}var Qy=function(e,t){var n=h.useContext(Qb),o=n.prefixCls,r=n.id,i=n.open,a=n.multiple,l=n.mode,s=n.searchValue,c=n.toggleOpen,d=n.notFoundContent,u=n.onPopupScroll,p=h.useContext(Cy),f=p.maxCount,m=p.flattenOptions,v=p.onActiveValue,b=p.defaultActiveFirstOption,y=p.onSelect,C=p.menuItemSelectedIcon,x=p.rawValues,w=p.fieldNames,S=p.virtual,E=p.direction,I=p.listHeight,j=p.listItemHeight,M=p.optionRender,P="".concat(o,"-item"),R=Nt(function(){return m},[i,m],function(e,t){return t[0]&&e[1]!==t[1]}),L=h.useRef(null),T=h.useMemo(function(){return a&&vy(f)&&(null==x?void 0:x.size)>=f},[a,f,null==x?void 0:x.size]),z=function(e){e.preventDefault()},B=function(e){var t;null===(t=L.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},H=h.useCallback(function(e){return"combobox"!==l&&x.has(e)},[l,Ot(x).toString(),x.size]),_=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=R.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=R[r]||{},a=i.group,l=i.data;if(!a&&(null==l||!l.disabled)&&(H(l.value)||!T))return r}return-1},A=$(h.useState(function(){return _(0)}),2),D=A[0],F=A[1],W=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];F(e);var n={source:t?"keyboard":"mouse"},o=R[e];o?v(o.value,e,n):v(null,-1,n)};(0,h.useEffect)(function(){W(!1!==b?_(0):-1)},[R.length,s]);var K=h.useCallback(function(e){return"combobox"===l?String(e).toLowerCase()===s.toLowerCase():x.has(e)},[l,s,Ot(x).toString(),x.size]);(0,h.useEffect)(function(){var e,t=setTimeout(function(){if(!a&&i&&1===x.size){var e=Array.from(x)[0],t=R.findIndex(function(t){var n=t.data;return s?String(n.value).startsWith(s):n.value===e});-1!==t&&(W(t),B(t))}});return i&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[i,s]);var V=function(e){void 0!==e&&y(e,{selected:!x.has(e)}),a||c(!1)};if(h.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case gs.N:case gs.P:case gs.UP:case gs.DOWN:var o=0;if(t===gs.UP?o=-1:t===gs.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===gs.N?o=1:t===gs.P&&(o=-1)),0!==o){var r=_(D+o,o);B(r),W(r,!0)}break;case gs.TAB:case gs.ENTER:var a,l=R[D];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||T?V(void 0):V(l.value),i&&e.preventDefault();break;case gs.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){B(e)}}}),0===R.length)return h.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(P,"-empty"),onMouseDown:z},d);var q=Object.keys(w).map(function(e){return w[e]}),G=function(e){return e.label};function X(e,t){return{role:e.group?"presentation":"option",id:"".concat(r,"_list_").concat(t)}}var U=function(e){var t=R[e];if(!t)return null;var n=t.data||{},o=n.value,r=t.group,i=bg(n,!0),a=G(t);return t?h.createElement("div",g({"aria-label":"string"!=typeof a||r?null:a},i,{key:e},X(t,e),{"aria-selected":K(o)}),o):null},Z={role:"listbox",id:"".concat(r,"_list")};return h.createElement(h.Fragment,null,S&&h.createElement("div",g({},Z,{style:{height:0,width:0,overflow:"hidden"}}),U(D-1),U(D),U(D+1)),h.createElement(Uy,{itemKey:"key",ref:L,data:R,height:I,itemHeight:j,fullHeight:!1,onMouseDown:z,onScroll:u,virtual:S,direction:E,innerProps:S?null:Z},function(e,t){var n=e.group,o=e.groupOption,r=e.data,i=e.label,a=e.value,l=r.key;if(n){var s,c=null!==(s=r.title)&&void 0!==s?s:Yy(i)?i.toString():void 0;return h.createElement("div",{className:N()(P,"".concat(P,"-group"),r.className),title:c},void 0!==i?i:l)}var d=r.disabled,u=r.title,p=(r.children,r.style),f=r.className,m=vt(O(r,Zy),q),v=H(a),b=d||!v&&T,y="".concat(P,"-option"),x=N()(P,y,f,k(k(k(k({}
1,"".concat(y,"-grouped"),o),"".concat(y,"-active"),D===t&&!b),"".concat(y,"-disabled"),b),"".concat(y,"-selected"),v)),w=G(e),$=!C||"function"==typeof C||v,E="number"==typeof w?w:w||a,I=Yy(E)?E.toString():void 0;return void 0!==u&&(I=u),h.createElement("div",g({},bg(m),S?{}:X(e,t),{"aria-selected":K(a),className:x,title:I,onMouseMove:function(){D===t||b||W(t)},onClick:function(){b||V(a)},style:p}),h.createElement("div",{className:"".concat(y,"-content")},"function"==typeof M?M(e,{index:t}):E),h.isValidElement(C)||v,$&&h.createElement(Yb,{className:"".concat(P,"-option-state"),customizeIcon:C,customizeIconProps:{value:a,disabled:b,isSelected:v}},v?"✓":null))}))};const Jy=h.forwardRef(Qy),eC=function(e,t){var n=h.useRef({values:new Map,options:new Map});return[h.useMemo(function(){var o=n.current,r=o.values,i=o.options,a=e.map(function(e){var t;return void 0===e.label?he(he({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e}),l=new Map,s=new Map;return a.forEach(function(e){l.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=l,n.current.options=s,a},[e,t]),h.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]};function tC(e,t){return oy(e).join("").toUpperCase().includes(t)}n.dn(eC);const nC=function(e,t,n,o,r){return h.useMemo(function(){if(!n||!1===o)return e;
1var i=t.options,a=t.label,l=t.value,s=[],c="function"==typeof o,d=n.toUpperCase(),u=c?o:function(e,t){return r?tC(t[r],d):t[i]?tC(t["children"!==a?a:"label"],d):tC(t[l],d)},p=c?function(e){return yy(e)}:function(e){return e};return e.forEach(function(e){if(e[i])if(u(n,p(e)))s.push(e);else{var t=e[i].filter(function(e){return u(n,p(e))});t.length&&s.push(he(he({},e),{},k({},i,t)))}else u(n,p(e))&&s.push(e)}),s},[e,o,r,n,t])};n.dn(nC);var oC=0,rC=ve();var iC=["children","value"],aC=["children"];function lC(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Mi(e).map(function(e,n){if(!h.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,i=o.key,a=o.props,l=a.children,s=O(a,aC);return t||!r?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return he({key:n,value:void 0!==i?i:n,children:r},O(o,iC))}(e):he(he({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:lC(l)})}).filter(function(e){return e})}const sC=function(e,t,n,o,r){return h.useMemo(function(){var i=e;!e&&(i=lC(t));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var d=t[c];!d[n.options]||i?(a.set(d[n.value],d),s(l,d,n.label),s(l,d,o),s(l,d,r)):e(d[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}},[e,t,n,o,r])};function cC(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var dC=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],uC=["inputValue"],pC=h.forwardRef(function(e,t){var n=e.id,o=e.mode,r=e.prefixCls,i=void 0===r?"rc-select":r,a=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,d=e.onSearch,u=e.autoClearSearchValue,p=void 0===u||u,f=e.onSelect,m=e.onDeselect,v=e.dropdownMatchSelectWidth,b=void 0===v||v,y=e.filterOption,C=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,E=e.options,I=e.optionRender,N=e.children,j=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,P=e.virtual,R=e.direction,L=e.listHeight,T=void 0===L?200:L,z=e.listItemHeight,B=void 0===z?20:z,H=e.labelRender,_=e.value,A=e.defaultValue,D=e.labelInValue,F=e.onChange,W=e.maxCount,K=O(e,dC),V=function(e){var t=$(h.useState(),2),n=t[0],o=t[1];return h.useEffect(function(){var e;o("rc_select_".concat((rC?(e=oC,oC+=1):e="TEST_OR_SSR",e)))},[]),e||n}(n),q=Sy(o),G=!(E||!N),X=h.useMemo(function(){return(void 0!==y||"combobox"!==o)&&y},[y,o]),U=h.useMemo(function(){return by(l,G)},[JSON.stringify(l),G]),Z=$(Lo("",{value:void 0!==c?c:s,postState:function(e){return e||""}}),2),Y=Z[0],Q=Z[1],J=sC(E,N,U,x,w),ee=J.valueOptions,te=J.labelOptions,ne=J.options,oe=h.useCallback(function(e){return oy(e).map(function(e){var t,n,o,r,i,a;!function(e){return!e||"object"!==S(e)}(e)?(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o):t=e;var l,s=ee.get(t);return s&&(void 0===n&&(n=null==s?void 0:s[w||U.label]),void 0===o&&(o=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),r=null==s?void 0:s.disabled,i=null==s?void 0:s.title),{label:n,value:t,key:o,disabled:r,title:i}})},[U,w,ee]),re=$(Lo(A,{value:_}),2),ie=re[0],ae=re[1],le=h.useMemo(function(){var e,t=oe(q&&null===ie?[]:ie);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t},[ie,oe,o,q]),se=$(eC(le,ee),2),ce=se[0],de=se[1],ue=h.useMemo(function(){if(!o&&1===ce.length){var e=ce[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ce.map(function(e){var t;return he(he({},e),{},{label:null!==(t="function"==typeof H?H(e):e.label)&&void 0!==t?t:e.value})})},[o,ce,H]),pe=h.useMemo(function(){return new Set(ce.map(function(e){return e.value}))},[ce]);h.useEffect(function(){if("combobox"===o){var e,t=null===(e=ce[0])||void 0===e?void 0:e.value;Q(function(e){return null!=e}(t)?String(t):"")}},[ce]);var fe=cC(function(e,t){var n=null!=t?t:e;return k(k({},U.value,e),U.label,n)}),me=h.useMemo(function(){if("tags"!==o)return ne;var e=Ot(ne);return Ot(ce).sort(function(e,t){return e.value<t.value?-1:1}
1).forEach(function(t){var n=t.value;(function(e){return ee.has(e)})(n)||e.push(fe(n,t.label))}),e},[fe,ne,ee,ce,o]),ge=nC(me,U,Y,X,x),ve=h.useMemo(function(){return"tags"!==o||!Y||ge.some(function(e){return e[x||"value"]===Y})||ge.some(function(e){return e[U.value]===Y})?ge:[fe(Y)].concat(Ot(ge))},[fe,x,o,ge,Y,U]),be=function e(t){return Ot(t).sort(function(e,t){return C(e,t,{searchValue:Y})}).map(function(t){return Array.isArray(t.options)?he(he({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},ye=h.useMemo(function(){return C?be(ve):ve},[ve,C,Y]),Ce=h.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=by(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(n||!(s in t)){var i=t[l];r.push({key:hy(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var d=t[c];void 0===d&&o&&(d=t.label),r.push({key:hy(t,r.length),group:!0,data:t,label:d}),e(t[s],!0)}})}(e,!1),r}(ye,{fieldNames:U,childrenAsData:G})},[ye,U,G]),xe=function(e){var t=oe(e);if(ae(t),F&&(t.length!==ce.length||t.some(function(e,t){var n;return(null===(n=ce[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=D?t:t.map(function(e){return e.value}),o=t.map(function(e){return yy(de(e.value))});F(q?n:n[0],q?o:o[0])}},we=$(h.useState(null),2),$e=we[0],Se=we[1],Ee=$(h.useState(0),2),ke=Ee[0],Oe=Ee[1],Ie=void 0!==j?j:"combobox"!==o,Ne=h.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Oe(t),a&&"combobox"===o&&null!==e&&"keyboard"===r&&Se(String(e))},[a,o]),je=function(e,t,n){var o=function(){var t,n=de(e);return[D?{label:null==n?void 0:n[U.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,yy(n)]};if(t&&f){var r=$(o(),2),i=r[0],a=r[1];f(i,a)}else if(!t&&m&&"clear"!==n){var l=$(o(),2),s=l[0],c=l[1];m(s,c)}},Me=cC(function(e,t){var n,r=!q||t.selected;n=r?q?[].concat(Ot(ce),[e]):[e]:ce.filter(function(t){return t.value!==e}),xe(n),je(e,r),"combobox"===o?Se(""):Sy&&!p||(Q(""),Se(""))}),Pe=h.useMemo(function(){var e=!1!==P&&!1!==b;return he(he({},J),{},{flattenOptions:Ce,onActiveValue:Ne,defaultActiveFirstOption:Ie,onSelect:Me,menuItemSelectedIcon:M,rawValues:pe,fieldNames:U,virtual:e,direction:R,listHeight:T,listItemHeight:B,childrenAsData:G,maxCount:W,optionRender:I})},[W,J,Ce,Ne,Ie,Me,M,pe,U,P,b,R,T,B,G,I]);return h.createElement(Cy.Provider,{value:Pe},h.createElement(ky,g({},K,{id:V,prefixCls:i,ref:t,omitDomProps:uC,mode:o,displayValues:ue,onDisplayValuesChange:function(e,t){xe(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach(function(e){je(e.value,!1,n)})},direction:R,searchValue:Y,onSearch:function(e,t){if(Q(e),Se(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&xe(e),null==d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Ot(pe),[n])));xe(r),je(n,!0),Q("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map(function(e){var t=te.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat(Ot(pe),Ot(t))));xe(n),n.forEach(function(e){je(e,!0)})},dropdownMatchSelectWidth:b,OptionList:Jy,emptyOptions:!Ce.length,activeValue:$e,activeDescendantId:"".concat(V,"_list_").concat(ke)})))}),fC=pC;fC.Option=jy,fC.OptGroup=Iy;const mC=fC;function gC(){}const hC=h.createContext({}),vC=()=>{const e=()=>{};return e.deprecated=gC,e},bC=(0,h.createContext)(void 0);let yC=Object.assign({},Pv.Modal),CC=[];const xC=()=>CC.reduce((e,t)=>Object.assign(Object.assign({},e),t),Pv.Modal);function wC(){return yC}const $C=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;h.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return CC.push(t),yC=xC(),()=>{CC=CC.filter(e=>e!==t),yC=xC()}}yC=Object.assign({},Pv.Modal)}(null==t?void 0:t.Modal);return e},[t]);const r=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(kv.Provider,{value:r},n)},SC=`-ant-${Date.now()}-${Math.random()}`;const EC=Object.assign({},h),{useId:kC}=EC,OC=void 0===kC?()=>"":kC,IC=h.createContext(!0);function NC(e){const t=h.useContext(IC),{children:n}=e,[,o]=Tr(),{motion:r}=o,i=h.useRef(!1);return i.current||(i.current=t!==r),i.current?h.createElement(IC.Provider,{value:r},h.createElement(Ua,{motion:r},n)):n}const jC=()=>null;const MC=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let PC,RC,LC,TC;function zC(){return PC||"ant"}function BC(){return RC||Ct}const HC=()=>({getPrefixCls:(e,t)=>t||(e?`${zC()}-${e}
1`:zC()),getIconPrefixCls:BC,getRootPrefixCls:()=>PC||zC(),getTheme:()=>LC,holderRender:TC}),_C=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:r,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:d,splitter:u,virtual:p,dropdownMatchSelectWidth:f,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:C,componentDisabled:x,segmented:w,statistic:$,spin:S,calendar:E,carousel:k,cascader:O,collapse:I,typography:N,checkbox:j,descriptions:M,divider:P,drawer:R,skeleton:L,steps:T,image:z,layout:B,list:H,mentions:_,modal:A,progress:D,result:F,slider:W,breadcrumb:K,menu:V,pagination:q,input:G,textArea:X,empty:U,badge:Z,radio:Y,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:le,timePicker:se,upload:ce,notification:de,tree:ue,colorPicker:pe,datePicker:fe,rangePicker:ge,flex:he,wave:ve,dropdown:be,warning:ye,tour:Ce,tooltip:xe,popover:we,popconfirm:$e,floatButton:Se,floatButtonGroup:Ee,variant:ke,inputNumber:Oe,treeSelect:Ie}=e,Ne=h.useCallback((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||b.getPrefixCls("");return t?`${r}-${t}`:r},[b.getPrefixCls,e.prefixCls]),je=y||b.iconPrefixCls||Ct,Me=n||b.csp;((e,t)=>{const[n,o]=Tr();fo({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>mr(e))})(je,Me);const Pe=function(e,t,n){var o;vC();const r=e||{},i=!1!==r.inherit&&t?t:Object.assign(Object.assign({},br),{hashed:null!==(o=null==t?void 0:t.hashed)&&void 0!==o?o:br.hashed,cssVar:null==t?void 0:t.cssVar}),a=OC();return Nt(()=>{var o,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])});const c=`css-var-${a.replace(/:/g,"")}`,d=(null!==(o=r.cssVar)&&void 0!==o?o:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof r.cssVar?r.cssVar:{}),{key:"object"==typeof r.cssVar&&(null===(l=r.cssVar)||void 0===l?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:s,cssVar:d})},[r,i],(e,t)=>e.some((e,n)=>{const o=t[n];return!jt(e,o,!0)}))}(C,b.theme,{prefixCls:Ne("")}),Re={csp:Me,autoInsertSpaceInButton:o,alert:r,anchor:i,locale:l||v,direction:c,space:d,splitter:u,virtual:p,popupMatchSelectWidth:null!=m?m:f,popupOverflow:g,getPrefixCls:Ne,iconPrefixCls:je,theme:Pe,segmented:w,statistic:$,spin:S,calendar:E,carousel:k,cascader:O,collapse:I,typography:N,checkbox:j,descriptions:M,divider:P,drawer:R,skeleton:L,steps:T,image:z,input:G,textArea:X,layout:B,list:H,mentions:_,modal:A,progress:D,result:F,slider:W,breadcrumb:K,menu:V,pagination:q,empty:U,badge:Z,radio:Y,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:le,timePicker:se,upload:ce,notification:de,tree:ue,colorPicker:pe,datePicker:fe,rangePicker:ge,flex:he,wave:ve,dropdown:be,warning:ye,tour:Ce,tooltip:xe,popover:we,popconfirm:$e,floatButton:Se,floatButtonGroup:Ee,variant:ke,inputNumber:Oe,treeSelect:Ie},Le=Object.assign({},b);Object.keys(Re).forEach(e=>{void 0!==Re[e]&&(Le[e]=Re[e])}),MC.forEach(t=>{const n=e[t];n&&(Le[t]=n)}),void 0!==o&&(Le.button=Object.assign({autoInsertSpace:o},Le.button));const Te=Nt(()=>Le,Le,(e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some(n=>e[n]!==t[n])}),{layer:ze}=h.useContext(Dt),Be=h.useMemo(()=>({prefixCls:je,csp:Me,layer:ze?"antd":void 0}),[je,Me,ze]);let He=h.createElement(h.Fragment,null,h.createElement(jC,{dropdownMatchSelectWidth:f}),t);const _e=h.useMemo(()=>{var e,t,n,o;return Jo((null===(e=Pv.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Te.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Te.form)||void 0===o?void 0:o.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})},[Te,null==a?void 0:a.validateMessages]);Object.keys(_e).length>0&&(He=h.createElement(bC.Provider,{value:_e},He)),l&&(He=h.createElement($C,{locale:l,_ANT_MARK__:"internalMark"},He)),(je||Me)&&(He=h.createElement(me.Provider,{value:Be},He)),s&&(He=h.createElement(Yr,{size:s},He)),He=h.createElement(NC,null,He);const Ae=h.useMemo(()=>{const e=Pe||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?qt(t):kr,l={};Object.entries(o||{}
1).forEach(([e,t])=>{const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=qt(n.algorithm)),delete n.algorithm),l[e]=n});const s=Object.assign(Object.assign({},vr),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:l,override:Object.assign({override:s},l),cssVar:r})},[Pe]);return C&&(He=h.createElement(yr.Provider,{value:Ae},He)),Te.warning&&(He=h.createElement(hC.Provider,{value:Te.warning},He)),void 0!==x&&(He=h.createElement(hf,{disabled:x},He)),h.createElement(wt.Provider,{value:Te},He)},AC=e=>{const t=h.useContext(wt),n=h.useContext(kv);return h.createElement(_C,Object.assign({parentContext:t,legacyLocale:n},e))};AC.ConfigContext=wt,AC.SizeContext=Qr,AC.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(PC=t),void 0!==n&&(RC=n),"holderRender"in e&&(TC=r),o&&(function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(o)?function(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new L(e),i=_(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new L(t.primaryColor),i=_(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=o(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=o(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=o(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=o(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=o(e,e=>e.setA(.12*e.a));const a=new L(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=o(a,e=>e.darken(2))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n  :root {\n    ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n  }\n  `.trim()}(e,t);ve()&&Ie(n,`${SC}-dynamic-theme`)}(zC(),o):LC=o)},AC.useConfig=function(){return{componentDisabled:(0,h.useContext)(vf),componentSize:(0,h.useContext)(Qr)}},Object.defineProperty(AC,"SizeContext",{get:()=>Qr});const DC=AC;function FC(e){return t=>h.createElement(DC,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const WC=(e,t,n,o,r)=>FC(i=>{const{prefixCls:a,style:l}=i,s=h.useRef(null),[c,d]=h.useState(0),[u,p]=h.useState(0),[f,m]=Lo(!1,{value:i.open}),{getPrefixCls:g}=h.useContext(wt),v=g(o||"select",a);h.useEffect(()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{var n;const o=r?`.${r(v)}`:`.${v}-dropdown`,i=null===(n=s.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[v]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:f,visible:f,getPopupContainer:()=>s.current});n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:c,position:"relative",minWidth:u};return h.createElement("div",{ref:s,style:y},h.createElement(e,Object.assign({},b)))}),KC=()=>{const[,e]=Tr(),[t]=Rv("Empty"),n=new L(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return h.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(null==t?void 0:t.description)||"Empty"),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("g",{transform:"translate(24 31.67)"},h.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),h.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),h.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),h.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),h.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.51
15c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),h.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),h.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},h.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),h.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},VC=()=>{const[,e]=Tr(),[t]=Rv("Empty"),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=(0,h.useMemo)(()=>({borderColor:new L(n).onBackground(i).toHexString(),shadowColor:new L(o).onBackground(i).toHexString(),contentColor:new L(r).onBackground(i).toHexString()}),[n,o,r,i]);return h.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(null==t?void 0:t.description)||"Empty"),h.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},h.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),h.createElement("g",{fillRule:"nonzero",stroke:a},h.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),h.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},qC=zr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e;return(e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})(or(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()}))});const GC=h.createElement(KC,null),XC=h.createElement(VC,null),UC=e=>{var t;const{className:n,rootClassName:o,prefixCls:r,image:i,description:a,children:l,imageStyle:s,style:c,classNames:d,styles:u}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:f,direction:m,className:g,style:v,classNames:b,styles:y,image:C}=Et("empty"),x=f("empty",r),[w,$,S]=qC(x),[E]=Rv("Empty"),k=void 0!==a?a:null==E?void 0:E.description,O="string"==typeof k?k:"empty",I=null!==(t=null!=i?i:C)&&void 0!==t?t:GC;let j=null;return j="string"==typeof I?h.createElement("img",{draggable:!1,alt:O,src:I}):I,w(h.createElement("div",Object.assign({className:N()($,S,x,g,{[`${x}-normal`]:I===XC,[`${x}-rtl`]:"rtl"===m},n,o,b.root,null==d?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),v),null==u?void 0:u.root),c)},p),h.createElement("div",{className:N()(`${x}-image`,b.image,null==d?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},s),y.image),null==u?void 0:u.image)},j),k&&h.createElement("div",{className:N()(`${x}-description`,b.description,null==d?void 0:d.description),style:Object.assign(Object.assign({},y.description),null==u?void 0:u.description)},k),l&&h.createElement("div",{className:N()(`${x}-footer`,b.footer,null==d?void 0:d.footer),style:Object.assign(Object.assign({},y.footer),null==u?void 0:u.footer)},l)))};UC.PRESENTED_IMAGE_DEFAULT=GC,UC.PRESENTED_IMAGE_SIMPLE=XC;const ZC=UC,YC=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,h.useContext)(wt),o=n("empty");switch(t){case"Table":case"List":return v().createElement(ZC,{image:ZC.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v().createElement(ZC,{image:ZC.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return v().createElement(ZC,null)}},QC=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},JC=new ho("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}
vendor: 8,666 bytes, line 1
1,"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ex=new ho("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),tx=new ho("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nx=new ho("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ox=new ho("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rx=new ho("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ix={"move-up":{inKeyframes:new ho("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new ho("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:JC,outKeyframes:ex},"move-left":{inKeyframes:tx,outKeyframes:nx},"move-right":{inKeyframes:ox,outKeyframes:rx}},ax=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=ix[t];return[Hd(o,r,i,e.motionDurationMid),{[`\n        ${o}-enter,\n        ${o}-appear\n      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},lx=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},sx=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${o}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ur(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n          ${r}${l}bottomLeft,\n          ${i}${l}bottomLeft\n        `]:{animationName:_d},[`\n          ${r}${l}topLeft,\n          ${i}${l}topLeft,\n          ${r}${l}topRight,\n          ${i}${l}topRight\n        `]:{animationName:Dd},[`${a}${l}bottomLeft`]:{animationName:Ad},[`\n          ${a}${l}topLeft,\n          ${a}${l}topRight\n        `]:{animationName:Fd},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},lx(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},dr),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},lx(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Xd(e,"slide-up"),Xd(e,"slide-down"),ax(e,"move-up"),ax(e,"move-down")]},cx=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e,u=`${t}-selection-overflow`;return{[u]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:o,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},dx=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),l=t?`${n}-${t}`:"",s=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:Jt(t),itemLineHeight:Jt(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},cx(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Jt(o)} 0`,lineHeight:Jt(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:Jt(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Jt(i),marginBlock:o}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${r}-item + ${r}-item,\n        ${n}-prefix + ${n}-selection-wrap\n      `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${r}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:o},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n          &-input,\n          &-mirror\n        ":{height:i,fontFamily:e.fontFamily,lineHeight:Jt(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function ux(e,t){const{componentCls:n}=e,o=t?`${n}-${t}`:"",r={[`${n}-multiple${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n        &${n}-show-arrow ${n}-selector,\n        &${n}-allow-clear ${n}-selector\n      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[dx(e,t),r]}const px=e=>{const{componentCls:t}=e,n=or(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=or(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[ux(e),ux(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}
1-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},ux(o,"lg")]};function fx(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ur(e,!0)),{display:"flex",borderRadius:r,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Jt(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n          ${n}-selection-item,\n          ${n}-selection-placeholder\n        `]:{display:"block",padding:0,lineHeight:Jt(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n        &${n}-show-arrow ${n}-selection-item,\n        &${n}-show-arrow ${n}-selection-search,\n        &${n}-show-arrow ${n}-selection-placeholder\n      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Jt(o)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:Jt(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Jt(o)}`,"&:after":{display:"none"}}}}}}}function mx(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[fx(e),fx(or(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Jt(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n            &${t}-show-arrow ${t}-selection-item,\n            &${t}-show-arrow ${t}
1-selection-placeholder\n          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},fx(or(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const gx=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Jt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Jt(r)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},hx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gx(e,t))}),vx=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},gx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),hx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),hx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bx=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Jt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},yx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bx(e,t))}),Cx=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},bx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),yx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),yx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),xx=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Jt(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),wx=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${Jt(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},$x=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},wx(e,t))}),Sx=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},wx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),$x(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),$x(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}
vendor: 3,960 bytes, line 1
1),Ex=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},vx(e)),Cx(e)),xx(e)),Sx(e))}),kx=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ox=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Ix=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},ur(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},kx(e)),Ox(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},dr),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},dr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Nx=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Ix(e),mx(e),px(e),sx(e),{[`${t}-rtl`]:{direction:"rtl"}},Mm(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},jx=zr("Select",(e,{rootPrefixCls:t})=>{const n=or(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Nx(n),Ex(n)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:d,fontWeightStrong:u,controlItemBgActive:p,controlItemBgHover:f,colorBgContainer:m,colorFillSecondary:g,colorBg
1ContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:C}=e,x=2*l,w=2*o,$=Math.min(r-x,r-w),S=Math.min(i-x,i-w),E=Math.min(a-x,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:u,optionSelectedBg:p,optionActiveBg:f,optionPadding:`${(r-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:S,multipleItemHeightLG:E,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:C,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),Mx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var Px=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Mx}))};const Rx=h.forwardRef(Px),Lx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var Tx=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Lx}))};const zx=h.forwardRef(Tx);const Bx="SECRET_COMBOBOX_MODE_DO_NOT_USE",Hx=(e,t)=>{var n,o,r,i,a;const{prefixCls:l,bordered:s,className:c,rootClassName:d,getPopupContainer:u,popupClassName:p,dropdownClassName:f,listHeight:m=256,placement:g,listItemHeight:b,size:y,disabled:C,notFoundContent:x,status:w,builtinPlacements:$,dropdownMatchSelectWidth:S,popupMatchSelectWidth:E,direction:k,style:O,allowClear:I,variant:j,dropdownStyle:M,transitionName:P,tagRender:R,maxCount:L,prefix:T,dropdownRender:z,popupRender:B,onDropdownVisibleChange:H,onOpenChange:_,styles:A,classNames:D}=e,F=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:W,getPrefixCls:K,renderEmpty:V,direction:q,virtual:G,popupMatchSelectWidth:X,popupOverflow:U}=h.useContext(wt),{showSearch:Z,style:Y,styles:Q,className:J,classNames:ee}=Et("select"),[,te]=Tr(),ne=null!=b?b:null==te?void 0:te.controlHeight,oe=K("select",l),re=K(),ie=null!=k?k:q,{compactSize:ae,compactItemClassnames:le}=wf(oe,ie),[se,ce]=zp("select",j,s),de=Od(oe),[ue,pe,fe]=jx(oe,de),me=h.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===Bx?"combobox":t},[e.mode]),ge="multiple"===me||"tags"===me,he=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ve=null!==(n=null!=E?E:S)&&void 0!==n?n:X,be=(null===(o=null==A?void 0:A.popup)||void 0===o?void 0:o.root)||(null===(r=Q.popup)||void 0===r?void 0:r.root)||M,ye=(ke=B||z,v().useMemo(()=>{if(ke)return(...e)=>v().createElement(yh,{space:!0},ke.apply(void 0,e))},[ke])),Ce=_||H,{status:xe,hasFeedback:we,isFormItemInput:$e,feedbackIcon:Se}=h.useContext(Rp),Ee=Eh(xe,w);var ke;let Oe;Oe=void 0!==x?x:"combobox"===me?null:(null==V?void 0:V("Select"))||h.createElement(YC,{componentName:"Select"});const{suffixIcon:Ie,itemIcon:Ne,removeIcon:je,clearIcon:Me}=function({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:o,loading:r,multiple:i,hasFeedback:a,prefixCls:l,showSuffixIcon:s,feedbackIcon:c,showArrow:d,componentName:u}){const p=null!=t?t:h.createElement(wh,null),f=t=>null!==e||a||d?h.createElement(h.Fragment,null,!1!==s&&t,a&&c):null;let m=null;if(void 0!==e)m=f(e);else if(r)m=f(h.createElement(zf,{spin:!0}));else{const e=`${l}-suffix`;m=({open:t,showSearch:n})=>f(t&&n?h.createElement(Wh,{className:e}):h.createElement(zx,{className:e}))}let g=null;g=void 0!==n?n:i?h.createElement(Rx,null):null;let v=null;return v=void 0!==o?o:h.createElement(wi,null),{clearIcon:p,suffixIcon:m,itemIcon:g,removeIcon:v}}(Object.assign(Object.assign({},F),{multiple:ge,hasFeedback:we,feedbackIcon:Se,showSuffixIcon:he,prefixCls:oe,componentName:"Select"})),Pe=!0===I?{clearIcon:Me}:I,Re=vt(F,["suffixIcon","itemIcon"]),Le=N()((null===(i=null==D?void 0:D.popup)||void 0===i?void 0:i.root)||(null===(a=null==ee?void 0:ee.popup)||void 0===a?void 0:a.root)||p||f,{[`${oe}-dropdown-${ie}`]:"rtl"===ie},d,ee.root,null==D?void 0:D.root,fe,de,pe),Te=Jr(e=>{var t;return null!==(t=null!=y?y:ae)&&void 0!==t?t:e}),ze=h.useContext(vf),Be=null!=C?C:ze,He=N()({[`${oe}-lg`]:"large"===Te,[`${oe}-sm`]:"small"===Te,[`${oe}-rtl`]:"rtl"===ie,[`${oe}-${se}`]:ce,[`${oe}-in-form-item`]:$e},Sh(oe,Ee,we),le,J,c,ee.root,null==D?void 0:D.root,d,fe,de,pe),_e=h.useMemo(()=>void 0!==g?g:"rtl"===ie?"bottomRight":"bottomLeft",[g,ie]),[Ae]=wv("SelectLike",null==be?void 0:be.zIndex);return ue(h.createElement(mC,Object.assign({ref:t,virtual:G,showSearch:Z},Re,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q.root),null==A?void 0:A.root),Y),O),dropdownMatchSelectWidth:ve,transitionName:Pd(re,"slide-up",P),builtinPlacements:QC($,U),listHeight:m,listItemHeight:ne,mode:me,prefixCls:oe,placement:_e,direction:ie,prefix:T,suffixIcon:Ie,menuItemSelectedIcon:Ne,removeIcon:je,allowClear:Pe,notFoundContent:Oe,className:He,getPopupContainer:u||W,dropdownClassName:Le,disabled:Be,dropdownStyle:Object.assign(Object.assign({},be),{zIndex:Ae}),maxCount:ge?L:void 0,tagRender:ge?R:void 0,dropdownRender:ye,onDropdownVisibleChange:Ce})))},Ax=h.forwardRef(Hx),Dx=WC(Ax,"dropdownAlign");Ax.SECRET_COMBOBOX_MODE_DO_NOT_USE=Bx,Ax.Option=jy,Ax.OptGroup=Iy,Ax._InternalPanelDoNotUseOrYouWillBeFired=Dx;const Fx=Ax,{Option:Wx}=Fx,Kx=e=>{const{children:n,options:o,...r}=e;return(0,t.jsx)(Fx,{...r,children:o?o.map(e=>(0,t.jsx)(Wx,{value:e.value,disabled:e.disabled,children:e.label},e.value)):n})};Kx.Option=Wx;const Vx=Kx,qx=e=>{const{componentCls:t,borderRadius:n,paddingSM:o,colorBorder:r,paddingXS:i,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:s,borderRadiusSM:c,colorBgContainerDisabled:d,lineWidth:u}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:o,margin:0,background:d,borderWidth:u,borderStyle:"solid",borderColor:r,borderRadius:n,"&-large":{fontSize:a,borderRadius:s},"&-small":{paddingInline:i,borderRadius:c,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Mm(e,{focus:!1})]}},Gx=zr(["Space","Addon"],e=>[qx(e)]);const Xx=v().forwardRef((e,t)=>
1{const{className:n,children:o,style:r,prefixCls:i}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","children","style","prefixCls"]),{getPrefixCls:l,direction:s}=v().useContext(wt),c=l("space-addon",i),[d,u,p]=Gx(c),{compactItemClassnames:f,compactSize:m}=wf(c,s),g=N()(c,u,f,p,{[`${c}-${m}`]:m},n);return d(v().createElement("div",Object.assign({ref:t,className:g,style:r},a),o))}),Ux=Xx,Zx=v().createContext({latestIndex:0}),Yx=Zx.Provider,Qx=({className:e,index:t,children:n,split:o,style:r})=>{const{latestIndex:i}=h.useContext(Zx);return null==n?null:h.createElement(h.Fragment,null,h.createElement("div",{className:e,style:r},n),t<i&&o&&h.createElement("span",{className:`${e}-split`},o))},Jx=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},ew=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},tw=zr("Space",e=>{const t=or(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Jx(t),ew(t)]},()=>({}),{resetStyle:!1});const nw=h.forwardRef((e,t)=>{var n;const{getPrefixCls:o,direction:r,size:i,className:a,style:l,classNames:s,styles:c}=Et("space"),{size:d=(null!=i?i:"small"),align:u,className:p,rootClassName:f,children:m,direction:g="horizontal",prefixCls:v,split:b,style:y,wrap:C=!1,classNames:x,styles:w}=e,$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,E]=Array.isArray(d)?d:[d,d],k=bt(E),O=bt(S),I=yt(E),j=yt(S),M=Mi(m,{keepEmpty:!0}),P=void 0===u&&"horizontal"===g?"center":u,R=o("space",v),[L,T,z]=tw(R),B=N()(R,a,T,`${R}-${g}`,{[`${R}-rtl`]:"rtl"===r,[`${R}-align-${P}`]:P,[`${R}-gap-row-${E}`]:k,[`${R}-gap-col-${S}`]:O},p,f,z),H=N()(`${R}-item`,null!==(n=null==x?void 0:x.item)&&void 0!==n?n:s.item),_=Object.assign(Object.assign({},c.item),null==w?void 0:w.item),A=M.map((e,t)=>{const n=(null==e?void 0:e.key)||`${H}-${t}`;return h.createElement(Qx,{className:H,key:n,index:t,split:b,style:_},e)}),D=h.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>null!=t?n:e,0)}),[M]);if(0===M.length)return null;const F={};return C&&(F.flexWrap="wrap"),!O&&j&&(F.columnGap=S),!k&&I&&(F.rowGap=E),L(h.createElement("div",Object.assign({ref:t,className:B,style:Object.assign(Object.assign(Object.assign({},F),l),y)},$),h.createElement(Yx,{value:D},A)))}),ow=nw;ow.Compact=e=>{const{getPrefixCls:t,direction:n}=h.useContext(wt),{size:o,direction:r,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,d=Cf(e,["size","direction","block","prefixCls","className","rootClassName","children"]),u=Jr(e=>null!=o?o:e),p=t("space-compact",a),[f,m]=yf(p),g=N()(p,m,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===r},l,s),v=h.useContext(xf),b=Mi(c),y=h.useMemo(()=>b.map((e,t)=>{const n=(null==e?void 0:e.key)||`${p}-item-${t}`;return h.createElement(Sf,{key:n,compactSize:u,compactDirection:r,isFirstItem:0===t&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:t===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},e)}),[b,v,r,u,p]);return 0===b.length?null:f(h.createElement("div",Object.assign({className:g},d),y))},ow.Addon=Ux;const rw=ow,iw=()=>(0,t.jsx)(yi,{});iw.Node=yi.Node,iw.Input=yi.Input;const aw=iw,lw=If.map(e=>`${e}-inverse`),sw=["success","processing","error","default","warning"];function cw(e,t=!0){return t?[].concat(Of(lw),Of(If)).includes(e):If.includes(e)}function dw(e,t){return If.reduce((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],l=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const uw=new ho("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}
vendor: 5,213 bytes, line 1
1}),pw=new ho("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),fw=new ho("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),mw=new ho("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),gw=new ho("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),hw=new ho("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),vw=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return or(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},bw=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}},yw=zr("Badge",e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:d,indicatorHeightSM:u,marginXS:p,calc:f}=e,m=`${o}-scroll-number`,g=dw(e,(e,{darkColor:n})=>({[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:Jt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:f(d).div(2).equal(),boxShadow:`0 0 0 ${Jt(r)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:u,height:u,fontSize:a,lineHeight:Jt(u),borderRadius:f(u).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Jt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Jt(r)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:hw,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:uw,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:pw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:fw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:gw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(vw(e)),bw),Cw=zr(["Badge","Ribbon"],e=>(e=>
1{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=dw(e,(e,{darkColor:t})=>({[`&${a}-color-${e}`]:{background:t,color:t}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{position:"absolute",top:o,padding:`0 ${Jt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Jt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${Jt(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(vw(e)),bw),xw=e=>{const{prefixCls:t,value:n,current:o,offset:r=0}=e;let i;return r&&(i={position:"absolute",top:`${r}00%`,left:0}),h.createElement("span",{style:i,className:N()(`${t}-only-unit`,{current:o})},n)};function ww(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const $w=e=>{const{prefixCls:t,count:n,value:o}=e,r=Number(o),i=Math.abs(n),[a,l]=h.useState(r),[s,c]=h.useState(i),d=()=>{l(r),c(i)};let u,p;if(h.useEffect(()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)},[r]),a===r||Number.isNaN(r)||Number.isNaN(a))u=[h.createElement(xw,Object.assign({},e,{key:r,current:!0}))],p={transition:"none"};else{u=[];const t=r+10,n=[];for(let e=r;e<=t;e+=1)n.push(e);const o=s<i?1:-1,l=n.findIndex(e=>e%10===a);u=(o<0?n.slice(0,l+1):n.slice(l)).map((t,n)=>{const r=t%10;return h.createElement(xw,Object.assign({},e,{key:t,value:r,offset:o<0?n-l:n,current:n===l}))}),p={transform:`translateY(${-ww(a,r,o)}00%)`}}return h.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:d},u)};const Sw=h.forwardRef((e,t)=>{const{prefixCls:n,count:o,className:r,motionClassName:i,style:a,title:l,show:s,component:c="sup",children:d}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=h.useContext(wt),f=p("scroll-number",n),m=Object.assign(Object.assign({},u),{"data-show":s,style:a,className:N()(f,r,i),title:l});let g=o;if(o&&Number(o)%1==0){const e=String(o).split("");g=h.createElement("bdi",null,e.map((t,n)=>h.createElement($w,{prefixCls:f,count:Number(o),value:t,key:e.length-n})))}return(null==a?void 0:a.borderColor)&&(m.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),d?qp(d,e=>({className:N()(`${f}-custom-component`,null==e?void 0:e.className,i)})):h.createElement(c,Object.assign({},m,{ref:t}),g)}),Ew=Sw;const kw=h.forwardRef((e,t)=>{var n,o,r,i,a;const{prefixCls:l,scrollNumberPrefixCls:s,children:c,status:d,text:u,color:p,count:f=null,overflowCount:m=99,dot:g=!1,size:v="default",title:b,offset:y,style:C,className:x,rootClassName:w,classNames:$,styles:S,showZero:E=!1}=e,k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:I,badge:j}=h.useContext(wt),M=O("badge",l),[P,R,L]=yw(M),T=f>m?`${m}+`:f,z="0"===T||0===T||"0"===u||0===u,B=null===f||z&&!E,H=(null!=d||null!=p)&&B,_=null!=d||!z,A=g&&!z,D=A?"":T,F=(0,h.useMemo)(()=>
1(!(null!=D&&""!==D||null!=u&&""!==u)||z&&!E)&&!A,[D,z,E,A,u]),W=(0,h.useRef)(f);F||(W.current=f);const K=W.current,V=(0,h.useRef)(D);F||(V.current=D);const q=V.current,G=(0,h.useRef)(A);F||(G.current=A);const X=(0,h.useMemo)(()=>{if(!y)return Object.assign(Object.assign({},null==j?void 0:j.style),C);const e={marginTop:y[1]};return"rtl"===I?e.left=Number.parseInt(y[0],10):e.right=-Number.parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},e),null==j?void 0:j.style),C)},[I,y,C,null==j?void 0:j.style]),U=null!=b?b:"string"==typeof K||"number"==typeof K?K:void 0,Z=!F&&(0===u?E:!!u&&!0!==u),Y=Z?h.createElement("span",{className:`${M}-status-text`},u):null,Q=K&&"object"==typeof K?qp(K,e=>({style:Object.assign(Object.assign({},X),e.style)})):void 0,J=cw(p,!1),ee=N()(null==$?void 0:$.indicator,null===(n=null==j?void 0:j.classNames)||void 0===n?void 0:n.indicator,{[`${M}-status-dot`]:H,[`${M}-status-${d}`]:!!d,[`${M}-color-${p}`]:J}),te={};p&&!J&&(te.color=p,te.background=p);const ne=N()(M,{[`${M}-status`]:H,[`${M}-not-a-wrapper`]:!c,[`${M}-rtl`]:"rtl"===I},x,w,null==j?void 0:j.className,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.root,null==$?void 0:$.root,R,L);if(!c&&H&&(u||_||!B)){const e=X.color;return P(h.createElement("span",Object.assign({},k,{className:ne,style:Object.assign(Object.assign(Object.assign({},null==S?void 0:S.root),null===(r=null==j?void 0:j.styles)||void 0===r?void 0:r.root),X)}),h.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},null==S?void 0:S.indicator),null===(i=null==j?void 0:j.styles)||void 0===i?void 0:i.indicator),te)}),Z&&h.createElement("span",{style:{color:e},className:`${M}-status-text`},u)))}return P(h.createElement("span",Object.assign({ref:t},k,{className:ne,style:Object.assign(Object.assign({},null===(a=null==j?void 0:j.styles)||void 0===a?void 0:a.root),null==S?void 0:S.root)}),c,h.createElement(Fl,{visible:!F,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:e})=>{var t,n;const o=O("scroll-number",s),r=G.current,i=N()(null==$?void 0:$.indicator,null===(t=null==j?void 0:j.classNames)||void 0===t?void 0:t.indicator,{[`${M}-dot`]:r,[`${M}-count`]:!r,[`${M}-count-sm`]:"small"===v,[`${M}-multiple-words`]:!r&&q&&q.toString().length>1,[`${M}-status-${d}`]:!!d,[`${M}-color-${p}`]:J});let a=Object.assign(Object.assign(Object.assign({},null==S?void 0:S.indicator),null===(n=null==j?void 0:j.styles)||void 0===n?void 0:n.indicator),X);return p&&!J&&(a=a||{},a.background=p),h.createElement(Ew,{prefixCls:o,show:!F,motionClassName:e,className:i,count:q,title:U,style:a,key:"scrollNumber"},Q)}),Y))}),Ow=kw;Ow.Ribbon=e=>{const{className:t,prefixCls:n,style:o,color:r,children:i,text:a,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:d}=h.useContext(wt),u=c("ribbon",n),p=`${u}-wrapper`,[f,m,g]=Cw(u,p),v=cw(r,!1),b=N()(u,`${u}-placement-${l}`,{[`${u}-rtl`]:"rtl"===d,[`${u}-color-${r}`]:v},t),y={},C={};return r&&!v&&(y.background=r,C.color=r),f(h.createElement("div",{className:N()(p,s,m,g)},i,h.createElement("div",{className:N()(b,m),style:Object.assign(Object.assign({},y),o)},h.createElement("span",{className:`${u}-text`},a),h.createElement("div",{className:`${u}-corner`,style:C}))))};const Iw=Ow,Nw=h.createContext({}),jw=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:d,textFontSizeSM:u,iconFontSize:p,iconFontSizeLG:f,iconFontSizeSM:m,borderRadius:g,borderRadiusLG:h,borderRadiusSM:v,lineWidth:b,lineType:y}=e,C=(e,t,r,i)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${n}-square`]:{borderRadius:i},[`&${n}-icon`]:{fontSize:r,[`> ${o}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${Jt(b)} ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(a,c,p,g)),{"&-lg":Object.assign({},C(l,d,f,h)),"&-sm":Object.assign({},C(s,u,m,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Mw=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},Pw=zr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=or(e,{avatarBg:n,avatarColor:t});return[jw(o),Mw(o)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:r,textFontSizeLG:r,textFontSizeSM:r,iconFontSize:Math.round((i+a)/2),iconFontSizeLG:l,iconFontSizeSM:r,groupSpace:c,groupOverlapping:-s,groupBorderColor:d}});const Rw=h.forwardRef((e,t)=>
vendor: 12,364 bytes, line 1
1{const{prefixCls:n,shape:o,size:r,src:i,srcSet:a,icon:l,className:s,rootClassName:c,style:d,alt:u,draggable:p,children:f,crossOrigin:m,gap:g=4,onError:v}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[y,C]=h.useState(1),[x,w]=h.useState(!1),[$,S]=h.useState(!0),E=h.useRef(null),k=h.useRef(null),O=Fo(t,E),{getPrefixCls:I,avatar:j}=h.useContext(wt),M=h.useContext(Nw),P=()=>{if(!k.current||!E.current)return;const e=k.current.offsetWidth,t=E.current.offsetWidth;0!==e&&0!==t&&2*g<t&&C(t-2*g<e?(t-2*g)/e:1)};h.useEffect(()=>{w(!0)},[]),h.useEffect(()=>{S(!0),C(1)},[i]),h.useEffect(P,[g]);const R=Jr(e=>{var t,n;return null!==(n=null!==(t=null!=r?r:null==M?void 0:M.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"}),L=Object.keys("object"==typeof R&&R||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),T=Vm(L),z=h.useMemo(()=>{if("object"!=typeof R)return{};const e=Fm.find(e=>T[e]),t=R[e];return t?{width:t,height:t,fontSize:t&&(l||f)?t/2:18}:{}},[T,R,l,f]),B=I("avatar",n),H=Od(B),[_,A,D]=Pw(B,H),F=N()({[`${B}-lg`]:"large"===R,[`${B}-sm`]:"small"===R}),W=h.isValidElement(i),K=o||(null==M?void 0:M.shape)||"circle",V=N()(B,F,null==j?void 0:j.className,`${B}-${K}`,{[`${B}-image`]:W||i&&$,[`${B}-icon`]:!!l},D,H,s,c,A),q="number"==typeof R?{width:R,height:R,fontSize:l?R/2:18}:{};let G;if("string"==typeof i&&$)G=h.createElement("img",{src:i,draggable:p,srcSet:a,onError:()=>{!1!==(null==v?void 0:v())&&S(!1)},alt:u,crossOrigin:m});else if(W)G=i;else if(l)G=l;else if(x||1!==y){const e=`scale(${y})`,t={msTransform:e,WebkitTransform:e,transform:e};G=h.createElement(pa,{onResize:P},h.createElement("span",{className:`${B}-string`,ref:k,style:t},f))}else G=h.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:k},f);return _(h.createElement("span",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q),z),null==j?void 0:j.style),d),className:V,ref:O}),G))}),Lw=Rw,Tw=e=>e?"function"==typeof e?e():e:null;function zw(e){var t=e.children,n=e.prefixCls,o=e.id,r=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,l=e.style;return h.createElement("div",{className:N()("".concat(n,"-content"),a),style:l},h.createElement("div",{className:N()("".concat(n,"-inner"),i),id:o,role:"tooltip",style:r},"function"==typeof t?t():t))}var Bw={shiftX:64,adjustY:1},Hw={adjustX:1,shiftY:!0},_w=[0,0],Aw={left:{points:["cr","cl"],overflow:Hw,offset:[-4,0],targetOffset:_w},right:{points:["cl","cr"],overflow:Hw,offset:[4,0],targetOffset:_w},top:{points:["bc","tc"],overflow:Bw,offset:[0,-4],targetOffset:_w},bottom:{points:["tc","bc"],overflow:Bw,offset:[0,4],targetOffset:_w},topLeft:{points:["bl","tl"],overflow:Bw,offset:[0,-4],targetOffset:_w},leftTop:{points:["tr","tl"],overflow:Hw,offset:[-4,0],targetOffset:_w},topRight:{points:["br","tr"],overflow:Bw,offset:[0,-4],targetOffset:_w},rightTop:{points:["tl","tr"],overflow:Hw,offset:[4,0],targetOffset:_w},bottomRight:{points:["tr","br"],overflow:Bw,offset:[0,4],targetOffset:_w},rightBottom:{points:["bl","br"],overflow:Hw,offset:[4,0],targetOffset:_w},bottomLeft:{points:["tl","bl"],overflow:Bw,offset:[0,4],targetOffset:_w},leftBottom:{points:["br","bl"],overflow:Hw,offset:[-4,0],targetOffset:_w}},Dw=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Fw=function(e,t){var n=e.overlayClassName,o=e.trigger,r=void 0===o?["hover"]:o,i=e.mouseEnterDelay,a=void 0===i?0:i,l=e.mouseLeaveDelay,s=void 0===l?.1:l,c=e.overlayStyle,d=e.prefixCls,u=void 0===d?"rc-tooltip":d,p=e.children,f=e.onVisibleChange,m=e.afterVisibleChange,v=e.transitionName,b=e.animation,y=e.motion,C=e.placement,x=void 0===C?"right":C,w=e.align,$=void 0===w?{}:w,S=e.destroyTooltipOnHide,E=void 0!==S&&S,k=e.defaultVisible,I=e.getTooltipContainer,j=e.overlayInnerStyle,M=(e.arrowContent,e.overlay),P=e.id,R=e.showArrow,L=void 0===R||R,T=e.classNames,z=e.styles,B=O(e,Dw),H=qa(P),_=(0,h.useRef)(null);(0,h.useImperativeHandle)(t,function(){return _.current});var A,D,F=he({},B);return"visible"in e&&(F.popupVisible=e.visible),h.createElement(fs,g({popupClassName:N()(n,null==T?void 0:T.root),prefixCls:u,popup:function(){return h.createElement(zw,{key:"content",prefixCls:u,id:H,bodyClassName:null==T?void 0:T.body,overlayInnerStyle:he(he({},j),null==z?void 0:z.body)},M)},action:r,builtinPlacements:Aw,popupPlacement:x,ref:_,popupAlign:$,getPopupContainer:I,onPopupVisibleChange:f,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:b,popupMotion:y,defaultPopupVisible:k,autoDestroy:E,mouseLeaveDelay:s,popupStyle:he(he({},c),null==z?void 0:z.root),mouseEnterDelay:a,arrow:L},F),(D=he(he({},(null==(A=h.Children.only(p))?void 0:A.props)||{}),{},{"aria-describedby":M?H:null}),h.cloneElement(p,D)))};const Ww=(0,h.forwardRef)(Fw);function Kw(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),s=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*r-s,u=c,p=2*r-a,f=l,m=2*r-0,g=i,h=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${d} ${u} L ${p} ${f} A ${o} ${o} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const Vw=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:s(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Jt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function qw(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function Gw(e,t){return e?t:{}}function Xw(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Vw(e,t,r)),{"&:before":{background:t}})]},Gw(!!s.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Jt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Gw(!!s.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Jt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Gw(!!s.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),Gw(!!s.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const Uw={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Zw={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Yw=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Qw(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,l=t/2,s={},c=qw({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Uw).forEach(e=>{const i=o&&Zw[e]||Uw[e],d=Object.assign(Object.assign({},i),{offset:[0,0],dynamicInset:!0});switch(s[e]=d,Yw.has(e)&&(d.autoArrow=!1),e){case"top":case"topLeft":case"topRight":d.offset[1]=-l-r;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=l+r;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-l-r;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=l+r}if(o)switch(e){case"topLeft":case"bottomLeft":d.offset[0]=-c.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":d.offset[0]=c.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":d.offset[1]=2*-c.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":d.offset[1]=2*c.arrowOffsetHorizontal-l}d.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,c,t,n),a&&(d.htmlRegion="visibleFirst")}),s}const Jw=new ho("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),e$=new ho("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),t$=new ho("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),n$=new ho("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),o$=new ho("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),r$=new ho("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),i$={zoom:{inKeyframes:Jw,outKeyframes:e$},"zoom-big":{inKeyframes:t$,outKeyframes:n$},"zoom-big-fast":{inKeyframes:t$,outKeyframes:n$},"zoom-left":{inKeyframes:new ho("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new ho("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}
1})},"zoom-right":{inKeyframes:new ho("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new ho("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:o$,outKeyframes:r$},"zoom-down":{inKeyframes:new ho("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new ho("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},a$=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=i$[t];return[Hd(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${o}-enter,\n        ${o}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},l$=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:p,sizePopupArrow:f}=e,m=t(a).add(f).add(p).equal(),g=t(a).mul(2).add(f).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:o,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:s,padding:`${Jt(e.calc(d).div(2).equal())} ${Jt(u)}`,color:`var(--ant-tooltip-color, ${r})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),dw(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},Xw(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},s$=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},qw({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Kw(or(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),c$=(e,t=!0)=>{const n=zr("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=or(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[l$(r),a$(e,"zoom-big-fast")]},s$,{resetStyle:!1,injectStyle:t});return n(e)};n.dn(c$);function d$(e,t){const n=cw(t),o=N()({[`${e}-${t}`]:t&&n}),r={},i={},a=(e=>e instanceof tm?e:new tm(e))(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!n&&(r.background=t,r["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}const u$=h.forwardRef((e,t)=>{var n,o;const{prefixCls:r,openClassName:i,getTooltipContainer:a,color:l,overlayInnerStyle:s,children:c,afterOpenChange:d,afterVisibleChange:u,destroyTooltipOnHide:p,destroyOnHidden:f,arrow:m=!0,title:g,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0,motion:x,getPopupContainer:w,placement:$="top",mouseEnterDelay:S=.1,mouseLeaveDelay:E=.1,overlayStyle:k,rootClassName:O,overlayClassName:I,styles:j,classNames:M}=e,P=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),R=!!m,[,L]=Tr(),{getPopupContainer:T,getPrefixCls:z,direction:B,className:H,style:_,classNames:A,styles:D}=Et("tooltip"),F=vC(),W=h.useRef(null),K=()=>{var e;null===(e=W.current)||void 0===e||e.forceAlign()};h.useImperativeHandle(t,()=>{var e,t;return{forceAlign:K,forcePopupAlign:()=>{F.deprecated(!1,"forcePopupAlign","forceAlign"),K()},nativeElement:null===(e=W.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=W.current)||void 0===t?void 0:t.popupElement}});const[V,q]=Lo(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),G=!g&&!v&&0!==g,X=h.useMemo(()=>{var e,t;let n=y;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:y),b||Qw({arrowPointAtCenter:n,autoAdjustOverflow:C,arrowWidth:R?L.sizePopupArrow:0,borderRadius:L.borderRadius,offset:L.marginXXS,visibleFirst:!0})},[y,m,b,L]),U=h.useMemo(()=>0===g?g:v||g||"",[v,g]),Z=h.createElement(yh,{space:!0}
vendor: 4,401 bytes, line 1
1,"function"==typeof U?U():U),Y=z("tooltip",r),Q=z(),J=e["data-popover-inject"];let ee=V;"open"in e||"visible"in e||!G||(ee=!1);const te=h.isValidElement(c)&&!Kp(c)?c:h.createElement("span",null,c),ne=te.props,oe=ne.className&&"string"!=typeof ne.className?ne.className:N()(ne.className,i||`${Y}-open`),[re,ie,ae]=c$(Y,!J),le=d$(Y,l),se=le.arrowStyle,ce=N()(I,{[`${Y}-rtl`]:"rtl"===B},le.className,O,ie,ae,H,A.root,null==M?void 0:M.root),de=N()(A.body,null==M?void 0:M.body),[ue,pe]=wv("Tooltip",P.zIndex),fe=h.createElement(Ww,Object.assign({},P,{zIndex:ue,showArrow:R,placement:$,mouseEnterDelay:S,mouseLeaveDelay:E,prefixCls:Y,classNames:{root:ce,body:de},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se),D.root),_),k),null==j?void 0:j.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},D.body),s),null==j?void 0:j.body),le.overlayStyle)},getTooltipContainer:w||a||T,ref:W,builtinPlacements:X,overlay:Z,visible:ee,onVisibleChange:t=>{var n,o;q(!G&&t),G||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=d?d:u,arrowContent:h.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:Pd(Q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=f?f:!!p}),ee?qp(te,{className:oe}):te);return re(h.createElement(bv.Provider,{value:pe},fe))}),p$=u$;p$._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:r,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=h.useContext(wt),s=l("tooltip",t),[c,d,u]=c$(s),p=d$(s,i),f=p.arrowStyle,m=Object.assign(Object.assign({},a),p.overlayStyle),g=N()(d,u,s,`${s}-pure`,`${s}-placement-${o}`,n,p.className);return c(h.createElement("div",{className:g,style:f},h.createElement("div",{className:`${s}-arrow`}),h.createElement(zw,Object.assign({},e,{className:d,prefixCls:s,overlayInnerStyle:m}),r)))};const f$=p$,m$=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:u,popoverBg:p,titleBorderBottom:f,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},ur(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":u,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:d,color:l,fontWeight:r,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},Xw(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},g$=e=>{const{componentCls:t}=e;return{[t]:If.map(n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},h$=zr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,o=or(e,{popoverBg:t,popoverColor:n});return[m$(o),g$(o),a$(o,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:d,paddingSM:u}=e,p=n-o,f=p/2,m=p/2-t,g=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Kw(e)),qw({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${f}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${c} ${d}`:"none",innerContentPadding:i?`${u}px ${g}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const v$=({title:e,content:t,prefixCls:n})=>e||t?h.createElement(h.Fragment,null,e&&h.createElement("div",{className:`${n}-title`},e),t&&h.createElement("div",{className:`${n}-inner-content`},t)):null,b$=e=>{const{hashId:t,prefixCls:n,className:o,style:r,placement:i="top",title:a,c
1ontent:l,children:s}=e,c=Tw(a),d=Tw(l),u=N()(t,n,`${n}-pure`,`${n}-placement-${i}`,o);return h.createElement("div",{className:u,style:r},h.createElement("div",{className:`${n}-arrow`}),h.createElement(zw,Object.assign({},e,{className:t,prefixCls:n}),s||h.createElement(v$,{prefixCls:n,title:c,content:d})))};const y$=h.forwardRef((e,t)=>{var n,o;const{prefixCls:r,title:i,content:a,overlayClassName:l,placement:s="top",trigger:c="hover",children:d,mouseEnterDelay:u=.1,mouseLeaveDelay:p=.1,onOpenChange:f,overlayStyle:m={},styles:g,classNames:v}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:C,style:x,classNames:w,styles:$}=Et("popover"),S=y("popover",r),[E,k,O]=h$(S),I=y(),j=N()(l,k,O,C,w.root,null==v?void 0:v.root),M=N()(w.body,null==v?void 0:v.body),[P,R]=Lo(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),L=(e,t)=>{R(e,!0),null==f||f(e,t)},T=Tw(i),z=Tw(a);return E(h.createElement(f$,Object.assign({placement:s,trigger:c,mouseEnterDelay:u,mouseLeaveDelay:p},b,{prefixCls:S,classNames:{root:j,body:M},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),x),m),null==g?void 0:g.root),body:Object.assign(Object.assign({},$.body),null==g?void 0:g.body)},ref:t,open:P,onOpenChange:e=>{L(e)},overlay:T||z?h.createElement(v$,{prefixCls:S,title:T,content:z}):null,transitionName:Pd(I,"zoom-big",b.transitionName),"data-popover-inject":!0}),qp(d,{onKeyDown:e=>{var t,n;(0,h.isValidElement)(d)&&(null===(n=null==d?void 0:(t=d.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===gs.ESC&&L(!1,e)})(e)}})))}),C$=y$;C$._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className"]),{getPrefixCls:r}=h.useContext(wt),i=r("popover",t),[a,l,s]=h$(i);return a(h.createElement(b$,Object.assign({},o,{prefixCls:i,hashId:l,className:N()(n,s)})))};const x$=C$,w$=e=>{const{size:t,shape:n}=h.useContext(Nw),o=h.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return h.createElement(Nw.Provider,{value:o},e.children)},$$=Lw;$$.Group=e=>{var t,n,o,r;const{getPrefixCls:i,direction:a}=h.useContext(wt),{prefixCls:l,className:s,rootClassName:c,style:d,maxCount:u,maxStyle:p,size:f,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:b,max:y}=e,C=i("avatar",l),x=`${C}-group`,w=Od(C),[$,S,E]=Pw(C,w),k=N()(x,{[`${x}-rtl`]:"rtl"===a},E,w,s,c,S),O=Mi(b).map((e,t)=>qp(e,{key:`avatar-key-${t}`})),I=(null==y?void 0:y.count)||u,j=O.length;if(I&&I<j){const e=O.slice(0,I),i=O.slice(I,j),a=(null==y?void 0:y.style)||p,l=(null===(t=null==y?void 0:y.popover)||void 0===t?void 0:t.trigger)||v||"hover",s=(null===(n=null==y?void 0:y.popover)||void 0===n?void 0:n.placement)||g||"top",c=Object.assign(Object.assign({content:i},null==y?void 0:y.popover),{classNames:{root:N()(`${x}-popover`,null===(r=null===(o=null==y?void 0:y.popover)||void 0===o?void 0:o.classNames)||void 0===r?void 0:r.root)},placement:s,trigger:l});return e.push(h.createElement(x$,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},c),h.createElement(Lw,{style:a},"+"+(j-I)))),$(h.createElement(w$,{shape:m,size:f},h.createElement("div",{className:k,style:d},e)))}return $(h.createElement(w$,{shape:m,size:f},h.createElement("div",{className:k,style:d},O)))};const S$=$$;const E$=80*Math.PI,k$=e=>{const{dotClassName:t,style:n,hasCircleCls:o}=e;return h.createElement("circle",{className:N()(`${t}-circle`,{[`${t}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},O$=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,o=`${n}-holder`,r=`${o}-hidden`,[i,a]=h.useState(!1);sn(()=>{0!==e&&a(!0)},[0!==e]);const l=Math.max(Math.min(e,100),0);if(!i)return null;const s={strokeDashoffset:""+E$/4,strokeDasharray:`${E$*l/100} ${E$*(100-l)/100}`};return h.createElement("span",{className:N()(o,`${n}-progress`,l<=0&&r)},h.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},h.createElement(k$,{dotClassName:n,hasCircleCls:!0}),h.createElement(k$,{dotClassName:n,style:s})))};function I$(e){const{prefixCls:t,percent:n=0}=e,o=`${t}-dot`,r=`${o}
1-holder`,i=`${r}-hidden`;return h.createElement(h.Fragment,null,h.createElement("span",{className:N()(r,n>0&&i)},h.createElement("span",{className:N()(o,`${t}-dot-spin`)},[1,2,3,4].map(e=>h.createElement("i",{className:`${t}-dot-item`,key:e})))),h.createElement(O$,{prefixCls:t,percent:n}))}function N$(e){var t;const{prefixCls:n,indicator:o,percent:r}=e,i=`${n}-dot`;return o&&h.isValidElement(o)?qp(o,{className:N()(null===(t=o.props)||void 0===t?void 0:t.className,i),percent:r}):h.createElement(I$,{prefixCls:n,percent:r})}const j$=new ho("antSpinMove",{to:{opacity:1}}),M$=new ho("antRotate",{to:{transform:"rotate(405deg)"}}),P$=zr("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}
vendor: 21,428 bytes, line 1
1},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:j$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:M$,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}})(or(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),R$=[[30,.05],[70,.03],[96,.01]];let L$;const T$=e=>{var t;const{prefixCls:n,spinning:o=!0,delay:r=0,className:i,rootClassName:a,size:l="default",tip:s,wrapperClassName:c,style:d,children:u,fullscreen:p=!1,indicator:f,percent:m}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,className:y,style:C,indicator:x}=Et("spin"),w=v("spin",n),[$,S,E]=P$(w),[k,O]=h.useState(()=>o&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(o,r)),I=function(e,t){const[n,o]=h.useState(0),r=h.useRef(null),i="auto"===t;return h.useEffect(()=>(i&&e&&(o(0),r.current=setInterval(()=>{o(e=>{const t=100-e;for(let n=0;n<R$.length;n+=1){const[o,r]=R$[n];if(e<=o)return e+t*r}return e})},200)),()=>{r.current&&(clearInterval(r.current),r.current=null)}),[i,e]),i?n:t}(k,m);h.useEffect(()=>{if(o){const e=function(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,l=r.noLeading,s=void 0!==l&&l,c=r.debounceMode,d=void 0===c?void 0:c,u=!1,p=0;function f(){o&&clearTimeout(o)}function m(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var l=this,c=Date.now()-p;function m(){p=Date.now(),t.apply(l,r)}function g(){o=void 0}u||(s||!d||o||m(),f(),void 0===d&&c>e?s?(p=Date.now(),a||(o=setTimeout(d?g:m,e))):m():!0!==a&&(o=setTimeout(d?g:m,void 0===d?e-c:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),u=!n},m}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}(r,()=>{O(!0)});return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}O(!1)},[r,o]);const j=h.useMemo(()=>void 0!==u&&!p,[u,p]),M=N()(w,y,{[`${w}-sm`]:"small"===l,[`${w}-lg`]:"large"===l,[`${w}-spinning`]:k,[`${w}-show-text`]:!!s,[`${w}-rtl`]:"rtl"===b},i,!p&&a,S,E),P=N()(`${w}-container`,{[`${w}-blur`]:k}),R=null!==(t=null!=f?f:x)&&void 0!==t?t:L$,L=Object.assign(Object.assign({},C),d),T=h.createElement("div",Object.assign({},g,{style:L,className:M,"aria-live":"polite","aria-busy":k}),h.createElement(N$,{prefixCls:w,indicator:R,percent:I}),s&&(j||p)?h.createElement("div",{className:`${w}-text`},s):null);return $(j?h.createElement("div",Object.assign({},g,{className:N()(`${w}-nested-loading`,c,S,E)}),k&&h.createElement("div",{key:"loading"},T),h.createElement("div",{className:P,key:"container"},u)):p?h.createElement("div",{className:N()(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:k},a,S,E)},T):T)};T$.setDefaultIndicator=e=>{L$=e};const z$=T$,B$=e=>{const{lineWidth:t,fontSizeIcon:n,calc:o}=e,r=e.fontSizeSM;return or(e,{tagFontSize:r,tagLineHeight:Jt(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},H$=e=>({defaultBg:new L(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),_$=zr("Tag",e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r,calc:i}=e,a=i(o).sub(n).equal(),l=i(t).sub(n).equal();return{[r]:Object.assign(Object.assign({},ur(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(B$(e)),H$);const A$=h.forwardRef((e,t)=>{const{prefixCls:n,style:o,className:r,checked:i,children:a,icon:l,onChange:s,onClick:c}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:u,tag:p}=h.useContext(wt),f=u("tag",n),[m,g,v]=_$(f),b=N()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:i},null==p?void 0:p.className,r,g,v);return m(h.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},o),null==p?void 0:p.style),className:b,onClick:e=>{null==s||s(!i),null==c||c(e)}}),l,h.createElement("span",null,a)))}),D$=A$,F$=Hr(["Tag","preset"],e=>(e=>dw(e,(t,{textColor:n,lightBorderColor:o,lightColor:r,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:r,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})))(B$(e)),H$),W$=(e,t,n)=>{const o="string"!=typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},K$=Hr(["Tag","status"],e=>{const t=B$(e);return[W$(t,"success","Success"),W$(t,"processing","Info"),W$(t,"error","Error"),W$(t,"warning","Warning")]},H$);const V$=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,style:i,children:a,icon:l,color:s,onClose:c,bordered:d=!0,visible:u}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:f,direction:m,tag:g}=h.useContext(wt),[v,b]=h.useState(!0),y=vt(p,["closeIcon","closable"]);h.useEffect(()=>{void 0!==u&&b(u)},[u]);const C=cw(s),x=function(e){return sw.includes(e)}(s),w=C||x,$=Object.assign(Object.assign({backgroundColor:s&&!w?s:void 0},null==g?void 0:g.style),i),S=f("tag",n),[E,k,O]=_$(S),I=N()(S,null==g?void 0:g.className,{[`${S}-${s}`]:w,[`${S}-has-color`]:s&&!w,[`${S}-hidden`]:!v,[`${S}-rtl`]:"rtl"===m,[`${S}-borderless`]:!d},o,r,k,O),j=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||b(!1)},[,M]=Hv(Tv(e),Tv(g),{closable:!1,closeIconRender:e=>Vp(e,h.createElement("span",{className:`${S}-close-icon`,onClick:j},e),e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),j(t)},className:N()(null==e?void 0:e.className,`${S}-close-icon`)}))}),P="function"==typeof p.onClick||a&&"a"===a.type,R=l||null,L=R?h.createElement(h.Fragment,null,R,a&&h.createElement("span",null,a)):a,T=h.createElement("span",Object.assign({},y,{ref:t,className:I,style:$}),L,M,C&&h.createElement(F$,{key:"preset",prefixCls:S}),x&&h.createElement(K$,{key:"status",prefixCls:S}));return E(P?h.createElement(mf,{component:"Tag"},T):T)}),q$=V$;q$.CheckableTag=D$;const G$=q$;var X$={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},U$=0,Z$=ve();const Y$=function(e){var t=$(h.useState(),2),n=t[0],o=t[1];return h.useEffect(function(){var e;o("rc_progress_".concat((Z$?(e=U$,U$+=1):e="TEST_OR_SSR",e)))},[]),e||n};n.dn(Y$);var Q$=function(e){var t=e.bg,n=e.children;return h.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function J$(e,t){return Object.keys(e).map(function(n){var o=parseFloat(n),r="".concat(Math.floor(o*t),"%");return"".concat(e[n]," ").concat(r)})}var eS=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.color,r=e.gradientId,i=e.radius,a=e.style,l=e.ptg,s=e.strokeLinecap,c=e.strokeWidth,d=e.size,u=e.gapDegree,p=o&&"object"===S(o),f=p?"#FFF":void 0,m=d/2,g=h.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:f,strokeLinecap:s,strokeWidth:c,opacity:0===l?0:1,style:a,ref:t});if(!p)return g;var v="".concat(r,"-conic"),b=u?"".concat(180+u/2,"deg"):"0deg",y=J$(o,(360-u)/360),C=J$(o,1),x="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),w="linear-gradient(to ".concat(u?"bottom":"top",", ").concat(C.join(", "),")");return h.createElement(h.Fragment,null,h.createElement("mask",{id:v},g),h.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},h.createElement(Q$,{bg:w},h.createElement(Q$,{bg:x}))))});const tS=eS;var nS=function(e,t,n,o,r,i,a,l,s,c){var d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,u=n/100*360*((360-i)/360),p=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-o)/100*t;return"round"===s&&100!==o&&(f+=c/2)>=t&&(f=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+d,transform:"rotate(".concat(r+u+p,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},oS=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function rS(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}const iS=function(e){var t,n,o,r,i,a=he(he({},X$),e),l=a.id,s=a.prefixCls,c=a.steps,d=a.strokeWidth,u=a.trailWidth,p=a.gapDegree,f=void 0===p?0:p,m=a.gapPosition,v=a.trailColor,b=a.strokeLinecap,y=a.style,C=a.className,x=a.strokeColor,w=a.percent,$=O(a,oS),E=Y$(l),k="".concat(E,"-gradient"),I=50-d/2,j=2*Math.PI*I,M=f>0?90+f/2:-90,P=j*((360-f)/360),R="object"===S(c)?c:{count:c,gap:2},L=R.count,T=R.gap,z=rS(w),B=rS(x),H=B.find(function(e){return e&&"object"===S(e)}),_=H&&"object"===S(H)?"butt":b,A=nS(j,P,0,100,M,f,m,v,_,d),D=(t=(0,h.useRef)([]),n=(0,h.useRef)(null),(0,h.useEffect)(function(){var e=Date.now(),o=!1;t.current.forEach(function(t){if(t){o=!0;var r=t.style;r.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(r.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current);return h.createElement("svg",g({className:N()("".concat(s,"-circle"),C),viewBox:"0 0 ".concat(100," ").concat(100),style:y,id:l,role:"presentation"},$),!L&&h.createElement("circle",{className:"".concat(s,"-circle-trail"),r:I,cx:50,cy:50,stroke:v,strokeLinecap:_,strokeWidth:u||d,style:A}),L?(o=Math.round(L*(z[0]/100)),r=100/L,i=0,new Array(L).fill(null).map(function(e,t){var n=t<=o-1?B[0]:v,a=n&&"object"===S(n)?"url(#".concat(k,")"):void 0,l=nS(j,P,i,r,M,f,m,n,"butt",d,T);return i+=100*(P-l.strokeDashoffset+T)/P,h.createElement("circle",{key:t,className:"".concat(s,"-circle-path"),r:I,cx:50,cy:50,stroke:a,strokeWidth:d,opacity:1,style:l,ref:function(e){D[t]=e}})})):function(){var e=0;return z.map(function(t,n){var o=B[n]||B[B.length-1],r=nS(j,P,e,t,M,f,m,o,_,d);return e+=t,h.createElement(tS,{key:n,color:o,ptg:t,radius:I,prefixCls:s,gradientId:k,style:r,strokeLinecap:_,strokeWidth:d,gapDegree:f,ref:function(e){D[n]=e},size:100})}).reverse()}())};function aS(e){return!e||e<0?0:e>100?100:e}function lS({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const sS=(e,t,n)=>{var o,r,i,a;let l=-1,s=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,s=null!=o?o:8):"number"==typeof e?[l,s]=[e,e]:[l=14,s=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?s=t||("small"===e?6:8):"number"==typeof e?[l,s]=[e,e]:[l=-1,s=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,s]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,s]=[e,e]:Array.isArray(e)&&(l=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,s=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,s]},cS=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:r,gapDegree:i,width:a=120,type:l,children:s,success:c,size:d=a,steps:u}=e,[p,f]=sS(d,"circle");let{strokeWidth:m}=e;void 0===m&&(m=Math.max((e=>3/e*100)(p),6));const g={width:p,height:f,fontSize:.15*p+6},v=h.useMemo(()=>i||0===i?i:"dashboard"===l?75:void 0,[i,l]),b=(({percent:e,success:t,successPercent:n})=>{const o=aS(lS({success:t,successPercent:n}));return[o,aS(aS(e)-o)]})(e),y=r||"dashboard"===l&&"bottom"||void 0,C="[object Object]"===Object.prototype.toString.call(e.strokeColor),x=(({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||A.green,t||null]})({success:c,strokeColor:e.strokeColor}),w=N()(`${t}-inner`,{[`${t}-circle-gradient`]:C}),$=h.createElement(iS,{steps:u,percent:u?b[1]:b,strokeWidth:m,trailWidth:m,strokeColor:u?x[1]:x,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y}),S=p<=20,E=h.createElement("div",{className:w,style:g},$,!S&&s);return S?h.createElement(f$,{title:s},E):E},dS="--progress-line-stroke-color",uS="--progress-percent",pS=e=>{const t=e?"100%":"-100%";return new ho(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},fS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${dS})`]},height:"100%",width:`calc(1 / var(${uS}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Jt(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:pS(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:pS(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},mS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},gS=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},hS=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},vS=zr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=or(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[fS(n),mS(n),gS(n),hS(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}));const bS=(e,t)=>{const{from:n=A.blue,to:o=A.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${r}, ${(e=>{let t=[];return Object.keys(e).forEach(n=>{const o=Number.parseFloat(n.replace(/%/g,""));
1Number.isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(", ")})(i)})`;return{background:e,[dS]:e}}const a=`linear-gradient(${r}, ${n}, ${o})`;return{background:a,[dS]:a}},yS=e=>{const{prefixCls:t,direction:n,percent:o,size:r,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,percentPosition:d,success:u}=e,{align:p,type:f}=d,m=a&&"string"!=typeof a?bS(a,n):{[dS]:a,background:a},g="square"===l||"butt"===l?0:void 0,v=null!=r?r:[-1,i||("small"===r?6:8)],[b,y]=sS(v,"line",{strokeWidth:i}),C={backgroundColor:c||void 0,borderRadius:g},x=Object.assign(Object.assign({width:`${aS(o)}%`,height:y,borderRadius:g},m),{[uS]:aS(o)/100}),w=lS(e),$={width:`${aS(w)}%`,height:y,borderRadius:g,backgroundColor:null==u?void 0:u.strokeColor},S={width:b<0?"100%":b},E=h.createElement("div",{className:`${t}-inner`,style:C},h.createElement("div",{className:N()(`${t}-bg`,`${t}-bg-${f}`),style:x},"inner"===f&&s),void 0!==w&&h.createElement("div",{className:`${t}-success-bg`,style:$})),k="outer"===f&&"start"===p,O="outer"===f&&"end"===p;return"outer"===f&&"center"===p?h.createElement("div",{className:`${t}-layout-bottom`},E,s):h.createElement("div",{className:`${t}-outer`,style:S},k&&s,E,O&&s)},CS=e=>{const{size:t,steps:n,rounding:o=Math.round,percent:r=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:s,children:c}=e,d=o(n*(r/100)),u=null!=t?t:["small"===t?2:14,i],[p,f]=sS(u,"step",{steps:n,strokeWidth:i}),m=p/n,g=Array.from({length:n});for(let e=0;e<n;e++){const t=Array.isArray(a)?a[e]:a;g[e]=h.createElement("div",{key:e,className:N()(`${s}-steps-item`,{[`${s}-steps-item-active`]:e<=d-1}),style:{backgroundColor:e<=d-1?t:l,width:m,height:f}})}return h.createElement("div",{className:`${s}-steps-outer`},g,c)};const xS=["normal","exception","active","success"],wS=h.forwardRef((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,steps:i,strokeColor:a,percent:l=0,size:s="default",showInfo:c=!0,type:d="line",status:u,format:p,style:f,percentPosition:m={}}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:b="outer"}=m,y=Array.isArray(a)?a[0]:a,C="string"==typeof a||Array.isArray(a)?a:void 0,x=h.useMemo(()=>{if(y){const e="string"==typeof y?y:Object.values(y)[0];return new L(e).isLight()}return!1},[a]),w=h.useMemo(()=>{var t,n;const o=lS(e);return Number.parseInt(void 0!==o?null===(t=null!=o?o:0)||void 0===t?void 0:t.toString():null===(n=null!=l?l:0)||void 0===n?void 0:n.toString(),10)},[l,e.success,e.successPercent]),$=h.useMemo(()=>!xS.includes(u)&&w>=100?"success":u||"normal",[u,w]),{getPrefixCls:S,direction:E,progress:k}=h.useContext(wt),O=S("progress",n),[I,j,M]=vS(O),P="line"===d,R=P&&!i,T=h.useMemo(()=>{if(!c)return null;const t=lS(e);let n;const o=P&&x&&"inner"===b;return"inner"===b||p||"exception"!==$&&"success"!==$?n=(p||(e=>`${e}%`))(aS(l),aS(t)):"exception"===$?n=P?h.createElement(wh,null):h.createElement(wi,null):"success"===$&&(n=P?h.createElement(ob,null):h.createElement(Rx,null)),h.createElement("span",{className:N()(`${O}-text`,{[`${O}-text-bright`]:o,[`${O}-text-${v}`]:R,[`${O}-text-${b}`]:R}),title:"string"==typeof n?n:void 0},n)},[c,l,w,$,d,O,p]);let z;"line"===d?z=i?h.createElement(CS,Object.assign({},e,{strokeColor:C,prefixCls:O,steps:"object"==typeof i?i.count:i}),T):h.createElement(yS,Object.assign({},e,{strokeColor:y,prefixCls:O,direction:E,percentPosition:{align:v,type:b}}),T):"circle"!==d&&"dashboard"!==d||(z=h.createElement(cS,Object.assign({},e,{strokeColor:y,prefixCls:O,progressStatus:$}),T));const B=N()(O,`${O}-status-${$}`,{[`${O}-${"dashboard"===d?"circle":d}`]:"line"!==d,[`${O}
1-inline-circle`]:"circle"===d&&sS(s,"circle")[0]<=20,[`${O}-line`]:R,[`${O}-line-align-${v}`]:R,[`${O}-line-position-${b}`]:R,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${s}`]:"string"==typeof s,[`${O}-rtl`]:"rtl"===E},null==k?void 0:k.className,o,r,j,M);return I(h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==k?void 0:k.style),f),className:B,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},vt(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))}),$S=wS,SS=e=>"function"==typeof(null==e?void 0:e.then),ES=e=>{const{type:t,children:n,prefixCls:o,buttonProps:r,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:d}=e,u=h.useRef(!1),p=h.useRef(null),[f,m]=Po(!1),g=(...e)=>{null==i||i.apply(void 0,e)};return h.useEffect(()=>{let e=null;return a&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[a]),h.createElement(_m,Object.assign({},Mf(t),{onClick:e=>{if(u.current)return;if(u.current=!0,!d)return void g();let t;if(l){if(t=d(e),c&&!SS(t))return u.current=!1,void g(e)}else if(d.length)t=d(i),u.current=!1;else if(t=d(),!SS(t))return void g();(e=>{SS(e)&&(m(!0),e.then((...e)=>{m(!1,!0),g.apply(void 0,e),u.current=!1},e=>{if(m(!1,!0),u.current=!1,!(null==s?void 0:s()))return Promise.reject(e)}))})(t)},loading:f,prefixCls:o},r,{ref:p}),n)},kS=v().createContext({}),{Provider:OS}=kS,IS=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:r,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=(0,h.useContext)(kS);return r?v().createElement(ES,{isSilent:o,actionFn:l,close:(...e)=>{null==a||a.apply(void 0,e),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},NS=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:r,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=(0,h.useContext)(kS);return v().createElement(ES,{isSilent:n,type:a||"primary",actionFn:s,close:(...e)=>{null==t||t.apply(void 0,e),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${r}-btn`},i)};var jS=h.createContext({});function MS(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function PS(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}const RS=h.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var LS={width:0,height:0,overflow:"hidden",outline:"none"},TS={outline:"none"},zS=v().forwardRef(function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,d=e.onClose,u=e.children,p=e.bodyStyle,f=e.bodyProps,m=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,C=e.holderRef,x=e.visible,w=e.forceRender,$=e.width,E=e.he
1ight,k=e.classNames,O=e.styles,I=v().useContext(jS).panel,j=Wo(C,I),M=(0,h.useRef)(),P=(0,h.useRef)();v().useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=M.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===P.current?M.current.focus({preventScroll:!0}):e||t!==M.current||P.current.focus({preventScroll:!0})}}});var R={};void 0!==$&&(R.width=$),void 0!==E&&(R.height=E);var L=l?v().createElement("div",{className:N()("".concat(n,"-footer"),null==k?void 0:k.footer),style:he({},null==O?void 0:O.footer)},l):null,T=i?v().createElement("div",{className:N()("".concat(n,"-header"),null==k?void 0:k.header),style:he({},null==O?void 0:O.header)},v().createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,z=(0,h.useMemo)(function(){return"object"===S(s)&&null!==s?s:s?{closeIcon:null!=c?c:v().createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),B=bg(z,!0),H="object"===S(s)&&s.disabled,_=s?v().createElement("button",g({type:"button",onClick:d,"aria-label":"Close"},B,{className:"".concat(n,"-close"),disabled:H}),z.closeIcon):null,A=v().createElement("div",{className:N()("".concat(n,"-content"),null==k?void 0:k.content),style:null==O?void 0:O.content},_,T,v().createElement("div",g({className:N()("".concat(n,"-body"),null==k?void 0:k.body),style:he(he({},p),null==O?void 0:O.body)},f),u),L);return v().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:j,style:he(he({},r),R),className:N()(n,o),onMouseDown:b,onMouseUp:y},v().createElement("div",{ref:M,tabIndex:0,style:TS},v().createElement(RS,{shouldUpdate:x||w},m?m(A):A)),v().createElement("div",{tabIndex:0,ref:P,style:LS}))});const BS=zS;var HS=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.title,r=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,d=e.ariaId,u=e.onVisibleChanged,p=e.mousePosition,f=(0,h.useRef)(),m=$(h.useState(),2),v=m[0],b=m[1],y={};function C(){var e,t,n,o,r,i=(n={left:(t=(e=f.current).getBoundingClientRect()).left,top:t.top},r=(o=e.ownerDocument).defaultView||o.parentWindow,n.left+=PS(r),n.top+=PS(r,!0),n);b(p&&(p.x||p.y)?"".concat(p.x-i.left,"px ").concat(p.y-i.top,"px"):"")}return v&&(y.transformOrigin=v),h.createElement(Fl,{visible:a,onVisibleChanged:u,onAppearPrepare:C,onEnterPrepare:C,forceRender:l,motionName:c,removeOnLeave:s,ref:f},function(a,l){var s=a.className,c=a.style;return h.createElement(BS,g({},e,{ref:t,title:o,ariaId:d,prefixCls:n,holderRef:l,style:he(he(he({},c),r),y),className:N()(i,s)}))})});HS.displayName="Content";const _S=HS,AS=function(e){var t=e.prefixCls,n=e.style,o=e.visible,r=e.maskProps,i=e.motionName,a=e.className;return h.createElement(Fl,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,o){var i=e.className,l=e.style;return h.createElement("div",g({ref:o,style:he(he({},l),n),className:N()("".concat(t,"-mask"),i,a)},r))})},DS=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,r=e.visible,i=void 0!==r&&r,a=e.keyboard,l=void 0===a||a,s=e.focusTriggerAfterClose,c=void 0===s||s,d=e.wrapStyle,u=e.wrapClassName,p=e.wrapProps,f=e.onClose,m=e.afterOpenChange,v=e.afterClose,b=e.transitionName,y=e.animation,C=e.closable,x=void 0===C||C,w=e.mask,S=void 0===w||w,E=e.maskTransitionName,k=e.maskAnimation,O=e.maskClosable,I=void 0===O||O,j=e.maskStyle,M=e.maskProps,P=e.rootClassName,R=e.classNames,L=e.styles,T=(0,h.useRef)(),z=(0,h.useRef)(),B=(0,h.useRef)(),H=$(h.useState(i),2),_=H[0],A=H[1],D=qa();function F(e){null==f||f(e)}var W=(0,h.useRef)(!1),K=(0,h.useRef)(),V=null;I&&(V=function(e){W.current?W.current=!1:z.current===e.target&&F(e)}),(0,h.useEffect)(function(){i&&(A(!0),be(z.current,document.activeElement)||(T.current=document.activeElement))},[i]),(0,h.useEffect)(function(){return function(){clearTimeout(K.current)}},[]);var q=he(he(he({zIndex:o},d),null==L?void 0:L.wrapper),{},{display:_?null:"none"});return h.createElement("div",g({className:N()("".concat(n,"-root"),P)},bg(e,{data:!0})),h.createElement(AS,{prefixCls:n,visible:S&&i,motionName:MS(n,E,k),style:he(he({zIndex:o},j),null==L?void 0:L.mask),maskProps:M,className:null==R?void 0:R.mask}),h.createElement("div",g({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===gs.ESC)return e.stopPropagation(),void F(e);i&&e.keyCode===gs.TAB&&B.current.changeActive(!e.shiftKey)},className:N()("".concat(n,"-wrap"),u,null==R?void 0:R.wrapper),ref:z,onClick:V,style:q},p),h.createElement(_S,g({},e,{onMouseDown:function(){clearTimeout(K.current),W.current=!0},onMouseUp:function(){K.current=setTimeout(function(){W.current=!1})},ref:B,closable:x,ariaId:D,prefixCls:n,visible:i&&_,onClose:F,onVisibleChanged:function(e){if(e)be(z.current,document.activeElement)||null===(t=B.current)||void 0===t||t.focus();else{if(A(!1),S&&T.current&&c){try{T.current.focus({preventScroll:!0})}catch(e){}T.current=null}_&&(null==v||v())}var t;null==m||m(e)},motionName:MS(n,b,y)}))))};var FS=function(e){var t=e.visible,n=e.getContainer,o=e.forceRender,r=e.destroyOnClose,i=void 0!==r&&r,a=e.afterClose,l=e.panelRef,s=$(h.use
1State(t),2),c=s[0],d=s[1],u=h.useMemo(function(){return{panel:l}},[l]);return h.useEffect(function(){t&&d(!0)},[t]),o||!i||c?h.createElement(jS.Provider,{value:u},h.createElement(Wa,{open:t||o||c,autoDestroy:!1,getContainer:n,autoLock:t||c},h.createElement(DS,g({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),d(!1)}})))):null};FS.displayName="Dialog";const WS=FS,KS=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,h.useContext)(kS);return v().createElement(_m,Object.assign({onClick:n},e),t)},VS=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:r}=(0,h.useContext)(kS);return v().createElement(_m,Object.assign({},Mf(n),{loading:e,onClick:r},t),o)};function qS(e,t){return v().createElement("span",{className:`${e}-close-x`},t||v().createElement(wi,{className:`${e}-close-icon`}))}const GS=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:r,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[d]=Rv("Modal",wC()),u=t||(null==d?void 0:d.okText),p=o||(null==d?void 0:d.cancelText),f=v().useMemo(()=>({confirmLoading:r,okButtonProps:l,cancelButtonProps:s,okTextLocale:u,cancelTextLocale:p,okType:n,onOk:i,onCancel:a}),[r,l,s,u,p,n,i,a]);let m;return"function"==typeof c||void 0===c?(m=v().createElement(v().Fragment,null,v().createElement(KS,null),v().createElement(VS,null)),"function"==typeof c&&(m=c(m,{OkBtn:VS,CancelBtn:KS})),m=v().createElement(OS,{value:f},m)):m=c,v().createElement(hf,{disabled:!1},m)},XS=new ho("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),US=new ho("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),ZS=(e,t=!1)=>{const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[Hd(o,XS,US,e.motionDurationMid,t),{[`\n        ${r}${o}-enter,\n        ${r}${o}-appear\n      `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]};function YS(e){return{position:e,inset:0}}const QS=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},YS("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},YS("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:ZS(e)}]},JS=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Jt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ur(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Jt(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Jt(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},fr(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Jt(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n          ${t}-body,\n          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},eE=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},tE=e=>{const{componentCls:t}=e,n=Zm(e),o=Object.assign({},n);delete o.xs;const r=`--${t.replace(".","")}-`,i=Object.keys(o).map(e=>({[`@media (min-width: ${Jt(o[e])})`]:{width:`var(${r}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Of(Object.keys(n).map((e,t)=>{const o=Object.keys(n)[t-1];return o?{[`${r}${e}-width`]:`var(${r}${o}-width)`}:null})),[{width:`var(${r}xs-width)`}],Of(i))}}},nE=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return or(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},oE=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Jt(e.paddingMD)} ${Jt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Jt(e.padding)} ${Jt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Jt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Jt(e.paddingXS)} ${Jt(e.padding)}`:0,footerBorderTop:e.wireframe?`${Jt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Jt(e.borderRadiusLG)} ${Jt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Jt(2*e.padding)} ${Jt(2*e.padding)} ${Jt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),rE=zr("Modal",e=>{const t=nE(e);return[JS(t),eE(t),QS(t),a$(t,"zoom"),tE(t)]},oE,{unitless:{titleLineHeight:!0}});let iE;ve()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{iE={x:e.pageX,y:e.pageY},setTimeout(()=>{iE=null},100)},!0);const aE=e=>{const{prefixCls:t,className:n,rootClassName:o,open:r,wrapClassName:i,centered:a,getContainer:l,focusTriggerAfterClose:s=!0,style:c,visible:d,width:u=520,footer:p,classNames:f,styles:m,children:g,loading:v,confirmLoading:b,zIndex:y,mousePosition:C,onOk:x,onCancel:w,destroyOnHidden:$,de
1stroyOnClose:S,panelRef:E=null,modalRender:k}=e,O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:I,getPrefixCls:j,direction:M,modal:P}=h.useContext(wt),R=e=>{b||null==w||w(e)},L=j("modal",t),T=j(),z=Od(L),[B,H,_]=rE(L,z),A=N()(i,{[`${L}-centered`]:null!=a?a:null==P?void 0:P.centered,[`${L}-wrap-rtl`]:"rtl"===M}),D=null===p||v?null:h.createElement(GS,Object.assign({},e,{onOk:e=>{null==x||x(e)},onCancel:R})),[F,W,K,V]=Hv(Tv(e),Tv(P),{closable:!0,closeIcon:h.createElement(wi,{className:`${L}-close-icon`}),closeIconRender:e=>qS(L,e)}),q=k?e=>h.createElement("div",{className:`${L}-render`},k(e)):void 0,G=Ev(`.${L}-${k?"render":"content"}`),X=Fo(E,G),[U,Z]=wv("Modal",y),[Y,Q]=h.useMemo(()=>u&&"object"==typeof u?[void 0,u]:[u,void 0],[u]),J=h.useMemo(()=>{const e={};return Q&&Object.keys(Q).forEach(t=>{const n=Q[t];void 0!==n&&(e[`--${L}-${t}-width`]="number"==typeof n?`${n}px`:n)}),e},[L,Q]);return B(h.createElement(yh,{form:!0,space:!0},h.createElement(bv.Provider,{value:Z},h.createElement(WS,Object.assign({width:Y},O,{zIndex:U,getContainer:void 0===l?I:l,prefixCls:L,rootClassName:N()(H,o,_,z),footer:D,visible:null!=r?r:d,mousePosition:null!=C?C:iE,onClose:R,closable:F?Object.assign({disabled:K,closeIcon:W},V):F,closeIcon:W,focusTriggerAfterClose:s,transitionName:Pd(T,"zoom",e.transitionName),maskTransitionName:Pd(T,"fade",e.maskTransitionName),className:N()(H,n,null==P?void 0:P.className),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),c),J),classNames:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.classNames),f),{wrapper:N()(A,null==f?void 0:f.wrapper)}),styles:Object.assign(Object.assign({},null==P?void 0:P.styles),m),panelRef:X,destroyOnClose:null!=$?$:S,modalRender:q}),v?h.createElement(yi,{active:!0,title:!1,paragraph:{rows:4},className:`${L}-body-skeleton`}):g))))},lE=Hr(["Modal","confirm"],e=>(e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Jt(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${Jt(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${d}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},\n        ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})(nE(e)),oE,{order:-1e3});const sE=e=>{const{prefixCls:t,icon:n,okText:o,cancelText:r,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let u=n;if(!n&&null!==n)switch(a){case"info":u=h.createElement(cb,null);break;case"success":u=h.createElement(ob,null);break;case"error":u=h.createElement(wh,null);break;default:u=h.createElement(ab,null)}const p=null!=l?l:"confirm"===a,f=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[m]=Rv("Modal"),g=c||m,v=o||
vendor: 2,610 bytes, line 1
1(p?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=r||(null==g?void 0:g.cancelText),y=h.useMemo(()=>Object.assign({autoFocusButton:f,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:p},d),[f,b,v,p,d]),C=h.createElement(h.Fragment,null,h.createElement(IS,null),h.createElement(NS,null)),x=void 0!==e.title&&null!==e.title,w=`${i}-body`;return h.createElement("div",{className:`${i}-body-wrapper`},h.createElement("div",{className:N()(w,{[`${w}-has-title`]:x})},u,h.createElement("div",{className:`${i}-paragraph`},x&&h.createElement("span",{className:`${i}-title`},e.title),h.createElement("div",{className:`${i}-content`},e.content))),void 0===s||"function"==typeof s?h.createElement(OS,{value:y},h.createElement("div",{className:`${i}-btns`},"function"==typeof s?s(C,{OkBtn:NS,CancelBtn:IS}):C)):s,h.createElement(lE,{prefixCls:t}))},cE=e=>{const{close:t,zIndex:n,maskStyle:o,direction:r,prefixCls:i,wrapClassName:a,rootPrefixCls:l,bodyStyle:s,closable:c=!1,onConfirm:d,styles:u,title:p}=e,f=`${i}-confirm`,m=e.width||416,g=e.style||{},v=void 0===e.mask||e.mask,b=void 0!==e.maskClosable&&e.maskClosable,y=N()(f,`${f}-${e.type}`,{[`${f}-rtl`]:"rtl"===r},e.className),[,C]=Tr(),x=h.useMemo(()=>void 0!==n?n:C.zIndexPopupBase+1e3,[n,C]);return h.createElement(aE,Object.assign({},e,{className:y,wrapClassName:N()({[`${f}-centered`]:!!e.centered},a),onCancel:()=>{null==t||t({triggerCancel:!0}),null==d||d(!1)},title:p,footer:null,transitionName:Pd(l||"","zoom",e.transitionName),maskTransitionName:Pd(l||"","fade",e.maskTransitionName),mask:v,maskClosable:b,style:g,styles:Object.assign({body:s,mask:o},u),width:m,zIndex:x,closable:c}),h.createElement(sE,Object.assign({},e,{confirmPrefixCls:f})))},dE=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:r}=e;return h.createElement(DC,{prefixCls:t,iconPrefixCls:n,direction:o,theme:r},h.createElement(cE,Object.assign({},e)))},uE=[];let pE="";function fE(){return pE}const mE=e=>{var t,n;const{prefixCls:o,getContainer:r,direction:i}=e,a=wC(),l=(0,h.useContext)(wt),s=fE()||l.getPrefixCls(),c=o||`${s}-modal`;let d=r;return!1===d&&(d=void 0),v().createElement(dE,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!=i?i:l.direction,locale:null!==(n=null===(t=l.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:a,getContainer:d}))};function gE(e){const t=HC(),n=document.createDocumentFragment();let o,r,i=Object.assign(Object.assign({},e),{close:s,open:!0});function a(...t){var n,o;t.some(e=>null==e?void 0:e.triggerCancel)&&(null===(n=e.onCancel)||void 0===n||(o=n).call.apply(o,[e,()=>{}
1].concat(Of(t.slice(1)))));for(let e=0;e<uE.length;e++)if(uE[e]===s){uE.splice(e,1);break}r()}const l=e=>{clearTimeout(o),o=setTimeout(()=>{const o=t.getPrefixCls(void 0,fE()),i=t.getIconPrefixCls(),a=t.getTheme(),l=v().createElement(mE,Object.assign({},e)),s=sf();r=s(v().createElement(DC,{prefixCls:o,iconPrefixCls:i,theme:a},"function"==typeof t.holderRender?t.holderRender(l):l),n)})};function s(...t){i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,t)}}),i.visible&&delete i.visible,l(i)}return l(i),uE.push(s),{destroy:s,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function hE(e){return Object.assign(Object.assign({},e),{type:"warning"})}function vE(e){return Object.assign(Object.assign({},e),{type:"info"})}function bE(e){return Object.assign(Object.assign({},e),{type:"success"})}function yE(e){return Object.assign(Object.assign({},e),{type:"error"})}function CE(e){return Object.assign(Object.assign({},e),{type:"confirm"})}const xE=FC(e=>{const{prefixCls:t,className:n,closeIcon:o,closable:r,type:i,title:a,children:l,footer:s}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=h.useContext(wt),u=d(),p=t||d("modal"),f=Od(u),[m,g,v]=rE(p,f),b=`${p}-confirm`;let y={};return y=i?{closable:null!=r&&r,title:"",footer:"",children:h.createElement(sE,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:u,content:l}))}:{closable:null==r||r,title:a,footer:null!==s&&h.createElement(GS,Object.assign({},e)),children:l},m(h.createElement(BS,Object.assign({prefixCls:p,className:N()(g,`${p}-pure-panel`,i&&b,i&&`${b}-${i}`,n,v,f)},c,{closeIcon:qS(p,o),closable:r},y)))});const wE=(e,t)=>{var n,{afterClose:o,config:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["afterClose","config"]);const[a,l]=h.useState(!0),[s,c]=h.useState(r),{direction:d,getPrefixCls:u}=h.useContext(wt),p=u("modal"),f=u(),m=(...e)=>{var t,n;l(!1),e.some(e=>null==e?void 0:e.triggerCancel)&&(null===(t=s.onCancel)||void 0===t||(n=t).call.apply(n,[s,()=>{}].concat(Of(e.slice(1)))))};h.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{const n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const g=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[v]=Rv("Modal",Pv.Modal);return h.createElement(dE,Object.assign({prefixCls:p,rootPrefixCls:f},s,{close:m,open:a,afterClose:()=>{var e;o(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(g?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null==v?void 0:v.cancelText)},i))},$E=h.forwardRef(wE);let SE=0;const EE=h.memo(h.forwardRef((e,t)=>{const[n,o]=(()=>{const[e,t]=h.useState([]);return[e,h.useCallback(e=>(t(t=>[].concat(Of(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return h.useImperativeHandle(t,()=>({patchElement:o}),[o]),h.createElement(h.Fragment,null,n)}));function kE(e){return gE(hE(e))}const OE=aE;OE.useModal=function(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(Of(t).forEach(e=>{e()}),n([]))},[t]);const o=h.useCallback(t=>function(o){var r;SE+=1;const i=h.createRef();let a;const l=new Promise(e=>{a=e});let s,c=!1;const d=h.createElement($E,{key:`modal-${SE}`,config:t(o),ref:i,afterClose:()=>{null==s||s()},isSilent:()=>c,onConfirm:e=>{a(e)}});s=null===(r=e.current)||void 0===r?void 0:r.patchElement(d),s&&uE.push(s);const u={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n(t=>[].concat(Of(t),[e]))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n(e=>[].concat(Of(e),[t]))},then:e=>(c=!0,l.then(e))};return u},[]);return[h.useMemo(()=>({info:o(vE),success:o(bE),error:o(yE),warning:o(hE),confirm:o(CE)}),[o]),h.createElement(EE,{key:"modal-holder",ref:e})]},OE.info=function(e){return gE(vE(e))},OE.success=function(e){return gE(bE(e))},OE.error=function(e){return gE(yE(e))},OE.warning=kE,OE.warn=kE,OE.confirm=function(e){return gE(CE(e))},OE.destroyAll=function(){for(;uE.length;){const e=uE.pop();e&&e()}},OE.config=function({rootPrefixCls:e}){pE=e},OE._InternalPanelDoNotUseOrYouWillBeFired=xE;const IE=OE,NE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}
vendor: 45,062 bytes, line 1
1]},name:"left",theme:"outlined"};var jE=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:NE}))};const ME=h.forwardRef(jE),PE=h.createContext({}),RE=(0,h.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const LE=e=>{const{prefixCls:t,className:n,dashed:o}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=h.useContext(wt),a=i("menu",t),l=N()({[`${a}-item-divider-dashed`]:!!o},n);return h.createElement(Yc,Object.assign({className:l},r))},TE=e=>{var t;const{className:n,children:o,icon:r,title:i,danger:a,extra:l}=e,{prefixCls:s,firstLevel:c,direction:d,disableMenuItemTitleTooltip:u,inlineCollapsed:p}=h.useContext(RE),{siderCollapsed:f}=h.useContext(PE);let m=i;void 0===i?m=c?o:"":!1===i&&(m="");const g={title:m};f||p||(g.title=null,g.open=!1);const v=Mi(o).length;let b=h.createElement(Lc,Object.assign({},vt(e,["title","icon","danger"]),{className:N()({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(r?v+1:v)},n),title:"string"==typeof i?i:void 0}),qp(r,{className:N()(h.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:void 0,`${s}-item-icon`)}),(e=>{const t=null==o?void 0:o[0],n=h.createElement("span",{className:N()(`${s}-title-content`,{[`${s}-title-content-with-extra`]:!!l||0===l})},o);return(!r||h.isValidElement(o)&&"span"===o.type)&&o&&e&&c&&"string"==typeof t?h.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):n})(p));return u||(b=h.createElement(f$,Object.assign({},g,{placement:"rtl"===d?"left":"right",classNames:{root:`${s}-inline-collapsed-tooltip`}}),b)),b};const zE=h.createContext(null),BE=h.forwardRef((e,t)=>{const{children:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]),r=h.useContext(zE),i=h.useMemo(()=>Object.assign(Object.assign({},r),o),[r,o.prefixCls,o.mode,o.selectable,o.rootClassName]),a=function(e){return Vo(e)&&Ko(e)}(n),l=Wo(t,a?qo(n):null);return h.createElement(zE.Provider,{value:i},h.createElement(yh,{space:!0},a?h.cloneElement(n,{ref:l}):n))}),HE=zE,_E=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Jt(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n        > ${t}-item-active,\n        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},AE=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n    ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Jt(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Jt(t)})`}}}}),DE=e=>pr(e),FE=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:u,activeBarBorderWidth:p,motionDurationSlow:f,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:$,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:I,itemActiveBg:N,menuSubMenuBg:j,horizontalItemSelectedColor:M,horizontalItemSelectedBg:P,horizontalItemBorderRadius:R,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:Object.assign({},DE(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},DE(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${Jt(d)} solid transparent`,transition:`border-color ${f} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:d,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:d,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Jt(p)} ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Jt(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(",")}}}}}},WE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,d=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Jt(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:s},[`> ${t}-item,\n            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Jt(n)},[`${t}-item-group-list ${t}-submenu-title,\n            ${t}-submenu-title`]:{paddingInlineEnd:d}}},KE=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:d,motionDurationFast:u,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:o,lineHeight:Jt(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},WE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},WE(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Jt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${u} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n          > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Jt(e.calc(h).div(2).equal())} - ${Jt(c)})`,textOverflow:"clip",[`\n            ${t}-submenu-arrow,\n            ${t}-submenu-expand-icon\n          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:Jt(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},dr),{paddingInline:f})}}]},VE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},qE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Jt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Jt(a)})`}}}}},GE=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:u,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Jt(l)} ${Jt(s)}`,fontSize:b,lineHeight:v,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:h,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),VE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Jt(e.calc(o).mul(2).equal())} ${Jt(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},VE(e)),qE(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS}}}),qE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Jt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Jt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Jt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Jt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Jt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},XE=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:u,colorFillContent:p,lineWidth:f,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:C,padding:x,fontSize:w,controlHeightSM:$,fontSizeLG:S,colorTextLightSolid:E,colorErrorHover:k}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,N=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,j=new L(E).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:d,itemBg:d,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:f,activeBarBorderWidth:I,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:C,itemPaddingInline:x,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:$-w,collapsedIconSize:S,groupTitleFontSize:w,darkItemDisabledColor:new L(E).setA(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:E,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${I}px)`:`calc(100% - ${2*N}px)`}},UE=(e,t=e,n=!0)=>{const o=zr("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:d,darkItemHoverBg:u,darkGroupTitleColor:p,darkItemHoverColor:f,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,C=e.calc(o).div(7).mul(5).equal(),x=or(e,{menuArrowSize:C,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(C).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),w=or(x,{itemColor:r,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:d,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[GE(x),_E(x),KE(x),FE(x,"light"),FE(w,"dark"),AE(x),Sg(x),Xd(x,"slide-up"),Xd(x,"slide-down"),a$(x,"zoom-big")]},XE,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return o(e,t)};n.dn(UE);const ZE=e=>{var t;const{popupClassName:n,icon:o,title:r,theme:i}=e,a=h.useContext(RE),{prefixCls:l,inlineCollapsed:s,theme:c}=a,d=tc();let u;if(o){const e=h.isValidElement(r)&&"span"===r.type;u=h.createElement(h.Fragment,null,qp(o,{className:N()(h.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0,`${l}-item-icon`)}),e?r:h.createElement("span",{className:`${l}-title-content`},r))}else u=s&&!d.length&&r&&"string"==typeof r?h.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):h.createElement("span",{className:`${l}-title-content`},r);const p=h.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[f]=wv("Menu");return h.createElement(RE.Provider,{value:p},h.createElement(Zc,Object.assign({},vt(e,["icon"]),{title:u,popupClassName:N()(l,n,`${l}-${i||c}`),popupStyle:Object.assign({zIndex:f},e.popupStyle)})))};function YE(e){return null===e||!1===e}const QE={item:TE,submenu:ZE,divider:LE},JE=(0,h.forwardRef)((e,t)=>{var n;const o=h.useContext(HE),r=o||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:s}=h.useContext(wt),c=i(),{prefixCls:d,className:u,style:p,theme:f="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:C,selectable:x,onClick:w,overflowedIndicatorPopupClassName:$}=e,S=vt(function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(n=r.validator)||void 0===n||n.call(r,{mode:C});const E=Mo((...e)=>{var t;null==w||w.apply(void 0,e),null===(t=r.onClick)||void 0===t||t.call(r)}),k=r.mode||C,O=null!=x?x:r.selectable,I=null!=v?v:b,j={horizontal:{motionName:`${c}-slide-up`},inline:Rd(c),other:{motionName:`${c}-zoom-big`}},M=i("menu",d||r.prefixCls),P=Od(M),[R,L,T]=UE(M,P,!o),z=N()(`${M}-${f}`,null==s?void 0:s.className,u),B=h.useMemo(()=>{var e,t;if("function"==typeof m||YE(m))return m||null;if("function"==typeof r.expandIcon||YE(r.expandIcon))return r.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||YE(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=m?m:null==r?void 0:r.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return qp(n,{className:N()(`${M}-submenu-expand-icon`,h.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})},[m,null==r?void 0:r.expandIcon,null==s?void 0:s.expandIcon,M]),H=h.useMemo(()=>({prefixCls:M,inlineCollapsed:I||!1,direction:l,firstLevel:!0,theme:f,mode:k,disableMenuItemTitleTooltip:g}),[M,I,l,g,f]);return R(h.createElement(HE.Provider,{value:null},h.createElement(RE.Provider,{value:H},h.createElement(sd,Object.assign({getPopupContainer:a,overflowedIndicator:h.createElement(Ei,null),overflowedIndicatorPopupClassName:N()(M,`${M}-${f}`,$),mode:k,selectable:O,onClick:E},S,{inlineCollapsed:I,style:Object.assign(Object.assign({},null==s?void 0:s.style),p),className:z,prefixCls:M,direction:l,defaultMotions:j,expandIcon:B,ref:t,rootClassName:N()(y,L,r.rootClassName,T,P),_internalComponents:QE})))))}),ek=JE,tk=(0,h.forwardRef)((e,t)=>{const n=(0,h.useRef)(null),o=h.useContext(PE);return(0,h.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),h.createElement(ek,Object.assign({ref:n},e,o))});tk.Item=TE,tk.SubMenu=ZE,tk.Divider=LE,tk.ItemGroup=ed;const nk=tk,ok=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},rk=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:d,dropdownEdgeChildPadding:u,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:_d},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Dd},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ad},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Fd}}},Xw(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},ur(e)),{[n]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},fr(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Jt(c)} ${Jt(m)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Jt(c)} ${Jt(m)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},fr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Jt(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Jt(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Xd(e,"slide-up"),Xd(e,"slide-down"),ax(e,"move-up"),ax(e,"move-down"),a$(e,"zoom-big")]]},ik=zr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=or(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[rk(i),ok(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},qw({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Kw(e)),{resetStyle:!1}),ak=e=>{var t;const{menu:n,arrow:o,prefixCls:r,children:i,trigger:a,disabled:l,dropdownRender:s,popupRender:c,getPopupContainer:d,overlayClassName:u,rootClassName:p,overlayStyle:f,open:m,onOpenChange:g,visible:v,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:x=!0,placement:w="",overlay:$,transitionName:S,destroyOnHidden:E,destroyPopupOnHide:k}=e,{getPopupContainer:O,getPrefixCls:I,direction:j,dropdown:M}=h.useContext(wt),P=c||s;vC();const R=h.useMemo(()=>{const e=I();return void 0!==S?S:w.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[I,w,S]),L=h.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===j?"bottomRight":"bottomLeft",[w,j]),T=I("dropdown",r),z=Od(T),[B,H,_]=ik(T,z),[,A]=Tr(),D=h.Children.only("object"!=typeof(J=i)&&"function"!=typeof J||null===J?h.createElement("span",null,i):i),F=qp(D,{className:N()(`${T}-trigger`,{[`${T}-rtl`]:"rtl"===j},D.props.className),disabled:null!==(t=D.props.disabled)&&void 0!==t?t:l}),W=l?[]:a,K=!!(null==W?void 0:W.includes("contextMenu")),[V,q]=Lo(!1,{value:null!=m?m:v}),G=Mo(e=>{null==g||g(e,{source:"trigger"}),null==b||b(e),q(e)}),X=N()(u,p,H,_,z,null==M?void 0:M.className,{[`${T}-rtl`]:"rtl"===j}),U=Qw({arrowPointAtCenter:"object"==typeof o&&o.pointAtCenter,autoAdjustOverflow:x,offset:A.marginXXS,arrowWidth:o?A.sizePopupArrow:0,borderRadius:A.borderRadius}),Z=Mo(()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==g||g(!1,{source:"menu"}),q(!1))}),[Y,Q]=wv("Dropdown",null==f?void 0:f.zIndex);var J;let ee=h.createElement(Ss,Object.assign({alignPoint:K},vt(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:C,visible:V,builtinPlacements:U,arrow:!!o,overlayClassName:X,prefixCls:T,getPopupContainer:d||O,transitionName:R,trigger:W,overlay:()=>{let e;return e=(null==n?void 0:n.items)?h.createElement(nk,Object.assign({},n)):"function"==typeof $?$():$,P&&(e=P(e)),e=h.Children.only("string"==typeof e?h.createElement("span",null,e):e),h.createElement(BE,{prefixCls:`${T}-menu`,rootClassName:N()(_,z),expandIcon:h.createElement("span",{className:`${T}-menu-submenu-arrow`},"rtl"===j?h.createElement(ME,{className:`${T}-menu-submenu-arrow-icon`}):h.createElement(cg,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Z,validator:({mode:e})=>{}},e)},placement:L,onVisibleChange:G,overlayStyle:Object.assign(Object.assign(Object.assign({},null==M?void 0:M.style),f),{zIndex:Y}),autoDestroy:null!=E?E:k}),F);return Y&&(ee=h.createElement(bv.Provider,{value:Q},ee)),B(ee)},lk=WC(ak,"align",void 0,"dropdown",e=>e);ak._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(lk,Object.assign({},e),h.createElement("span",null));const sk=ak;const ck=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:o}=h.useContext(wt),{prefixCls:r,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:d,children:u,className:p,menu:f,arrow:m,autoFocus:g,overlay:v,trigger:b,align:y,open:C,onOpenChange:x,placement:w,getPopupContainer:$,href:S,icon:E=h.createElement(Ei,null),title:k,buttonsRender:O=e=>e,mouseEnterDelay:I,mouseLeaveDelay:j,overlayClassName:M,overlayStyle:P,destroyOnHidden:R,destroyPopupOnHide:L,dropdownRender:T,popupRender:z}=e,B=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),H=n("dropdown",r),_=`${H}-button`,A={menu:f,arrow:m,autoFocus:g,align:y,disabled:l,trigger:l?[]:b,onOpenChange:x,getPopupContainer:$||t,mouseEnterDelay:I,mouseLeaveDelay:j,overlayClassName:M,overlayStyle:P,destroyOnHidden:R,popupRender:z||T},{compactSize:D,compactItemClassnames:F}=wf(H,o),W=N()(_,F,p);"destroyPopupOnHide"in e&&(A.destroyPopupOnHide=L),"overlay"in e&&(A.overlay=v),"open"in e&&(A.open=C),A.placement="placement"in e?w:"rtl"===o?"bottomLeft":"bottomRight";const K=h.createElement(_m,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:d,href:S,title:k},u),V=h.createElement(_m,{type:i,danger:a,icon:E}),[q,G]=O([K,V]);return h.createElement(rw.Compact,Object.assign({className:W,size:D,block:!0},B),q,h.createElement(sk,Object.assign({},A),G))};ck.__ANT_BUTTON=!0;const dk=ck,uk=sk;uk.Button=dk;const pk=uk,fk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var mk=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:fk}))};const gk=h.forwardRef(mk),hk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var vk=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:hk}))};const bk=h.forwardRef(vk),yk={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var Ck=[10,20,50,100];const xk=function(e){var t=e.pageSizeOptions,n=void 0===t?Ck:t,o=e.locale,r=e.changeSize,i=e.pageSize,a=e.goButton,l=e.quickGo,s=e.rootPrefixCls,c=e.disabled,d=e.buildOptionText,u=e.showSizeChanger,p=e.sizeChangerRender,f=$(v().useState(""),2),m=f[0],g=f[1],h=function(){return!m||Number.isNaN(m)?void 0:Number(m)},b="function"==typeof d?d:function(e){return"".concat(e," ").concat(o.items_per_page)},y=function(e){""!==m&&(e.keyCode!==gs.ENTER&&"click"!==e.type||(g(""),null==l||l(h())))},C="".concat(s,"-options");if(!u&&!l)return null;var x=null,w=null,S=null;return u&&p&&(x=p({disabled:c,size:i,onSizeChange:function(e){null==r||r(Number(e))},"aria-label":o.page_size,className:"".concat(C,"-size-changer"),options:(n.some(function(e){return e.toString()===i.toString()})?n:n.concat([i]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:b(e),value:e}})})),l&&(a&&(S="boolean"==typeof a?v().createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:c,className:"".concat(C,"-quick-jumper-button")},o.jump_to_confirm):v().createElement("span",{onClick:y,onKeyUp:y},a)),w=v().createElement("div",{className:"".concat(C,"-quick-jumper")},o.jump_to,v().createElement("input",{disabled:c,type:"text",value:m,onChange:function(e){g(e.target.value)},onKeyUp:y,onBlur:function(e){a||""===m||(g(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null==l||l(h()))},"aria-label":o.page}),o.page,S)),v().createElement("li",{className:C},x,w)},wk=function(e){var t=e.rootPrefixCls,n=e.page,o=e.active,r=e.className,i=e.showTitle,a=e.onClick,l=e.onKeyPress,s=e.itemRender,c="".concat(t,"-item"),d=N()(c,"".concat(c,"-").concat(n),k(k({},"".concat(c,"-active"),o),"".concat(c,"-disabled"),!n),r),u=s(n,"page",v().createElement("a",{rel:"nofollow"},n));return u?v().createElement("li",{title:i?String(n):null,className:d,onClick:function(){a(n)},onKeyDown:function(e){l(e,a,n)},tabIndex:0},u):null};var $k=function(e,t,n){return n};function Sk(){}function Ek(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function kk(e,t,n){var o=void 0===e?t:e;return Math.floor((n-1)/o)+1}const Ok=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,o=e.selectPrefixCls,r=void 0===o?"rc-select":o,i=e.className,a=e.current,l=e.defaultCurrent,s=void 0===l?1:l,c=e.total,d=void 0===c?0:c,u=e.pageSize,p=e.defaultPageSize,f=void 0===p?10:p,m=e.onChange,b=void 0===m?Sk:m,y=e.hideOnSinglePage,C=e.align,x=e.showPrevNextJumpers,w=void 0===x||x,E=e.showQuickJumper,O=e.showLessItems,I=e.showTitle,j=void 0===I||I,M=e.onShowSizeChange,P=void 0===M?Sk:M,R=e.locale,L=void 0===R?yk:R,T=e.style,z=e.totalBoundaryShowSizeChanger,B=void 0===z?50:z,H=e.disabled,_=e.simple,A=e.showTotal,D=e.showSizeChanger,F=void 0===D?d>B:D,W=e.sizeChangerRender,K=e.pageSizeOptions,V=e.itemRender,q=void 0===V?$k:V,G=e.jumpPrevIcon,X=e.jumpNextIcon,U=e.prevIcon,Z=e.nextIcon,Y=v().useRef(null),Q=$(Lo(10,{value:u,defaultValue:f}),2),J=Q[0],ee=Q[1],te=$(Lo(1,{value:a,defaultValue:s,postState:function(e){return Math.max(1,Math.min(e,kk(void 0,J,d)))}}),2),ne=te[0],oe=te[1],re=$(v().useState(ne),2),ie=re[0],ae=re[1];(0,h.useEffect)(function(){ae(ne)},[ne]);var le=Math.max(1,ne-(O?3:5)),se=Math.min(kk(void 0,J,d),ne+(O?3:5));function ce(t,o){var r=t||v().createElement("button",{type:"button","aria-label":o,className:"".concat(n,"-item-link")});return"function"==typeof t&&(r=v().createElement(t,he({},e))),r}function de(e){var t=e.target.value,n=kk(void 0,J,d);return""===t?t:Number.isNaN(Number(t))?ie:t>=n?n:Number(t)}var ue=d>J&&E;function pe(e){var t=de(e);switch(t!==ie&&ae(t),e.keyCode){case gs.ENTER:fe(t);break;case gs.UP:fe(t-1);break;case gs.DOWN:fe(t+1)}}function fe(e){if(function(e){return Ek(e)&&e!==ne&&Ek(d)&&d>0}(e)&&!H){var t=kk(void 0,J,d),n=e;return e>t?n=t:e<1&&(n=1),n!==ie&&ae(n),oe(n),null==b||b(n,J),n}return ne}var me=ne>1,ge=ne<kk(void 0,J,d);function ve(){me&&fe(ne-1)}function be(){ge&&fe(ne+1)}function ye(){fe(le)}function Ce(){fe(se)}function xe(e,t){if("Enter"===e.key||e.charCode===gs.ENTER||e.keyCode===gs.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}}function we(e){"click"!==e.type&&e.keyCode!==gs.ENTER||fe(ie)}var $e=null,Se=bg(e,{aria:!0,data:!0}),Ee=A&&v().createElement("li",{className:"".concat(n,"-total-text")},A(d,[0===d?0:(ne-1)*J+1,ne*J>d?d:ne*J])),ke=null,Oe=kk(void 0,J,d);if(y&&d<=J)return null;var Ie=[],Ne={rootPrefixCls:n,onClick:fe,onKeyPress:xe,showTitle:j,itemRender:q,page:-1},je=ne-1>0?ne-1:0,Me=ne+1<Oe?ne+1:Oe,Pe=E&&E.goButton,Re="object"===S(_)?_.readOnly:!_,Le=Pe,Te=null;_&&(Pe&&(Le="boolean"==typeof Pe?v().createElement("button",{type:"button",onClick:we,onKeyUp:we},L.jump_to_confirm):v().createElement("span",{onClick:we,onKeyUp:we},Pe),Le=v().createElement("li",{title:j?"".concat(L.jump_to).concat(ne,"/").concat(Oe):null,className:"".concat(n,"-simple-pager")},Le)),Te=v().createElement("li",{title:j?"".concat(ne,"/").concat(Oe):null,className:"".concat(n,"-simple-pager")},Re?ie:v().createElement("input",{type:"text","aria-label":L.jump_to,value:ie,disabled:H,onKeyDown:function(e){e.keyCode!==gs.UP&&e.keyCode!==gs.DOWN||e.preventDefault()},onKeyUp:pe,onChange:pe,onBlur:function(e){fe(de(e))},size:3}),v().createElement("span",{className:"".concat(n,"-slash")},"/"),Oe));var ze=O?1:2;if(Oe<=3+2*ze){Oe||Ie.push(v().createElement(wk,g({},Ne,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Be=1;Be<=Oe;Be+=1)Ie.push(v().createElement(wk,g({},Ne,{key:Be,page:Be,active:ne===Be})))}else{var He=O?L.prev_3:L.prev_5,_e=O?L.next_3:L.next_5,Ae=q(le,"jump-prev",ce(G,"prev page")),De=q(se,"jump-next",ce(X,"next page"));w&&($e=Ae?v().createElement("li",{title:j?He:null,key:"prev",onClick:ye,tabIndex:0,onKeyDown:function(e){xe(e,ye)},className:N()("".concat(n,"-jump-prev"),k({},"".concat(n,"-jump-prev-custom-icon"),!!G))},Ae):null,ke=De?v().createElement("li",{title:j?_e:null,key:"next",onClick:Ce,tabIndex:0,onKeyDown:function(e){xe(e,Ce)},className:N()("".concat(n,"-jump-next"),k({},"".concat(n,"-jump-next-custom-icon"),!!X))},De):null);var Fe=Math.max(1,ne-ze),We=Math.min(ne+ze,Oe);ne-1<=ze&&(We=1+2*ze),Oe-ne<=ze&&(Fe=Oe-2*ze);for(var Ke=Fe;Ke<=We;Ke+=1)Ie.push(v().createElement(wk,g({},Ne,{key:Ke,page:Ke,active:ne===Ke})));if(ne-1>=2*ze&&3!==ne&&(Ie[0]=v().cloneElement(Ie[0],{className:N()("".concat(n,"-item-after-jump-prev"),Ie[0].props.className)}),Ie.unshift($e)),Oe-ne>=2*ze&&ne!==Oe-2){var Ve=Ie[Ie.length-1];Ie[Ie.length-1]=v().cloneElement(Ve,{className:N()("".concat(n,"-item-before-jump-next"),Ve.props.className)}),Ie.push(ke)}1!==Fe&&Ie.unshift(v().createElement(wk,g({},Ne,{key:1,page:1}))),We!==Oe&&Ie.push(v().createElement(wk,g({},Ne,{key:Oe,page:Oe})))}var qe=function(e){var t=q(e,"prev",ce(U,"prev page"));return v().isValidElement(t)?v().cloneElement(t,{disabled:!me}):t}(je);if(qe){var Ge=!me||!Oe;qe=v().createElement("li",{title:j?L.prev_page:null,onClick:ve,tabIndex:Ge?null:0,onKeyDown:function(e){xe(e,ve)},className:N()("".concat(n,"-prev"),k({},"".concat(n,"-disabled"),Ge)),"aria-disabled":Ge},qe)}var Xe,Ue,Ze=function(e){var t=q(e,"next",ce(Z,"next page"));return v().isValidElement(t)?v().cloneElement(t,{disabled:!ge}):t}(Me);Ze&&(_?(Xe=!ge,Ue=me?0:null):Ue=(Xe=!ge||!Oe)?null:0,Ze=v().createElement("li",{title:j?L.next_page:null,onClick:be,tabIndex:Ue,onKeyDown:function(e){xe(e,be)},className:N()("".concat(n,"-next"),k({},"".concat(n,"-disabled"),Xe)),"aria-disabled":Xe},Ze));var Ye=N()(n,i,k(k(k(k(k({},"".concat(n,"-start"),"start"===C),"".concat(n,"-center"),"center"===C),"".concat(n,"-end"),"end"===C),"".concat(n,"-simple"),_),"".concat(n,"-disabled"),H));return v().createElement("ul",g({className:Ye,style:T,ref:Y},Se),Ee,qe,_?Te:Ie,Ze,v().createElement(xk,{locale:L,rootPrefixCls:n,disabled:H,selectPrefixCls:r,changeSize:function(e){var t=kk(e,J,d),n=ne>t&&0!==t?t:ne;ee(e),ae(n),null==P||P(ne,e),oe(n),null==b||b(n,e)},pageSize:J,pageSizeOptions:K,quickGo:ue?fe:null,goButton:Le,showSizeChanger:F,sizeChangerRender:W}))},Ik=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}
vendor: 4,364 bytes, line 1
1-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Nk=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Jt(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Jt(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Jt(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n    &${t}-mini ${t}-prev ${t}-item-link,\n    &${t}-mini ${t}-next ${t}-item-link\n    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Jt(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Jt(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Jt(e.itemSizeSM),input:Object.assign(Object.assign({},Qg(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},jk=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:Jt(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:Jt(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${Jt(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Jt(e.inputOutlineOffset)} 0 ${Jt(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:Jt(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:Jt(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Mk=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}
vendor: 4,152 bytes, line 1
1}},[`\n    ${t}-prev,\n    ${t}-jump-prev,\n    ${t}-jump-next\n    `]:{marginInlineEnd:e.marginXS},[`\n    ${t}-prev,\n    ${t}-next,\n    ${t}-jump-prev,\n    ${t}-jump-next\n    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Jt(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Jt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Jt(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Jg(e)),zg(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Tg(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Pk=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Jt(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Jt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Jt(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Rk=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Jt(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Pk(e)),Mk(e)),jk(e)),Nk(e)),Ik(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Lk=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},fr(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},pr(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:pr(e)}}}},Tk=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBg
1Container,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Rg(e)),zk=e=>or(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Pg(e)),Bk=zr("Pagination",e=>{const t=zk(e);return[Rk(t),Lk(t)]},Tk),Hk=Hr(["Pagination","bordered"],e=>(e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}})(zk(e)),Tk);function _k(e){return(0,h.useMemo)(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}const Ak=e=>{const{align:t,prefixCls:n,selectPrefixCls:o,className:r,rootClassName:i,style:a,size:l,locale:s,responsive:c,showSizeChanger:d,selectComponentClass:u,pageSizeOptions:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=Vm(c),[,g]=Tr(),{getPrefixCls:v,direction:b,showSizeChanger:y,className:C,style:x}=Et("pagination"),w=v("pagination",n),[$,S,E]=Bk(w),k=Jr(l),O="small"===k||!(!m||k||!c),[I]=Rv("Pagination",Ov),j=Object.assign(Object.assign({},I),s),[M,P]=_k(d),[R,L]=_k(y),T=null!=M?M:R,z=null!=P?P:L,B=u||Fx,H=h.useMemo(()=>p?p.map(e=>Number(e)):void 0,[p]),_=h.useMemo(()=>{const e=h.createElement("span",{className:`${w}-item-ellipsis`},"•••");return{prevIcon:h.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},"rtl"===b?h.createElement(cg,null):h.createElement(ME,null)),nextIcon:h.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},"rtl"===b?h.createElement(ME,null):h.createElement(cg,null)),jumpPrevIcon:h.createElement("a",{className:`${w}-item-link`},h.createElement("div",{className:`${w}-item-container`},"rtl"===b?h.createElement(bk,{className:`${w}-item-link-icon`}):h.createElement(gk,{className:`${w}-item-link-icon`}),e)),jumpNextIcon:h.createElement("a",{className:`${w}-item-link`},h.createElement("div",{className:`${w}-item-container`},"rtl"===b?h.createElement(gk,{className:`${w}-item-link-icon`}):h.createElement(bk,{className:`${w}-item-link-icon`}),e))}},[b,w]),A=v("select",o),D=N()({[`${w}-${t}`]:!!t,[`${w}-mini`]:O,[`${w}-rtl`]:"rtl"===b,[`${w}-bordered`]:g.wireframe},C,r,i,S,E),F=Object.assign(Object.assign({},x),a);return $(h.createElement(h.Fragment,null,g.wireframe&&h.createElement(Hk,{prefixCls:w}),h.createElement(Ok,Object.assign({},_,f,{style:F,prefixCls:w,selectPrefixCls:A,className:D,locale:j,pageSizeOptions:H,showSizeChanger:T,sizeChangerRender:e=>{var t;const{disabled:n,size:o,onSizeChange:r,"aria-label":i,className:a,options:l}=e,{className:s,onChange:c}=z||{},d=null===(t=l.find(e=>String(e.value)===String(o)))||void 0===t?void 0:t.value;return h.createElement(B,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:l},z,{value:d,onChange:(e,t)=>
1{null==r||r(e),null==c||c(e,t)},size:O?"small":"middle",className:N()(a,s)}))}}))))},Dk=v().createContext({});Dk.Consumer;var Fk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Wk=v().forwardRef((e,t)=>{const{prefixCls:n,children:o,actions:r,extra:i,styles:a,className:l,classNames:s,colStyle:c}=e,d=Fk(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:u,itemLayout:p}=(0,h.useContext)(Dk),{getPrefixCls:f,list:m}=(0,h.useContext)(wt),g=e=>{var t,n;return N()(null===(n=null===(t=null==m?void 0:m.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null==s?void 0:s[e])},b=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null==m?void 0:m.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null==a?void 0:a[e])},y=f("list",n),C=r&&r.length>0&&v().createElement("ul",{className:N()(`${y}-item-action`,g("actions")),key:"actions",style:b("actions")},r.map((e,t)=>v().createElement("li",{key:`${y}-item-action-${t}`},e,t!==r.length-1&&v().createElement("em",{className:`${y}-item-action-split`})))),x=u?"div":"li",w=v().createElement(x,Object.assign({},d,u?{}:{ref:t},{className:N()(`${y}-item`,{[`${y}-item-no-flex`]:!("vertical"===p?i:!(()=>{let e=!1;return h.Children.forEach(o,t=>{"string"==typeof t&&(e=!0)}),e&&h.Children.count(o)>1})())},l)}),"vertical"===p&&i?[v().createElement("div",{className:`${y}-item-main`,key:"content"},o,C),v().createElement("div",{className:N()(`${y}-item-extra`,g("extra")),key:"extra",style:b("extra")},i)]:[o,C,qp(i,{key:"extra"})]);return u?v().createElement(ig,{ref:t,flex:1,style:c},w):w}),Kk=Wk;Kk.Meta=e=>{var{prefixCls:t,className:n,avatar:o,title:r,description:i}=e,a=Fk(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=(0,h.useContext)(wt),s=l("list",t),c=N()(`${s}-item-meta`,n),d=v().createElement("div",{className:`${s}-item-meta-content`},r&&v().createElement("h4",{className:`${s}-item-meta-title`},r),i&&v().createElement("div",{className:`${s}-item-meta-description`},i));return v().createElement("div",Object.assign({},a,{className:c}),o&&v().createElement("div",{className:`${s}-item-meta-avatar`},o),(r||i)&&d)};const Vk=Kk,qk=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:s}=e,c=Jt(e.calc(s).sub(e.lineWidth).equal());return{[t]:{border:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header`]:{borderRadius:`${c} ${c} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${c} ${c}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${Jt(r)} ${Jt(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},Gk=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${o}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Jt(a)}`}}}}}},Xk=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:a,padding:l,itemPadding:s,colorPrimary:c,itemPaddingSM:d,itemPaddingLG:u,paddingXS:p,margin:f,colorText:m,colorTextDescription:g,motionDurationSlow:h,lineWidth:v,headerBg:b,footerBg:y,emptyTextPadding:C,metaMarginBottom:x,avatarMarginRight:w,titleMarginBottom:$,descriptionFontSize:S}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${Jt(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${h}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:S,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Jt(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Jt(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:$,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${Jt(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:u},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Uk=zr("List",e=>{const t=or(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});
1return[Xk(t),qk(t),Gk(t)]},e=>({contentWidth:220,itemPadding:`${Jt(e.paddingContentVertical)} 0`,itemPaddingSM:`${Jt(e.paddingContentVerticalSM)} ${Jt(e.paddingContentHorizontal)}`,itemPaddingLG:`${Jt(e.paddingContentVerticalLG)} ${Jt(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}));function Zk(e,t){const{pagination:n=!1,prefixCls:o,bordered:r=!1,split:i=!0,className:a,rootClassName:l,style:s,children:c,itemLayout:d,loadMore:u,grid:p,dataSource:f=[],size:m,header:g,footer:v,loading:b=!1,rowKey:y,renderItem:C,locale:x}=e,w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),$=n&&"object"==typeof n?n:{},[S,E]=h.useState($.defaultCurrent||1),[k,O]=h.useState($.defaultPageSize||10),{getPrefixCls:I,direction:j,className:M,style:P}=Et("list"),{renderEmpty:R}=h.useContext(wt),L=e=>(t,o)=>{var r;E(t),O(o),n&&(null===(r=null==n?void 0:n[e])||void 0===r||r.call(n,t,o))},T=L("onChange"),z=L("onShowSizeChange"),B=(e,t)=>{if(!C)return null;let n;return n="function"==typeof y?y(e):y?e[y]:e.key,n||(n=`list-item-${t}`),h.createElement(h.Fragment,{key:n},C(e,t))},H=!!(u||n||v),_=I("list",o),[A,D,F]=Uk(_);let W=b;"boolean"==typeof W&&(W={spinning:W});const K=!!(null==W?void 0:W.spinning);let V="";switch(Jr(m)){case"large":V="lg";break;case"small":V="sm"}const q=N()(_,{[`${_}-vertical`]:"vertical"===d,[`${_}-${V}`]:V,[`${_}-split`]:i,[`${_}-bordered`]:r,[`${_}-loading`]:K,[`${_}-grid`]:!!p,[`${_}-something-after-last-item`]:H,[`${_}-rtl`]:"rtl"===j},M,a,l,D,F),G=Lv({current:1,total:0,position:"bottom"},{total:f.length,current:S,pageSize:k},n||{}),X=Math.ceil(G.total/G.pageSize);G.current=Math.min(G.current,X);const U=n&&h.createElement("div",{className:N()(`${_}-pagination`)},h.createElement(Ak,Object.assign({align:"end"},G,{onChange:T,onShowSizeChange:z})));let Z=Of(f);n&&f.length>(G.current-1)*G.pageSize&&(Z=Of(f).splice((G.current-1)*G.pageSize,G.pageSize));const Y=Object.keys(p||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),Q=Vm(Y),J=h.useMemo(()=>{for(let e=0;e<Fm.length;e+=1){const t=Fm[e];if(Q[t])return t}},[Q]),ee=h.useMemo(()=>{if(!p)return;const e=J&&p[J]?p[J]:p.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0},[JSON.stringify(p),J]);let te=K&&h.createElement("div",{style:{minHeight:53}});if(Z.length>0){const e=Z.map(B);te=p?h.createElement(eg,{gutter:p.gutter},h.Children.map(e,e=>h.createElement("div",{key:null==e?void 0:e.key,style:ee},e))):h.createElement("ul",{className:`${_}-items`},e)}else c||K||(te=h.createElement("div",{className:`${_}-empty-text`},(null==x?void 0:x.emptyText)||(null==R?void 0:R("List"))||h.createElement(YC,{componentName:"List"})));const ne=G.position,oe=h.useMemo(()=>({grid:p,itemLayout:d}),[JSON.stringify(p),d]);return A(h.createElement(Dk.Provider,{value:oe},h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P),s),className:q},w),("top"===ne||"both"===ne)&&U,g&&h.createElement("div",{className:`${_}-header`},g),h.createElement(z$,Object.assign({},W),te,c),v&&h.createElement("div",{className:`${_}-footer`},v),u||("bottom"===ne||"both"===ne)&&U)))}const Yk=h.forwardRef(Zk);Yk.Item=Vk;const Qk=Yk,Jk=({...e})=>(0,t.jsx)(Qk,{...e});Jk.Item=Qk.Item;const eO=Jk;var tO=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function nO(e){return"string"==typeof e}const oO=function(e){var t,n=e.className,o=e.prefixCls,r=e.style,i=e.active,a=e.status,l=e.iconPrefix,s=e.icon,c=(e.wrapperStyle,e.stepNumber),d=e.disabled,u=e.description,p=e.title,f=e.subTitle,m=e.progressDot,v=e.stepIcon,b=e.tailContent,y=e.icons,C=e.stepIndex,x=e.onStepClick,w=e.onClick,$=e.render,S=O(e,tO),E={};x&&!d&&(E.role="button",E.tabIndex=0,E.onClick=function(e){null==w||w(e),x(C)},E.onKeyDown=function(e){var t=e.which;t!==gs.ENTER&&t!==gs.SPACE||x(C)});var I,j,M,P,R=a||"wait",L=N()("".concat(o,"-item"),"".concat(o,"-item-").concat(R),n,(k(t={},"".concat(o,"-item-custom"),s),k(t,"".concat(o,"-item-active"),i),k(t,"".concat(o,"-item-disabled"),!0===d),t)),T=he({},r),z=h.createElement("div",g({},S,{className:L,style:T}),h.createElement("div",g({onClick:w},E,{className:"".concat(o,"-item-container")}),h.createElement("div",{className:"".concat(o,"-item-tail")},b),h.createElement("div",{className:"".concat(o,"-item-icon")},(M=N()("".concat(o,"-icon"),"".concat(l,"icon"),(k(I={},"".concat(l,"icon-").concat(s),s&&nO(s)),k(I,"".concat(l,"icon-check"),!s&&"finish"===a&&(y&&!y.finish||!y)),k(I,"".concat(l,"icon-cross"),!s&&"error"===a&&(y&&!y.error||!y)),I)),P=h.createElement("span",{className:"".concat(o,"-icon-dot")}
1),j=m?"function"==typeof m?h.createElement("span",{className:"".concat(o,"-icon")},m(P,{index:c-1,status:a,title:p,description:u})):h.createElement("span",{className:"".concat(o,"-icon")},P):s&&!nO(s)?h.createElement("span",{className:"".concat(o,"-icon")},s):y&&y.finish&&"finish"===a?h.createElement("span",{className:"".concat(o,"-icon")},y.finish):y&&y.error&&"error"===a?h.createElement("span",{className:"".concat(o,"-icon")},y.error):s||"finish"===a||"error"===a?h.createElement("span",{className:M}):h.createElement("span",{className:"".concat(o,"-icon")},c),v&&(j=v({index:c-1,status:a,title:p,description:u,node:j})),j)),h.createElement("div",{className:"".concat(o,"-item-content")},h.createElement("div",{className:"".concat(o,"-item-title")},p,f&&h.createElement("div",{title:"string"==typeof f?f:void 0,className:"".concat(o,"-item-subtitle")},f)),u&&h.createElement("div",{className:"".concat(o,"-item-description")},u))));return $&&(z=$(z)||null),z};var rO=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function iO(e){var t,n=e.prefixCls,o=void 0===n?"rc-steps":n,r=e.style,i=void 0===r?{}:r,a=e.className,l=(e.children,e.direction),s=void 0===l?"horizontal":l,c=e.type,d=void 0===c?"default":c,u=e.labelPlacement,p=void 0===u?"horizontal":u,f=e.iconPrefix,m=void 0===f?"rc":f,h=e.status,b=void 0===h?"process":h,y=e.size,C=e.current,x=void 0===C?0:C,w=e.progressDot,$=void 0!==w&&w,S=e.stepIcon,E=e.initial,I=void 0===E?0:E,j=e.icons,M=e.onChange,P=e.itemRender,R=e.items,L=void 0===R?[]:R,T=O(e,rO),z="navigation"===d,B="inline"===d,H=B||$,_=B?"horizontal":s,A=B?void 0:y,D=H?"vertical":p,F=N()(o,"".concat(o,"-").concat(_),a,(k(t={},"".concat(o,"-").concat(A),A),k(t,"".concat(o,"-label-").concat(D),"horizontal"===_),k(t,"".concat(o,"-dot"),!!H),k(t,"".concat(o,"-navigation"),z),k(t,"".concat(o,"-inline"),B),t)),W=function(e){M&&x!==e&&M(e)};return v().createElement("div",g({className:F,style:i},T),L.filter(function(e){return e}).map(function(e,t){var n=he({},e),r=I+t;return"error"===b&&t===x-1&&(n.className="".concat(o,"-next-error")),n.status||(n.status=r===x?b:r<x?"finish":"wait"),B&&(n.icon=void 0,n.subTitle=void 0),!n.render&&P&&(n.render=function(e){return P(n,e)}),v().createElement(oO,g({},n,{active:r===x,stepNumber:r+1,stepIndex:r,key:r,prefixCls:o,iconPrefix:m,wrapperStyle:i,progressDot:H,stepIcon:S,icons:j,onStepClick:M&&W}))}))}iO.Step=oO;const aO=iO,lO=e=>{const{componentCls:t,customIconTop:n,customIconSize:o,customIconFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:Jt(o)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},sO=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},cO=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${Jt(i)} ${Jt(e.paddingXXS)} 0`,margin:`0 ${Jt(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${Jt(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${Jt(e.lineWidth)} ${e.lineType} ${r}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${Jt(e.lineWidth)} ${e.lineType} ${r}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${Jt(e.calc(n).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}},dO=e=>{const{componentCls:t,iconSize:n,lineHeight:o,iconSizeSM:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${Jt(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(r).div(2).add(e.controlHeightLG).equal()}}}}}},uO=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},dr),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${Jt(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${Jt(e.lineWidth)} ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${Jt(e.lineWidth)} ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${i}, inset-inline-start ${i}
1`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${Jt(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},pO=e=>{const{antCls:t,componentCls:n,iconSize:o,iconSizeSM:r,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:s,paddingXXS:c}=e,d=e.calc(o).add(e.calc(l).mul(4).equal()).equal(),u=e.calc(r).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:a,insetInlineStart:e.calc(o).div(2).sub(s).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(r).div(2).sub(s).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${Jt(d)} !important`,height:`${Jt(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${Jt(u)} !important`,height:`${Jt(u)} !important`}}}}},fO=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:o,dotCurrentSize:r,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${Jt(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${Jt(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:Jt(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(r).div(2).equal(),width:r,height:r,lineHeight:Jt(r),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(r).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(r).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(r).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${Jt(e.calc(i).add(e.paddingXS).equal())} 0 ${Jt(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(r).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},mO=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},gO=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:o,fontSize:r,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${Jt(e.marginXS)}`,fontSize:o,lineHeight:Jt(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:Jt(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:r},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:Jt(n),transform:"none"}}}}},hO=e=>{const{componentCls:t,iconSizeSM:n,iconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:Jt(o)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(o).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${Jt(e.calc(e.marginXXS).mul(1.5).add(o).equal())} 0 ${Jt(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${Jt(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${Jt(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:Jt(n)}}}}}
1,vO=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,s=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},bO=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`,r=`${o}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container >  ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none",[`&:focus-visible ${r}`]:pr(e)},[`${r}, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:Jt(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${Jt(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:Jt(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},vO("wait",e)),vO("process",e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),vO("finish",e)),vO("error",e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},yO=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},CO=zr("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:o,colorText:r,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:s,colorBorderSecondary:c,colorSplit:d}=e;return(e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),bO(e)),yO(e)),lO(e)),gO(e)),hO(e)),sO(e)),dO(e)),fO(e)),uO(e)),mO(e)),pO(e)),cO(e))}})(or(e,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:d,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:d,waitDotColor:t,finishIconColor:i,finishTitleColor:r,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:o,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:d,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:c}))},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBg
1Container:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));const xO=e=>{const{percent:t,size:n,className:o,rootClassName:r,direction:i,items:a,responsive:l=!0,current:s=0,children:c,style:d}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=Vm(l),{getPrefixCls:f,direction:m,className:g,style:v}=Et("steps"),b=h.useMemo(()=>l&&p?"vertical":i,[l,p,i]),y=Jr(n),C=f("steps",e.prefixCls),[x,w,$]=CO(C),S="inline"===e.type,E=f("",e.iconPrefix),k=function(e,t){if(e)return e;const n=Mi(t).map(e=>{if(h.isValidElement(e)){const{props:t}=e;return Object.assign({},t)}return null});return function(e){return e.filter(e=>e)}(n)}(a,c),O=S?void 0:t,I=Object.assign(Object.assign({},v),d),j=N()(g,{[`${C}-rtl`]:"rtl"===m,[`${C}-with-progress`]:void 0!==O},o,r,w,$),M={finish:h.createElement(Rx,{className:`${C}-finish-icon`}),error:h.createElement(wi,{className:`${C}-error-icon`})};return x(h.createElement(aO,Object.assign({icons:M},u,{style:I,current:s,size:y,items:k,itemRender:S?(e,t)=>e.description?h.createElement(f$,{title:e.description},t):t:void 0,stepIcon:({node:e,status:t})=>{if("process"===t&&void 0!==O){const t="small"===y?32:40;return h.createElement("div",{className:`${C}-progress-icon`},h.createElement($S,{type:"circle",percent:O,size:t,strokeWidth:4,format:()=>null}),e)}return e},direction:b,prefixCls:C,iconPrefix:E,className:j})))};xO.Step=aO.Step;const wO=xO;var $O={},SO="rc-table-internal-hook";function EO(e){var t=h.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,o=e.children,r=h.useRef(n);r.current=n;var i=$(h.useState(function(){return{getValue:function(){return r.current},listeners:new Set}}),1)[0];return sn(function(){(0,Pi.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(n)})})},[n]),h.createElement(t.Provider,{value:i},o)},defaultValue:e}}function kO(e,t){var n=Mo("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),o=h.useContext(null==e?void 0:e.Context),r=o||{},i=r.listeners,a=r.getValue,l=h.useRef();l.current=n(o?a():null==e?void 0:e.defaultValue);
vendor: 4,445 bytes, line 1
1var s=$(h.useState({}),2)[1];return sn(function(){if(o)return i.add(e),function(){i.delete(e)};function e(e){var t=n(e);jt(l.current,t,!0)||s({})}},[o]),l.current}function OO(){var e=h.createContext(null);function t(){return h.useContext(e)}return{makeImmutable:function(n,o){var r=Ko(n),i=function(i,a){var l=r?{ref:a}:{},s=h.useRef(0),c=h.useRef(i);return null!==t()?h.createElement(n,g({},i,l)):(o&&!o(c.current,i)||(s.current+=1),c.current=i,h.createElement(e.Provider,{value:s.current},h.createElement(n,g({},i,l))))};return r?h.forwardRef(i):i},responseImmutable:function(e,n){var o=Ko(e),r=function(n,r){var i=o?{ref:r}:{};return t(),h.createElement(e,g({},n,i))};return o?h.memo(h.forwardRef(r),n):h.memo(r,n)},useImmutableMark:t}}var IO=OO(),NO=(IO.makeImmutable,IO.responseImmutable,IO.useImmutableMark,OO()),jO=NO.makeImmutable,MO=NO.responseImmutable,PO=NO.useImmutableMark;const RO=EO(),LO=h.createContext({renderWithProps:!1});function TO(e){var t=[],n={};return e.forEach(function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,l=i||(o=a,null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function zO(e){return null!=e}function BO(e){var t,n,o,r,i,a,l,s,c=e.component,d=e.children,u=e.ellipsis,p=e.scope,f=e.prefixCls,m=e.className,v=e.align,b=e.record,y=e.render,C=e.dataIndex,x=e.renderIndex,w=e.shouldCellUpdate,E=e.index,O=e.rowType,I=e.colSpan,j=e.rowSpan,M=e.fixLeft,P=e.fixRight,R=e.firstFixLeft,L=e.lastFixLeft,T=e.firstFixRight,z=e.lastFixRight,B=e.appendNode,H=e.additionalProps,_=void 0===H?{}:H,A=e.isSticky,D="".concat(f,"-cell"),F=kO(RO,["supportSticky","allColumnsFixedLeft","rowHoverable"]),W=F.supportSticky,K=F.allColumnsFixedLeft,V=F.rowHoverable,q=$(function(e,t,n,o,r,i){var a=h.useContext(LO),l=Nt(function(){if(zO(o))return[o];var i,l=null==t||""===t?[]:Array.isArray(t)?t:[t],s=Xo(e,l),c=s,d=void 0;if(r){var u=r(s,e,n);!(i=u)||"object"!==S(i)||Array.isArray(i)||h.isValidElement(i)?c=u:(c=u.children,d=u.props,a.renderWithProps=!0)}return[c,d]},[PO(),e,o,t,r,n],function(e,t){if(i){var n=$(e,2)[1],o=$(t,2)[1];return i(o,n)}return!!a.renderWithProps||!jt(e,t,!0)});return l}(b,C,x,d,y,w),2),G=q[0],X=q[1],U={},Z="number"==typeof M&&W,Y="number"==typeof P&&W;Z&&(U.position="sticky",U.left=M),Y&&(U.position="sticky",U.right=P);var Q=null!==(t=null!==(n=null!==(o=null==X?void 0:X.colSpan)&&void 0!==o?o:_.colSpan)&&void 0!==n?n:I)&&void 0!==t?t:1,J=null!==(r=null!==(i=null!==(a=null==X?void 0:X.rowSpan)&&void 0!==a?a:_.rowSpan)&&void 0!==i?i:j)&&void 0!==r?r:1,ee=function(e,t){return kO(RO,function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]})}(E,J),te=$(ee,2),ne=te[0],oe=te[1],re=Mo(function(e){var t;b&&oe(E,E+J-1),null==_||null===(t=_.onMouseEnter)||void 0===t||t.call(_,e)}),ie=Mo(function(e){var t;b&&oe(-1,-1),null==_||null===(t=_.onMouseLeave)||void 0===t||t.call(_,e)});if(0===Q||0===J)return null;var ae=null!==(l=_.title)&&void 0!==l?l:function(e){var t,n=e.ellipsis,o=e.rowType,r=e.children,i=!0===n?{showTitle:!0}:n;return i&&(i.showTitle||"header"===o)&&("string"==typeof r||"number"==typeof r?t=r.toString():h.isValidElement(r)&&"string"==typeof r.props.children&&(t=r.props.children)),t}({rowType:O,ellipsis:u,children:G}),le=N()(D,m,(k(k(k(k(k(k(k(k(k(k(s={},"".concat(D,"-fix-left"),Z&&W),"".concat(D,"-fix-left-first"),R&&W),"".concat(D,"-fix-left-last"),L&&W),"".concat(D,"-fix-left-all"),L&&K&&W),"".concat(D,"-fix-right"),Y&&W),"".concat(D,"-fix-right-first"),T&&W),"".concat(D,"-fix-right-last"),z&&W),"".concat(D,"-ellipsis"),u),"".concat(D,"-with-append"),B),"".concat(D,"-fix-sticky"),(Z||Y)&&A&&W),k(s,"".concat(D,"-row-hover"),!X&&ne)),_.className,null==X?void 0:X.className),se={};v&&(se.textAlign=v);var ce=he(he(he(he({},null==X?void 0:X.style),U),se),_.style),de=G;return"object"!==S(de)||Array.isArray(de)||h.isValidElement(de)||(de=null),u&&(L||T)&&(de=h.createElement("span",{className:"".concat(D,"-content")},de)),h.createElement(c,g({},X,_,{className:le,style:ce,title:ae,scope:p,onMouseEnter:V?re:void 0,onMouseLeave:V?ie:void 0,colSpan:1!==Q?Q:null,rowSpan:1!==J?J:null}),B,de)}const HO=h.memo(BO);function _O(e,t,n,o,r){var i,a,l=n[e]||{},s=n[t]||{};"left"===l.fixed?i=o.left["rtl"===r?t:e]:"right"===s.fixed&&(a=o.right["rtl"===r?e:t]);var c=!1,d=!1,u=!1,p=!1,f=n[t+1],m=n[e-1],g=f&&!f.fixed||m&&!m.fixed||n.every(function(e){return"left"===e.fixed});
1return"rtl"===r?void 0!==i?p=!(m&&"left"===m.fixed)&&g:void 0!==a&&(u=!(f&&"right"===f.fixed)&&g):void 0!==i?c=!(f&&"left"===f.fixed)&&g:void 0!==a&&(d=!(m&&"right"===m.fixed)&&g),{fixLeft:i,fixRight:a,lastFixLeft:c,firstFixRight:d,lastFixRight:u,firstFixLeft:p,isSticky:o.isSticky}}const AO=h.createContext({});var DO=["children"];function FO(e){return e.children}FO.Row=function(e){var t=e.children,n=O(e,DO);return h.createElement("tr",n,t)},FO.Cell=function(e){var t=e.className,n=e.index,o=e.children,r=e.colSpan,i=void 0===r?1:r,a=e.rowSpan,l=e.align,s=kO(RO,["prefixCls","direction"]),c=s.prefixCls,d=s.direction,u=h.useContext(AO),p=u.scrollColumnIndex,f=u.stickyOffsets,m=n+i-1+1===p?i+1:i,v=_O(n,n+m-1,u.flattenColumns,f,d);return h.createElement(HO,g({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:l,colSpan:m,rowSpan:a,render:function(){return o}},v))};const WO=FO,KO=MO(function(e){var t=e.children,n=e.stickyOffsets,o=e.flattenColumns,r=kO(RO,"prefixCls"),i=o.length-1,a=o[i],l=h.useMemo(function(){return{stickyOffsets:n,flattenColumns:o,scrollColumnIndex:null!=a&&a.scrollbar?i:null}},[a,o,i,n]);return h.createElement(AO.Provider,{value:l},h.createElement("tfoot",{className:"".concat(r,"-summary")},t))});var VO=WO,qO=function(e){if(ve()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1};function GO(e,t){return Array.isArray(e)||void 0===t?qO(e):function(e,t){if(!qO(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}function XO(e,t,n,o,r,i,a){var l=i(t,a);e.push({record:t,indent:n,index:a,rowKey:l});var s=null==r?void 0:r.has(l);if(t&&Array.isArray(t[o])&&s)for(var c=0;c<t[o].length;c+=1)XO(e,t[o][c],n+1,o,r,i,c)}function UO(e,t,n,o){var r=h.useMemo(function(){if(null!=n&&n.size){for(var r=[],i=0;i<(null==e?void 0:e.length);i+=1)XO(r,e[i],0,t,n,o,i);return r}return null==e?void 0:e.map(function(e,t){return{record:e,indent:0,index:t,rowKey:o(e,t)}})},[e,t,n,o]);return r}function ZO(e,t,n,o){var r,i=kO(RO,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,l=i.expandableType,s=i.expandedKeys,c=i.childrenColumnName,d=i.onTriggerExpand,u=i.rowExpandable,p=i.onRow,f=i.expandRowByClick,m=i.rowClassName,g="nest"===l,h="row"===l&&(!u||u(e)),v=h||g,b=s&&s.has(t),y=c&&e&&e[c],C=Mo(d),x=null==p?void 0:p(e,n),w=null==x?void 0:x.onClick;"string"==typeof m?r=m:"function"==typeof m&&(r=m(e,n,o));var $=TO(a);return he(he({},i),{},{columnsKey:$,nestExpandable:g,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:C,rowSupportExpand:h,expandable:v,rowProps:he(he({},x),{},{className:N()(r,null==x?void 0:x.className),onClick:function(t){f&&v&&d(e,t);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null==w||w.apply(void 0,[t].concat(o))}})})}const YO=function(e){var t=e.prefixCls,n=e.children,o=e.component,r=e.cellComponent,i=e.className,a=e.expanded,l=e.colSpan,s=e.isEmpty,c=e.stickyOffset,d=void 0===c?0:c,u=kO(RO,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=u.scrollbarSize,f=u.fixHeader,m=u.fixColumn,g=u.componentWidth,v=u.horizonScroll,b=n;return(s?v&&g:m)&&(b=h.createElement("div",{style:{width:g-d-(f&&!s?p:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),h.createElement(o,{className:i,style:{display:a?null:"none"}},h.createElement(HO,{component:r,prefixCls:t,colSpan:l},b))};function QO(e){var t=e.prefixCls,n=e.record,o=e.onExpand,r=e.expanded,i=e.expandable,a="".concat(t,"-row-expand-icon");return i?h.createElement("span",{className:N()(a,k(k({},"".concat(t,"-row-expanded"),r),"".concat(t,"-row-collapsed"),!r)),onClick:function(e){o(n,e),e.stopPropagation()}}):h.createElement("span",{className:N()(a,"".concat(t,"-row-spaced"))})}function JO(e,t,n,o){return"string"==typeof e?e:"function"==typeof e?e(t,n,o):""}function eI(e,t,n,o,r){var i,a,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,c=e.record,d=e.prefixCls,u=e.columnsKey,p=e.fixedInfoList,f=e.expandIconColumnIndex,m=e.nestExpandable,g=e.indentSize,v=e.expandIcon,b=e.expanded,y=e.hasNestChildren,C=e.onTriggerExpand,x=e.expandable,w=e.expandedKeys,$=u[n],S=p[n];n===(f||0)&&m&&(a=h.createElement(h.Fragment,null,h.createElement("span",{style:{paddingLeft:"".concat(g*o,"px")},className:"".concat(d,"-row-indent indent-level-").concat(o)}),v({prefixCls:d,expanded:b,expandable:y,record:c,onExpand:C})));var E=(null===(i=t.onCell)||void 0===i?void 0:i.call(t,c,r))||{};if(s){var k=E.rowSpan,O=void 0===k?1:k;if(x&&O&&n<s){for(var I=O,N=r;N<r+O;N+=1){var j=l[N];w.has(j)&&(I+=1)}E.rowSpan=I}}return{key:$,fixedInfo:S,appendCellNode:a,additionalCellProps:E}}const tI=MO(function(e){var t=e.className,n=e.style,o=e.record,r=e.index,i=e.renderIndex,a=e.rowKey,l=e.rowKeys,s=e.indent,c=void 0===s?0:s,d=e.rowComponent,u=e.cellComponent,p=e.scopeCellComponent,f=e.expandedRowInfo,m=ZO(o,a,r,c),v=m.prefixCls,b=m.flattenColumns,y=m.expandedRowClassName,C=m.expandedRowRender,x=m.rowProps,w=m.expanded,$=m.rowSupportExpand,S=h.useRef(!1);S.current||(S.current=w);var E,O=JO(y,o,r,c),I=h.createElement(d,g({},x,{"data-row-key":a,className:N()(t,"".concat(v,"-row"),"".concat(v,"-row-level-").concat(c),null==x?void 0:x.className,k({},O,c>=1)),style:he(he({},n),null==x?void 0:x.style)}),b.map(function(e,t){var n=e.render,a=e.dataIndex,s=e.className,d=eI(m,e,t,c,r,l,null==f?void 0:f.offset),b=d.key,y=d.fixedInfo,C=d.appendCellNode,x=d.additionalCellProps;return h.createElement(HO,g({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:u,prefixCls:v,key:b,record:o,index:r,renderIndex:i,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:C,additionalProps:x}))}));if($&&(S.current||w)){var j=C(o,r,c+1,w);E=h.createElement(YO,{expanded:w,className:N()("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(c+1),O),prefixCls:v,component:d,cellComponent:u,colSpan:f?f.colSpan:b.length,stickyOffset:null==f?void 0:f.sticky,isEmpty:!1},j)}return h.createElement(h.Fragment,null,I,E)});function nI(e){var t=e.columnKey,n=e.onColumnResize,o=e.prefixCls,r=e.title,i=h.useRef();return sn(function(){i.current&&n(t,i.current.offsetWidth)},[]),h.createElement(pa,{data:t},h.createElement("th",{ref:i,className:"".concat(o,"-measure-cell")},h.createElement("div",{className:"".concat(o,"-measure-cell-content")},r||" ")))}function oI(e){var t=e.prefixCls,n=e.columnsKey,o=e.onColumnResize,r=e.columns,i=h.useRef(null),a=kO(RO,["measureRowRender"]).measureRowRender,l=h.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},h.createElement(pa.Collection,{onBatchResize:function(e){Jl(i.current)&&e.forEach(function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)})}},n.map(function(e){var n=r.find(function(t){return t.key===e}),i=null==n?void 0:n.title,a=h.isValidElement(i)?h.cloneElement(i,{ref:null}):i;return h.createElement(nI,{prefixCls:t,key:e,columnKey:e,onColumnResize:o,title:a})})));return a?a(l):l}const rI=MO(function(e){var t,n=e.data,o=e.measureColumnWidth,r=kO(RO,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),i=r.prefixCls,a=r.getComponent,l=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,d=r.expandedKeys,u=r.childrenColumnName,p=r.emptyNode,f=r.expandedRowOffset,m=void 0===f?0:f,g=r.colWidths,v=UO(n,u,d,c),b=h.useMemo(function(){return v.map(function(e){return e.rowKey})},[v]),y=h.useRef({renderWithProps:!1}),C=h.useMemo(function(){for(var e=s.length-m,t=0,n=0;n<m;n+=1)t+=g[n]||0;return{offset:m,colSpan:e,sticky:t}},[s.length,m,g]),x=a(["body","wrapper"],"tbody"),w=a(["body","row"],"tr"),$=a(["body","cell"],"td"),S=a(["body","cell"],"th");t=n.length?v.map(function(e,t){var n=e.record,o=e.indent,r=e.index,i=e.rowKey;
1return h.createElement(tI,{key:i,rowKey:i,rowKeys:b,record:n,index:t,renderIndex:r,rowComponent:w,cellComponent:$,scopeCellComponent:S,indent:o,expandedRowInfo:C})}):h.createElement(YO,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:w,cellComponent:$,colSpan:s.length,isEmpty:!0},p);var E=TO(s);return h.createElement(LO.Provider,{value:y.current},h.createElement(x,{className:"".concat(i,"-tbody")},o&&h.createElement(oI,{prefixCls:i,columnsKey:E,onColumnResize:l,columns:s}),t))});var iI=["expandable"],aI="RC_TABLE_INTERNAL_COL_DEFINE",lI=["columnType"];const sI=function(e){for(var t=e.colWidths,n=e.columns,o=e.columCount,r=kO(RO,["tableLayout"]).tableLayout,i=[],a=!1,l=(o||n.length)-1;l>=0;l-=1){var s=t[l],c=n&&n[l],d=void 0,u=void 0;if(c&&(d=c[aI],"auto"===r&&(u=c.minWidth)),s||u||d||a){var p=d||{},f=(p.columnType,O(p,lI));i.unshift(h.createElement("col",g({key:l,style:{width:s,minWidth:u}},f))),a=!0}}return i.length>0?h.createElement("colgroup",null,i):null};var cI=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"],dI=h.forwardRef(function(e,t){var n=e.className,o=e.noData,r=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.colGroup,s=e.columCount,c=e.stickyOffsets,d=e.direction,u=e.fixHeader,p=e.stickyTopOffset,f=e.stickyBottomOffset,m=e.stickyClassName,g=e.scrollX,v=e.tableLayout,b=void 0===v?"fixed":v,y=e.onScroll,C=e.children,x=O(e,cI),w=kO(RO,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=w.prefixCls,S=w.scrollbarSize,E=w.isSticky,I=(0,w.getComponent)(["header","table"],"table"),j=E&&!u?0:S,M=h.useRef(null),P=h.useCallback(function(e){Do(t,e),Do(M,e)},[]);h.useEffect(function(){function e(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(y({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}var t=M.current;return null==t||t.addEventListener("wheel",e,{passive:!1}),function(){null==t||t.removeEventListener("wheel",e)}},[]);var R=i[i.length-1],L={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},T=(0,h.useMemo)(function(){return j?[].concat(Ot(r),[L]):r},[j,r]),z=(0,h.useMemo)(function(){return j?[].concat(Ot(i),[L]):i},[j,i]),B=(0,h.useMemo)(function(){var e=c.right,t=c.left;return he(he({},c),{},{left:"rtl"===d?[].concat(Ot(t.map(function(e){return e+j})),[0]):t,right:"rtl"===d?e:[].concat(Ot(e.map(function(e){return e+j})),[0]),isSticky:E})},[j,c,E]),H=function(e,t){return(0,h.useMemo)(function(){for(var n=[],o=0;o<t;o+=1){var r=e[o];if(void 0===r)return null;n[o]=r}return n},[e.join("_"),t])}(a,s),_=(0,h.useMemo)(function(){var e=!H||!H.length||H.every(function(e){return!e});return o||e},[o,H]);return h.createElement("div",{style:he({overflow:"hidden"},E?{top:p,bottom:f}:{}),ref:P,className:N()(n,k({},m,!!m))},h.createElement(I,{style:{tableLayout:b,minWidth:"100%",width:g}},_?l:h.createElement(sI,{colWidths:[].concat(Ot(H),[j]),columCount:s+1,columns:z}),C(he(he({},x),{},{stickyOffsets:B,columns:T,flattenColumns:z}))))});const uI=h.memo(dI),pI=function(e){var t,n=e.cells,o=e.stickyOffsets,r=e.flattenColumns,i=e.rowComponent,a=e.cellComponent,l=e.onHeaderRow,s=e.index,c=kO(RO,["prefixCls","direction"]),d=c.prefixCls,u=c.direction;l&&(t=l(n.map(function(e){return e.column}),s));var p=TO(n.map(function(e){return e.column}));return h.createElement(i,t,n.map(function(e,t){var n,i=e.column,l=_O(e.colStart,e.colEnd,r,o,u);return i&&i.onHeaderCell&&(n=e.column.onHeaderCell(i)),h.createElement(HO,g({},e,{scope:i.title?e.colSpan>1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:d,key:p[t]},l,{additionalProps:n,rowType:"header"}))}))},fI=MO(function(e){var t=e.stickyOffsets,n=e.columns,o=e.flattenColumns,r=e.onHeaderRow,i=kO(RO,["prefixCls","getComponent"]),a=i.prefixCls,l=i.getComponent,s=h.useMemo(function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];
1var i=o,a=n.filter(Boolean).map(function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,r+1).reduce(function(e,t){return e+t},0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a});return a}(e,0);for(var n=t.length,o=function(e){t[e].forEach(function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)})},r=0;r<n;r+=1)o(r);return t}(n)},[n]),c=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),u=l(["header","cell"],"th");return h.createElement(c,{className:"".concat(a,"-thead")},s.map(function(e,n){return h.createElement(pI,{key:n,flattenColumns:o,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:u,onHeaderRow:r,index:n})}))});function mI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var gI=["children"],hI=["fixed"];function vI(e){return Mi(e).filter(function(e){return h.isValidElement(e)}).map(function(e){var t=e.key,n=e.props,o=n.children,r=he({key:t},O(n,gI));return o&&(r.children=vI(o)),r})}function bI(e){return e.filter(function(e){return e&&"object"===S(e)&&!e.hidden}).map(function(e){var t=e.children;return t&&t.length>0?he(he({},e),{},{children:bI(t)}):e})}function yI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter(function(e){return e&&"object"===S(e)}).reduce(function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),l=n.children;return l&&l.length>0?[].concat(Ot(e),Ot(yI(l,a).map(function(e){var t;return he(he({},e),{},{fixed:null!==(t=e.fixed)&&void 0!==t?t:i})}))):[].concat(Ot(e),[he(he({key:a},n),{},{fixed:i})])},[])}const CI=function(e,t){var n=e.prefixCls,o=e.columns,r=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,s=e.getRowKey,c=e.onTriggerExpand,d=e.expandIcon,u=e.rowExpandable,p=e.expandIconColumnIndex,f=e.expandedRowOffset,m=void 0===f?0:f,g=e.direction,v=e.expandRowByClick,b=e.columnWidth,y=e.fixed,C=e.scrollWidth,x=e.clientWidth,w=h.useMemo(function(){return bI((o||vI(r)||[]).slice())},[o,r]),S=h.useMemo(function(){if(i){var e=w.slice();if(!e.includes($O)){var t=p||0,o=0===t&&"right"===y?w.length:t;o>=0&&e.splice(o,0,$O)}var r=e.indexOf($O);e=e.filter(function(e,t){return e!==$O||t===r});var f,g=w[r];f=y||(g?g.fixed:null);var C=k(k(k(k(k(k({},aI,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",f),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",function(e,t,o){var r=s(t,o),i=a.has(r),l=!u||u(t),p=d({prefixCls:n,expanded:i,expandable:l,record:t,onExpand:c});return v?h.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p});return e.map(function(e,t){var n=e===$O?C:e;return t<m?he(he({},n),{},{fixed:n.fixed||"left"}):n})}return w.filter(function(e){return e!==$O})},[i,w,s,a,d,g,m]),E=h.useMemo(function(){var e=S;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,S,g]),I=h.useMemo(function(){return"rtl"===g?function(e){return e.map(function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),he({fixed:n},O(e,hI))})}(yI(E)):yI(E)},[E,g,C]),N=h.useMemo(function(){for(var e=-1,t=I.length-1;t>=0;t-=1){var n=I[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=I[o].fixed;if("left"!==r&&!0!==r)return!0}var i=I.findIndex(function(e){return"right"===e.fixed});if(i>=0)for(var a=i;a<I.length;a+=1)if("right"!==I[a].fixed)return!0;return!1},[I]),j=function(e,t,n){return h.useMemo(function(){if(t&&t>0){var o=0,r=0;e.forEach(function(e){var n=mI(t,e.width);n?o+=n:r+=1});var i=Math.max(t,n),a=Math.max(i-o,r),l=r,s=a/r,c=0,d=e.map(function(e){var n=he({},e),o=mI(t,n.width);if(o)n.width=o;else{var r=Math.floor(s);n.width=1===l?a:r,a-=r,l-=1}return c+=n.width,n});if(c<i){var u=i/c;a=i,d.forEach(function(e,t){var n=Math.floor(e.width*u);e.width=t===d.length-1?a:n,a-=n})}return[d,Math.max(c,i)]}return[e,t]},[e,t,n])}(I,C,x),M=$(j,2),P=M[0],R=M[1];return[E,P,R,N]};var xI=ve()?window:null;const wI=function(e){var t=e.className,n=e.children;return h.createElement("div",{className:t},n)};function $I(e,t,n,o){var r=Ri().unstable_batchedUpdates?function(e){Ri().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}function SI(e){var t=Ti(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var EI=function(e,t){var n,o,r,i,a,l,s,c=e.scrollBodyRef,d=e.onScroll,u=e.offsetScroll,p=e.container,f=e.direction,m=kO(RO,"prefixCls"),g=(null===(n=c.current)||void 0===n?void 0:n.scrollWidth)||0,v=(null===(o=c.current)||void 0===o?void 0:o.clientWidth)||0,b=g&&v*(v/g),y=h.useRef(),C=(r={scrollLeft:0,isHiddenScrollBar:!0},i=(0,h.useRef)(r),a=$((0,h.useState)({}),2)[1],l=(0,h.useRef)(null),s=(0,h.useRef)([]),(0,h.useEffect)(function(){return function(){l.current=null}},[]),[i.current,function(e){s.current.push(e);var t=Promise.resolve();l.current=t,t.then(function(){if(l.current===t){var e=s.current,n=i.current;s.current=[],e.forEach(function(e){i.current=e(i.current)}),l.current=null,n!==i.current&&a({})}})}]),x=$(C,2),w=x[0],S=x[1],E=h.useRef({delta:0,x:0}),O=$(h.useState(!1),2),I=O[0],j=O[1],M=h.useRef(null);h.useEffect(function(){return function(){ya.cancel(M.current)}},[]);var P=function(){j(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(I&&0!==n){var o=E.current.x+e.pageX-E.current.x-E.current.delta,r="rtl"===f;o=Math.max(r?b-v:0,Math.min(r?0:v-b,o)),(!r||Math.abs(o)+Math.abs(b)<v)&&(d({scrollLeft:o/v*(g+2)}
1),E.current.x=e.pageX)}else I&&j(!1)},L=function(){ya.cancel(M.current),M.current=ya(function(){if(c.current){var e=SI(c.current).top,t=e+c.current.offsetHeight,n=p===window?document.documentElement.scrollTop+window.innerHeight:SI(p).top+p.clientHeight;S(function(o){return he(he({},o),{},{isHiddenScrollBar:t-za()<=n||e>=n-u})})}})},T=function(e){S(function(t){return he(he({},t),{},{scrollLeft:g?e/g*v:0})})};return h.useImperativeHandle(t,function(){return{setScrollLeft:T,checkScrollBarVisible:L}}),h.useEffect(function(){var e=$I(document.body,"mouseup",P,!1),t=$I(document.body,"mousemove",R,!1);return L(),function(){e.remove(),t.remove()}},[b,I]),h.useEffect(function(){if(c.current){for(var e=[],t=Ti(c.current);t;)e.push(t),t=t.parentElement;return e.forEach(function(e){return e.addEventListener("scroll",L,!1)}),window.addEventListener("resize",L,!1),window.addEventListener("scroll",L,!1),p.addEventListener("scroll",L,!1),function(){e.forEach(function(e){return e.removeEventListener("scroll",L)}),window.removeEventListener("resize",L),window.removeEventListener("scroll",L),p.removeEventListener("scroll",L)}}},[p]),h.useEffect(function(){w.isHiddenScrollBar||S(function(e){var t=c.current;return t?he(he({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[w.isHiddenScrollBar]),g<=v||!b||w.isHiddenScrollBar?null:h.createElement("div",{style:{height:za(),width:v,bottom:u},className:"".concat(m,"-sticky-scroll")},h.createElement("div",{onMouseDown:function(e){e.persist(),E.current.delta=e.pageX-w.scrollLeft,E.current.x=0,j(!0),e.preventDefault()},ref:y,className:N()("".concat(m,"-sticky-scroll-bar"),k({},"".concat(m,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(b,"px"),transform:"translate3d(".concat(w.scrollLeft,"px, 0, 0)")}}))};const kI=h.forwardRef(EI);var OI="rc-table",II=[],NI={};function jI(){return"No Data"}function MI(e,t){var n=he({rowKey:"key",prefixCls:OI,emptyText:jI},e),o=n.prefixCls,r=n.className,i=n.rowClassName,a=n.style,l=n.data,s=n.rowKey,c=n.scroll,d=n.tableLayout,u=n.direction,p=n.title,f=n.footer,m=n.summary,v=n.caption,b=n.id,y=n.showHeader,C=n.components,x=n.emptyText,w=n.onRow,E=n.onHeaderRow,I=n.measureRowRender,j=n.onScroll,M=n.internalHooks,P=n.transformColumns,R=n.internalRefs,L=n.tailor,T=n.getContainerWidth,z=n.sticky,B=n.rowHoverable,H=void 0===B||B,_=l||II,A=!!_.length,D=M===SO,F=h.useCallback(function(e,t){return Xo(C,e)||t},[C]),W=h.useMemo(function(){return"function"==typeof s?s:function(e){return e&&e[s]}}
1,[s]),K=F(["body"]),V=function(){var e=$(h.useState(-1),2),t=e[0],n=e[1],o=$(h.useState(-1),2),r=o[0],i=o[1];return[t,r,h.useCallback(function(e,t){n(e),i(t)},[])]}(),q=$(V,3),G=q[0],X=q[1],U=q[2],Z=$(function(e,t,n){var o=function(e){var t,n=e.expandable,o=O(e,iI);return!1===(t="expandable"in e?he(he({},o),n):o).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),r=o.expandIcon,i=o.expandedRowKeys,a=o.defaultExpandedRowKeys,l=o.defaultExpandAllRows,s=o.expandedRowRender,c=o.onExpand,d=o.onExpandedRowsChange,u=r||QO,p=o.childrenColumnName||"children",f=h.useMemo(function(){return s?"row":!!(e.expandable&&e.internalHooks===SO&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(e){return e&&"object"===S(e)&&e[p]}))&&"nest"},[!!s,t]),m=h.useState(function(){return a||(l?function(e,t,n){var o=[];return function e(r){(r||[]).forEach(function(r,i){o.push(t(r,i)),e(r[n])})}(e),o}(t,n,p):[])}),g=$(m,2),v=g[0],b=g[1],y=h.useMemo(function(){return new Set(i||v||[])},[i,v]),C=h.useCallback(function(e){var o,r=n(e,t.indexOf(e)),i=y.has(r);i?(y.delete(r),o=Ot(y)):o=[].concat(Ot(y),[r]),b(o),c&&c(!i,e),d&&d(o)},[n,y,t,c,d]);return[o,f,y,u,p,C]}(n,_,W),6),Y=Z[0],Q=Z[1],J=Z[2],ee=Z[3],te=Z[4],ne=Z[5],oe=null==c?void 0:c.x,re=$(h.useState(0),2),ie=re[0],ae=re[1],le=$(CI(he(he(he({},n),Y),{},{expandable:!!Y.expandedRowRender,columnTitle:Y.columnTitle,expandedKeys:J,getRowKey:W,onTriggerExpand:ne,expandIcon:ee,expandIconColumnIndex:Y.expandIconColumnIndex,direction:u,scrollWidth:D&&L&&"number"==typeof oe?oe:null,clientWidth:ie}),D?P:null),4),se=le[0],ce=le[1],de=le[2],ue=le[3],pe=null!=de?de:oe,fe=h.useMemo(function(){return{columns:se,flattenColumns:ce}},[se,ce]),me=h.useRef(),ge=h.useRef(),ve=h.useRef(),be=h.useRef();h.useImperativeHandle(t,function(){return{nativeElement:me.current,scrollTo:function(e){var t,n;if(ve.current instanceof HTMLElement){var o=e.index,r=e.top,i=e.key;if("number"!=typeof(n=r)||Number.isNaN(n)){var a,l=null!=i?i:W(_[o]);null===(a=ve.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var s;null===(s=ve.current)||void 0===s||s.scrollTo({top:r})}}else null!==(t=ve.current)&&void 0!==t&&t.scrollTo&&ve.current.scrollTo(e)}}});var ye,Ce,xe,we=h.useRef(),$e=$(h.useState(!1),2),Se=$e[0],Ee=$e[1],ke=$(h.useState(!1),2),Oe=ke[0],Ie=ke[1],Ne=$(h.useState(new Map),2),je=Ne[0],Me=Ne[1],Pe=TO(ce).map(function(e){return je.get(e)}),Re=h.useMemo(function(){return Pe},[Pe.join("_")]),Le=function(e,t,n){return(0,h.useMemo)(function(){var o=t.length,r=function(n,o,r){for(var i=[],a=0,l=n;l!==o;l+=r)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=r(0,o,1),a=r(o-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}},[e,t,n])}(Re,ce,u),Te=c&&zO(c.y),ze=c&&zO(pe)||Boolean(Y.fixed),Be=ze&&ce.some(function(e){return e.fixed}),He=h.useRef(),_e=function(e,t){var n="object"===S(e)?e:{},o=n.offsetHeader,r=void 0===o?0:o,i=n.offsetSummary,a=void 0===i?0:i,l=n.offsetScroll,s=void 0===l?0:l,c=n.getContainer,d=(void 0===c?function(){return xI}:c)()||xI,u=!!e;return h.useMemo(function(){return{isSticky:u,stickyClassName:u?"".concat(t,"-sticky-holder"):"",offsetHeader:r,offsetSummary:a,offsetScroll:s,container:d}},[u,s,r,a,t,d])}(z,o),Ae=_e.isSticky,De=_e.offsetHeader,Fe=_e.offsetSummary,We=_e.offsetScroll,Ke=_e.stickyClassName,Ve=_e.container,qe=h.useMemo(function(){return null==m?void 0:m(_)},[m,_]),Ge=(Te||Ae)&&h.isValidElement(qe)&&qe.type===WO&&qe.props.fixed;Te&&(Ce={overflowY:A?"scroll":"auto",maxHeight:c.y}),ze&&(ye={overflowX:"auto"},Te||(Ce={overflowY:"hidden"}),xe={width:!0===pe?"auto":pe,minWidth:"100%"});var Xe=h.useCallback(function(e,t){Me(function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n})},[]),Ue=$(function(){var e=(0,h.useRef)(null),t=(0,h.useRef)();function n(){window.clearTimeout(t.current)}return(0,h.useEffect)(function(){return n},[]),[function(o){e.current=o,n(),t.current=window.setTimeout(function(){e.current=null,t.current=void 0},100)},function(){return e.current}]}(),2),Ze=Ue[0],Ye=Ue[1];function Qe(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(function(){t.scrollLeft=e},0)))}var Je=Mo(function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===u,i="number"==typeof o?o:n.scrollLeft,a=n||NI;Ye()&&Ye()!==a||(Ze(a),Qe(i,ge.current),Qe(i,ve.current),Qe(i,we.current),Qe(i,null===(t=He.current)||void 0===t?void 0:t.setScrollLeft));var l=n||ge.current;if(l){var s=D&&L&&"number"==typeof pe?pe:l.scrollWidth,c=l.clientWidth;if(s===c)return Ee(!1),void Ie(!1);r?(Ee(-i<s-c),Ie(-i>0)):(Ee(i>0),Ie(i<s-c))}}),et=Mo(function(e){Je(e),null==j||j(e)}),tt=function(){var e;ze&&ve.current?Je({currentTarget:Ti(ve.current),scrollLeft:null===(e=ve.current)||void 0===e?void 0:e.scrollLeft}):(Ee(!1),Ie(!1))},nt=h.useRef(!1);h.useEffect(function(){nt.current&&tt()},[ze,l,se.length]),h.useEffect(function(){nt.current=!0},[]);var ot=$(h.useState(0),2),rt=ot[0],it=ot[1],at=$(h.useState(!0),2),lt=at[0],st=at[1];sn(function(){L&&D||(ve.current instanceof Element?it(Ba(ve.current).width):it(Ba(be.current).width)),st(GO("position","sticky"))}
1,[]),h.useEffect(function(){D&&R&&(R.body.current=ve.current)});var ct,dt=h.useCallback(function(e){return h.createElement(h.Fragment,null,h.createElement(fI,e),"top"===Ge&&h.createElement(KO,e,qe))},[Ge,qe]),ut=h.useCallback(function(e){return h.createElement(KO,e,qe)},[qe]),pt=F(["table"],"table"),ft=h.useMemo(function(){return d||(Be?"max-content"===pe?"auto":"fixed":Te||Ae||ce.some(function(e){return e.ellipsis})?"fixed":"auto")},[Te,Be,ce,d,Ae]),mt={colWidths:Re,columCount:ce.length,stickyOffsets:Le,onHeaderRow:E,fixHeader:Te,scroll:c},gt=h.useMemo(function(){return A?null:"function"==typeof x?x():x},[A,x]),ht=h.createElement(rI,{data:_,measureColumnWidth:Te||ze||Ae}),vt=h.createElement(sI,{colWidths:ce.map(function(e){return e.width}),columns:ce}),bt=null!=v?h.createElement("caption",{className:"".concat(o,"-caption")},v):void 0,yt=bg(n,{data:!0}),Ct=bg(n,{aria:!0});if(Te||Ae){var xt;"function"==typeof K?(xt=K(_,{scrollbarSize:rt,ref:ve,onScroll:Je}),mt.colWidths=ce.map(function(e,t){var n=e.width,o=t===ce.length-1?n-rt:n;return"number"!=typeof o||Number.isNaN(o)?0:o})):xt=h.createElement("div",{style:he(he({},ye),Ce),onScroll:et,ref:ve,className:N()("".concat(o,"-body"))},h.createElement(pt,g({style:he(he({},xe),{},{tableLayout:ft})},Ct),bt,vt,ht,!Ge&&qe&&h.createElement(KO,{stickyOffsets:Le,flattenColumns:ce},qe)));var wt=he(he(he({noData:!_.length},mt),fe),{},{direction:u,stickyClassName:Ke,scrollX:pe,tableLayout:ft,onScroll:Je});ct=h.createElement(h.Fragment,null,!1!==y&&h.createElement(uI,g({},wt,{stickyTopOffset:De,className:"".concat(o,"-header"),ref:ge,colGroup:vt}),dt),xt,Ge&&"top"!==Ge&&h.createElement(uI,g({},wt,{stickyBottomOffset:Fe,className:"".concat(o,"-summary"),ref:we,colGroup:vt}),ut),Ae&&ve.current&&ve.current instanceof Element&&h.createElement(kI,{ref:He,offsetScroll:We,scrollBodyRef:ve,onScroll:Je,container:Ve,direction:u}))}else ct=h.createElement("div",{style:he(he({},ye),Ce),className:N()("".concat(o,"-content")),onScroll:Je,ref:ve},h.createElement(pt,g({style:he(he({},xe),{},{tableLayout:ft})},Ct),bt,vt,!1!==y&&h.createElement(fI,g({},mt,fe)),ht,qe&&h.createElement(KO,{stickyOffsets:Le,flattenColumns:ce},qe)));var $t=h.createElement("div",g({className:N()(o,r,k(k(k(k(k(k(k(k(k(k({},"".concat(o,"-rtl"),"rtl"===u),"".concat(o,"-ping-left"),Se),"".concat(o,"-ping-right"),Oe),"".concat(o,"-layout-fixed"),"fixed"===d),"".concat(o,"-fixed-header"),Te),"".concat(o,"-fixed-column"),Be),"".concat(o,"-fixed-column-gapped"),Be&&ue),"".concat(o,"-scroll-horizontal"),ze),"".concat(o,"-has-fix-left"),ce[0]&&ce[0].fixed),"".concat(o,"-has-fix-right"),ce[ce.length-1]&&"right"===ce[ce.length-1].fixed)),style:a,id:b,ref:me},yt),p&&h.createElement(wI,{className:"".concat(o,"-title")},p(_)),h.createElement("div",{ref:be,className:"".concat(o,"-container")},ct),f&&h.createElement(wI,{className:"".concat(o,"-footer")},f(_)));ze&&($t=h.createElement(pa,{onResize:function(e){var t,n=e.width;null===(t=He.current)||void 0===t||t.checkScrollBarVisible();var o=me.current?me.current.offsetWidth:n;D&&T&&me.current&&(o=T(me.current,o)||o),o!==ie&&(tt(),ae(o))}},$t));var St=function(e,t,n){var o=e.map(function(o,r){return _O(r,r,e,t,n)});return Nt(function(){return o},[o],function(e,t){return!jt(e,t)})}(ce,Le,u),Et=h.useMemo(function(){return{scrollX:pe,prefixCls:o,getComponent:F,scrollbarSize:rt,direction:u,fixedInfoList:St,isSticky:Ae,supportSticky:lt,componentWidth:ie,fixHeader:Te,fixColumn:Be,horizonScroll:ze,tableLayout:ft,rowClassName:i,expandedRowClassName:Y.expandedRowClassName,expandIcon:ee,expandableType:Q,expandRowByClick:Y.expandRowByClick,expandedRowRender:Y.expandedRowRender,expandedRowOffset:Y.expandedRowOffset,onTriggerExpand:ne,expandIconColumnIndex:Y.expandIconColumnIndex,indentSize:Y.indentSize,allColumnsFixedLeft:ce.every(function(e){return"left"===e.fixed}),emptyNode:gt,columns:se,flattenColumns:ce,onColumnResize:Xe,colWidths:Re,hoverStartRow:G,hoverEndRow:X,onHover:U,rowExpandable:Y.rowExpandable,onRow:w,getRowKey:W,expandedKeys:J,childrenColumnName:te,rowHoverable:H,measureRowRender:I}},[pe,o,F,rt,u,St,Ae,lt,ie,Te,Be,ze,ft,i,Y.expandedRowClassName,ee,Q,Y.expandRowByClick,Y.expandedRowRender,Y.expandedRowOffset,ne,Y.expandIconColumnIndex,Y.indentSize,gt,se,ce,Xe,Re,G,X,U,Y.rowExpandable,w,W,J,te,H,I]);return h.createElement(RO.Provider,{value:Et},$t)}
1var PI=h.forwardRef(MI);function RI(e){return jO(PI,e)}var LI=RI();LI.EXPAND_COLUMN=$O,LI.INTERNAL_HOOKS=SO,LI.Column=function(e){return null},LI.ColumnGroup=function(e){return null},LI.Summary=VO;const TI=LI;var zI=EO(null),BI=EO(null);const HI=function(e){var t=e.rowInfo,n=e.column,o=e.colIndex,r=e.indent,i=e.index,a=e.component,l=e.renderIndex,s=e.record,c=e.style,d=e.className,u=e.inverse,p=e.getHeight,f=n.render,m=n.dataIndex,v=n.className,b=n.width,y=kO(BI,["columnsOffset"]).columnsOffset,C=eI(t,n,o,r,i),x=C.key,w=C.fixedInfo,$=C.appendCellNode,S=C.additionalCellProps,E=S.style,k=S.colSpan,O=void 0===k?1:k,I=S.rowSpan,j=void 0===I?1:I,M=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(o-1,O,y),P=O>1?b-M:0,R=he(he(he({},E),c),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:P,pointerEvents:"auto"}),L=h.useMemo(function(){return u?j<=1:0===O||0===j||j>1},[j,O,u]);L?R.visibility="hidden":u&&(R.height=null==p?void 0:p(j));var T=L?function(){return null}:f,z={};return 0!==j&&0!==O||(z.rowSpan=1,z.colSpan=1),h.createElement(HO,g({className:N()(v,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:x,record:s,index:i,renderIndex:l,dataIndex:m,render:T,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:$,additionalProps:he(he({},S),{},{style:R},z)}))};var _I=["data","index","className","rowKey","style","extra","getHeight"],AI=h.forwardRef(function(e,t){var n,o=e.data,r=e.index,i=e.className,a=e.rowKey,l=e.style,s=e.extra,c=e.getHeight,d=O(e,_I),u=o.record,p=o.indent,f=o.index,m=kO(RO,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=m.scrollX,b=m.flattenColumns,y=m.prefixCls,C=m.fixColumn,x=m.componentWidth,w=kO(zI,["getComponent"]).getComponent,$=ZO(u,a,r,p),S=w(["body","row"],"div"),E=w(["body","cell"],"div"),I=$.rowSupportExpand,j=$.expanded,M=$.rowProps,P=$.expandedRowRender,R=$.expandedRowClassName;if(I&&j){var L=P(u,r,p+1,j),T=JO(R,u,r,p),z={};C&&(z={style:k({},"--virtual-width","".concat(x,"px"))});var B="".concat(y,"-expanded-row-cell");n=h.createElement(S,{className:N()("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(p+1),T)},h.createElement(HO,{component:E,prefixCls:y,className:N()(B,k({},"".concat(B,"-fixed"),C)),additionalProps:z},L))}var H=he(he({},l),{},{width:v});s&&(H.position="absolute",H.pointerEvents="none");var _=h.createElement(S,g({},M,d,{"data-row-key":a,ref:I?null:t,className:N()(i,"".concat(y,"-row"),null==M?void 0:M.className,k({},"".concat(y,"-row-extra"),s)),style:he(he({},H),null==M?void 0:M.style)}),b.map(function(e,t){return h.createElement(HI,{key:t,component:E,rowInfo:$,column:e,colIndex:t,indent:p,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})}));return I?h.createElement("div",{ref:t},_,n):_});const DI=MO(AI);var FI=h.forwardRef(function(e,t){var n=e.data,o=e.onScroll,r=kO(RO,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=r.flattenColumns,a=r.onColumnResize,l=r.getRowKey,s=r.expandedKeys,c=r.prefixCls,d=r.childrenColumnName,u=r.scrollX,p=r.direction,f=kO(zI),m=f.sticky,g=f.scrollY,v=f.listItemHeight,b=f.getComponent,y=f.onScroll,C=h.useRef(),x=UO(n,d,s,l),w=h.useMemo(function(){var e=0;return i.map(function(t){var n=t.width,o=t.minWidth,r=t.key,i=Math.max(n||0,o||0);return[r,i,e+=i]})},[i]),E=h.useMemo(function(){return w.map(function(e){return e[2]})},[w]);h.useEffect(function(){w.forEach(function(e){var t=$(e,2),n=t[0],o=t[1];a(n,o)})},[w]),h.useImperativeHandle(t,function(){var e,t={scrollTo:function(e){var t;null===(t=C.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=C.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=C.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=C.current)||void 0===t||t.scrollTo({left:e})}}),Object.defineProperty(t,"scrollTop",{get:function(){var e;return(null===(e=C.current)||void 0===e?void 0:e.getScrollInfo().y)||0},set:function(e){var t;null===(t=C.current)||void 0===t||t.scrollTo({top:e})}}),t});var k=function(e,t){var n,o=null===(n=x[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},O=h.useMemo(function(){return{columnsOffset:E}},[E]),I="".concat(c,"-tbody"),N=b(["body","wrapper"]),j={};return m&&(j.position="sticky",j.bottom=0,"object"===S(m)&&m.offsetScroll&&(j.bottom=m.offsetScroll)),h.createElement(BI.Provider,{value:O}
vendor: 4,688 bytes, line 1
1,h.createElement(Uy,{fullHeight:!1,ref:C,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:j},className:I,height:g,itemHeight:v||24,data:x,itemKey:function(e){return l(e.record)},component:N,scrollWidth:u,direction:p,onVirtualScroll:function(e){var t,n=e.x;o({currentTarget:null===(t=C.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:y,extraRender:function(e){var t=e.start,n=e.end,o=e.getSize,r=e.offsetY;if(n<0)return null;for(var a=i.filter(function(e){return 0===k(e,t)}),s=t,c=function(e){if(a=a.filter(function(t){return 0===k(t,e)}),!a.length)return s=e,1},d=t;d>=0&&!c(d);d-=1);for(var u=i.filter(function(e){return 1!==k(e,n)}),p=n,f=function(e){if(u=u.filter(function(t){return 1!==k(t,e)}),!u.length)return p=Math.max(e-1,n),1},m=n;m<x.length&&!f(m);m+=1);for(var g=[],v=function(e){if(!x[e])return 1;i.some(function(t){return k(t,e)>1})&&g.push(e)},b=s;b<=p;b+=1)v(b);return g.map(function(e){var t=x[e],n=l(t.record,e),i=o(n);return h.createElement(DI,{key:e,data:t,rowKey:n,index:e,style:{top:-r+i.top},extra:!0,getHeight:function(t){var r=e+t-1,i=l(x[r].record,r),a=o(n,i);return a.bottom-a.top}})})}},function(e,t,n){var o=l(e.record,t);return h.createElement(DI,{data:e,rowKey:o,index:t,style:n.style})}))});const WI=MO(FI);var KI=function(e,t){var n=t.ref,o=t.onScroll;return h.createElement(WI,{ref:n,data:e,onScroll:o})};function VI(e,t){var n=e.data,o=e.columns,r=e.scroll,i=e.sticky,a=e.prefixCls,l=void 0===a?OI:a,s=e.className,c=e.listItemHeight,d=e.components,u=e.onScroll,p=r||{},f=p.x,m=p.y;"number"!=typeof f&&(f=1),"number"!=typeof m&&(m=500);var v=Mo(function(e,t){return Xo(d,e)||t}),b=Mo(u),y=h.useMemo(function(){return{sticky:i,scrollY:m,listItemHeight:c,getComponent:v,onScroll:b}},[i,m,c,v,b]);return h.createElement(zI.Provider,{value:y},h.createElement(TI,g({},e,{className:N()(s,"".concat(l,"-virtual")),scroll:he(he({},r),{},{x:f}),components:he(he({},d),{},{body:null!=n&&n.length?KI:void 0}),columns:o,internalHooks:SO,tailor:!0,ref:t})))}var qI=h.forwardRef(VI);function GI(e){return jO(qI,e)}GI();var XI=h.createContext(null),UI=h.createContext({}),ZI=function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,r=e.isEnd,i="".concat(t,"-indent-unit"),a=[],l=0;l<n;l+=1)a.push(h.createElement("span",{key:l,className:N()(i,k(k({},"".concat(i,"-start"),o[l]),"".concat(i,"-end"),r[l]))}));return h.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)};const YI=h.memo(ZI);function QI(e,t){return e[t]}var JI=["children"];function eN(e,t){return"".concat(e,"-").concat(t)}function tN(e,t){return null!=e?e:t}function nN(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function oN(e){return function e(t){return Mi(t).map(function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return Be(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,i=he({key:n},O(o,JI)),a=e(r);return a.length&&(i.children=a),i}).filter(function(e){return e})}(e)}function rN(e,t,n){var o=nN(n),r=o._title,i=o.key,a=o.children,l=new Set(!0===t?[]:t),s=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(c,d){for(var u,p=eN(o?o.pos:"0",d),f=tN(c[i],p),m=0;m<r.length;m+=1){var g=r[m];if(void 0!==c[g]){u=c[g];break}}var h=Object.assign(vt(c,[].concat(Ot(r),[i,a])),{title:u,key:f,parent:o,pos:p,children:null,data:c,isStart:[].concat(Ot(o?o.isStart:[]),[0===d]),isEnd:[].concat(Ot(o?o.isEnd:[]),[d===n.length-1])});return s.push(h),!0===t||l.has(f)?h.children=e(c[a]||[],h):h.children=[],h})}(e),s}function iN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=i||(arguments.length>2?arguments[2]:void 0),c={},d={},u={posEntities:c,keyEntities:d};return n&&(u=n(u)||u),function(e,t,n){var r,i=("object"===S(n)?n:{externalGetKey:n})||{},a=i.childrenPropName,l=i.externalGetKey,s=nN(i.fieldNames),p=s.key,f=s.children,m=a||f;l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,t){return tN(e[p],t)},function t(n,i,a,l){var s=n?n[m]:e,p=n?eN(a.pos,i):"0",f=n?[].concat(Ot(l),[n]):[];if(n){var g=r(n,p);!function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,l=e.level,s={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:l},p=tN(i,r);c[r]=s,d[p]=s,s.parent=c[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),o&&o(s,u)}({node:n,index:i,pos:p,key:g,parentPos:a.node?a.pos:null,level:a.level+1,nodes:f})}
1s&&s.forEach(function(e,o){t(e,o,{node:n,pos:p,level:a?a.level+1:-1},f)})}(null)}(e,0,{externalGetKey:s,childrenPropName:a,fieldNames:l}),r&&r(u),u}function aN(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,d=QI(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(d?d.pos:""),dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function lN(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,c=e.dragOverGapTop,d=e.dragOverGapBottom,u=e.pos,p=e.active,f=e.eventKey,m=he(he({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:d,pos:u,active:p,key:f});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Be(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}var sN=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],cN="open",dN="close",uN=function(e){var t,n,o,r=e.eventKey,i=e.className,a=e.style,l=e.dragOver,s=e.dragOverGapTop,c=e.dragOverGapBottom,d=e.isLeaf,u=e.isStart,p=e.isEnd,f=e.expanded,m=e.selected,h=e.checked,b=e.halfChecked,y=e.loading,C=e.domRef,x=e.active,w=e.data,S=e.onMouseMove,E=e.selectable,I=O(e,sN),j=v().useContext(XI),M=v().useContext(UI),P=v().useRef(null),R=$(v().useState(!1),2),L=R[0],T=R[1],z=!!(j.disabled||e.disabled||null!==(t=M.nodeDisabled)&&void 0!==t&&t.call(M,w)),B=v().useMemo(function(){return!(!j.checkable||!1===e.checkable)&&j.checkable},[j.checkable,e.checkable]),H=function(t){z||B&&!e.disableCheckbox&&j.onNodeCheck(t,lN(e),!h)},_=v().useMemo(function(){return"boolean"==typeof E?E:j.selectable},[E,j.selectable]),A=function(t){j.onNodeClick(t,lN(e)),_?function(t){z||j.onNodeSelect(t,lN(e))}(t):H(t)},D=function(t){j.onNodeDoubleClick(t,lN(e))},F=function(t){j.onNodeMouseEnter(t,lN(e))},W=function(t){j.onNodeMouseLeave(t,lN(e))},K=function(t){j.onNodeContextMenu(t,lN(e))},V=v().useMemo(function(){return!(!j.draggable||j.draggable.nodeDraggable&&!j.draggable.nodeDraggable(w))},[j.draggable,w]),q=function(t){y||j.onNodeExpand(t,lN(e))},G=v().useMemo(function(){var e=(QI(j.keyEntities,r)||{}).children;return Boolean((e||[]).length)},[j.keyEntities,r]),X=v().useMemo(function(){return!1!==d&&(d||!j.loadData&&!G||j.loadData&&e.loaded&&!G)},[d,j.loadData,G,e.loaded]);v().useEffect(function(){y||"function"!=typeof j.loadData||!f||X||e.loaded||j.onNodeLoad(lN(e))},[y,j.loadData,j.onNodeLoad,f,X,e]);var U=v().useMemo(function(){var e;return null!==(e=j.draggable)&&void 0!==e&&e.icon?v().createElement("span",{className:"".concat(j.prefixCls,"-draggable-icon")},j.draggable.icon):null},[j.draggable]),Z=function(t){var n=e.switcherIcon||j.switcherIcon;return"function"==typeof n?n(he(he({},e),{},{isLeaf:t})):n},Y=v().useMemo(function(){if(!B)return null;var t="boolean"!=typeof B?B:null;return v().createElement("span",{className:N()("".concat(j.prefixCls,"-checkbox"),k(k(k({},"".concat(j.prefixCls,"-checkbox-checked"),h),"".concat(j.prefixCls,"-checkbox-indeterminate"),!h&&b),"".concat(j.prefixCls,"-checkbox-disabled"),z||e.disableCheckbox)),onClick:H,role:"checkbox","aria-checked":b?"mixed":h,"aria-disabled":z||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)},[B,h,b,z,e.disableCheckbox,e.title]),Q=v().useMemo(function(){return X?null:f?cN:dN},[X,f]),J=v().useMemo(function(){return v().createElement("span",{className:N()("".concat(j.prefixCls,"-iconEle"),"".concat(j.prefixCls,"-icon__").concat(Q||"docu"),k({},"".concat(j.prefixCls,"-icon_loading"),y))})},[j.prefixCls,Q,y]),ee=v().useMemo(function(){var t=Boolean(j.draggable);return!e.disabled&&t&&j.dragOverNodeKey===r?j.dropIndicatorRender({dropPosition:j.dropPosition,dropLevelOffset:j.dropLevelOffset,indent:j.indent,prefixCls:j.prefixCls,direction:j.direction}):null},[j.dropPosition,j.dropLevelOffset,j.indent,j.prefixCls,j.direction,j.draggable,j.dragOverNodeKey,j.dropIndicatorRender]),te=v().useMemo(function(){var t,n,o=e.title,r=void 0===o?"---":o,i="".concat(j.prefixCls,"-node
1-content-wrapper");if(j.showIcon){var a=e.icon||j.icon;t=a?v().createElement("span",{className:N()("".concat(j.prefixCls,"-iconEle"),"".concat(j.prefixCls,"-icon__customize"))},"function"==typeof a?a(e):a):J}else j.loadData&&y&&(t=J);return n="function"==typeof r?r(w):j.titleRender?j.titleRender(w):r,v().createElement("span",{ref:P,title:"string"==typeof r?r:"",className:N()(i,"".concat(i,"-").concat(Q||"normal"),k({},"".concat(j.prefixCls,"-node-selected"),!z&&(m||L))),onMouseEnter:F,onMouseLeave:W,onContextMenu:K,onClick:A,onDoubleClick:D},t,v().createElement("span",{className:"".concat(j.prefixCls,"-title")},n),ee)},[j.prefixCls,j.showIcon,e,j.icon,J,j.titleRender,w,Q,F,W,K,A,D]),ne=bg(I,{aria:!0,data:!0}),oe=(QI(j.keyEntities,r)||{}).level,re=p[p.length-1],ie=!z&&V,ae=j.draggingNodeKey===r,le=void 0!==E?{"aria-selected":!!E}:void 0;return v().createElement("div",g({ref:C,role:"treeitem","aria-expanded":d?void 0:f,className:N()(i,"".concat(j.prefixCls,"-treenode"),(o={},k(k(k(k(k(k(k(k(k(k(o,"".concat(j.prefixCls,"-treenode-disabled"),z),"".concat(j.prefixCls,"-treenode-switcher-").concat(f?"open":"close"),!d),"".concat(j.prefixCls,"-treenode-checkbox-checked"),h),"".concat(j.prefixCls,"-treenode-checkbox-indeterminate"),b),"".concat(j.prefixCls,"-treenode-selected"),m),"".concat(j.prefixCls,"-treenode-loading"),y),"".concat(j.prefixCls,"-treenode-active"),x),"".concat(j.prefixCls,"-treenode-leaf-last"),re),"".concat(j.prefixCls,"-treenode-draggable"),V),"dragging",ae),k(k(k(k(k(k(k(o,"drop-target",j.dropTargetKey===r),"drop-container",j.dropContainerKey===r),"drag-over",!z&&l),"drag-over-gap-top",!z&&s),"drag-over-gap-bottom",!z&&c),"filter-node",null===(n=j.filterTreeNode)||void 0===n?void 0:n.call(j,lN(e))),"".concat(j.prefixCls,"-treenode-leaf"),X))),style:a,draggable:ie,onDragStart:ie?function(t){t.stopPropagation(),T(!0),j.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:V?function(t){t.preventDefault(),t.stopPropagation(),j.onNodeDragEnter(t,e)}:void 0,onDragOver:V?function(t){t.preventDefault(),t.stopPropagation(),j.onNodeDragOver(t,e)}:void 0,onDragLeave:V?function(t){t.stopPropagation(),j.onNodeDragLeave(t,e)}:void 0,onDrop:V?function(t){t.preventDefault(),t.stopPropagation(),T(!1),j.onNodeDrop(t,e)}:void 0,onDragEnd:V?function(t){t.stopPropagation(),T(!1),j.onNodeDragEnd(t,e)}:void 0,onMouseMove:S},le,ne),v().createElement(YI,{prefixCls:j.prefixCls,level:oe,isStart:u,isEnd:p}),U,function(){if(X){var e=Z(!0);return!1!==e?v().createElement("span",{className:N()("".concat(j.prefixCls,"-switcher"),"".concat(j.prefixCls,"-switcher-noop"))},e):null}var t=Z(!1);return!1!==t?v().createElement("span",{onClick:q,className:N()("".concat(j.prefixCls,"-switcher"),"".concat(j.prefixCls,"-switcher_").concat(f?cN:dN))},t):null}(),Y,te)};uN.isTreeNode=1;const pN=uN;function fN(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function mN(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function gN(e){return e.split("-")}function hN(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){var o=t.key,r=t.children;n.push(o),e(r)})}(QI(t,e).children),n}function vN(e){if(e.parent){var t=gN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function bN(e,t,n,o,r,i,a,l,s,c){var d,u=e.clientX,p=e.clientY,f=e.target.getBoundingClientRect(),m=f.top,g=f.height,h=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-u)-12)/o,v=s.filter(function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length}),b=QI(l,n.eventKey);if(p<m+g/2){var y=a.findIndex(function(e){return e.key===b.key}),C=a[y<=0?0:y-1].key;b=QI(l,C)}var x=b.key,w=b,$=b.key,S=0,E=0;if(!v.includes(x))for(var k=0;k<h&&vN(b);k+=1)b=b.parent,E+=1;var O,I=t.data,N=b.node,j=!0;return O=gN(b.pos),0===Number(O[O.length-1])&&0===b.level&&p<m+g/2&&i({dragNode:I,dropNode:N,dropPosition:-1})&&b.key===n.eventKey?S=-1:(w.children||[]).length&&v.includes($)?i({dragNode:I,dropNode:N,dropPosition:0})?S=0:j=!1:0===E?h>-1.5?i({dragNode:I,dropNode:N,dropPosition:1})?S=1:j=!1:i({dragNode:I,dropNode:N,dropPosition:0})?S=0:i({dragNode:I,dropNode:N,dropPosition:1})?S=1:j=!1:i({dragNode:I,dropNode:N,dropPosition:1})?S=1:j=!1,{dropPosition:S,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:$,dropContainerKey:0===S?null:(null===(d=b.parent)||void 0===d?void 0:d.key)||null,dropAllowed:j}}function yN(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function CN(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==S(e))return Be(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function xN(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=QI(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}
1return(e||[]).forEach(function(e){o(e)}),Ot(n)}function wN(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function $N(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function SN(e,t,n,o){var r,i=[];r=o||$N;var a,l=new Set(e.filter(function(e){var t=!!QI(n,e);return t||i.push(e),t})),s=new Map,c=0;return Object.keys(n).forEach(function(e){var t=n[e],o=t.level,r=s.get(o);r||(r=new Set,s.set(o,r)),r.add(t),c=Math.max(c,o)}),Be(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter(function(e){return!o(e.node)}).forEach(function(e){r.add(e.key)})});for(var l=new Set,s=n;s>=0;s-=1)(t.get(s)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var a=!0,s=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),s||!n&&!i.has(t)||(s=!0)}),a&&r.add(t.key),s&&i.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(wN(i,r))}}(l,s,c,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),l=0;l<=o;l+=1)(n.get(l)||new Set).forEach(function(e){var t=e.key,n=e.node,o=e.children,l=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||l.filter(function(e){return!r(e.node)}).forEach(function(e){i.delete(e.key)})});a=new Set;for(var s=new Set,c=o;c>=0;c-=1)(n.get(c)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var o=!0,l=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),l||!n&&!a.has(t)||(l=!0)}),o||i.delete(t.key),l&&a.add(t.key),s.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(wN(a,i))}}(l,t.halfCheckedKeys,s,c,r),a}const EN=v().createContext(null);function kN(e,t){return(e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ur(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},ur(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ur(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:pr(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Jt(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n        ${n}:not(${n}-disabled),\n        ${t}:not(${t}-disabled)\n      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n        ${n}-checked:not(${n}-disabled),\n        ${t}-checked:not(${t}-disabled)\n      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}
1-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]})(or(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}const ON=zr("Checkbox",(e,{prefixCls:t})=>[kN(t,e)]);const IN=(e,t)=>{var n;const{prefixCls:o,className:r,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:c,onMouseLeave:d,skipGroup:u=!1,disabled:p}=e,f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=h.useContext(wt),b=h.useContext(EN),{isFormItemInput:y}=h.useContext(Rp),C=h.useContext(vf),x=null!==(n=(null==b?void 0:b.disabled)||p)&&void 0!==n?n:C,w=h.useRef(f.value),$=h.useRef(null),S=Fo(t,$);h.useEffect(()=>{null==b||b.registerValue(f.value)},[]),h.useEffect(()=>{if(!u)return f.value!==w.current&&(null==b||b.cancelValue(w.current),null==b||b.registerValue(f.value),w.current=f.value),()=>null==b?void 0:b.cancelValue(f.value)},[f.value]),h.useEffect(()=>{var e;(null===(e=$.current)||void 0===e?void 0:e.input)&&($.current.input.indeterminate=l)},[l]);const E=m("checkbox",o),k=Od(E),[O,I,j]=ON(E,k),M=Object.assign({},f);b&&!u&&(M.onChange=(...e)=>{f.onChange&&f.onChange.apply(f,e),b.toggleOption&&b.toggleOption({label:a,value:f.value})},M.name=b.name,M.checked=b.value.includes(f.value));const P=N()(`${E}-wrapper`,{[`${E}-rtl`]:"rtl"===g,[`${E}-wrapper-checked`]:M.checked,[`${E}-wrapper-disabled`]:x,[`${E}-wrapper-in-form-item`]:y},null==v?void 0:v.className,r,i,j,k,I),R=N()({[`${E}-indeterminate`]:l},Xp,I),[L,T]=zb(M.onClick);return O(h.createElement(mf,{component:"Checkbox",disabled:x},h.createElement("label",{className:P,style:Object.assign(Object.assign({},null==v?void 0:v.style),s),onMouseEnter:c,onMouseLeave:d,onClick:L},h.createElement(Tb,Object.assign({},M,{onClick:T,prefixCls:E,className:R,disabled:x,ref:S})),null!=a&&h.createElement("span",{className:`${E}-label`},a))))},NN=h.forwardRef(IN);const jN=h.forwardRef((e,t)=>{const{defaultValue:n,children:o,options:r=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:c}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:u,direction:p}=h.useContext(wt),[f,m]=h.useState(d.value||n||[]),[g,v]=h.useState([]);h.useEffect(()=>{"value"in d&&m(d.value||[])},[d.value]);const b=h.useMemo(()=>r.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[r]),y=e=>{v(t=>t.filter(t=>t!==e))},C=e=>{v(t=>[].concat(Of(t),[e]))},x=e=>{const t=f.indexOf(e.value),n=Of(f);-1===t?n.push(e.value):n.splice(t,1),"value"in d||m(n),null==c||c(n.filter(e=>g.includes(e)).sort((e,t)=>b.findIndex(t=>t.value===e)-b.findIndex(e=>e.value===t)))},w=u("checkbox",i),$=`${w}-group`,S=Od(w),[E,k,O]=ON(w,S),I=vt(d,["value","disabled"]),j=r.length?b.map(e=>h.createElement(NN,{prefixCls:w,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:f.includes(e.value),onChange:e.onChange,className:N()(`${$}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):o,M=h.useMemo(()=>({toggleOption:x,value:f,disabled:d.disabled,name:d.name,registerValue:C,cancelValue:y}),[x,f,d.disabled,d.name,C,y]),P=N()($,{[`${$}-rtl`]:"rtl"===p},a,l,O,S,k);return E(h.createElement("div",Object.assign({className:P,style:s},I,{ref:t}),h.createElement(EN.Provider,{value:M},j)))}),MN=jN,PN=NN;PN.Group=MN,PN.__ANT_CHECKBOX=!0;const RN=PN,LN={},TN="SELECT_ALL",zN="SELECT_INVERT",BN="SELECT_NONE",HN=[],_N=(e,t,n=[])=>
1((t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&_N(e,t[e],n)}),n);function AN(e){return null!=e&&e===e.window}const DN=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function FN(e,t){return t?`${t}-${e}`:`${e}`}const WN=(e,t)=>"function"==typeof e?e(t):e,KN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var VN=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:KN}))};const qN=h.forwardRef(VN);function GN(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var XN=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],UN=h.forwardRef(function(e,t){var n=e.className,o=e.style,r=e.motion,i=e.motionNodes,a=e.motionType,l=e.onMotionStart,s=e.onMotionEnd,c=e.active,d=e.treeNodeRequiredProps,u=O(e,XN),p=$(h.useState(!0),2),f=p[0],m=p[1],v=h.useContext(XI).prefixCls,b=i&&"hide"!==a;sn(function(){i&&b!==f&&m(b)},[i]);var y=h.useRef(!1),C=function(){i&&!y.current&&(y.current=!0,s())};
1return function(e,t){var n=$(h.useState(!1),2),o=n[0],r=n[1];sn(function(){if(o)return e(),function(){t()}},[o]),sn(function(){return r(!0),function(){r(!1)}},[])}(function(){i&&l()},C),i?h.createElement(Fl,g({ref:t,visible:f},r,{motionAppear:"show"===a,onVisibleChanged:function(e){b===e&&C()}}),function(e,t){var n=e.className,o=e.style;return h.createElement("div",{ref:t,className:N()("".concat(v,"-treenode-motion"),n),style:o},i.map(function(e){var t=Object.assign({},(GN(e.data),e.data)),n=e.title,o=e.key,r=e.isStart,i=e.isEnd;delete t.children;var a=aN(o,d);return h.createElement(pN,g({},t,a,{title:n,active:c,data:e.data,key:o,isStart:r,isEnd:i}))}))}):h.createElement(pN,g({domRef:t,className:n,style:o},u,{active:c}))});const ZN=UN;function YN(e,t,n){var o=e.findIndex(function(e){return e.key===n}),r=e[o+1],i=t.findIndex(function(e){return e.key===n});if(r){var a=t.findIndex(function(e){return e.key===r.key});return t.slice(i+1,a)}return t.slice(i+1)}var QN=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],JN={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ej=function(){},tj="RC_TREE_MOTION_".concat(Math.random()),nj={key:tj},oj={key:tj,level:0,index:0,pos:"0",node:nj,nodes:[nj]},rj={parent:null,children:[],pos:oj.pos,data:nj,title:null,key:tj,isStart:[],isEnd:[]};function ij(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function aj(e){return tN(e.key,e.pos)}var lj=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.data,r=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,c=e.halfCheckedKeys,d=e.keyEntities,u=e.disabled,p=e.dragging,f=e.dragOverNodeKey,m=e.dropPosition,v=e.motion,b=e.height,y=e.itemHeight,C=e.virtual,x=e.scrollWidth,w=e.focusable,S=e.activeItem,E=e.focused,k=e.tabIndex,I=e.onKeyDown,N=e.onFocus,j=e.onBlur,M=e.onActiveChange,P=e.onListChangeStart,R=e.onListChangeEnd,L=O(e,QN),T=h.useRef(null),z=h.useRef(null);h.useImperativeHandle(t,function(){return{scrollTo:function(e){T.current.scrollTo(e)},getIndentWidth:function(){return z.current.offsetWidth}}});var B=$(h.useState(r),2),H=B[0],_=B[1],A=$(h.useState(o),2),D=A[0],F=A[1],W=$(h.useState(o),2),K=W[0],V=W[1],q=$(h.useState([]),2),G=q[0],X=q[1],U=$(h.useState(null),2),Z=U[0],Y=U[1],Q=h.useRef(o);function J(){var e=Q.current;F(e),V(e),X([]),Y(null),R()}Q.current=o,sn(function(){_(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var o=t.filter(function(e){return!n.has(e)});return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(H,r);if(null!==e.key)if(e.add){var t=D.findIndex(function(t){return t.key===e.key}),n=ij(YN(D,o,e.key),C,b,y),i=D.slice();i.splice(t+1,0,rj),V(i),X(n),Y("show")}else{var a=o.findIndex(function(t){return t.key===e.key}),l=ij(YN(o,D,e.key),C,b,y),s=o.slice();s.splice(a+1,0,rj),V(s),X(l),Y("hide")}else D!==o&&(F(o),V(o))},[r,o]),h.useEffect(function(){p||J()},[p]);var ee=v?K:o,te={expandedKeys:r,selectedKeys:i,loadedKeys:l,loadingKeys:s,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:f,dropPosition:m,keyEntities:d};return h.createElement(h.Fragment,null,E&&S&&h.createElement("span",{style:JN,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(S)),h.createElement("div",null,h.createElement("input",{style:JN,disabled:!1===w||u,tabIndex:!1!==w?k:null,onKeyDown:I,onFocus:N,onBlur:j,value:"",onChange:ej,"aria-label":"for screen reader"})),h.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},h.createElement("div",{className:"".concat(n,"-indent")},h.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),h.createElement(Uy,g({},L,{data:ee,itemKey:aj,height:b,fullHeight:!1,virtual:C,itemHeight:y,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:T,role:"tree",onVisibleChange:function(e){e.every(function(e){return aj(e)!==tj})&&J()}}),function(e){var t=e.pos,n=Object.assign({},(GN(e.data),e.data)),o=e.title,r=e.key,i=e.isStart,a=e.isEnd,l=tN(r,t);delete n.key,delete n.children;var s=aN(l,te);return h.createElement(ZN,g({},n,s,{title:o,active:!!S&&r===S.key,pos:t,data:e.data,isStart:i,isEnd:a,motion:v,motionNodes:r===tj?G:null,motionType:Z,onMotionStart:P,onMotionEnd:J,treeNodeRequiredProps:te,onMouseMove:function(){M(null)}}))}))});const sj=lj;var cj=function(e){Co(n,e);var t=$o(n);function n(){var e;Mt(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return k(bo(e=t.call.apply(t,[this].concat(r))),"destroyed",!1),k(bo(e),"delayedDragEnterLogic",void 0),k(bo(e),"loadingRetryTimes",{}),k(bo(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],exp
1andedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:nN()}),k(bo(e),"dragStartMousePosition",null),k(bo(e),"dragNodeProps",null),k(bo(e),"currentMouseOverDroppableNodeKey",null),k(bo(e),"listRef",h.createRef()),k(bo(e),"onNodeDragStart",function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=e.props.onDragStart,l=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var s=fN(r,l);e.setState({draggingNodeKey:l,dragChildrenKeys:hN(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(s),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:lN(n)})}),k(bo(e),"onNodeDragEnter",function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=o.dragChildrenKeys,l=o.flattenNodes,s=o.indent,c=e.props,d=c.onDragEnter,u=c.onExpand,p=c.allowDrop,f=c.direction,m=n.pos,g=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==g&&(e.currentMouseOverDroppableNodeKey=g),e.dragNodeProps){var h=bN(t,e.dragNodeProps,n,s,e.dragStartMousePosition,p,l,i,r,f),v=h.dropPosition,b=h.dropLevelOffset,y=h.dropTargetKey,C=h.dropContainerKey,x=h.dropTargetPos,w=h.dropAllowed,$=h.dragOverNodeKey;!a.includes(y)&&w?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}
1),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[m]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var o=Ot(r),a=QI(i,n.eventKey);a&&(a.children||[]).length&&(o=mN(r,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(o),null==u||u(o,{node:lN(n),expanded:!0,nativeEvent:t.nativeEvent})}},800)),e.dragNodeProps.eventKey!==y||0!==b?(e.setState({dragOverNodeKey:$,dropPosition:v,dropLevelOffset:b,dropTargetKey:y,dropContainerKey:C,dropTargetPos:x,dropAllowed:w}),null==d||d({event:t,node:lN(n),expandedKeys:r})):e.resetDragState()):e.resetDragState()}else e.resetDragState()}),k(bo(e),"onNodeDragOver",function(t,n){var o=e.state,r=o.dragChildrenKeys,i=o.flattenNodes,a=o.keyEntities,l=o.expandedKeys,s=o.indent,c=e.props,d=c.onDragOver,u=c.allowDrop,p=c.direction;if(e.dragNodeProps){var f=bN(t,e.dragNodeProps,n,s,e.dragStartMousePosition,u,i,a,l,p),m=f.dropPosition,g=f.dropLevelOffset,h=f.dropTargetKey,v=f.dropContainerKey,b=f.dropTargetPos,y=f.dropAllowed,C=f.dragOverNodeKey;!r.includes(h)&&y&&(e.dragNodeProps.eventKey===h&&0===g?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():m===e.state.dropPosition&&g===e.state.dropLevelOffset&&h===e.state.dropTargetKey&&v===e.state.dropContainerKey&&b===e.state.dropTargetPos&&y===e.state.dropAllowed&&C===e.state.dragOverNodeKey||e.setState({dropPosition:m,dropLevelOffset:g,dropTargetKey:h,dropContainerKey:v,dropTargetPos:b,dropAllowed:y,dragOverNodeKey:C}),null==d||d({event:t,node:lN(n)}))}}),k(bo(e),"onNodeDragLeave",function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var o=e.props.onDragLeave;null==o||o({event:t,node:lN(n)})}),k(bo(e),"onWindowDragEnd",function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)}),k(bo(e),"onNodeDragEnd",function(t,n){var o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==o||o({event:t,node:lN(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)}),k(bo(e),"onNodeDrop",function(t,n){var o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,s=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var u=he(he({},aN(s,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===s,data:QI(e.state.keyEntities,s).node}),p=a.includes(s);Be(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=gN(c),m={event:t,node:lN(u),dragNode:e.dragNodeProps?lN(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(f[f.length-1])};r||null==d||d(m),e.dragNodeProps=null}}}),k(bo(e),"cleanDragState",function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),k(bo(e),"triggerExpandActionExpand",function(t,n){var o=e.state,r=o.expandedKeys,i=o.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=i.filter(function(e){return e.key===l})[0],c=lN(he(he({},aN(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(a?fN(r,l):mN(r,l)),e.onNodeExpand(t,c)}}),k(bo(e),"onNodeClick",function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)}),k(bo(e),"onNodeDoubleClick",function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)}),k(bo(e),"onNodeSelect",function(t,n){var o=e.state.selectedKeys,r=e.state,i=r.keyEntities,a=r.fieldNames,l=e.props,s=l.onSelect,c=l.multiple,d=n.selected,u=n[a.key],p=!d,f=(o=p?c?mN(o,u):[u]:fN(o,u)).map(function(e){var t=QI(i,e);return t?t.node:null}
1).filter(Boolean);e.setUncontrolledState({selectedKeys:o}),null==s||s(o,{event:"select",selected:p,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})}),k(bo(e),"onNodeCheck",function(t,n,o){var r,i=e.state,a=i.keyEntities,l=i.checkedKeys,s=i.halfCheckedKeys,c=e.props,d=c.checkStrictly,u=c.onCheck,p=n.key,f={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(d){var m=o?mN(l,p):fN(l,p);r={checked:m,halfChecked:fN(s,p)},f.checkedNodes=m.map(function(e){return QI(a,e)}).filter(Boolean).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:m})}else{var g=SN([].concat(Ot(l),[p]),!0,a),h=g.checkedKeys,v=g.halfCheckedKeys;if(!o){var b=new Set(h);b.delete(p);var y=SN(Array.from(b),{checked:!1,halfCheckedKeys:v},a);h=y.checkedKeys,v=y.halfCheckedKeys}r=h,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=v,h.forEach(function(e){var t=QI(a,e);if(t){var n=t.node,o=t.pos;f.checkedNodes.push(n),f.checkedNodesPositions.push({node:n,pos:o})}}),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==u||u(r,f)}),k(bo(e),"onNodeLoad",function(t){var n,o=t.key,r=QI(e.state.keyEntities,o);if(null==r||null===(n=r.children)||void 0===n||!n.length){var i=new Promise(function(n,r){e.setState(function(i){var a=i.loadedKeys,l=void 0===a?[]:a,s=i.loadingKeys,c=void 0===s?[]:s,d=e.props,u=d.loadData,p=d.onLoad;return!u||l.includes(o)||c.includes(o)?null:(u(t).then(function(){var r=mN(e.state.loadedKeys,o);null==p||p(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState(function(e){return{loadingKeys:fN(e.loadingKeys,o)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:fN(e.loadingKeys,o)}}),e.loadingRetryTimes[o]=(e.loadingRetryTimes[o]||0)+1,e.loadingRetryTimes[o]>=10){var i=e.state.loadedKeys;Be(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:mN(i,o)}),n()}r(t)}),{loadingKeys:mN(c,o)})})});return i.catch(function(){}),i}}),k(bo(e),"onNodeMouseEnter",function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})}),k(bo(e),"onNodeMouseLeave",function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})}),k(bo(e),"onNodeContextMenu",function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))}),k(bo(e),"onFocus",function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null==t||t.apply(void 0,o)}),k(bo(e),"onBlur",function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null==t||t.apply(void 0,o)}),k(bo(e),"getTreeNodeRequiredProps",function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}}),k(bo(e),"setExpandedKeys",function(t){var n=e.state,o=rN(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:o},!0)}),k(bo(e),"onNodeExpand",function(t,n){var o=e.state.expandedKeys,r=e.state,i=r.listChanging,a=r.fieldNames,l=e.props,s=l.onExpand,c=l.loadData,d=n.expanded,u=n[a.key];if(!i){var p=o.includes(u),f=!d;if(Be(d&&p||!d&&!p,"Expand state not sync with index check"),o=f?mN(o,u):fN(o,u),e.setExpandedKeys(o),null==s||s(o,{node:n,expanded:f,nativeEvent:t.nativeEvent}),f&&c){var m=e.onNodeLoad(n);m&&m.then(function(){var t=rN(e.state.treeData,o,a);e.setUncontrolledState({flattenNodes:t})}).catch(function(){var t=fN(e.state.expandedKeys,u);e.setExpandedKeys(t)})}}}),k(bo(e),"onListChangeStart",function(){e.setUncontrolledState({listChanging:!0})}),k(bo(e),"onListChangeEnd",function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})}),k(bo(e),"onActiveChange",function(t){var n=e.state.activeKey,o=e.props,r=o.onActiveChange,i=o.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==r||r(t))}),k(bo(e),"getActiveItem",function(){var t=e.state,n=t.activeKey,o=t.flattenNodes;return null===n?null:o.find(function(e){return e.key===n})||null}),k(bo(e),"offsetActiveKey",function(t){var n=e.state,o=n.flattenNodes,r=n.activeKey,i=o.findIndex(function(e){return e.key===r});-1===i&&t<0&&(i=o.length);var a=o[i=(i+t+o.length)%o.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)}),k(bo(e),"onKeyDown",function(t){var n=e.state,o=n.activeKey,r=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,s=l.onKeyDown,c=l.checkable,d=l.selectable;switch(t.which){case gs.UP:e.offsetActiveKey(-1),t.preventDefault();break;case gs.DOWN:e.offsetActiveKey(1),t.preventDefault()}var u=e.getActiveItem();if(u&&u.data){var p=e.getTreeNodeRequiredProps(),f=!1===u.data.isLeaf||!!(u.data[a.children]||[]).length,m=lN(he(he({},aN(o,p)),{},{data:u.data,active:!0}));switch(t.which){case gs.LEFT:f&&r.includes(o)?e.onNodeExpand({},m):u.parent&&e.onActiveChange(u.parent.key),t.preventDefault();break;case gs.RIGHT:f&&!r.includes(o)?e.onNodeExpand({},m):u.children&&u.children.length&&e.onActiveChange(u.children[0].key),t.preventDefault();break;
vendor: 13,465 bytes, line 1
1case gs.ENTER:case gs.SPACE:!c||m.disabled||!1===m.checkable||m.disableCheckbox?c||!d||m.disabled||!1===m.selectable||e.onNodeSelect({},m):e.onNodeCheck({},m,!i.includes(o))}}null==s||s(t)}),k(bo(e),"setUncontrolledState",function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,a={};Object.keys(t).forEach(function(n){e.props.hasOwnProperty(n)?i=!1:(r=!0,a[n]=t[n])}),!r||n&&!i||e.setState(he(he({},a),o))}}),k(bo(e),"scrollTo",function(t){e.listRef.current.scrollTo(t)}),e}return Rt(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,o=t.flattenNodes,r=t.keyEntities,i=t.draggingNodeKey,a=t.activeKey,l=t.dropLevelOffset,s=t.dropContainerKey,c=t.dropTargetKey,d=t.dropPosition,u=t.dragOverNodeKey,p=t.indent,f=this.props,m=f.prefixCls,v=f.className,b=f.style,y=f.showLine,C=f.focusable,x=f.tabIndex,w=void 0===x?0:x,$=f.selectable,E=f.showIcon,O=f.icon,I=f.switcherIcon,j=f.draggable,M=f.checkable,P=f.checkStrictly,R=f.disabled,L=f.motion,T=f.loadData,z=f.filterTreeNode,B=f.height,H=f.itemHeight,_=f.scrollWidth,A=f.virtual,D=f.titleRender,F=f.dropIndicatorRender,W=f.onContextMenu,K=f.onScroll,V=f.direction,q=f.rootClassName,G=f.rootStyle,X=bg(this.props,{aria:!0,data:!0});j&&(e="object"===S(j)?j:"function"==typeof j?{nodeDraggable:j}:{});var U={prefixCls:m,selectable:$,showIcon:E,icon:O,switcherIcon:I,draggable:e,draggingNodeKey:i,checkable:M,checkStrictly:P,disabled:R,keyEntities:r,dropLevelOffset:l,dropContainerKey:s,dropTargetKey:c,dropPosition:d,dragOverNodeKey:u,indent:p,direction:V,dropIndicatorRender:F,loadData:T,filterTreeNode:z,titleRender:D,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return h.createElement(XI.Provider,{value:U},h.createElement("div",{className:N()(m,v,q,k(k(k({},"".concat(m,"-show-line"),y),"".concat(m,"-focused"),n),"".concat(m,"-active-focused"),null!==a)),style:G},h.createElement(sj,g({ref:this.listRef,prefixCls:m,style:b,data:o,disabled:R,selectable:$,checkable:!!M,motion:L,dragging:null!==i,height:B,itemHeight:H,virtual:A,focusable:C,focused:n,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:K,scrollWidth:_},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&e.hasOwnProperty(t)||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=nN(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(Be(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=oN(e.children)),n){r.treeData=n;var l=iN(n,{fieldNames:a});r.keyEntities=he(k({},tj,oj),l.keyEntities)}var s,c=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?xN(e.expandedKeys,c):e.expandedKeys;else if(!o&&e.defaultExpandAll){var d=he({},c);delete d[tj];var u=[];Object.keys(d).forEach(function(e){var t=d[e];t.children&&t.children.length&&u.push(t.key)}),r.expandedKeys=u}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?xN(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var p=rN(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=p}if(e.selectable&&(i("selectedKeys")?r.selectedKeys=yN(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=yN(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?s=CN(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?s=CN(e.defaultCheckedKeys)||{}:n&&(s=CN(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var f=s,m=f.checkedKeys,g=void 0===m?[]:m,h=f.halfCheckedKeys,v=void 0===h?[]:h;if(!e.checkStrictly){var b=SN(g,!0,c);g=b.checkedKeys,v=b.halfCheckedKeys}r.checkedKeys=g,r.halfCheckedKeys=v}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(h.Component);k(cj,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return v().createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1}),k(cj,"TreeNode",pN);const dj=cj,uj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var pj=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:uj}))};const fj=h.forwardRef(pj),mj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var gj=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:mj}))};const hj=h.forwardRef(gj),vj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var bj=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:vj}))};const yj=h.forwardRef(bj),Cj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var xj=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Cj}))};const wj=h.forwardRef(xj),$j=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:o,motionDurationMid:r,borderRadius:i,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${r}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:o},[`${e}-node-content-wrapper`]:{color:o,background:"transparent","&, &:hover":{color:o},"&:before, &:hover:before":{background:n}}}}}),Sj=new ho("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ej=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kj=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Jt(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Oj=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},ur(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:pr(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Sj,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:Jt(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${o}-disabled${o}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${o}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Ej(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},kj(e,t)),{"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1p
vendor: 4,364 bytes, line 1
1x solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Jt(t.calc(i).div(2).equal())} !important`}})}},Ij=(e,t,n=!0)=>{const o=`.${e}`,r=`${o}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=or(t,{treeCls:o,treeNodeCls:r,treeNodePadding:i});return[Oj(e,a),n&&$j(a)].filter(Boolean)},Nj=zr("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:kN(`${t}-checkbox`,e)},Ij(t,e),Sg(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),jj=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:r,direction:i="ltr"}=e,a="ltr"===i?"left":"right",l="ltr"===i?"right":"left",s={[a]:-n*r+4,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=r+4}return v().createElement("div",{style:s,className:`${o}-drop-indicator`})},Mj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var Pj=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Mj}))};const Rj=h.forwardRef(Pj),Lj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var Tj=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Lj}))};const zj=h.forwardRef(Tj),Bj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var Hj=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:Bj}))};const _j=h.forwardRef(Hj),Aj=e=>{var t,n;const{prefixCls:o,switcherIcon:r,treeNodeProps:i,showLine:a,switcherLoadingIcon:l}=e,{isLeaf:s,expanded:c,loading:d}=i;if(d)return h.isValidElement(l)?l:h.createElement(zf,{className:`${o}-switcher-loading-icon`});let u;if(a&&"object"==typeof a&&(u=a.showLeafIcon),s){if(!a)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(i):u,n=`${o}-switcher-line-custom-icon`;return h.isValidElement(e)?qp(e,{className:N()(null===(t=e.props)||void 0===t?void 0:t.className,n)}):e}return u?h.createElement(fj,{className:`${o}-switcher-line-icon`}):h.createElement("span",{className:`${o}-switcher-leaf-line`})}const p=`${o}-switcher-icon`,f="function"==typeof r?r(i):r;return h.isValidElement(f)?qp(f,{className:N()(null===(n=f.props)||void 0===n?void 0:n.className,p)}):void 0!==f?f:a?c?h.createElement(zj,{className:`${o}-switcher-line-icon`}):h.createElement(_j,{className:`${o}-switcher-line-icon`}):h.createElement(Rj,{className:p})},Dj=v().forwardRef((e,t)=>{var n;const{getPrefixCls:o,direction:r,virtual:i,tree:a}=v().useContext(wt),{prefixCls:l,className:s,showIcon:c=!1,showLine:d,switcherIcon:u,switcherLoadingIcon:p,blockNode:f=!1,children:m,checkable:g=!1,selectable:h=!0,draggable:b,disabled:y,motion:C,style:x}=e,w=o("tree",l),$=o(),S=v().useContext(vf),E=null!=y?y:S,k=null!=C?C:Object.assign(Object.assign({},Rd($)),{motionAppear:!1}),O=Object.assign(Object.assign({},e),{checkable:g,selectable:h,showIcon:c,motion:k,blockNode:f,disabled:E,showLine:Boolean(d),dropIndicatorRender:jj}),[I,j,M]=Nj(w),[,P]=Tr(),R=P.paddingXS/2+((null===(n=P.Tree)||void 0===n?void 0:n.titleHeight)||P.controlHeightSM),L=v().useMemo(()=>
1{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||v().createElement(wj,null)),e},[b]);return I(v().createElement(dj,Object.assign({itemHeight:R,ref:t,virtual:i},O,{style:Object.assign(Object.assign({},null==a?void 0:a.style),x),prefixCls:w,className:N()({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:f,[`${w}-unselectable`]:!h,[`${w}-rtl`]:"rtl"===r,[`${w}-disabled`]:E},null==a?void 0:a.className,s,j,M),direction:r,checkable:g?v().createElement("span",{className:`${w}-checkbox-inner`}):g,selectable:h,switcherIcon:e=>v().createElement(Aj,{prefixCls:w,switcherIcon:u,switcherLoadingIcon:p,treeNodeProps:e,showLine:d}),draggable:L}),m))}),Fj=Dj;function Wj(e,t,n){const{key:o,children:r}=n;e.forEach(function(e){const i=e[o],a=e[r];!1!==t(i,e)&&Wj(a||[],t,n)})}function Kj(e,t,n){const o=Of(t),r=[];return Wj(e,(e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length},nN(n)),r}var Vj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function qj(e){const{isLeaf:t,expanded:n}=e;return t?h.createElement(fj,null):n?h.createElement(hj,null):h.createElement(yj,null)}function Gj({treeData:e,children:t}){return e||oN(t)}const Xj=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:o,defaultExpandedKeys:r}=e,i=Vj(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=h.useRef(null),l=h.useRef(null),[s,c]=h.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[d,u]=h.useState(()=>(()=>{const{keyEntities:e}=iN(Gj(i),{fieldNames:i.fieldNames});let t;return t=n?Object.keys(e):o?xN(i.expandedKeys||r||[],e):i.expandedKeys||r||[],t})());h.useEffect(()=>{"selectedKeys"in i&&c(i.selectedKeys)},[i.selectedKeys]),h.useEffect(()=>{"expandedKeys"in i&&u(i.expandedKeys)},[i.expandedKeys]);const{getPrefixCls:p,direction:f}=h.useContext(wt),{prefixCls:m,className:g,showIcon:v=!0,expandAction:b="click"}=i,y=Vj(i,["prefixCls","className","showIcon","expandAction"]),C=p("tree",m),x=N()(`${C}-directory`,{[`${C}-directory-rtl`]:"rtl"===f},g);return h.createElement(Fj,Object.assign({icon:qj,ref:t,blockNode:!0},y,{showIcon:v,expandAction:b,prefixCls:C,className:x,expandedKeys:d,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=i,{node:s,nativeEvent:u}=t,{key:p=""}=s,f=Gj(i),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==u?void 0:u.ctrlKey)||(null==u?void 0:u.metaKey),h=null==u?void 0:u.shiftKey;let v;o&&g?(v=e,a.current=p,l.current=v,m.selectedNodes=Kj(f,v,r)):o&&h?(v=Array.from(new Set([].concat(Of(l.current||[]),Of(function({treeData:e,expandedKeys:t,startKey:n,endKey:o,fieldNames:r}){const i=[];let a=0;return n&&n===o?[n]:n&&o?(Wj(e,e=>{if(2===a)return!1;if(function(e){return e===n||e===o}(e)){if(i.push(e),0===a)a=1;else if(1===a)return a=2,!1}else 1===a&&i.push(e);return t.includes(e)},nN(r)),i):[]}({treeData:f,expandedKeys:d,startKey:p,endKey:a.current,fieldNames:r}))))),m.selectedNodes=Kj(f,v,r)):(v=[p],a.current=p,l.current=v,m.selectedNodes=Kj(f,v,r)),null===(n=i.onSelect)||void 0===n||n.call(i,v,m),"selectedKeys"in i||c(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||u(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))},Uj=h.forwardRef(Xj),Zj=Fj;Zj.DirectoryTree=Uj,Zj.TreeNode=pN;const Yj=Zj,Qj=e=>{const{value:t,filterSearch:n,tablePrefixCls:o,locale:r,onChange:i}=e;return n?h.createElement("div",{className:`${o}-filter-dropdown-search`},h.createElement(Ih,{prefix:h.createElement(Wh,null),placeholder:r.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null},Jj=e=>{const{keyCode:t}=e;t===gs.ENTER&&e.stopPropagation()},eM=h.forwardRef((e,t)=>h.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Jj,ref:t},e.children));function tM(e){let t=[];
1return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(Of(t),Of(tM(n))))}),t}function nM(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function oM({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:o,searchValue:r,filterSearch:i}){return e.map((e,a)=>{const l=String(e.value);if(e.children)return{key:l||a,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:oM({filters:e.children,prefixCls:t,filteredKeys:n,filterMultiple:o,searchValue:r,filterSearch:i})};const s=o?RN:Xb,c={key:void 0!==e.value?l:a,label:h.createElement(h.Fragment,null,h.createElement(s,{checked:n.includes(l)}),h.createElement("span",null,e.text))};return r.trim()?"function"==typeof i?i(r,e)?c:null:nM(r,e.text)?c:null:c})}function rM(e){return e||[]}const iM=e=>{var t,n,o,r;const{tablePrefixCls:i,prefixCls:a,column:l,dropdownPrefixCls:s,columnKey:c,filterOnClose:d,filterMultiple:u,filterMode:p="menu",filterSearch:f=!1,filterState:m,triggerFilter:g,locale:v,children:b,getPopupContainer:y,rootClassName:C}=e,{filterResetToDefaultFilteredValue:x,defaultFilteredValue:w,filterDropdownProps:$={},filterDropdownOpen:S,filterDropdownVisible:E,onFilterDropdownVisibleChange:k,onFilterDropdownOpenChange:O}=l,[I,j]=h.useState(!1),M=!(!m||!(null===(t=m.filteredKeys)||void 0===t?void 0:t.length)&&!m.forceFiltered),P=e=>{var t;j(e),null===(t=$.onOpenChange)||void 0===t||t.call($,e),null==O||O(e),null==k||k(e)},R=null!==(r=null!==(o=null!==(n=$.open)&&void 0!==n?n:S)&&void 0!==o?o:E)&&void 0!==r?r:I,L=null==m?void 0:m.filteredKeys,[T,z]=(e=>{const t=h.useRef(e),[,n]=Km();return[()=>t.current,e=>{t.current=e,n()}]})(rM(L)),B=({selectedKeys:e})=>{z(e)},H=(e,{node:t,checked:n})=>{B(u?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};h.useEffect(()=>{I&&B({selectedKeys:rM(L)})},[L]);const[_,A]=h.useState([]),D=e=>{A(e)},[F,W]=h.useState(""),K=e=>{const{value:t}=e.target;W(t)};h.useEffect(()=>{I||W("")},[I]);const V=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||m&&m.filteredKeys?jt(t,null==m?void 0:m.filteredKeys,!0)?null:void g({column:l,key:c,filteredKeys:t}):null},q=()=>{P(!1),V(T())},G=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&V([]),t&&P(!1),W(""),z(x?(w||[]).map(e=>String(e)):[])},X=N()({[`${s}-menu-without-submenu`]:(U=l.filters||[],!U.some(({children:e})=>e))});var U;const Z=e=>{if(e.target.checked){const e=tM(null==l?void 0:l.filters).map(e=>String(e));z(e)}else z([])},Y=({filters:e})=>(e||[]).map((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=Y({filters:e.children})),o}),Q=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>Q(e)))||[]})};let J;const{direction:ee,renderEmpty:te}=h.useContext(wt);if("function"==typeof l.filterDropdown)J=l.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:e=>B({selectedKeys:e}),selectedKeys:T(),confirm:({closeDropdown:e}={closeDropdown:!0})=>{e&&P(!1),V(T())},clearFilters:G,filters:l.filters,visible:R,close:()=>{P(!1)}});else if(l.filterDropdown)J=l.filterDropdown;else{const e=T()||[],t=()=>{var t,n;const o=null!==(t=null==te?void 0:te("Table.filter"))&&void 0!==t?t:h.createElement(ZC,{image:ZC.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return o;if("tree"===p)return h.createElement(h.Fragment,null,h.createElement(Qj,{filterSearch:f,value:F,onChange:K,tablePrefixCls:i,locale:v}),h.createElement("div",{className:`${i}-filter-dropdown-tree`},u?h.createElement(RN,{checked:e.length===tM(l.filters).length,indeterminate:e.length>0&&e.length<tM(l.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:Z},null!==(n=null==v?void 0:v.filterCheckall)&&void 0!==n?n:null==v?void 0:v.filterCheckAll):null,h.createElement(Yj,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:`${s}-menu`,onCheck:H,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:Y({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:F.trim()?e=>"function"==typeof f?f(F,Q(e)):nM(F,e.title):void 0})));const r=oM({filters:l.filters||[],filterSearch:f,prefixCls:a,filteredKeys:T(),filterMultiple:u,searchValue:F}),c=r.every(e=>null===e);return h.createElement(h.Fragment,null,h.createElement(Qj,{filterSearch:f,value:F,onChange:K,tablePrefixCls:i,locale:v}),c?o:h.createElement(nk,{selectable:!0,multiple:u,prefixCls:`${s}-menu`,className:X,onSelect:B,onDeselect:B,selectedKeys:e,getPopupContainer:y,openKeys:_,onOpenChange:D,items:r}))},n=()=>x?jt((w||[]).map(e=>String(e)),e,!0):0===e.length;J=h.createElement(h.Fragment,null,t(),h.createElement("div",{className:`${a}-dropdown-btns`},h.createElement(_m,{type:"link",size:"small",disabled:n(),onClick:()=>G()},v.filterReset),h.createElement(_m,{type:"primary",size:"small",onClick:q},v.filterConfirm)))}l.filterDropdown&&(J=h.createElement(BE,{selectable:void 0},J)),J=h.createElement(eM,{className:`${a}-dropdown`},J);const ne=Lv({trigger:["click"],placement:"rtl"===ee?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof l.filterIcon?l.filterIcon(M):l.filterIcon?l.filterIcon:h.createElement(qN,null),h.createElement("span",{role:"button",tabIndex:-1,
1className:N()(`${a}-trigger`,{active:M}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:y},Object.assign(Object.assign({},$),{rootClassName:N()(C,$.rootClassName),open:R,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==L&&z(rM(L)),P(e),e||l.filterDropdown||!d||q())},popupRender:()=>"function"==typeof(null==$?void 0:$.dropdownRender)?$.dropdownRender(J):J}));return h.createElement("div",{className:`${a}-column`},h.createElement("span",{className:`${i}-column-title`},b),h.createElement(pk,Object.assign({},ne)))},aM=(e,t,n)=>{let o=[];return(e||[]).forEach((e,r)=>{var i;const a=FN(r,n),l=void 0!==e.filterDropdown;if(e.filters||l||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;l||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:DN(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:DN(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(Of(o),Of(aM(e.children,t,a))))}),o};function lM(e,t,n,o,r,i,a,l,s){return n.map((n,c)=>{const d=FN(c,l),{filterOnClose:u=!0,filterMultiple:p=!0,filterMode:f,filterSearch:m}=n;let g=n;if(g.filters||g.filterDropdown){const l=DN(g,d),c=o.find(({key:e})=>l===e);g=Object.assign(Object.assign({},g),{title:o=>h.createElement(iM,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:l,filterState:c,filterOnClose:u,filterMultiple:p,filterMode:f,filterSearch:m,triggerFilter:i,locale:r,getPopupContainer:a,rootClassName:s},WN(n.title,o))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:lM(e,t,g.children,o,r,i,a,d,s)})),g})}const sM=e=>{const t={};return e.forEach(({key:e,filteredKeys:n,column:o})=>{const r=e,{filters:i,filterDropdown:a}=o;if(a)t[r]=n||null;else if(Array.isArray(n)){const e=tM(i);t[r]=e.filter(e=>n.includes(String(e)))}else t[r]=null}),t},cM=(e,t,n)=>{const o=t.reduce((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map(e=>Object.assign({},e)).filter(e=>a.some(o=>{const a=tM(i),l=a.findIndex(e=>String(e)===String(o)),s=-1!==l?a[l]:o;return e[n]&&(e[n]=cM(e[n],t,n)),r(s,e)})):e},e);return o},dM=e=>e.flatMap(e=>"children"in e?[e].concat(Of(dM(e.children||[]))):[e]),uM=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,onFilterChange:r,getPopupContainer:i,locale:a,rootClassName:l}=e,s=(vC(),h.useMemo(()=>dM(o||[]),[o])),[c,d]=h.useState(()=>aM(s,!0)),u=h.useMemo(()=>{const e=aM(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e?t=!1:n=!1}),t){const e=(s||[]).map((e,t)=>DN(e,FN(t)));return c.filter(({key:t})=>e.includes(t)).map(t=>{const n=s[e.indexOf(t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[s,c]),p=h.useMemo(()=>sM(u),[u]),f=e=>{const t=u.filter(({key:t})=>t!==e.key);t.push(e),d(t),r(sM(t),t)};return[e=>lM(t,n,e,u,a,f,i,void 0,l),u,p]};const pM=function(e,t,n){const o=n&&"object"==typeof n?n:{},{total:r=0}=o,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["total"]),[a,l]=(0,h.useState)(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:10})),s=Lv(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);const d=(e,t)=>{l({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),d(e,o),t(e,o||(null==s?void 0:s.pageSize))}}),d]},fM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var mM=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:fM}))};const gM=h.forwardRef(mM),hM={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focu
vendor: 6,893 bytes, line 1
1sable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var vM=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:hM}))};const bM=h.forwardRef(vM),yM="ascend",CM="descend",xM=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,wM=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,$M=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:DN(e,t),multiplePriority:xM(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,i)=>{const a=FN(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat(Of(o),Of($M(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:DN(e,a),multiplePriority:xM(e),sortOrder:e.defaultSortOrder}))}),o},SM=(e,t,n,o,r,i,a,l)=>{const s=(t||[]).map((t,s)=>{const c=FN(s,l);let d=t;if(d.sorter){const l=d.sortDirections||r,s=void 0===d.showSorterTooltip?a:d.showSorterTooltip,u=DN(d,c),p=n.find(({key:e})=>e===u),f=p?p.sortOrder:null,m=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,f);let g;if(t.sortIcon)g=t.sortIcon({sortOrder:f});else{const t=l.includes(yM)&&h.createElement(bM,{className:N()(`${e}-column-sorter-up`,{active:f===yM})}),n=l.includes(CM)&&h.createElement(gM,{className:N()(`${e}-column-sorter-down`,{active:f===CM})});g=h.createElement("span",{className:N()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},h.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:y}=i||{};let C=v;m===CM?C=y:m===yM&&(C=b);const x="object"==typeof s?Object.assign({title:C},s):{title:C};d=Object.assign(Object.assign({},d),{className:N()(d.className,{[`${e}-column-sort`]:f}),title:n=>{const o=`${e}-column-sorters`,r=h.createElement("span",{className:`${e}-column-title`},WN(t.title,n)),i=h.createElement("div",{className:o},r,g);return s?"boolean"!=typeof s&&"sorter-icon"===(null==s?void 0:s.target)?h.createElement("div",{className:N()(o,`${o}-tooltip-target-sorter`)},r,h.createElement(f$,Object.assign({},x),g)):h.createElement(f$,Object.assign({},x),i):i},onHeaderCell:n=>{var r;const i=(null===(r=t.onHeaderCell)||void 0===r?void 0:r.call(t,n))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{o({column:t,key:u,sortOrder:m,multiplePriority:xM(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===gs.ENTER&&(o({column:t,key:u,sortOrder:m,multiplePriority:xM(t)}),null==l||l(e))};const s=(e=>{const t=WN(e,{});return"[object Object]"===Object.prototype.toString.call(t)?"":t})(t.title),c=null==s?void 0:s.toString();return f&&(i["aria-sort"]="ascend"===f?"ascending":"descending"),i["aria-label"]=c||"",i.className=N()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=s?s:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:SM(e,d.children,n,o,r,i,a,c)})),d});return s},EM=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},kM=e=>{const t=e.filter(({sortOrder:e})=>e).map(EM);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},EM(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},OM=(e,t,n)=>{const o=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),r=e.slice(),i=o.filter(({column:{sorter:e},sortOrder:t})=>wM(e)&&t);return i.length?r.sort((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:a}=o,l=wM(r);if(l&&a){const n=l(e,t,a);if(0!==n)return a===yM?n:-n}}return 0}).map(e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:OM(o,t,n)}):e}):r},IM=(e,t)=>{const n=e.map(e=>{const n=Object.assign({},e);return n.title=WN(e.title,t),"children"in n&&(n.children=IM(n.children,t)),n});return n},NM=RI((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o}),jM=NM,MM=GI((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o}),PM=MM,RM=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,c=`${Jt(n)} ${o} ${r}`,d=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Jt(s(o).mul(-1).equal())}\n              ${Jt(s(s(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n            > ${t}-content,\n            > ${t}-header,\n            > ${t}-body,\n            > ${t}-summary\n          `]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Jt(s(a).mul(-1).equal())} ${Jt(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n                > tr${t}-expanded-row,\n                > tr${t}-placeholder\n              `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Jt(n)} 0 ${Jt(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},LM=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},dr),{wordBreak:"keep-all",[`\n          &${t}-cell-fix-left-last,\n          &${t}-cell-fix-right-first\n        `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},TM=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n          &:hover > th,\n          &:hover >
1 td,\n        ":{background:e.colorBgContainer}}}}},zM=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:d,tablePaddingVertical:u,tablePaddingHorizontal:p,tableExpandedRowBg:f,paddingXXS:m,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,C=`${Jt(r)} ${a} ${l}`,x=y(m).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},gr(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:Jt(h),background:s,border:C,borderRadius:d,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:x,insetInlineStart:x,height:r},"&::after":{top:x,bottom:x,insetInlineStart:v,width:r,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Jt(y(u).mul(-1).equal())} ${Jt(y(p).mul(-1).equal())}`,padding:`${Jt(u)} ${Jt(p)}`}}}},BM=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:d,tableBorderColor:u,headerIconColor:p,fontSizeSM:f,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorIcon:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:C,tableFilterDropdownBg:x,tableFilterDropdownHeight:w,controlItemBgHover:$,controlItemBgActive:S,boxShadowSecondary:E,filterDropdownMenuBg:k,calc:O}=e,I=`${n}-dropdown`,N=`${t}-filter-dropdown`,j=`${n}-tree`,M=`${Jt(c)} ${d} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:O(a).mul(-1).equal(),marginInline:`${Jt(a)} ${Jt(O(m).div(2).mul(-1).equal())}`,padding:`0 ${Jt(a)}`,color:p,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[N]:Object.assign(Object.assign({},ur(e)),{minWidth:r,backgroundColor:x,borderRadius:g,boxShadow:E,overflow:"hidden",[`${I}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${Jt(l)} 0`,color:C,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${N}-tree`]:{paddingBlock:`${Jt(l)} 0`,paddingInline:l,[j]:{padding:0},[`${j}-treenode ${j}-node-content-wrapper:hover`]:{backgroundColor:$},[`${j}-treenode-checkbox-checked ${j}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${N}-search`]:{padding:l,borderBottom:M,"&-input":{input:{minWidth:i},[o]:{color:C}}},[`${N}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${N}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Jt(O(l).sub(c).equal())} ${Jt(l)}`,overflow:"hidden",borderTop:M}})}},{[`${n}-dropdown ${N}, ${N}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},HM=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,c=o;return{[`${t}-wrapper`]:{[`\n        ${t}-cell-fix-left,\n        ${t}-cell-fix-right\n      `]:{position:"sticky !important",zIndex:i,background:a},[`\n        ${t}-cell-fix-left-first::after,\n        ${t}-cell-fix-left-last::after\n      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n        ${t}-cell-fix-right-first::after,\n        ${t}-cell-fix-right-last::after\n      `]:{position:"absolute",top:0,bottom:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n          ${t}-cell-fix-left-first::after,\n          ${t}-cell-fix-left-last::after\n        `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n          ${t}-cell-fix-right-first::after,\n          ${t}-cell-fix-right-last::after\n        `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n        ${t}-cell-fix-left-first::after,\n        ${t}-cell-fix-left-last::after,\n        ${t}-cell-fix-right-first::after,\n        ${t}-cell-fix-right-last::after\n      `]:{boxShadow:"none"}}}}},_M=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${Jt(o)} 0`}}},AM=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Jt(n)} ${Jt(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Jt(n)} ${Jt(n)}`}}}}},DM=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},FM=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:u,tableRowHoverBg:p,tablePaddingHorizontal:f,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(r).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(c).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(r).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[`\n        table tr th${t}-selection-column,\n        table tr td${t}-selection-column,\n        ${t}-selection-column\n      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Jt(m(f).div(4).equal()),[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},WM=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n        ${t}-title,\n        ${t}-footer,\n        ${t}-cell,\n        ${t}-thead > tr > th,\n        ${t}-tbody > tr > th,\n        ${t}-tbody > tr > td,\n        tfoot > tr > th,\n        tfoot > tr > td\n      `]:{padding:`${Jt(r)} ${Jt(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Jt(o(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Jt(o(r).mul(-1).equal())} ${Jt(o(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Jt(o(r).mul(-1).equal()),marginInline:`${Jt(o(n).sub(i).equal())} ${Jt(o(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Jt(o(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},KM=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n          &${t}-cell-fix-left:hover,\n          &${t}-cell-fix-right:hover\n        `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},VM=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:d,tableBorderColor:u}=e,p=`${Jt(c)} ${d} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBg
vendor: 5,917 bytes, line 1
1Container},"&-scroll":{position:"sticky",bottom:0,height:`${Jt(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},qM=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i=`${Jt(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${Jt(r(n).mul(-1).equal())} 0 ${o}`}}}},GM=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,l=`${Jt(o)} ${r} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n            & > ${t}-row, \n            & > div:not(${t}-row) > ${t}-row\n          `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Jt(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},XM=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:d,tableRadius:u,tableHeaderTextColor:p,motionDurationMid:f,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${Jt(a)} ${l} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},ur(e)),{fontSize:c,background:d,borderRadius:`${Jt(u)} ${Jt(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Jt(u)} ${Jt(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n          ${t}-cell,\n          ${t}-thead > tr > th,\n          ${t}-tbody > tr > th,\n          ${t}-tbody > tr > td,\n          tfoot > tr > th,\n          tfoot > tr > td\n        `]:{position:"relative",padding:`${Jt(o)} ${Jt(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Jt(o)} ${Jt(r)}`},[`${t}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:y,[`\n              > ${t}-wrapper:only-child,\n              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n            `]:{[t]:{marginBlock:Jt(b(o).mul(-1).equal()),marginInline:`${Jt(b(i).sub(r).equal())}\n                ${Jt(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${f} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${Jt(o)} ${Jt(r)}`,color:h,background:v}})}},UM=zr("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:d,rowSelectedBg:u,rowSelectedHoverBg:p,rowExpandedBg:f,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:C,footerBg:x,footerColor:w,headerBorderRadius:$,cellFontSize:S,cellFontSizeMD:E,cellFontSizeSM:k,headerSplitColor:O,fixedHeaderSortActiveBg:I,headerFilterHoverBg:N,filterDropdownBg:j,expandIconBg:M,selectionColumnWidth:P,stickyScrollBarBg:R,calc:L}=e,T=or(e,{tableFontSize:S,tableBg:o,tableRadius:$,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:C,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:x,tableHeaderCellSplitColor:O,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:N,tableFilterDropdownBg:j,tableRowHoverBg:d,tableSelectedRowBg:u,tableSelectedRowHoverBg:p,zIndexTableFixed:2,zIndexTableSticky:L(2).add(1).equal({unit:!1}),tableFontSizeMiddle:E,tableFontSizeSmall:k,tableSelectionColumnWidth:P,tableExpandIconBg:M,tableExpandColumnWidth:L(r).add(L(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:R,tableScrollThumbBgHover:t,tableScrollBg:n});
1return[XM(T),_M(T),qM(T),KM(T),BM(T),RM(T),AM(T),zM(T),qM(T),TM(T),FM(T),HM(T),VM(T),LM(T),WM(T),DM(T),GM(T)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:d,colorBorderSecondary:u,borderRadiusLG:p,controlHeight:f,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:C,opacityLoading:x,controlInteractiveSize:w}=e,$=new L(r).onBackground(n).toHexString(),S=new L(i).onBackground(n).toHexString(),E=new L(t).onBackground(n).toHexString(),k=new L(y),O=new L(C),I=w/2-b,N=2*I+3*b;return{headerBg:E,headerColor:o,headerSortActiveBg:$,headerSortHoverBg:S,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:u,headerBorderRadius:p,footerBg:E,footerColor:o,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:u,fixedHeaderSortActiveBg:$,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:k.clone().setA(k.a*x).toRgbString(),headerIconHoverColor:O.clone().setA(O.a*x).toRgbString(),expandIconHalfInner:I,expandIconSize:N,expandIconScale:w/N}},{unitless:{expandIconScale:!0}}),ZM=[],YM=(e,t)=>{var n,o;const{prefixCls:r,className:i,rootClassName:a,style:l,size:s,bordered:c,dropdownPrefixCls:d,dataSource:u,pagination:p,rowSelection:f,rowKey:m="key",rowClassName:g,columns:v,children:b,childrenColumnName:y,onChange:C,getPopupContainer:x,loading:w,expandIcon:$,expandable:S,expandedRowRender:E,expandIconColumnIndex:k,indentSize:O,scroll:I,sortDirections:j,locale:M,showSorterTooltip:P={target:"full-header"},virtual:R}=e;vC();const L=h.useMemo(()=>v||vI(b),[v,b]),T=h.useMemo(()=>L.some(e=>e.responsive),[L]),z=Vm(T),B=h.useMemo(()=>{const e=new Set(Object.keys(z).filter(e=>z[e]));return L.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[L,z]),H=vt(e,["className","style","columns"]),{locale:_=Pv,direction:A,table:D,renderEmpty:F,getPrefixCls:W,getPopupContainer:K}=h.useContext(wt),V=Jr(s),q=Object.assign(Object.assign({},_.Table),M),G=u||ZM,X=W("table",r),U=W("dropdown",d),[,Z]=Tr(),Y=Od(X),[Q,J,ee]=UM(X,Y),te=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:k},S),{expandIcon:null!==(n=null==S?void 0:S.expandIcon)&&void 0!==n?n:null===(o=null==D?void 0:D.expandable)||void 0===o?void 0:o.expandIcon}),{childrenColumnName:ne="children"}=te,oe=h.useMemo(()=>G.some(e=>null==e?void 0:e[ne])?"nest":E||(null==S?void 0:S.expandedRowRender)?"row":null,[G]),re={body:h.useRef(null)},ie=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return r}}(X),ae=h.useRef(null),le=h.useRef(null);((e,t)=>{(0,h.useImperativeHandle)(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach(e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}}),o);var o,r})})(t,()=>Object.assign(Object.assign({},le.current),{nativeElement:ae.current}));const se=h.useMemo(()=>"function"==typeof m?m:e=>null==e?void 0:e[m],[m]),[ce]=((e,t,n)=>{const o=h.useRef({});return[function(r){var i;if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){const a=new Map;function l(e){e.forEach((e,o)=>{const r=n(e,o);a.set(r,e),e&&"object"==typeof e&&t in e&&l(e[t]||[])})}l(e),o.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=o.current.kvMap)||void 0===i?void 0:i.get(r)}]})(G,ne,se),de={},ue=(e,t,n=!1)=>{var o,r,i,a;const l=Object.assign(Object.assign({},de),e);
vendor: 1,429 bytes, line 1
1n&&(null===(o=de.resetPagination)||void 0===o||o.call(de),(null===(r=l.pagination)||void 0===r?void 0:r.current)&&(l.pagination.current=1),p&&(null===(i=p.onChange)||void 0===i||i.call(p,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),I&&!1!==I.scrollToFirstRowOnChange&&re.body.current&&function(e,t={}){const{getContainer:n=()=>window,callback:o,duration:r=450}=t,i=n(),a=(e=>{var t,n;if("undefined"==typeof window)return 0;let o=0;return AN(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:e instanceof HTMLElement?o=e.scrollTop:e&&(o=e.scrollTop),e&&!AN(e)&&"number"!=typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o})(i),l=Date.now(),s=()=>{const t=Date.now()-l,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);AN(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?ya(s):"function"==typeof o&&o()};ya(s)}(0,{getContainer:()=>re.body.current}),null==C||C(l.pagination,l.filters,l.sorter,{currentDataSource:cM(OM(G,l.sorterStates,ne),l.filterStates,ne),action:t})},[pe,fe,me,ge]=(e=>{const{prefixCls:t,mergedColumns:n,sortDirections:o,tableLocale:r,showSorterTooltip:i,onSorterChange:a}=e,[l,s]=h.useState(()=>$M(n,!0)),c=(e,t)=>{const n=[];return e.forEach((e,o)=>{const r=FN(o,t);
1if(n.push(DN(e,r)),Array.isArray(e.children)){const t=c(e.children,r);n.push.apply(n,Of(t))}}),n},d=h.useMemo(()=>{let e=!0;const t=$M(n,!1);if(!t.length){const e=c(n);return l.filter(({key:t})=>e.includes(t))}const o=[];function r(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach(t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))}),o},[n,l]),u=h.useMemo(()=>{var e,t;const n=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}},[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(Of(d.filter(({key:t})=>t!==e.key)),[e]):[e],s(t),a(kM(t),t)};return[e=>SM(t,e,d,p,o,r,i),d,u,()=>kM(d)]})({prefixCls:X,mergedColumns:B,onSorterChange:(e,t)=>{ue({sorter:e,sorterStates:t},"sort",!1)},sortDirections:j||["ascend","descend"],tableLocale:q,showSorterTooltip:P}),he=h.useMemo(()=>OM(G,fe,ne),[G,fe]);de.sorter=ge(),de.sorterStates=fe;const[ve,be,ye]=uM({prefixCls:X,locale:q,dropdownPrefixCls:U,mergedColumns:B,onFilterChange:(e,t)=>
1{ue({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||K,rootClassName:N()(a,Y)}),Ce=cM(he,be,ne);de.filters=ye,de.filterStates=be;const xe=h.useMemo(()=>{const e={};return Object.keys(ye).forEach(t=>{null!==ye[t]&&(e[t]=ye[t])}),Object.assign(Object.assign({},me),{filters:e})},[me,ye]),[we]=(e=>[h.useCallback(t=>IM(t,e),[e])])(xe),[$e,Se]=pM(Ce.length,(e,t)=>{ue({pagination:Object.assign(Object.assign({},de.pagination),{current:e,pageSize:t})},"paginate")},p);de.pagination=!1===p?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"==typeof t?t:{};return Object.keys(o).forEach(t=>{const o=e[t];"function"!=typeof o&&(n[t]=o)}),n}($e,p),de.resetPagination=Se;const Ee=h.useMemo(()=>{if(!1===p||!$e.pageSize)return Ce;const{current:e=1,total:t,pageSize:n=10}=$e;return Ce.length<t?Ce.length>n?Ce.slice((e-1)*n,e*n):Ce:Ce.slice((e-1)*n,e*n)},[!!p,Ce,null==$e?void 0:$e.current,null==$e?void 0:$e.pageSize,null==$e?void 0:$e.total]),[ke,Oe]=((e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:o,defaultSelectedRowKeys:r,getCheckboxProps:i,getTitleCheckboxProps:a,onChange:l,onSelect:s,onSelectAll:c,onSelectInvert:d,onSelectNone:u,onSelectMultiple:p,columnWidth:f,type:m,selections:g,fixed:v,renderCell:b,hideSelectAll:y,checkStrictly:C=!0}=t||{},{prefixCls:x,data:w,pageData:$,getRecordByKey:S,getRowKey:E,expandType:k,childrenColumnName:O,locale:I,getPopupContainer:j}=e,M=vC(),[P,R]=(e=>{const[t,n]=(0,h.useState)(null);return[(0,h.useCallback)((o,r,i)=>{const a=null!=t?t:o,l=Math.min(a||0,o),s=Math.max(a||0,o),c=r.slice(l,s+1).map(e),d=c.some(e=>!i.has(e)),u=[];return c.forEach(e=>{d?(i.has(e)||u.push(e),i.add(e)):(i.delete(e),u.push(e))}),n(d?s:null),u},[t]),n]})(e=>e),[L,T]=Lo(o||r||HN,{value:o}),z=h.useRef(new Map),B=(0,h.useCallback)(e=>{if(n){const t=new Map;e.forEach(e=>{let n=S(e);!n&&z.current.has(e)&&(n=z.current.get(e)),t.set(e,n)}),z.current=t}},[S,n]);h.useEffect(()=>{B(L)},[L]);const H=(0,h.useMemo)(()=>_N(O,$),[O,$]),{keyEntities:_}=(0,h.useMemo)(()=>{if(C)return{keyEntities:null};let e=w;if(n){const t=new Set(H.map((e,t)=>E(e,t))),n=Array.from(z.current).reduce((e,[n,o])=>t.has(n)?e:e.concat(o),[]);e=[].concat(Of(e),Of(n))}return iN(e,{externalGetKey:E,childrenPropName:O})},[w,E,C,O,n,H]),A=(0,h.useMemo)(()=>{const e=new Map;return H.forEach((t,n)=>{const o=E(t,n),r=(i?i(t):null)||{};e.set(o,r)}),e},[H,E,i]),D=(0,h.useCallback)(e=>{const t=E(e);let n;return n=A.has(t)?A.get(E(e)):i?i(e):void 0,!!(null==n?void 0:n.disabled)},[A,E]),[F,W]=(0,h.useMemo)(()=>{if(C)return[L||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=SN(L,!0,_,D);return[e||[],t]},[L,C,_,D]),K=(0,h.useMemo)(()=>{const e="radio"===m?F.slice(0,1):F;return new Set(e)},[F,m]),V=(0,h.useMemo)(()=>"radio"===m?new Set:new Set(W),[W,m]);h.useEffect(()=>{t||T(HN)},[!!t]);const q=(0,h.useCallback)((e,t)=>{let o,r;B(e),n?(o=e,r=e.map(e=>z.current.get(e))):(o=[],r=[],e.forEach(e=>{const t=S(e);void 0!==t&&(o.push(e),r.push(t))})),T(o),null==l||l(o,r,{type:t})},[T,S,l,n]),G=(0,h.useCallback)((e,t,n,o)=>{if(s){const r=n.map(e=>S(e));s(S(e),t,r,o)}q(n,"single")},[s,S,q]),X=(0,h.useMemo)(()=>!g||y?null:(!0===g?[TN,zN,BN]:g).map(e=>e===TN?{key:"all",text:I.selectionAll,onSelect(){q(w.map((e,t)=>E(e,t)).filter(e=>{const t=A.get(e);return!(null==t?void 0:t.disabled)||K.has(e)}),"all")}}:e===zN?{key:"invert",text:I.selectInvert,onSelect(){const e=new Set(K);$.forEach((t,n)=>{const o=E(t,n),r=A.get(o);(null==r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))});const t=Array.from(e);d&&(M.deprecated(!1,"onSelectInvert","onChange"),d(t)),q(t,"invert")}}:e===BN?{key:"none",text:I.selectNone,onSelect(){null==u||u(),q(Array.from(K).filter(e=>{const t=A.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var n,o;null===(o=e.onSelect)||void 0===o||(n=o).call.apply(n,[e].concat(t)),R(null)}})),[g,K,$,E,d,q]),U=(0,h.useCallback)(e=>{var n;if(!t)return e.filter(e=>e!==LN);let o=Of(e);const r=new Set(K),i=H.map(E).filter(e=>!A.get(e).disabled),l=i.every(e=>r.has(e)),s=i.some(e=>r.has(e));let d,u,w;if("radio"!==m){let e;if(X){const t={getPopupContainer:j,items:X.map((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!=n?n:t,onClick:()=>{null==r||r(i)},label:o}})};e=h.createElement("div",{className:`${x}-selection-extra`},h.createElement(pk,{menu:t,getPopupContainer:j},h.createElement("span",null,h.createElement(zx,null))))}const t=H.map((e,t)=>{const n=E(e,t),o=A.get(n)||{};return Object.assign({checked:r.has(n)},o)}).filter(({disabled:e})=>e),n=!!t.length&&t.length===H.length,o=n&&t.every(({checked:e})=>e),p=n&&t.some(({checked:e})=>e),f=(null==a?void 0:a())||{},{onChange:m,disabled:g}=f;u=h.createElement(RN,Object.assign({"aria-label":e?"Custom selection":"Select all"},f,{checked:n?o:!!H.length&&l,indeterminate:n?!o&&p:!l&&s,onChange:e=>{(()=>{const e=[];
1l?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});const t=Array.from(r);null==c||c(!l,t.map(e=>S(e)),e.map(e=>S(e))),q(t,"all"),R(null)})(),null==m||m(e)},disabled:null!=g?g:0===H.length||n,skipGroup:!0})),d=!y&&h.createElement("div",{className:`${x}-selection`},u,e)}if(w="radio"===m?(e,t,n)=>{const o=E(t,n),i=r.has(o),a=A.get(o);return{node:h.createElement(Xb,Object.assign({},a,{checked:i,onClick:e=>{var t;e.stopPropagation(),null===(t=null==a?void 0:a.onClick)||void 0===t||t.call(a,e)},onChange:e=>{var t;r.has(o)||G(o,!0,[o],e.nativeEvent),null===(t=null==a?void 0:a.onChange)||void 0===t||t.call(a,e)}})),checked:i}}:(e,t,n)=>{var o;const a=E(t,n),l=r.has(a),s=V.has(a),c=A.get(a);let d;return d="nest"===k?s:null!==(o=null==c?void 0:c.indeterminate)&&void 0!==o?o:s,{node:h.createElement(RN,Object.assign({},c,{indeterminate:d,checked:l,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==c?void 0:c.onClick)||void 0===t||t.call(c,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:o}=n,s=i.indexOf(a),d=F.some(e=>i.includes(e));if(o&&C&&d){const e=P(s,i,r),t=Array.from(r);null==p||p(!l,t.map(e=>S(e)),e.map(e=>S(e))),q(t,"multiple")}else{const e=F;if(C){const t=l?fN(e,a):mN(e,a);G(a,!l,t,n)}else{const t=SN([].concat(Of(e),[a]),!0,_,D),{checkedKeys:o,halfCheckedKeys:r}=t;let i=o;if(l){const e=new Set(o);e.delete(a),i=SN(Array.from(e),{checked:!1,halfCheckedKeys:r},_,D).checkedKeys}G(a,!l,i,n)}}R(l?null:s),null===(t=null==c?void 0:c.onChange)||void 0===t||t.call(c,e)}})),checked:l}},!o.includes(LN))if(0===o.findIndex(e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[aI])||void 0===t?void 0:t.columnType)})){const[e,...t]=o;o=[e,LN].concat(Of(t))}else o=[LN].concat(Of(o));const $=o.indexOf(LN);o=o.filter((e,t)=>e!==LN||t===$);const O=o[$-1],I=o[$+1];let M=v;void 0===M&&(void 0!==(null==I?void 0:I.fixed)?M=I.fixed:void 0!==(null==O?void 0:O.fixed)&&(M=O.fixed)),M&&O&&"EXPAND_COLUMN"===(null===(n=O[aI])||void 0===n?void 0:n.columnType)&&void 0===O.fixed&&(O.fixed=M);const L=N()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:g&&"checkbox"===m}),T={fixed:M,width:f,className:`${x}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(u):t.columnTitle:d,render:(e,t,n)=>{const{node:o,checked:r}=w(e,t,n);return b?b(r,t,n,o):o},onCell:t.onCell,align:t.align,[aI]:{className:L}};return o.map(e=>e===LN?T:e)},[E,H,t,F,K,V,f,X,k,A,p,G,D]);return[U,K]})({prefixCls:X,data:Ce,pageData:Ee,getRowKey:se,getRecordByKey:ce,expandType:oe,childrenColumnName:ne,locale:q,getPopupContainer:x||K},f);te.__PARENT_RENDER_ICON__=te.expandIcon,te.expandIcon=te.expandIcon||$||function(e){return t=>{const{prefixCls:n,onExpand:o,record:r,expanded:i,expandable:a}=t,l=`${n}-row-expand-icon`;return h.createElement("button",{type:"button",onClick:e=>{o(r,e),e.stopPropagation()},className:N()(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}(q),"nest"===oe&&void 0===te.expandIconColumnIndex?te.expandIconColumnIndex=f?1:0:te.expandIconColumnIndex>0&&f&&(te.expandIconColumnIndex-=1),"number"!=typeof te.indentSize&&(te.indentSize="number"==typeof O?O:15);const Ie=h.useCallback(e=>we(ke(ve(pe(e)))),[pe,ve,ke]),Ne=h.useMemo(()=>"boolean"==typeof w?{spinning:w}:"object"==typeof w&&null!==w?Object.assign({spinning:!0},w):void 0,[w]),je=N()(ee,Y,`${X}-wrapper`,null==D?void 0:D.className,{[`${X}-wrapper-rtl`]:"rtl"===A},i,a,J),Me=Object.assign(Object.assign({},null==D?void 0:D.style),l),Pe=h.useMemo(()=>(null==Ne?void 0:Ne.spinning)&&G===ZM?null:void 0!==(null==M?void 0:M.emptyText)?M.emptyText:(null==F?void 0:F("Table"))||h.createElement(YC,{componentName:"Table"}),[null==Ne?void 0:Ne.spinning,G,null==M?void 0:M.emptyText,F]),Re=R?PM:jM,Le={},Te=h.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:o,paddingXS:r,paddingSM:i}=Z,a=Math.floor(e*t);switch(V){case"middle":return 2*i+a+n;case"small":return 2*r+a+n;default:return 2*o+a+n}},[Z,V]);R&&(Le.listItemHeight=Te);const{top:ze,bottom:Be}=(()=>
1{if(!1===p||!(null==$e?void 0:$e.total))return{};const e=e=>{const t="left"===e?"start":"right"===e?"end":e;return h.createElement(Ak,Object.assign({},$e,{align:$e.align||t,className:N()(`${X}-pagination`,$e.className),size:$e.size||("small"===V||"middle"===V?"small":void 0)}))},t="rtl"===A?"left":"right",n=$e.position;if(null===n||!Array.isArray(n))return{bottom:e(t)};const o=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("top")),r=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("bottom")),i=n.every(e=>"none"==`${e}`),a=o?o.toLowerCase().replace("top",""):"",l=r?r.toLowerCase().replace("bottom",""):"",s=!o&&!r&&!i;return{top:a?e(a):void 0,bottom:l?e(l):s?e(t):void 0}})();return Q(h.createElement("div",{ref:ae,className:je,style:Me},h.createElement(z$,Object.assign({spinning:!1},Ne),ze,h.createElement(Re,Object.assign({},Le,H,{ref:le,columns:B,direction:A,expandable:te,prefixCls:X,className:N()({[`${X}-middle`]:"middle"===V,[`${X}-small`]:"small"===V,[`${X}-bordered`]:c,[`${X}-empty`]:0===G.length},ee,Y,J),data:Ee,rowKey:se,rowClassName:(e,t,n)=>{let o;return o="function"==typeof g?N()(g(e,t,n)):N()(g),N()({[`${X}-row-selected`]:Oe.has(se(e,t))},o)},emptyText:Pe,internalHooks:SO,internalRefs:re,transformColumns:Ie,getContainerWidth:ie,measureRowRender:e=>h.createElement(DC,{getPopupContainer:e=>e},e)})),Be)))},QM=h.forwardRef(YM),JM=(e,t)=>{const n=h.useRef(0);return n.current+=1,h.createElement(QM,Object.assign({},e,{ref:t,_renderTimes:n.current}))},eP=h.forwardRef(JM);eP.SELECTION_COLUMN=LN,eP.EXPAND_COLUMN=$O,eP.SELECTION_ALL=TN,eP.SELECTION_INVERT=zN,eP.SELECTION_NONE=BN,eP.Column=e=>null,eP.ColumnGroup=e=>null,eP.Summary=VO;const tP=eP,nP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var oP=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:nP}))};const rP=h.forwardRef(oP),iP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var aP=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:iP}))};const lP=h.forwardRef(aP),sP=e=>{const t={};return[1,2,3,4,5].forEach(n=>{t[`\n      h${n}&,\n      div&-h${n},\n      div&-h${n} > textarea,\n      h${n}\n    `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},cP=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},gr(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},dP=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:K[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),uP=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(o).div(-2).add(1).equal(),marginBottom:e.calc(o).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},pP=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),fP=zr("Typography",e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},sP(e)),{[`\n      & + h1${t},\n      & + h2${t},\n      & + h3${t},\n      & + h4${t},\n      & + h5${t}\n      `]:{marginTop:n},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:n}}}),dP(e)),cP(e)),{[`\n        ${t}-expand,\n        ${t}-collapse,\n        ${t}-edit,\n        ${t}-copy\n      `]:Object.assign(Object.assign({},gr(e)),{marginInlineStart:e.marginXXS})}),uP(e)),pP(e)),{"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),mP=e=>{const{prefixCls:t,"aria-label":n,className:o,style:r,direction:i,maxLength:a,autoSize:l=!0,value:s,onSave:c,onCancel:d,onEnd:u,component:p,enterIcon:f=h.createElement(lP,null)}=e,m=h.useRef(null),g=h.useRef(!1),v=h.useRef(null),[b,y]=h.useState(s);h.useEffect(()=>{y(s)},[s]),h.useEffect(()=>{var e;if(null===(e=m.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const C=()=>{c(b.trim())},[x,w,$]=fP(t),S=N()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===i,[`${t}-${p}`]:!!p},o,w,$);return x(h.createElement("div",{className:S,style:r}
1,h.createElement(ov,{ref:m,maxLength:a,value:b,onChange:({target:e})=>{y(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{g.current||(v.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:n,metaKey:o,shiftKey:r})=>{v.current!==e||g.current||t||n||o||r||(e===gs.ENTER?(C(),null==u||u()):e===gs.ESC&&d())},onCompositionStart:()=>{g.current=!0},onCompositionEnd:()=>{g.current=!1},onBlur:()=>{C()},"aria-label":n,rows:1,autoSize:l}),null!==f?qp(f,{className:`${t}-edit-content-confirm`}):null))};var gP=n(965),hP=n.n(gP);const vP=({copyConfig:e,children:t})=>{const[n,o]=h.useState(!1),[r,i]=h.useState(!1),a=h.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},s={};return e.format&&(s.format=e.format),h.useEffect(()=>l,[]),{copied:n,copyLoading:r,onClick:Mo(n=>{return r=void 0,c=void 0,u=function*(){var r;null==n||n.preventDefault(),null==n||n.stopPropagation(),i(!0);try{const c="function"==typeof e.text?yield e.text():e.text;hP()(c||((e,t=!1)=>t&&null==e?[]:Array.isArray(e)?e:[e])(t,!0).join("")||"",s),i(!1),o(!0),l(),a.current=setTimeout(()=>{o(!1)},3e3),null===(r=e.onCopy)||void 0===r||r.call(e,n)}catch(e){throw i(!1),e}},new((d=void 0)||(d=Promise))(function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var r;t.done?e(t.value):(r=t.value,r instanceof d?r:new d(function(e){e(r)})).then(n,o)}i((u=u.apply(r,c||[])).next())});var r,c,d,u})}};function bP(e,t){return h.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}const yP=h.forwardRef((e,t)=>{const{prefixCls:n,component:o="article",className:r,rootClassName:i,setContentRef:a,children:l,direction:s,style:c}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:u,direction:p,className:f,style:m}=Et("typography"),g=null!=s?s:p,v=a?Fo(t,a):t,b=u("typography",n),[y,C,x]=fP(b),w=N()(b,f,{[`${b}-rtl`]:"rtl"===g},r,i,C,x),$=Object.assign(Object.assign({},m),c);return y(h.createElement(o,Object.assign({className:w,style:$,ref:v},d),l))}),CP=yP,xP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var wP=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:xP}))};const $P=h.forwardRef(wP);function SP(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function EP(e,t,n){return!0===e||void 0===e?t:e||n&&t}const kP=e=>["string","number"].includes(typeof e),OP=({prefixCls:e,copied:t,locale:n,iconOnly:o,tooltips:r,icon:i,tabIndex:a,onCopy:l,loading:s})=>{const c=SP(r),d=SP(i),{copied:u,copy:p}=null!=n?n:{},f=t?u:p,m=EP(c[t?1:0],f),g="string"==typeof m?m:f;return h.createElement(f$,{title:m},h.createElement("button",{type:"button",className:N()(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:o}),onClick:l,"aria-label":g,tabIndex:a},t?EP(d[1],h.createElement(Rx,null),!0):EP(d[0],s?h.createElement(zf,null):h.createElement($P,null),!0)))},IP=h.forwardRef(({style:e,children:t},n)=>{const o=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{const e=o.current;return e.scrollHeight>e.clientHeight},getHeight:()=>o.current.clientHeight})),h.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}
1);function NP(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(kP(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const jP=0,MP=4,PP={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function RP(e){const{enableMeasure:t,width:n,text:o,children:r,rows:i,expanded:a,miscDeps:l,onEllipsis:s}=e,c=h.useMemo(()=>Mi(o),[o]),d=h.useMemo(()=>(e=>e.reduce((e,t)=>e+(kP(t)?String(t).length:1),0))(c),[o]),u=h.useMemo(()=>r(c,!1),[o]),[p,f]=h.useState(null),m=h.useRef(null),g=h.useRef(null),v=h.useRef(null),b=h.useRef(null),y=h.useRef(null),[C,x]=h.useState(!1),[w,$]=h.useState(jP),[S,E]=h.useState(0),[k,O]=h.useState(null);sn(()=>{$(t&&n&&d?1:jP)},[n,o,i,t,c]),sn(()=>{var e,t,n,o;if(1===w){$(2);const e=g.current&&getComputedStyle(g.current).whiteSpace;O(e)}else if(2===w){const r=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());$(r?3:MP),f(r?[0,d]:null),x(r);const a=(null===(t=v.current)||void 0===t?void 0:t.getHeight())||0,l=1===i?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(o=y.current)||void 0===o?void 0:o.getHeight())||0,u=Math.max(a,l+c);E(u+1),s(r)}},[w]);const I=p?Math.ceil((p[0]+p[1])/2):0;sn(()=>{var e;const[t,n]=p||[0,0];if(t!==n){const o=((null===(e=m.current)||void 0===e?void 0:e.getHeight())||0)>S;let r=I;n-t===1&&(r=o?t:n),f(o?[t,r]:[r,n])}},[p,I]);const N=h.useMemo(()=>{if(!t)return r(c,!1);if(3!==w||!p||p[0]!==p[1]){const e=r(c,!1);return[MP,jP].includes(w)?e:h.createElement("span",{style:Object.assign(Object.assign({},PP),{WebkitLineClamp:i})},e)}return r(a?c:NP(c,p[0]),C)},[a,w,p,c].concat(Of(l))),j={width:n,margin:0,padding:0,whiteSpace:"nowrap"===k?"normal":"inherit"};return h.createElement(h.Fragment,null,N,2===w&&h.createElement(h.Fragment,null,h.createElement(IP,{style:Object.assign(Object.assign(Object.assign({},j),PP),{WebkitLineClamp:i}),ref:v},u),h.createElement(IP,{style:Object.assign(Object.assign(Object.assign({},j),PP),{WebkitLineClamp:i-1}),ref:b},u),h.createElement(IP,{style:Object.assign(Object.assign(Object.assign({},j),PP),{WebkitLineClamp:1}),ref:y},r([],!0))),3===w&&p&&p[0]!==p[1]&&h.createElement(IP,{style:Object.assign(Object.assign({},j),{top:400}),ref:m},r(NP(c,I),!0)),1===w&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const LP=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:o})=>(null==o?void 0:o.title)&&e?h.createElement(f$,Object.assign({open:!!t&&void 0},o),n):n;const TP=["delete","mark","code","underline","strong","keyboard","italic"],zP=h.forwardRef((e,t)=>{var n;const{prefixCls:o,className:r,style:i,type:a,disabled:l,children:s,ellipsis:c,editable:d,copyable:u,component:p,title:f}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=h.useContext(wt),[b]=Rv("Text"),y=h.useRef(null),C=h.useRef(null),x=g("typography",o),w=vt(m,TP),[$,S]=bP(d),[E,k]=Lo(!1,{value:S.editing}),{triggerType:O=["icon"]}=S,I=e=>{var t;e&&(null===(t=S.onStart)||void 0===t||t.call(S)),k(e)},j=(e=>{const t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e}),t.current})(E);sn(()=>{var e;!E&&j&&(null===(e=C.current)||void 0===e||e.focus())},[E]);const M=e=>{null==e||e.preventDefault(),I(!0)},[P,R]=bP(u),{copied:L,copyLoading:T,onClick:z}=vP({copyConfig:R,children:s}),[B,H]=h.useState(!1),[_,A]=h.useState(!1),[D,F]=h.useState(!1),[W,K]=h.useState(!1),[V,q]=h.useState(!0),[G,X]=bP(c,{expandable:!1,symbol:e=>e?null==b?void 0:b.collapse:null==b?void 0:b.expand}),[U,Z]=Lo(X.defaultExpanded||!1,{value:X.expanded}),Y=G&&(!U||"collapsible"===X.expandable),{rows:Q=1}=X,J=h.useMemo(()=>Y&&(void 0!==X.suffix||X.onEllipsis||X.expandable||$||P),[Y,X,$,P]);sn(()=>{G&&!J&&(H(GO("webkitLineClamp")),A(GO("textOverflow")))},[J,G]);const[ee,te]=h.useState(Y),ne=h.useMemo(()=>!J&&(1===Q?_:B),[J,_,B]);sn(()=>{te(ne&&Y)},[ne,Y]);const oe=Y&&(ee?W:D),re=Y&&1===Q&&ee,ie=Y&&Q>1&&ee,[ae,le]=h.useState(0),se=e=>{var t;F(e),D!==e&&(null===(t=X.onEllipsis)||void 0===t||t.call(X,e))};h.useEffect(()=>{const e=y.current;if(G&&ee&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return e.removeChild(t),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}(e);W!==t&&K(t)}},[G,ee,s,ie,V,ae]),h.useEffect(()=>{const e=y.current;if("undefined"==typeof IntersectionObserver||!e||!ee||!Y)return;const t=new IntersectionObserver(()=>{q(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ee,Y]);const ce=((e,t,n)=>(0,h.useMemo)(()=>!0===e?{title:null!=t?t:n}:(0,h.isValidElement)(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e},[e,t,n]))(X.tooltip,S.text,s),de=h.useMemo(()=>
1{if(G&&!ee)return[S.text,s,f,ce.title].find(kP)},[G,ee,f,ce.title,oe]);if(E)return h.createElement(mP,{value:null!==(n=S.text)&&void 0!==n?n:"string"==typeof s?s:"",onSave:e=>{var t;null===(t=S.onChange)||void 0===t||t.call(S,e),I(!1)},onCancel:()=>{var e;null===(e=S.onCancel)||void 0===e||e.call(S),I(!1)},onEnd:S.onEnd,prefixCls:x,className:r,style:i,direction:v,component:p,maxLength:S.maxLength,autoSize:S.autoSize,enterIcon:S.enterIcon});const ue=()=>{const{expandable:e,symbol:t}=X;return e?h.createElement("button",{type:"button",key:"expand",className:`${x}-${U?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;Z(t.expanded),null===(n=X.onExpand)||void 0===n||n.call(X,e,t)})(e,{expanded:!U}),"aria-label":U?b.collapse:null==b?void 0:b.expand},"function"==typeof t?t(U):t):null},pe=()=>{if(!$)return;const{icon:e,tooltip:t,tabIndex:n}=S,o=Mi(t)[0]||(null==b?void 0:b.edit),r="string"==typeof o?o:"";return O.includes("icon")?h.createElement(f$,{key:"edit",title:!1===t?"":o},h.createElement("button",{type:"button",ref:C,className:`${x}-edit`,onClick:M,"aria-label":r,tabIndex:n},e||h.createElement(rP,{role:"button"}))):null},fe=e=>[e&&ue(),pe(),P?h.createElement(OP,Object.assign({key:"copy"},R,{prefixCls:x,copied:L,locale:b,onCopy:z,loading:T,iconOnly:null==s})):null];return h.createElement(pa,{onResize:({offsetWidth:e})=>{le(e)},disabled:!Y},n=>h.createElement(LP,{tooltipProps:ce,enableEllipsis:Y,isEllipsis:oe},h.createElement(CP,Object.assign({className:N()({[`${x}-${a}`]:a,[`${x}-disabled`]:l,[`${x}-ellipsis`]:G,[`${x}-ellipsis-single-line`]:re,[`${x}-ellipsis-multiple-line`]:ie},r),prefixCls:o,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ie?Q:void 0}),component:p,ref:Fo(n,y,t),direction:v,onClick:O.includes("text")?M:void 0,"aria-label":null==de?void 0:de.toString(),title:f},w),h.createElement(RP,{enableMeasure:Y&&!ee,text:s,rows:Q,width:ae,onEllipsis:se,expanded:U,miscDeps:[L,U,T,$,P,b].concat(Of(TP.map(t=>e[t])))},(t,n)=>function({mark:e,code:t,underline:n,delete:o,strong:r,keyboard:i,italic:a},l){let s=l;function c(e,t){t&&(s=h.createElement(e,{},s))}return c("strong",r),c("u",n),c("del",o),c("code",t),c("mark",e),c("kbd",i),c("i",a),s}(e,h.createElement(h.Fragment,null,t.length>0&&n&&!U&&de?h.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!U&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),X.suffix,fe(e)])(n)))))))}),BP=zP;const HP=h.forwardRef((e,t)=>{const{ellipsis:n,rel:o,children:r,navigate:i}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["ellipsis","rel","children","navigate"]),l=Object.assign(Object.assign({},a),{rel:void 0===o&&"_blank"===a.target?"noopener noreferrer":o});return h.createElement(BP,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}),r)}),_P=HP;const AP=h.forwardRef((e,t)=>{const{children:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return h.createElement(BP,Object.assign({ref:t},o,{component:"div"}),n)});const DP=(e,t)=>{const{ellipsis:n,children:o}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["ellipsis","children"]),i=h.useMemo(()=>n&&"object"==typeof n?vt(n,["expandable","rows"]):n,[n]);return h.createElement(BP,Object.assign({ref:t},r,{ellipsis:i,component:"span"}),o)},FP=h.forwardRef(DP);const WP=[1,2,3,4,5],KP=h.forwardRef((e,t)=>
1{const{level:n=1,children:o}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["level","children"]),i=WP.includes(n)?`h${n}`:"h1";return h.createElement(BP,Object.assign({ref:t},r,{component:i}),o)}),VP=CP;VP.Text=FP,VP.Link=_P,VP.Title=KP,VP.Paragraph=AP;const qP=VP,{Text:GP,Title:XP,Paragraph:UP,Link:ZP}=qP,YP=({children:e,...n})=>(0,t.jsx)(qP,{...n,children:e});YP.Text=({children:e,...n})=>(0,t.jsx)(GP,{...n,children:e}),YP.Title=({children:e,...n})=>(0,t.jsx)(XP,{...n,children:e}),YP.Link=({children:e,...n})=>(0,t.jsx)(ZP,{...n,children:e}),YP.Paragraph=({children:e,...n})=>(0,t.jsx)(UP,{...n,children:e});const QP=YP,JP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var eR=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:JP}))};const tR=h.forwardRef(eR);function nR(){return"function"==typeof BigInt}function oR(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function rR(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var o=t||"0",r=o.split("."),i=r[0]||"0",a=r[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:o,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(o)}}function iR(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function aR(e){var t=$(e.toLowerCase().split("e"),2),n=t[0],o=t[1],r=void 0===o?"0":o,i=n.startsWith("-"),a=$((i?n.slice(1):n).split("."),2),l=a[0],s=void 0===l?"0":l,c=a[1],d=void 0===c?"":c;return{decimal:d,digits:"".concat(s).concat(d).replace(/^0+/,"")||"0",exponent:Number(r),integer:s,negative:i}}function lR(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function sR(e){var t=String(e);return iR(e)?lR(aR(t)):t.includes(".")&&dR(t)?t.length-t.indexOf(".")-1:0}function cR(e){var t=String(e);if(iR(e)){if(e>Number.MAX_SAFE_INTEGER)return String(nR()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(nR()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=aR(t),o=lR(n);t=o>100?function(e){var t=e.decimal,n=e.digits,o=e.exponent,r=e.integer,i=e.negative;if("0"===n)return"0";var a,l=r.replace(/^0+/,"").length,s=(t.match(/^0*/)||[""])[0].length,c=(l||-s)+o;return a=c<=0?"0.".concat("0".repeat(-c)).concat(n):c>=n.length?"".concat(n).concat("0".repeat(c-n.length)):"".concat(n.slice(0,c),".").concat(n.slice(c)),"".concat(i?"-":"").concat(a)}(n):e.toFixed(o)}return rR(t).fullStr}function dR(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var uR=function(){function e(t){if(Mt(this,e),k(this,"origin",""),k(this,"negative",void 0),k(this,"integer",void 0),k(this,"decimal",void 0),k(this,"decimalLen",void 0),k(this,"empty",void 0),k(this,"nan",void 0),oR(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(iR(n)&&(n=Number(n)),dR(n="string"==typeof n?n:cR(n))){var o=rR(n);this.negative=o.negative;var r=o.trimStr.split(".");this.integer=BigInt(r[0]);var i=r[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return Rt(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,o){var r=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(r),t.alignDecimal(r)).toString(),a=o(r),l=rR(i),s=l.negativeStr,c=l.trimStr,d="".concat(s).concat(c.padStart(a+1,"0"));return new e("".concat(d.slice(0,-a),".").concat(d.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":rR("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),pR=function(){function e(t){Mt(this,e),k(this,"origin",""),k(this,"number",void 0),k(this,"empty",void 0),oR(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Rt(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max(sR(this.number),sR(n));return new e(o.toFixed(r))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var o=this.number*n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max(sR(this.number),sR(n));return new e(o.toFixed(r))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":iR(this.number)&&sR(this.number)>100?String(this.number):cR(this.number)}}]),e}();function fR(e){return nR()?new uR(e):new pR(e)}function mR(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var r=rR(e),i=r.negativeStr,a=r.integerStr,l=r.decimalStr,s="".concat(t).concat(l),c="".concat(i).c
vendor: 14,380 bytes, line 1
1oncat(a);if(n>=0){var d=Number(l[n]);return d>=5&&!o?mR(fR(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-d)).toString(),t,n,o):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}const gR=fR;function hR(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,r=e.upDisabled,i=e.downDisabled,a=e.onStep,l=h.useRef(),s=h.useRef([]),c=h.useRef();c.current=a;var d,u,p,f=function(){clearTimeout(l.current)},m=function(e,t){e.preventDefault(),f(),c.current(t),l.current=setTimeout(function e(){c.current(t),l.current=setTimeout(e,200)},600)};if(h.useEffect(function(){return function(){f(),s.current.forEach(function(e){return ya.cancel(e)})}},[]),d=$((0,h.useState)(!1),2),u=d[0],p=d[1],sn(function(){p(Ni())},[]),u)return null;var v="".concat(t,"-handler"),b=N()(v,"".concat(v,"-up"),k({},"".concat(v,"-up-disabled"),r)),y=N()(v,"".concat(v,"-down"),k({},"".concat(v,"-down-disabled"),i)),C=function(){return s.current.push(ya(f))},x={unselectable:"on",role:"button",onMouseUp:C,onMouseLeave:C};return h.createElement("div",{className:"".concat(v,"-wrap")},h.createElement("span",g({},x,{onMouseDown:function(e){m(e,!0)},"aria-label":"Increase Value","aria-disabled":r,className:b}),n||h.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),h.createElement("span",g({},x,{onMouseDown:function(e){m(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:y}),o||h.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function vR(e){var t="number"==typeof e?cR(e):rR(e).fullStr;return t.includes(".")?rR(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const bR=function(){var e=(0,h.useRef)(0),t=function(){ya.cancel(e.current)};return(0,h.useEffect)(function(){return t},[]),function(n){t(),e.current=ya(function(){n()})}};n.dn(bR);var yR=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],CR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],xR=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},wR=function(e){var t=gR(e);return t.isInvalidate()?null:t},$R=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.min,a=e.max,l=e.step,s=void 0===l?1:l,c=e.defaultValue,d=e.value,u=e.disabled,p=e.readOnly,f=e.upHandler,m=e.downHandler,v=e.keyboard,b=e.changeOnWheel,y=void 0!==b&&b,C=e.controls,x=void 0===C||C,w=(e.classNames,e.stringMode),E=e.parser,I=e.formatter,j=e.precision,M=e.decimalSeparator,P=e.onChange,R=e.onInput,L=e.onPressEnter,T=e.onStep,z=e.changeOnBlur,B=void 0===z||z,H=e.domRef,_=O(e,yR),A="".concat(n,"-input"),D=h.useRef(null),F=$(h.useState(!1),2),W=F[0],K=F[1],V=h.useRef(!1),q=h.useRef(!1),G=h.useRef(!1),X=$(h.useState(function(){return gR(null!=d?d:c)}),2),U=X[0],Z=X[1],Y=h.useCallback(function(e,t){if(!t)return j>=0?j:Math.max(sR(e),sR(s))},[j,s]),Q=h.useCallback(function(e){var t=String(e);if(E)return E(t);var n=t;return M&&(n=n.replace(M,".")),n.replace(/[^\w.-]+/g,"")},[E,M]),J=h.useRef(""),ee=h.useCallback(function(e,t){if(I)return I(e,{userTyping:t,input:String(J.current)});var n="number"==typeof e?cR(e):e;if(!t){var o=Y(n,t);dR(n)&&(M||o>=0)&&(n=mR(n,M||".",o))}return n},[I,Y,M]),te=$(h.useState(function(){var e=null!=c?c:d;return U.isInvalidate()&&["string","number"].includes(S(e))?Number.isNaN(e)?"":e:ee(U.toString(),!1)}),2),ne=te[0],oe=te[1];function re(e,t){oe(ee(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}J.current=ne;var ie=h.useMemo(function(){return wR(a)},[a,j]),ae=h.useMemo(function(){return wR(i)},[i,j]),le=h.useMemo(function(){return!(!ie||!U||U.isInvalidate())&&ie.lessEquals(U)},[ie,U]),se=h.useMemo(function(){return!(!ae||!U||U.isInvalidate())&&U.lessEquals(ae)},[ae,U]),ce=function(e,t){var n=(0,h.useRef)(null);return[function(){try{var t=e.selectionStart,o=e.selectionEnd,r=e.value,i=r.substring(0,t),a=r.substring(o);n.current={start:t,end:o,value:r,beforeTxt:i,afterTxt:a}}catch(e){}},function(){if(e&&n.current&&t)try{var o=e.value,r=n.current,i=r.beforeTxt,a=r.afterTxt,l=r.start,s=o.length;if(o.startsWith(i))s=i.length;else if(o.endsWith(a))s=o.length-n.current.afterTxt.length;else{var c=i[l-1],d=o.indexOf(c,l-1);-1!==d&&(s=d+1)}e.setSelectionRange(s,s)}catch(e){Be(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(D.current,W),de=$(ce,2),ue=de[0],pe=de[1],fe=function(e){return ie&&!e.lessEquals(ie)?ie:ae&&!ae.lessEquals(e)?ae:null},me=function(e){return!fe(e)},ge=function(e,t){var n=e,o=me(n)||n.isEmpty();if(n.isEmpty()||t||(n=fe(n)||n,o=!0),!p&&!u&&o){var r=n.toString(),i=Y(r,t);return i>=0&&(n=gR(mR(r,".",i)),me(n)||(n=gR(mR(r,".",i,!0)))),n.equals(U)||(void 0===d&&Z(n),null==P||P(n.isEmpty()?null:xR(w,n)),void 0===d&&re(n,t)),n}return U},he=bR(),ve=function e(t){if(ue(),J.current=t,oe(t),!q.current){var n=Q(t),o=gR(n);o.isNaN()||ge(o,!0)}null==R||R(t),he(function(){var n=t;E||(n=t.replace(/。/g,".")),n!==t&&e(n)})},be=function(e){var t;if(!(e&&le||!e&&se)){V.current=!1;var n=gR(G.current?vR(s):s);e||(n=n.negate());var o=(U||gR(0)).add(n.toString()),r=ge(o,!1);null==T||T(xR(w,r),{offset:G.current?vR(s):s,type:e?"up":"down"}),null===(t=D.current)||void 0===t||t.focus()}},ye=function(e){var t,n=gR(Q(ne));t=n.isNaN()?ge(U,e):ge(n,e),void 0!==d?re(U,!1):t.isNaN()||re(t,!1)};return h.useEffect(function(){if(y&&W){var e=function(e){be(e.deltaY<0),e.preventDefault()},t=D.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}),ln(function(){U.isInvalidate()||re(U,!1)},[j,I]),ln(function(){var e=gR(d);Z(e);var t=gR(Q(ne));e.equals(t)&&V.current&&!I||re(e,V.current)},[d]),ln(function(){I&&pe()},[ne]),h.createElement("div",{ref:H,className:N()(n,o,k(k(k(k(k({},"".concat(n,"-focused"),W),"".concat(n,"-disabled"),u),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),U.isNaN()),"".concat(n,"-out-of-range"),!U.isInvalidate()&&!me(U))),style:r,onFocus:function(){K(!0)},onBlur:function(){B&&ye(!1),K(!1),V.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;V.current=!0,G.current=n,"Enter"===t&&(q.current||(V.current=!1),ye(!1),null==L||L(e)),!1!==v&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){V.current=!1,G.current=!1},onCompositionStart:function(){q.current=!0},onCompositionEnd:function(){q.current=!1,ve(D.current.value)},onBeforeInput:function(){V.current=!0}},x&&h.createElement(hR,{prefixCls:n,upNode:f,downNode:m,upDisabled:le,downDisabled:se,onStep:be}),h.createElement("div",{className:"".concat(A,"-wrap")},h.createElement("input",g({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:s},_,{ref:Fo(D,t),className:A,value:ne,onChange:function(e){ve(e.target.value)},disabled:u,readOnly:p}))))}),SR=h.forwardRef(function(e,t){var n=e.disabled,o=e.style,r=e.prefixCls,i=void 0===r?"rc-input-number":r,a=e.value,l=e.prefix,s=e.suffix,c=e.addonBefore,d=e.addonAfter,u=e.className,p=e.classNames,f=O(e,CR),m=h.useRef(null),v=h.useRef(null),b=h.useRef(null),y=function(e){b.current&&uh(b.current,e)};return h.useImperativeHandle(t,function(){return e=b.current,t={focus:y,nativeElement:m.current.nativeElement||v.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var o=e[n];return"function"==typeof o?o.bind(e):o}}):e;var e,t}),h.createElement(fh,{className:u,triggerFocus:y,prefixCls:i,value:a,disabled:n,style:o,prefix:l,suffix:s,addonAfter:d,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},h.createElement($R,g({prefixCls:i,disabled:n,ref:b,domRef:v,className:null==p?void 0:p.input},f)))});const ER=SR,kR=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},o)=>{const r="lg"===o?n:t;return{[`&-${o}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:r,borderEndEndRadius:r},[`${e}-handler-up`]:{borderStartEndRadius:r},[`${e}-handler-down`]:{borderEndEndRadius:r}}}},OR=e=>{const{componentCls:t,lineWidth:n,lineType:o,borderRadius:r,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:d,paddingBlockSM:u,paddingBlockLG:p,paddingInlineLG:f,colorIcon:m,motionDurationMid:g,handleHoverColor:h,handleOpacity:v,paddingInline:b,paddingBlock:y,handleBg:C,handleActiveBg:x,colorTextDisabled:w,borderRadiusSM:$,borderRadiusLG:S,controlWidth:E,handleBorderColor:k,filledHandleBg:O,lineHeightLG:I,calc:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),Jg(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:r}),Hg(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${Jt(n)} ${o} ${k}`}}})),Kg(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${Jt(n)} ${o} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),Ug(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${Jt(n)} ${o} ${k}`}}})),Dg(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:I,borderRadius:S,[`input${t}-input`]:{height:N(l).sub(N(n).mul(2)).equal(),padding:`${Jt(p)} ${Jt(f)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:$,[`input${t}-input`]:{height:N(s).sub(N(n).mul(2)).equal(),padding:`${Jt(u)} ${Jt(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},ur(e)),eh(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}},Ag(e)),qg(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{width:"100%",padding:`${Jt(y)} ${Jt(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),Zg(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n              ${t}-handler-up-inner,\n              ${t}-handler-down-inner\n            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Jt(n)} ${o} ${k}`,transition:`all ${g} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n              ${t}-handler-up-inner,\n              ${t}-handler-down-inner\n            `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},kR(e,"lg")),kR(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n          ${t}-handler-up-disabled,\n          ${t}-handler-down-disabled\n        `]:{cursor:"not-allowed"},[`\n          ${t}-handler-up-disabled:hover &-handler-up-inner,\n          ${t}-handler-down-disabled:hover &-handler-down-inner\n        `]:{color:w}})}]},IR=e=>{const{componentCls:t,paddingBlock:n,paddingInline:o,inputAffixPadding:r,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:u,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Jt(n)} 0`}},Jg(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:o,"&-lg":{borderRadius:a,paddingInlineStart:s,[`input${t}-input`]:{padding:`${Jt(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Jt(u)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:o,marginInlineStart:r,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}
1-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(o).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},NR=zr("InputNumber",e=>{const t=or(e,Pg(e));return[OR(t),IR(t),Mm(t)]},e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",o=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},Rg(e)),{controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new L(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0,handleVisibleWidth:!0===n?o:0})},{unitless:{handleOpacity:!0},resetFont:!1});const jR=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o}=h.useContext(wt),r=h.useRef(null);h.useImperativeHandle(t,()=>r.current);const{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:d,addonAfter:u,prefix:p,suffix:f,bordered:m,readOnly:g,status:v,controls:b,variant:y}=e,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),x=n("input-number",c),w=Od(x),[$,S,E]=NR(x,w),{compactSize:k,compactItemClassnames:O}=wf(x,o);let I=h.createElement(tR,{className:`${x}-handler-up-inner`}),j=h.createElement(zx,{className:`${x}-handler-down-inner`});const M="boolean"==typeof b?b:void 0;"object"==typeof b&&(I=void 0===b.upIcon?I:h.createElement("span",{className:`${x}-handler-up-inner`},b.upIcon),j=void 0===b.downIcon?j:h.createElement("span",{className:`${x}-handler-down-inner`},b.downIcon));const{hasFeedback:P,status:R,isFormItemInput:L,feedbackIcon:T}=h.useContext(Rp),z=Eh(R,v),B=Jr(e=>{var t;return null!==(t=null!=l?l:k)&&void 0!==t?t:e}),H=h.useContext(vf),_=null!=s?s:H,[A,D]=zp("inputNumber",y,m),F=P&&h.createElement(h.Fragment,null,T),W=N()({[`${x}-lg`]:"large"===B,[`${x}-sm`]:"small"===B,[`${x}-rtl`]:"rtl"===o,[`${x}-in-form-item`]:L},S),K=`${x}-group`;return $(h.createElement(ER,Object.assign({ref:r,disabled:_,className:N()(E,w,i,a,O),upHandler:I,downHandler:j,prefixCls:x,readOnly:g,controls:M,prefix:p,suffix:F||f,addonBefore:d&&h.
1createElement(yh,{form:!0,space:!0},d),addonAfter:u&&h.createElement(yh,{form:!0,space:!0},u),classNames:{input:W,variant:N()({[`${x}-${A}`]:D},Sh(x,z,P)),affixWrapper:N()({[`${x}-affix-wrapper-sm`]:"small"===B,[`${x}-affix-wrapper-lg`]:"large"===B,[`${x}-affix-wrapper-rtl`]:"rtl"===o,[`${x}-affix-wrapper-without-controls`]:!1===b||_||g},S),wrapper:N()({[`${K}-rtl`]:"rtl"===o},S),groupWrapper:N()({[`${x}-group-wrapper-sm`]:"small"===B,[`${x}-group-wrapper-lg`]:"large"===B,[`${x}-group-wrapper-rtl`]:"rtl"===o,[`${x}-group-wrapper-${A}`]:D},Sh(`${x}-group-wrapper`,z,P),S)}},C)))}),MR=jR;MR._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(DC,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(jR,Object.assign({},e)));const PR=MR,RR=v().createContext({});var LR=h.forwardRef(function(e,t){var n=e.prefixCls,o=e.style,r=e.className,i=e.duration,a=void 0===i?4.5:i,l=e.showProgress,s=e.pauseOnHover,c=void 0===s||s,d=e.eventKey,u=e.content,p=e.closable,f=e.closeIcon,m=void 0===f?"x":f,v=e.props,b=e.onClick,y=e.onNoticeClose,C=e.times,x=e.hovering,w=$(h.useState(!1),2),E=w[0],O=w[1],I=$(h.useState(0),2),j=I[0],M=I[1],P=$(h.useState(0),2),R=P[0],L=P[1],T=x||E,z=a>0&&l,B=function(){y(d)};h.useEffect(function(){if(!T&&a>0){var e=Date.now()-R,t=setTimeout(function(){B()},1e3*a-R);return function(){c&&clearTimeout(t),L(Date.now()-e)}}},[a,T,C]),h.useEffect(function(){if(!T&&z&&(c||0===R)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var o=e+R-t,r=Math.min(o/(1e3*a),1);M(100*r),r<1&&n()})}(),function(){c&&cancelAnimationFrame(e)}}},[a,R,T,z,C]);var H=h.useMemo(function(){return"object"===S(p)&&null!==p?p:p?{closeIcon:m}:{}},[p,m]),_=bg(H,!0),A=100-(!j||j<0?0:j>100?100:j),D="".concat(n,"-notice");return h.createElement("div",g({},v,{ref:t,className:N()(D,r,k({},"".concat(D,"-closable"),p)),style:o,onMouseEnter:function(e){var t;O(!0),null==v||null===(t=v.onMouseEnter)||void 0===t||t.call(v,e)},onMouseLeave:function(e){var t;O(!1),null==v||null===(t=v.onMouseLeave)||void 0===t||t.call(v,e)},onClick:b}),h.createElement("div",{className:"".concat(D,"-content")},u),p&&h.createElement("a",g({tabIndex:0,className:"".concat(D,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==gs.ENTER||B()},"aria-label":"Close"},_,{onClick:function(e){e.preventDefault(),e.stopPropagation(),B()}}),H.closeIcon),z&&h.createElement("progress",{className:"".concat(D,"-progress"),max:"100",value:A},A+"%"))});const TR=LR;var zR=v().createContext({});const BR=function(e){var t=e.children,n=e.classNames;return v().createElement(zR.Provider,{value:{classNames:n}},t)};var HR=["className","style","classNames","styles"];const _R=function(e){var t,n,o,r,i,a=e.configList,l=e.placement,s=e.prefixCls,c=e.className,d=e.style,u=e.motion,p=e.onAllNoticeRemoved,f=e.onNoticeClose,m=e.stack,b=(0,h.useContext)(zR).classNames,y=(0,h.useRef)({}),C=$((0,h.useState)(null),2),x=C[0],w=C[1],E=$((0,h.useState)([]),2),I=E[0],j=E[1],M=a.map(function(e){return{config:e,key:String(e.key)}}),P=$((i={offset:8,threshold:3,gap:16},(t=m)&&"object"===S(t)&&(i.offset=null!==(n=t.offset)&&void 0!==n?n:8,i.threshold=null!==(o=t.threshold)&&void 0!==o?o:3,i.gap=null!==(r=t.gap)&&void 0!==r?r:16),[!!t,i]),2),R=P[0],L=P[1],T=L.offset,z=L.threshold,B=L.gap,H=R&&(I.length>0||M.length<=z),_="function"==typeof u?u(l):u;return(0,h.useEffect)(function(){R&&I.length>1&&j(function(e){return e.filter(function(e){return M.some(function(t){var n=t.key;return e===n})})})},[I,M,R]),(0,h.useEffect)(function(){var e,t;R&&y.current[null===(e=M[M.length-1])||void 0===e?void 0:e.key]&&w(y.current[null===(t=M[M.length-1])||void 0===t?void 0:t.key])},[M,R]),v().createElement(Dl,g({key:l,className:N()(s,"".concat(s,"-").concat(l),null==b?void 0:b.list,c,k(k({},"".concat(s,"-stack"),!!R),"".concat(s,"-stack-expanded"),H)),style:d,keys:M,motionAppear:!0},_,{onAllRemoved:function(){p(l)}}),function(e,t){var n=e.config,o=e.className,r=e.style,i=e.index,a=n,c=a.key,d=a.times,u=String(c),p=n,m=p.className,h=p.style,C=p.classNames,w=p.styles,$=O(p,HR),S=M.findIndex(function(e){return e.key===u}),E={};if(R){var k=M.length-1-(S>-1?S:i-1),P="top"===l||"bottom"===l?"-50%":"0";if(k>0){var L,z,_;E.height=H?null===(L=y.current[u])||void 0===L?void 0:L.offsetHeight:null==x?void 0:x.offsetHeight;for(var A=0,D=0;D<k;D++){var F;A+=(null===(F=y.current[M[M.length-1-D].key])||void 0===F?void 0:F.offsetHeight)+B}var W=(H?A:k*T)*(l.startsWith("top")?1:-1),K=!H&&null!=x&&x.offsetWidth&&null!==(z=y.current[u])&&void 0!==z&&z.offsetWidth?((null==x?void 0:x.offsetWidth)-2*T*(k<3?k:3))/(null===(_=y.current[u])||void 0===_?void 0:_.offsetWidth):1;E.transform="translate3d(".concat(P,", ").concat(W,"px, 0) scaleX(").concat(K,")")}else E.transform="translate3d(".concat(P,", 0, 0)")}return v().createElement("div",{ref:t,className:N()("".concat(s,"-notice-wrapper"),o,null==C?void 0:C.wrapper),style:he(he(he({},r),E),null==w?void 0:w.wrapper),onMouseEnter:function(){return j(function(e){return e.includes(u)?e:[].concat(Ot(e),[u])})},onMouseLeave:function(){return j(function(e){return e.filter(function(e){return e!==u})})}},v().createElement(TR,g({}
1,$,{ref:function(e){S>-1?y.current[u]=e:delete y.current[u]},prefixCls:s,classNames:C,styles:w,className:N()(m,null==b?void 0:b.notice),style:h,times:d,key:c,eventKey:c,onNoticeClose:f,hovering:R&&I.length>0})))})};var AR=h.forwardRef(function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,r=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,d=e.stack,u=e.renderNotifications,p=$(h.useState([]),2),f=p[0],m=p[1],g=function(e){var t,n=f.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),m(function(t){return t.filter(function(t){return t.key!==e})})};h.useImperativeHandle(t,function(){return{open:function(e){m(function(t){var n,o=Ot(t),r=o.findIndex(function(t){return t.key===e.key}),i=he({},e);return r>=0?(i.times=((null===(n=t[r])||void 0===n?void 0:n.times)||0)+1,o[r]=i):(i.times=0,o.push(i)),a>0&&o.length>a&&(o=o.slice(-a)),o})},close:function(e){g(e)},destroy:function(){m([])}}});var v=$(h.useState({}),2),b=v[0],y=v[1];h.useEffect(function(){var e={};f.forEach(function(t){var n=t.placement,o=void 0===n?"topRight":n;o&&(e[o]=e[o]||[],e[o].push(t))}),Object.keys(b).forEach(function(t){e[t]=e[t]||[]}),y(e)},[f]);var C=function(e){y(function(t){var n=he({},t);return(n[e]||[]).length||delete n[e],n})},x=h.useRef(!1);if(h.useEffect(function(){Object.keys(b).length>0?x.current=!0:x.current&&(null==c||c(),x.current=!1)},[b]),!r)return null;var w=Object.keys(b);return(0,Pi.createPortal)(h.createElement(h.Fragment,null,w.map(function(e){var t=b[e],n=h.createElement(_R,{key:e,configList:t,placement:e,prefixCls:o,className:null==l?void 0:l(e),style:null==s?void 0:s(e),motion:i,onNoticeClose:g,onAllNoticeRemoved:C,stack:d});return u?u(n,{prefixCls:o,key:e}):n})),r)});const DR=AR;var FR=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],WR=function(){return document.body},KR=0;function VR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?WR:t,o=e.motion,r=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,d=e.renderNotifications,u=O(e,FR),p=$(h.useState(),2),f=p[0],m=p[1],g=h.useRef(),v=h.createElement(DR,{container:f,ref:g,prefixCls:r,motion:o,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:d}),b=$(h.useState([]),2),y=b[0],C=b[1],x=Mo(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var o=t[n];void 0!==o&&(e[n]=o)})}),e}(u,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(KR),KR+=1),C(function(e){return[].concat(Ot(e),[{type:"open",config:t}])})}),w=h.useMemo(function(){return{open:x,close:function(e){C(function(t){return[].concat(Ot(t),[{type:"close",key:e}])})},destroy:function(){C(function(e){return[].concat(Ot(e),[{type:"destroy"}])})}}},[]);return h.useEffect(function(){m(n())}),h.useEffect(function(){var e,t;g.current&&y.length&&(y.forEach(function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}}),C(function(n){return e===n&&t||(e=n,t=n.filter(function(e){return!y.includes(e)})),t}))},[y]),[w,v]}const qR=zr("Message",e=>(e=>{const{componentCls:t,iconCls:n,boxShadow:o,colorText:r,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:u,marginXS:p,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:v}=e,b=`${t}-notice`,y=new ho("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),C=new ho("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:h,background:v,borderRadius:m,boxShadow:o,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n      ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},ur(e)),{color:r,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n        ${t}-move-up-appear,\n        ${t}
1-move-up-enter\n      `]:{animationName:y,animationDuration:u,animationPlayState:"paused",animationTimingFunction:d},[`\n        ${t}-move-up-appear${t}-move-up-appear-active,\n        ${t}-move-up-enter${t}-move-up-enter-active\n      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:u,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]})(or(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));const GR={info:h.createElement(cb,null),success:h.createElement(ob,null),error:h.createElement(wh,null),warning:h.createElement(ab,null),loading:h.createElement(zf,null)},XR=({prefixCls:e,type:t,icon:n,children:o})=>h.createElement("div",{className:N()(`${e}-custom-content`,`${e}-${t}`)},n||GR[t],h.createElement("span",null,o));function UR(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),o=()=>{null==t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}const ZR=3,YR=({children:e,prefixCls:t})=>{const n=Od(t),[o,r,i]=qR(t,n);return o(h.createElement(BR,{classNames:{list:N()(r,i,n)}},e))},QR=(e,{prefixCls:t,key:n})=>h.createElement(YR,{prefixCls:t,key:n},e),JR=h.forwardRef((e,t)=>{const{top:n,prefixCls:o,getContainer:r,maxCount:i,duration:a=ZR,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:u,message:p,direction:f}=h.useContext(wt),m=o||d("message"),g=h.createElement("span",{className:`${m}-close-x`},h.createElement(wi,{className:`${m}-close-icon`})),[v,b]=VR({prefixCls:m,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>N()({[`${m}-rtl`]:null!=l?l:"rtl"===f}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(m,s),closable:!1,closeIcon:g,duration:a,getContainer:()=>(null==r?void 0:r())||(null==u?void 0:u())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:QR});return h.useImperativeHandle(t,()=>Object.assign(Object.assign({},v),{prefixCls:m,message:p})),b});let eL=0;function tL(e){const t=h.useRef(null),n=(vC(),h.useMemo(()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:r,message:i}=t.current,a=`${r}-notice`,{content:l,icon:s,type:c,key:d,className:u,style:p,onClose:f}=n,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["content","icon","type","key","className","style","onClose"]);let g=d;return null==g&&(eL+=1,g=`antd-message-${eL}`),UR(t=>(o(Object.assign(Object.assign({},m),{key:g,content:h.createElement(XR,{prefixCls:r,type:c,icon:s},l),placement:"top",className:N()(c&&`${a}-${c}`,u,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),p),onClose:()=>{null==f||f(),t()}})),()=>{e(g)}))},o={open:n,destroy:n=>{var o;void 0!==n?e(n):null===(o=t.current)||void 0===o||o.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{o[e]=(t,o,r)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof o?l=o:(a=o,l=r);const s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(s)}}),o},[]));return[n,h.createElement(JR,Object.assign({key:"message-holder"},e,{ref:t}))]}let nL=null,oL=e=>e(),rL=[],iL={};function aL(){const{getContainer:e,duration:t,rtl:n,maxCount:o,top:r}=iL,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:o,top:r}}const lL=v().forwardRef((e,t)=>{const{messageConfig:n,sync:o}=e,{getPrefixCls:r}=(0,h.useContext)(wt),i=iL.prefixCls||r("message"),a=(0,h.useContext)(RR
1),[l,s]=tL(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return v().useImperativeHandle(t,()=>{const e=Object.assign({},l);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(o(),l[t].apply(l,e))}),{instance:e,sync:o}}),s}),sL=v().forwardRef((e,t)=>{const[n,o]=v().useState(aL),r=()=>{o(aL)};v().useEffect(r,[]);const i=HC(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=v().createElement(lL,{ref:t,sync:r,messageConfig:n});return v().createElement(DC,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)}),cL=()=>{if(!nL){const e=document.createDocumentFragment(),t={fragment:e};return nL=t,void oL(()=>{sf()(v().createElement(sL,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,cL())})}}),e)})}nL.instance&&(rL.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":oL(()=>{const t=nL.instance.open(Object.assign(Object.assign({},iL),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":oL(()=>{null==nL||nL.instance.destroy(e.key)});break;default:oL(()=>{var n;const o=(n=nL.instance)[t].apply(n,Of(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),rL=[])},dL={open:function(e){const t=UR(t=>{let n;const o={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return rL.push(o),()=>{n?oL(()=>{n()}):o.skipped=!0}});return cL(),t},destroy:e=>{rL.push({type:"destroy",key:e}),cL()},config:function(e){iL=Object.assign(Object.assign({},iL),e),oL(()=>{var e;null===(e=null==nL?void 0:nL.sync)||void 0===e||e.call(nL)})},useMessage:function(e){return tL(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:o,icon:r,content:i}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=h.useContext(wt),s=t||l("message"),c=Od(s),[d,u,p]=qR(s,c);return d(h.createElement(TR,Object.assign({},a,{prefixCls:s,className:N()(n,u,`${s}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:h.createElement(XR,{prefixCls:s,type:o,icon:r},i)})))}};["success","info","warning","error","loading"].forEach(e=>{dL[e]=(...t)=>function(e,t){HC();const n=UR(n=>{let o;const r={type:e,args:t,resolve:n,setCloseFn:e=>{o=e}};return rL.push(r),()=>{o?oL(()=>{o()}):r.skipped=!0}});return cL(),n}(e,t)});const uL=dL,pL=()=>"undefined"==typeof window?56:16+(window.matchMedia&&window.matchMedia("(max-width: 782px)").matches?46:32);if(uL.config({top:pL(),duration:3,maxCount:3}),"undefined"!=typeof window&&window.matchMedia){const e=window.matchMedia("(max-width: 782px)"),t=()=>{uL.config({top:pL()})};"function"==typeof e.addEventListener?e.addEventListener("change",t):"function"==typeof e.addListener&&e.addListener(t)}const fL=uL,mL=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:o}=e,r=`${t}-notice`,i=new ho("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new ho("antNotificationTopFadeIn",{"0%":{top:-o,opacity:0},"100%":{top:0,opacity:1}}),l=new ho("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(o).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new ho("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,[r]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[r]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},gL=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],hL={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},vL=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)},bL=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)},yL=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},vL(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},bL(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},gL.map(t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[hL[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>
1Object.assign(Object.assign({},e),t),{}))},CL=e=>{const{iconCls:t,componentCls:n,boxShadow:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:d,colorTextHeading:u,notificationBg:p,notificationPadding:f,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:h,fontSize:v,lineHeight:b,width:y,notificationIconSize:C,colorText:x,colorSuccessBg:w,colorErrorBg:$,colorInfoBg:S,colorWarningBg:E}=e,k=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:a,boxShadow:o,[k]:{padding:f,width:y,maxWidth:`calc(100vw - ${Jt(e.calc(m).mul(2).equal())})`,lineHeight:b,wordWrap:"break-word",borderRadius:a,overflow:"hidden","&-success":w?{background:w}:{},"&-error":$?{background:$}:{},"&-info":S?{background:S}:{},"&-warning":E?{background:E}:{}},[`${k}-message`]:{color:u,fontSize:r,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:v,color:x,marginTop:e.marginXS},[`${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:r},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:v},[`${k}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:d}},[`${k}-close`]:Object.assign({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",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},fr(e)),[`${k}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${Jt(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${k}-actions`]:{float:"right",marginTop:e.marginSM}}},xL=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:o,motionDurationMid:r,motionEaseInOut:i}=e,a=`${t}-notice`,l=new ho("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ur(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:o,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:r,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:CL(e)}}]},wL=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),$L=e=>{const t=e.paddingMD,n=e.paddingLG;return or(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Jt(e.paddingMD)} ${Jt(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},SL=zr("Notification",e=>{const t=$L(e);return[xL(t),mL(t),yL(t)]},wL),EL=Hr(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=$L(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},CL(n)),{width:n.width,maxWidth:`calc(100vw - ${Jt(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},wL);function kL(e,t){return null===t||!1===t?null:t||h.createElement(wi,{className:`${e}-close-icon`})}const OL={success:ob,info:cb,error:wh,warning:ab},IL=e=>{const{prefixCls:t,icon:n,type:o,message:r,description:i,actions:a,role:l="alert"}=e;let s=null;return n?s=h.createElement("span",{className:`${t}-icon`},n):o&&(s=h.createElement(OL[o]||null,{className:N()(`${t}-icon`,`${t}-icon-${o}`)})),h.createElement("div",{className:N()({[`${t}-with-icon`]:s}),role:l},s,h.createElement("div",{className:`${t}-message`},r),i&&h.createElement("div",{className:`${t}-description`},i),a&&h.createElement("div",{className:`${t}-actions`},a))};const NL=({children:e,prefixCls:t})=>{const n=Od(t),[o,r,i]=SL(t,n);return o(v().createElement(BR,{classNames:{list:N()(r,i,n)}},e))},jL=(e,{prefixCls:t,key:n})=>v().createElement(NL,{prefixCls:t,key:n},e),ML=v().forwardRef((e,t)=>
1{const{top:n,bottom:o,prefixCls:r,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:d,pauseOnHover:u=!0,showProgress:p}=e,{getPrefixCls:f,getPopupContainer:m,notification:g,direction:b}=(0,h.useContext)(wt),[,y]=Tr(),C=r||f("notification"),[x,w]=VR({prefixCls:C,style:e=>function(e,t,n){let o;switch(e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}(e,null!=n?n:24,null!=o?o:24),className:()=>N()({[`${C}-rtl`]:null!=l?l:"rtl"===b}),motion:()=>function(e){return{motionName:`${e}-fade`}}(C),closable:!0,closeIcon:kL(C),duration:null!=d?d:4.5,getContainer:()=>(null==i?void 0:i())||(null==m?void 0:m())||document.body,maxCount:a,pauseOnHover:u,showProgress:p,onAllRemoved:s,renderNotifications:jL,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return v().useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:C,notification:g})),w});function PL(e){const t=v().useRef(null),n=(vC(),v().useMemo(()=>{const n=n=>{var o;if(!t.current)return;const{open:r,prefixCls:i,notification:a}=t.current,l=`${i}-notice`,{message:s,description:c,icon:d,type:u,btn:p,actions:f,className:m,style:g,role:h="alert",closeIcon:b,closable:y}=n,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),x=null!=f?f:p,w=kL(l,function(e,t,n){return void 0!==e?e:void 0!==(null==t?void 0:t.closeIcon)?t.closeIcon:null==n?void 0:n.closeIcon}(b,e,a));return r(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:"topRight"},C),{content:v().createElement(IL,{prefixCls:l,icon:d,type:u,message:s,description:c,actions:x,role:h}),className:N()(u&&`${l}-${u}`,m,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),g),closeIcon:w,closable:null!=y?y:!!w}))},o={open:n,destroy:e=>{var n,o;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(o=t.current)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach(e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),o},[]));return[n,v().createElement(ML,Object.assign({key:"notification-holder"},e,{ref:t}))]}let RL=null,LL=e=>e(),TL=[],zL={};function BL(){const{getContainer:e,rtl:t,maxCount:n,top:o,bottom:r,showProgress:i,pauseOnHover:a}=zL,l=(null==e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:o,bottom:r,showProgress:i,pauseOnHover:a}}const HL=v().forwardRef((e,t)=>{const{notificationConfig:n,sync:o}=e,{getPrefixCls:r}=(0,h.useContext)(wt),i=zL.prefixCls||r("notification"),a=(0,h.useContext)(RR),[l,s]=PL(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return v().useEffect(o,[]),v().useImperativeHandle(t,()=>{const e=Object.assign({},l);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(o(),l[t].apply(l,e))}),{instance:e,sync:o}}),s}),_L=v().forwardRef((e,t)=>{const[n,o]=v().useState(BL),r=()=>{o(BL)};v().useEffect(r,[]);const i=HC(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=v().createElement(HL,{ref:t,sync:r,notificationConfig:n});return v().createElement(DC,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)}),AL=()=>{if(!RL){const e=document.createDocumentFragment(),t={fragment:e};return RL=t,void LL(()=>{sf()(v().createElement(_L,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,AL())})}}),e)})}
1RL.instance&&(TL.forEach(e=>{switch(e.type){case"open":LL(()=>{RL.instance.open(Object.assign(Object.assign({},zL),e.config))});break;case"destroy":LL(()=>{var t;null===(t=null==RL?void 0:RL.instance)||void 0===t||t.destroy(e.key)})}}),TL=[])};function DL(e){HC(),TL.push({type:"open",config:e}),AL()}const FL={open:DL,destroy:e=>{TL.push({type:"destroy",key:e}),AL()},config:function(e){zL=Object.assign(Object.assign({},zL),e),LL(()=>{var e;null===(e=null==RL?void 0:RL.sync)||void 0===e||e.call(RL)})},useNotification:function(e){return PL(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:o,type:r,message:i,description:a,btn:l,actions:s,closable:c=!0,closeIcon:d,className:u}=e,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:f}=h.useContext(wt),m=null!=s?s:l,g=t||f("notification"),v=`${g}-notice`,b=Od(g),[y,C,x]=SL(g,b);return y(h.createElement("div",{className:N()(`${v}-pure-panel`,C,n,x,b)},h.createElement(EL,{prefixCls:g}),h.createElement(TR,Object.assign({},p,{prefixCls:g,eventKey:"pure",duration:null,closable:c,className:N()({notificationClassName:u}),closeIcon:kL(g,d),content:h.createElement(IL,{prefixCls:v,icon:o,type:r,message:i,description:a,actions:m})}))))}};["success","info","warning","error"].forEach(e=>{FL[e]=t=>DL(Object.assign(Object.assign({},t),{type:e}))});const WL=FL;var KL=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],VL=h.forwardRef(function(e,t){var n,o=e.prefixCls,r=void 0===o?"rc-switch":o,i=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,d=e.checkedChildren,u=e.unCheckedChildren,p=e.onClick,f=e.onChange,m=e.onKeyDown,v=O(e,KL),b=$(Lo(!1,{value:a,defaultValue:l}),2),y=b[0],C=b[1];function x(e,t){var n=y;return s||(C(n=e),null==f||f(n,t)),n}var w=N()(r,i,(k(n={},"".concat(r,"-checked"),y),k(n,"".concat(r,"-disabled"),s),n));return h.createElement("button",g({},v,{type:"button",role:"switch","aria-checked":y,disabled:s,className:w,ref:t,onKeyDown:function(e){e.which===gs.LEFT?x(!1,e):e.which===gs.RIGHT&&x(!0,e),null==m||m(e)},onClick:function(e){var t=x(!y,e);null==p||p(t,e)}}),c,h.createElement("span",{className:"".concat(r,"-inner")},h.createElement("span",{className:"".concat(r,"-inner-checked")},d),h.createElement("span",{className:"".concat(r,"-inner-unchecked")},u)))});VL.displayName="Switch";const qL=VL,GL=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,d=Jt(s(l).add(s(o).mul(2)).equal()),u=Jt(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:Jt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Jt(s(l).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},XL=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},UL=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a(i).div(2).equal(),boxSh
vendor: 8,366 bytes, line 1
1adow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Jt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ZL=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,c=Jt(l(a).add(l(o).mul(2)).equal()),d=Jt(l(i).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(o).mul(2).equal(),marginInlineEnd:l(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(o).mul(-1).mul(2).equal(),marginInlineEnd:l(o).mul(2).equal()}}}}}},YL=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:Jt(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),fr(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},QL=zr("Switch",e=>{const t=or(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[YL(t),ZL(t),UL(t),XL(t),GL(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,i=t*n,a=o/2,l=i-4,s=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:r,handleSize:l,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new L("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}});const JL=h.forwardRef((e,t)=>{const{prefixCls:n,size:o,disabled:r,loading:i,className:a,rootClassName:l,style:s,checked:c,value:d,defaultChecked:u,defaultValue:p,onChange:f}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=Lo(!1,{value:null!=c?c:d,defaultValue:null!=u?u:p}),{getPrefixCls:b,direction:y,switch:C}=h.useContext(wt),x=h.useContext(vf),w=(null!=r?r:x)||i,$=b("switch",n),S=h.createElement("div",{className:`${$}-handle`},i&&h.createElement(zf,{className:`${$}-loading-icon`})),[E,k,O]=QL($),I=Jr(o),j=N()(null==C?void 0:C.className,{[`${$}-small`]:"small"===I,[`${$}-loading`]:i,[`${$}-rtl`]:"rtl"===y},a,l,k,O),M=Object.assign(Object.assign({},null==C?void 0:C.style),s);return E(h.createElement(mf,{component:"Switch",disabled:w},h.createElement(qL,Object.assign({},m,{checked:g,onChange:(...e)=>{v(e[0]),null==f||f.apply(void 0,e)},prefixCls:$,className:j,style:M,disabled:w,ref:t,loadingIcon:S}))))}),eT=JL;eT.__ANT_SWITCH=!0;const tT=eT,nT=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",i=r.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=o.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)&&(Be(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function oT(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function rT(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var o=e.data[t];Array.isArray(o)?o.forEach(function(e){n.append("".concat(t,"[]"),e)}):n.append(t,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),oT(t)):e.onSuccess(oT(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(e){null!==o[e]&&t.setRequestHeader(e,o[e])}),t.send(n),{abort:function(){t.abort()}}}n.dn(nT);const iT=function(){var e=yu(vu().mark(function e(t,n){var o,r,i,a,l,s,c,d;return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=function(){return(s=yu(vu().mark(function e(t){return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){t.file(function(o){n(o)?(t.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),e(o)):e(null)})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return s.apply(this,arguments)},a=function(){return(a=yu(vu().mark(function e(t){var n,o,r,i,a;return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),o=[];case 2:return e.next=5,new Promise(function(e){n.readEntries(e,function(){return e([])})});case 5:if(r=e.sent,i=r.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a<i;a++)o.push(r[a]);e.next=2;break;case 12:return e.abrupt("return",o);case 13:case"end":return e.stop()}},e)}))).apply(this,arguments)},i=function(e){return a.apply(this,arguments)},o=[],r=[],t.forEach(function(e){return r.push(e.webkitGetAsEntry())}),c=function(){var e=yu(vu().mark(function e(t,n){var a,s;return vu().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=n||"",!t.isFile){e.next=10;break}return e.next=6,l(t);case 6:(a=e.sent)&&o.push(a),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,i(t);case 13:s=e.sent,r.push.apply(r,Ot(s));case 15:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),d=0;case 9:if(!(d<r.length)){e.next=15;break}return e.next=12,c(r[d]);case 12:d++,e.next=9;break;case 15:return e.abrupt("return",o);case 16:case"end":return e.stop()}},e)}));return function(_x,t){return e.apply(this,arguments)}}();var aT=+new Date,lT=0;function sT(){return"rc-upload-".concat(aT,"-").concat(++lT)}
1var cT=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],dT=function(e){Co(n,e);var t=$o(n);function n(){var e;Mt(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return k(bo(e=t.call.apply(t,[this].concat(r))),"state",{uid:sT()}),k(bo(e),"reqs",{}),k(bo(e),"fileInput",void 0),k(bo(e),"_isMounted",void 0),k(bo(e),"onChange",function(t){var n=e.props,o=n.accept,r=n.directory,i=Ot(t.target.files).filter(function(e){return!r||nT(e,o)});e.uploadFiles(i),e.reset()}),k(bo(e),"onClick",function(t){var n=e.fileInput;if(n){var o=t.target,r=e.props.onClick;o&&"BUTTON"===o.tagName&&(n.parentNode.focus(),o.blur()),n.click(),r&&r(t)}}),k(bo(e),"onKeyDown",function(t){"Enter"===t.key&&e.onClick(t)}),k(bo(e),"onDataTransferFiles",function(){var t=yu(vu().mark(function t(n,o){var r,i,a,l,s,c,d;return vu().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props,i=r.multiple,a=r.accept,l=r.directory,s=Ot(n.items||[]),((c=Ot(n.files||[])).length>0||s.some(function(e){return"file"===e.kind}))&&(null==o||o()),!l){t.next=11;break}return t.next=7,iT(Array.prototype.slice.call(s),function(t){return nT(t,e.props.accept)});case 7:c=t.sent,e.uploadFiles(c),t.next=14;break;case 11:d=Ot(c).filter(function(e){return nT(e,a)}),!1===i&&(d=c.slice(0,1)),e.uploadFiles(d);case 14:case"end":return t.stop()}},t)}));return function(_x,e){return t.apply(this,arguments)}}()),k(bo(e),"onFilePaste",function(){var t=yu(vu().mark(function t(n){var o;return vu().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.props.pastable){t.next=3;break}return t.abrupt("return");case 3:if("paste"!==n.type){t.next=6;break}return o=n.clipboardData,t.abrupt("return",e.onDataTransferFiles(o,function(){n.preventDefault()}));case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),k(bo(e),"onFileDragOver",function(e){e.preventDefault()}),k(bo(e),"onFileDrop",function(){var t=yu(vu().mark(function t(n){var o;return vu().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),"drop"!==n.type){t.next=4;break}return o=n.dataTransfer,t.abrupt("return",e.onDataTransferFiles(o));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),k(bo(e),"uploadFiles",function(t){var n=Ot(t),o=n.map(function(t){return t.uid=sT(),e.processFile(t,n)});Promise.all(o).then(function(t){var n=e.props.onBatchStart;null==n||n(t.map(function(e){return{file:e.origin,parsedFile:e.parsedFile}})),t.filter(function(e){return null!==e.parsedFile}).forEach(function(t){e.post(t)})})}),k(bo(e),"processFile",function(){var t=yu(vu().mark(function t(n,o){var r,i,a,l,s,c,d,u,p;return vu().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.beforeUpload,i=n,!r){t.next=14;break}return t.prev=3,t.next=6,r(n,o);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!=typeof(s=e.props.data)){t.next=29;break}return t.next=26,s(n);case 26:c=t.sent,t.next=30;break;case 29:c=s;case 30:return d="object"!==S(i)&&"string"!=typeof i||!i?n:i,u=d instanceof File?d:new File([d],n.name,{type:n.type}),(p=u).uid=n.uid,t.abrupt("return",{origin:n,data:c,parsedFile:p,action:l});case 35:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e,n){return t.apply(this,arguments)}}()),k(bo(e),"saveFileInput",function(t){e.fileInput=t}),e}return Rt(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.pastable&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(e){var t=this,n=e.data,o=e.origin,r=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,s=a.customRequest,c=a.name,d=a.headers,u=a.withCredentials,p=a.method,f=o.uid,m=s||rT,g={action:r,filename:c,data:n,file:i,headers:d,withCredentials:u,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var o=t.props.onSuccess;null==o||o(e,i,n),delete t.reqs[f]},onError:function(e,n){var o=t.props.onError;null==o||o(e,n,i),delete t.reqs[f]}};l(o),this.reqs[f]=m(g,{defaultRequest:rT})}}},{key:"reset",value:function(){this.setState({uid:sT()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.prefixCls,o=e.className,r=e.classNames,i=void 0===r?{}:r,a=e.disabled,l=e.id,s=e.name,c=e.style,d=e.styles,u=void 0===d?{}:d,p=e.multiple,f=e.accept,m=e.capture,h=e.children,b=e.directory,y=e.folder,C=e.openFileDialogOnClick,x=e.onMouseEnter,w=e.onMouseLeave,$=e.hasControlInside,S=O(e,cT),E=N()(k(k(k({},n,!0),"".concat(n,"-disabled"),a),o,o)),I=b||y?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},j=a?{}:{onClick:C?this.onClick:function(){},onKeyDown:C?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:w,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:$?void 0:"0"};return v().createElement(t,g({},j,{className:E,role:$?void 0:"button",style:c}
vendor: 17,581 bytes, line 1
1),v().createElement("input",g({},bg(S,{aria:!0,data:!0}),{id:l,name:s,disabled:a,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:he({display:"none"},u.input),className:i.input,accept:f},I,{multiple:p,onChange:this.onChange},null!=m?{capture:m}:{})),h)}}]),n}(h.Component);const uT=dT;function pT(){}var fT=function(e){Co(n,e);var t=$o(n);function n(){var e;Mt(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return k(bo(e=t.call.apply(t,[this].concat(r))),"uploader",void 0),k(bo(e),"saveUploader",function(t){e.uploader=t}),e}return Rt(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return v().createElement(uT,g({},this.props,{ref:this.saveUploader}))}}]),n}(h.Component);k(fT,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:pT,onError:pT,onSuccess:pT,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const mT=fT,gT=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Jt(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Jt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n          &:not(${t}-disabled):hover,\n          &-hover:not(${t}-disabled)\n        `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Jt(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n            p${t}-text,\n            p${t}-hint\n          `]:{color:e.colorTextDisabled}}}}}},hT=e=>{const{componentCls:t,iconCls:n,fontSize:o,lineHeight:r,calc:i}=e,a=`${t}-list-item`,l=`${a}-actions`,s=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},dr),{padding:`0 ${Jt(e.paddingXS)}`,lineHeight:r,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[s]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n              ${s}:focus-visible,\n              &.picture ${s}\n            `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},vT=e=>{const{componentCls:t}=e,n=new ho("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=new ho("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:n},[`${r}-leave`]:{animationName:o}}},{[`${t}-wrapper`]:ZS(e)},n,o]},bT=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n        ${a}${a}-picture,\n        ${a}${a}-picture-card,\n        ${a}${a}-picture-circle\n      `]:{[l]:{position:"relative",height:i(o).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Jt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},dr),{width:o,height:o,lineHeight:Jt(i(o).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${Jt(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(o).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${U[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${U.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},yT=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r,calc:i}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`\n      ${t}-wrapper${t}-picture-card-wrapper,\n      ${t}-wrapper${t}-picture-circle-wrapper\n    `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:s,height:s,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Jt(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:s,height:s,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Jt(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Jt(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n            ${n}-eye,\n            ${n}-download,\n            ${n}-delete\n          `]:{zIndex:10,width:o,margin:`0 ${Jt(e.marginXXS)}`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:r,"&:hover":{color:r},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Jt(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Jt(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},CT=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},xT=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ur(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},wT=zr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:o,pictureCardSize:r,calc:i}=e,a=or(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(o).equal(),uploadPicCardSize:r});return[xT(a),gT(a),bT(a),yT(a),hT(a),vT(a),CT(a),Sg(a)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),$T={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var ST=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:$T}))};const ET=h.forwardRef(ST),kT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var OT=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:kT}))};const IT=h.forwardRef(OT),NT={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var jT=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:NT}))};const MT=h.forwardRef(jT);function PT(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function RT(e,t){const n=Of(t),o=n.findIndex(({uid:t})=>t===e.uid);return-1===o?n.push(e):n[o]=e,n}function LT(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}const TT=e=>0===e.indexOf("image/"),zT=e=>{if(e.type&&!e.thumbUrl)return TT(e.type);const t=e.thumbUrl||e.url||"",n=((e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},BT=200;function HT(e){return new Promise(t=>{if(!e.type||!TT(e.type))return void t("");const n=document.createElement("canvas");n.width=BT,n.height=BT,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:i}=r;let a=BT,l=BT,s=0,c=0;e>i?(l=i*(BT/e),c=-(l-a)/2):(a=e*(BT/i),s=-(a-l)/2),o.drawImage(r,s,c,a,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(r.src),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(r.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}const _T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var AT=function(e,t){return h.createElement(Ze,g({},e,{ref:t,icon:_T}))};const DT=h.forwardRef(AT),FT=h.forwardRef(({prefixCls:e,className:t,style:n,locale:o,listType:r,file:i,items:a,progress:l,iconRender:s,actionIconRender:c,itemRender:d,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:f,showDownloadIcon:m,previewIcon:g,removeIcon:v,downloadIcon:b,extra:y,onPreview:C,onDownload:x,onClose:w},$)=>{var S,E;const{status:k}=i,[O,I]=h.useState(k);h.useEffect(()=>{"removed"!==k&&I(k)},[k]);const[j,M]=h.useState(!1);h.useEffect(()=>{const e=setTimeout(()=>{M(!0)},300);return()=>{clearTimeout(e)}},[]);const P=s(i);let R=h.createElement("div",{className:`${e}-icon`},P);if("picture"===r||"picture-card"===r||"picture-circle"===r)if("uploading"===O||!i.thumbUrl&&!i.url){const t=N()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==O});R=h.createElement("div",{className:t},P)}else{const t=(null==u?void 0:u(i))?h.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):P,n=N()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:u&&!u(i)});R=h.createElement("a",{className:n,onClick:e=>C(i,e),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}const L=N()(`${e}-list-item`,`${e}-list-item-${O}`),T="string"==typeof i.linkProps?JSON.parse(i.linkProps):i.linkProps,z=("function"==typeof f?f(i):f)?c(("function"==typeof v?v(i):v)||h.createElement(tt,null),()=>w(i),e,o.removeFile,!0):null,B=("function"==typeof m?m(i):m)&&"done"===O?c(("function"==typeof b?b(i):b)||h.createElement(DT,null),()=>x(i),e,o.downloadFile):null,H="picture-card"!==r&&"picture-circle"!==r&&h.createElement("span",{key:"download-delete",className:N()(`${e}-list-item-actions`,{picture:"picture"===r})},B,z),_="function"==typeof y?y(i):y,A=_&&h.createElement("span",{className:`${e}-list-item-extra`},_),D=N()(`${e}-list-item-name`),F=i.url?h.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:D,title:i.name},T,{href:i.url,onClick:e=>C(i,e)}),i.name,A):h.createElement("span",{key:"view",className:D,onClick:e=>C(i,e),title:i.name},i.name,A),W=("function"==typeof p?p(i):p)&&(i.url||i.thumbUrl)?h.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>C(i,e),title:o.previewFile},"function"==typeof g?g(i):g||h.createElement(dt,null)):null,K=("picture-card"===r||"picture-circle"===r)&&"uploading"!==O&&h.createElement("span",{className:`${e}-list-item-actions`},W,"done"===O&&B,z),{getPrefixCls:V}=h.useContext(wt),q=V(),G=h.createElement("div",{className:L},R,F,H,K,j&&h.createElement(Fl,{motionName:`${q}-fade`,visible:"uploading"===O,motionDeadline:2e3},({className:t})=>{const n="percent"in i?h.createElement($S,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},l)):null;return h.createElement("div",{className:N()(`${e}-list-item-progress`,t)},n)})),X=i.response&&"string"==typeof i.response?i.response:(null===(S=i.error)||void 0===S?void 0:S.statusText)||(null===(E=i.error)||void 0===E?void 0:E.message)||o.uploadError,U="error"===O?h.createElement(f$,{title:X,getPopupContainer:e=>e.parentNode},G):G;return h.createElement("div",{className:N()(`${e}-list-item-container`,t),style:n,ref:$},d?d(U,i,a,{download:x.bind(null,i),preview:C.bind(null,i),remove:w.bind(null,i)}):U)}),WT=FT,KT=(e,t)=>{const{listType:n="text",previewFile:o=HT,onPreview:r,onDownload:i,onRemove:a,locale:l,iconRender:s,isImageUrl:c=zT,prefixCls:d,items:u=[],showPreviewIcon:p=!0,showRemoveIcon:f=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,progress:C={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:w=!0,itemRender:$,disabled:S}=e,[,E]=Km(),[k,O]=h.useState(!1),I=["picture-card","picture-circle"].includes(n);h.useEffect(()=>
1{n.startsWith("picture")&&(u||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==o||o(e.originFileObj).then(t=>{e.thumbUrl=t||"",E()}))})},[n,u,o]),h.useEffect(()=>{O(!0)},[]);const j=(e,t)=>{if(r)return null==t||t.preventDefault(),r(e)},M=e=>{"function"==typeof i?i(e):e.url&&window.open(e.url)},P=e=>{null==a||a(e)},R=e=>{if(s)return s(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const o="picture"===n?h.createElement(zf,null):l.uploading,r=(null==c?void 0:c(e))?h.createElement(MT,null):h.createElement(ET,null);return t?o:r}return t?h.createElement(zf,null):h.createElement(IT,null)},L=(e,t,n,o,r)=>{const i={type:"text",size:"small",title:o,onClick:n=>{var o,r;t(),h.isValidElement(e)&&(null===(r=(o=e.props).onClick)||void 0===r||r.call(o,n))},className:`${n}-list-item-action`,disabled:!!r&&S};return h.isValidElement(e)?h.createElement(_m,Object.assign({},i,{icon:qp(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):h.createElement(_m,Object.assign({},i),h.createElement("span",null,e))};h.useImperativeHandle(t,()=>({handlePreview:j,handleDownload:M}));const{getPrefixCls:T}=h.useContext(wt),z=T("upload",d),B=T(),H=N()(`${z}-list`,`${z}-list-${n}`),_=h.useMemo(()=>vt(Rd(B),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[B]),A=Object.assign(Object.assign({},I?{}:_),{motionDeadline:2e3,motionName:`${z}-${I?"animate-inline":"animate"}`,keys:Of(u.map(e=>({key:e.uid,file:e}))),motionAppear:k});return h.createElement("div",{className:H},h.createElement(Dl,Object.assign({},A,{component:!1}),({key:e,file:t,className:o,style:r})=>h.createElement(WT,{key:e,locale:l,prefixCls:z,className:o,style:r,file:t,items:u,progress:C,listType:n,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:f,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,iconRender:R,actionIconRender:L,itemRender:$,onPreview:j,onDownload:M,onClose:P})),x&&h.createElement(Fl,Object.assign({},A,{visible:w,forceRender:!0}),({className:e,style:t})=>qp(x,n=>({className:N()(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))},VT=h.forwardRef(KT);const qT=`__LIST_IGNORE_${Date.now()}__`,GT=(e,t)=>{const n=Et("upload"),{fileList:o,defaultFileList:r,onRemove:i,showUploadList:a=!0,listType:l="text",onPreview:s,onDownload:c,onChange:d,onDrop:u,previewFile:p,disabled:f,locale:m,iconRender:g,isImageUrl:v,progress:b,prefixCls:y,className:C,type:x="select",children:w,style:$,itemRender:S,maxCount:E,data:k={},multiple:O=!1,hasControlInside:I=!0,action:j="",accept:M="",supportServerRender:P=!0,rootClassName:R}=e,L=h.useContext(vf),T=null!=f?f:L,z=e.customRequest||n.customRequest,[B,H]=Lo(r||[],{value:o,postState:e=>null!=e?e:[]}),[_,A]=h.useState("drop"),D=h.useRef(null),F=h.useRef(null);h.useMemo(()=>{const e=Date.now();(o||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[o]);const W=(e,t,n)=>{let o=Of(t),r=!1;1===E?o=o.slice(-1):E&&(r=o.length>E,o=o.slice(0,E)),(0,Pi.flushSync)(()=>{H(o)});const i={file:e,fileList:o};n&&(i.event=n),r&&"removed"!==e.status&&!o.some(t=>t.uid===e.uid)||(0,Pi.flushSync)(()=>{null==d||d(i)})},K=e=>{const t=e.filter(e=>!e.file[qT]);if(!t.length)return;const n=t.map(e=>PT(e.file));let o=Of(B);n.forEach(e=>{o=RT(e,o)}),n.forEach((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}W(r,o)})},V=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!LT(t,B))return;const o=PT(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=RT(o,B);W(o,r)},q=(e,t)=>{if(!LT(t,B))return;const n=PT(t);n.status="uploading",n.percent=e.percent;const o=RT(n,B);W(n,o,e)},G=(e,t,n)=>{if(!LT(n,B))return;const o=PT(n);o.error=e,o.response=t,o.status="error";const r=RT(o,B);W(o,r)},X=e=>{let t;Promise.resolve("function"==typeof i?i(e):i).then(n=>{var o;if(!1===n)return;const r=function(e,t){const n=void 0!==e.uid?"uid":"name",o=t.filter(t=>t[n]!==e[n]);return o.length===t.length?null:o}(e,B);r&&(t=Object.assign(Object.assign({},e),{status:"removed"}
vendor: 6,911 bytes, line 1
1),null==B||B.forEach(e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(o=D.current)||void 0===o||o.abort(t),W(t,r))})},U=e=>{A(e.type),"drop"===e.type&&(null==u||u(e))};h.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:V,onProgress:q,onError:G,fileList:B,upload:D.current,nativeElement:F.current}));const{getPrefixCls:Z,direction:Y,upload:Q}=h.useContext(wt),J=Z("upload",y),ee=Object.assign(Object.assign({onBatchStart:K,onError:G,onProgress:q,onSuccess:V},e),{customRequest:z,data:k,multiple:O,action:j,accept:M,supportServerRender:P,prefixCls:J,disabled:T,beforeUpload:(t,n)=>{return o=void 0,r=void 0,a=function*(){const{beforeUpload:o,transformFile:r}=e;let i=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[qT],e===qT)return Object.defineProperty(t,qT,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return r&&(i=yield r(i)),i},new((i=void 0)||(i=Promise))(function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i(function(e){e(o)})).then(n,l)}s((a=a.apply(o,r||[])).next())});var o,r,i,a},onChange:void 0,hasControlInside:I});delete ee.className,delete ee.style,w&&!T||delete ee.id;const te=`${J}-wrapper`,[ne,oe,re]=wT(J,te),[ie]=Rv("Upload",Pv.Upload),{showRemoveIcon:ae,showPreviewIcon:le,showDownloadIcon:se,removeIcon:ce,previewIcon:de,downloadIcon:ue,extra:pe}="boolean"==typeof a?{}:a,fe=void 0===ae?!T:ae,me=(e,t)=>a?h.createElement(VT,{prefixCls:J,listType:l,items:B,previewFile:p,onPreview:s,onDownload:c,onRemove:X,showRemoveIcon:fe,showPreviewIcon:le,showDownloadIcon:se,removeIcon:ce,previewIcon:de,downloadIcon:ue,iconRender:g,extra:pe,locale:Object.assign(Object.assign({},ie),m),isImageUrl:v,progress:b,appendAction:e,appendActionVisible:t,itemRender:S,disabled:T}):e,ge=N()(te,C,R,oe,re,null==Q?void 0:Q.className,{[`${J}-rtl`]:"rtl"===Y,[`${J}-picture-card-wrapper`]:"picture-card"===l,[`${J}-picture-circle-wrapper`]:"picture-circle"===l}),he=Object.assign(Object.assign({},null==Q?void 0:Q.style),$);if("drag"===x){const e=N()(oe,J,`${J}-drag`,{[`${J}-drag-uploading`]:B.some(e=>"uploading"===e.status),[`${J}-drag-hover`]:"dragover"===_,[`${J}-disabled`]:T,[`${J}-rtl`]:"rtl"===Y});return ne(h.createElement("span",{className:ge,ref:F},h.createElement("div",{className:e,style:he,onDrop:U,onDragOver:U,onDragLeave:U},h.createElement(mT,Object.assign({},ee,{ref:D,className:`${J}-btn`}),h.createElement("div",{className:`${J}-drag-container`},w))),me()))}const ve=N()(J,`${J}-select`,{[`${J}-disabled`]:T,[`${J}-hidden`]:!w}),be=h.createElement("div",{className:ve,style:he},h.createElement(mT,Object.assign({},ee,{ref:D})));return ne("picture-card"===l||"picture-circle"===l?h.createElement("span",{className:ge,ref:F},me(be,!!w)):h.createElement("span",{className:ge,ref:F},be,me()))},XT=h.forwardRef(GT);const UT=h.forwardRef((e,t)=>{const{style:n,height:o,hasControlInside:r=!1,children:i}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:o});return h.createElement(XT,Object.assign({ref:t,hasControlInside:r},a,{style:l,type:"drag"}),i)}),ZT=UT,YT=XT;YT.Dragger=ZT,YT.LIST_IGNORE=qT;const QT=YT,JT=({children:e,...n})=>(0,t.jsx)(QT,{...n,children:e});JT.Dragger=QT.Dragger,JT.LIST_IGNORE=QT.LIST_IGNORE;const ez=JT,tz=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M6.41504 11.2119C6.86257 10.8763 7.44987 10.9602 7.81348 11.3984C8.13945 11.79 8.09256 12.3767 7.70117 12.7402C7.46817 12.9546 7.2168 13.1508 7.01172 13.3838C6.18191 14.3255 5.86466 15.4353 6.0791 16.666C6.34016 18.1762 7.21635 19.2111 8.64258 19.752C10.2649 20.3673 12.1584 19.7897 13.1934 18.3818C13.5197 17.9436 14.1257 17.8315 14.5732 18.1299L14.5635 18.1387C15.0202 18.4369 15.1604 19.0339 14.8438 19.5C14.3683 20.1992 13.734 20.7498 13.0068 21.1787C11.9066 21.8314 10.7036 22.0919 9.43555 21.9707C6.90885 21.7376 4.96915 19.9474 4.29785 17.8496C4.11147 17.2437 4.00001 16.6285 4 15.9854C4.05594 14.0181 4.85798 12.424 6.41504 11.2119ZM12.0928 8.02246C13.5099 7.78939 14.7317 8.73133 14.9648 10.0459C14.9928 10.2043 15.0019 10.3723 15.002 10.54V13.8125C15.002 13.9523 15.0391 13.9902 15.1787 13.9902C15.738 13.9902 16.3069 13.9995 16.8662 13.9902C17.3882 13.9809 17.7425 14.2045 17.9756 14.6797C18.6096 15.957 19.2537 17.2256 19.8877 18.5029L19.8691 18.5117C20.1675 19.1084 19.9152 19.7612 19.2998 19.957C18.8431 20.1061 18.3209 19.8921 18.1064 19.4541C17.5657 18.3726 17.0246 17.2905 16.4932 16.209C16.4186 16.0507 16.3351 15.9942 16.1582 15.9941H12.1299C11.6452 15.9941 11.1884 15.8828 10.7969 15.5752C10.3027 15.1836 10.0039 14.6707 10.0039 14.0273V10.5215C10.0133 9.25351 10.8434 8.22758 12.0928 8.02246ZM13.0254 2C14.1441 2.00011 15.0205 2.8949 15.0205 4.01367C15.0205 5.10454 14.1158 5.99023 13.0156 5.99023C11.897 5.99011 11.0206 5.09523 11.0205 3.97656C11.0205 2.88569 11.9252 2 13.0254 2Z",fill:"#161616"})}),nz=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M11.7061 1C11.962 0.999945 12.2003 1.13195 12.335 1.34961L18.1729 10.7939C18.1914 10.824 18.2078 10.8559 18.2217 10.8877L18.2617 10.9541L18.293 11.0088C18.309 11.041 18.5796 11.6104 18.8486 12.333C19.1077 13.0289 19.413 13.9904 19.4131 14.7539C19.4129 18.8056 15.9142 21.9999 11.7061 22C7.49806 21.9998 4.00023 18.8055 4 14.7539C4.00005 13.3589 4.42408 12.0522 5.15234 10.9512L11.0781 1.35059L11.1328 1.27246C11.2719 1.10133 11.4822 1.00012 11.7061 1ZM6.40918 11.7266C6.40465 11.7339 6.40029 11.7418 6.39551 11.749C5.812 12.6243 5.47662 13.6559 5.47656 14.7539C5.4768 17.8959 8.21672 20.5232 11.7061 20.5234C11.8222 20.5234 11.9374 20.5194 12.0518 20.5137L11.7324 3.18652L11.7061 3.14355L6.40918 11.7266Z",fill:"#161616"})}),oz=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M5.59389 7.94819C8.53468 4.51909 13.6277 4.02606 17.1554 6.75971L17.4914 7.03412L17.4943 7.03705C17.7364 7.24731 17.9693 7.47172 18.1886 7.70698L18.4035 7.94623L18.4064 7.94819L21.8478 11.9599C22.0509 12.1969 22.0509 12.5471 21.8478 12.7841L18.4064 16.7958L18.4054 16.7949C15.3698 20.3348 10.0413 20.7471 6.50796 17.7099L6.506 17.707C6.18305 17.4265 5.87729 17.1208 5.59682 16.7978L5.59389 16.7958L2.15249 12.7841C1.94916 12.5471 1.94918 12.197 2.15249 11.9599L5.59389 7.94819ZM16.6642 7.99213C13.7
1567 5.4954 9.41747 5.74489 6.80288 8.49897L6.55483 8.77338L3.46694 12.372L6.5519 15.9677L6.73745 16.1738C6.92657 16.3766 7.12747 16.5707 7.33608 16.7519H7.3351C10.3364 19.3298 14.8646 18.9813 17.4455 15.9716L20.5333 12.372L17.4474 8.77631L17.2628 8.56928C17.0739 8.36663 16.8726 8.17413 16.6642 7.99311V7.99213ZM12.0001 8.76459C12.9967 8.76468 13.8998 9.16821 14.5519 9.82026C15.2039 10.4724 15.6075 11.3754 15.6076 12.372C15.6075 13.3687 15.204 14.2716 14.5519 14.9238C13.8997 15.5759 12.9968 15.9793 12.0001 15.9794C11.0035 15.9794 10.1006 15.5758 9.44839 14.9238C8.79631 14.2716 8.39277 13.3687 8.39272 12.372C8.39277 11.3753 8.7962 10.4724 9.44839 9.82026C10.1006 9.16811 11.0034 8.76464 12.0001 8.76459ZM12.0001 10.0302C11.3515 10.0303 10.7666 10.2921 10.3429 10.7158C9.91949 11.1394 9.6584 11.7236 9.65835 12.372C9.6584 13.0206 9.91932 13.6056 10.3429 14.0292C10.7666 14.4528 11.3516 14.7138 12.0001 14.7138C12.6488 14.7137 13.2337 14.4529 13.6574 14.0292C14.081 13.6056 14.3419 13.0207 14.3419 12.372C14.3419 11.7236 14.0807 11.1394 13.6574 10.7158C13.2337 10.2921 12.6488 10.0303 12.0001 10.0302ZM13.0441 11.7392C13.3935 11.7393 13.6769 12.0226 13.6769 12.372C13.6769 12.7215 13.3935 13.0047 13.0441 13.0048H11.0109C10.6614 13.0047 10.3781 12.7215 10.3781 12.372C10.3781 12.0225 10.6614 11.7393 11.0109 11.7392H13.0441Z",fill:"black"})}),rz=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M18.4686 10.8349H18.9678C19.3836 10.8349 19.8213 10.8958 20.2505 11.0859L20.4344 11.1746L20.4362 11.1765C21.5028 11.7533 22.1667 12.9552 21.9635 14.1759L21.9626 14.175C21.7615 15.4423 20.8469 16.4768 19.5249 16.6563L19.524 16.6554C19.176 16.7039 18.7879 16.7025 18.4605 16.698V19.4655C18.4605 20.8389 17.4729 21.9322 16.0635 21.9794L16.0644 21.9803C15.1306 22.014 14.1993 21.9976 13.2915 21.9812V21.9803C12.8481 21.973 12.4381 21.8067 12.1411 21.4848C11.8496 21.1688 11.718 20.7592 11.7117 20.3479V20.337C11.7117 20.0171 11.7081 19.7781 11.6628 19.5733H11.6619C11.4998 18.8953 10.8956 18.4381 10.2116 18.4545C9.53851 18.471 8.95516 18.9397 8.8011 19.6648L8.80019 19.6694C8.76059 19.8507 8.75128 20.0635 8.75128 20.3289V20.3388C8.7451 20.7596 8.61212 21.1808 8.30558 21.502C7.99522 21.8273 7.57383 21.979 7.13066 21.9803C6.20557 21.9885 5.25735 21.9972 4.31519 21.9722H4.31247C3.22018 21.9387 2.21107 21.065 2.04868 19.9647L2.02694 19.7418C1.98498 18.7329 2.00251 17.7238 2.01063 16.7469C2.01409 15.9286 2.71291 15.3212 3.4238 15.2594C3.57752 15.2447 3.72614 15.2407 3.85229 15.2376C3.98634 15.2344 4.09084 15.2327 4.1938 15.2259L4.30794 15.2132C4.87186 15.1264 5.35275 14.6901 5.49917 14.0464C5.6328 13.4522 5.34779 12.815 4.80618 12.5081L4.80346 12.5063C4.48585 12.3247 4.12508 12.2513 3.70916 12.2645L3.70191 12.2654C3.1371 12.2781 2.53804 12.0548 2.20812 11.4256C2.20595 11.4215 2.20386 11.4171 2.20177 11.4129C2.10737 11.2238 2.01217 10.9568 2.01063 10.6691L2.00067 9.3284C1.99964 8.87873 2.00232 8.42739 2.01063 7.97768C2.03447 6.53831 3.14442 5.52737 4.56702 5.51633H7.31184V4.91299H7.31274C7.33439 3.54365 8.22102 2.42227 9.53939 2.08655L9.54392 2.08565C11.3468 1.63716 13.1445 3.00647 13.1665 4.87494V5.53263H15.8824C16.5533 5.53271 17.2057 5.73714 17.7285 6.25555L17.8309 6.36426L17.8381 6.3706L17.8372 6.37151C18.2433 6.83464 18.4686 7.39683 18.4686 8.03204V10.8349ZM8.75943 6.26461C8.75936 6.61944 8.50183 6.92164 8.15159 6.97847C8.05066 6.99482 7.95116 6.98714 7.85718 6.96307H4.57789L4.45107 6.96941C3.83305 7.0238 3.46642 7.44113 3.45732 8.00214V8.00396C3.44112 8.88 3.4491 9.76615 3.45732 10.6556V10.6619C3.45731 10.6504 3.45558 10.6571 3.46276 10.6827C3.469 10.7049 3.47985 10.7312 3.49265 10.7579C3.5028 10.7764 3.5101 10.7853 3.51349 10.7887C3.517 10.7922 3.52056 10.7949 3.52617 10.7978C3.53805 10.8038 3.57893 10.8196 3.66839 10.8177C4.28344 10.7989 4.92042 10.9073 5.5191 11.2489C6.6025 11.8627 7.1881 13.1329 6.91144 14.3634V14.3644C6.62399 15.6332 5.58505 16.5798 4.29345 16.669H4.29254C4.15021 16.6785 4.00479 16.6815 3.88761 16.6844C3.76271 16.6874 3.65778 16.6911 3.55878 16.7007L3.54882 16.7016C3.54517 16.7019 3.53484 16.7034 3.51983 16.7107C3.50419 16.7182 3.48826 16.7295 3.47544 16.7424C3.45269 16.7652 3.45457 16.7756 3.45642 16.7659C3.44811 17.7592 3.43272 18.7206 3.47272 19.682L3.47363 19.6829C3.49045 20.0909 3.91352 20.5128 4.35686 20.5264H4.35595C5.2675 20.5505 6.18937 20.5418 7.11798 20.5336H7.12432C7.18361 20.5336 7.21855 20.5246 7.23484 20.5182C7.24992 20.5123 7.25616 20.5061 7.25929 20.5028C7.26435 20.4973 7.30171 20.4524 7.30368 20.318C7.30387 20.0427 7.3118 19.7007 7.38612 19.3604C7.67675 18.0002 8.81633 17.0408 10.1771 17.0078C11.457 16.9771 12.605 17.7841 13.0044 19.0026L13.0741 19.2517L13.0759 19.2599C13.1607 19.642 13.1584 20.0389 13.1584 20.3261L13.1656 20.4041C13.177 20.4692 13.1985 20.4971 13.2046 20.5037C13.2094 20.5089 13.2156 20.5141 13.2272 20.5191C13.2397 20.5244 13.2675 20.5329 13.316 20.5336H13.3178C14.2321 20.5501 15.1237 20.5666 16.0119 20.5345H16.0146C16.6066 20.5149 17.0129 20.0971 17.0129 19.4655V15.9723C17.0129 15.5728 17.3371 15.2486 17.7367 15.2485H18.0157C18.5808 15.2393 18.9164 15.2799 19.3265 15.2222H19.3301C19.9429 15.139 20.4222 14.664 20.5349 13.9449L20.5359 13.937
17C20.6278 13.3838 20.3236 12.7624 19.7505 12.4511L19.5802 12.375C19.4025 12.3109 19.2024 12.2817 18.9678 12.2817H17.7448C17.3453 12.2816 17.021 11.9574 17.021 11.5578V8.03204C17.021 7.76618 16.9361 7.54149 16.7556 7.33268L16.6723 7.24843C16.4698 7.06603 16.2182 6.97944 15.8824 6.97937H12.4427C12.0434 6.97918 11.72 6.65585 11.7198 6.25646V4.89215L11.7072 4.72094C11.5948 3.88195 10.7421 3.27822 9.89359 3.4889C9.21153 3.66375 8.77085 4.21865 8.75943 4.93564V6.26461Z",fill:"#161616"})}),iz=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M9.2197 2.03515C9.83994 1.95518 10.4605 2.006 11.0508 2.24609C11.4107 2.39614 11.7209 2.60577 12.0009 2.88574C12.6613 2.22547 13.4719 1.99589 14.3623 2.00586C14.8024 2.00586 15.2229 2.09542 15.623 2.31543C16.1633 2.60556 16.4736 3.08603 16.6338 3.65625C16.7438 4.03646 16.8042 4.43693 16.8642 4.82715C16.8842 4.92715 16.904 4.97756 17.0039 5.01757C18.1445 5.4278 19.1555 6.05779 19.956 6.98828C20.9466 8.1389 21.2367 9.4599 20.8066 10.9307C20.6565 11.4609 20.4264 11.9516 20.1562 12.4219C20.1062 12.5119 20.0862 12.5923 20.1162 12.6924C20.4563 13.883 20.4257 15.0733 19.9355 16.2139C19.3752 17.5446 18.3753 18.3861 17.0146 18.8164C16.8846 18.8564 16.8337 18.9159 16.8037 19.0459C16.7336 19.3361 16.6637 19.6368 16.5537 19.917C16.2735 20.6371 15.7033 21.0069 14.9931 21.167C14.3928 21.2971 13.792 21.3376 13.1816 21.2275C12.7515 21.1575 12.3711 20.9776 12.041 20.6875C12.021 20.6675 12.0007 20.647 11.9707 20.6269L11.8486 20.749C11.5098 21.0196 11.1203 21.1935 10.7002 21.2373C10.2699 21.2773 9.8394 21.2573 9.40915 21.2373C9.04903 21.2172 8.70876 21.1071 8.38864 20.957C7.89845 20.7269 7.56775 20.3469 7.38767 19.8467C7.28765 19.5666 7.22818 19.2764 7.15817 18.9863C7.13818 18.9064 7.10813 18.8657 7.02829 18.8457C5.91761 18.5155 5.00708 17.8951 4.38669 16.8945C3.82637 15.994 3.61623 15.0037 3.65622 13.9531C3.67623 13.5128 3.74587 13.0921 3.87595 12.6719C3.90585 12.582 3.89557 12.5223 3.84567 12.4424C3.4555 11.7821 3.17574 11.0914 3.05563 10.3311C2.87552 9.21036 3.13546 8.18888 3.79587 7.27832C4.30616 6.58802 4.95711 6.04837 5.68747 5.61816C6.10763 5.36808 6.55738 5.14715 7.01755 4.99707C7.08759 4.97705 7.10813 4.93723 7.11813 4.86718C7.15816 4.39693 7.24809 3.92657 7.40817 3.48632C7.72838 2.63585 8.33918 2.14522 9.2197 2.03515ZM9.52927 3.37597C8.93902 3.43604 8.66884 3.66677 8.50876 4.24707C8.40875 4.62719 8.37888 5.00733 8.37888 5.39746C8.37888 5.77769 8.20859 5.99785 7.85837 6.12793C7.72829 6.17795 7.59782 6.21852 7.46774 6.26855C6.68746 6.57871 5.95713 6.9791 5.33688 7.56933C4.94673 7.93952 4.62611 8.36942 4.45602 8.88965C4.20589 9.65006 4.43612 10.3606 4.69626 11.041C4.95637 10.8209 5.19643 10.5705 5.47653 10.4004C6.53712 9.74003 7.59807 9.81043 8.63864 10.4707C9.07879 10.7508 9.40925 11.1309 9.64938 11.5811C9.80948 11.8912 9.69956 12.2818 9.39938 12.4619C9.0993 12.652 8.70918 12.5722 8.49899 12.2822C8.43904 12.2023 8.389 12.1219 8.32907 12.042C7.82882 11.3416 7.05821 11.1214 6.29782 11.4814C5.7775 11.7316 5.43666 12.1618 5.22653 12.7021C4.93638 13.4726 4.91629 14.2735 5.06638 15.084C5.19648 15.8042 5.54702 16.3943 6.11716 16.8545C6.59743 17.2347 7.13792 17.4951 7.73825 17.6152C8.19841 17.7153 8.36878 17.9253 8.37888 18.4053C8.37888 18.5554 8.38914 18.7063 8.40915 18.8564C8.46928 19.3864 8.70954 19.6766 9.2197 19.8066C9.61982 19.9066 10.0303 19.9465 10.4404 19.8965C10.9205 19.8364 11.3105 19.5963 11.3105 18.916C11.3005 14.133 11.3105 9.34961 11.3105 4.55664C11.3104 4.21683 11.1804 3.95705 10.9306 3.74707C10.5204 3.41686 10.0396 3.33595 9.52927 3.37597ZM14.8027 3.42675C14.2223 3.27666 13.6519 3.31677 13.1416 3.66699C12.8617 3.857 12.6818 4.10674 12.6816 4.47656V18.9355C12.6816 19.0356 12.6811 19.1365 12.7011 19.2266C12.7912 19.6165 13.0816 19.7769 13.4316 19.8369C13.9019 19.927 14.3729 19.8769 14.8232 19.7568C15.2433 19.6467 15.4837 19.3559 15.5537 18.9258C15.5837 18.7157 15.5935 18.4954 15.6035 18.2754C15.6236 17.9353 15.8135 17.6853 16.1435 17.6152C16.5538 17.5252 16.954 17.3947 17.3242 17.1846C18.0346 16.7843 18.5752 16.2245 18.8154 15.4141C19.0656 14.5835 19.0553 13.7526 18.8252 12.9121C18.6651 12.3418 18.3645 11.8719 17.8642 11.5518C17.2939 11.1916 16.5236 11.1314 15.9433 11.6816C15.7833 11.8317 15.6534 12.0221 15.5234 12.2021C15.3933 12.3922 15.233 12.522 15.0029 12.542C14.7227 12.562 14.5024 12.4518 14.3623 12.2217C14.2224 11.9917 14.2224 11.7417 14.3623 11.5117C14.5624 11.1515 14.8226 10.8507 15.1328 10.6006C16.2135 9.73004 17.8549 9.63052 18.9756 10.7412C19.0755 10.8412 19.1759 10.9408 19.2959 11.0508L19.5254 10.3311C19.7655 9.52072 19.616 8.77991 19.1259 8.09961C18.8258 7.67937 18.4454 7.35852 18.0351 7.06836C17.4448 6.66811 16.8139 6.35807 16.1435 6.12793C16.0235 6.08789 15.9035 6.01776 15.8134 5.92773C15.6635 5.79773 15.6133 5.61791 15.6133 5.41797C15.6133 4.94769 15.5831 4.48713 15.4131 4.04687C15.303 3.7567 15.1229 3.50681 14.8027 3.42675Z
1M14.3427 14.8037C14.793 14.1233 15.5933 13.783 16.3838 13.9531C16.754 14.0332 16.9838 14.3136 16.9638 14.6738C16.9536 15.0038 16.6935 15.2835 16.3535 15.3135C16.2835 15.3135 16.2135 15.3137 16.1435 15.3037C15.7533 15.2437 15.4735 15.4042 15.3134 15.7744C15.1635 16.1345 15.1426 16.5144 15.1425 16.8945C15.1425 17.1346 15.0627 17.3245 14.8828 17.4746C14.6728 17.6446 14.4428 17.6653 14.2129 17.5654C13.9827 17.4654 13.8317 17.2846 13.8017 17.0244C13.7918 16.9145 13.8017 16.7945 13.8017 16.6846L13.8281 16.4248C13.8782 15.8454 14.0188 15.294 14.3427 14.8037ZM7.5986 13.9434C8.44896 13.7734 9.27942 14.1729 9.7197 14.9531C10.0399 15.5135 10.1499 16.1345 10.1699 16.835L10.1865 16.9053C10.1919 17.0963 10.1211 17.3073 9.91989 17.4648C9.70976 17.6349 9.46961 17.6648 9.22946 17.5547C8.99943 17.4547 8.85916 17.2651 8.82907 16.9951C8.79907 16.6651 8.76946 16.3447 8.72946 16.0146C8.71946 15.9046 8.66912 15.8041 8.61911 15.7041C8.46907 15.384 8.18889 15.2341 7.83884 15.2939C7.59869 15.334 7.37833 15.2934 7.19821 15.1133C7.00816 14.9232 6.93825 14.693 7.02829 14.4228C7.11841 14.143 7.31857 13.9934 7.5986 13.9434ZM9.72946 6.14843C10.0295 6.14843 10.2899 6.32796 10.3701 6.62793C10.5802 7.48846 10.3697 8.51971 9.32907 9.04004C8.92898 9.24002 8.49887 9.33957 8.0488 9.34961C7.73865 9.37962 7.46867 9.27981 7.30856 8.96972C7.08847 8.53955 7.38802 8.01948 7.86813 7.98925C8.05821 7.97925 8.2486 7.96922 8.42868 7.94922C8.94885 7.8992 9.11896 7.55913 9.07907 7.03906C9.06908 6.90912 9.05894 6.75868 9.08884 6.63867C9.16887 6.32853 9.41934 6.14849 9.72946 6.14843ZM14.4023 6.14843C14.7625 6.22848 14.9631 6.5785 14.9131 6.96875C14.8931 7.14879 14.9133 7.32874 14.9433 7.50879C14.9833 7.7389 15.1529 7.86937 15.373 7.89941C15.6132 7.93944 15.8536 7.95948 16.0937 7.97949C16.3838 7.99956 16.624 8.1896 16.7041 8.46972C16.784 8.74971 16.684 9.04963 16.4541 9.21972C16.314 9.31975 16.1738 9.35957 15.9238 9.34961L15.6963 9.33593C15.1474 9.28606 14.642 9.11582 14.2129 8.73925C13.5725 8.17891 13.4224 7.45894 13.6025 6.64843C13.6826 6.27826 14.0521 6.06846 14.4023 6.14843Z",fill:"black"})}),az=()=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 2C17.5114 2.00005 22 6.48856 22 12C22 17.5114 17.5114 22 12 22C6.48856 22 2.00005 17.5114 2 12C2 6.48853 6.48853 2 12 2ZM12 3.56641C7.34566 3.56641 3.56641 7.35488 3.56641 12C3.56645 16.6451 7.34569 20.4326 12 20.4326C16.6543 20.4326 20.4326 16.6543 20.4326 12C20.4326 7.34569 16.6543 3.56645 12 3.56641ZM12 8.25781C14.0645 8.25784 15.7422 9.93552 15.7422 12C15.7421 14.0644 14.0644 15.7422 12 15.7422C9.93553 15.7422 8.25786 14.0645 8.25781 12C8.25781 9.9355 9.9355 8.25781 12 8.25781Z",fill:"#161616"})}),lz={features:[{key:"contrast",label:(0,u.__)("Contrast +","website-accessibility"),styleMethod:"inline",disableAnnouncement:(0,u.__)("The contrast setting has been disabled.","website-accessibility"),description:(0,u.__)("Improves visibility by changing the website’s contrast with invert, dark, and light modes.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M20.25 12C20.25 7.44365 16.5563 3.75 12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12ZM21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12Z",fill:"black"}),(0,t.jsx)("path",{d:"M12.75 3.5V20.5H11.25V3.5H12.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M11.5 15.25V16.75H4V15.25H11.5ZM11.5 11.25V12.75H3V11.25H11.5ZM11.5 7.25V8.75H4V7.25H11.5Z",fill:"black"})]}),attributes:[{name:(0,u.__)("Invert","website-accessibility"),value:"invert",enableAnnouncement:(0,u.__)("Enable Contrast Mode, set to Invert.","website-accessibility"),css:[{selector:"html",properties:{filter:"invert(1)"}},{selector:".wap-preset__preview-drawer ",properties:{filter:"invert(1)"}}]},{name:(0,u.__)("Dark","website-accessibility"),value:"dark",enableAnnouncement:(0,u.__)("Contrast Mode, set to Dark.","website-accessibility"),css:[{selector:"body, main, section, article, nav, aside, div",properties:{backgroundColor:"#111",color:"#e0e0e0"}},{selector:"h1, h2, h3, h4, h5, h6, h1 span, h2 span, h3 span, h4 span, h5 span, h6 span",properties:{color:"#fff"}},{selector:"a, a span",properties:{color:"#4fd1c5"}},{selector:"input, textarea, select, button",properties:{background:"#222",color:"#e0e0e0",borderColor:"#444"}},{selector:"button span",properties:{color:"#e0e0e0"}}]}
1,{name:(0,u.__)("Light","website-accessibility"),value:"light",enableAnnouncement:(0,u.__)("Contrast Mode, set to Light.","website-accessibility"),css:[{selector:"body, main, section, article, nav, aside, div",properties:{backgroundColor:"#fff",color:"#222"}},{selector:"h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *",properties:{color:"#111"}},{selector:"a, a *",properties:{color:"#1a4cd8"}},{selector:"input, textarea, select, button, button *",properties:{background:"#f5f7fa",color:"#222",borderColor:"#ccc"}}]}]},{key:"highlightLinks",label:(0,u.__)("Highlight Links","website-accessibility"),styleMethod:"inline",disableAnnouncement:(0,u.__)("The highlight links setting has been disabled.","website-accessibility"),description:(0,u.__)("Helps users find clickable links by clearly highlighting them.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M1.25 12C1.25 9.37665 3.37665 7.25 6 7.25H10.333C10.7472 7.25 11.083 7.58579 11.083 8C11.083 8.41421 10.7472 8.75 10.333 8.75H6C4.20507 8.75 2.75 10.2051 2.75 12C2.75 13.7949 4.20508 15.25 6 15.25H10.333C10.7472 15.25 11.083 15.5858 11.083 16C11.083 16.4142 10.7472 16.75 10.333 16.75H6C3.37665 16.75 1.25 14.6234 1.25 12Z",fill:"black"}),(0,t.jsx)("path",{d:"M22.75 12C22.75 9.37665 20.6234 7.25 18 7.25H13.667C13.2528 7.25 12.917 7.58579 12.917 8C12.917 8.41421 13.2528 8.75 13.667 8.75H18C19.7949 8.75 21.25 10.2051 21.25 12C21.25 13.7949 19.7949 15.25 18 15.25H13.667C13.2528 15.25 12.917 15.5858 12.917 16C12.917 16.4142 13.2528 16.75 13.667 16.75H18C20.6234 16.75 22.75 14.6234 22.75 12Z",fill:"black"}),(0,t.jsx)("path",{d:"M15.75 11.25C16.1642 11.25 16.5 11.5858 16.5 12C16.5 12.4142 16.1642 12.75 15.75 12.75H8.25C7.83579 12.75 7.5 12.4142 7.5 12C7.5 11.5858 7.83579 11.25 8.25 11.25H15.75Z",fill:"black"})]}),attributes:[{name:(0,u.__)("Enable","website-accessibility"),value:"enable",css:[{selector:"a",properties:{backgroundColor:"#ffff00",color:"#000"}}],enableAnnouncement:(0,u.__)("Highlight Links Enable.","website-accessibility")},{name:(0,u.__)("Disable","website-accessibility"),value:"disable",css:[]}]},{key:"biggerText",label:(0,u.__)("Bigger Text","website-accessibility"),styleMethod:"styleTag",disableAnnouncement:(0,u.__)("The bigger text setting has been disabled.","website-accessibility"),description:(0,u.__)("Increases text size to improve readability across the website.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M21.2503 7.31055V4.75H17.1946V19.25H19.7776C20.1919 19.25 20.5276 19.5858 20.5276 20C20.5276 20.4142 20.1919 20.75 19.7776 20.75H13.1107C12.6966 20.7498 12.3607 20.4141 12.3607 20C12.3607 19.5859 12.6966 19.2502 13.1107 19.25H15.6946V4.75H11.0833V7.31055C11.0832 7.72467 10.7475 8.06055 10.3333 8.06055C9.91917 8.06055 9.58342 7.72467 9.58331 7.31055V4C9.58331 3.58579 9.9191 3.25 10.3333 3.25H22.0003C22.4144 3.25018 22.7503 3.58589 22.7503 4V7.31055C22.7502 7.72456 22.4143 8.06037 22.0003 8.06055C21.5862 8.06055 21.2504 7.72467 21.2503 7.31055Z",fill:"black"}),(0,t.jsx)("path",{d:"M7.91699 12.1237V10.819H6.24219V19.2496H7.39648C7.81058 19.2496 8.14629 19.5856 8.14648 19.9996C8.14648 20.4138 7.8107 20.7496 7.39648 20.7496H3.58691C3.17288 20.7494 2.83691 20.4137 2.83691 19.9996C2.83711 19.5857 3.173 19.2498 3.58691 19.2496H4.74219V10.819H2.75V12.1237C2.75 12.5379 2.41421 12.8737 2 12.8737C1.58579 12.8737 1.25 12.5379 1.25 12.1237V10.069C1.25 9.65476 1.58579 9.31897 2 9.31897H8.66699C9.08106 9.31915 9.41699 9.65486 9.41699 10.069V12.1237C9.41699 12.5378 9.08106 12.8735 8.66699 12.8737C8.25278 12.8737 7.91699 12.5379 7.91699 12.1237Z",fill:"black"})]}),attributes:[{name:(0,u.__)("Medium","website-accessibility"),value:"medium",properties:["font-size"],percent:20,enableAnnouncement:(0,u.__)("Bigger Text, set to Medium.","website-accessibility")},{name:(0,u.__)("Large","website-accessibility"),value:"large",properties:["font-size"],percent:40,enableAnnouncement:(0,u.__)("Bigger Text, set to Large.","website-accessibility")},{name:(0,u.__)("Extra Large","website-accessibility"),value:"extra-large",properties:["font-size"],percent:60,enableAnnouncement:(0,u.__)("Bigger Text, set to Extra Large.","website-accessibility")},{name:(0,u.__)("Huge","website-accessibility"),value:"huge",properties:["font-size"],percent:80,enableAnnouncement:(0,u.__)("Bigger Text, set to Huge.","website-accessibility")}]},{key:"textSpacing",label:(0,u.__)("Text Spacing","website-accessibility"),styleMethod:"styleTag",disableAnnouncement:(0,u.__)("The text spacing setting has been disabled.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M5.54199 6.50194C5.81714 6.1924 6.29099 6.16438 6.60058 6.43944C6.91013 6.7146 6.93817 7.18845 6.66308 7.49803L3.66992 10.8652H5.07715C5.49121 10.8653 5.82706 11.2012 5.82715 11.6152C5.82715 12.0294 5.49125 12.3651 5.07715 12.3652H3.66992L6.66308 15.7324C6.93827 16.042 6.91016 16.5158 6.60058 16.791C6.29108 17.0661 5.81721 17.0388 5.54199 16.7295L1.43945 12.1133C1.18705 11.8291 1.18695 11.4013 1.43945 11.1172L5.54199 6.50194ZM13.7949 10.8652C14.2091 10.8652 14.5448 11.2011 14.5449 11.6152C14.5449 12.0294 14.2091 12.3652 13.7949 12.3652H9.69238C9.27817 12.3652 8.94238 12.0294 8.94238 11.6152C8.94246 11.2011 9.27822 10.8652 9.69238 10.8652H13.7949Z",fill:"black"}),(0,t.jsx)("path",{d:"M18.458 6.50194C18.1829 6.1924 17.709 6.16438 17.3994 6.43944C17.0899 6.7146 17.0618 7.18845 17.3369 7.49803L20.3301 10.8652H18.9228C18.5088 10.8653 18.1729 11.2012 18.1728 11.6152C18.1728 12.0294 18.5087 12.3651 18.9228 12.3652H20.3301L17.3369 15.7324C17.0617 16.042 17.0898 16.5158 17.3994 16.791C17.7089 17.0661 18.1828 17.0388 18.458 16.7295L22.5605 12.1133C22.8129 11.8291 22.813 11.4013 22.5605 11.1172L18.458 6.50194Z",fill:"black"})]}),description:(0,u.__)("Improves readability by adding space between text elements.","
1website-accessibility"),attributes:[{name:(0,u.__)("Medium","website-accessibility"),value:"medium",css:[{selector:"body, p, div, span, li, td, th, h1, h2, h3, h4, h5, h6",properties:{letterSpacing:"0.5px",wordSpacing:"2px"}}],enableAnnouncement:(0,u.__)("Text Spacing, set to Medium.","website-accessibility")},{name:(0,u.__)("Large","website-accessibility"),value:"large",css:[{selector:"body, p, div, span, li, td, th, h1, h2, h3, h4, h5, h6",properties:{letterSpacing:"1px",wordSpacing:"4px"}}],enableAnnouncement:(0,u.__)("Text Spacing, set to Large.","website-accessibility")},{name:(0,u.__)("Extra Large","website-accessibility"),value:"extra-large",css:[{selector:"body, p, div, span, li, td, th, h1, h2, h3, h4, h5, h6",properties:{letterSpacing:"2px",wordSpacing:"8px"}}],enableAnnouncement:(0,u.__)("Text Spacing, set to Extra Large.","website-accessibility")}]},{key:"pauseAnimations",label:(0,u.__)("Pause Animations","website-accessibility"),styleMethod:"styleTag",disableAnnouncement:(0,u.__)("The pause animations setting has been disabled.","website-accessibility"),description:(0,u.__)("Pauses animations to reduce distractions and motion.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M4.66699 12.75L3 12.75C2.58579 12.75 2.25 12.4142 2.25 12C2.25 11.5858 2.58579 11.25 3 11.25L4.66699 11.25C5.08106 11.2502 5.41699 11.5859 5.41699 12C5.41699 12.4141 5.08106 12.7498 4.66699 12.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M4.66699 12.75L3 12.75C2.58579 12.75 2.25 12.4142 2.25 12C2.25 11.5858 2.58579 11.25 3 11.25L4.66699 11.25C5.08106 11.2502 5.41699 11.5859 5.41699 12C5.41699 12.4141 5.08106 12.7498 4.66699 12.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M4.66699 12.75L3 12.75C2.58579 12.75 2.25 12.4142 2.25 12C2.25 11.5858 2.58579 11.25 3 11.25L4.66699 11.25C5.08106 11.2502 5.41699 11.5859 5.41699 12C5.41699 12.4141 5.08106 12.7498 4.66699 12.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M17.9772 7.69022L19.4209 6.85672C19.7796 6.64961 20.2383 6.77252 20.4454 7.13124C20.6525 7.48996 20.5296 7.94865 20.1709 8.15576L18.7272 8.98925C18.3686 9.19613 17.9098 9.07336 17.7027 8.71474C17.4957 8.35611 17.6187 7.8974 17.9772 7.69022Z",fill:"black"}),(0,t.jsx)("path",{d:"M7.68687 6.0261L6.85337 4.58244C6.64626 4.22372 6.76917 3.76503 7.12789 3.55792C7.48661 3.35082 7.9453 3.47372 8.15241 3.83244L8.9859 5.2761C9.19278 5.63478 9.07001 6.09357 8.71139 6.30062C8.35276 6.50767 7.89405 6.3846 7.68687 6.0261Z",fill:"black"}),(0,t.jsx)("path",{d:"M5.27609 8.98346L3.83244 8.14996C3.47372 7.94286 3.35081 7.48416 3.55792 7.12544C3.76503 6.76672 4.22372 6.64382 4.58244 6.85093L6.02609 7.68442C6.3846 7.89161 6.50767 8.35032 6.30061 8.70894C6.09356 9.06757 5.63477 9.19034 5.27609 8.98346Z",fill:"black"}),(0,t.jsx)("path",{d:"M8.98302 18.7256L8.14952 20.1692C7.94241 20.528 7.48372 20.6509 7.125 20.4438C6.76628 20.2366 6.64338 19.778 6.85048 19.4192L7.68398 17.9756C7.89116 17.6171 8.34987 17.494 8.7085 17.7011C9.06712 17.9081 9.1899 18.3669 8.98302 18.7256Z",fill:"black"}),(0,t.jsx)("path",{d:"M12.75 19.333L12.75 21C12.75 21.4142 12.4142 21.75 12 21.75C11.5858 21.75 11.25 21.4142 11.25 21L11.25 19.333C11.2502 18.9189 11.5859 18.583 12 18.583C12.4141 18.583 12.7498 18.9189 12.75 19.333Z",fill:"black"}),(0,t.jsx)("path",{d:"M21.0003 12.75L19.3333 12.75C18.9191 12.75 18.5833 12.4142 18.5833 12C18.5833 11.5858 18.9191 11.25 19.3333 11.25L21.0003 11.25C21.4144 11.2502 21.7503 11.5859 21.7503 12C21.7503 12.4141 21.4144 12.7498 21.0003 12.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M21.0003 12.75L19.3333 12.75C18.9191 12.75 18.5833 12.4142 18.5833 12C18.5833 11.5858 18.9191 11.25 19.3333 11.25L21.0003 11.25C21.4144 11.2502 21.7503 11.5859 21.7503 12C21.7503 12.4141 21.4144 12.7498 21.0003 12.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M21.0003 12.75L19.3333 12.75C18.9191 12.75 18.5833 12.4142 18.5833 12C18.5833 11.5858 18.9191 11.25 19.3333 11.25L21.0003 11.25C21.4144 11.2502 21.7503 11.5859 21.7503 12C21.7503 12.4141 21.4144 12.7498 21.0003 12.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M3.83216 15.8569L5.27582 15.0234C5.63454 14.8163 6.09323 14.9392 6.30033 15.2979C6.50744 15.6566 6.38454 16.1153 6.02582 16.3224L4.58216 17.1559C4.22348 17.3628 3.76469 17.24 3.55764 16.8814C3.35059 16.5228 3.47366 16.0641 3.83216 15.8569Z",fill:"black"}),(0,t.jsx)("path",{d:"M15.8535 20.1712L15.02 18.7275C14.8129 18.3688 14.9358 17.9101 15.2946 17.703C15.6533 17.4959 16.112 17.6188 16.3191 17.9775L17.1526 19.4212C17.3594 19.7799 17.2367 20.2386 16.878 20.4457C16.5194 20.6528 16.0607 20.5297 15.8535 20.1712Z",fill:"black"}),(0,t.jsx)("path",{d:"M19.4212 17.1501L17.9775 16.3167C17.6188 16.1095 17.4959 15.6509 17.703 15.2921C17.9101 14.9334 18.3688 14.8105 18.7275 15.0176L20.1712 15.8511C20.5297 16.0583 20.6528 16.517 20.4457 16.8756C20.2386 17.2343 19.7799 17.357 19.4212 17.1501Z",fill:"black"}),(0,t.jsx)("path",{d:"M17.1497 4.5805L16.3162 6.02416C16.1091 6.38288 15.6504 6.50578 15.2917 6.29868C14.9329 6.09157 14.81 5.63288 15.0171 5.27416L15.8506 3.8305C16.0578 3.472 16.5165 3.34893 16.8752 3.55598C17.2338 3.76303 17.3566 4.22182 17.1497 4.5805Z",fill:"black"}),(0,t.jsx)("path",{d:"M12.75 2.99969L12.75 4.66669C12.75 5.0809 12.4142 5.41669 12 5.41669C11.5858 5.41669 11.25 5.0809 11.25 4.66669L11.25 2.99969C11.2502 2.58563 11.5859 2.24969 12 2.24969C12.4141 2.24969 12.7498 2.58563 12.75 2.99969Z",fill:"black"}),(0,t.jsx)("path",{d:"M9.57678 14.3325V9.33249C9.57678 8.91828 9.91257 8.58249 10.3268 8.58249C10.741 8.58249 11.0768 8.91828 11.
10768 9.33249V14.3325C11.0768 14.7467 10.741 15.0825 10.3268 15.0825C9.91257 15.0825 9.57678 14.7467 9.57678 14.3325ZM12.9098 14.3325V9.33249C12.9098 8.91838 13.2457 8.58266 13.6598 8.58249C14.074 8.58249 14.4098 8.91828 14.4098 9.33249V14.3325C14.4098 14.7467 14.074 15.0825 13.6598 15.0825C13.2457 15.0823 12.9098 14.7466 12.9098 14.3325Z",fill:"black"})]}),attributes:[{name:(0,u.__)("Enable","website-accessibility"),value:"enable",css:[{selector:"*",properties:{animation:"none",transition:"none"}}],enableAnnouncement:(0,u.__)("Pause Animations Enable.","website-accessibility")},{name:(0,u.__)("Disable","website-accessibility"),value:"disable",css:[]}]},{key:"hideImages",label:(0,u.__)("Hide Images","website-accessibility"),styleMethod:"inline",disableAnnouncement:(0,u.__)("The hide images setting has been disabled.","website-accessibility"),icon:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M20.1973 15.5303C20.0881 15.4961 19.9839 15.44 19.8965 15.3545L18.3154 13.8066L15.4404 16.6201L19.1328 20.2344C19.7351 20.1447 20.1973 19.6272 20.1973 19V15.5303ZM21.4697 3.46973C21.7626 3.17684 22.2374 3.17684 22.5303 3.46973C22.8232 3.76262 22.8232 4.23738 22.5303 4.53028L20.5605 6.5L22.5303 8.46973C22.8232 8.76262 22.8232 9.23738 22.5303 9.53028C22.2374 9.82317 21.7626 9.82317 21.4697 9.53028L19.5 7.56055L17.5303 9.53028C17.2374 9.82317 16.7626 9.82317 16.4697 9.53028C16.1768 9.23738 16.1768 8.76262 16.4697 8.46973L18.4395 6.5L16.4697 4.53028C16.1768 4.23738 16.1768 3.76262 16.4697 3.46973C16.7626 3.17684 17.2374 3.17684 17.5303 3.46973L19.5 5.43946L21.4697 3.46973ZM2.75 19C2.75 19.6904 3.30964 20.25 4 20.25H17.0029L7.2627 10.7168L2.75 15.1328V19ZM21.6973 19C21.6973 20.5188 20.466 21.75 18.9473 21.75H4C2.48122 21.75 1.25 20.5188 1.25 19V6.51563C1.25 4.99685 2.48122 3.76563 4 3.76563H14.6318C15.0459 3.76577 15.3818 4.1015 15.3818 4.51563C15.3816 4.92954 15.0458 5.26549 14.6318 5.26563H4C3.30964 5.26563 2.75 5.82527 2.75 6.51563V13.0342L6.73828 9.13086L6.85547 9.03711C7.14398 8.84988 7.533 8.88119 7.78809 9.13086L14.3682 15.5713L17.791 12.2217L17.9082 12.1279C18.1967 11.9408 18.5858 11.972 18.8408 12.2217L20.1973 13.5488V10.6973C20.1973 10.2831 20.5331 9.94733 20.9473 9.94727C21.3615 9.94727 21.6973 10.2831 21.6973 10.6973V19Z",fill:"black"})}),description:(0,u.__)("Hides images to reduce distractions and improve focus on text content.","website-accessibility"),attributes:[{name:(0,u.__)("Enable","website-accessibility"),value:"enable",css:[{selector:"img",properties:{display:"none"}}],enableAnnouncement:(0,u.__)("Hide Images Enable.","website-accessibility")},{name:(0,u.__)("Disable","website-accessibility"),value:"disable",css:[]}]},{key:"cursor",label:(0,u.__)("Cursor","website-accessibility"),styleMethod:"styleTag",disableAnnouncement:(0,u.__)("The cursor setting has been disabled.","website-accessibility"),icon:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M3.55566 5.31348C3.29033 4.25165 4.25165 3.29034 5.31348 3.55566L17.9922 6.72461C19.2639 7.04268 19.4937 8.75105 18.3516 9.39453L15.0059 11.2793L20.0137 16.2861C20.5972 16.8698 20.5761 17.8221 19.9678 18.3799L18.1016 20.0908C17.5211 20.6229 16.6218 20.5941 16.0762 20.0264L11.2686 15.0244L9.39453 18.3516C8.75105 19.4938 7.04268 19.2639 6.72461 17.9922L3.55566 5.31348ZM8.14941 17.5068L9.99512 14.2295C10.4424 13.4359 11.4891 13.2573 12.1729 13.8154L12.3047 13.9365L17.124 18.9512L18.915 17.3086L13.8994 12.2939C13.2208 11.6153 13.3769 10.476 14.2129 10.0049L17.5068 8.14941L5.03027 5.03027L8.14941 17.5068Z",fill:"black"})}),description:(0,u.__)("Changes the cursor to a big cursor, mask, or guideline.","website-accessibility"),attributes:[{name:(0,u.__)("Big Cursor","website-accessibility"),value:"big-cursor",css:[{selector:"body, a, button, input, select, textarea, div",properties:{cursor:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><path d='M2 2 L50 30 L32 34 L30 62 Z' fill='white' stroke='black' stroke-width='3'/></svg>\") 2 2, auto"}}],enableAnnouncement:(0,u.__)("Big Cursor Enable.","website-accessibility")},{name:(0,u.__)("Mask","website-accessibility"),value:"mask",css:[],enableAnnouncement:(0,u.__)("Cursor Mask Enable.","website-accessibility")},{name:(0,u.__)("Guideline","website-accessibility"),value:"guideline",css:[],enableAnnouncement:(0,u.__)("Cursor Guideline Enable.","website-accessibility")}]},{key:"tooltips",label:(0,u.__)("Tooltips","website-accessibility"),styleMethod:"rootClass",disableAnnouncement:(0,u.__)("The tooltips setting has been disabled.","website-accessibility"),description:(0,u.__)("Enables tooltips to provide additional context for elements on the page.","website-accessibility"),icon:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M20.25 5C20.25 3.75736 19.2426 2.7
15 18 2.75H6C4.75736 2.75 3.75 3.75736 3.75 5V20.1924L6.2207 17.7295C6.92365 17.0285 7.87643 16.6348 8.86914 16.6348H18C19.2426 16.6348 20.2499 15.6273 20.25 14.3848V5ZM11.5068 14V8.5C11.5068 8.08589 11.8428 7.75017 12.2568 7.75C12.671 7.75 13.0068 8.08579 13.0068 8.5V14C13.0068 14.4142 12.671 14.75 12.2568 14.75C11.8428 14.7498 11.5068 14.4141 11.5068 14ZM11.5068 6V5.5C11.5068 5.08589 11.8428 4.75017 12.2568 4.75C12.671 4.75 13.0068 5.08579 13.0068 5.5V6C13.0068 6.41421 12.671 6.75 12.2568 6.75C11.8428 6.74983 11.5068 6.41411 11.5068 6ZM21.75 14.3848C21.7499 16.4558 20.071 18.1348 18 18.1348H8.86914C8.27366 18.1348 7.70201 18.3706 7.28027 18.791L3.5293 22.5312C3.31469 22.7451 2.99273 22.8084 2.71289 22.6924C2.4329 22.5762 2.25 22.3031 2.25 22V5C2.25 2.92893 3.92893 1.25 6 1.25H18C20.0711 1.25 21.75 2.92893 21.75 5V14.3848Z",fill:"black"})}),attributes:[{name:(0,u.__)("Enable","website-accessibility"),value:"enable",css:[],enableAnnouncement:(0,u.__)("Tooltips Enable.","website-accessibility")},{name:(0,u.__)("Disable","website-accessibility"),value:"disable",css:[]}]},{key:"lineHeight",label:(0,u.__)("Line Height","website-accessibility"),styleMethod:"styleTag",disableAnnouncement:(0,u.__)("The line height setting has been disabled.","website-accessibility"),description:(0,u.__)("Increases the space between lines of text for better readability.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M18.2726 16.4167C18.6868 16.4167 19.0226 16.7525 19.0226 17.1667C19.0226 17.5809 18.6868 17.9167 18.2726 17.9167H10.0909C9.6767 17.9167 9.34091 17.5809 9.34091 17.1667C9.34091 16.7525 9.6767 16.4167 10.0909 16.4167H18.2726ZM21.0001 12.7497C21.4142 12.7497 21.7499 13.0857 21.7501 13.4997C21.7501 13.9139 21.4143 14.2496 21.0001 14.2497H10.0909C9.6767 14.2497 9.34091 13.9139 9.34091 13.4997C9.34109 13.0856 9.67681 12.7497 10.0909 12.7497H21.0001ZM21.0001 9.08368C21.4143 9.08373 21.7501 9.4195 21.7501 9.83368C21.7499 10.2477 21.4142 10.5836 21.0001 10.5837H10.0909C9.67681 10.5837 9.34109 10.2477 9.34091 9.83368C9.34091 9.41947 9.6767 9.08368 10.0909 9.08368H21.0001ZM21.0001 5.41669C21.4143 5.41673 21.7501 5.7525 21.7501 6.16669C21.7501 6.58087 21.4143 6.91664 21.0001 6.91669H10.0909C9.6767 6.91669 9.34091 6.5809 9.34091 6.16669C9.34091 5.75247 9.6767 5.41669 10.0909 5.41669H21.0001Z",fill:"black"}),(0,t.jsx)("path",{d:"M3.90626 4.71875C4.3113 4.32535 4.96113 4.32544 5.36622 4.71875L5.44923 4.80859L6.85353 6.52539C7.11539 6.84583 7.06814 7.31781 6.74806 7.58008C6.42748 7.84237 5.95469 7.79519 5.69239 7.47461L4.63575 6.18359L3.58009 7.47461C3.31779 7.79519 2.84599 7.84237 2.5254 7.58008C2.20482 7.31778 2.15764 6.84597 2.41993 6.52539L3.82325 4.80859L3.90626 4.71875Z",fill:"black"}),(0,t.jsx)("path",{d:"M5.36649 19.2812C4.96145 19.6746 4.31162 19.6746 3.90653 19.2812L3.82352 19.1914L2.41922 17.4746C2.15736 17.1542 2.20461 16.6822 2.52469 16.4199C2.84528 16.1576 3.31806 16.2048 3.58036 16.5254L4.637 17.8164L5.69266 16.5254C5.95496 16.2048 6.42676 16.1576 6.74735 16.4199C7.06793 16.6822 7.11511 17.154 6.85282 17.4746L5.4495 19.1914L5.36649 19.2812Z",fill:"black"}),(0,t.jsx)("path",{d:"M3.88637 18.1667V5.66669C3.88637 5.25247 4.22215 4.91669 4.63637 4.91669C5.05058 4.91669 5.38637 5.25247 5.38637 5.66669V18.1667C5.38637 18.5809 5.05058 18.9167 4.63637 18.9167C4.22215 18.9167 3.88637 18.5809 3.88637 18.1667Z",fill:"black"})]}),attributes:[{name:(0,u.__)("Medium","website-accessibility"),value:"medium",css:[{selector:"p, div, li, td, th",properties:{lineHeight:"1.6"}}],enableAnnouncement:(0,u.__)("Line Height, set to Medium.","website-accessibility")},{name:(0,u.__)("Large","website-accessibility"),value:"large",css:[{selector:"p, div, li, td, th",properties:{lineHeight:"1.8"}}],enableAnnouncement:(0,u.__)("Line Height, set to Large.","website-accessibility")},{name:(0,u.__)("Extra Large","website-accessibility"),value:"extra-large",css:[{selector:"p, div, li, td, th",properties:{lineHeight:"2.2"}}],enableAnnouncement:(0,u.__)("Line Height, set to Extra Large.","website-accessibility")}]},{key:"textAlign",label:(0,u.__)("Text Alignment","website-accessibility"),styleMethod:"styleTag",disableAnnouncement:(0,u.__)("The text alignment setting has been disabled.","website-accessibility"),description:(0,u.__)("Aligns text to the left, center, or right.","website-accessibility"),icon:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M16.5 18.25C16.9142 18.25 17.25 18.5858 17.25 19C17.25 19.4142 16.9142 19.75 16.5 19.75H3C2.58579 19.75 2.25 19.4142 2.25 19C2.25 18.5858 2.58579 18.25 3 18.25H16.5ZM21 13.583C2
11.4141 13.583 21.7498 13.9189 21.75 14.333C21.75 14.7472 21.4142 15.083 21 15.083H3C2.58579 15.083 2.25 14.7472 2.25 14.333C2.25018 13.9189 2.58589 13.583 3 13.583H21ZM16.5 8.91699C16.9142 8.91699 17.25 9.25278 17.25 9.66699C17.2498 10.0811 16.9141 10.417 16.5 10.417H3C2.5859 10.417 2.25018 10.0811 2.25 9.66699C2.25 9.25278 2.58579 8.91699 3 8.91699H16.5ZM21 4.25C21.4142 4.25 21.75 4.58579 21.75 5C21.75 5.41421 21.4142 5.75 21 5.75H3C2.58579 5.75 2.25 5.41421 2.25 5C2.25 4.58579 2.58579 4.25 3 4.25H21Z",fill:"black"})}),attributes:[{name:(0,u.__)("Left","website-accessibility"),value:"left",css:[{selector:"body, p, div, h1, h2, h3, h4, h5, h6",properties:{textAlign:"left"}}],enableAnnouncement:(0,u.__)("Text Alignment, set to Left.","website-accessibility")},{name:(0,u.__)("Center","website-accessibility"),value:"center",css:[{selector:"body, p, div, h1, h2, h3, h4, h5, h6",properties:{textAlign:"center"}}],enableAnnouncement:(0,u.__)("Text Alignment, set to Center.","website-accessibility")},{name:(0,u.__)("Right","website-accessibility"),value:"right",css:[{selector:"body, p, div, h1, h2, h3, h4, h5, h6",properties:{textAlign:"right"}}],enableAnnouncement:(0,u.__)("Text Alignment, set to Right.","website-accessibility")},{name:(0,u.__)("Justify","website-accessibility"),value:"justify",css:[{selector:"body, p, div, h1, h2, h3, h4, h5, h6",properties:{textAlign:"justify"}}],enableAnnouncement:(0,u.__)("Text Alignment, set to Justify.","website-accessibility")}]},{key:"saturation",label:(0,u.__)("Saturation","website-accessibility"),styleMethod:"inline",disableAnnouncement:(0,u.__)("The saturation setting has been disabled.","website-accessibility"),description:(0,u.__)("Adjusts the saturation of colors to improve readability.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M10.9121 2.39746C11.361 1.60559 12.4592 1.55626 12.9893 2.24903L13.0879 2.39746L18.0928 11.2305C19.1381 13.0752 20.0147 15.463 19.1006 17.7227C17.9156 20.6513 15.2061 22.75 12 22.75C8.79393 22.75 6.08436 20.6513 4.89941 17.7227C3.98526 15.463 4.86187 13.0752 5.90723 11.2305L10.9121 2.39746ZM7.21191 11.9707C6.21274 13.7341 5.64793 15.5753 6.28906 17.1602C7.27675 19.6015 9.48617 21.25 12 21.25C14.5138 21.25 16.7232 19.6015 17.7109 17.1602C18.3521 15.5753 17.7873 13.7341 16.7881 11.9707L12 3.52149L7.21191 11.9707Z",fill:"black"}),(0,t.jsx)("path",{d:"M12.75 3V21.5H11.25V3H12.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M19.252 16.7061L12.252 19.2061L11.748 17.7939L18.748 15.2939L19.252 16.7061Z",fill:"black"}),(0,t.jsx)("path",{d:"M17.7559 13.2051L12.2559 15.2051L11.7441 13.7949L17.2441 11.7949L17.7559 13.2051Z",fill:"black"}),(0,t.jsx)("path",{d:"M16.2637 9.70215L12.2637 11.2021L11.7363 9.79785L15.7363 8.29785L16.2637 9.70215Z",fill:"black"})]}),attributes:[{name:(0,u.__)("Low","website-accessibility"),value:"low",css:[],enableAnnouncement:(0,u.__)("Saturation, set to Low.","website-accessibility")},{name:(0,u.__)("High","website-accessibility"),value:"high",css:[],enableAnnouncement:(0,u.__)("Saturation, set to High.","website-accessibility")},{name:(0,u.__)("Desaturate","website-accessibility"),value:"desaturate",css:[],enableAnnouncement:(0,u.__)("Saturation, set to Desaturate.","website-accessibility")}]},{key:"dictionary",label:(0,u.__)("Dictionary","website-accessibility"),styleMethod:"rootClass",disableAnnouncement:(0,u.__)("The dictionary setting has been disabled.","website-accessibility"),description:(0,u.__)("Enables a dictionary to provide additional context for words on the page.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_366_186)",children:[(0,t.jsx)("path",{d:"M18.7656 4C18.7656 3.86209 18.6535 3.75026 18.5156 3.75H6C5.30964 3.75 4.75 4.30964 4.75 5V16.25H18.5156C18.6535 16.2497 18.7656 16.1379 18.7656 16V4ZM20.2656 16C20.2656 16.9663 19.4819 17.7497 18.5156 17.75H4.75V19C4.75 19.6904 5.30964 20.25 6 20.25H20C20.4142 20.25 20.75 20.5858 20.75 21C20.75 21.4142 20.4142 21.75 20 21.75H6C4.48122 21.75 3.25 20.5188 3.25 19V5C3.25 3.48122 4.48122 2.25 6 2.25H18.5156C19.4819 2.25026 20.2656 3.03366 20.2656 4V16Z",fill:"black"}),(0,t.jsx)("path",{d:"M8.62878 3V17H7.12878V3H8.62878Z",fill:"black"}),(0,t.jsx)("path",{d:"M12.8743 5.59569C13.2312 4.96467 14.1629 4.96462 14.5198 5.59569L14.5872 5.74022L16.8235 11.7383C16.9681 12.1263 16.7711 12.5584 16.3831 12.7031C15.9951 12.8476 15.5629 12.6497 15.4182 12.2617L13.6966 7.6455L11.9759 12.2617C11.8312 12.6497 11.399 12.8475 11.011 12.7031C10.6231 12.5584 10.4252 12.1263 10.5696 11.7383L12.8069 5.74022L12.8743 5.59569Z",fill:"black"}),(0,t.jsx)("path",{d:"M15.1516 9.75C15.5658 9.75005 15.9016 10.0858 15.9016 10.5C15.9016 10.9142 15.5658 11.25 15.1516 11.25H12.2424C11.8282 11.25 11.4924 
110.9142 11.4924 10.5C11.4924 10.0858 11.8282 9.75 12.2424 9.75H15.1516Z",fill:"black"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_366_186",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),attributes:[{name:(0,u.__)("Enable","website-accessibility"),value:"enable",css:[],enableAnnouncement:(0,u.__)("Dictionary Enable.","website-accessibility")},{name:(0,u.__)("Disable","website-accessibility"),value:"disable",css:[],enableAnnouncement:(0,u.__)("Dictionary Disable.","website-accessibility")}]},{key:"screenReader",label:(0,u.__)("Screen Reader","website-accessibility"),disableAnnouncement:(0,u.__)("The screen reader setting has been disabled.","website-accessibility"),description:(0,u.__)("Activates screen reader mode to read content aloud with Normal, Slow, and Fast modes.","website-accessibility"),icon:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M18.0918 9.9248C18.0918 9.61234 17.8388 9.35843 17.5264 9.3584C17.2139 9.3584 16.9609 9.61233 16.9609 9.9248V15.3818C16.9609 16.3773 16.1536 17.1844 15.1582 17.1846C14.1626 17.1846 13.3555 16.3774 13.3555 15.3818V7.31543C13.3553 7.00312 13.1014 6.75 12.7891 6.75C12.4769 6.75022 12.2238 7.00326 12.2236 7.31543V16.9473C12.2236 17.9428 11.4165 18.75 10.4209 18.75C9.4254 18.7499 8.61816 17.9428 8.61816 16.9473V10.1875C8.61809 9.72975 8.24683 9.3584 7.78906 9.3584C7.33148 9.35862 6.96102 9.72989 6.96094 10.1875V12.7822C6.96094 13.1963 6.62496 13.532 6.21094 13.5322H2C1.58579 13.5322 1.25 13.1964 1.25 12.7822C1.25021 12.3682 1.58591 12.0322 2 12.0322H5.46094V10.1875C5.46102 8.90146 6.50306 7.85862 7.78906 7.8584C9.07526 7.8584 10.1181 8.90132 10.1182 10.1875V16.9473C10.1182 17.1144 10.2538 17.2499 10.4209 17.25C10.588 17.25 10.7236 17.1144 10.7236 16.9473V7.31543C10.7238 6.17483 11.6485 5.25022 12.7891 5.25C13.9298 5.25 14.8553 6.17469 14.8555 7.31543V15.3818C14.8555 15.549 14.9911 15.6846 15.1582 15.6846C15.3252 15.6844 15.4609 15.5489 15.4609 15.3818V9.9248C15.4609 8.7839 16.3855 7.8584 17.5264 7.8584C18.6672 7.85843 19.5918 8.78392 19.5918 9.9248V12.0322H22C22.4141 12.0322 22.7498 12.3682 22.75 12.7822C22.75 13.1964 22.4142 13.5322 22 13.5322H18.8418C18.4277 13.5321 18.0918 13.1963 18.0918 12.7822V9.9248Z",fill:"black"})}),isDummy:!0},{key:"smartContrast",label:(0,u.__)("Smart Contrast","website-accessibility"),disableAnnouncement:(0,u.__)("The smart contrast setting has been disabled.","website-accessibility"),description:(0,u.__)("Automatically adjusts contrast based on surrounding colors for optimal readability.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M17.6338 13.2266L17.6318 13.2256C17.5679 13.4833 17.3845 13.7224 17.1045 13.832L17.1055 13.833C17.1036 13.8338 17.1015 13.8342 17.0996 13.835C17.0905 13.8385 17.0816 13.8435 17.0723 13.8467L17.0713 13.8447C16.8035 13.9463 16.5144 13.907 16.292 13.7764L16.2881 13.7734L15.6523 13.3916L15.4014 13.6436L15.7822 14.2852L15.7861 14.292C15.92 14.5249 15.9609 14.8235 15.8428 15.1045C15.728 15.3772 15.498 15.5627 15.2295 15.6357L15.2197 15.6377L14.5 15.8174V16.1816L15.209 16.3594C15.4581 16.4167 15.6712 16.5813 15.7949 16.7988L15.8428 16.8955L15.8799 17.001C15.9495 17.2498 15.9033 17.5041 15.7861 17.708L15.7822 17.7148L15.4014 18.3555L15.6523 18.6074L16.2881 18.2266L16.292 18.2236L16.3828 18.1777C16.5692 18.0945 16.7892 18.0698 17.001 18.1299L17.1055 18.167L17.1982 18.2129C17.3772 18.3146 17.5151 18.4721 17.5938 18.6582L17.6279 18.7529L17.6309 18.7637L17.6338 18.7734L17.8184 19.5H18.1816L18.3662 18.7734C18.4327 18.506 18.6295 18.2563 18.9277 18.1533C19.1607 18.0647 19.4097 18.0851 19.6172 18.1777L19.708 18.2236L19.7119 18.2266L20.3467 18.6074L20.5977 18.3555L20.2178 17.7148L20.2139 17.708C20.08 17.4751 20.0391 17.1765 20.1572 16.8955L20.2061 16.7969C20.3306 16.5779 20.5356 16.4281 20.7705 16.3643L20.7803 16.3623L21.5 16.1816V15.8301L21.3398 15.7949V15.7705L20.7803 15.6309C20.4827 15.5606 20.2631 15.3493 20.1572 15.0977C20.0406 14.8204 20.0756 14.5159 20.2207 14.2793L20.5977 13.6436L20.3467 13.3916L19.7119 13.7734L19.708 13.7764C19.4763 13.9124 19.1714 13.9515 18.8945 13.833C18.6585 13.732 18.4403 13.5208 18.3672 13.2256L18.3662 13.2266L18.1816 12.5H17.8184L17.6338 13.2266ZM18.8379 15.9932C18.8379 15.527 18.4631 15.1553 18.0068 15.1553C17.5507 15.1555 17.1768 15.5271 17.1768 15.9932C17.1769 16.4591 17.5508 16.8308 18.0068 16.8311C18.463 16.8311 18.8377 16.4592 18.8379 15.9932ZM19.8379 15.9932C19.8377 17.0073 19.0195 17.8311 18.0068 17.8311C16.9943 17.8308 16.1769 17.0071 16.1768 15.9932C16.1768 14.9791 16.9942 14.1555 18.0068 14.1553C19.0196 14.1553 19.8379 14.9789 19.8379 15.9932ZM22.5 16.4131C22.4999 16.7316 22.2811 17.018 21.9609 17.0957L21.9619 17.0967L21.1357 17.3037L21.5713 18.0361L21.625 18.1465C21.7262 18.4079 21.6592 18.6924 21.4805 18.8867L21.4736 18.8936L21.4668 18.9014L20.8926 19.4775L20.8877 19.4814C20.6641 19.7003 20.3069 19.7507 20.0264 19.5801V19.582L19.3027 19.1465L19.0957 19.9658L19.0879 19.9932C19.0004 20.2715 18.7429 20.5 18.4072 20.5H17.5928C17.2862 20.5 16.9858 20.2961 16.9043 19.9648L16.6963 19.1465L15.9736 19.582L15.9727 19.5801C15.7214 19.7323 15.3559 19.7308 
115.1084 19.4756L15.1074 19.4775L14.5332 18.9014L14.5264 18.8936L14.5195 18.8867C14.3153 18.6646 14.2568 18.3248 14.4287 18.0361L14.8633 17.3037L14.0381 17.0967L14.0273 17.0947L14.0156 17.0908C13.725 17.0032 13.5 16.7336 13.5 16.4053V15.5869C13.5001 15.2686 13.7183 14.9813 14.0381 14.9033L14.8633 14.6953L14.4287 13.9639C14.2568 13.6752 14.3153 13.3354 14.5195 13.1133L14.5264 13.1064L14.5332 13.0986L15.1074 12.5225L15.1123 12.5186C15.3356 12.3 15.6923 12.2491 15.9727 12.4189L15.9736 12.418L16.6963 12.8525L16.9043 12.0342C16.9861 11.7035 17.2865 11.5 17.5928 11.5H18.4072C18.7311 11.5 19.0153 11.7133 19.0947 12.0342L19.3027 12.8525L20.0264 12.418C20.2773 12.2658 20.6431 12.2691 20.8906 12.5234L20.8926 12.5225L21.4668 13.0986L21.4736 13.1064L21.4805 13.1133C21.6592 13.3076 21.7262 13.5921 21.625 13.8535L21.5713 13.9639L21.1396 14.6895L22.3398 14.9902V15.1484C22.4411 15.2722 22.5 15.4295 22.5 15.5947V16.4131Z",fill:"black"}),(0,t.jsx)("path",{d:"M1.25 12C1.25 6.61522 5.61522 2.25 11 2.25C15.4461 2.25 19.1956 5.2253 20.3691 9.29199C20.4839 9.68989 20.2543 10.1058 19.8564 10.2207C19.4585 10.3355 19.0426 10.1059 18.9277 9.70801C17.9345 6.26613 14.7601 3.75 11 3.75C6.44365 3.75 2.75 7.44365 2.75 12C2.75 16.5563 6.44365 20.25 11 20.25C11.7964 20.25 12.5652 20.1375 13.292 19.9277C13.69 19.8129 14.1059 20.0425 14.2207 20.4404C14.3354 20.8384 14.1059 21.2543 13.708 21.3691C12.8474 21.6175 11.9385 21.75 11 21.75C5.61522 21.75 1.25 17.3848 1.25 12Z",fill:"black"}),(0,t.jsx)("path",{d:"M11.75 3.5V20.5H10.25V3.5H11.75Z",fill:"black"}),(0,t.jsx)("path",{d:"M10.5 15.25V16.75H3V15.25H10.5ZM10.5 11.25V12.75H2V11.25H10.5ZM10.5 7.25V8.75H3V7.25H10.5Z",fill:"black"})]}),isDummy:!0},{key:"dyslexiaFriendly",label:(0,u.__)("Dyslexia Friendly","website-accessibility"),disableAnnouncement:(0,u.__)("The dyslexia friendly setting has been disabled.","website-accessibility"),description:(0,u.__)("Adjusts text style and spacing to improve readability for users with dyslexia.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M10.5205 12.5C10.5205 10.4803 9.85788 9.3191 9.125 8.65625C8.36852 7.97214 7.46081 7.75 6.8916 7.75H3.75V16.75H6.40527C7.00326 16.75 8.05851 16.5352 8.94434 15.8926C9.79181 15.2777 10.5205 14.2498 10.5205 12.5ZM12.0205 12.5C12.0205 14.7502 11.0453 16.2223 9.8252 17.1074C8.64356 17.9645 7.26663 18.25 6.40527 18.25H3C2.58579 18.25 2.25 17.9142 2.25 17.5V7C2.25 6.58579 2.58579 6.25 3 6.25H6.8916C7.78181 6.25 9.06402 6.57817 10.1318 7.54395C11.2231 8.53112 12.0205 10.1199 12.0205 12.5Z",fill:"black"}),(0,t.jsx)("path",{d:"M14.4122 18V7C14.4122 6.58579 14.748 6.25 15.1622 6.25H21.0001C21.4143 6.25003 21.7501 6.5858 21.7501 7C21.7501 7.4142 21.4143 7.74997 21.0001 7.75H15.9122V11.25H19.5401C19.9543 11.25 20.2901 11.5858 20.2901 12C20.2901 12.4142 19.9543 12.75 19.5401 12.75H15.9122V18C15.9122 18.4142 15.5764 18.75 15.1622 18.75C14.748 18.75 14.4122 18.4142 14.4122 18Z",fill:"black"})]}),isDummy:!0},{key:"grayscale",label:(0,u.__)("Grayscale","website-accessibility"),disableAnnouncement:(0,u.__)("The grayscale setting has been disabled.","website-accessibility"),description:(0,u.__)("Converts the website to grayscale, removing all colors for simpler visual focus.","website-accessibility"),icon:(0,t.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M9.37988 1C12.9297 1 15.9696 3.22065 17.1885 6.34473C20.2949 7.57215 22.4998 10.6026 22.5 14.1396C22.5 18.7596 18.7401 22.5195 14.1201 22.5195C10.5745 22.5195 7.53719 20.3048 6.31543 17.1865C3.20687 15.96 1 12.9283 1 9.38965C1.00019 4.76985 4.76005 1.00006 9.37988 1ZM17.6807 8.24609C17.7311 8.61708 17.7598 8.99531 17.7598 9.37988C17.7598 13.9999 13.9999 17.7598 9.37988 17.7598V17.7695C8.99161 17.7695 8.60976 17.7409 8.23535 17.6895C9.44363 19.6777 11.6312 21.0098 14.1201 21.0098C17.9101 21.0097 21 17.9198 21 14.1299C21 11.6416 19.6682 9.45451 17.6807 8.24609ZM7.56152 12.0479C7.35251 12.705 7.24025 13.4047 7.24023 14.1299C7.24023 14.7763 7.33108 15.4022 7.49902 15.9961C8.09733 16.1668 8.728 16.2598 9.37988 16.2598C10.1179 16.2598 10.8288 16.1405 11.4961 15.9238L7.56152 12.0479ZM9.37988 2.5C
15.57998 2.50006 2.50006 5.58998 2.5 9.37988C2.5 11.8673 3.8311 14.053 5.81738 15.2617C5.76802 14.8946 5.74023 14.52 5.74023 14.1396C5.74043 9.51981 9.50024 5.75977 14.1201 5.75977C14.5121 5.75977 14.8976 5.78846 15.2754 5.84082C14.0696 3.84171 11.8769 2.5 9.37988 2.5ZM11.0352 7.98145C9.86843 8.56893 8.89101 9.47784 8.2207 10.5918L12.9531 15.2549C14.0526 14.5831 14.9491 13.6113 15.5303 12.4551L11.0352 7.98145ZM14.1201 7.25C13.5969 7.25 13.0874 7.30996 12.5977 7.4209L16.0889 10.8955C16.1993 10.4075 16.2598 9.90051 16.2598 9.37988C16.2598 8.73329 16.168 8.10765 16 7.51367C15.402 7.34317 14.7717 7.25001 14.1201 7.25Z",fill:"black"})}),isDummy:!0},{key:"brightness",label:(0,u.__)("Brightness","website-accessibility"),disableAnnouncement:(0,u.__)("The brightness setting has been disabled.","website-accessibility"),description:(0,u.__)("Improves visibility by changing the website’s brightness.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_1533_365)",children:[(0,t.jsx)("rect",{width:24,height:24,fill:"white"}),(0,t.jsx)("path",{d:"M11.5605 18.4404C11.9703 18.4407 12.3105 18.7806 12.3105 19.1904V22.3799C12.3105 22.7897 11.9703 23.1296 11.5605 23.1299C11.1505 23.1299 10.8105 22.7899 10.8105 22.3799V19.1904C10.8105 18.7804 11.1505 18.4404 11.5605 18.4404ZM5.63965 16.4199C5.92963 16.1299 6.41019 16.13 6.7002 16.4199C6.9902 16.7099 6.9902 17.1905 6.7002 17.4805L4.44043 19.7402C4.29045 19.8902 4.10014 19.9599 3.91016 19.96C3.72016 19.96 3.52988 19.8902 3.37988 19.7402C3.08994 19.4502 3.0899 18.9697 3.37988 18.6797L5.63965 16.4199ZM16.4199 16.4199C16.7099 16.1299 17.1905 16.1299 17.4805 16.4199L19.7402 18.6797C20.0302 18.9697 20.0302 19.4502 19.7402 19.7402C19.5902 19.8902 19.4 19.96 19.21 19.96C19.02 19.9599 18.8296 19.8902 18.6797 19.7402L16.4199 17.4805C16.1299 17.1905 16.1299 16.7099 16.4199 16.4199ZM11.5596 6.91016C14.1296 6.91016 16.2295 9.00031 16.2295 11.5703C16.2294 14.1402 14.1395 16.2305 11.5596 16.2305C8.98977 16.2303 6.90048 14.1401 6.90039 11.5703C6.90039 9.00042 8.98972 6.91034 11.5596 6.91016ZM11.5596 8.40039C9.80972 8.40057 8.40039 9.82066 8.40039 11.5605C8.4006 13.3003 9.81985 14.7195 11.5596 14.7197C13.2994 14.7197 14.7293 13.3004 14.7295 11.5605C14.7295 9.82055 13.3096 8.40039 11.5596 8.40039ZM3.94043 10.8203C4.35024 10.8205 4.69043 11.1605 4.69043 11.5703C4.69043 11.9802 4.35024 12.3201 3.94043 12.3203H0.75C0.34 12.3203 0 11.9803 0 11.5703C0 11.1603 0.34 10.8203 0.75 10.8203H3.94043ZM22.3701 10.8203C22.7801 10.8203 23.1201 11.1603 23.1201 11.5703C23.1201 11.9803 22.7801 12.3203 22.3701 12.3203H19.1807C18.7707 12.3203 18.4307 11.9803 18.4307 11.5703C18.4307 11.1603 18.7707 10.8203 19.1807 10.8203H22.3701ZM3.37988 3.38965C3.66988 3.09965 4.15043 3.09965 4.44043 3.38965L6.7002 5.64941C6.9902 5.93941 6.9902 6.41996 6.7002 6.70996C6.5502 6.85996 6.35992 6.92969 6.16992 6.92969C5.97998 6.92964 5.7896 6.85991 5.63965 6.70996L3.37988 4.4502C3.08988 4.1602 3.08988 3.67965 3.37988 3.38965ZM18.6797 3.38965C18.9697 3.09967 19.4502 3.09971 19.7402 3.38965C20.0302 3.67965 20.0302 4.1602 19.7402 4.4502L17.4805 6.70996C17.3305 6.85995 17.1402 6.92967 16.9502 6.92969C16.7602 6.92969 16.5699 6.85996 16.4199 6.70996C16.13 6.41995 16.1299 5.93939 16.4199 5.64941L18.6797 3.38965ZM11.5605 0C11.9703 0.000269813 12.3105 0.340163 12.3105 0.75V3.94043C12.3103 4.35008 11.9702 4.69016 11.5605 4.69043C11.1507 4.69043 10.8108 4.35024 10.8105 3.94043V0.75C10.8105 0.34 11.1505 0 11.5605 0Z",fill:"black"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1533_365",children:(0,t.jsx)("rect",{width:24,height:24,fill:"white"})})})]}),isDummy:!0},{key:"muteSounds",label:(0,u.__)("Mute Sounds","website-accessibility"),disableAnnouncement:(0,u.__)("The mute sounds setting has been disabled.","website-accessibility"),description:(0,u.__)("Silences all website sounds and audio effects for a distraction-free experience.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{width:24,height:24,fill:"white"}),(0,t.jsx)("path",{d:"M10.6201 4.35461C11.1901 3.94468 11.9403 3.88424 12.5703 4.20422C13.2002 4.52419 13.5897 5.16451 13.5898 5.86438V17.7042C13.5898 18.4242 13.19 19.0649 12.54 19.3849C12.2801 19.5149 11.9899 19.5743 11.71 19.5743V19.5851C11.31 19.5851 10.9103 19.4544 10.5703 19.1945L6.55957 16.0948C6.49961 16.0449 6.41997 16.0148 6.33008 16.0148H2.87012C1.84012 16.0148 1 15.1747 1 14.1447V9.47473C1 8.44473 1.84012 7.60461 2.87012 7.60461H6.00977C6.08977 7.60461 6.16047 7.5843 6.23047 7.5343L10.6201 4.35461ZM11.8799 5.54504C11.8199 5.51505 11.6599 5.45449 11.5 5.57434L7.11035 8.755C6.79035 8.985 6.40977 9.10461 6.00977 9.10461H2.87012C2.67012 9.10461 2.5 9.27473 2.5 9.47473V14.1447C2.5 14.3447 2.67012 14.5148 2.87012 14.5148H6.33008C6.73993 14.5148 7.14979 14.6546 7.46973 14.9044L11.4805 18.005C11.6403 18.1345 11.8101 18.075 11.8701 18.045C11.9301 18.0151 12.0799 17.9247 12.0801 17.715V5.87512C12.0801 5.67518 11.9399 5.57508 11.8799 5.54504ZM15.3203 8.48449C15.6103 8.1948 16.08 8.18476 16.3799 8.48449L18.6494 10.7335L20.9199 8.48449C21.2098 8.1948 21.6895 8.19494 21.9795 8.48449C22.2695 8.77449 22.2695 9.25504 21.9795 9.54504L19.7148 11.7892L21.9805 14.0343C22.2704 14.3242 22.2803 14.8048 21.9805 15.0948C21.8305 15.2448 21.6401 15.3145 21.4502 15.3146C21.2602 15.3146 21.0699 15.2448 20.9199 15.0948L18.6494 12.8448L16.3799 15.0948C16.2299 15.2448 16.0396 15.3146 15.8496 15.3146C1
15.6598 15.3145 15.4602 15.2446 15.3203 15.0948C15.0303 14.8049 15.0303 14.3253 15.3203 14.0353L17.585 11.7892L15.3203 9.54504C15.0303 9.25504 15.0203 8.77449 15.3203 8.48449Z",fill:"black"})]}),isDummy:!0},{key:"keyboardNavigation",label:(0,u.__)("Keyboard Navigation","website-accessibility"),disableAnnouncement:(0,u.__)("The keyboard navigation setting has been disabled.","website-accessibility"),description:(0,u.__)("Tab: navigate elements. B/F/G/H: jump to Buttons/Forms/Graphics/Headings. Shift + any key: move backward.","website-accessibility"),icon:(0,t.jsxs)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[(0,t.jsx)("defs",{children:(0,t.jsx)("style",{children:".cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round}"})}),(0,t.jsx)("path",{d:"M8.14 14.94v4.53h4.53v-4.53Zm6.8 0v4.53h4.53v-4.53Zm6.79 0v4.53h4.54v-4.53Zm6.8 0v4.53h4.53v-4.53Zm6.8 0v4.53h4.53v-4.53ZM8.14 21.73v4.54h4.53v-4.54Zm6.8 0v4.54h4.53v-4.54Zm6.79 0v4.54h4.54v-4.54Zm6.8 0v4.54h4.53v-4.54Zm6.8 0v4.54h4.53v-4.54Zm-27.19 6.8v4.53h4.53v-4.53Zm6.8 0v4.53h18.12v-4.53Zm20.39 0v4.53h4.53v-4.53Z",className:"cls-1"}),(0,t.jsx)("path",{d:"M43.5 35.5v-23a2 2 0 0 0-2-2h-35a2 2 0 0 0-2 2v23a2 2 0 0 0 2 2h35a2 2 0 0 0 2-2Z",className:"cls-1"})]}),isDummy:!0}],panelItems:[{id:"header",title:"Header",slug:"header",active:!0,disableDrag:!0,attributes:{text:"Accessibility",showClose:!0,background:"#2e6cf6",border:"1px solid #2e6cf6",borderRadius:"6px",boxShadow:"0 4px 24px rgba(0,0,0,0.08)",padding:"10px 20px"}},{id:"language",title:"Language",slug:"language",active:!0,close:!0,isPro:!0},{id:"profiles",title:"Profiles",slug:"profiles",active:!0,attributes:{profiles:["motor","blind","color-blind","dyslexia","low-vision","cognitive","seizure","adhd"],layout:"inline",columns:2}},{id:"features",title:"Features",slug:"features",active:!0,close:!0,attributes:{layout:"block",tooltipPosition:"topLeft",columns:2,widgets:[{contrast:{active:!0}},{highlightLinks:{active:!0}},{biggerText:{active:!0}},{textSpacing:{active:!0}},{pauseAnimations:{active:!0}},{hideImages:{active:!0}},{cursor:{active:!0}},{tooltips:{active:!0}},{lineHeight:{active:!0}},{textAlign:{active:!0}},{saturation:{active:!0}},{dictionary:{active:!0}},{screenReader:{active:!0,isPro:!0}},{smartContrast:{active:!0,isPro:!0}},{dyslexiaFriendly:{active:!0,isPro:!0}},{grayscale:{active:!0,isPro:!0}},{brightness:{active:!0,isPro:!0}},{muteSounds:{active:!0,isPro:!0}}]}},{id:"footer",title:"Footer",slug:"footer",active:!0,close:!0,disableDrag:!0}],isScreenReaderActive:e=>e?.screenReader?.currentStep>0,defaultProfiles:[{id:"motor",title:{rendered:(0,u.__)("Motor Impaired","website-accessibility"),raw:(0,u.__)("Motor Impaired","website-accessibility")},slug:"motor",icon:(0,t.jsx)(tz,{}),features:{cursor:"big-cursor",keyboardNavigation:"enable",tooltips:"enable",pauseAnimations:"enable"}},{id:"color-blind",title:{rendered:(0,u.__)("Color Blind","website-accessibility"),raw:(0,u.__)("Color Blind","website-accessibility")},slug:"color-blind",icon:(0,t.jsx)(nz,{}),features:{smartContrast:"enable",grayscale:"medium",highlightLinks:"enable"}},{id:"low-vision",title:{rendered:(0,u.__)("Low Vision","website-accessibility"),raw:(0,u.__)("Low Vision","website-accessibility")},slug:"low-vision",icon:(0,t.jsx)(oz,{}),features:{biggerText:"extra-large",cursor:"big-cursor",tooltips:"enable",brightness:"high",saturation:"high",lineHeight:"large"}},{id:"cognitive",title:{rendered:(0,u.__)("Cognitive & Learning","website-accessibility"),raw:(0,u.__)("Cognitive & Learning","website-accessibility")},slug:"cognitive",icon:(0,t.jsx)(rz,{}),features:{smartContrast:"enable",biggerText:"medium",cursor:"guideline",textSpacing:"medium",lineHeight:"medium"}},{id:"seizure",title:{rendered:(0,u.__)("Seizure & Epileptic","website-accessibility"),raw:(0,u.__)("Seizure & Epileptic","website-accessibility")},slug:"seizure",icon:(0,t.jsx)(iz,{}),features:{smartContrast:"enable",pauseAnimations:"enable",saturation:"low",contrast:"light",brightness:"medium"}},{id:"adhd",title:{rendered:(0,u.__)("ADHD","website-accessibility"),raw:(0,u.__)("ADHD","website-accessibility")},slug:"adhd",icon:(0,t.jsx)(az,{}),features:{cursor:"mask",saturation:"low",pauseAnimations:"enable",highlightLinks:"enable",textSpacing:"medium"}}],getCookie:e=>document.cookie.split("; ").reduce((t,n)=>{const o=n.split("=");return o[0]===e?decodeURIComponent(o[1]):t},""),setCookie:(e,t,n=365)=>{const o=new Date(Date.now()+864e5*n).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${o}; path=/`},removeCookie:function(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}
1,useBrowserKey:function(){const[e,t]=(0,s.useState)(null);return(0,s.useEffect)(()=>{const e=window?.wapHelpers?.setCookie,n=window?.wapHelpers?.getCookie;if(!e||!n)return;let o=n("one_accessibility_browser_key");o||(o="bx-"+Math.random().toString(36).substring(2,12),e("one_accessibility_browser_key",o,365)),t(o)},[]),e},useDrawerScrollControl:function(){}};window.wapComponents={AccessibilityProfiles:({value:e,allProfiles:n,accessibilityContext:o,accessibilityDispatch:r})=>{const i=window.wapHelpers?.features||[],a=window?.websacPro?.isProActive||!1,{items:l}=e,c=l.find(e=>"profiles"===e.slug),d=c?.attributes||{},f=d.profiles||[],g=d?.hideItemIcons??d?.hideBodyAvatar??!1,h=d?.hideItemLabels??d?.hideBodyProfileName??!1,v=a?p(d?.layout,"inline"):"inline",b=100/Math.min(6,Math.max(1,Number(d?.columns)||2))+"%",y=(0,u.__)("Accessibility Profiles","website-accessibility"),{isScreenReaderActive:C=()=>!1,screenReader:x=()=>null}=window?.wapHelpers,w=!!o&&!!r,{currentProfile:$,currentSettings:S}=o||{},E=C(S)?x():null,k=(0,s.useMemo)(()=>n&&0!==n.length?n.map(e=>{let n=e?.content?.raw||e?.post_content||"";if(n)try{n=JSON.parse(n)}catch(e){n={}}let o=null;return o=e.icon?e.icon:n?.icon&&"string"==typeof n.icon&&n.icon.trim()?(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:n.icon},style:{display:"inline-flex",width:"20px",height:"20px"}}):null,{id:e?.id||e?.ID,name:e?.title?.rendered||e?.title||e?.post_title,icon:o,settings:n?.features||e?.features||{}}}):[],[n]),O=(0,s.useMemo)(()=>k.filter(e=>f.includes(e.id)),[k,f]);return(0,t.jsxs)("div",{className:"wap-accessibility-profiles",children:[(0,t.jsx)("div",{className:"wap-accessibility-profiles__header",children:!d.hideHeaderProfileName&&(0,t.jsx)("span",{className:"wap-accessibility-profiles__header-label",children:y})}),(0,t.jsx)(m,{profiles:O,currentProfile:$,handleClick:e=>{if(!w)return;const t=e.settings||{};let n={};for(const e in t){const o=t[e],r=i.find(t=>t.key===e);if(r&&!r?.isDummy){const t=r.attributes.findIndex(e=>e.value==o);if(2!==r.attributes.length&&"enable"!==r.attributes[0]?.value){n[e]={currentStep:t+1,currentAttribute:r.attributes[t],isMultiStep:!0};continue}const i="enable"===o;n[e]={currentStep:i?1:0,currentAttribute:i?r.attributes[0]:null,isMultiStep:!1}}}r({type:"RESET_PROFILE_SETTINGS"}),setTimeout(()=>{r({type:"SET_CURRENT_PROFILE",payload:$?.id===e.id?null:e}),$?.id!==e.id?(E?.speak(`Switched to ${e.name} accessibility profile.`),r({type:"SET_CURRENT_SETTINGS",payload:n})):(E?.speak("Accessibility profile reset."),r({type:"RESET_PROFILE_SETTINGS"}))},200)},hideItemIcons:g,hideItemLabels:h,layout:v,profileColumnWidth:b})]})},Icon:({name:t,...n})=>{const o=e[t];return o?(0,s.cloneElement)(o,n):null},PanelFooter:({value:e,accessibilityContext:n,accessibilityDispatch:o,isEditorPreview:r=!1})=>{const{WapMessage:i,WapButton:a}
1=window?.wapComponents,[l,c]=(0,s.useState)(!1),[d,p]=(0,s.useState)(!1),[f,m]=(0,s.useState)(!1),[g,h]=(0,s.useState)(),[v,b]=(0,s.useState)(!1),[y,C]=i.useMessage(),x=e?.items?.find(e=>"footer"===e.slug),w=x?.attributes||{},$=window?.websacPro?.isProActive||!1,{currentPresetId:S,isUserLoggedIn:E,statementLink:k}=window?.websiteAccessibility||{},O=!r&&!!n&&!!o,I=!1!==w.showStatement,N=(0,u.__)("Accessibility Statement","website-accessibility"),j=!$||!1!==w.showBranding,[M,P]=(0,s.useState)(0);(0,s.useEffect)(()=>{const e=()=>P(e=>e+1);return window.addEventListener("websac-white-label-changed",e),()=>window.removeEventListener("websac-white-label-changed",e)},[]);const R=(0,s.useMemo)(()=>{const e=(0,u.__)("One Accessibility","website-accessibility");return(window?.websiteAccessibility?.brandDisplayName||window?.websacAdmin?.brandDisplayName||e).trim()||e},[M]),L=(0,s.useMemo)(()=>(0,u.sprintf)(/* translators: %s: plugin or white-label brand name */ /* translators: %s: plugin or white-label brand name */
2(0,u.__)("Powered by %s","website-accessibility"),R),[R]),T=w?.activePreference||!1,z=(0,u.__)("Save Preference","website-accessibility"),B=(0,u.__)("Update Preference","website-accessibility"),H=(0,u.__)("Delete Preference","website-accessibility"),_={"--wap-footer-general-bg":w.generalBg,"--wap-footer-general-padding":w.generalPadding,"--wap-footer-general-radius":w.generalRadius,"--wap-footer-reset-btn-bg":w.resetBtnBg,"--wap-footer-reset-btn-color":w.resetBtnColor,"--wap-footer-reset-btn-radius":w.resetBtnRadius,"--wap-footer-reset-btn-font-size":w.resetBtnFontSize,"--wap-footer-reset-btn-font-weight":w.resetBtnFontWeight,"--wap-footer-link-color":w.linkColor,"--wap-footer-branding-color":w.brandingColor,...w.preferenceSaveBg?{"--wap-footer-preference-save-bg":w.preferenceSaveBg}:{},...w.preferenceSaveColor?{"--wap-footer-preference-save-color":w.preferenceSaveColor}:{},...w.preferenceSaveBorderColor?{"--wap-footer-preference-save-border-color":w.preferenceSaveBorderColor}:{},...w.preferenceDeleteBg?{"--wap-footer-preference-delete-bg":w.preferenceDeleteBg}:{},...w.preferenceDeleteColor?{"--wap-footer-preference-delete-color":w.preferenceDeleteColor}:{},...w.preferenceDeleteBorderColor?{"--wap-footer-preference-delete-border-color":w.preferenceDeleteBorderColor}:{}},A=(0,s.useMemo)(()=>{if(!O||!S||!E)return null;const{currentProfile:e,currentSettings:t,isOverSized:o,selectedLanguage:r}=n,i={id:e?.id,name:e?.name,icon:e?.icon?.props?.dangerouslySetInnerHTML?{__html:e.icon.props.dangerouslySetInnerHTML.__html}:e?.icon};let a={};if(i?.id&&(a.profile=i),Object.keys(t).length>0){let e={};Object.keys(t).forEach(n=>{0!==t[n]?.currentStep&&(e[n]=t[n])}),Object.keys(e).length>0&&(a.settings=e)}return o&&(a.oversized=o),r&&(a.selectedLanguage=r),{post_id:S,data:a}},[n?.currentProfile,n?.currentSettings,n?.isOverSized,n?.selectedLanguage,S,O,E]);(0,s.useEffect)(()=>{O&&S&&E&&(b(!0),ot()({path:`/sigmally/v1/preference?post_id=${S}`,method:"GET"}).then(e=>{m(e?.success&&e.data&&Object.keys(e.data).length>0),h(e?.data)}).catch(()=>{m(!1),h(null),y.error({content:(0,u.__)("Failed to load preferences. Please try again.","website-accessibility"),style:{marginBlockStart:20}})}).finally(()=>b(!1)))},[S,E,O,A,l]);const D=(0,s.useCallback)(lt(async()=>{if(O&&S&&E){c(!0);try{await ot()({path:"/sigmally/v1/preference",method:"POST",data:A}),m(!0),y.success({content:f?(0,u.__)("Preferences updated successfully.","website-accessibility"):(0,u.__)("Preferences saved successfully.","website-accessibility"),style:{marginBlockStart:20}})}catch(e){console.error(e),y.error({content:(0,u.__)("Failed to save preferences. Please try again.","website-accessibility"),style:{marginBlockStart:20}})}finally{c(!1)}}},1e3),[O,S,E,n,f]),F=(0,s.useCallback)(lt(async()=>{if(O&&S&&E){p(!0);try{await ot()({path:`/sigmally/v1/preference?post_id=${S}`,method:"DELETE"}),m(!1),y.success({content:(0,u.__)("Preferences deleted successfully.","website-accessibility"),style:{marginBlockStart:20}})}catch(e){console.error(e),y.error({content:(0,u.__)("Failed to delete preferences. Please try again.","website-accessibility"),style:{marginBlockStart:20}})}finally{p(!1)}}},1e3),[O,S,E]);let W={};return W=k?{target:"_blank",rel:"noopener noreferrer",href:k,className:"wap-panel-footer__statement-link"}:{className:"wap-panel-footer__statement-link",onClick:e=>{e.preventDefault()}},(0,t.jsxs)("footer",{className:"wap-panel-footer",style:_,children:[C,(E||!O)&&T&&(0,t.jsxs)("div",{className:"wap-panel-footer__actions",children:[(0,t.jsx)(a,{type:"primary",className:"wap-panel-footer__preference-save",icon:(0,t.jsx)(Qe,{}),size:"large",block:!0,onClick:D,loading:l||v,disabled:!!O&&(0===Object.keys(A?.data||{}).length||JSON.stringify(A?.data)===JSON.stringify(g)),children:f?B:z}),(0,t.jsx)(a,{danger:!0,type:"primary",className:"wap-panel-footer__preference-delete",icon:(0,t.jsx)(tt,{}),size:"large",block:!0,onClick:F,loading:d,disabled:!!O&&(!f||d||v),
2children:H})]}),(j||I)&&(0,t.jsxs)("div",{className:"wap-panel-footer__links",children:[j&&(0,t.jsxs)("div",{className:"wap-panel-footer__brand-left-text",children:[(0,t.jsx)(at,{variant:"footer"}),(0,t.jsx)("span",{className:"wap-panel-footer__brand-text",children:L})]}),I&&(0,t.jsx)("a",{...W,children:N})]})]})},PanelHeader:({value:e,setIsOpen:n=()=>{},accessibilityContext:o,accessibilityDispatch:r,isEditorPreview:i=!1,languageDropdownOpen:a,onLanguageDropdownOpenChange:l})=>{const c=window?.websiteAccessibility?.siteLanguage?.split("-")?.[0]||"en",[d,p]=(0,s.useState)(!1),f="function"==typeof l,m=f?!!a:d,g=f?l:p,[h,v]=(0,s.useState)(c),[b,y]=(0,s.useState)(null),[C,x]=(0,s.useState)(0),w=(e?.items?.find(e=>"header"===e.slug)||{}).attributes||{},$=e?.wrapper?.width||420,S=window?.websacPro?.isProActive||!1,{TranslationLanguageDropdown:E,WapTooltip:k}=window?.wapComponents||{},{getCookie:O=()=>null,removeCookie:I=()=>null}=window?.wapHelpers||{},[N,j]=(window?.wapComponents?.WapMessage||{}).useMessage?.()||[],{settings:M}=window?.websiteAccessibility||{},P=!i&&!!o&&!!r,R=!1!==w?.showTranslator,L=(0,s.useMemo)(()=>P?O("wapGoogleTranslateConsent"):null,[O,P,C]),T=P&&"false"===L,z=P&&"true"===L,B=P&&o?.siteLanguage||c,H=P?o?.selectedLanguage||B:h,_={placement:"bottom",mouseEnterDelay:0,getPopupContainer:()=>document.body,styles:{root:{zIndex:9999999999}}};(0,s.useEffect)(()=>{P&&R&&S&&(o?.selectedLanguage||r({type:"SET_SELECTED_LANGUAGE",payload:o?.siteLanguage||c}))},[P,R,S,o?.selectedLanguage,o?.siteLanguage,r]);const A={"--wap-header-bg":w.background,"--wap-header-border":w.border,"--wap-header-radius":w.borderRadius,"--wap-header-shadow":w.boxShadow,"--wap-header-padding":w.padding,"--wap-header-color":w.color,...w.iconColor?{"--wap-header-icon-color":w.iconColor}:{},"--wap-header-font-size":w.fontSize,"--wap-header-font-weight":w.fontWeight,"--wap-header-text-decoration":w.textDecoration,"--wap-close-button-bg":w.closeButtonBackground,"--wap-close-button-color":w.closeButtonColor,"--wap-close-button-size":w.closeButtonSize,"--wap-close-button-border":w.closeButtonBorder,"--wap-close-button-border-radius":w.closeButtonBorderRadius,"--wap-close-button-top":w.closeButtonTop,"--wap-close-button-right":w.closeButtonRight};return(0,t.jsxs)("div",{ref:y,className:"wap-panel-customization__header"+(w.flipContent?" wap-panel-customization__header--flipped":""),style:A,children:[j,(0,t.jsx)(at,{variant:"header"}),(0,t.jsx)("span",{className:"wap-panel-customization__header-title",children:(0,u.__)("Accessibility","website-accessibility")}),(0,t.jsxs)("div",{className:"wap-panel-customization__header-actions",children:[(0,t.jsx)(k,{title:(0,u.__)("Reset all","website-accessibility"),..._,children:(0,t.jsx)("button",{type:"button",className:"wap-panel-customization__header-action-btn",onClick:()=>{P&&(g(!1),r({type:"RESET_ACCESSIBILITY"}),M?.force_translate_site_language&&r({type:"SET_SELECTED_LANGUAGE",payload:o?.siteLanguage||null}),I("wapGoogleTranslateConsent"),x(e=>e+1),N?.info?.({content:(0,u.__)("All accessibility settings have been reset to default.","website-accessibility"),style:{marginBlockStart:20}}))},title:(0,u.__)("Reset all","website-accessibility"),children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-rotate-ccw-icon lucide-rotate-ccw",children:[(0,t.jsx)("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),(0,t.jsx)("path",{d:"M3 3v5h5"})]})})}),S&&R&&!T&&(!P||z)&&E&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(E,{open:m,onOpenChange:g,value:H,onChange:e=>{P?((()=>{if("undefined"==typeof document)return;const e=(e,t="/")=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t};`;const n=window.location.hostname;n&&(document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=${t}; domain=.${n};`)};e("googtrans","/"),e("googtrans","/auto");try{Object.keys(localStorage||{}).forEach(e=>{if(!e)return;const t=e.toLowerCase();(t.includes("goog")||t.includes("translate"))&&localStorage.removeItem(e)})}catch(e){}})(),r({type:"SET_SELECTED_LANGUAGE",payload:e})):v(e)},dropdownWidth:$,portalTarget:b,trigger:(0,t.jsx)(k,{title:(0,u.__)("Choose translation language","website-accessibility"),..._,children:(0,t.jsx)("button",{type:"button",className:"wap-panel-customization__header-action-btn wap-panel-customization__header-action-btn--language",title:(0,u.__)("Choose translation language","website-accessibility"),children:(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M6.50197 6.42188H6.20103L5.63867 9.23438H7.06433L6.50197 6.42188Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M17.877 12.0469C18.1806 12.8625 18.5844 13.5226 19.0313 14.0844C19.4782 13.5226 19.9289 12.8624 20.2325 12.0469H17.877Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M21.8906 4.26562H13.1585L14.9793 18.8756C15.0115 19.4731 14.8481 20.0357 14.4581 20.4762L11.3748 24H21.8906C23.0537 24 23.9999 23.0538 23.9999 21.8906V6.42188C23.9999 5.25872 23.0537 4.26562 21.8906 4.26562ZM21.8906 12.0469H21.7028C21.3027 13.3305 20.6682 14.3348 20.0089 15.1267C20.5254 15.5989 21.0777 15.9862 21.6269 16.4201C21.9297 16.6625 21.9791 17.1047 21.7361 17.4082C21.4941 17.7113 21.0502 17.7604 20.748 17.5174C20.1513 17.0464 19.5912 16.6522 19.0312 16.1383C18.4711 16.6522 17.9579 17.0464 17.3613 17.5174C17.0591 17.7604 16.6151 17.7113 16.3732 17.4082C16.1301 17.1047 16.
21795 16.6625 16.4823 16.4201C17.0315 15.9862 17.5369 15.5989 18.0535 15.1267C17.3941 14.3349 16.8065 13.3305 16.4065 12.0469H16.2187C15.83 12.0469 15.5156 11.7324 15.5156 11.3438C15.5156 10.9551 15.83 10.6406 16.2187 10.6406H18.3281V9.9375C18.3281 9.54886 18.6425 9.23438 19.0312 9.23438C19.4198 9.23438 19.7343 9.54886 19.7343 9.9375V10.6406H21.8906C22.2792 10.6406 22.5937 10.9551 22.5937 11.3438C22.5937 11.7324 22.2792 12.0469 21.8906 12.0469Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M11.4452 1.84777C11.314 0.794437 10.4138 0 9.35231 0H2.10938C0.946219 0 0 0.946219 0 2.10938V17.6719C0 18.835 0.946219 19.7812 2.10938 19.7812C6.31266 19.7812 9.33642 19.7812 13.1977 19.7812C13.4028 19.5468 13.5748 19.4 13.582 19.0939C13.5838 19.0172 11.4547 1.92389 11.4452 1.84777ZM8.62238 13.4394C8.24953 13.5161 7.87186 13.2741 7.79498 12.888L7.34559 10.6406H5.35758L4.90819 12.888C4.83267 13.2684 4.46597 13.5183 4.0808 13.4394C3.70041 13.3632 3.45319 12.9931 3.52941 12.612L4.93561 5.58075C5.00152 5.25253 5.28994 5.01562 5.625 5.01562H7.07812C7.41319 5.01562 7.70161 5.25253 7.76752 5.58075L9.17377 12.612C9.24998 12.9931 9.00281 13.3632 8.62238 13.4394Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M8.21533 21.1875L8.33599 22.1522C8.41643 22.7983 8.84571 23.4571 9.55183 23.7861C10.8844 22.3192 10.0782 23.2066 11.9124 21.1875H8.21533Z",fill:"currentColor"})]})})})})}),(0,t.jsx)("span",{className:"wap-panel-customization__header-close-separator"}),(0,t.jsx)("span",{className:"wap-panel-customization__header-close",onPointerDown:e=>{if("mouse"!==e.pointerType||0===e.button){e.stopPropagation();try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}}},onPointerUp:e=>{try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}},onPointerCancel:e=>{try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}},onClick:e=>{e.preventDefault(),e.stopPropagation(),n(!1)},children:(0,t.jsx)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29303 5.29297C5.48056 5.10549 5.73487 5.00018 6.00003 5.00018C6.26519 5.00018 6.5195 5.10549 6.70703 5.29297L12 10.586L17.293 5.29297C17.3853 5.19745 17.4956 5.12127 17.6176 5.06886C17.7396 5.01645 17.8709 4.98887 18.0036 4.98771C18.1364 4.98656 18.2681 5.01186 18.391 5.06214C18.5139 5.11242 18.6255 5.18668 18.7194 5.28057C18.8133 5.37446 18.8876 5.48611 18.9379 5.60901C18.9881 5.73191 19.0134 5.86359 19.0123 5.99637C19.0111 6.12915 18.9835 6.26037 18.9311 6.38237C18.8787 6.50437 18.8025 6.61472 18.707 6.70696L13.414 12L18.707 17.293C18.8892 17.4816 18.99 17.7342 18.9877 17.9964C18.9854 18.2586 18.8803 18.5094 18.6948 18.6948C18.5094 18.8802 18.2586 18.9854 17.9964 18.9877C17.7342 18.99 17.4816 18.8892 17.293 18.707L12 13.414L6.70703 18.707C6.51843 18.8892 6.26583 18.99 6.00363 18.9877C5.74143 18.9854 5.49062 18.8802 5.30521 18.6948C5.1198 18.5094 5.01463 18.2586 5.01236 17.9964C5.01008 17.7342 5.11087 17.4816 5.29303 17.293L10.586 12L5.29303 6.70696C5.10556 6.51944 5.00024 6.26513 5.00024 5.99996C5.00024 5.7348 5.10556 5.48049 5.29303 5.29297Z",fill:"currentColor"})})})]})]})},PreviewButton:({text:e="Preview Accessibility",size:n="middle",type:o="default",disabled:r=!1,onClick:i,icon:a=(0,t.jsx)(dt,{}),className:l="",style:s={},...c})=>{const{WapButton:d}=window?.wapComponents;return(0,t.jsx)(d,{type:o,size:n,icon:a,onClick:i,disabled:r,className:`wap-preview-button notranslate ${l}`,translate:"no",style:s,...c,children:e})},PreviewContent:({panel:e,allProfiles:n,setIsOpen:o=()=>{},accessibilityContext:r,accessibilityDispatch:i,onFeatureInteraction:a=()=>{},isOpen:l,isEditorPreview:c=!1})=>{const{AccessibilityProfiles:u,WidgetFeatures:p,PanelHeader:f,PanelFooter:m}=window?.wapComponents,{useDrawerScrollControl:g}=window.wapHelpers,h=window?.websacPro?.isProActive||!1,{isOverSized:v}=r||{},b=(0,s.useRef)(null),[y,C]=(0,s.useState)(!1),x=(0,s.useRef)(0);g(b,l&&!c),(0,s.useLayoutEffect)(()=>{y&&b.current&&(x.current=b.current.scrollTop)},[y]),(0,s.useEffect)(()=>{if(!y)return;const e=b.current;if(!e)return;const t=()=>{const t=x.current;e.scrollTop!==t&&(e.scrollTop=t)},n=e=>{(e=>{const t=e=>{if(!e||1!==e.nodeType)return!1;const t=e.classList;if(!t||!t.length)return!1;for(let e=0;e<t.length;e+=1){const n=t[e];if(n.includes("wap-translation-dropdown")||n.includes("ant-dropdown"))return!0}return!1};let n=e.target;n&&3===n.nodeType&&(n=n.parentElement);const o=b.current;for(;n&&n!==o&&n!==document.body;){if(t(n))return!0;n=n.parentElement}const r="function"==typeof e.composedPath?e.composedPath():[];for(let e=0;e<r.length;e+=1)if(t(r[e]))return!0;return!1})(e)||e.preventDefault()};return e.addEventListener("scroll",t,{passive:!0}),e.addEventListener("wheel",n,{passive:!1}),()=>{e.removeEventListener("scroll",t),e.removeEventListener("wheel",n)}},[y]),(0,s.useEffect)(()=>
2{if(!y)return;const e=e=>{"Escape"===e.key&&C(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[y]);const w={profiles:(0,t.jsx)(u,{value:e,allProfiles:n,accessibilityContext:r,accessibilityDispatch:i}),features:(0,t.jsx)(p,{value:e,accessibilityContext:r,accessibilityDispatch:i,onFeatureInteraction:a})};return(0,t.jsx)("div",{ref:b,className:d("wap-panel-customization__panel","notranslate",{"wap-panel-customization__panel--oversized":v,"wap-panel-customization__panel--language-dropdown-open":y}),translate:"no",style:{"--panel-width":e?.wrapper?.width&&`${e.wrapper.width}px`,"--panel-background":e?.wrapper?.background,"--panel-border":e?.wrapper?.border,"--panel-padding":e?.wrapper?.padding,"--panel-border-radius":e?.wrapper?.borderRadius,"--panel-box-shadow":e?.wrapper?.boxShadow,...e?.wrapper?.cardBackground?{"--wap-card-bg":e.wrapper.cardBackground}:{},...e?.wrapper?.cardTextColor?{"--wap-card-text":e.wrapper.cardTextColor}:{},...e?.wrapper?.cardIconColor?{"--wap-card-icon":e.wrapper.cardIconColor}:{},...e?.wrapper?.featureInfoIconColor?{"--wap-feature-info-icon-color":e.wrapper.featureInfoIconColor}:{},...e?.wrapper?.sectionBackground?{"--wap-section-bg":e.wrapper.sectionBackground}:{},...e?.wrapper?.sectionBorderColor?{"--wap-section-border-color":e.wrapper.sectionBorderColor}:{},...e?.wrapper?.sectionTitleColor?{"--wap-section-title-color":e.wrapper.sectionTitleColor}:{}},children:(0,t.jsxs)("div",{className:"wap-panel-customization__header-info",children:[e?.items?.find(e=>"header"===e.slug)?.active&&(0,t.jsx)(f,{value:e,setIsOpen:o,accessibilityContext:r,accessibilityDispatch:i,isEditorPreview:c,languageDropdownOpen:y,onLanguageDropdownOpenChange:C}),(0,t.jsxs)("div",{className:"wap-panel-customization__body",children:[(0,t.jsx)("div",{className:"wap-panel-customization__main",children:(0,t.jsx)("div",{className:"wap-panel-customization__info",children:e?.items?.map(e=>{const t=w?.[e?.slug];return t&&e.active?e?.isPro&&!h?null:(0,s.cloneElement)(t,{key:e.slug}):null})})}),e?.items?.find(e=>"footer"===e.slug)?.active&&(0,t.jsx)(m,{value:e,accessibilityContext:r,accessibilityDispatch:i,isEditorPreview:c}),y&&(0,t.jsx)("div",{className:"wap-language-panel-overlay",role:"presentation","aria-hidden":"true",onClick:()=>C(!1)})]})]})})},WidgetFeatures:({value:e,accessibilityContext:n,accessibilityDispatch:o,onFeatureInteraction:r=()=>{}})=>{const{WapCard:i,WapRow:a,WapCol:l,WapBadge:c,WapTooltip:d,WapNotification:f}=window?.wapComponents,m=window?.websacPro?.isProActive||!1,{items:g}=e,h=g.find(e=>"features"===e.slug),v=h?.attributes||{},b=m?p(v?.layout,"block"):"block",y=m&&v?.tooltipPosition||"topLeft",C=100/Math.min(6,Math.max(1,Number(v?.columns)||2))+"%",x=!!n&&!!o,{currentSettings:w}=n||{},$=(0,s.useMemo)(()=>{let e=window.wapHelpers?.features||[];x&&(e=e.filter(e=>{if(!e?.isDummy)return e}));const t=((e={},t=[])=>{const n={};return(Array.isArray(e?.widgets)?e.widgets:[]).forEach(e=>{const t=Object.keys(e||{})[0];t&&(n[t]=gt(e[t]))}),!Object.keys(n).length&&Array.isArray(e?.widgetCategories)&&e.widgetCategories.forEach(e=>{(e?.widgets||[]).forEach(e=>{const t=Object.keys(e||{})[0];t&&(n[t]=gt(e[t]))})}),t.forEach(e=>{e?.key&&(n[e.key]||(n[e.key]={active:!0}))}),n})(v,e);return e.filter(e=>t?.[e?.key]?.active??!0)},[v?.widgets,v?.widgetCategories,x]),S=(0,s.useMemo)(()=>((e={},t=[])=>{if(!Array.isArray(t)||!t.length)return[];const n=t.reduce((e,t)=>(t?.key&&(e[t.key]=t),e),{}),o=((e={})=>{const t=e?.widgetCategories;if(Array.isArray(t)&&t.length>0){const e=t.map(e=>{const t=((e=[])=>{const t=[];return e.forEach(e=>{if(!e||"object"!=typeof e)return;const n=Object.keys(e)[0];n&&t.push(n)}),t})(e?.widgets);return t.length?{slug:e?.slug||"custom",title:e?.title||(0,u.__)("Category","website-accessibility"),keys:t}:null}).filter(Boolean);if(e.length)return e}return mt})(e),r=new Set,i=[];o.forEach(e=>{const t=e.keys.map(e=>n[e]).filter(Boolean);t.forEach(e=>r.add(e.key)),t.length&&i.push({slug:e.slug,title:e.title,features:t})});const a=t.filter(e=>!r.has(e.key));return a.length&&i.push({slug:"other",title:(0,u.__)("Other","website-accessibility"),features:a}),i})(v,$),[v?.widgets,v?.widgetCategories,$]),E=e=>{if(!x)return;const{isScreenReaderActive:t=()=>!1,screenReader:n=()=>null}=window?.wapHelpers,i=e.attributes||[],a=e?.key,l=t=>{const n=t||`${e?.label||(0,u.__)("Feature","website-accessibility")} ${(0,u.__)("updated","website-accessibility")}`;f?.open?.({key:"wap-feature-notification",message:n,placement:"topLeft",duration:1.8})},s=w[a]||{},c=s?.currentStep||0;if(o({type:"SET_CURRENT_PROFILE",payload:null}),2===i.length&&"enable"===i[0]?.value){const s=1===c?0:1,d=i[s-1]||null,u={...w,[a
2]:{currentStep:s,currentAttribute:d,isMultiStep:!1}};if(o({type:"SET_CURRENT_SETTINGS",payload:u}),r(u),t(w)){const t=d?.enableAnnouncement,o=e?.disableAnnouncement;l(d?t:o),d?n()?.speak(t):n()?.speak(o)}else l(d?.enableAnnouncement||e?.disableAnnouncement);return}const d=c>=i.length?0:c+1,p={...w,[a]:{currentStep:d,currentAttribute:0===d?null:i[d-1],isMultiStep:i.length>1}};if(o({type:"SET_CURRENT_SETTINGS",payload:p}),r(p),t(w)){const t=i[d-1]?.enableAnnouncement,o=e?.disableAnnouncement;l(i[d-1]?t:o),i[d-1]?("screenReader"===a&&(n().screenReaderConfig={rate:i[d-1]?.rate||1,pitch:i[d-1]?.pitch||1,lang:i[d-1]?.lang||"en-US",voiceURI:i[d-1]?.voiceURI||null}),n()?.speak(t)):n()?.speak(o)}else if("screenReader"===a){const e=i[0]?.enableAnnouncement;l(e),n().screenReaderConfig={rate:i[0]?.rate||1,pitch:i[0]?.pitch||1,lang:i[0]?.lang||"en-US",voiceURI:i[0]?.voiceURI||null},n()?.speak(e)}else{const t=i[d-1]?.enableAnnouncement,n=e?.disableAnnouncement;l(i[d-1]?t:n)}};return(0,t.jsx)(i,{className:"wap-widget-features",children:S.map(e=>(0,t.jsxs)("div",{className:"wap-widget-features__category",children:[(0,t.jsx)("div",{className:"wap-widget-features__category-header",children:(0,t.jsx)("span",{className:"wap-widget-features__category-title",children:e.title})}),(0,t.jsx)(a,{gutter:[10,10],className:"wap-widget-features__grid",children:e.features.map(e=>(0,t.jsx)(ht,{feature:e,attributes:v,layout:b,tooltipPosition:y,featureColumnWidth:C,isProActive:m,currentSettings:w,handleFeatureClick:E},e.key))})]},e.slug))})},WapFlex:e=>(0,t.jsx)(Ur,{...e,children:e.children}),WapCard:Wp,WapButton:Dm,WapCol:({children:e,...n})=>(0,t.jsx)(ag,{...n,children:e}),WapRow:({children:e,...n})=>(0,t.jsx)(tg,{...n,children:e}),WapCollapse:e=>(0,t.jsx)(Mg,{...e,children:e.children}),WapInput:lv,WapDrawer:({open:e,rootClassName:n,children:o,...r})=>{const[i]=(0,s.useState)(()=>"wap-drawer-"+ ++Yv),a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!e)return;let t=!1;const n=requestAnimationFrame(()=>{const e=document.querySelector(`.${i}`);e&&(t=!0,a.current=e,e.setAttribute("data-lenis-prevent",""),e.addEventListener("wheel",eb,{passive:!1}),e.addEventListener("touchmove",eb,{passive:!1}),e.addEventListener("touchstart",eb,{passive:!0}),1===++Qv&&function(){Jv()?.stop?.(),window.locomotiveScroll?.stop?.();try{window.ScrollSmoother?.get?.()?.paused?.(!0)}catch(e){}}())});return()=>{cancelAnimationFrame(n);const e=a.current;e&&(e.removeEventListener("wheel",eb),e.removeEventListener("touchmove",eb),e.removeEventListener("touchstart",eb),e.removeAttribute("data-lenis-prevent")),a.current=null,t&&0===--Qv&&function(){Jv()?.start?.(),window.locomotiveScroll?.start?.();try{window.ScrollSmoother?.get?.()?.paused?.(!1)}catch(e){}}()}},[e,i]),(0,t.jsx)(Zv,{...r,open:e,rootClassName:n?`${i} ${n}`:i,children:o})},WapAlert:({...e})=>(0,t.jsx)(Ob,{...e}),WapRadio:Zb,WapSelect:Vx,WapSpace:({...e})=>(0,t.jsx)(rw,{...e,children:e.children}),WapSkeleton:aw,WapAvatar:({...e})=>(0,t.jsx)(S$,{...e,children:e.children}),WapSpin:({...e})=>(0,t.jsx)(z$,{...e}),WapBadge:({...e})=>(0,t.jsx)(Iw,{...e}),WapTag:({...e})=>(0,t.jsx)(G$,{...e}),WapProgress:({...e})=>(0,t.jsx)($S,{...e}),WapModal:({...e})=>(0,t.jsx)(IE,{...e}),WapTooltip:({...e})=>(0,t.jsx)(f$,{...e,children:e.children}),WapDropdown:({...e})=>(0,t.jsx)(pk,{...e}),WapList:eO,WapSteps:({...e})=>(0,t.jsx)(wO,{...e}),WapTable:({...e})=>(0,t.jsx)(tP,{...e}),WapTypography:QP,WapEmpty:({...e})=>(0,t.jsx)(ZC,{...e}),WapInputNumber:({...e})=>(0,t.jsx)(PR,{...e}),WapMessage:fL,WapNotification:WL,WapSwitch:({...e})=>(0,t.jsx)(tT,{...e}),WapTabs:({...e})=>(0,t.jsx)(au,{...e}),WapUpload:ez},window.wapHelpers={...window.wapHelpers||{},...lz}})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.