diff --git a/README-ru_RU.md b/README-ru_RU.md index b984886..975272e 100644 --- a/README-ru_RU.md +++ b/README-ru_RU.md @@ -54,7 +54,7 @@ - [x] 🎛️ Высоконастраиваемая боковая панель, с боковой панелью быстрых настроек слева и боковой панелью моделей справа - [x] 🖼️ Регулируемое соотношение холста, благодаря чему генерируемые изображения всегда отображаются сверху - [x] 📱 Mobile-friendly, с частичной оптимизацией под мобильные экраны -- [x] 🌍 Поддержка i18n(Поддержка разных языков) и приветствуются [PR](https://github.com/canisminor1990/sd-webui-lobe-theme/tree/main/locales) +- [x] 🌍 Поддержка i18n(Поддержка разных языков) и приветствуются [PR](https://github.com/lobehub/sd-webui-lobe-theme/tree/main/locales) - [x] 📝 Подсветка синтаксиса в поле ввода промта - [x] 📦 Поддержка [PWA](https://support.google.com/chrome/answer/9658361) @@ -77,7 +77,7 @@ В качестве расширения (рекомендуется) клонировать репозиторий в папку расширений: ```shell -git clone "https://github.com/canisminor1990/sd-webui-lobe-theme" extensions/lobe-theme +git clone "https://github.com/lobehub/sd-webui-lobe-theme" extensions/lobe-theme ``` > 👉 Примечание: Минимальные требования gradio-3.23.0 & sd-webui [4c1ad74](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/4c1ad743e3baf1246db0711aa0107debf036a12b) @@ -266,7 +266,7 @@ photorealistic photo of a handsome male, (wizard:1.2), short beard, white wizard В качестве альтернативы можно клонировать его для локальной разработки. Для включения режима горячей загрузки необходимо предварительно запустить Stable-Diffusion на порту `7860`. ```bash -$ git clone https://github.com/canisminor1990/sd-webui-lobe-theme.git +$ git clone https://github.com/lobehub/sd-webui-lobe-theme.git $ cd sd-webui-lobe-theme $ pnpm install $ pnpm start @@ -358,7 +358,7 @@ This project is [AGPL3](./LICENSE) licensed. [feat-thememode]: https://gw.alipayobjects.com/zos/kitchen/nSFtJidWUR/feat_thememode.webp [feat-pwa]: https://gw.alipayobjects.com/zos/kitchen/az49akOKJT/feat_pwa.webp [profile-url]: https://github.com/canisminor1990 -[gitpod-url]: https://gitpod.io/#https://github.com/canisminor1990/sd-webui-lobe-theme +[gitpod-url]: https://gitpod.io/#https://github.com/lobehub/sd-webui-lobe-theme @@ -366,40 +366,40 @@ This project is [AGPL3](./LICENSE) licensed. -[release-shield]: https://img.shields.io/github/v/release/canisminor1990/sd-webui-lobe-theme?style=flat&sort=semver&logo=github -[release-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/releases +[release-shield]: https://img.shields.io/github/v/release/lobehub/sd-webui-lobe-theme?style=flat&sort=semver&logo=github +[release-url]: https://github.com/lobehub/sd-webui-lobe-theme/releases -[release-date-shield]: https://img.shields.io/github/release-date/canisminor1990/sd-webui-lobe-theme?style=flat -[release-date-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/releases +[release-date-shield]: https://img.shields.io/github/release-date/lobehub/sd-webui-lobe-theme?style=flat +[release-date-url]: https://github.com/lobehub/sd-webui-lobe-theme/releases -[ci-test-shield]: https://github.com/canisminor1990/sd-webui-lobe-theme/workflows/Test%20CI/badge.svg -[ci-test-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/actions/workflows/test.yml +[ci-test-shield]: https://github.com/lobehub/sd-webui-lobe-theme/workflows/Test%20CI/badge.svg +[ci-test-url]: https://github.com/lobehub/sd-webui-lobe-theme/actions/workflows/test.yml -[ci-release-shield]: https://github.com/canisminor1990/sd-webui-lobe-theme/workflows/Build%20and%20Release/badge.svg -[ci-release-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/actions/workflows/release.yml +[ci-release-shield]: https://github.com/lobehub/sd-webui-lobe-theme/workflows/Build%20and%20Release/badge.svg +[ci-release-url]: https://github.com/lobehub/sd-webui-lobe-theme/actions/workflows/release.yml -[contributors-shield]: https://img.shields.io/github/contributors/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[contributors-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/graphs/contributors +[contributors-shield]: https://img.shields.io/github/contributors/lobehub/sd-webui-lobe-theme.svg?style=flat +[contributors-url]: https://github.com/lobehub/sd-webui-lobe-theme/graphs/contributors -[forks-shield]: https://img.shields.io/github/forks/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[forks-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/network/members +[forks-shield]: https://img.shields.io/github/forks/lobehub/sd-webui-lobe-theme.svg?style=flat +[forks-url]: https://github.com/lobehub/sd-webui-lobe-theme/network/members -[stargazers-shield]: https://img.shields.io/github/stars/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[stargazers-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/stargazers +[stargazers-shield]: https://img.shields.io/github/stars/lobehub/sd-webui-lobe-theme.svg?style=flat +[stargazers-url]: https://github.com/lobehub/sd-webui-lobe-theme/stargazers -[issues-shield]: https://img.shields.io/github/issues/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[issues-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/issues/new/choose +[issues-shield]: https://img.shields.io/github/issues/lobehub/sd-webui-lobe-theme.svg?style=flat +[issues-url]: https://github.com/lobehub/sd-webui-lobe-theme/issues/new/choose diff --git a/README-zh_CN.md b/README-zh_CN.md index 37334a6..4552f02 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -56,7 +56,7 @@ - [x] 🎛️ 高定制侧边栏,左侧为快捷设置侧边栏,右侧为模型侧边栏 - [x] 🖼️ 可调节画板比例,使生成图像始终置顶 - [x] 📱 移动端友好,针对手机屏幕完成部分优化 -- [x] 🌍 支持 i18n 并欢迎提交 [PR](https://github.com/canisminor1990/sd-webui-lobe-theme/tree/main/locales) 贡献 +- [x] 🌍 支持 i18n 并欢迎提交 [PR](https://github.com/lobehub/sd-webui-lobe-theme/tree/main/locales) 贡献 - [x] 📝 语法高亮的 Prompt 输入框 - [x] 📦 支持 [PWA](https://support.google.com/chrome/answer/9658361?hl=zh-Hans) 渐进式 Web 应用 @@ -79,7 +79,7 @@ 作为扩展(推荐) 将存储库克隆到您的扩展文件夹中: ```shell -git clone "https://github.com/canisminor1990/sd-webui-lobe-theme" extensions/lobe-theme +git clone "https://github.com/lobehub/sd-webui-lobe-theme" extensions/lobe-theme ``` > 👉 提示:最低要求 gradio-3.23.0 & sd-webui [4c1ad74](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/4c1ad743e3baf1246db0711aa0107debf036a12b) @@ -268,7 +268,7 @@ photorealistic photo of a handsome male, (wizard:1.2), short beard, white wizard 或者克隆到本地开发, 热更新开发模式需要将 stable diffuison 提前启动到 `7860` 端口: ```bash -$ git clone https://github.com/canisminor1990/sd-webui-lobe-theme.git +$ git clone https://github.com/lobehub/sd-webui-lobe-theme.git $ cd sd-webui-lobe-theme $ pnpm install $ pnpm start @@ -360,7 +360,7 @@ This project is [AGPL3](./LICENSE) licensed. [feat-thememode]: https://gw.alipayobjects.com/zos/kitchen/nSFtJidWUR/feat_thememode.webp [feat-pwa]: https://gw.alipayobjects.com/zos/kitchen/az49akOKJT/feat_pwa.webp [profile-url]: https://github.com/canisminor1990 -[gitpod-url]: https://gitpod.io/#https://github.com/canisminor1990/sd-webui-lobe-theme +[gitpod-url]: https://gitpod.io/#https://github.com/lobehub/sd-webui-lobe-theme @@ -368,40 +368,40 @@ This project is [AGPL3](./LICENSE) licensed. -[release-shield]: https://img.shields.io/github/v/release/canisminor1990/sd-webui-lobe-theme?style=flat&sort=semver&logo=github -[release-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/releases +[release-shield]: https://img.shields.io/github/v/release/lobehub/sd-webui-lobe-theme?style=flat&sort=semver&logo=github +[release-url]: https://github.com/lobehub/sd-webui-lobe-theme/releases -[release-date-shield]: https://img.shields.io/github/release-date/canisminor1990/sd-webui-lobe-theme?style=flat -[release-date-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/releases +[release-date-shield]: https://img.shields.io/github/release-date/lobehub/sd-webui-lobe-theme?style=flat +[release-date-url]: https://github.com/lobehub/sd-webui-lobe-theme/releases -[ci-test-shield]: https://github.com/canisminor1990/sd-webui-lobe-theme/workflows/Test%20CI/badge.svg -[ci-test-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/actions/workflows/test.yml +[ci-test-shield]: https://github.com/lobehub/sd-webui-lobe-theme/workflows/Test%20CI/badge.svg +[ci-test-url]: https://github.com/lobehub/sd-webui-lobe-theme/actions/workflows/test.yml -[ci-release-shield]: https://github.com/canisminor1990/sd-webui-lobe-theme/workflows/Build%20and%20Release/badge.svg -[ci-release-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/actions/workflows/release.yml +[ci-release-shield]: https://github.com/lobehub/sd-webui-lobe-theme/workflows/Build%20and%20Release/badge.svg +[ci-release-url]: https://github.com/lobehub/sd-webui-lobe-theme/actions/workflows/release.yml -[contributors-shield]: https://img.shields.io/github/contributors/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[contributors-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/graphs/contributors +[contributors-shield]: https://img.shields.io/github/contributors/lobehub/sd-webui-lobe-theme.svg?style=flat +[contributors-url]: https://github.com/lobehub/sd-webui-lobe-theme/graphs/contributors -[forks-shield]: https://img.shields.io/github/forks/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[forks-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/network/members +[forks-shield]: https://img.shields.io/github/forks/lobehub/sd-webui-lobe-theme.svg?style=flat +[forks-url]: https://github.com/lobehub/sd-webui-lobe-theme/network/members -[stargazers-shield]: https://img.shields.io/github/stars/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[stargazers-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/stargazers +[stargazers-shield]: https://img.shields.io/github/stars/lobehub/sd-webui-lobe-theme.svg?style=flat +[stargazers-url]: https://github.com/lobehub/sd-webui-lobe-theme/stargazers -[issues-shield]: https://img.shields.io/github/issues/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[issues-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/issues/new/choose +[issues-shield]: https://img.shields.io/github/issues/lobehub/sd-webui-lobe-theme.svg?style=flat +[issues-url]: https://github.com/lobehub/sd-webui-lobe-theme/issues/new/choose diff --git a/README.md b/README.md index e7295ad..d01aff1 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ English · [Russian ](./README-ru_RU.md)· [简体中文](./README-zh_CN.md) · - [x] 🎛️ Highly customizable sidebar, with a quick settings sidebar on the left and a model sidebar on the right - [x] 🖼️ Adjustable canvas ratio, ensuring that generated images are always displayed at the top - [x] 📱 Mobile-friendly, with partial optimization for mobile screens -- [x] 🌍Support i18n and welcome [PR](https://github.com/canisminor1990/sd-webui-lobe-theme/tree/main/locales) contributions +- [x] 🌍Support i18n and welcome [PR](https://github.com/lobehub/sd-webui-lobe-theme/tree/main/locales) contributions - [x] 📝 Syntax highlighting in the prompt input box - [x] 📦 Support [PWA](https://support.google.com/chrome/answer/9658361) progressive web app @@ -77,7 +77,7 @@ Search for `Lobe Theme` or `Kitchen Theme` in the stable diffusion webui plugin As an extension (recommended), clone the repository to your extension folder: ```shell -git clone "https://github.com/canisminor1990/sd-webui-lobe-theme" extensions/lobe-theme +git clone "https://github.com/lobehub/sd-webui-lobe-theme" extensions/lobe-theme ``` > 👉 Note: minimum requirements gradio-3.23.0 & sd-webui [4c1ad74](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/4c1ad743e3baf1246db0711aa0107debf036a12b) @@ -266,7 +266,7 @@ You can use Gitpod for online development: Alternatively, you can clone it for local development. To enable hot-reloading mode, you need to start stable diffuison on port `7860` in advance. ```bash -$ git clone https://github.com/canisminor1990/sd-webui-lobe-theme.git +$ git clone https://github.com/lobehub/sd-webui-lobe-theme.git $ cd sd-webui-lobe-theme $ pnpm install $ pnpm start @@ -358,7 +358,7 @@ This project is [AGPL3](./LICENSE) licensed. [feat-thememode]: https://gw.alipayobjects.com/zos/kitchen/nSFtJidWUR/feat_thememode.webp [feat-pwa]: https://gw.alipayobjects.com/zos/kitchen/az49akOKJT/feat_pwa.webp [profile-url]: https://github.com/canisminor1990 -[gitpod-url]: https://gitpod.io/#https://github.com/canisminor1990/sd-webui-lobe-theme +[gitpod-url]: https://gitpod.io/#https://github.com/lobehub/sd-webui-lobe-theme @@ -366,40 +366,40 @@ This project is [AGPL3](./LICENSE) licensed. -[release-shield]: https://img.shields.io/github/v/release/canisminor1990/sd-webui-lobe-theme?style=flat&sort=semver&logo=github -[release-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/releases +[release-shield]: https://img.shields.io/github/v/release/lobehub/sd-webui-lobe-theme?style=flat&sort=semver&logo=github +[release-url]: https://github.com/lobehub/sd-webui-lobe-theme/releases -[release-date-shield]: https://img.shields.io/github/release-date/canisminor1990/sd-webui-lobe-theme?style=flat -[release-date-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/releases +[release-date-shield]: https://img.shields.io/github/release-date/lobehub/sd-webui-lobe-theme?style=flat +[release-date-url]: https://github.com/lobehub/sd-webui-lobe-theme/releases -[ci-test-shield]: https://github.com/canisminor1990/sd-webui-lobe-theme/workflows/Test%20CI/badge.svg -[ci-test-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/actions/workflows/test.yml +[ci-test-shield]: https://github.com/lobehub/sd-webui-lobe-theme/workflows/Test%20CI/badge.svg +[ci-test-url]: https://github.com/lobehub/sd-webui-lobe-theme/actions/workflows/test.yml -[ci-release-shield]: https://github.com/canisminor1990/sd-webui-lobe-theme/workflows/Build%20and%20Release/badge.svg -[ci-release-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/actions/workflows/release.yml +[ci-release-shield]: https://github.com/lobehub/sd-webui-lobe-theme/workflows/Build%20and%20Release/badge.svg +[ci-release-url]: https://github.com/lobehub/sd-webui-lobe-theme/actions/workflows/release.yml -[contributors-shield]: https://img.shields.io/github/contributors/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[contributors-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/graphs/contributors +[contributors-shield]: https://img.shields.io/github/contributors/lobehub/sd-webui-lobe-theme.svg?style=flat +[contributors-url]: https://github.com/lobehub/sd-webui-lobe-theme/graphs/contributors -[forks-shield]: https://img.shields.io/github/forks/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[forks-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/network/members +[forks-shield]: https://img.shields.io/github/forks/lobehub/sd-webui-lobe-theme.svg?style=flat +[forks-url]: https://github.com/lobehub/sd-webui-lobe-theme/network/members -[stargazers-shield]: https://img.shields.io/github/stars/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[stargazers-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/stargazers +[stargazers-shield]: https://img.shields.io/github/stars/lobehub/sd-webui-lobe-theme.svg?style=flat +[stargazers-url]: https://github.com/lobehub/sd-webui-lobe-theme/stargazers -[issues-shield]: https://img.shields.io/github/issues/canisminor1990/sd-webui-lobe-theme.svg?style=flat -[issues-url]: https://github.com/canisminor1990/sd-webui-lobe-theme/issues/new/choose +[issues-shield]: https://img.shields.io/github/issues/lobehub/sd-webui-lobe-theme.svg?style=flat +[issues-url]: https://github.com/lobehub/sd-webui-lobe-theme/issues/new/choose diff --git a/javascript/main.js b/javascript/main.js index 1b8d4db..8301688 100644 --- a/javascript/main.js +++ b/javascript/main.js @@ -1,4 +1,4 @@ -function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t,n;return e.__esModule?e:("function"==typeof(t=e.default)?(n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},n.prototype=t.prototype):n={},Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n)}function r(e,t,n){this.props=e,this.context=t,this.refs=MJ,this.updater=n||RJ}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=MJ,this.updater=n||RJ}function a(e,t,n){var r,o,i,a,s={},l=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)ov.call(t,r)&&!av.hasOwnProperty(r)&&(s[r]=t[r]);if(1==(o=arguments.length-2))s.children=n;else if(1t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Ov.call(Pv,e)||!Ov.call($v,e)&&(jv.test(e)?Pv[e]=!0:($v[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function v(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Xv&&e[Xv]||e["@@iterator"])?e:null}function _(e){if(void 0===Yv)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yv=t&&t[1]||""}return"\n"+Yv+e}function w(e,t){var n,r,o,i,a,s,l;if(!e||Qv)return"";Qv=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return l="\n"+o[a].replace(" at new "," at "),e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Qv=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function k(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return w(e.type,!1);case 11:return w(e.type.render,!1);case 1:return w(e.type,!0);default:return""}}function x(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Fv:return"Fragment";case Rv:return"Portal";case Lv:return"Profiler";case Mv:return"StrictMode";case Uv:return"Suspense";case Wv:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Bv:return(e.displayName||"Context")+".Consumer";case zv:return(e._context.displayName||"Context")+".Provider";case Hv:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Vv:return null!==(t=e.displayName||null)?t:x(e.type)||"Memo";case Gv:t=e._payload,e=e._init;try{return x(e(t))}catch(n){}}return null}function S(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return x(t);case 8:return t===Mv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function C(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function E(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function D(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=E(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),i=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set)return t=o.get,n=o.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){i=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function O(e){var t,n,r;return!(!e||(t=e._valueTracker)&&(n=t.getValue(),r="",e&&(r=E(e)?e.checked?"true":"false":e.value),(e=r)===n||(t.setValue(e),0)))}function j(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return Kv({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function P(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=C(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function N(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function T(e,t){N(e,t);var n=C(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?A(e,t.type,n):t.hasOwnProperty("defaultValue")&&A(e,t.type,C(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function I(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function A(e,t,n){"number"===t&&j(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function R(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=(o=t&-t)||16===r&&0!=(4194240&o)))return t;if(0!=(4&n)&&(n|=16&s),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0n;n++)t.push(e);return t}function ge(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-j_(t)]=n}function he(e,t){var n,r,o=e.entangledLanes|=t;for(e=e.entanglements;o;)(r=1<<(n=31-j_(o)))&t|e[n]&t&&(e[n]|=t),o&=~r}function be(e){return 1<(e&=-e)?4=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Je(r)}}function et(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?et(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tt(){var e,t,n;for(e=window,t=j();t instanceof e.HTMLIFrameElement;){try{n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=j((e=t.contentWindow).document)}return t}function nt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rt(e){var t,n,r,o=tt(),i=e.focusedElem,a=e.selectionRange;if(o!==i&&i&&i.ownerDocument&&et(i.ownerDocument.documentElement,i)){null!==a&&nt(i)&&(o=a.start,void 0===(e=a.end)&&(e=o),"selectionStart"in i?(i.selectionStart=o,i.selectionEnd=Math.min(e,i.value.length)):(e=(o=i.ownerDocument||document)&&o.defaultView||window).getSelection&&(e=e.getSelection(),t=i.textContent.length,n=Math.min(a.start,t),a=void 0===a.end?n:Math.min(a.end,t),!e.extend&&n>a&&(t=a,a=n,n=t),t=Ze(i,n),r=Ze(i,a),t&&r&&(1!==e.rangeCount||e.anchorNode!==t.node||e.anchorOffset!==t.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((o=o.createRange()).setStart(t.node,t.offset),e.removeAllRanges(),n>a?(e.addRange(o),e.extend(r.node,r.offset)):(o.setEnd(r.node,r.offset),e.addRange(o))))),o=[];for(e=i;e=e.parentNode;)1===e.nodeType&&o.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;i$k||(e.current=jk[$k],jk[$k]=null,$k--)}function Tt(e,t){$k++,jk[$k]=e.current,e.current=t}function It(e,t){var n,r,o,i=e.type.contextTypes;if(!i)return Pk;if((n=e.stateNode)&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;for(o in r={},i)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function At(e){return null!=e.childContextTypes}function Rt(){Nt(Tk),Nt(Nk)}function Ft(e,t,n){if(Nk.current!==Pk)throw Error(f(168));Tt(Nk,t),Tt(Tk,n)}function Mt(e,t,n){var r,o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(r in o=o.getChildContext())if(!(r in t))throw Error(f(108,S(e)||"Unknown",r));return Kv({},n,o)}function Lt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pk,Ik=Nk.current,Tt(Nk,e),Tt(Tk,Tk.current),!0}function zt(e,t,n){var r=e.stateNode;if(!r)throw Error(f(169));n?(e=Mt(e,t,Ik),r.__reactInternalMemoizedMergedChildContext=e,Nt(Tk),Nt(Nk),Tt(Nk,e)):Nt(Tk),Tt(Tk,n)}function Bt(e){null===Ak?Ak=[e]:Ak.push(e)}function Ht(){var e,t,n,r;if(!Fk&&null!==Ak){Fk=!0,e=0,t=I_;try{for(n=Ak,I_=1;e>=a,o-=a,Vk=1<<32-j_(t)+o|n<g?(h=f,f=null):h=f.sibling,null===(b=p(o,f,s[g],l))){null===f&&(f=h);break}e&&f&&null===b.alternate&&t(o,f),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,f=h}if(g===s.length)return n(o,f),Kk&&Ut(o,g),c;if(null===f){for(;gg?(h=u,u=null):h=u.sibling,null===(y=p(o,u,b.value,l))){null===u&&(u=h);break}e&&u&&null===y.alternate&&t(o,u),a=i(y,a,g),null===c?_=y:c.sibling=y,c=y,u=h}if(b.done)return n(o,u),Kk&&Ut(o,g),_;if(null===u){for(;!b.done;g++,b=s.next())null!==(b=d(o,b.value,l))&&(a=i(b,a,g),null===c?_=b:c.sibling=b,c=b);return Kk&&Ut(o,g),_}for(u=r(o,u);!b.done;g++,b=s.next())null!==(b=m(u,o,g,b.value,l))&&(e&&null!==b.alternate&&u.delete(null===b.key?g:b.key),a=i(b,a,g),null===c?_=b:c.sibling=b,c=b);return e&&u.forEach((function(e){return t(o,e)})),Kk&&Ut(o,g),_}(l,c,u,g);En(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=ni(u,l.mode,g)).return=l,l=c),a(l)):n(l,c)}}function jn(e){if(e===lx)throw Error(f(174));return e}function $n(e,t){switch(Tt(dx,t),Tt(ux,e),Tt(cx,lx),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:H(null,"");break;default:t=H(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Nt(cx),Tt(cx,t)}function Pn(){Nt(cx),Nt(ux),Nt(dx)}function Nn(e){var t,n;jn(dx.current),(t=jn(cx.current))!==(n=H(t,e.type))&&(Tt(ux,e),Tt(cx,n))}function Tn(e){ux.current===e&&(Nt(cx),Nt(ux))}function In(e){var t,n;for(t=e;null!==t;){if(13===t.tag){if(null!==(n=t.memoizedState)&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function An(){for(var e=0;er?r:4,e(!0),n=gx.transition,gx.transition={};try{e(!1),t()}finally{I_=r,gx.transition=n}}function mr(){return Bn().memoizedState}function gr(e,t,n){var r=_o(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?yr(t,n):null!==(n=un(e,t,n,r))&&(wo(n,e,r,vo()),vr(n,t,r))}function hr(e,t,n){var r,o,i,a,s=_o(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))yr(t,l);else{if(r=e.alternate,0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{if(i=r(o=t.lastRenderedState,n),l.hasEagerState=!0,l.eagerState=i,Xw(i,o))return null===(a=t.interleaved)?(l.next=l,cn(t)):(l.next=a.next,a.next=l),void(t.interleaved=l)}catch(c){}null!==(n=un(e,t,l,s))&&(wo(n,e,s,l=vo()),vr(n,t,s))}}function br(e){var t=e.alternate;return e===bx||null!==t&&t===bx}function yr(e,t){wx=_x=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vr(e,t,n){if(0!=(4194240&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,he(e,n)}}function _r(e,t){var n,r,o;try{n="",r=t;do{n+=k(r),r=r.return}while(r);o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function wr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function kr(e,t,n){(n=mn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cS||(cS=!0,uS=r)},n}function xr(e,t,n){var r,o,i;return(n=mn(-1,n)).tag=3,"function"==typeof(r=e.type.getDerivedStateFromError)&&(o=t.value,n.payload=function(){return r(o)},n.callback=function(){}),null!==(i=e.stateNode)&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===dS?dS=new Set([this]):dS.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Sr(e,t,n){var r,o=e.pingCache;null===o?(o=e.pingCache=new Ox).set(t,r=new Set):void 0===(r=o.get(t))&&o.set(t,r=new Set),r.has(n)||(r.add(n),e=Wo.bind(null,e,t,n),t.then(e,e))}function Cr(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Er(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=mn(-1,1)).tag=2,gn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function Dr(e,t,n,r){t.child=null===e?sx(t,null,n,r):ax(t,e.child,n,r)}function Or(e,t,n,r,o){n=n.render;var i=t.ref;return sn(t,o),r=Mn(e,t,n,r,i,o),n=Ln(),null===e||$x?(Kk&&n&&Vt(t),t.flags|=1,Dr(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function jr(e,t,n,r,o){var i;return null===e?"function"!=typeof(i=n.type)||Qo(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,$r(e,t,i,r,o)):(i=e.child,0==(e.lanes&o)&&(n=null!==(n=n.compare)?n:Qe)(i.memoizedProps,r)&&e.ref===t.ref?Gr(e,t,o):(t.flags|=1,(e=Jo(i,r)).ref=t.ref,e.return=t,t.child=e))}function $r(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Qe(i,r)&&e.ref===t.ref){if($x=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Gr(e,t,o);0!=(131072&e.flags)&&($x=!0)}}return Tr(e,t,n,r,o)}function Pr(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(Jx,Qx),Qx|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tt(Jx,Qx),Qx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Tt(Jx,Qx),Qx|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Tt(Jx,Qx),Qx|=r;return Dr(e,t,o,n),t.child}function Nr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tr(e,t,n,r,o){var i=At(n)?Ik:Nk.current;return i=It(t,i),sn(t,o),n=Mn(e,t,n,r,i,o),r=Ln(),null===e||$x?(Kk&&r&&Vt(t),t.flags|=1,Dr(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function Ir(e,t,n,r,o){var i,a,s,l,c,u,d,p,f,m;return At(n)?(i=!0,Lt(t)):i=!1,sn(t,o),null===t.stateNode?(Vr(e,t),kn(t,n,r),Sn(t,n,r,o),r=!0):null===e?((a=t.stateNode).props=s=t.memoizedProps,l=a.context,c="object"==typeof(c=n.contextType)&&null!==c?ln(c):It(t,c=At(n)?Ik:Nk.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&xn(t,a,r,c),rx=!1,a.state=p=t.memoizedState,yn(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Tk.current||rx?("function"==typeof u&&(_n(t,n,u,r),l=t.memoizedState),(s=rx||wn(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)):(a=t.stateNode,fn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:nn(t.type,s),a.props=c,d=t.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ln(l):It(t,l=At(n)?Ik:Nk.current),(u="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&xn(t,a,r,l),rx=!1,a.state=p=t.memoizedState,yn(t,r,a,o),m=t.memoizedState,s!==d||p!==m||Tk.current||rx?("function"==typeof f&&(_n(t,n,f,r),m=t.memoizedState),(c=rx||wn(t,n,c,r,p,m,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)),Ar(e,t,n,r,i,o)}function Ar(e,t,n,r,o,i){var a,s;return Nr(e,t),a=0!=(128&t.flags),r||a?(r=t.stateNode,jx.current=t,s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render(),t.flags|=1,null!==e&&a?(t.child=ax(t,e.child,null,i),t.child=ax(t,null,s,i)):Dr(e,t,s,i),t.memoizedState=r.state,o&&zt(t,n,!0),t.child):(o&&zt(t,n,!1),Gr(e,t,i))}function Rr(e){var t=e.stateNode;t.pendingContext?Ft(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ft(0,t.context,!1),$n(e,t.containerInfo)}function Fr(e,t,n,r,o){return en(),tn(o),t.flags|=256,Dr(e,t,n,r),t.child}function Mr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lr(e,t,n){var r,o,i=t.pendingProps,a=px.current,s=!1,l=0!=(128&t.flags);return(r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Tt(px,1&a),null===e?(Yt(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(t.lanes=0==(1&t.mode)?1:"$!"===e.data?8:1073741824,null):(l=i.children,e=i.fallback,s?(s=t.child,l={mode:"hidden",children:l},0==(1&(i=t.mode))&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ti(l,i,0,null),e=ei(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Mr(n),t.memoizedState=Px,e):zr(t,l))):null!==(a=e.memoizedState)&&null!==(r=a.dehydrated)?function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Br(e,t,a,r=wr(Error(f(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,r=ti({mode:"visible",children:r.children},o=t.mode,0,null),(i=ei(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ax(t,e.child,null,a),t.child.memoizedState=Mr(a),t.memoizedState=Px,i);if(0==(1&t.mode))return Br(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Br(e,t,a,r=wr(i=Error(f(419)),r,void 0))}if(s=0!=(a&e.childLanes),$x||s){if(null!==(r=Xx)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,dn(e,o),wo(r,e,o,-1))}return Io(),Br(e,t,a,r=wr(Error(f(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Go.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Xk=Ct(o.nextSibling),qk=t,Kk=!0,Yk=null,null!==e&&(Hk[Uk++]=Vk,Hk[Uk++]=Gk,Hk[Uk++]=Wk,Vk=e.id,Gk=e.overflow,Wk=t),(t=zr(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n):s?(s=i.fallback,r=(a=e.child).sibling,o={mode:"hidden",children:i.children},0==(1&(l=t.mode))&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=o,t.deletions=null):(i=Jo(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Jo(r,s):(s=ei(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Mr(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Px,i):(e=(s=e.child).sibling,i=Jo(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i)}function zr(e,t){return(t=ti({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Br(e,t,n,r){return null!==r&&tn(r),ax(t,e.child,null,n),(e=zr(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hr(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),an(e.return,t,n)}function Ur(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wr(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Dr(e,t,r.children,n),0!=(2&(r=px.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hr(e,n,t);else if(19===e.tag)Hr(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Tt(px,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===In(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ur(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===In(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ur(t,!0,n,null,i);break;case"together":Ur(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vr(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),tS|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(f(153));if(null!==t.child){for(n=Jo(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Jo(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function qr(e,t){var n,r;if(!Kk)switch(e.tailMode){case"hidden":for(t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":for(n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xr(e){var t,n=null!==e.alternate&&e.alternate.child===e.child,r=0,o=0;if(n)for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=14680064&t.subtreeFlags,o|=14680064&t.flags,t.return=e,t=t.sibling;else for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=t.subtreeFlags,o|=t.flags,t.return=e,t=t.sibling;return e.subtreeFlags|=o,e.childLanes=r,n}function Kr(e,t,n){var r,o,i,a,s,l=t.pendingProps;switch(Gt(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:case 17:return At(t.type)&&Rt(),Xr(t),null;case 3:return l=t.stateNode,Pn(),Nt(Tk),Nt(Nk),An(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(Jt(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Yk&&(Co(Yk),Yk=null))),Tx(e,t),Xr(t),null;case 5:if(Tn(t),r=jn(dx.current),n=t.type,null!==e&&null!=t.stateNode)Ix(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(f(166));return Xr(t),null}if(e=jn(cx.current),Jt(t)){switch(n=t.type,o=t.memoizedProps,(l=t.stateNode)[xk]=t,l[Sk]=o,e=0!=(1&t.mode),n){case"dialog":ut("cancel",l),ut("close",l);break;case"iframe":case"object":case"embed":ut("load",l);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=i.createElement(n,{is:l.is}):(e=i.createElement(n),"select"===n&&(i=e,l.multiple?i.multiple=!0:l.size&&(i.size=l.size))):e=i.createElementNS(e,n),e[xk]=t,e[Sk]=l,Nx(e,t,!1,!1),t.stateNode=e;e:{switch(i=q(n,l),n){case"dialog":ut("cancel",e),ut("close",e),r=l;break;case"iframe":case"object":case"embed":ut("load",e),r=l;break;case"video":case"audio":for(r=0;rsS&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=In(i))){if(t.flags|=128,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!Kk)return Xr(t),null}else 2*__()-o.renderingStartTime>sS&&1073741824!==n&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=o.last)?n.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(o.rendering=t=o.tail,o.tail=t.sibling,o.renderingStartTime=__(),t.sibling=null,n=px.current,Tt(px,l?1&n|2:1&n),t):(Xr(t),null);case 22:case 23:return $o(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&0!=(1&t.mode)?0!=(1073741824&Qx)&&(Xr(t),6&t.subtreeFlags&&(t.flags|=8192)):Xr(t),null;case 24:case 25:return null}throw Error(f(156,t.tag))}function Yr(e,t){switch(Gt(t),t.tag){case 1:return At(t.type)&&Rt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Pn(),Nt(Tk),Nt(Nk),An(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Tn(t),null;case 13:if(Nt(px),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(f(340));en()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Nt(px),null;case 4:return Pn(),null;case 10:return on(t.type._context),null;case 22:case 23:return $o(),null;default:return null}}function Qr(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Uo(e,t,r)}else n.current=null}function Jr(e,t,n){try{n()}catch(r){Uo(e,t,r)}}function Zr(e,t,n){var r,o,i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){r=i=i.next;do{(r.tag&e)===e&&(o=r.destroy,r.destroy=void 0,void 0!==o&&Jr(t,n,o)),r=r.next}while(r!==i)}}function eo(e,t){var n;if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){n=t=t.next;do{(n.tag&e)===e&&(n.destroy=(0,n.create)()),n=n.next}while(n!==t)}}function to(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function no(e){var t=e.alternate;null!==t&&(e.alternate=null,no(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[xk],delete t[Sk],delete t[Ek],delete t[Dk],delete t[Ok]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ro(e){return 5===e.tag||3===e.tag||4===e.tag}function oo(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ro(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function io(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=wt));else if(4!==r&&null!==(e=e.child))for(io(e,t,n),e=e.sibling;null!==e;)io(e,t,n),e=e.sibling}function ao(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ao(e,t,n),e=e.sibling;null!==e;)ao(e,t,n),e=e.sibling}function so(e,t,n){for(n=n.child;null!==n;)lo(e,t,n),n=n.sibling}function lo(e,t,n){var r,o,i,a;if(O_&&"function"==typeof O_.onCommitFiberUnmount)try{O_.onCommitFiberUnmount(D_,n)}catch(s){}switch(n.tag){case 5:Fx||Qr(n,t);case 6:r=Bx,o=Hx,Bx=null,so(e,t,n),Hx=o,null!==(Bx=r)&&(Hx?(n=n.stateNode,8===(e=Bx).nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Bx.removeChild(n.stateNode));break;case 18:null!==Bx&&(Hx?(n=n.stateNode,8===(e=Bx).nodeType?St(e.parentNode,n):1===e.nodeType&&St(e,n),Ce(e)):St(Bx,n.stateNode));break;case 4:r=Bx,o=Hx,Bx=n.stateNode.containerInfo,Hx=!0,so(e,t,n),Bx=r,Hx=o;break;case 0:case 11:case 14:case 15:if(!Fx&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{a=(i=o).destroy,i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Jr(n,t,a),o=o.next}while(o!==r)}so(e,t,n);break;case 1:if(!Fx&&(Qr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Uo(n,t,s)}so(e,t,n);break;case 21:so(e,t,n);break;case 22:1&n.mode?(Fx=(r=Fx)||null!==n.memoizedState,so(e,t,n),Fx=r):so(e,t,n);break;default:so(e,t,n)}}function co(e){var t,n=e.updateQueue;null!==n&&(e.updateQueue=null,null===(t=e.stateNode)&&(t=e.stateNode=new Mx),n.forEach((function(n){var r=qo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})))}function uo(e,t){var n,r,o,i,a,s,l=t.deletions;if(null!==l)for(n=0;no&&(o=a),r&=~i;if(r=o,10<(r=(120>(r=__()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ux(r/1960))-r)){e.timeoutHandle=yk(zo.bind(null,e,iS,lS),r);break}zo(e,iS,lS);break;default:throw Error(f(329))}}}return ko(e,__()),e.callbackNode===n?xo.bind(null,e):null}function So(e,t){var n=oS;return e.current.memoizedState.isDehydrated&&(Po(e,t).flags|=256),2!==(e=Ao(e,t))&&(t=iS,iS=n,null!==t&&Co(t)),e}function Co(e){null===iS?iS=e:iS.push.apply(iS,e)}function Eo(e,t){for(t&=~rS,e.suspendedLanes|=t&=~nS,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===fS)r=!1;else{if(e=fS,fS=null,mS=0,0!=(6&qx))throw Error(f(331));for(o=qx,qx|=4,Lx=e.current;null!==Lx;){if(a=(i=Lx).child,0!=(16&Lx.flags)&&null!==(s=i.deletions)){for(l=0;l__()-aS?Po(e,0):rS|=n),ko(e,t)}function Vo(e,t){0===t&&(0==(1&e.mode)?t=1:(t=T_,0==(130023424&(T_<<=1))&&(T_=4194304)));var n=vo();null!==(e=dn(e,t))&&(ge(e,t,n),ko(e,n))}function Go(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Vo(e,n)}function qo(e,t){var n,r,o=0;switch(e.tag){case 13:n=e.stateNode,null!==(r=e.memoizedState)&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(f(314))}null!==n&&n.delete(t),Vo(e,o)}function Xo(e,t){return h_(e,t)}function Ko(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yo(e,t,n,r){return new Ko(e,t,n,r)}function Qo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jo(e,t){var n=e.alternate;return null===n?((n=Yo(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zo(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Qo(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Fv:return ei(n.children,o,i,t);case Mv:a=8,o|=8;break;case Lv:return(e=Yo(12,n,t,2|o)).elementType=Lv,e.lanes=i,e;case Uv:return(e=Yo(13,n,t,o)).elementType=Uv,e.lanes=i,e;case Wv:return(e=Yo(19,n,t,o)).elementType=Wv,e.lanes=i,e;case qv:return ti(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case zv:a=10;break e;case Bv:a=9;break e;case Hv:a=11;break e;case Vv:a=14;break e;case Gv:a=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,""))}return(t=Yo(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function ei(e,t,n,r){return(e=Yo(7,e,r,t)).lanes=n,e}function ti(e,t,n,r){return(e=Yo(22,e,r,t)).elementType=qv,e.lanes=n,e.stateNode={isHidden:!1},e}function ni(e,t,n){return(e=Yo(6,e,null,t)).lanes=n,e}function ri(e,t,n){return(t=Yo(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oi(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=me(0),this.expirationTimes=me(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=me(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ii(e,t,n,r,o,i,a,s,l){return e=new oi(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Yo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pn(i),e}function ai(e){var t,n;if(!e)return Pk;e:{if(oe(e=e._reactInternals)!==e||1!==e.tag)throw Error(f(170));t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(At(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(f(171))}return 1===e.tag&&At(n=e.type)?Mt(e,n,t):t}function si(e,t,n,r,o,i,a,s,l){return(e=ii(n,r,!0,e,0,i,0,s,l)).context=ai(null),n=e.current,(i=mn(r=vo(),o=_o(n))).callback=null!=t?t:null,gn(n,i,o),e.current.lanes=o,ge(e,o,r),ko(e,r),e}function li(e,t,n,r){var o=t.current,i=vo(),a=_o(o);return n=ai(n),null===t.context?t.context=n:t.pendingContext=n,(t=mn(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=gn(o,t,a))&&(wo(e,o,a,i),hn(e,o,a)),a}function ci(e){return(e=e.current).child?e.child.stateNode:null}function ui(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(n[o]=e[o]);return n}(e,t),Object.getOwnPropertySymbols)for(i=Object.getOwnPropertySymbols(e),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function ki(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Si(e,t){var n,r;for(n=0;n2||zi(VS)>3?"":" "}function Vi(e,t){for(;--t&&Ri()&&!(VS<48||VS>102||VS>57&&VS<65||VS>70&&VS<97););return Li(e,Mi()+(t<6&&32==Fi()&&32==Ri()))}function Gi(e){for(;Ri();)switch(VS){case e:return WS;case 34:case 39:34!==e&&39!==e&&Gi(VS);break;case 40:41===e&&Gi(e);break;case 92:Ri()}return WS}function qi(e,t){for(;Ri()&&e+VS!==57&&(e+VS!==84||47!==Fi()););return"/*"+Li(t,WS-1)+"*"+LS(47===e?e:Ri())}function Xi(e){for(;!zi(Fi());)Ri();return Li(e,WS)}function Ki(e){return Hi(Yi("",null,null,null,[""],e=Bi(e),0,[0],e))}function Yi(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,g=1,h=1,b=1,y=0,v="",_=o,w=i,k=r,x=v;h;)switch(m=y,y=Ri()){case 40:if(108!=m&&58==ji(x,d-1)){-1!=Oi(x+=Di(Ui(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:x+=Ui(y);break;case 9:case 10:case 13:case 32:x+=Wi(m);break;case 92:x+=Vi(Mi()-1,7);continue;case 47:switch(Fi()){case 42:case 47:Ti(Ji(qi(Ri(),Mi()),t,n),l);break;default:x+="/"}break;case 123*g:s[c++]=Pi(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:-1==b&&(x=Di(x,/\f/g,"")),f>0&&Pi(x)-d&&Ti(f>32?Zi(x+";",r,n,d-1):Zi(Di(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(Ti(k=Qi(x,t,n,c,u,o,s,v,_=[],w=[],d),i),123===y)if(0===u)Yi(x,t,k,k,_,i,d,s,w);else switch(99===p&&110===ji(x,3)?100:p){case 100:case 108:case 109:case 115:Yi(e,k,k,r&&Ti(Qi(e,k,k,0,0,o,s,v,o,_=[],d),w),o,w,d,s,r?_:w);break;default:Yi(x,k,k,k,[""],w,0,s,w)}}c=u=f=0,g=b=1,v=x="",d=a;break;case 58:d=1+Pi(x),f=m;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(VS=WS>0?ji(GS,--WS):0,HS--,10===VS&&(HS=1,BS--),VS))continue;switch(x+=LS(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Pi(x)-1)*b,b=1;break;case 64:45===Fi()&&(x+=Ui(Ri())),p=Fi(),u=d=Pi(v=x+=Xi(Mi())),y++;break;case 45:45===m&&2==Pi(x)&&(g=0)}}return i}function Qi(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,m,g,h,b=o-1,y=0===o?i:[""],v=Ni(y);for(d=0,p=0,f=0;d0?y[m]+" "+g:Di(g,/&\f/g,y[m])))&&(l[f++]=h);return Ii(e,t,n,0===o?TS:s,l,c,u)}function Ji(e,t,n){return Ii(e,t,n,NS,LS(VS),$i(e,2,-2),0)}function Zi(e,t,n,r){return Ii(e,t,n,IS,$i(e,0,r),$i(e,r+1,-1),r)}function ea(e,t){var n,r="",o=Ni(e);for(n=0;n6)switch(ji(e,t+1)){case 109:if(45!==ji(e,t+4))break;case 102:return Di(e,/(.+:)(.+)-([^]+)/,"$1"+PS+"$2-$3$1"+$S+(108==ji(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Oi(e,"stretch")?ra(Di(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ji(e,t+1))break;case 6444:switch(ji(e,Pi(e)-3-(~Oi(e,"!important")&&10))){case 107:return Di(e,":",":"+PS)+e;case 101:return Di(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+PS+(45===ji(e,14)?"inline-":"")+"box$3$1"+PS+"$2$3$1"+jS+"$2box$3")+e}break;case 5936:switch(ji(e,t+11)){case 114:return PS+e+jS+Di(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return PS+e+jS+Di(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return PS+e+jS+Di(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return PS+e+jS+e+e}return e}function oa(e,t,n){var r,o,i,a;if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return uC={name:n.name,styles:n.styles,next:uC},n.name;if(void 0!==n.styles){if(void 0!==(r=n.next))for(;void 0!==r;)uC={name:r.name,styles:r.styles,next:uC},r=r.next;return n.styles+";"}return function(e,t,n){var r,o,i,a,s,l="";if(Array.isArray(n))for(r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function wa(e,t,n){var r=dv.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function ka(){}function xa(){}function Sa(e,t,n){t||wE[n]||(e(!1,n),wE[n]=!0)}function Ca(e,t){Sa(ka,e,t)}function Ea(e,t,n){var r=arguments.length>2&&void 0!==n&&n,o=new Set;return function e(t,n,i){var a,s,l,c=arguments.length>2&&void 0!==i?i:1,u=o.has(t);if(Ca(!u,"Warning: There may be circular references"),u)return!1;if(t===n)return!0;if(r&&c>1)return!1;if(o.add(t),a=c+1,Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(s=0;s0&&void 0!==e?e:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):$E}function Pa(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Na(e){return Array.from((PE.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ta(e,t){var n,r,o,i,a,s,l=arguments.length>1&&void 0!==t?t:{};if(!Oa())return null;if(n=l.csp,r=l.prepend,(o=document.createElement("style")).setAttribute(jE,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r)),null!=n&&n.nonce&&(o.nonce=null==n?void 0:n.nonce),o.innerHTML=e,a=(i=Pa(l)).firstChild,r){if("queue"===r&&(s=Na(i).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(jE))}))).length)return i.insertBefore(o,s[s.length-1].nextSibling),o;i.insertBefore(o,a)}else i.appendChild(o);return o}function Ia(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Na(Pa(n)).find((function(t){return t.getAttribute($a(n))===e}))}function Aa(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=Ia(e,n);r&&Pa(n).removeChild(r)}function Ra(e,t,n){var r,o,i,a,s,l=arguments.length>2&&void 0!==n?n:{};return function(e,t){var n,r=PE.get(e);r&&ja(document,r)||(n=Ta("",t),PE.set(e,n.parentNode),e.removeChild(n))}(Pa(l),l),(r=Ia(t,l))?(null!==(o=l.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=l.csp)||void 0===i?void 0:i.nonce)&&(r.nonce=null===(a=l.csp)||void 0===a?void 0:a.nonce),r.innerHTML!==e&&(r.innerHTML=e),r):((s=Ta(e,l)).setAttribute($a(l),t),s)}function Fa(e){var t="";return Object.keys(e).forEach((function(n){var r=e[n];t+=n,r&&"object"===yi(r)?t+=Fa(r):t+=r})),t}function Ma(e){if(Array.isArray(e))return e}function La(){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 za(e,t){return Ma(e)||function(e,t){var n,r,o,i,a,s,l,c=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=c){a=[],s=!0,l=!1;try{if(o=(c=c.call(e)).next,0===t){if(Object(c)!==c)return;s=!1}else for(;!(s=(n=o.call(c)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(u){l=!0,r=u}finally{try{if(!s&&null!=c.return&&(i=c.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e,t)||ha(e,t)||La()}function Ba(e,t,n,r,o){var i,a=dv.useContext(hZ).cache,s=[e].concat(ba(t)),l=s.join("_"),c=function(e){a.update(s,(function(t){var r=za(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};return dv.useMemo((function(){return c()}),[l]),i=a.get(s)[1],bZ((function(){null==o||o(i)}),(function(e){return c((function(t){var n=za(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(i)),[r+1,a]})),function(){a.update(s,(function(e){var t=za(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0==o-1?(null==r||r(i,!1),null):[o-1,i]}))}}),[l]),i}function Ha(e){return e.trim()}function Ua(e,t){return(e=t.exec(e))?e[0]:e}function Wa(e,t,n){return e.replace(t,n)}function Va(e,t){return e.indexOf(t)}function Ga(e,t){return 0|e.charCodeAt(t)}function qa(e,t,n){return e.slice(t,n)}function Xa(e){return e.length}function Ka(e){return e.length}function Ya(e,t){return t.push(e),e}function Qa(e,t){return e.filter((function(e){return!Ua(e,t)}))}function Ja(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:oD,column:iD,length:a,return:"",siblings:s}}function Za(e,t){return rD(Ja("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function es(e){for(;e.root;)e=Za(e.root,{children:[e]});Ya(e,e.siblings)}function ts(){return lD=sD2||is(lD)>3?"":" "}function ls(e,t){for(;--t&&ts()&&!(lD<48||lD>102||lD>57&&lD<65||lD>70&&lD<97););return os(e,rs()+(t<6&&32==ns()&&32==ts()))}function cs(e){for(;ts();)switch(lD){case e:return sD;case 34:case 39:34!==e&&39!==e&&cs(lD);break;case 40:41===e&&cs(e);break;case 92:ts()}return sD}function us(e,t){for(;ts()&&e+lD!==57&&(e+lD!==84||47!==ns()););return"/*"+os(t,sD-1)+"*"+nD(47===e?e:ts())}function ds(e){for(;!is(ns());)ts();return os(e,sD)}function ps(e){return function(e){return cD="",e}(fs("",null,null,null,[""],e=function(e){return oD=iD=1,aD=Xa(cD=e),sD=0,[]}(e),0,[0],e))}function fs(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,g=1,h=1,b=1,y=0,v="",_=o,w=i,k=r,x=v;h;)switch(m=y,y=ts()){case 40:if(108!=m&&58==Ga(x,d-1)){-1!=Va(x+=Wa(as(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:x+=as(y);break;case 9:case 10:case 13:case 32:x+=ss(m);break;case 92:x+=ls(rs()-1,7);continue;case 47:switch(ns()){case 42:case 47:Ya(gs(us(ts(),rs()),t,n,l),l);break;default:x+="/"}break;case 123*g:s[c++]=Xa(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:-1==b&&(x=Wa(x,/\f/g,"")),f>0&&Xa(x)-d&&Ya(f>32?hs(x+";",r,n,d-1,l):hs(Wa(x," ","")+";",r,n,d-2,l),l);break;case 59:x+=";";default:if(Ya(k=ms(x,t,n,c,u,o,s,v,_=[],w=[],d,i),i),123===y)if(0===u)fs(x,t,k,k,_,i,d,s,w);else switch(99===p&&110===Ga(x,3)?100:p){case 100:case 108:case 109:case 115:fs(e,k,k,r&&Ya(ms(e,k,k,0,0,o,s,v,o,_=[],d,w),w),o,w,d,s,r?_:w);break;default:fs(x,k,k,k,[""],w,0,s,w)}}c=u=f=0,g=b=1,v=x="",d=a;break;case 58:d=1+Xa(x),f=m;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(lD=sD>0?Ga(cD,--sD):0,iD--,10===lD&&(iD=1,oD--),lD))continue;switch(x+=nD(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Xa(x)-1)*b,b=1;break;case 64:45===ns()&&(x+=as(ts())),p=ns(),u=d=Xa(v=x+=ds(rs())),y++;break;case 45:45===m&&2==Xa(x)&&(g=0)}}return i}function ms(e,t,n,r,o,i,a,s,l,c,u,d){var p,f,m,g,h,b,y=o-1,v=0===o?i:[""],_=Ka(v);for(p=0,f=0,m=0;p0?v[g]+" "+h:Wa(h,/&\f/g,v[g])))&&(l[m++]=b);return Ja(e,t,n,0===o?YE:s,l,c,u,d)}function gs(e,t,n,r){return Ja(e,t,n,KE,nD(lD),qa(e,2,-2),0,r)}function hs(e,t,n,r,o){return Ja(e,t,n,QE,qa(e,0,r),qa(e,r+1,-1),r,o)}function bs(e,t,n){switch(function(e,t){return 45^Ga(e,0)?(((t<<2^Ga(e,0))<<2^Ga(e,1))<<2^Ga(e,2))<<2^Ga(e,3):0}(e,t)){case 5103:return XE+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return XE+e+e;case 4789:return qE+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return XE+e+qE+e+GE+e+e;case 5936:switch(Ga(e,t+11)){case 114:return XE+e+GE+Wa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return XE+e+GE+Wa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return XE+e+GE+Wa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return XE+e+GE+e+e;case 6165:return XE+e+GE+"flex-"+e+e;case 5187:return XE+e+Wa(e,/(\w+).+(:[^]+)/,XE+"box-$1$2"+GE+"flex-$1$2")+e;case 5443:return XE+e+GE+"flex-item-"+Wa(e,/flex-|-self/g,"")+(Ua(e,/flex-|baseline/)?"":GE+"grid-row-"+Wa(e,/flex-|-self/g,""))+e;case 4675:return XE+e+GE+"flex-line-pack"+Wa(e,/align-content|flex-|-self/g,"")+e;case 5548:return XE+e+GE+Wa(e,"shrink","negative")+e;case 5292:return XE+e+GE+Wa(e,"basis","preferred-size")+e;case 6060:return XE+"box-"+Wa(e,"-grow","")+XE+e+GE+Wa(e,"grow","positive")+e;case 4554:return XE+Wa(e,/([^-])(transform)/g,"$1"+XE+"$2")+e;case 6187:return Wa(Wa(Wa(e,/(zoom-|grab)/,XE+"$1"),/(image-set)/,XE+"$1"),e,"")+e;case 5495:case 3959:return Wa(e,/(image-set\([^]*)/,XE+"$1$`$1");case 4968:return Wa(Wa(e,/(.+:)(flex-)?(.*)/,XE+"box-pack:$3"+GE+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+XE+e+e;case 4200:if(!Ua(e,/flex-|baseline/))return GE+"grid-column-align"+qa(e,t)+e;break;case 2592:case 3360:return GE+Wa(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Ua(e.props,/grid-\w+-end/)}))?~Va(e+(n=n[t].value),"span")?e:GE+Wa(e,"-start","")+e+GE+"grid-row-span:"+(~Va(n,"span")?Ua(n,/\d+/):+Ua(n,/\d+/)-+Ua(e,/\d+/))+";":GE+Wa(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Ua(e.props,/grid-\w+-start/)}))?e:GE+Wa(Wa(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Wa(e,/(.+)-inline(.+)/,XE+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xa(e)-1-t>6)switch(Ga(e,t+1)){case 109:if(45!==Ga(e,t+4))break;case 102:return Wa(e,/(.+:)(.+)-([^]+)/,"$1"+XE+"$2-$3$1"+qE+(108==Ga(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Va(e,"stretch")?bs(Wa(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Wa(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return GE+n+":"+r+s+(o?GE+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===Ga(e,t+6))return Wa(e,":",":"+XE)+e;break;case 6444:switch(Ga(e,45===Ga(e,14)?18:11)){case 120:return Wa(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+XE+(45===Ga(e,14)?"inline-":"")+"box$3$1"+XE+"$2$3$1"+GE+"$2box$3")+e;case 100:return Wa(e,":",":"+GE)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Wa(e,"scroll-","scroll-snap-")+e}return e}function ys(e,t){var n,r="";for(n=0;n-1&&!e.return)switch(e.type){case QE:return void(e.return=bs(e.value,e.length,n));case ZE:return ys([Za(e,{value:Wa(e.value,"@","@"+XE)})],r);case YE:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Ua(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":es(Za(e,{props:[Wa(t,/:(read-\w+)/,":"+qE+"$1")]})),es(Za(e,{props:[t]})),rD(e,{props:Qa(n,r)});break;case"::placeholder":es(Za(e,{props:[Wa(t,/:(plac\w+)/,":"+XE+"input-$1")]})),es(Za(e,{props:[Wa(t,/:(plac\w+)/,":"+qE+"$1")]})),es(Za(e,{props:[Wa(t,/:(plac\w+)/,GE+"input-$1")]})),es(Za(e,{props:[t]})),rD(e,{props:Qa(n,r)})}return""}))}}function ws(e){return ys(ps(e),vs).replace(/\{%%%\:[^;];}/g,";")}function ks(){return null}function xs(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b=e.token,y=e.path,v=e.hashId,_=e.layer,w=e.nonce,k=dv.useContext(hZ),x=k.autoClear;return n=k.defaultCache,r=k.hashPriority,o=k.container,i=k.ssrInline,a=k.transformers,s=k.linters,l=k.cache,u=[c=b._tokenKey].concat(ba(y)),d=mD,p=Ba("style",u,(function(){var e,n,o,i,l,d,p,f,m=u.join("|");return function(e){var t,n,r;return pD||(pD={},Oa()&&((t=document.createElement("div")).className=uD,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t),(getComputedStyle(t).content||"").replace(/^"/,"").replace(/"$/,"").split(";").forEach((function(e){var t=za(e.split(":"),2);pD[t[0]]=t[1]})),(n=document.querySelector("style[".concat(uD,"]")))&&(fD=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(t))),!!pD[e]}(m)&&(e=function(e){var t,n=pD[e],r=null;return n&&Oa()&&(fD?r=dD:(t=document.querySelector("style[".concat(CE,'="').concat(pD[e],'"]')))?r=t.innerHTML:delete pD[e]),[r,n]}(m),o=(n=za(e,2))[0])?[o,c,n[1],{}]:(i=t(),d=(l=za(hD(i,{hashId:v,hashPriority:r,layer:_,path:y.join("-"),transformers:a,linters:s}),2))[1],p=ws(l[0]),f=function(e,t){return _a("".concat(e.join("%")).concat(t))}(u,p),[p,c,f,d])}),(function(e,t){var n=za(e,3);(t||x)&&mD&&Aa(n[2],{mark:CE})}),(function(e){var t,n,r,i,a,s=za(e,4),u=s[0];t=s[2],n=s[3],d&&u!==dD&&(r={mark:CE,prepend:"queue",attachTo:o},(i="function"==typeof w?w():w)&&(r.csp={nonce:i}),(a=Ra(u,t,r))[EE]=l.instanceId,a.setAttribute(SE,c),Object.keys(n).forEach((function(e){Ra(ws(n[e]),"_effect-".concat(e),r)})))})),f=za(p,3),m=f[0],g=f[1],h=f[2],function(e){var t,r;return t=i&&!d&&n?dv.createElement("style",la({},(_i(r={},SE,g),_i(r,CE,h),r),{dangerouslySetInnerHTML:{__html:m}})):dv.createElement(ks,null),dv.createElement(dv.Fragment,null,t,e)}}function Ss(e){var t=Array.isArray(e)?e:[e];return wD.has(t)||wD.set(t,new _D(t)),wD.get(t)}function Cs(e){return e.notSplit=!0,e}function Es(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Ds(e){var t,n;for(t=1;t1&&void 0!==t?t:{},r=[];return LJ.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Is(e)):ZC.isFragment(e)&&e.props?r=r.concat(Is(e.props.children,n)):r.push(e))})),r}function As(e,t){"function"==typeof e?e(t):"object"===yi(e)&&e&&"current"in e&&(e.current=t)}function Rs(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n3&&void 0!==r&&r;return t.length&&o&&void 0===n&&!Ks(e,t.slice(0,-1))?e:Ys(e,t,n,o)}function Js(e){return Array.isArray(e)?[]:{}}function Zs(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function il(e){return e<=1?"".concat(100*Number(e),"%"):e}function al(e){return 1===e.length?"0"+e:String(e)}function sl(e,t,n){var r,o,i,a,s,l;if(e=nl(e,255),t=nl(t,255),n=nl(n,255),i=0,a=0,s=((r=Math.max(e,t,n))+(o=Math.min(e,t,n)))/2,r===o)a=0,i=0;else{switch(l=r-o,a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cl(e,t,n){var r,o,i,a,s,l;if(e=nl(e,255),t=nl(t,255),n=nl(n,255),i=0,a=r=Math.max(e,t,n),s=r-(o=Math.min(e,t,n)),l=0===r?0:s/r,r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-uO*t:Math.round(e.h)+uO*t:n?Math.round(e.h)+uO*t:Math.round(e.h)-uO*t)<0?r+=360:r>=360&&(r-=360),r}function yl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-dO*t:t===hO?e.s+dO:e.s+pO*t)>1&&(r=1),n&&t===gO&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function vl(e,t,n){var r;return(r=n?e.v+fO*t:e.v-mO*t)>1&&(r=1),Number(r.toFixed(2))}function _l(e,t){var n,r,o,i,a,s,l=arguments.length>1&&void 0!==t?t:{},c=[],u=fl(e);for(n=gO;n>0;n-=1)o=hl(fl({h:bl(r=gl(u),n,!0),s:yl(r,n,!0),v:vl(r,n,!0)})),c.push(o);for(c.push(hl(u)),i=1;i<=hO;i+=1)s=hl(fl({h:bl(a=gl(u),i),s:yl(a,i),v:vl(a,i)})),c.push(s);return"dark"===l.theme?bO.map((function(e){var t,n,r,o=e.index,i=e.opacity;return hl((t=fl(l.backgroundColor||"#141414"),{r:((n=fl(c[o])).r-t.r)*(r=100*i/100)+t.r,g:(n.g-t.g)*r+t.g,b:(n.b-t.b)*r+t.b}))})):c}function wl(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(o),f=n(i),m=n(a),g=n(s),h=r(c,u),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},h),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new cO("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function kl(e){const t=Object.keys(NZ).map((t=>{const n=_l(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],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),wl(e,{generateColorPalettes:FZ,generateNeutralColorPalettes:MZ})),LZ(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)),PZ(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},IZ(r))}(e))}function xl(e){return e>=0&&e<=255}function Sl(e,t){const{r:n,g:r,b:o,a:i}=new cO(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new cO(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-s*(1-c))/c),i=Math.round((o-l*(1-c))/c);if(xl(e)&&xl(t)&&xl(i))return new cO({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new cO({r:n,g:r,b:o,a:1}).toRgbString()}function Cl(e){const{override:t}=e,n=kO(e,["override"]),r=Object.assign({},t);Object.keys(TZ).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Sl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Sl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Sl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Sl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\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 cO("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new cO("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new cO("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)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function El(){const{token:e,hashed:t,theme:n,components:r}=LJ.useContext(HZ),o=`${$Z}-${t||""}`,i=n||zZ,[a,s]=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:{},o=dv.useContext(hZ).cache.instanceId,i=r.salt,a=void 0===i?"":i,s=r.override,l=void 0===s?zE:s,c=r.formatToken,u=dv.useMemo((function(){return Object.assign.apply(Object,[{}].concat(ba(t)))}),[t]),d=dv.useMemo((function(){return Fa(u)}),[u]),p=dv.useMemo((function(){return Fa(l)}),[l]),f=Ba("token",[a,e.id,d,p],(function(){var t,n=WE(u,l,e,c),r=function(e,t){return _a("".concat(t,"_").concat(Fa(e)))}(n,a);return n._tokenKey=r,function(e){HE.set(e,(HE.get(e)||0)+1)}(r),t="".concat(BE,"-").concat(_a(r)),n._hashId=t,[n,t]}),(function(e){!function(e,t){var n,r;HE.set(e,(HE.get(e)||0)-1),r=(n=Array.from(HE.keys())).filter((function(e){return(HE.get(e)||0)<=0})),n.length-r.length>UE&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(SE,'="').concat(e,'"]')).forEach((function(e){var n;e[EE]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),HE.delete(e)}))}(e[0]._tokenKey,o)}));return f}(i,[TZ,e],{salt:o,override:Object.assign({override:e},r),formatToken:Cl});return[i,a,t?s:""]}function Dl(e){var t,n=dv.useRef();return n.current=e,t=dv.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ZZ=!0,r}function Nl(){}function Tl(e,t,n,r){return o=>{const[i,a,s]=El(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=dv.useContext(WZ),d=l(),p={theme:i,token:a,hashId:s,nonce:()=>null==u?void 0:u.nonce};return xs(Object.assign(Object.assign({},p),{path:["Shared",d]}),(()=>[{"&":XZ(a)}])),[xs(Object.assign(Object.assign({},p),{path:[e,o,c]}),(()=>{const{token:i,flush:l}=function(e){let t,n=e,r=Nl;return JZ&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(ZZ&&t.add(n),e[n])}),r=()=>{Array.from(t)}),{token:n,keys:t,flush:r}}(a),u=Object.assign({},a[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==u?void 0:u[t])||(null==u?void 0:u[n]))&&(null!==(r=u[n])&&void 0!==r||(u[n]=null==u?void 0:u[t]))}))}const p="function"==typeof n?n(Pl(i,null!=u?u:{})):n,f=Object.assign(Object.assign({},p),u),m=Pl(i,{componentCls:`.${o}`,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},f),g=t(m,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:u});return l(e,f),[!1===(null==r?void 0:r.resetStyle)?null:KZ(a,o),g]})),s]}}function Il(e,t){return jZ.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}function Al(e){var t=e.children,n=wi(e,xO);return dv.createElement(SO.Provider,{value:n},t)}function Rl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Fl(e){var t,n,r,o,i;if(LO[e])return LO[e];if(t=RO[e])for(r=(n=Object.keys(t)).length,o=0;o0&&void 0!==e?e:[]).map(zl)}function Hl(e){const{children:t}=e,[,n]=El(),{motion:r}=n,o=dv.useRef(!1);return o.current=o.current||!1===r,o.current?dv.createElement(Al,{motion:r},t):t}function Ul(){return u0||"ant"}function Wl(){return d0||UZ}function Vl(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Gl(e){return function(e){return Vl(e)!==(null==e?void 0:e.ownerDocument)}(e)?Vl(e):null}function ql(e){return"object"===yi(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===yi(e.icon)||"function"==typeof e.icon)}function Xl(e){var t=arguments.length>0&&void 0!==e?e:{};return Object.keys(t).reduce((function(e,n){var r=t[n];return"class"===n?(e.className=r,delete e.class):e[n]=r,e}),{})}function Kl(e,t,n){return LJ.createElement(e.tag,n?va(va({key:t},Xl(e.attrs)),n):va({key:t},Xl(e.attrs)),(e.children||[]).map((function(n,r){return Kl(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Yl(e){return _l(e)[0]}function Ql(e){return e?Array.isArray(e)?e:[e]:[]}function Jl(e){var t=za(Ql(e),2);return b0.setTwoToneColors({primaryColor:t[0],secondaryColor:t[1]})}function Zl(e,t){return 0===e.indexOf(t)}function ec(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t;return n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:va({},o),r={},Object.keys(e).forEach((function(t){(n.aria&&("role"===t||Zl(t,cj))||n.data&&Zl(t,uj)||n.attr&&lj.includes(t))&&(r[t]=e[t])})),r}function tc(e){return e&&O0(e)&&e.type===dv.Fragment}function nc(e,t){return function(e,t,n){return O0(e)?dv.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function rc(e){var t=arguments.length>0&&void 0!==e?e:{},n=t.getContainer,r=void 0===n?gj:n,o=t.motion,i=t.prefixCls,a=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,u=wi(t,mj),d=za(dv.useState(),2),p=d[0],f=d[1],m=dv.useRef(),g=dv.createElement(fj,{container:p,ref:m,prefixCls:i,motion:o,maxCount:a,className:s,style:l,onAllRemoved:c}),h=za(dv.useState([]),2),b=h[0],y=h[1],v=dv.useMemo((function(){return{open:function(e){var t=function(){var e,t,n,r={};for(e=arguments.length,t=new Array(e),n=0;n{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function ic(e){const t=dv.useRef(null);return[dv.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:r,prefixCls:o,hashId:i,message:a}=t.current,s=`${o}-notice`,{content:l,icon:c,type:u,key:d,className:p,style:f,onClose:m}=n,g=yj(n,["content","icon","type","key","className","style","onClose"]);let h=d;return null==h&&(W0+=1,h=`antd-message-${W0}`),oc((t=>(r(Object.assign(Object.assign({},g),{key:h,content:dv.createElement(B0,{prefixCls:o,type:u,icon:c},l),placement:"top",className:yZ(u&&`${s}-${u}`,i,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),f),onClose:()=>{null==m||m(),t()}})),()=>{e(h)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let i,a,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}})),r}),[]),dv.createElement(U0,Object.assign({key:"message-holder"},e,{ref:t}))]}function ac(e){return ic(e)}function sc(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,o){var i=Object.create((t&&t.prototype instanceof r?t:r).prototype),a=new p(o||[]);return y(i,"_invoke",{value:l(e,n,a)}),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function r(){}function o(){}function i(){}function a(t){["next","throw","return"].forEach((function(n){e(t,n,(function(e){return this._invoke(n,e)}))}))}function s(e,t){function r(o,i,a,s){var l,c,u=n(e[o],e,i);if("throw"!==u.type)return(c=(l=u.arg).value)&&"object"==yi(c)&&b.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}));s(u.arg)}var o;y(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function l(e,t,r){var o="suspendedStart";return function(i,a){var s,l,u;if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw a;return{value:void 0,done:!0}}for(r.method=i,r.arg=a;;){if((s=r.delegate)&&(l=c(s,r))){if(l===x)continue;return l}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(o="executing","normal"===(u=n(e,t,r)).type){if(o=r.done?"completed":"suspendedYield",u.arg===x)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o="completed",r.method="throw",r.arg=u.arg)}}}function c(e,t){var r,o,i=t.method,a=e.iterator[i];return void 0===a?(t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=void 0,c(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),x):"throw"===(r=n(a,e.iterator,t.arg)).type?(t.method="throw",t.arg=r.arg,t.delegate=null,x):(o=r.arg)?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,x):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,x)}function u(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 d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){var t,n,r;if(e){if(t=e[_])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(i=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(a=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc"),a&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),x},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,d(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),x}},g}function lc(e,t,n,r,o,i,a){var s,l;try{l=(s=e[i](a)).value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function cc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){lc(s,r,o,i,a,"next",e)}function a(e){lc(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}function uc(e){var t=vj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===yi(t)&&(t.usingClientEntryPoint=e)}function dc(e,t){xj?function(e,t){uc(!0);var n=t[Sj]||xj(t);uc(!1),n.render(e),t[Sj]=n}(e,t):function(e,t){wj(e,t)}(e,t)}function pc(e){return fc.apply(this,arguments)}function fc(){return(fc=cc(sc().mark((function e(t){return sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Sj])||void 0===e||e.unmount(),delete t[Sj]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mc(e){kj(e)}function gc(e){return hc.apply(this,arguments)}function hc(){return(hc=cc(sc().mark((function e(t){return sc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===xj){e.next=2;break}return e.abrupt("return",pc(t));case 2:mc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function yc(e){return Number.isNaN(e)?0:e}function vc(e){return"text"===e||"link"===e}function _c(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function wc(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function kc(e,t){let n=arguments.length>1&&void 0!==t?t:{focus:!0};const{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},_c(e,o,n)),wc(r,o,n))}}function xc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Sc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},xc(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}function Cc(e){return"danger"===e?{danger:!0}:{type:e}}function Ec(e){return!(!e||!e.then)}function Dc(e){var t,n,r,o,i,a=e.match(/^(.*)px$/),s=Number(null==a?void 0:a[1]);return Number.isNaN(s)?"undefined"==typeof document?0:(void 0===$j&&((t=document.createElement("div")).style.width="100%",t.style.height="200px",(r=(n=document.createElement("div")).style).position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n),o=t.offsetWidth,n.style.overflow="scroll",o===(i=t.offsetWidth)&&(i=n.clientWidth),document.body.removeChild(n),$j=o-i),$j):s}function Oc(e){var t=za(dv.useState("ssr-id"),2),n=t[0],r=t[1],o=va({},zJ).useId,i=null==o?void 0:o();return dv.useEffect((function(){if(!o){var e=Aj;Aj+=1,r("rc_unique_".concat(e))}}),[]),e||i||n}function jc(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function $c(e,t){var n,r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");return"number"!=typeof r&&"number"!=typeof(r=(n=e.document).documentElement[o])&&(r=n.body[o]),r}function Pc(e){var t=e.prefixCls,n=e.style,r=e.maskProps;return dv.createElement(s0,{key:"mask",visible:e.visible,motionName:e.motionName,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var i=e.className;return dv.createElement("div",la({ref:o,style:va(va({},e.style),n),className:yZ("".concat(t,"-mask"),i)},r))}))}function Nc(e){function t(e){null==m||m(e)}var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,m=e.onClose,g=e.afterOpenChange,h=e.afterClose,b=e.transitionName,y=e.animation,v=e.closable,_=void 0===v||v,w=e.mask,k=void 0===w||w,x=e.maskTransitionName,S=e.maskAnimation,C=e.maskClosable,E=void 0===C||C,D=e.maskStyle,O=e.maskProps,j=e.rootClassName,$=dv.useRef(),P=dv.useRef(),N=dv.useRef(),T=za(dv.useState(a),2),I=T[0],A=T[1],R=Oc(),F=dv.useRef(!1),M=dv.useRef(),L=null;return E&&(L=function(e){F.current?F.current=!1:P.current===e.target&&t(e)}),dv.useEffect((function(){a&&(A(!0),ja(P.current,document.activeElement)||($.current=document.activeElement))}),[a]),dv.useEffect((function(){return function(){clearTimeout(M.current)}}),[]),dv.createElement("div",la({className:yZ("".concat(r,"-root"),j)},ec(e,{data:!0})),dv.createElement(Pc,{prefixCls:r,visible:k&&a,motionName:jc(r,x,S),style:va({zIndex:o},D),maskProps:O}),dv.createElement("div",la({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===dj.ESC)return e.stopPropagation(),void t(e);a&&e.keyCode===dj.TAB&&N.current.changeActive(!e.shiftKey)},className:yZ("".concat(r,"-wrap"),p),ref:P,onClick:L,style:va(va({zIndex:o},d),{},{display:I?null:"none"})},f),dv.createElement(Mj,la({},e,{onMouseDown:function(){clearTimeout(M.current),F.current=!0},onMouseUp:function(){M.current=setTimeout((function(){F.current=!1}))},ref:N,closable:_,ariaId:R,prefixCls:r,visible:a&&I,onClose:t,onVisibleChanged:function(e){if(e)ja(P.current,document.activeElement)||null===(t=N.current)||void 0===t||t.focus();else{if(A(!1),k&&$.current&&u){try{$.current.focus({preventScroll:!0})}catch(HQ){}$.current=null}I&&(null==h||h())}var t;null==g||g(e)},motionName:jc(r,b,y)}))))}function Tc(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:LJ.createElement(x0,null);const a=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==o&&o);if(!a)return[!1,null];const s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}function Ic(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function Hc(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}(t)||"string"!=typeof e||e)}function Uc(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s=i||n<0||n>=i?e:(r=e[t],(o=t-n)>0?[].concat(ba(e.slice(0,n)),[r],ba(e.slice(n,t)),ba(e.slice(t+1,i))):o<0?[].concat(ba(e.slice(0,t)),ba(e.slice(t+1,n+1)),[r],ba(e.slice(n+1,i))):e)}function iu(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}function au(e){var t=e.name,n=wi(e,u$),r=dv.useContext(Hj),o=dv.useContext(Uj),i=void 0!==t?Zc(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),dv.createElement(p$,la({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function su(e){return e.map((function(e){return"".concat(yi(e),":").concat(e)})).join(m$)}function lu(e){var t,n=dv.useRef(),r=za(dv.useState({}),2)[1];return n.current||(e?n.current=e:(t=new b$((function(){r({})})),n.current=t.getForm())),[n.current]}function cu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function uu(){var e,t,n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y;for(e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat(ba(n.slice(1))));for(let e=0;e{const e=tl(),{getPrefixCls:i,getIconPrefixCls:l,getTheme:c}=f0(),u=i(void 0,v5),d=r||`${u}-modal`,p=l(),f=c();let m=a;!1===m&&(m=void 0),dc(dv.createElement(b5,Object.assign({},s,{getContainer:m,prefixCls:d,rootPrefixCls:u,iconPrefixCls:p,okText:t,locale:e,theme:f,cancelText:n||e.cancelText})),o)}))}function r(){for(var r=arguments.length,o=new Array(r),i=0;i{"function"==typeof e.afterClose&&e.afterClose(),t.apply(this,o)}}),a.visible&&delete a.visible,n(a)}const o=document.createDocumentFragment();let i,a=Object.assign(Object.assign({},e),{close:r,open:!0});return n(a),y5.push(r),{destroy:r,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),n(a)}}}function gu(e){return Object.assign(Object.assign({},e),{type:"warning"})}function hu(e){return Object.assign(Object.assign({},e),{type:"info"})}function bu(e){return Object.assign(Object.assign({},e),{type:"success"})}function yu(e){return Object.assign(Object.assign({},e),{type:"error"})}function vu(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function _u(){const e=dv.useRef(null),[t,n]=dv.useState([]);dv.useEffect((()=>{t.length&&(ba(t).forEach((e=>{e()})),n([]))}),[t]);const r=dv.useCallback((t=>function(r){var o;k5+=1;const i=dv.createRef();let a;const s=dv.createElement(w5,{key:`modal-${k5}`,config:t(r),ref:i,afterClose:()=>{null==a||a()}});return a=null===(o=e.current)||void 0===o?void 0:o.patchElement(s),a&&y5.push(a),{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(ba(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(ba(e),[t])))}}}),[]);return[dv.useMemo((()=>({info:r(hu),success:r(bu),error:r(yu),warning:r(gu),confirm:r(vu)})),[]),dv.createElement(x5,{key:"modal-holder",ref:e})]}function wu(e,t){return null===t||!1===t?null:t||dv.createElement("span",{className:`${e}-close-x`},dv.createElement(x0,{className:`${e}-close-icon`}))}function ku(e){const t=dv.useRef(null);return[dv.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,hashId:a,notification:s}=t.current,l=`${i}-notice`,{message:c,description:u,icon:d,type:p,btn:f,className:m,style:g,role:h="alert",closeIcon:b}=n,y=E$(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=wu(l,b);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:j5},y),{content:dv.createElement(O5,{prefixCls:l,icon:d,type:p,message:c,description:u,btn:f,role:h}),className:yZ(p&&`${l}-${p}`,a,m,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),g),closeIcon:v,closable:!!v}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),dv.createElement($5,Object.assign({key:"notification-holder"},e,{ref:t}))]}function xu(e){return ku(e)}function Su(e){var t=arguments.length>0&&void 0!==e?e:250,n=dv.useRef(null),r=dv.useRef(null);return dv.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}function Cu(e,t){function n(e){f(m,e)}var r,o,i,a,s=e.prefixCls,l=e.invalidate,c=e.item,u=e.renderItem,d=e.responsive,p=e.responsiveDisabled,f=e.registerSize,m=e.itemKey,g=e.className,h=e.style,b=e.children,y=e.display,v=e.order,_=e.component,w=void 0===_?"div":_,k=wi(e,O$),x=d&&!y;return dv.useEffect((function(){return function(){n(null)}}),[]),r=u&&c!==j$?u(c):b,l||(o={opacity:x?0:1,height:x?0:j$,overflowY:x?"hidden":j$,order:d?v:j$,pointerEvents:x?"none":j$,position:x?"absolute":j$}),i={},x&&(i["aria-hidden"]=!0),a=dv.createElement(w,la({className:yZ(!l&&s,g),style:va(va({},o),h)},i,k,{ref:t}),r),d&&(a=dv.createElement(QD,{onResize:function(e){n(e.offsetWidth)},disabled:p},a)),a}function Eu(e,t){var n=za(dv.useState(t),2),r=n[1];return[n[0],Dl((function(t){e((function(){r(t)}))}))]}function Du(e){return"+ ".concat(e.length," ...")}function Ou(e,t){function n(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(le(eE,ge=dv.useMemo((function(){var e=b;return pe?e=null===M&&A?b:b.slice(0,Math.min(b.length,z/k)):"number"==typeof E&&(e=b.slice(0,E)),e}),[b,k,M,E,pe]),he=dv.useMemo((function(){return b.slice(pe?ie+1:ge.length)}),[b,ge,pe,ie]),be=dv.useCallback((function(e,t){var n;return"function"==typeof _?_(e):null!==(n=_&&(null==e?void 0:e[_]))&&void 0!==n?n:t}),[_]),ye=dv.useCallback(y||function(e){return e},[y]);return RE((function(){var e,t,r,i,a;if(z&&"number"==typeof ue&&ge){if(e=Q,r=(t=ge.length)-1,!t)return void n(0,null);for(i=0;iz){n(i-1,e-a-Q+X);break}}j&&o(0)+Q>z&&te(null)}}),[z,H,X,Q,be,ge]),a={},null!==ee&&pe&&(a={position:"absolute",left:ee,top:0}),s={prefixCls:ce,responsive:pe,component:N,invalidate:fe},l=v?function(e,t){var n=be(e,t);return dv.createElement(P$.Provider,{key:n,value:va(va({},s),{},{order:t,item:e,itemKey:n,registerSize:r,display:t<=ie})},v(e,t))}:function(e,t){var n=be(e,t);return dv.createElement($$,la({},s,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:r,display:t<=ie}))},u={order:(i=se&&!!he.length)?ie:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){K(t),G(X)},display:i},O?O&&(c=dv.createElement(P$.Provider,{value:va(va({},s),u)},O(he))):(d=D||Du,c=dv.createElement($$,la({},s,u),"function"==typeof d?d(he):d)),p=dv.createElement(P,la({className:yZ(!fe&&g,C),style:S,ref:t},I),ge.map(l),me?c:null,j&&dv.createElement($$,la({},s,{responsive:de,responsiveDisabled:!pe,order:ie,className:"".concat(ce,"-suffix"),registerSize:function(e,t){J(t)},display:!0,style:a}),j)),de&&(p=dv.createElement(QD,{onResize:function(e,t){L(t.clientWidth)},disabled:!pe},p)),p}function ju(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function $u(e){return["string","number"].includes(yi(e))}function Pu(e){var t=void 0;return e&&($u(e.title)?t=e.title.toString():$u(e.label)&&(t=e.label.toString())),t}function Nu(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}function Tu(e){return e?Array.isArray(e)?e:[e]:[]}function Iu(e,t,n){var r=arguments.length>0&&void 0!==e?e:[],o=arguments.length>1&&void 0!==t?t:[];return(arguments.length>2?n:void 0)?r[0]===o[0]:r[0]===o[0]&&r[1]===o[1]}function Au(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ru(e){return e.ownerDocument.defaultView}function Fu(e){for(var t,n=[],r=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];r;)[(t=Ru(r).getComputedStyle(r)).overflowX,t.overflowY,t.overflow].some((function(e){return o.includes(e)}))&&n.push(r),r=r.parentElement;return n}function Mu(e,t){var n=arguments.length>1&&void 0!==t?t:1;return Number.isNaN(e)?n:e}function Lu(e){return Mu(parseFloat(e),0)}function zu(e,t){var n=va({},e);return(t||[]).forEach((function(e){var t,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N;e instanceof HTMLBodyElement||(r=(t=Ru(e).getComputedStyle(e)).overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=Lu(i),g=Lu(a),_=(p-f-(h=Lu(s))-(b=Lu(l)))*(y=Mu(Math.round(c.width/p*1e3)/1e3)),w=(u-d-m-g)*(v=Mu(Math.round(c.height/u*1e3)/1e3)),k=m*v,x=g*v,S=h*y,C=b*y,E=0,D=0,"clip"===r&&(E=(O=Lu(o))*y,D=O*v),P=(j=c.x+S-E)+c.width+2*E-S-C-_,N=($=c.y+k-D)+c.height+2*D-k-x-w,n.left=Math.max(n.left,j),n.top=Math.max(n.top,$),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,N))})),n}function Bu(e,t){var n="".concat(arguments.length>1&&void 0!==t?t:0),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Hu(e,t){var n=za(t||[],2),r=n[1];return[Bu(e.width,n[0]),Bu(e.height,r)]}function Uu(e){var t=arguments.length>0&&void 0!==e?e:"";return[t[0],t[1]]}function Wu(e,t){var n=t[0],r=t[1];return{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:"t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2}}function Vu(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function Gu(e){var t,n,r,o,i,a,s=e.prefixCls,l=e.align,c=e.arrowPos,u=e.arrow||{},d=u.className,p=u.content,f=c.x,m=void 0===f?0:f,g=c.y,h=void 0===g?0:g,b=dv.useRef();return l&&l.points?(t={position:"absolute"},!1!==l.autoArrow&&(i=(n=l.points[0])[1],a=(r=l.points[1])[1],(o=n[0])!==r[0]&&["t","b"].includes(o)?"t"===o?t.top=0:t.bottom=0:t.top=h,i!==a&&["l","r"].includes(i)?"l"===i?t.left=0:t.right=0:t.left=m),dv.createElement("div",{ref:b,className:yZ("".concat(s,"-arrow"),d),style:t},p)):null}function qu(e){var t=e.prefixCls,n=e.zIndex;return e.mask?dv.createElement(s0,la({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),(function(e){var r=e.className;return dv.createElement("div",{style:{zIndex:n},className:yZ("".concat(t,"-mask"),r)})})):null}function Xu(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Ku(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function Yu(e){var t=va({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ca(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function Qu(e){return"tags"===e||"multiple"===e}function Ju(e,t){var n=arguments.length>1&&void 0!==t&&t;return Is(e).map((function(e,t){if(!dv.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,s=wi(i,dP);return n||!r?function(e){var t=e.key,n=e.props,r=n.value;return va({key:t,value:void 0!==r?r:t,children:n.children},wi(n,uP))}(e):va(va({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},s),{},{options:Ju(a)})})).filter((function(e){return e}))}function Zu(e){var t,n=dv.useRef();return n.current=e,t=dv.useCallback((function(){return n.current.apply(n,arguments)}),[]),t}function ed(e){return"touches"in e?e.touches[0].pageY:e.pageY}function td(e){var t=e.children,n=e.setRef,r=dv.useCallback((function(e){n(e)}),[]);return dv.cloneElement(t,{ref:r})}function nd(e,t){function n(e){X((function(t){var n;return n=function(e){var t=e;return Number.isNaN(m.current)||(t=Math.min(t,m.current)),Math.max(t,0)}("function"==typeof e?e(t):e),ee.current.scrollTop=n,n}))}var r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C=e.prefixCls,E=void 0===C?"rc-virtual-list":C,D=e.className,O=e.height,j=e.itemHeight,$=e.fullHeight,P=void 0===$||$,N=e.style,T=e.data,I=e.children,A=e.itemKey,R=e.virtual,F=e.direction,M=e.component,L=void 0===M?"div":M,z=e.onScroll,B=e.onVisibleChange,H=e.innerProps,U=wi(e,vP),W=!(!1===R||!O||!j),V=W&&T&&j*T.length>O,G=za(dv.useState(0),2),q=G[0],X=G[1],K=za(dv.useState(!1),2),Y=K[0],Q=K[1],J=yZ(E,_i({},"".concat(E,"-rtl"),"rtl"===F),D),Z=T||_P,ee=dv.useRef(),te=dv.useRef(),ne=dv.useRef(),re=dv.useCallback((function(e){return"function"==typeof A?A(e):null==e?void 0:e[A]}),[A]),oe={getKey:re},ie=dv.useRef({start:0,end:Z.length}),ae=dv.useRef(),se=function(e,t){var n=za(dv.useState(e),2),r=n[0],o=n[1],i=za(dv.useState(null),2),a=i[0],s=i[1];return dv.useEffect((function(){var n=function(e,t,n){function r(e){return void 0!==e?n(e):a}var o,i,a,s,l,c,u,d=e.length,p=t.length;if(0===d&&0===p)return null;for(d=q&&void 0===n&&(n=a,r=t),u>q+O&&void 0===o&&(o=a),t=u;return void 0===n&&(n=0,r=0,o=Math.ceil(O/j)),void 0===o&&(o=Z.length-1),{scrollHeight:t,start:n,end:o=Math.min(o+1,Z.length),offset:r}}),[V,W,q,Z,o[3],O])).scrollHeight,d=l.end,p=l.offset,ie.current.start=u=l.start,ie.current.end=d,(m=dv.useRef(f=c-O)).current=f,b=L5(g=q<=0,h=q>=f),y=function(e,t,r){var o=dv.useRef(0),i=dv.useRef(null),a=dv.useRef(null),s=dv.useRef(!1),l=L5(t,r);return[function(t){if(e){nO.cancel(i.current);var r=t.deltaY;o.current+=r,a.current=r,l(r)||(bP||t.preventDefault(),i.current=nO((function(){var e;e=o.current*(s.current?10:1),n((function(t){return t+e})),o.current=0})))}},function(t){e&&(s.current=t.detail===a.current)}]}(W,g,h),v=za(y,2),_=v[0],w=v[1],function(e,t,n){var r=dv.useRef(!1),o=dv.useRef(0),i=dv.useRef(null),a=dv.useRef(null),s=function(e){var t,i;r.current&&(t=Math.ceil(e.touches[0].pageY),i=o.current-t,o.current=t,n(i)&&e.preventDefault(),clearInterval(a.current),a.current=setInterval((function(){(!n(i*=yP,!0)||Math.abs(i)<=.1)&&clearInterval(a.current)}),16))},l=function(){r.current=!1,u()},c=function(e){u(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",l))},u=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",l))};RE((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),u(),clearInterval(a.current)}}),[e])}(W,ee,(function(e,t){return!b(e,t)&&(_({preventDefault:function(){},deltaY:e}),!0)})),RE((function(){function e(e){W&&e.preventDefault()}return ee.current.addEventListener("wheel",_),ee.current.addEventListener("DOMMouseScroll",w),ee.current.addEventListener("MozMousePixelScroll",e),function(){ee.current&&(ee.current.removeEventListener("wheel",_),ee.current.removeEventListener("DOMMouseScroll",w),ee.current.removeEventListener("MozMousePixelScroll",e))}}),[W]),k=function(e,t,n,r,o,i,a){var s=dv.useRef();return function(l){var c,u,d,p,f;null!=l?(nO.cancel(s.current),"number"==typeof l?a(l):l&&"object"===yi(l)&&(u=l.align,c="index"in l?l.index:t.findIndex((function(e){return o(e)===l.key})),p=void 0===(d=l.offset)?0:d,function l(d,f){var m,g,h,b,y,v,_,w,k,x,S,C,E;if(!(d<0)&&e.current){if(g=!1,h=f,m=e.current.clientHeight){for(b=f||u,y=0,v=0,_=0,w=Math.min(t.length,c),k=0;k<=w;k+=1)x=o(t[k]),y=_=(v=y)+(void 0===(S=n.get(x))?r:S),k===c&&void 0===S&&(g=!0);switch(C=null,b){case"top":C=v-p;break;case"bottom":C=_-m+p;break;default:v<(E=e.current.scrollTop)?h="top":_>E+m&&(h="bottom")}null!==C&&C!==e.current.scrollTop&&a(C)}s.current=nO((function(){g&&i(),l(d-1,h)}),2)}}(3))):null===(f=ne.current)||void 0===f||f.delayHidden()}}(ee,Z,s,j,re,a,n),dv.useImperativeHandle(t,(function(){return{scrollTo:k}})),RE((function(){if(B){var e=Z.slice(u,d+1);B(e,Z)}}),[u,d,Z]),x=function(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=o(e,t+n,{}),s=a(e);return dv.createElement(td,{key:s,setRef:function(t){return r(e,t)}},i)}))}(Z,u,d,i,I,oe),S=null,O&&(S=va(_i({},P?"height":"maxHeight",O),wP),W&&(S.overflowY="hidden",Y&&(S.pointerEvents="none"))),dv.createElement("div",la({style:va(va({},N),{},{position:"relative"}),className:J},U),dv.createElement(L,{className:"".concat(E,"-holder"),style:S,ref:ee,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==q&&n(t),null==z||z(e)}},dv.createElement(mP,{prefixCls:E,height:c,offset:p,onInnerResize:a,ref:te,innerProps:H},x)),W&&dv.createElement(gP,{ref:ne,prefixCls:E,scrollTop:q,height:O,scrollHeight:c,count:Z.length,direction:F,onScroll:function(e){n(e)},onStartMove:function(){Q(!0)},onStopMove:function(){Q(!1)}}))}function rd(e){return"string"==typeof e||"number"==typeof e}function od(e,t,n){return yZ({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}function id(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=J5(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,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:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,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.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function ad(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},qZ(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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 ${r}px`,"&:after":{display:"none"}}}}}}}function sd(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[ad(e),ad(Pl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},ad(Pl(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function ld(){const[,e]=El(),t=p4(f4(e));return LJ.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=this.matchHandlers[t[e]];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function cd(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return dv.createElement("div",{className:yZ("".concat(n,"-content"),i),style:a},dv.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function ud(e){const t=g4,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function dd(e,t){return e?t:{}}function pd(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=ud({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},VZ(r,o,i,s,a)),{"&:before":{background:s}})]},dd(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),dd(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),dd(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p}})),dd(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p}}))}}function fd(e,t){return arguments.length>1&&void 0!==t&&!t?jZ.includes(e):[].concat(ba(E4),ba(jZ)).includes(e)}function md(e,t){const n=fd(t),r=yZ({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function gd(e,t){var n,r,o,i,a,s,l,c,u,d=e.arrow,p=void 0!==d&&d,f=e.prefixCls,m=void 0===f?"rc-dropdown":f,g=e.transitionName,h=e.animation,b=e.align,y=e.placement,v=void 0===y?"bottomLeft":y,_=e.placements,w=void 0===_?VP:_,k=e.getPopupContainer,x=e.showAction,S=e.hideAction,C=e.overlayClassName,E=e.overlayStyle,D=e.visible,O=e.trigger,j=void 0===O?["hover"]:O,$=e.autoFocus,P=e.overlay,N=e.children,T=e.onVisibleChange,I=wi(e,GP),A=za(LJ.useState(),2),R=A[1],F="visible"in e?D:A[0],M=LJ.useRef(null),L=LJ.useRef(null),z=LJ.useRef(null);return LJ.useImperativeHandle(t,(function(){return M.current})),function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=dv.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=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 zP:s();break;case BP:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};dv.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&nO(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:F,triggerRef:z,onVisibleChange:r=function(e){R(e),null==T||T(e)},autoFocus:$,overlayRef:L}),o=function(t){var n=e.onOverlayClick;R(!1),n&&n(t)},i=function(){return LJ.createElement(HP,{ref:L,overlay:P,prefixCls:m,arrow:p})},a=function(){return"function"==typeof P?i:i()},s=function(){return"minOverlayWidthMatchTrigger"in e?e.minOverlayWidthMatchTrigger:!e.alignPoint},l=LJ.cloneElement(N,{className:yZ(null===(n=N.props)||void 0===n?void 0:n.className,F&&(u=e.openClassName,void 0!==u?u:"".concat(m,"-open"))),ref:Ms(N)?Rs(z,N.ref):void 0}),(c=S)||-1===j.indexOf("contextMenu")||(c=["click"]),LJ.createElement(M5,la({builtinPlacements:w},I,{prefixCls:m,ref:M,popupClassName:yZ(C,_i({},"".concat(m,"-show-arrow"),p)),popupStyle:E,action:j,showAction:x,hideAction:c,popupPlacement:v,popupAlign:b,popupTransitionName:g,popupAnimation:h,popupVisible:F,stretch:s()?"minWidth":"",popup:a(),onPopupVisibleChange:r,onPopupClick:o,getPopupContainer:k}),l)}function hd(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function bd(e){return hd(dv.useContext(qP),e)}function yd(e){var t=e.children,n=e.locked,r=wi(e,XP),o=dv.useContext(KP),i=wa((function(){return e=r,t=va({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Ea(e[1],t[1],!0))}));return dv.createElement(KP.Provider,{value:i},t)}function vd(){return dv.useContext(QP)}function _d(e){var t=dv.useContext(JP);return dv.useMemo((function(){return void 0!==e?[].concat(ba(t),[e]):t}),[t,e])}function wd(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t;return!!V0(e)&&(n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null,o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||s&&a<0))}function kd(e,t){var n=function(e,t){var n=arguments.length>1&&void 0!==t&&t,r=ba(e.querySelectorAll("*")).filter((function(e){return wd(e,n)}));return wd(e,n)&&r.unshift(e),r}(e,!0);return n.filter((function(e){return t.has(e)}))}function xd(e,t,n,r){var o,i,a,s=arguments.length>3&&void 0!==r?r:1;return e?(i=(o=kd(e,t)).length,a=o.findIndex((function(e){return n===e})),s<0?-1===a?a=i-1:a-=1:s>0&&(a+=1),o[a=(a+i)%i]):null}function Sd(e){var t,n=dv.useRef(e);return n.current=e,t=dv.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o1&&(i.motionAppear=!1),a=i.onVisibleChanged,i.onVisibleChanged=function(e){return y.current||e||r(!0),null==a?void 0:a(e)},n?null:dv.createElement(yd,{mode:d,locked:!y.current},dv.createElement(s0,la({visible:o},i,{forceRender:m,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){return dv.createElement(SN,{id:s,className:e.className,style:e.style},u)})))}function Id(e){var t=e.eventKey,n=e.children,r=_d(t),o=$d(n,r),i=vd();return dv.useEffect((function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}}),[r]),dv.createElement(JP.Provider,{value:r},i?o:dv.createElement(PN,e,o))}function Ad(e){var t=e.children,n=wi(e,TN),r=$d(t,_d(n.eventKey));return vd()?r:dv.createElement(IN,Gs(n,["warnKey"]),r)}function Rd(e){var t=e.className,n=e.style,r=dv.useContext(KP).prefixCls;return vd()?null:dv.createElement("li",{className:yZ("".concat(r,"-item-divider"),t),style:n})}function Fd(e){return(e||[]).map((function(e,t){var n,r,o,i,a,s,l;return e&&"object"===yi(e)?(r=(n=e).label,o=n.children,i=n.key,a=n.type,s=wi(n,AN),l=null!=i?i:"tmp-".concat(t),o||"group"===a?dv.createElement("group"===a?Ad:Id,la({key:l},s,{title:r}),Fd(o)):"divider"===a?dv.createElement(Rd,la({key:l},s)):dv.createElement(N4,la({key:l},s),r)):null})).filter((function(e){return e}))}function Md(e,t,n){var r=e;return t&&(r=Fd(t)),$d(r,n)}function Ld(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,s=zN(n,["label","children","key","type"]),l=null!=i?i:`tmp-${t}`;return o||"group"===a?dv.createElement("group"===a?Ad:F4,Object.assign({key:l},s,{title:r}),Ld(o)):"divider"===a?dv.createElement(I4,Object.assign({key:l},s)):dv.createElement(R4,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function zd(e){return dv.useMemo((()=>e?Ld(e):e),[e])}function Bd(e){return Pl(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}function Hd(e){return e&&"object"==typeof e?e:{}}function Ud(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=dv.useContext(N3),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return dv.createElement("div",{className:yZ("".concat(s,"-content-holder"))},dv.createElement("div",{className:yZ("".concat(s,"-content"),"".concat(s,"-content-").concat(o),_i({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,a=e.forceRender,s=e.style,l=e.className,d=wi(e,UN),p=o===n;return dv.createElement(s0,la({key:o,visible:p,forceRender:a,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return dv.createElement(HN,la({},d,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:va(va({},s),r),className:yZ(l,i),ref:n}))}))}))))}function Wd(e,t){var n=dv.useRef(e),r=za(dv.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}function Vd(e){var t=za(dv.useState(0),2),n=t[0],r=t[1],o=dv.useRef(0),i=dv.useRef();return i.current=e,FE((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function Gd(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function qd(e){return String(e).replace(/"/g,YN)}function Xd(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function Kd(e,t){var n=e.editable,r=e.locale,o=e.style;return n&&!1!==n.showAdd?dv.createElement("button",{ref:t,type:"button",className:"".concat(e.prefixCls,"-nav-add"),style:o,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},n.addIcon||"+"):null}function Yd(e,t){function n(e){var t,n,r=l.filter((function(e){return!e.disabled})),o=r.findIndex((function(e){return e.key===D}))||0,i=r.length;for(t=0;tze?ze:e}function r(){u(Date.now())}function o(){window.clearTimeout(s.current)}function i(){nO.cancel(D.current)}var a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L=dv.useContext(N3),z=L.prefixCls,B=L.tabs,H=e.className,U=e.style,W=e.id,V=e.animated,G=e.activeKey,q=e.rtl,X=e.extra,K=e.editable,Y=e.locale,Q=e.tabPosition,J=e.tabBarGutter,Z=e.children,ee=e.onTabClick,te=e.onTabScroll,ne=dv.useRef(),re=dv.useRef(),oe=dv.useRef(),ie=dv.useRef(),ae=dv.useRef(),se=dv.useRef(),le=dv.useRef(),ce="top"===Q||"bottom"===Q,ue=za(Wd(0,(function(e,t){ce&&te&&te({direction:e>t?"left":"right"})})),2),de=ue[0],pe=ue[1],fe=za(Wd(0,(function(e,t){!ce&&te&&te({direction:e>t?"top":"bottom"})})),2),me=fe[0],ge=fe[1],he=za(dv.useState([0,0]),2),be=he[0],ye=he[1],ve=za(dv.useState([0,0]),2),_e=ve[0],we=ve[1],ke=za(dv.useState([0,0]),2),xe=ke[0],Se=ke[1],Ce=za(dv.useState([0,0]),2),Ee=Ce[0],De=Ce[1],Oe=(I=new Map,A=dv.useRef([]),R=za(dv.useState({}),2)[1],F=dv.useRef("function"==typeof I?I():I),M=Vd((function(){var e=F.current;A.current.forEach((function(t){e=t(e)})),A.current=[],F.current=e,R({})})),[F.current,function(e){A.current.push(e),M()}]),je=za(Oe,2),$e=je[1],Pe=function(e,t,n){return dv.useMemo((function(){var n,r,o,i,a,s,l=new Map,c=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||WN,u=c.left+c.width;for(r=0;ra?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},dv.useEffect((function(){function t(e){h.current.onTouchMove(e)}function n(e){h.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){h.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){h.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(ie,(function(e,t){function i(e,t){e((function(e){return n(e+t)}))}return!!Re&&(ce?i(pe,e):i(ge,t),o(),r(),!0)})),dv.useEffect((function(){return o(),c&&(s.current=window.setTimeout((function(){u(0)}),100)),o}),[c]),d=function(e,t,n,r,o,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(s="width",l=p?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),dv.useMemo((function(){var n,r,o,i,a,d;if(!u.length)return[0,0];for(r=n=u.length,o=0;oc+t){r=o-1;break}for(a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||KN)[l]=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),p])}(Pe,Fe,ce?de:me,Te,Ie,Ae,va(va({},e),{},{tabs:B})),f=(p=za(d,2))[0],m=p[1],g=Dl((function(e){var t,r,o=Pe.get(arguments.length>0&&void 0!==e?e:G)||{width:0,height:0,left:0,right:0,top:0};ce?(t=de,q?o.rightde+Fe&&(t=o.right+o.width-Fe):o.left<-de?t=-o.left:o.left+o.width>-de+Fe&&(t=-(o.left+o.width-Fe)),ge(0),pe(n(t))):(r=me,o.top<-me?r=-o.top:o.top+o.height>-me+Fe&&(r=-(o.top+o.height-Fe)),pe(0),ge(n(r)))})),h={},"top"===Q||"bottom"===Q?h[q?"marginRight":"marginLeft"]=J:h.marginTop=J,b=B.map((function(e,t){var n=e.key;return dv.createElement(Qd,{id:W,prefixCls:z,key:n,tab:e,style:0===t?void 0:h,closable:e.closable,editable:K,active:n===G,renderWrapper:Z,removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,onClick:function(e){ee(n,e)},onFocus:function(){g(n),r(),ie.current&&(q||(ie.current.scrollLeft=0),ie.current.scrollTop=0)}})})),y=function(){return $e((function(){var e=new Map;return B.forEach((function(t){var n,r=t.key,o=null===(n=ae.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(qd(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},dv.useEffect((function(){y()}),[B.map((function(e){return e.key})).join("_")]),v=Vd((function(){var e,t,n,r=JN(ne),o=JN(re),i=JN(oe);ye([r[0]-o[0]-i[0],r[1]-o[1]-i[1]]),e=JN(le),Se(e),t=JN(se),De(t),n=JN(ae),we([n[0]-e[0],n[1]-e[1]]),y()})),_=B.slice(0,f),w=B.slice(m+1),k=[].concat(ba(_),ba(w)),S=(x=za(dv.useState(),2))[0],C=x[1],E=Pe.get(G),D=dv.useRef(),dv.useEffect((function(){var e={};return E&&(ce?(q?e.right=E.right:e.left=E.left,e.width=E.width):(e.top=E.top,e.height=E.height)),i(),D.current=nO((function(){C(e)})),i}),[E,ce,q]),dv.useEffect((function(){g()}),[G,Le,ze,Gd(E),Gd(Pe),ce]),dv.useEffect((function(){v()}),[q]),O=!!k.length,j="".concat(z,"-nav-wrap"),ce?q?(P=de>0,$=de!==ze):($=de<0,P=de!==Le):(N=me<0,T=me!==Le),dv.createElement(QD,{onResize:v},dv.createElement("div",{ref:Fs(t,ne),role:"tablist",className:yZ("".concat(z,"-nav"),H),style:U,onKeyDown:function(){r()}},dv.createElement(QN,{ref:re,position:"left",extra:X,prefixCls:z}),dv.createElement("div",{className:yZ(j,(a={},_i(a,"".concat(j,"-ping-left"),$),_i(a,"".concat(j,"-ping-right"),P),_i(a,"".concat(j,"-ping-top"),N),_i(a,"".concat(j,"-ping-bottom"),T),a)),ref:ie},dv.createElement(QD,{onResize:v},dv.createElement("div",{ref:ae,className:"".concat(z,"-nav-list"),style:{transform:"translate(".concat(de,"px, ").concat(me,"px)"),transition:c?"none":void 0}},b,dv.createElement(T3,{ref:le,prefixCls:z,locale:Y,editable:K,style:va(va({},0===b.length?void 0:h),{},{visibility:O?"hidden":null})}),dv.createElement("div",{className:yZ("".concat(z,"-ink-bar"),_i({},"".concat(z,"-ink-bar-animated"),V.inkBar)),style:S})))),dv.createElement(I3,la({},e,{removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,ref:se,prefixCls:z,tabs:k,className:!O&&Me,tabMoving:!!c})),dv.createElement(QN,{ref:oe,position:"right",extra:X,prefixCls:z})))}function Zd(e){var t=e.renderTabBar,n=wi(e,eT),r=dv.useContext(N3).tabs;return t?t(va(va({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=wi(e,tT);return dv.createElement(HN,la({tab:t,key:n,tabKey:n},r))}))}),A3):dv.createElement(A3,n)}function ep(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m=e.id,g=e.prefixCls,h=void 0===g?"rc-tabs":g,b=e.className,y=e.items,v=e.direction,_=e.activeKey,w=e.defaultActiveKey,k=e.editable,x=e.animated,S=e.tabPosition,C=void 0===S?"top":S,E=e.tabBarGutter,D=e.tabBarStyle,O=e.tabBarExtraContent,j=e.locale,$=e.moreIcon,P=e.moreTransitionName,N=e.destroyInactiveTabPane,T=e.renderTabBar,I=e.onChange,A=e.onTabClick,R=e.onTabScroll,F=e.getPopupContainer,M=e.popupClassName,L=wi(e,nT),z=dv.useMemo((function(){return(y||[]).filter((function(e){return e&&"object"===yi(e)&&"key"in e}))}),[y]),B="rtl"===v,H=function(e){var t,n=arguments.length>0&&void 0!==e?e:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!1}:va({inkBar:!0},"object"===yi(n)?n:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(x),U=za(dv.useState(!1),2),W=U[0],V=U[1];return dv.useEffect((function(){V(F5())}),[]),r=za($l((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:_,defaultValue:w}),2),o=r[0],i=r[1],a=za(dv.useState((function(){return z.findIndex((function(e){return e.key===o}))})),2),s=a[0],l=a[1],dv.useEffect((function(){var e,t=z.findIndex((function(e){return e.key===o}));-1===t&&(t=Math.max(0,Math.min(s,z.length-1)),i(null===(e=z[t])||void 0===e?void 0:e.key)),l(t)}),[z.map((function(e){return e.key})).join("_"),o,s]),u=(c=za($l(null,{value:m}),2))[0],d=c[1],dv.useEffect((function(){m||(d("rc-tabs-".concat(rT)),rT+=1)}),[]),f=va(va({},p={id:u,activeKey:o,animated:H,tabPosition:C,rtl:B,mobile:W}),{},{editable:k,locale:j,moreIcon:$,moreTransitionName:P,tabBarGutter:E,onTabClick:function(e,t){null==A||A(e,t);var n=e!==o;i(e),n&&(null==I||I(e))},onTabScroll:R,extra:O,style:D,panes:null,getPopupContainer:F,popupClassName:M}),dv.createElement(N3.Provider,{value:{tabs:z,prefixCls:h}},dv.createElement("div",la({ref:t,id:m,className:yZ(h,"".concat(h,"-").concat(C),(n={},_i(n,"".concat(h,"-mobile"),W),_i(n,"".concat(h,"-editable"),k),_i(n,"".concat(h,"-rtl"),B),n),b)},L),void 0,dv.createElement(Zd,la({},f,{renderTabBar:T})),dv.createElement(Ud,la({destroyInactiveTabPane:N},p,{animated:H}))))}function tp(e,t){const[n,r]=dv.useState("string"==typeof e?e:"");return dv.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;nNumber.MAX_SAFE_INTEGER)return String(rp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e3&&void 0!==r&&r;return""===e?"":(i=(o=ip(e)).negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a),n>=0?(u=Number(s[n]))>=5&&!d?dp(up(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,d):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n)):".0"===l?c:"".concat(c).concat(l))}function pp(e){return!(!e.addonBefore&&!e.addonAfter)}function fp(e){return!!(e.prefix||e.suffix||e.allowClear)}function mp(e,t,n,r){var o,i;if(n)return o=t,"click"===t.type?(i=e.cloneNode(!0),o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)):void 0!==r?(o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o)):void n(o)}function gp(e,t){var n,r;if(e&&(e.focus(t),n=(t||{}).cursor))switch(r=e.value.length,n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}function hp(e){return null==e?"":String(e)}function bp(e){var t,n,r,o,i,a,s,l=e.prefixCls,c=e.upNode,u=e.downNode,d=e.upDisabled,p=e.downDisabled,f=e.onStep,m=dv.useRef(),g=dv.useRef([]),h=dv.useRef();return h.current=f,t=function(){clearTimeout(m.current)},n=function(e,n){e.preventDefault(),t(),h.current(n),m.current=setTimeout((function e(){h.current(n),m.current=setTimeout(e,kT)}),xT)},dv.useEffect((function(){return function(){t(),g.current.forEach((function(e){return nO.cancel(e)}))}}),[]),wT()?null:(r="".concat(l,"-handler"),o=yZ(r,"".concat(r,"-up"),_i({},"".concat(r,"-up-disabled"),d)),i=yZ(r,"".concat(r,"-down"),_i({},"".concat(r,"-down-disabled"),p)),s={unselectable:"on",role:"button",onMouseUp:a=function(){return g.current.push(nO(t))},onMouseLeave:a},dv.createElement("div",{className:"".concat(r,"-wrap")},dv.createElement("span",la({},s,{onMouseDown:function(e){n(e,!0)},"aria-label":"Increase Value","aria-disabled":d,className:o}),c||dv.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-up-inner")})),dv.createElement("span",la({},s,{onMouseDown:function(e){n(e,!1)},"aria-label":"Decrease Value","aria-disabled":p,className:i}),u||dv.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-down-inner")}))))}function yp(e){var t="number"==typeof e?lp(e):ip(e).fullStr;return t.includes(".")?ip(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function vp(e,t){const n=dv.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(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===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return dv.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}function _p(e,t){return ba(e||"").slice(0,t).join("")}function wp(e,t,n,r){var o=n;return e?o=_p(n,r):ba(t||"").lengthr&&(o=t),o}function kp(e){return"string"==typeof e&&String(Number(e))===e?(Ca(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function xp(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v=e.prefixCls,_=e.open,w=e.placement,k=e.inline,x=e.push,S=e.forceRender,C=e.autoFocus,E=e.keyboard,D=e.rootClassName,O=e.rootStyle,j=e.zIndex,$=e.className,P=e.style,N=e.motion,T=e.width,I=e.height,A=e.children,R=e.contentWrapperStyle,F=e.mask,M=e.maskClosable,L=e.maskMotion,z=e.maskClassName,B=e.maskStyle,H=e.afterOpenChange,U=e.onClose,W=e.onMouseEnter,V=e.onMouseOver,G=e.onMouseLeave,q=e.onClick,X=e.onKeyDown,K=e.onKeyUp,Y=dv.useRef(),Q=dv.useRef(),J=dv.useRef();if(dv.useImperativeHandle(t,(function(){return Y.current})),a=function(e){var t,n,r=e.keyCode,o=e.shiftKey;switch(r){case dj.TAB:r===dj.TAB&&(o||document.activeElement!==J.current?o&&document.activeElement===Q.current&&(null===(n=J.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=Q.current)||void 0===t||t.focus({preventScroll:!0}));break;case dj.ESC:U&&E&&(e.stopPropagation(),U(e))}},dv.useEffect((function(){var e;_&&C&&(null===(e=Y.current)||void 0===e||e.focus({preventScroll:!0}))}),[_]),l=(s=za(dv.useState(!1),2))[0],c=s[1],u=dv.useContext(HT),d=null!==(n=null!==(r=null===(o=!1===x?{distance:0}:!0===x?{}:x||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==u?void 0:u.pushDistance)&&void 0!==n?n:180,p=dv.useMemo((function(){return{pushDistance:d,push:function(){c(!0)},pull:function(){c(!1)}}}),[d]),dv.useEffect((function(){var e,t;_?null==u||null===(e=u.push)||void 0===e||e.call(u):null==u||null===(t=u.pull)||void 0===t||t.call(u)}),[_]),dv.useEffect((function(){return function(){var e;null==u||null===(e=u.pull)||void 0===e||e.call(u)}}),[]),f=F&&dv.createElement(s0,la({key:"mask"},L,{visible:_}),(function(e,t){var n=e.className,r=e.style;return dv.createElement("div",{className:yZ("".concat(v,"-mask"),n,z),style:va(va({},r),B),onClick:M&&_?U:void 0,ref:t})})),m="function"==typeof N?N(w):N,g={},l&&d)switch(w){case"top":g.transform="translateY(".concat(d,"px)");break;case"bottom":g.transform="translateY(".concat(-d,"px)");break;case"left":g.transform="translateX(".concat(d,"px)");break;default:g.transform="translateX(".concat(-d,"px)")}return"left"===w||"right"===w?g.width=kp(T):g.height=kp(I),h={onMouseEnter:W,onMouseOver:V,onMouseLeave:G,onClick:q,onKeyDown:X,onKeyUp:K},b=dv.createElement(s0,la({key:"panel"},m,{visible:_,forceRender:S,onVisibleChanged:function(e){null==H||H(e)},removeOnLeave:!1,leavedClassName:"".concat(v,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return dv.createElement("div",la({className:yZ("".concat(v,"-content-wrapper"),r),style:va(va(va({},g),o),R)},ec(e,{data:!0})),dv.createElement(UT,la({containerRef:n,prefixCls:v,className:$,style:P},h),A))})),y=va({},O),j&&(y.zIndex=j),dv.createElement(HT.Provider,{value:p},dv.createElement("div",{className:yZ(v,"".concat(v,"-").concat(w),D,(i={},_i(i,"".concat(v,"-open"),_),_i(i,"".concat(v,"-inline"),k),i)),style:y,tabIndex:-1,ref:Y,onKeyDown:a},f,dv.createElement("div",{tabIndex:0,ref:Q,style:WT,"aria-hidden":"true","data-sentinel":"start"}),b,dv.createElement("div",{tabIndex:0,ref:J,style:WT,"aria-hidden":"true","data-sentinel":"end"})))}function Sp(e){const[t,n]=dv.useState(e);return dv.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}function Cp(e,t,n,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==r?r:0}`,error:e,errorStatus:n}}function Ep(e){let{help:t,helpStatus:n,errors:r=r6,warnings:o=r6,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=dv.useContext(_2),c=`${l}-item-explain`,[,u]=n6(l),d=dv.useMemo((()=>U1(l)),[l]),p=Sp(r),f=Sp(o),m=dv.useMemo((()=>null!=t?[Cp(t,"help",n)]:[].concat(ba(p.map(((e,t)=>Cp(e,"error","error",t)))),ba(f.map(((e,t)=>Cp(e,"warning","warning",t)))))),[t,n,p,f]),g={};return a&&(g.id=`${a}_help`),dv.createElement(s0,{motionDeadline:d.motionDeadline,motionName:`${l}-show-help`,visible:!!m.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return dv.createElement("div",Object.assign({},g,{className:yZ(c,t,i,u),style:n,role:"alert"}),dv.createElement(l0,Object.assign({keys:m},U1(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return dv.createElement("div",{key:t,className:yZ(o,{[`${c}-${r}`]:r}),style:i},n)})))}))}function Dp(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Op(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:o6.includes(n)?`${i6}_${n}`:n}function jp(e){return Dp(e).join("_")}function $p(e){const[t]=lu(),n=dv.useRef({}),r=dv.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=jp(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e,t){let n=arguments.length>1&&void 0!==t?t:{};const o=Op(Dp(e),r.__INTERNAL__.name),i=o?document.getElementById(o):null;i&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior(I0(e,t));var n;const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of I0(e,A0(t)))o.scroll({top:i,left:a,behavior:r})}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},n))},getFieldInstance:e=>{const t=jp(e);return n.current[t]}})),[e,t]);return[r]}function Pp(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:p,fieldId:f,required:m,isRequired:g,onSubItemMetaChange:h}=e,b=QT(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${t}-item`,{requiredMark:v}=dv.useContext(b2),_=dv.useRef(null),w=Sp(a),k=Sp(s),x=null!=i,S=!!(x||a.length||s.length),C=!!_.current&&V0(_.current),[E,D]=dv.useState(null);RE((()=>{if(S&&_.current){const e=getComputedStyle(_.current);D(parseInt(e.marginBottom,10))}}),[S,C]);const O=function(e){let t=arguments.length>0&&void 0!==e&&e,n="";return void 0!==l?n=l:c.validating?n="validating":(t?w:c.errors).length?n="error":(t?k:c.warnings).length?n="warning":(c.touched||u&&c.validated)&&(n="success"),n}(),j=dv.useMemo((()=>{let e;if(u){const t=O&&p6[O];e=t?dv.createElement("span",{className:yZ(`${y}-feedback-icon`,`${y}-feedback-icon-${O}`)},dv.createElement(t,null)):null}return{status:O,errors:a,warnings:s,hasFeedback:u,feedbackIcon:e,isFormItemInput:!0}}),[O,u]),$=yZ(y,n,r,{[`${y}-with-help`]:x||w.length||k.length,[`${y}-has-feedback`]:O&&u,[`${y}-has-success`]:"success"===O,[`${y}-has-warning`]:"warning"===O,[`${y}-has-error`]:"error"===O,[`${y}-is-validating`]:"validating"===O,[`${y}-hidden`]:d});return dv.createElement("div",{className:$,style:o,ref:_},dv.createElement(r8,Object.assign({className:`${y}-row`},Gs(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),dv.createElement(d6,Object.assign({htmlFor:f},e,{requiredMark:v,required:null!=m?m:g,prefixCls:t})),dv.createElement(u6,Object.assign({},e,c,{errors:w,warnings:k,prefixCls:t,status:O,help:i,marginBottom:E,onErrorVisibleChanged:e=>{e||D(null)}}),dv.createElement(y2.Provider,{value:h},dv.createElement(w2.Provider,{value:j},p)))),!!E&&dv.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-E}}))}function Np(){if(!b6){const e=document.createDocumentFragment(),t={fragment:e};return b6=t,void y6((()=>{dc(dv.createElement(w6,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Np())}))}}),e)}))}b6.instance&&(v6.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":y6((()=>{const t=b6.instance.open(Object.assign(Object.assign({},_6),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":y6((()=>{null==b6||b6.instance.destroy(e.key)}));break;default:y6((()=>{var n;const r=(n=b6.instance)[t].apply(n,ba(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),v6=[])}function Tp(e){return mu(gu(e))}function Ip(){if(!D6){const e=document.createDocumentFragment(),t={fragment:e};return D6=t,void O6((()=>{dc(dv.createElement(P6,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Ip())}))}}),e)}))}D6.instance&&(j6.forEach((e=>{switch(e.type){case"open":O6((()=>{D6.instance.open(Object.assign(Object.assign({},$6),e.config))}));break;case"destroy":O6((()=>{null==D6||D6.instance.destroy(e.key)}))}})),j6=[])}function Ap(e){j6.push({type:"open",config:e}),Ip()}function Rp(e){var t,n,r=e.prefixCls,o=e.containerRef,i=e.value,a=e.getValueIndex,s=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,u=e.direction,d=dv.useRef(null),p=za(dv.useState(i),2),f=p[0],m=p[1],g=function(e){var t,n=a(e),i=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".".concat(r,"-item"))[n];return(null==i?void 0:i.offsetParent)&&i},h=za(dv.useState(null),2),b=h[0],y=h[1],v=za(dv.useState(null),2),_=v[0],w=v[1];return RE((function(){var e,t,n,r;f!==i&&(e=g(f),t=g(i),n=eI(e),r=eI(t),m(i),y(n),w(r),e&&t?l():c())}),[i]),t=dv.useMemo((function(){return tI("rtl"===u?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,b]),n=dv.useMemo((function(){return tI("rtl"===u?-(null==_?void 0:_.right):null==_?void 0:_.left)}),[u,_]),b&&_?dv.createElement(s0,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){y(null),w(null),c()}},(function(e,o){var i=e.className,a=va(va({},e.style),{},{"--thumb-start-left":t,"--thumb-start-width":tI(null==b?void 0:b.width),"--thumb-active-left":n,"--thumb-active-width":tI(null==_?void 0:_.width)}),s={ref:Rs(d,o),style:a,className:yZ("".concat(r,"-thumb"),i)};return dv.createElement("div",s)})):null}function Fp(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Mp(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}function Lp(e,t,n){return(e-t)/(n-t)}function zp(e,t,n,r){var o=Lp(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function Bp(e,t){return Array.isArray(e)?e[t]:e}function Hp(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Up(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=dv.useContext(aI),l=s.direction,c=s.min,u=s.max,d=s.disabled,p=s.range,f="".concat(t,"-track"),m=Lp(r,c,u),g=Lp(o,c,u),h=function(e){!d&&a&&a(e,-1)},b={};switch(l){case"rtl":b.right="".concat(100*m,"%"),b.width="".concat(100*g-100*m,"%");break;case"btt":b.bottom="".concat(100*m,"%"),b.height="".concat(100*g-100*m,"%");break;case"ttb":b.top="".concat(100*m,"%"),b.height="".concat(100*g-100*m,"%");break;default:b.left="".concat(100*m,"%"),b.width="".concat(100*g-100*m,"%")}return dv.createElement("div",{className:yZ(f,p&&"".concat(f,"-").concat(i+1)),style:va(va({},b),n),onMouseDown:h,onTouchStart:h})}function Wp(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=dv.useContext(aI),s=a.included,l=a.range,c=a.min,u=dv.useMemo((function(){var e,t,n,i;if(!l)return 0===r.length?[]:(e=null!=o?o:c,t=r[0],[{start:Math.min(e,t),end:Math.max(e,t)}]);for(n=[],i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a),r(s+(u=n-i/2),l+u,c+u))}function Pf(e){var t,n,r,o,i,a,s,l,c,u,d;if("string"!=typeof e)throw new fR(3);if(t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return mR[t]?"#"+mR[t]:e}(e),t.match(gR))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(hR))return n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n};if(t.match(bR))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(yR))return r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r};if(o=vR.exec(t))return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};if(i=_R.exec(t.substring(0,50)))return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};if(a=wR.exec(t)){if(s="rgb("+$f(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",!(l=vR.exec(s)))throw new fR(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}if(c=kR.exec(t.substring(0,50))){if(u="rgb("+$f(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",!(d=vR.exec(u)))throw new fR(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new fR(5)}function Nf(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Tf(e){return Nf(Math.round(255*e))}function If(e,t,n){return xR("#"+Tf(e)+Tf(t)+Tf(n))}function Af(e,t,n){return $f(e,t,n,If)}function Rf(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return xR("#"+Nf(e)+Nf(t)+Nf(n));if("object"==typeof e&&void 0===t&&void 0===n)return xR("#"+Nf(e.red)+Nf(e.green)+Nf(e.blue));throw new fR(6)}function Ff(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Pf(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Rf(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Rf(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new fR(7)}function Mf(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Mf(e,t,r)}}function Lf(e){return Mf(e,e.length,[])}function zf(e,t){if("transparent"===t)return t;var n=function(e){return function(e){var t,n,r,o=e.red/255,i=e.green/255,a=e.blue/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=(s+l)/2;if(s===l)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};switch(n=s-l,r=c>.5?n/(2-s-l):n/(s+l),s){case o:t=(i-a)/n+(i=1?Af(e.hue,e.saturation,e.lightness):"rgba("+$f(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new fR(2)}(e);if(ER(e))return function(e){if("object"==typeof e)return Af(e.hue,e.saturation,e.lightness);throw new fR(1)}(e);throw new fR(8)}(la({},n,{hue:n.hue+parseFloat(e)}))}function Bf(e){var t,n;return"transparent"===e?0:(t=Pf(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),parseFloat((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3)))}function Hf(e,t,n,r){var o,i,a,s,l;return void 0===t&&(t=jR),void 0===n&&(n=$R),void 0===r&&(r=!0),i=(o=Bf(e)>.179)?t:n,!r||(a=i,s=Bf(e),l=Bf(a),parseFloat((s>l?(s+.05)/(l+.05):(l+.05)/(s+.05)).toFixed(2))>=4.5)?i:o?jR:$R}function Uf(e,t){var n,r,o,i,a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;n=a.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(i)throw i.error}}return o}function Wf(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o=48&&e<=57}function ym(e){return`${R7}${e}`}async function vm(e){const t=[],n=await async function(e){const t=ym(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(HQ){if(r=A7(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function _m(e){const t=wm(await vm(e));if(t.include){const n=await _m(mm(...fm(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function wm(e){const t={name:e.name,type:e.type||"dark",...e,...km(e)};var n;return e.include&&(t.include=e.include),e.tokenColors&&(t.settings=e.tokenColors,delete t.tokenColors),(n=t).settings||(n.settings=[]),n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}}),t}function km(e){var t,n,r,o;let i,a,s=e.settings?e.settings:e.tokenColors;const l=s?s.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==l?void 0:l.settings)?void 0:t.foreground)&&(i=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(a=l.settings.background),!i&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(i=e.colors["editor.foreground"]),!a&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(a=e.colors["editor.background"]),i||(i="light"===e.type?L7.light:L7.dark),a||(a="light"===e.type?z7.light:z7.dark),{fg:i,bg:a}}function xm(e,t){let n=[];for(let r=0,o=t.length;r=0&&i>=0;)Sm(t[o],r[i])&&o--,i--;return-1===o}function Em(e,t,n){let r=[],o=0;for(let i=0,a=e.settings.length;ie.trim()));else{if(!Array.isArray(s.scope))continue;a=s.scope}for(let e=0,i=a.length;eNumber.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function jm(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)uB[r]&&t.push({type:"setDecoration",value:uB[r]});else if(r<=29){const e=uB[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:cB[r-30]}});else if(38===r){const n=Om(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:cB[r-40]}});else if(48===r){const n=Om(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:cB[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:cB[r-100+8]}})}return t}function $m(e,t={}){function n(e="",t={},n){const r=i[e]||H7[e];return r?r({...t,children:(n=n.filter(Boolean)).join("code"===e?"\n":"")}):""}const r=t.bg||"#fff",o=function(e){const t=new Map;for(const n of e){const e=n.line;t.has(e)?t.get(e).push(n):t.set(e,[n])}return t}(t.lineOptions??[]),i=t.elements||{};return n("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`
${t.langId}
`:"",n("code",{},e.map(((r,i)=>n("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(o.get(i+1)??[]).join(" "),lines:e,line:r,index:i},r.map(((e,o)=>{const i=[`color: ${e.color||t.fg}`];return e.fontStyle&rB.Italic&&i.push("font-style: italic"),e.fontStyle&rB.Bold&&i.push("font-weight: bold"),e.fontStyle&rB.Underline&&i.push("text-decoration: underline"),n("token",{style:i.join("; "),tokens:r,token:e,index:o},[(a=e.content,a.replace(/[&<>"']/g,(e=>U7[e])))]);var a}))))))])}function Pm(e){return"string"==typeof e?T7.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function Nm(e){function t(e){const t=e?u.getTheme(e):d;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(u.setTheme(t),p=t);const n=u.getColorMap();return"css"===t.type&&function(e,t){e.bg=f[e.bg]||e.bg,e.fg=f[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=f[n]||n})),t.forEach(((e,n)=>{t[n]=f[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function n(e,n="text",r,o={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(n))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:i}=function(e){const t=u.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(n),{_theme:a,_colorMap:s}=t(r);return function(e,t,n,r,o){let i=n.split(/\r\n|\r|\n/),a=nB.INITIAL,s=[],l=[];for(let c=0,u=i.length;cMath.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return o=e.index,function(){if(r)return r;r=[];for(let n=0;n[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),o=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=Dm(r,i),s=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const r=jm(a.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}i=a.position}while(io.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let o=rB.None;return t.decorations.has("bold")&&(o|=rB.Bold),t.decorations.has("italic")&&(o|=rB.Italic),t.decorations.has("underline")&&(o|=rB.Underline),{content:t.value,color:n,fontStyle:o}}))))}(r,e)}var o,i;const{_languages:a,_themes:s,_wasmPath:l}=function(e){var t;let n=T7,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":F7;return e.langs&&(n=e.langs.map(Pm)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),c=new B7(async function(e){if(!M7){let t;t=eB.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(ym(mm(...fm(e),"onig.wasm")))}),M7=t.then((()=>({createOnigScanner:e=>eB.createOnigScanner(e),createOnigString:e=>eB.createOnigString(e)})))}return M7}(l),"vscode-oniguruma"),u=new W7(c);(null==(o=e.paths)?void 0:o.themes)&&(u.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(i=e.paths)?void 0:i.languages)&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const d=(await u.loadThemes(s))[0];let p;await u.loadLanguages(a);let f=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;tt(e)._theme,loadTheme:async function(e){await u.loadTheme(e)},loadLanguage:async function(e){const t=Pm(e);c.addLanguage(t),await u.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:n}=t(e);return n.bg},getForegroundColor:function(e){const{_theme:n}=t(e);return n.fg},getLoadedThemes:function(){return u.getLoadedThemes()},getLoadedLanguages:function(){return u.getLoadedLanguages()},setColorReplacements:function(e){f=e}}}function Tm(e){var t,n=e.getSnapshot;e=e.value;try{return t=n(),!bB(e,t)}catch(r){return!0}}function Im(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Am(e){var t,n;for(t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return o=!0,i=!1,{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){i=!0,a=e},f:function(){try{o||null==s.return||s.return()}finally{if(i)throw a}}}}function yg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n52;t=t/52|0)n=SV(t%52)+n;return(SV(t%52)+n).replace(xV,"$1-$2")}function Og(e){return"string"==typeof e&&!0}function jg(e){return("type"in(t=e)&&t.type.$$typeof)===jV?TV:"$$typeof"in e?IV[e.$$typeof]:PV;var t}function $g(e,t,n){var r,o,i,a,s,l,c;if("string"!=typeof t)for(zV&&(r=LV(t))&&r!==zV&&$g(e,r,n),o=RV(t),FV&&(o=o.concat(FV(t))),i=jg(e),a=jg(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}function Lg(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Lg(e.children,t)),e}))}function zg(){return dv.useContext(lG)}function Bg(e){var t,n,r;for(t="",n=0;n>>0)}("6.0.5"+f+hG[f])),d?"".concat(d,"-").concat(p):p):v;return void 0===t.displayName&&function(e){Og(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),r=t.displayName&&t.componentId?"".concat(Eg(t.displayName),"-").concat(t.componentId):t.componentId||_,o=m&&g.attrs?g.attrs.concat(y).filter(Boolean):y,i=t.shouldForwardProp,m&&g.shouldForwardProp&&(a=g.shouldForwardProp,t.shouldForwardProp?(s=t.shouldForwardProp,i=function(e,t){return a(e,t)&&s(e,t)}):i=a),l=new mG(n,r,m?g.componentStyle:void 0),c=LJ.forwardRef((function(e,t){return function(e,t,n){var r,o,i,a,s,l,c=e.attrs,u=e.componentStyle,d=e.defaultProps,p=e.foldedComponentIds,f=e.styledComponentId,m=e.target,g=LJ.useContext(gG),h=zg(),b=e.shouldForwardProp||h.shouldForwardProp,y=function(e,t,n){var r,o,i,a,s;for(o=PR(PR({},t),{className:void 0,theme:n}),i=0;i{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,N9(e,r))}function th(e,t){function n(){return s.getFixedT(r.lng||null,"fallback"===l.nsMode?d:d[0],u)}let r=arguments.length>1&&void 0!==t?t:{};const{i18n:o}=r,{i18n:i,defaultNS:a}=dv.useContext(L9)||{},s=o||i||R9;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new z9),!s){Jg("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&Jg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...F9,...s.options.react,...r},{useSuspense:c,keyPrefix:u}=l;let d=e||a||s.options&&s.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);const p=(s.isInitialized||s.initializedStoreOnce)&&d.every((e=>function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(o,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(o,e)||i&&!s(a,e)))}(e,t,r):(Jg("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l))),[f,m]=dv.useState(n);let g=d.join();r.lng&&(g=`${r.lng}${g}`);const h=(e=>{const t=dv.useRef();return dv.useEffect((()=>{t.current=e}),[e,void 0]),t.current})(g),b=dv.useRef(!0);dv.useEffect((()=>{function e(){b.current&&m(n)}const{bindI18n:t,bindI18nStore:o}=l;return b.current=!0,p||c||(r.lng?eh(s,r.lng,d,(()=>{b.current&&m(n)})):Zg(s,d,(()=>{b.current&&m(n)}))),p&&h&&h!==g&&b.current&&m(n),t&&s&&s.on(t,e),o&&s&&s.store.on(o,e),()=>{b.current=!1,t&&s&&t.split(" ").forEach((t=>s.off(t,e))),o&&s&&o.split(" ").forEach((t=>s.store.off(t,e)))}}),[s,g]);const y=dv.useRef(!0);dv.useEffect((()=>{b.current&&!y.current&&m(n),y.current=!1}),[s,u]);const v=[f,s,p];if(v.t=f,v.i18n=s,v.ready=p,p)return v;if(!p&&!c)return v;throw new Promise((e=>{r.lng?eh(s,r.lng,d,(()=>e())):Zg(s,d,(()=>e()))}))}function nh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function rh(e){var t,n;for(t=1;t0)for(t=0,n=arguments.length;tthis.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,i=t.get(n);if(i)return i;const m=this.options.loose;e=e.replace(m?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE],E(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[s.CARETTRIM],u),o("caret trim",e);let g=e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));m&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),o("range list",g);const b=new Map,y=g.map((e=>new r(e,this.options)));for(const t of y){if(f(t))return[t];b.set(t.value,t)}b.size>1&&b.has("")&&b.delete("");const v=[...b.values()];return t.set(n,v),v}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(t){return!1}for(let n=0;n"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},h=(e,t)=>(o("comp",e,t),e=_(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=S(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>e.replace(t.loose?a[s.TILDELOOSE]:a[s.TILDE],((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s})),_=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[s.CARETLOOSE]:a[s.CARET],((t,r,i,a,s)=>{let l;return o("caret",e,t,r,i,a,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(a)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`):(o("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),o("caret return",l),l}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>x(e,t))).join(" ")),x=(e,t)=>(e=e.trim()).replace(t.loose?a[s.XRANGELOOSE]:a[s.XRANGE],((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=b(i),u=c||b(a),d=u||b(s);return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n})),S=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),C=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),E=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),D=(e,t,n)=>{for(let r=0;r0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return kX}function ch(){if(CX)return SX;CX=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,a("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new s(n[2],this.options.loose):e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(n){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}SX=t;const n=Gq,{safeRe:r,t:o}=Vq,i=hX,a=Wq,s=Xq,l=lh();return SX}function uh(e,t){var n,r,o,i,a;for(n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0&&void 0!==t?t:[],l=arguments.length>1&&void 0!==n?n:{publishSource:!0},c=l.publishSource,u=void 0===c||c,d=l.clientOffset,p=l.getSourceClientOffset,f=e.getMonitor(),m=e.getRegistry();if(e.dispatch(dh(d)),function(e,t,n){uh(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){uh(n.getSource(e),"Expected sourceIds to be registered.")}))}(s,f,m),r=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(s,f),null!==r){if(o=null,d){if(!p)throw new Error("getSourceClientOffset must be defined");!function(e){uh("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(p),o=p(r)}if(e.dispatch(dh(d,o)),null!=(i=m.getSource(r).beginDrag(f,r)))return function(e){uh(fh(e),"Item must be an object.")}(i),m.pinSource(r),a=m.getSourceType(r),{type:HX,payload:{itemType:a,item:i,sourceId:r,clientOffset:d||null,sourceClientOffset:o||null,isSourcePublic:!!u}}}else e.dispatch(qX)}}function gh(e){return function(){if(e.getMonitor().isDragging())return{type:UX}}}function hh(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function bh(e){return function(t,n){var r,o,i,a=(arguments.length>1&&void 0!==n?n:{}).clientOffset;return function(e){uh(Array.isArray(e),"Expected targetIds to be an array.")}(t),function(e,t,n){var r,o;for(uh(t.isDragging(),"Cannot call hover while not dragging."),uh(!t.didDrop(),"Cannot call hover after drop."),r=0;r=0;r--)hh(t.getTargetType(e[r]),n)||e.splice(r,1)}(r,i,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:WX,payload:{targetIds:r,clientOffset:a||null}}}}function yh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function vh(e){var t,n;for(t=1;t0&&void 0!==t?t:{},o=e.getMonitor(),i=e.getRegistry();!function(e){uh(e.isDragging(),"Cannot call drop while not dragging."),uh(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(o),n=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(o),n.forEach((function(t,n){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){uh(void 0===e||fh(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(t,n,i,o),s={type:VX,payload:{dropResult:vh(vh({},r),a)}};e.dispatch(s)}))}}function kh(e){return function(){var t,n=e.getMonitor(),r=e.getRegistry();return function(e){uh(e.isDragging(),"Cannot call endDrag while not dragging.")}(n),null!=(t=n.getSourceId())&&(r.getSource(t,!0).endDrag(n,t),r.unpinSource()),{type:GX}}}function xh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sh(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}function Ch(e,t,n,r){function o(){p===d&&(p=d.slice())}function i(){if(f)throw new Error(Sh(3));return u}function a(e){if("function"!=typeof e)throw new Error(Sh(4));if(f)throw new Error(Sh(5));var t=!0;return o(),p.push(e),function(){if(t){if(f)throw new Error(Sh(6));t=!1,o();var n=p.indexOf(e);p.splice(n,1),d=null}}}function s(e){var t,n;if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Sh(7));if(void 0===e.type)throw new Error(Sh(8));if(f)throw new Error(Sh(9));try{f=!0,u=c(u,e)}finally{f=!1}for(t=d=p,n=0;n0&&void 0!==e?e:ZX,i=arguments.length>1?t:void 0,a=i.payload;switch(i.type){case BX:case HX:return{initialSourceClientOffset:a.sourceClientOffset,initialClientOffset:a.clientOffset,clientOffset:a.clientOffset};case WX:return r=a.clientOffset,!(n=o.clientOffset)&&!r||n&&r&&n.x===r.x&&n.y===r.y?o:Dh(Dh({},o),{},{clientOffset:a.clientOffset});case GX:case VX:return ZX;default:return o}}function $h(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Ph(e){var t,n;for(t=1;t0&&void 0!==e?e:oK,i=arguments.length>1?t:void 0,a=i.payload;switch(i.type){case HX:return Ph(Ph({},o),{},{itemType:a.itemType,item:a.item,sourceId:a.sourceId,isSourcePublic:a.isSourcePublic,dropResult:null,didDrop:!1});case UX:return Ph(Ph({},o),{},{isSourcePublic:!0});case WX:return Ph(Ph({},o),{},{targetIds:a.targetIds});case rK:return-1===o.targetIds.indexOf(a.targetId)?o:Ph(Ph({},o),{},{targetIds:(n=o.targetIds,r=a.targetId,n.filter((function(e){return e!==r})))});case VX:return Ph(Ph({},o),{},{dropResult:a.dropResult,didDrop:!0,targetIds:[]});case GX:return Ph(Ph({},o),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return o}}function Ih(e,t){var n=arguments.length>0&&void 0!==e?e:0;switch((arguments.length>1?t:void 0).type){case eK:case tK:return n+1;case nK:case rK:return n-1;default:return n}}function Ah(e,t){var n,r,o,i,a,s,l,c,u,d=arguments.length>1?t:void 0;switch(d.type){case WX:break;case eK:case tK:case rK:case nK:return iK;default:return aK}return l=(s=function(e,t){var n,r=new Map,o=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};return e.forEach(o),t.forEach(o),n=[],r.forEach((function(e,t){1===e&&n.push(t)})),n}(o=void 0===(r=(n=d.payload).targetIds)?[]:r,a=void 0===(i=n.prevTargetIds)?[]:i)).length>0||!function(e,t,n){var r,o=arguments.length>2&&void 0!==n?n:JX;if(e.length!==t.length)return!1;for(r=0;r0&&void 0!==e?e:0)+1}function Fh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Mh(e){var t,n;for(t=1;t0&&void 0!==e?e:{},i=arguments.length>1?t:void 0;return{dirtyHandlerIds:Ah(o.dirtyHandlerIds,{type:i.type,payload:Mh(Mh({},i.payload),{},{prevTargetIds:(n=o,r=[],"dragOperation.targetIds".split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),n))})}),dragOffset:jh(o.dragOffset,i),refCount:Ih(o.refCount,i),dragOperation:Th(o.dragOperation,i),stateId:Rh(o.stateId)}}function Bh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uh(e){return(Uh="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})(e)}function Wh(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Wh(e,!1)})):uh("string"==typeof e||"symbol"===Uh(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Vh(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}const n=setTimeout(t,0),r=setInterval(t,50)}}function Gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==t?t:void 0,a=arguments.length>2&&void 0!==n?n:{},s=(o="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,Ch(zh,arguments.length>3&&void 0!==r&&r&&o&&o({name:"dnd-core",instanceId:"dnd-core"}))),l=new sK(s,new cK(s)),c=new XX(s,l),u=e(c,i,a);return c.receiveBackend(u),c}function Qh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==t?t:null,a=arguments.length>1&&void 0!==n?n:null;return dv.isValidElement(i)?(function(e){if("string"!=typeof e.type)throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e.type.displayName||e.type.name||"the component"," into a
, or turn it into a ")+"drag source or a drop target itself.")}(o=i),function(e,t){var n=e.ref;return uh("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),dv.cloneElement(e,n?{ref:function(e){nb(n,e),nb(t,e)}}:{ref:t})}(o,a?function(t){return e(t,a)}:e)):(e(r=i,a),r)}}(o),t[n]=function(){return r})})),t}function nb(e,t){"function"==typeof e?e(t):e.current=t}function rb(e){return(rb="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})(e)}function ob(e){return null!==e&&"object"===rb(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function ib(e,t,n,r){var o,i,a,s,l,c,u,d=n?n.call(r,e,t):void 0;if(void 0!==d)return!!d;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;if(o=Object.keys(e),i=Object.keys(t),o.length!==i.length)return!1;for(a=Object.prototype.hasOwnProperty.bind(t),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}))}))[0]||null}function ay(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sy(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function ly(e){var t,n;for(t=1;tNumber(e)-Number(t))).map((t=>e[t])):e}function Cy(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function Ey(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function Dy(e){const t=(e=Cy(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function Oy(e,t){wy((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),r[e=e.replace(/\[]$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),r[e=e.replace(/:list$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&xy(n,e).includes(e.arrayFormatSeparator);n=i?xy(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>xy(t,e))):null===n?n:xy(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?xy(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>xy(t,e)));r[t]=void 0!==r[t]?[...r[t],...i]:i};default:return(e,t,n)=>{n[e]=void 0!==n[e]?[...[n[e]].flat(),t]:t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[i,a]=vy(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:xy(a,t),n(xy(i,t),a,r)}for(const[o,i]of Object.entries(r))if("object"==typeof i&&null!==i)for(const[e,n]of Object.entries(i))i[e]=Ey(n,t);else r[o]=Ey(i,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?Sy(n):n,e}),Object.create(null))}function jy(e,t){if(!e)return"";wy((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&Une(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[ky(t,e),"[",o,"]"].join("")]:[...n,[ky(t,e),"[",ky(o,e),"]=",ky(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[ky(t,e),"[]"].join("")]:[...n,[ky(t,e),"[]=",ky(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[ky(t,e),":list="].join("")]:[...n,[ky(t,e),":list=",ky(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[ky(n,e),t,ky(o,e)].join("")]:[[r,ky(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,ky(t,e)]:[...n,[ky(t,e),"=",ky(r,e)].join("")]}}(t),o={};for(const[a,s]of Object.entries(e))n(a)||(o[a]=s);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?ky(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?ky(n,t)+"[]":o.reduce(r(n),[]).join("&"):ky(n,t)+"="+ky(o,t)})).filter((e=>e.length>0)).join("&")}function $y(e,t){var n;t={decode:!0,...t};let[r,o]=vy(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:Oy(Dy(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:xy(o,t)}:{}}}function Py(e,t){t={encode:!0,strict:!0,[Vne]:!0,...t};const n=Cy(e.url).split("?")[0]||"";let r=jy({...Oy(Dy(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[Vne]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function Ny(e,t,n){n={parseFragmentIdentifier:!0,[Vne]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=$y(e,n);return Py({url:r,query:_y(o,t),fragmentIdentifier:i},n)}function Ty(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function Iy(e){return null==e?"":""+e}function Ay(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function Ry(e,t,n){const{obj:r,k:o}=Ay(e,t,Object);r[o]=n}function Fy(e,t){const{obj:n,k:r}=Ay(e,t);if(n)return n[r]}function My(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):My(e[r],t[r],n):e[r]=t[r]);return e}function Ly(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function zy(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>oQ[e])):e}function By(e,t,n){let r=arguments.length>2&&void 0!==n?n:".";if(!e)return;if(e[t])return e[t];const o=t.split(r);let i=e;for(let a=0;aa+e;)e++,n=o.slice(a,a+e).join(r),s=i[n];if(void 0===s)return;if(null===s)return null;if(t.endsWith(n)){if("string"==typeof s)return s;if(n&&"string"==typeof s[n])return s[n]}const l=o.slice(a+e).join(r);return l?By(s,l,r):void 0}i=i[o[a]]}return i}function Hy(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}function Uy(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Wy(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:".",a=!(arguments.length>4&&void 0!==o)||o,s=function(e,t,n){const r=Fy(e,n);return void 0!==r?r:Fy(t,n)}(e,t,n);return!s&&a&&"string"==typeof n&&(s=By(e,n,i),void 0===s&&(s=By(t,n,i))),s}function Vy(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(Hy(r),o),t[i]=a),a(n)}}function Gy(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function qy(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Xy(){}function Ky(e){return(Ky="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})(e)}function Yy(e){return sQ.call(lQ.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Qy(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Ky(XMLHttpRequest))}function Jy(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function Zy(e){return(Zy="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})(e)}function ev(e){return(ev="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})(e)}function tv(e){var t=function(e){var t,n;if("object"!==ev(e)||null===e)return e;if(void 0!==(t=e[Symbol.toPrimitive])){if("object"!==ev(n=t.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ev(t)?t:String(t)}var nv,rv,ov,iv,av,sv,lv,cv,uv,dv,pv,fv,mv,gv,hv,bv,yv,vv,_v,wv,kv,xv,Sv,Cv,Ev,Dv,Ov,jv,$v,Pv,Nv,Tv,Iv,Av,Rv,Fv,Mv,Lv,zv,Bv,Hv,Uv,Wv,Vv,Gv,qv,Xv,Kv,Yv,Qv,Jv,Zv,e_,t_,n_,r_,o_,i_,a_,s_,l_,c_,u_,d_,p_,f_,m_,g_,h_,b_,y_,v_,__,w_,k_,x_,S_,C_,E_,D_,O_,j_,$_,P_,N_,T_,I_,A_,R_,F_,M_,L_,z_,B_,H_,U_,W_,V_,G_,q_,X_,K_,Y_,Q_,J_,Z_,ew,tw,nw,rw,ow,iw,aw,sw,lw,cw,uw,dw,pw,fw,mw,gw,hw,bw,yw,vw,_w,ww,kw,xw,Sw,Cw,Ew,Dw,Ow,jw,$w,Pw,Nw,Tw,Iw,Aw,Rw,Fw,Mw,Lw,zw,Bw,Hw,Uw,Ww,Vw,Gw,qw,Xw,Kw,Yw,Qw,Jw,Zw,ek,tk,nk,rk,ok,ik,ak,sk,lk,ck,uk,dk,pk,fk,mk,gk,hk,bk,yk,vk,_k,wk,kk,xk,Sk,Ck,Ek,Dk,Ok,jk,$k,Pk,Nk,Tk,Ik,Ak,Rk,Fk,Mk,Lk,zk,Bk,Hk,Uk,Wk,Vk,Gk,qk,Xk,Kk,Yk,Qk,Jk,Zk,ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,ux,dx,px,fx,mx,gx,hx,bx,yx,vx,_x,wx,kx,xx,Sx,Cx,Ex,Dx,Ox,jx,$x,Px,Nx,Tx,Ix,Ax,Rx,Fx,Mx,Lx,zx,Bx,Hx,Ux,Wx,Vx,Gx,qx,Xx,Kx,Yx,Qx,Jx,Zx,eS,tS,nS,rS,oS,iS,aS,sS,lS,cS,uS,dS,pS,fS,mS,gS,hS,bS,yS,vS,_S,wS,kS,xS,SS,CS,ES,DS,OS,jS,$S,PS,NS,TS,IS,AS,RS,FS,MS,LS,zS,BS,HS,US,WS,VS,GS,qS,XS,KS,YS,QS,JS,ZS,eC,tC,nC,rC,oC,iC,aC,sC,lC,cC,uC,dC,pC,fC,mC,gC,hC,bC,yC,vC,_C,wC,kC,xC,SC,CC,EC,DC,OC,jC,$C,PC,NC,TC,IC,AC,RC,FC,MC,LC,zC,BC,HC,UC,WC,VC,GC,qC,XC,KC,YC,QC,JC,ZC,eE,tE,nE,rE,oE,iE,aE,sE,lE,cE,uE,dE,pE,fE,mE,gE,hE,bE,yE,vE,_E,wE,kE,xE,SE,CE,EE,DE,OE,jE,$E,PE,NE,TE,IE,AE,RE,FE,ME,LE,zE,BE,HE,UE,WE,VE,GE,qE,XE,KE,YE,QE,JE,ZE,eD,tD,nD,rD,oD,iD,aD,sD,lD,cD,uD,dD,pD,fD,mD,gD,hD,bD,yD,vD,_D,wD,kD,xD,SD,CD,ED,DD,OD,jD,$D,PD,ND,TD,ID,AD,RD,FD,MD,LD,zD,BD,HD,UD,WD,VD,GD,qD,XD,KD,YD,QD,JD,ZD,eO,tO,nO,rO,oO,iO,aO,sO,lO,cO,uO,dO,pO,fO,mO,gO,hO,bO,yO,vO,_O,wO,kO,xO,SO,CO,EO,DO,OO,jO,$O,PO,NO,TO,IO,AO,RO,FO,MO,LO,zO,BO,HO,UO,WO,VO,GO,qO,XO,KO,YO,QO,JO,ZO,ej,tj,nj,rj,oj,ij,aj,sj,lj,cj,uj,dj,pj,fj,mj,gj,hj,bj,yj,vj,_j,wj,kj,xj,Sj,Cj,Ej,Dj,Oj,jj,$j,Pj,Nj,Tj,Ij,Aj,Rj,Fj,Mj,Lj,zj,Bj,Hj,Uj,Wj,Vj,Gj,qj,Xj,Kj,Yj,Qj,Jj,Zj,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,d$,p$,f$,m$,g$,h$,b$,y$,v$,_$,w$,k$,x$,S$,C$,E$,D$,O$,j$,$$,P$,N$,T$,I$,A$,R$,F$,M$,L$,z$,B$,H$,U$,W$,V$,G$,q$,X$,K$,Y$,Q$,J$,Z$,eP,tP,nP,rP,oP,iP,aP,sP,lP,cP,uP,dP,pP,fP,mP,gP,hP,bP,yP,vP,_P,wP,kP,xP,SP,CP,EP,DP,OP,jP,$P,PP,NP,TP,IP,AP,RP,FP,MP,LP,zP,BP,HP,UP,WP,VP,GP,qP,XP,KP,YP,QP,JP,ZP,eN,tN,nN,rN,oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,mN,gN,hN,bN,yN,vN,_N,wN,kN,xN,SN,CN,EN,DN,ON,jN,$N,PN,NN,TN,IN,AN,RN,FN,MN,LN,zN,BN,HN,UN,WN,VN,GN,qN,XN,KN,YN,QN,JN,ZN,eT,tT,nT,rT,oT,iT,aT,sT,lT,cT,uT,dT,pT,fT,mT,gT,hT,bT,yT,vT,_T,wT,kT,xT,ST,CT,ET,DT,OT,jT,$T,PT,NT,TT,IT,AT,RT,FT,MT,LT,zT,BT,HT,UT,WT,VT,GT,qT,XT,KT,YT,QT,JT,ZT,eI,tI,nI,rI,oI,iI,aI,sI,lI,cI,uI,dI,pI,fI,mI,gI,hI,bI,yI,vI,_I,wI,kI,xI,SI,CI,EI,DI,OI,jI,$I,PI,NI,TI,II,AI,RI,FI,MI,LI,zI,BI,HI,UI,WI,VI,GI,qI,XI,KI,YI,QI,JI,ZI,eA,tA,nA,rA,oA,iA,aA,sA,lA,cA,uA,dA,pA,fA,mA,gA,hA,bA,yA,vA,_A,wA,kA,xA,SA,CA,EA,DA,OA,jA,$A,PA,NA,TA,IA,AA,RA,FA,MA,LA,zA,BA,HA,UA,WA,VA,GA,qA,XA,KA,YA,QA,JA,ZA,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,uR,dR,pR,fR,mR,gR,hR,bR,yR,vR,_R,wR,kR,xR,SR,CR,ER,DR,OR,jR,$R,PR,NR,TR,IR,AR,RR,FR,MR,LR,zR,BR,HR,UR,WR,VR,GR,qR,XR,KR,YR,QR,JR,ZR,eF,tF,nF,rF,oF,iF,aF,sF,lF,cF,uF,dF,pF,fF,mF,gF,hF,bF,yF,vF,_F,wF,kF,xF,SF,CF,EF,DF,OF,jF,$F,PF,NF,TF,IF,AF,RF,FF,MF,LF,zF,BF,HF,UF,WF,VF,GF,qF,XF,KF,YF,QF,JF,ZF,eM,tM,nM,rM,oM,iM,aM,sM,lM,cM,uM,dM,pM,fM,mM,gM,hM,bM,yM,vM,_M,wM,kM,xM,SM,CM,EM,DM,OM,jM,$M,PM,NM,TM,IM,AM,RM,FM,MM,LM,zM,BM,HM,UM,WM,VM,GM,qM,XM,KM,YM,QM,JM,ZM,eL,tL,nL,rL,oL,iL,aL,sL,lL,cL,uL,dL,pL,fL,mL,gL,hL,bL,yL,vL,_L,wL,kL,xL,SL,CL,EL,DL,OL,jL,$L,PL,NL,TL,IL,AL,RL,FL,ML,LL,zL,BL,HL,UL,WL,VL,GL,qL,XL,KL,YL,QL,JL,ZL,ez,tz,nz,rz,oz,iz,az,sz,lz,cz,uz,dz,pz,fz,mz,gz,hz,bz,yz,vz,_z,wz,kz,xz,Sz,Cz,Ez,Dz,Oz,jz,$z,Pz,Nz,Tz,Iz,Az,Rz,Fz,Mz,Lz,zz,Bz,Hz,Uz,Wz,Vz,Gz,qz,Xz,Kz,Yz,Qz,Jz,Zz,eB,tB,nB,rB,oB,iB,aB,sB,lB,cB,uB,dB,pB,fB,mB,gB,hB,bB,yB,vB,_B,wB,kB,xB,SB,CB,EB,DB,OB,jB,$B,PB,NB,TB,IB,AB,RB,FB,MB,LB,zB,BB,HB,UB,WB,VB,GB,qB,XB,KB,YB,QB,JB,ZB,eH,tH,nH,rH,oH,iH,aH,sH,lH,cH,uH,dH,pH,fH,mH,gH,hH,bH,yH,vH,_H,wH,kH,xH,SH,CH,EH,DH,OH,jH,$H,PH,NH,TH,IH,AH,RH,FH,MH,LH,zH,BH,HH,UH,WH,VH,GH,qH,XH,KH,YH,QH,JH,ZH,eU,tU,nU,rU,oU,iU,aU,sU,lU,cU,uU,dU,pU,fU,mU,gU,hU,bU,yU,vU,_U,wU,kU,xU,SU,CU,EU,DU,OU,jU,$U,PU,NU,TU,IU,AU,RU,FU,MU,LU,zU,BU,HU,UU,WU,VU,GU,qU,XU,KU,YU,QU,JU,ZU,eW,tW,nW,rW,oW,iW,aW,sW,lW,cW,uW,dW,pW,fW,mW,gW,hW,bW,yW,vW,_W,wW,kW,xW,SW,CW,EW,DW,OW,jW,$W,PW,NW,TW,IW,AW,RW,FW,MW,LW,zW,BW,HW,UW,WW,VW,GW,qW,XW,KW,YW,QW,JW,ZW,eV,tV,nV,rV,oV,iV,aV,sV,lV,cV,uV,dV,pV,fV,mV,gV,hV,bV,yV,vV,_V,wV,kV,xV,SV,CV,EV,DV,OV,jV,$V,PV,NV,TV,IV,AV,RV,FV,MV,LV,zV,BV,HV,UV,WV,VV,GV,qV,XV,KV,YV,QV,JV,ZV,eG,tG,nG,rG,oG,iG,aG,sG,lG,cG,uG,dG,pG,fG,mG,gG,hG,bG,yG,vG,_G,wG,kG,xG,SG,CG,EG,DG,OG,jG,$G,PG,NG,TG,IG,AG,RG,FG,MG,LG,zG,BG,HG,UG,WG,VG,GG,qG,XG,KG,YG,QG,JG,ZG,eq,tq,nq,rq,oq,iq,aq,sq,lq,cq,uq,dq,pq,fq,mq,gq,hq,bq,yq,vq,_q,wq,kq,xq,Sq,Cq,Eq,Dq,Oq,jq,$q,Pq,Nq,Tq,Iq,Aq,Rq,Fq,Mq,Lq,zq,Bq,Hq,Uq,Wq,Vq,Gq,qq,Xq,Kq,Yq,Qq,Jq,Zq,eX,tX,nX,rX,oX,iX,aX,sX,lX,cX,uX,dX,pX,fX,mX,gX,hX,bX,yX,vX,_X,wX,kX,xX,SX,CX,EX,DX,OX,jX,$X,PX,NX,TX,IX,AX,RX,FX,MX,LX,zX,BX,HX,UX,WX,VX,GX,qX,XX,KX,YX,QX,JX,ZX,eK,tK,nK,rK,oK,iK,aK,sK,lK,cK,uK,dK,pK,fK,mK,gK,hK,bK,yK,vK,_K,wK,kK,xK,SK,CK,EK,DK,OK,jK,$K,PK,NK,TK,IK,AK,RK,FK,MK,LK,zK,BK,HK,UK,WK,VK,GK,qK,XK,KK,YK,QK,JK,ZK,eY,tY,nY,rY,oY,iY,aY,sY,lY,cY,uY,dY,pY,fY,mY,gY,hY,bY,yY,vY,_Y,wY,kY,xY,SY,CY,EY,DY,OY,jY,$Y,PY,NY,TY,IY,AY,RY,FY,MY,LY,zY,BY,HY,UY,WY,VY,GY,qY,XY,KY,YY,QY,JY,ZY,eQ,tQ,nQ,rQ,oQ,iQ,aQ,sQ,lQ,cQ,uQ,dQ,pQ,fQ,mQ,gQ,hQ,bQ,yQ,vQ,_Q,wQ,kQ,xQ,SQ,CQ,EQ,DQ,OQ,jQ,$Q,PQ,NQ,TQ,IQ,AQ,RQ,FQ,MQ,LQ,zQ,BQ,HQ,UQ,WQ,VQ,GQ,qQ,XQ,KQ,YQ,QQ,JQ,ZQ,eJ,tJ,nJ,rJ,oJ,iJ,aJ,sJ,lJ,cJ,uJ,dJ,pJ,fJ,mJ,gJ,hJ,bJ,yJ,vJ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_J={exports:{}},wJ={},kJ={exports:{}},xJ={},SJ=Symbol.for("react.element"),CJ=Symbol.for("react.portal"),EJ=Symbol.for("react.fragment"),DJ=Symbol.for("react.strict_mode"),OJ=Symbol.for("react.profiler"),jJ=Symbol.for("react.provider"),$J=Symbol.for("react.context"),PJ=Symbol.for("react.forward_ref"),NJ=Symbol.for("react.suspense"),TJ=Symbol.for("react.memo"),IJ=Symbol.for("react.lazy"),AJ=Symbol.iterator,RJ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},FJ=Object.assign,MJ={};r.prototype.isReactComponent={},r.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=r.prototype,(nv=i.prototype=new o).constructor=i,FJ(nv,r.prototype),nv.isPureReactComponent=!0,rv=Array.isArray,ov=Object.prototype.hasOwnProperty,av={key:!0,ref:!0,__self:!0,__source:!0},sv=/\/+/g,uv={ReactCurrentDispatcher:lv={current:null},ReactCurrentBatchConfig:cv={transition:null},ReactCurrentOwner:iv={current:null}},xJ.Children={map:u,forEach:function(e,t,n){u(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return u(e,(function(){t++})),t},toArray:function(e){return u(e,(function(e){return e}))||[]},only:function(e){if(!s(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},xJ.Component=r,xJ.Fragment=EJ,xJ.Profiler=OJ,xJ.PureComponent=i,xJ.StrictMode=DJ,xJ.Suspense=NJ,xJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uv,xJ.cloneElement=function(e,t,n){var r,o,i,a,s,l,c;if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");if(r=FJ({},e.props),o=e.key,i=e.ref,a=e._owner,null!=t)for(l in void 0!==t.ref&&(i=t.ref,a=iv.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)ov.call(t,l)&&!av.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l]);if(1==(l=arguments.length-2))r.children=n;else if(1>>1],t);)e[n]=t,e[i]=r,i=n}function n(e){return 0===e.length?null:e[0]}function r(e){var t,n,r,i,a,s,l,c,u;if(0===e.length)return null;if(t=e[0],(n=e.pop())!==t){e[0]=n;e:for(r=0,i=e.length,a=i>>>1;ro(l=e[s],n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function i(e){for(var o=n(h);null!==o;){if(null===o.callback)r(h);else{if(!(o.startTime<=e))break;r(h),o.sortIndex=o.expirationTime,t(g,o)}o=n(h)}}function a(e){if(k=!1,i(e),!w)if(null!==n(g))w=!0,u(s);else{var t=n(h);null!==t&&d(a,t.startTime-e)}}function s(t,o){var s,c,u,p,f;w=!1,k&&(k=!1,S(O),O=-1),_=!0,s=v;try{for(i(o),y=n(g);null!==y&&(!(y.expirationTime>o)||t&&!l());)"function"==typeof(c=y.callback)?(y.callback=null,v=y.priorityLevel,u=c(y.expirationTime<=o),o=e.unstable_now(),"function"==typeof u?y.callback=u:y===n(g)&&r(g),i(o)):r(g),y=n(g);return null!==y?p=!0:(null!==(f=n(h))&&d(a,f.startTime-o),p=!1),p}finally{y=null,v=s,_=!1}}function l(){return!(e.unstable_now()-$e||125c?(r.sortIndex=i,t(h,r),null===n(g)&&r===n(h)&&(k?(S(O),O=-1):k=!0,d(a,i-c))):(r.sortIndex=l,t(g,r),w||_||(w=!0,u(s))),r},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var t=v;return function(){var n=v;v=t;try{return e.apply(this,arguments)}finally{v=n}}}}(kv={}),wv.exports=kv,xv=dv,Sv=wv.exports,Cv=new Set,Ev={},Dv=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ov=Object.prototype.hasOwnProperty,jv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$v={},Pv={},Nv={},"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Nv[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Nv[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Nv[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Nv[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Nv[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Nv[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Nv[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Nv[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Nv[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)})),Tv=/[\-:]([a-z])/g,"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Tv,b);Nv[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Tv,b);Nv[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Tv,b);Nv[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Nv[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),Nv.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Nv[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)})),Iv=xv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Av=Symbol.for("react.element"),Rv=Symbol.for("react.portal"),Fv=Symbol.for("react.fragment"),Mv=Symbol.for("react.strict_mode"),Lv=Symbol.for("react.profiler"),zv=Symbol.for("react.provider"),Bv=Symbol.for("react.context"),Hv=Symbol.for("react.forward_ref"),Uv=Symbol.for("react.suspense"),Wv=Symbol.for("react.suspense_list"),Vv=Symbol.for("react.memo"),Gv=Symbol.for("react.lazy"),qv=Symbol.for("react.offscreen"),Xv=Symbol.iterator,Kv=Object.assign,Qv=!1,Jv=Array.isArray,SQ=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Zv=Zv||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=Zv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},e_="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t){MSApp.execUnsafeLocalFunction((function(){return SQ(e,t)}))}:SQ,t_={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n_=["Webkit","ms","Moz","O"],Object.keys(t_).forEach((function(e){n_.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),t_[t]=t_[e]}))})),r_=Kv({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),o_=null,i_=null,a_=null,s_=null,l_=!1,c_=!1,Dv)try{u_={},Object.defineProperty(u_,"passive",{get:function(){c_=!0}}),window.addEventListener("test",u_,u_),window.removeEventListener("test",u_,u_)}catch(SQ){c_=!1}d_=!1,p_=null,f_=!1,m_=null,g_={onError:function(e){d_=!0,p_=e}},h_=Sv.unstable_scheduleCallback,b_=Sv.unstable_cancelCallback,y_=Sv.unstable_shouldYield,v_=Sv.unstable_requestPaint,__=Sv.unstable_now,w_=Sv.unstable_getCurrentPriorityLevel,k_=Sv.unstable_ImmediatePriority,x_=Sv.unstable_UserBlockingPriority,S_=Sv.unstable_NormalPriority,C_=Sv.unstable_LowPriority,E_=Sv.unstable_IdlePriority,D_=null,O_=null,j_=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-($_(e)/P_|0)|0},$_=Math.log,P_=Math.LN2,N_=64,T_=4194304,I_=0,z_=!1,B_=[],H_=null,U_=null,W_=null,V_=new Map,G_=new Map,q_=[],X_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),K_=Iv.ReactCurrentBatchConfig,Y_=!0,Q_=null,J_=null,Z_=null,ew=null,tw={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nw=Ae(tw),rw=Kv({},tw,{view:0,detail:0}),ow=Ae(rw),lw=Kv({},rw,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fe,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sw&&(sw&&"mousemove"===e.type?(iw=e.screenX-sw.screenX,aw=e.screenY-sw.screenY):aw=iw=0,sw=e),iw)},movementY:function(e){return"movementY"in e?e.movementY:aw}}),cw=Ae(lw),uw=Kv({},lw,{dataTransfer:0}),dw=Ae(uw),pw=Kv({},rw,{relatedTarget:0}),fw=Ae(pw),mw=Kv({},tw,{animationName:0,elapsedTime:0,pseudoElement:0}),gw=Ae(mw),hw=Kv({},tw,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bw=Ae(hw),yw=Kv({},tw,{data:0}),vw=Ae(yw),_w={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ww={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},xw=Kv({},rw,{key:function(e){if(e.key){var t=_w[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ne(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ww[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fe,charCode:function(e){return"keypress"===e.type?Ne(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ne(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sw=Ae(xw),Cw=Kv({},lw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ew=Ae(Cw),Dw=Kv({},rw,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fe}),Ow=Ae(Dw),jw=Kv({},tw,{propertyName:0,elapsedTime:0,pseudoElement:0}),$w=Ae(jw),Pw=Kv({},lw,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nw=Ae(Pw),Tw=[9,13,27,32],Iw=Dv&&"CompositionEvent"in window,Aw=null,Dv&&"documentMode"in document&&(Aw=document.documentMode),Rw=Dv&&"TextEvent"in window&&!Aw,Fw=Dv&&(!Iw||Aw&&8=Aw),Mw=String.fromCharCode(32),Lw=!1,zw=!1,Bw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Hw=null,Uw=null,Ww=!1,Dv&&(Dv?((Gw="oninput"in document)||((qw=document.createElement("div")).setAttribute("oninput","return;"),Gw="function"==typeof qw.oninput),Vw=Gw):Vw=!1,Ww=Vw&&(!document.documentMode||9=document.documentMode,Yw=null,Qw=null,Jw=null,Zw=!1,ek={animationend:it("Animation","AnimationEnd"),animationiteration:it("Animation","AnimationIteration"),animationstart:it("Animation","AnimationStart"),transitionend:it("Transition","TransitionEnd")},tk={},nk={},Dv&&(nk=document.createElement("div").style,"AnimationEvent"in window||(delete ek.animationend.animation,delete ek.animationiteration.animation,delete ek.animationstart.animation),"TransitionEvent"in window||delete ek.transitionend.transition),rk=at("animationend"),ok=at("animationiteration"),ik=at("animationstart"),ak=at("transitionend"),sk=new Map,lk="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");for(ck=0;ck{const n=dv.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:a,...s},l)=>{return dv.createElement("svg",{ref:l,...DS,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>dv.createElement(e,t))),...(Array.isArray(a)?a:[a])||[]]);var c}));return n.displayName=`${e}`,n},WJ=UJ("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),VJ=UJ("Bug",[["rect",{width:"8",height:"14",x:"8",y:"6",rx:"4",key:"hq8nra"}],["path",{d:"m19 7-3 2",key:"fmg8ec"}],["path",{d:"m5 7 3 2",key:"dkxqes"}],["path",{d:"m19 19-3-2",key:"1hbhi4"}],["path",{d:"m5 19 3-2",key:"dvt2ee"}],["path",{d:"M20 13h-4",key:"1agfp2"}],["path",{d:"M4 13h4",key:"1bwh8b"}],["path",{d:"m10 4 1 2",key:"1pot59"}],["path",{d:"m14 4-1 2",key:"m8sn0o"}]]),GJ=UJ("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),qJ=UJ("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),XJ=UJ("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),KJ=UJ("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),YJ=UJ("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),QJ=UJ("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9",key:"c89w8i"}],["path",{d:"M12 12v3",key:"158kv8"}]]),JJ=UJ("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),ZJ=UJ("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),eZ=UJ("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),tZ=UJ("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),nZ=UJ("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),rZ=UJ("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),oZ=UJ("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),iZ=UJ("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),aZ=UJ("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),sZ=UJ("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),lZ=UJ("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),cZ=UJ("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),uZ=UJ("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),dZ=UJ("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),pZ=UJ("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),fZ=UJ("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),mZ=UJ("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);OS=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){var t,n;if(this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this)),t=this.tags[this.tags.length-1],this.isSpeedy){n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case IS:e.return=ra(e.value,e.length);break;case RS:return ea([Ai(e,{value:Di(e.value,"@","@"+PS)})],r);case TS:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ea([Ai(e,{props:[Di(t,/:(read-\w+)/,":"+$S+"$1")]})],r);case"::placeholder":return ea([Ai(e,{props:[Di(t,/:(plac\w+)/,":"+PS+"input-$1")]}),Ai(e,{props:[Di(t,/:(plac\w+)/,":"+$S+"$1")]}),Ai(e,{props:[Di(t,/:(plac\w+)/,jS+"input-$1")]})],r)}return""}))}}],tC=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,m,g=e.key;return"css"===g&&(t=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))),n=e.stylisPlugins||eC,r={},i=[],o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+g+' "]'),(function(e){var t,n=e.getAttribute("data-emotion").split(" ");for(t=1;t=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s,{name:c,styles:o,next:uC}},pC=function(e,t,n){var r=e.key+"-"+t.name;!1!==n||void 0!==e.registered[r]||(e.registered[r]=t.styles)},fC=function(e,t,n){var r,o;if(pC(e,t,n),r=e.key+"-"+t.name,void 0===e.inserted[t.name]){o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},mC=function(e){var t,n,r,o,i=tC(e);return i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0,t=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1&&void 0!==n?n:{},m=arguments.length>2&&void 0!==r?r:{root:!0,parentSelectors:[]},g=m.root,h=m.injectHash,b=m.parentSelectors,y=f.hashId,v=f.layer;return i=f.hashPriority,s=void 0===(a=f.transformers)?[]:a,l="",c={},u=function e(t,n){var r=arguments.length>1&&void 0!==n?n:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]),u.forEach((function(t){var n,r="string"!=typeof t||g?t:{};"string"==typeof r?l+="".concat(r,"\n"):r._keyframe?o(r):(n=s.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r),Object.keys(n).forEach((function(t){var r,a,s,u,d,p,m,v,_=n[t];if("object"!==yi(_)||!_||"animationName"===t&&_._keyframe||function(e){return"object"===yi(e)&&e&&("_skip_check_"in e||gD in e)}(_)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;VE[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(o(t),r=t.getName(y)),l+="".concat(n,":").concat(r,";")};v=null!==(m=null==_?void 0:_.value)&&void 0!==m?m:_,"object"===yi(_)&&null!=_&&_[gD]&&Array.isArray(v)?v.forEach((function(n){e(t,n)})):e(t,v)}else r=!1,a=t.trim(),s=!1,(g||h)&&y?a.startsWith("@")?r=!0:a=function(e,t,n){var r,o;return t?(r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(ba(n.slice(1))).join(" ")})).join(",")):e}(t,y,i):!g||y||"&"!==a&&""!==a||(a="",s=!0),d=(u=za(e(_,f,{root:s,injectHash:r,parentSelectors:[].concat(ba(b),[a])}),2))[0],p=u[1],c=va(va({},c),p),l+="".concat(a).concat(d)})))})),g?v&&function(){var e,t,n,r,o,i;return void 0===IE&&(e="@layer ".concat(NE," { .").concat(NE,' { content: "').concat(TE,'"!important; } }'),t=function(e){e.className=NE},IE=!!Oa()&&(Ra(e,NE),(o=document.createElement("div")).style.position="fixed",o.style.left="0",o.style.top="0",null==t||t(o),document.body.appendChild(o),i=null===(n=getComputedStyle(o).content)||void 0===n?void 0:n.includes(TE),null===(r=o.parentNode)||void 0===r||r.removeChild(o),Aa(NE),i)),IE}()&&(p=(d=v.split(","))[d.length-1].trim(),l="@layer ".concat(p," {").concat(l,"}"),d.length>1&&(l="@layer ".concat(v,"{%%%:%}").concat(l))):l="{".concat(l,"}"),[l,c]},bD=function(){function e(t,n){xi(this,e),_i(this,"name",void 0),_i(this,"style",void 0),_i(this,"_keyframe",!0),this.name=t,this.style=n}return Ci(e,[{key:"getName",value:function(e){var t=arguments.length>0&&void 0!==e?e:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e}(),yD=function(){function e(){xi(this,e),_i(this,"cache",void 0),_i(this,"keys",void 0),_i(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ci(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t,i={map:this.cache};return e.forEach((function(e){var t,n;i=i?null===(t=i)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(n=i)&&void 0!==n&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),null===(r=i)||void 0===r?void 0:r.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 r,o,i,a=this;this.has(t)||(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET&&(r=this.keys.reduce((function(e,t){var n=za(e,2)[1];return a.internalGet(t)[1]0},e.prototype.connect_=function(){jD&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),TD?(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(){jD&&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;ND.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),AD=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n0},e}(),HD="undefined"!=typeof WeakMap?new WeakMap:new OD,UD=function e(t){var n,r;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.");n=ID.getInstance(),r=new BD(t,n,this),HD.set(this,r)},["observe","unobserve","disconnect"].forEach((function(e){UD.prototype[e]=function(){var t;return(t=HD.get(this))[e].apply(t,arguments)}})),WD=void 0!==$D.ResizeObserver?$D.ResizeObserver:UD,VD=new Map,GD=new WD((function(e){e.forEach((function(e){var t,n=e.target;null===(t=VD.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),qD=function(){function e(){return xi(this,e),t.apply(this,arguments)}js(e,dv.Component);var t=Ts(e);return Ci(e,[{key:"render",value:function(){return this.props.children}}]),e}(),XD=dv.createContext(null),KD=dv.forwardRef(Ws),YD="rc-observer-key",(QD=dv.forwardRef(Vs)).Collection=function(e){var t=e.children,n=e.onBatchResize,r=dv.useRef(0),o=dv.useRef([]),i=dv.useContext(XD),a=dv.useCallback((function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return dv.createElement(XD.Provider,{value:a},t)},JD=function(e){return+setTimeout(e,16)},ZD=function(e){return clearTimeout(e)},"undefined"!=typeof window&&"requestAnimationFrame"in window&&(JD=function(e){return window.requestAnimationFrame(e)},ZD=function(e){return window.cancelAnimationFrame(e)}),eO=0,tO=new Map,(nO=function(e,t){var n;return n=eO+=1,function t(r){if(0===r)qs(n),e();else{var o=JD((function(){t(r-1)}));tO.set(n,o)}}(arguments.length>1&&void 0!==t?t:1),n}).cancel=function(e){var t=tO.get(e);return qs(t),ZD(t)};const vZ=dv.createContext({});rO="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const _Z=dv.createContext(void 0),wZ={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},kZ={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"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},wZ)},xZ="${label} is not a valid ${type}",SZ={locale:"en",Pagination:{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"},DatePicker:kZ,TimePicker:wZ,Calendar:kZ,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:xZ,method:xZ,array:xZ,object:xZ,number:xZ,date:xZ,boolean:xZ,integer:xZ,float:xZ,regexp:xZ,email:xZ,url:xZ,hex:xZ},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let CZ=Object.assign({},SZ.Modal);const EZ=dv.createContext(void 0),DZ=(e,t)=>{const n=dv.useContext(EZ);return[dv.useMemo((()=>{var r;const o=t||SZ[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),dv.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?SZ.locale:e}),[n])]},OZ=e=>{const{locale:t={},children:n}=e;dv.useEffect((()=>(el(t&&t.Modal),()=>{el()})),[t]);const r=dv.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return dv.createElement(EZ.Provider,{value:r},n)},jZ=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],$Z="5.7.3";oO={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},iO="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),aO="[\\s|\\(]+(".concat(iO,")[,|\\s]+(").concat(iO,")[,|\\s]+(").concat(iO,")\\s*\\)?"),sO="[\\s|\\(]+(".concat(iO,")[,|\\s]+(").concat(iO,")[,|\\s]+(").concat(iO,")[,|\\s]+(").concat(iO,")\\s*\\)?"),lO={CSS_UNIT:new RegExp(iO),rgb:new RegExp("rgb"+aO),rgba:new RegExp("rgba"+sO),hsl:new RegExp("hsl"+aO),hsla:new RegExp("hsla"+sO),hsv:new RegExp("hsv"+aO),hsva:new RegExp("hsva"+sO),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},cO=function(){function e(t,n){var r,o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t,o=fl(t),this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ol(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=cl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=cl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=sl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=sl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ul(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[al(Math.round(e).toString(16)),al(Math.round(t).toString(16)),al(Math.round(n).toString(16)),al((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*nl(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*nl(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){var e,t,n,r;if(0===this.a)return"transparent";if(this.a<1)return!1;for(e="#"+ul(this.r,this.g,this.b,!1),t=0,n=Object.entries(oO);t=0)||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=rl(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=rl(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=rl(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=rl(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){var r,o,i;return void 0===n&&(n=50),r=this.toRgb(),o=new e(t).toRgb(),new e({r:(o.r-r.r)*(i=n/100)+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){var r,o,i;for(void 0===t&&(t=6),void 0===n&&(n=30),i=[this],(r=this.toHsl()).h=(r.h-((o=360/n)*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){var n,r,o,i,a,s;for(void 0===t&&(t=6),r=(n=this.toHsv()).h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){var n,r=this.toHsl(),o=r.h,i=[this],a=360/t;for(n=1;n{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},NZ={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"},TZ=Object.assign(Object.assign({},NZ),{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}),IZ=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},AZ=(e,t)=>new cO(e).setAlpha(t).toRgbString(),RZ=(e,t)=>new cO(e).darken(t).toHexString(),FZ=e=>{const t=_l(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]}},MZ=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:AZ(r,.88),colorTextSecondary:AZ(r,.65),colorTextTertiary:AZ(r,.45),colorTextQuaternary:AZ(r,.25),colorFill:AZ(r,.15),colorFillSecondary:AZ(r,.06),colorFillTertiary:AZ(r,.04),colorFillQuaternary:AZ(r,.02),colorBgLayout:RZ(n,4),colorBgContainer:RZ(n,0),colorBgElevated:RZ(n,0),colorBgSpotlight:AZ(r,.85),colorBorder:RZ(n,15),colorBorderSecondary:RZ(n,6)}},LZ=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=e*Math.pow(2.71828,(n-1)/5),o=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},zZ=Ss(kl),BZ={token:TZ,hashed:!0},HZ=LJ.createContext(BZ);kO=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rt||(e?`ant-${e}`:"ant"),iconPrefixCls:UZ}),VZ=(e,t,n,r,o)=>{const i=e/2,a=i,s=1*n/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,f=2*i-s,m=l,g=2*i-0,h=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${m} A ${n} ${n} 0 0 0 ${g} ${h} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},GZ={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},qZ=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),XZ=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),KZ=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},YZ=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),QZ=e=>({"&:focus-visible":Object.assign({},YZ(e))}),JZ="undefined"!=typeof CSSINJS_STATISTIC;let ZZ=!0;const e0=`-ant-${Date.now()}-${Math.random()}`,t0=dv.createContext(!1),n0=e=>{let{children:t,disabled:n}=e;const r=dv.useContext(t0);return dv.createElement(t0.Provider,{value:null!=n?n:r},t)},r0=t0,o0=dv.createContext(void 0),i0=e=>{let{children:t,size:n}=e;const r=dv.useContext(o0);return dv.createElement(o0.Provider,{value:n||r},t)},a0=o0;xO=["children"],SO=dv.createContext({}),CO=function(){function e(){return xi(this,e),t.apply(this,arguments)}js(e,dv.Component);var t=Ts(e);return Ci(e,[{key:"render",value:function(){return this.props.children}}]),e}(),EO="none",DO="appear",OO="enter",jO="leave",$O="none",PO="prepare",NO="start",TO="active",IO="end",AO="prepared",EQ=Oa(),DQ="undefined"!=typeof window?window:{},OQ={animationend:Rl("Animation","AnimationEnd"),transitionend:Rl("Transition","TransitionEnd")},EQ&&("AnimationEvent"in DQ||delete OQ.animationend.animation,"TransitionEvent"in DQ||delete OQ.transitionend.transition),RO=OQ,FO={},Oa()&&(MO=document.createElement("div"),FO=MO.style),LO={},zO=Fl("animationend"),BO=Fl("transitionend"),HO=!(!zO||!BO),UO=zO||"animationend",WO=BO||"transitionend",VO=Oa()?dv.useLayoutEffect:dv.useEffect,GO=[PO,NO,TO,IO],qO=[PO,AO];const s0=(PQ=jQ=HO,"object"===yi(jQ)&&(PQ=jQ.transitionSupport),($Q=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.visible,c=void 0===l||l,u=e.removeOnLeave,d=void 0===u||u,p=e.forceRender,f=e.children,m=e.motionName,g=e.leavedClassName,h=e.eventProps,b=function(e,t){return!(!e.motionName||!PQ||!1===t)}(e,dv.useContext(SO).motion),y=dv.useRef(),v=dv.useRef(),_=function(e,t,n,r){function o(){return n()}function i(){A(EO,!0),M(null,!0)}function a(e){var t,n,r=o();e&&!e.deadline&&e.target!==r||(t=B.current,I===DO&&t?n=null==E?void 0:E(r,e):I===OO&&t?n=null==D?void 0:D(r,e):I===jO&&t&&(n=null==O?void 0:O(r,e)),I!==EO&&t&&!1!==n&&i())}var s,l,c=r.motionEnter,u=void 0===c||c,d=r.motionAppear,p=void 0===d||d,f=r.motionLeave,m=void 0===f||f,g=r.motionDeadline,h=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,v=r.onLeavePrepare,_=r.onAppearStart,w=r.onEnterStart,k=r.onLeaveStart,x=r.onAppearActive,S=r.onEnterActive,C=r.onLeaveActive,E=r.onAppearEnd,D=r.onEnterEnd,O=r.onLeaveEnd,j=r.onVisibleChanged,$=za(Ol(),2),P=$[0],N=$[1],T=za(Ol(EO),2),I=T[0],A=T[1],R=za(Ol(null),2),F=R[0],M=R[1],L=dv.useRef(!1),z=dv.useRef(null),B=dv.useRef(!1),H=za(function(e){function t(e){e&&(e.removeEventListener(WO,n),e.removeEventListener(UO,n))}var n,r=dv.useRef(),o=dv.useRef(e);return o.current=e,n=dv.useCallback((function(e){o.current(e)}),[]),dv.useEffect((function(){return function(){t(r.current)}}),[]),[function(e){r.current&&r.current!==e&&t(r.current),e&&e!==r.current&&(e.addEventListener(WO,n),e.addEventListener(UO,n),r.current=e)},t]}(a),1)[0],U=function(e){var t,n,r;switch(e){case DO:return _i(t={},PO,b),_i(t,NO,_),_i(t,TO,x),t;case OO:return _i(n={},PO,y),_i(n,NO,w),_i(n,TO,S),n;case jO:return _i(r={},PO,v),_i(r,NO,k),_i(r,TO,C),r;default:return{}}},W=dv.useMemo((function(){return U(I)}),[I]),V=function(e,t,n){var r=za(Ol($O),2),o=r[0],i=r[1],a=function(){function e(){nO.cancel(t.current)}var t=dv.useRef(null);return dv.useEffect((function(){return function(){e()}}),[]),[function n(r,o){var i,a=arguments.length>1&&void 0!==o?o:2;e(),i=nO((function(){a<=1?r({isCanceled:function(){return i!==t.current}}):n(r,a-1)})),t.current=i},e]}(),s=za(a,2),l=s[0],c=s[1],u=t?qO:GO;return VO((function(){var e,t,r;o!==$O&&o!==IO&&(e=u.indexOf(o),t=u[e+1],!1===(r=n(o))?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})))}),[e,o]),dv.useEffect((function(){return function(){c()}}),[]),[function(){i(PO,!0)},o]}(I,!e,(function(e){var t,n;return e===PO?!!(t=W[PO])&&t(o()):(X in W&&M((null===(n=W[X])||void 0===n?void 0:n.call(W,o(),null))||null),X===TO&&(H(o()),g>0&&(clearTimeout(z.current),z.current=setTimeout((function(){a({deadline:!0})}),g))),X===AO&&i(),!0)})),G=za(V,2),q=G[0],X=G[1],K=Ll(X);return B.current=K,VO((function(){var n,r,o;N(t),n=L.current,L.current=!0,!n&&t&&p&&(r=DO),n&&t&&u&&(r=OO),(n&&!t&&m||!n&&h&&!t&&m)&&(r=jO),o=U(r),r&&(e||o[PO])?(A(r),q()):A(EO)}),[t]),dv.useEffect((function(){(I===DO&&!p||I===OO&&!u||I===jO&&!m)&&A(EO)}),[p,u,m]),dv.useEffect((function(){return function(){L.current=!1,clearTimeout(z.current)}}),[]),s=dv.useRef(!1),dv.useEffect((function(){P&&(s.current=!0),void 0!==P&&I===EO&&((s.current||P)&&(null==j||j(P)),s.current=!0)}),[P,I]),l=F,W[PO]&&X===NO&&(l=va({transition:"none"},l)),[I,X,l,null!=P?P:t]}(b,c,(function(){try{return y.current instanceof HTMLElement?y.current:zs(v.current)}catch(HQ){return null}}),e),w=za(_,4),k=w[0],x=w[1],S=w[2],C=w[3],E=dv.useRef(C);return C&&(E.current=!0),n=dv.useCallback((function(e){y.current=e,As(t,e)}),[t]),o=va(va({},h),{},{visible:c}),f?k===EO?r=C?f(va({},o),n):!d&&E.current&&g?f(va(va({},o),{},{className:g}),n):p||!d&&!g?f(va(va({},o),{},{style:{display:"none"}}),n):null:(x===PO?a="prepare":Ll(x)?a="active":x===NO&&(a="start"),s=Ml(m,"".concat(k,"-").concat(a)),r=f(va(va({},o),{},{className:yZ(Ml(m,k),(i={},_i(i,s,s&&a),_i(i,m,"string"==typeof m),i)),style:S}),n)):r=null,dv.isValidElement(r)&&Ms(r)&&(r.ref||(r=dv.cloneElement(r,{ref:n}))),dv.createElement(CO,{ref:v},r)}))).displayName="CSSMotion",$Q);XO="add",KO="keep",YO="remove",QO="removed",JO=["component","children","onVisibleChanged","onAllRemoved"],ZO=["status"],ej=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const l0=function(e,t){var n=arguments.length>1&&void 0!==t?t:s0,r=function(){function e(){var n,r,o,i;for(xi(this,e),r=arguments.length,o=new Array(r),i=0;i1&&void 0!==t?t:[],o=[],i=0,a=r.length,s=Bl(arguments.length>0&&void 0!==e?e:[]),l=Bl(r);return s.forEach((function(e){var t,n,r=!1;for(t=i;t1})).forEach((function(e){(o=o.filter((function(t){return t.key!==e||t.status!==YO}))).forEach((function(t){t.key===e&&(t.status=KO)}))})),o}(n,r);return{keyEntities:o.filter((function(e){var t=n.find((function(t){return e.key===t.key}));return!t||t.status!==QO||e.status!==YO}))}}}]),e}();return _i(r,"defaultProps",{component:"div"}),r}(HO);tj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${Ul()}-${e}`:Ul()),getIconPrefixCls:Wl,getRootPrefixCls:()=>u0||Ul(),getTheme:()=>p0}),m0=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:f,popupOverflow:m,legacyLocale:g,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:v,segmented:_,statistic:w,spin:k,calendar:x,carousel:S,cascader:C,collapse:E,typography:D,checkbox:O,descriptions:j,divider:$,drawer:P,skeleton:N,steps:T,image:I,layout:A,list:R,mentions:F,modal:M,progress:L,result:z,slider:B,breadcrumb:H,menu:U,pagination:W,input:V,empty:G,badge:q,radio:X,rate:K,switch:Y,transfer:Q,avatar:J,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue}=e,de=dv.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||h.getPrefixCls("");return t?`${o}-${t}`:o}),[h.getPrefixCls,e.prefixCls]),pe=b||h.iconPrefixCls||UZ,fe=pe!==h.iconPrefixCls,me=n||h.csp,ge=((e,t)=>{const[n,r]=El();return xs({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${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"}})}]))})(pe,me),he=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:BZ;return wa((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Ea(e,t[n],!0)))))}(y,h.theme),be={csp:me,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=f?f:p,popupOverflow:m,getPrefixCls:de,iconPrefixCls:pe,theme:he,segmented:_,statistic:w,spin:k,calendar:x,carousel:S,cascader:C,collapse:E,typography:D,checkbox:O,descriptions:j,divider:$,drawer:P,skeleton:N,steps:T,image:I,input:V,layout:A,list:R,mentions:F,modal:M,progress:L,result:z,slider:B,breadcrumb:H,menu:U,pagination:W,empty:G,badge:q,radio:X,rate:K,switch:Y,transfer:Q,avatar:J,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue},ye=Object.assign({},h);Object.keys(be).forEach((e=>{void 0!==be[e]&&(ye[e]=be[e])})),c0.forEach((t=>{const n=e[t];n&&(ye[t]=n)}));const ve=wa((()=>ye),ye,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),_e=dv.useMemo((()=>({prefixCls:pe,csp:me})),[pe,me]);let we=fe?ge(t):t;const ke=dv.useMemo((()=>{var e,t,n,r;return Zs((null===(e=SZ.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ve.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=ve.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[ve,null==a?void 0:a.validateMessages]);Object.keys(ke).length>0&&(we=dv.createElement(_Z.Provider,{value:ke},t)),s&&(we=dv.createElement(OZ,{locale:s,_ANT_MARK__:"internalMark"},we)),(pe||me)&&(we=dv.createElement(vZ.Provider,{value:_e},we)),l&&(we=dv.createElement(i0,{size:l},we)),we=dv.createElement(Hl,null,we);const xe=dv.useMemo((()=>{const e=he||{},{algorithm:t,token:n}=e,r=tj(e,["algorithm","token"]),o=t&&(!Array.isArray(t)||t.length>0)?Ss(t):void 0;return Object.assign(Object.assign({},r),{theme:o,token:Object.assign(Object.assign({},TZ),n)})}),[he]);return y&&(we=dv.createElement(HZ.Provider,{value:xe},we)),void 0!==v&&(we=dv.createElement(n0,{disabled:v},we)),dv.createElement(WZ.Provider,{value:ve},we)},g0=e=>{const t=dv.useContext(WZ),n=dv.useContext(EZ);return dv.createElement(m0,Object.assign({parentContext:t,legacyLocale:n},e))};g0.ConfigContext=WZ,g0.SizeContext=a0,g0.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(u0=t),void 0!==n&&(d0=n),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new cO(e),i=_l(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new cO(t.primaryColor),i=_l(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new cO(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Oa()&&Ra(n,`${e0}-dynamic-theme`)}(Ul(),r):p0=r)},g0.useConfig=function(){return{componentDisabled:dv.useContext(r0),componentSize:dv.useContext(a0)}},Object.defineProperty(g0,"SizeContext",{get:()=>a0});const h0={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"};nj=function(e){var t=dv.useContext(vZ),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\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&&(o=o.replace(/anticon/g,r)),dv.useEffect((function(){var t=Gl(e.current);Ra(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},rj=["icon","className","onClick","style","primaryColor","secondaryColor"],oj={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},(ij=function(e){var t,n,r,o=e.icon,i=e.className,a=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=wi(e,rj),d=dv.useRef(),p=oj;return l&&(p={primaryColor:l,secondaryColor:c||Yl(l)}),nj(d),n=ql(o),r="icon should be icon definiton, but got ".concat(o),Ca(n,"[@ant-design/icons] ".concat(r)),ql(o)?((t=o)&&"function"==typeof t.icon&&(t=va(va({},t),{},{icon:t.icon(p.primaryColor,p.secondaryColor)})),Kl(t.icon,"svg-".concat(t.name),va(va({className:i,onClick:a,style:s,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))):null}).displayName="IconReact",ij.getTwoToneColors=function(){return va({},oj)},ij.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;oj.primaryColor=t,oj.secondaryColor=n||Yl(t),oj.calculated=!!n};const b0=ij;aj=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"],Jl(wO.primary),(sj=dv.forwardRef((function(e,t){var n,r,o,i,a,s=e.className,l=e.icon,c=e.spin,u=e.rotate,d=e.tabIndex,p=e.onClick,f=e.twoToneColor,m=wi(e,aj),g=dv.useContext(vZ),h=g.prefixCls,b=void 0===h?"anticon":h,y=yZ(g.rootClassName,b,(_i(n={},"".concat(b,"-").concat(l.name),!!l.name),_i(n,"".concat(b,"-spin"),!!c||"loading"===l.name),n),s),v=d;return void 0===v&&p&&(v=-1),r=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,i=(o=za(Ql(f),2))[0],a=o[1],dv.createElement("span",la({role:"img","aria-label":l.name},m,{ref:t,tabIndex:v,onClick:p,className:y}),dv.createElement(b0,{icon:l,primaryColor:i,secondaryColor:a,style:r}))}))).displayName="AntdIcon",sj.getTwoToneColor=function(){var e=b0.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},sj.setTwoToneColor=Jl;const y0=sj,v0=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:h0}))})),_0={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},w0=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:_0}))})),k0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},x0=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:k0}))})),S0={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"},C0=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:S0}))})),E0={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"},D0=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:E0}))}));lj="".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 spellCheck 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]+/),cj="aria-",uj="data-";const{isValidElement:O0}=zJ,j0=e=>"object"==typeof e&&null!=e&&1===e.nodeType,$0=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,P0=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,T0=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},I0=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!j0(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let m=e;for(;j0(m)&&d(m);){if(m=T0(m),m===p){f.push(m);break}null!=m&&m===document.body&&P0(m)&&!P0(document.documentElement)||null!=m&&P0(m,u)&&f.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:v,width:_,top:w,right:k,bottom:x,left:S}=e.getBoundingClientRect();let C="start"===s||"nearest"===s?w:"end"===s?x:w+v/2,E="center"===l?S+_/2:"end"===l?k:S;const D=[];for(let O=0;O=0&&S>=0&&x<=h&&k<=g&&w>=r&&x<=i&&S>=c&&k<=o)return D;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),j=parseInt(u.borderRightWidth,10),$=parseInt(u.borderBottomWidth,10);let P=0,N=0;const T="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-j:0,I="offsetHeight"in e?e.offsetHeight-e.clientHeight-m-$:0,A="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,R="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)P="start"===s?C:"end"===s?C-h:"nearest"===s?N0(y,y+h,h,m,$,y+C,y+C+v,v):C-h/2,N="start"===l?E:"center"===l?E-g/2:"end"===l?E-g:N0(b,b+g,g,d,j,b+E,b+E+_,_),P=Math.max(0,P+y),N=Math.max(0,N+b);else{P="start"===s?C-r-m:"end"===s?C-i+$+I:"nearest"===s?N0(r,i,t,m,$+I,C,C+v,v):C-(r+t/2)+I/2,N="start"===l?E-c-d:"center"===l?E-(c+n/2)+T/2:"end"===l?E-o+j+T:N0(c,o,n,d,j+T,E,E+_,_);const{scrollLeft:a,scrollTop:u}=e;P=Math.max(0,Math.min(u+P/R,e.scrollHeight-t/R+I)),N=Math.max(0,Math.min(a+N/A,e.scrollWidth-n/A+T)),C+=u-P,E+=a-N}D.push({el:e,top:P,left:N})}return D},A0=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};dj={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>=dj.F1&&t<=dj.F12)return!1;switch(t){case dj.ALT:case dj.CAPS_LOCK:case dj.CONTEXT_MENU:case dj.CTRL:case dj.DOWN:case dj.END:case dj.ESC:case dj.HOME:case dj.INSERT:case dj.LEFT:case dj.MAC_FF_META:case dj.META:case dj.NUMLOCK:case dj.NUM_CENTER:case dj.PAGE_DOWN:case dj.PAGE_UP:case dj.PAUSE:case dj.PRINT_SCREEN:case dj.RIGHT:case dj.SHIFT:case dj.UP:case dj.WIN_KEY:case dj.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=dj.ZERO&&e<=dj.NINE)return!0;if(e>=dj.NUM_ZERO&&e<=dj.NUM_MULTIPLY)return!0;if(e>=dj.A&&e<=dj.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case dj.SPACE:case dj.QUESTION_MARK:case dj.NUM_PLUS:case dj.NUM_MINUS:case dj.NUM_PERIOD:case dj.NUM_DIVISION:case dj.SEMICOLON:case dj.DASH:case dj.EQUALS:case dj.COMMA:case dj.PERIOD:case dj.SLASH:case dj.APOSTROPHE:case dj.SINGLE_QUOTE:case dj.OPEN_SQUARE_BRACKET:case dj.BACKSLASH:case dj.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},pj=dv.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.style,i=e.className,a=e.duration,s=void 0===a?4.5:a,l=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=void 0===d?"x":d,f=e.props,m=e.onClick,g=e.onNoticeClose,h=e.times,b=za(dv.useState(!1),2),y=b[0],v=b[1],_=function(){g(l)};return dv.useEffect((function(){if(!y&&s>0){var e=setTimeout((function(){_()}),1e3*s);return function(){clearTimeout(e)}}}),[s,y,h]),n="".concat(r,"-notice"),dv.createElement("div",la({},f,{ref:t,className:yZ(n,i,_i({},"".concat(n,"-closable"),u)),style:o,onMouseEnter:function(){v(!0)},onMouseLeave:function(){v(!1)},onClick:m}),dv.createElement("div",{className:"".concat(n,"-content")},c),u&&dv.createElement("a",{tabIndex:0,className:"".concat(n,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==dj.ENTER||_()},onClick:function(e){e.preventDefault(),e.stopPropagation(),_()}},p))})),fj=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.prefixCls,c=void 0===l?"rc-notification":l,u=e.container,d=e.motion,p=e.maxCount,f=e.className,m=e.style,g=e.onAllRemoved,h=za(dv.useState([]),2),b=h[0],y=h[1],v=function(e){var t,n=b.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),y((function(t){return t.filter((function(t){return t.key!==e}))}))};return dv.useImperativeHandle(t,(function(){return{open:function(e){y((function(t){var n,r=ba(t),o=r.findIndex((function(t){return t.key===e.key})),i=va({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),p>0&&r.length>p&&(r=r.slice(-p)),r}))},close:function(e){v(e)},destroy:function(){y([])}}})),n=za(dv.useState({}),2),r=n[0],o=n[1],dv.useEffect((function(){var e={};b.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(r).forEach((function(t){e[t]=e[t]||[]})),o(e)}),[b]),i=function(e){o((function(t){var n=va({},t);return(n[e]||[]).length||delete n[e],n}))},a=dv.useRef(!1),dv.useEffect((function(){Object.keys(r).length>0?a.current=!0:a.current&&(null==g||g(),a.current=!1)}),[r]),u?(s=Object.keys(r),CS.createPortal(dv.createElement(dv.Fragment,null,s.map((function(e){var t=r[e].map((function(e){return{config:e,key:e.key}})),n="function"==typeof d?d(e):d;return dv.createElement(l0,la({key:e,className:yZ(c,"".concat(c,"-").concat(e),null==f?void 0:f(e)),style:null==m?void 0:m(e),keys:t,motionAppear:!0},n,{onAllRemoved:function(){i(e)}}),(function(e,t){var n=e.config,r=e.style,o=n.key,i=n.times,a=n.style;return dv.createElement(pj,la({},n,{ref:t,prefixCls:c,className:yZ(e.className,n.className),style:va(va({},r),a),times:i,key:o,eventKey:o,onNoticeClose:v}))}))}))),u)):null})),mj=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],gj=function(){return document.body},hj=0;const R0={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"},F0=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:R0}))})),M0=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:b}=e,y=`${t}-notice`,v=new bD("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),_=new bD("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:f,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:h,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},qZ(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\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:_,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[y]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},L0=Tl("Message",(e=>{const t=Pl(e,{height:150});return[M0(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));bj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,type:n,icon:r,children:o}=e;return dv.createElement("div",{className:yZ(`${t}-custom-content`,`${t}-${n}`)},r||z0[n],dv.createElement("span",null,o))};yj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=H0,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:p}=dv.useContext(WZ),f=r||u("message"),[,m]=L0(f),g=dv.createElement("span",{className:`${f}-close-x`},dv.createElement(x0,{className:`${f}-close-icon`})),[h,b]=rc({prefixCls:f,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>yZ(m,{[`${f}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(f,l),closable:!1,closeIcon:g,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c});return dv.useImperativeHandle(t,(()=>Object.assign(Object.assign({},h),{prefixCls:f,hashId:m,message:p}))),b}));let W0=0;_j=(vj=va({},HJ)).version,wj=vj.render,kj=vj.unmountComponentAtNode;try{Number((_j||"").split(".")[0])>=18&&(xj=vj.createRoot)}catch(HQ){}Sj="__rc_react_root__";const V0=function(e){var t,n;if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox&&((t=e.getBBox()).width||t.height))return!0;if(e.getBoundingClientRect&&((n=e.getBoundingClientRect()).width||n.height))return!0}return!1},G0=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}}}}},q0=Tl("Wave",(e=>[G0(e)])),X0=e=>{function t(){const e=getComputedStyle(r);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return bc(t)?t:bc(n)?n:bc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;u(t?r.offsetLeft:yc(-parseFloat(n))),p(t?r.offsetTop:yc(-parseFloat(o))),m(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;l([i,s,d,c].map((e=>yc(parseFloat(e)))))}const{className:n,target:r}=e,o=dv.useRef(null),[i,a]=dv.useState(null),[s,l]=dv.useState([]),[c,u]=dv.useState(0),[d,p]=dv.useState(0),[f,m]=dv.useState(0),[g,h]=dv.useState(0),[b,y]=dv.useState(!1),v={left:c,top:d,width:f,height:g,borderRadius:s.map((e=>`${e}px`)).join(" ")};return i&&(v["--wave-color"]=i),dv.useEffect((()=>{if(r){const e=nO((()=>{t(),y(!0)}));let n;return"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(r)),()=>{nO.cancel(e),null==n||n.disconnect()}}}),[]),b?dv.createElement(s0,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;gc(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:t}=e;return dv.createElement("div",{ref:o,className:yZ(n,t),style:v})})):null},K0=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=dv.useContext(WZ),o=dv.useRef(null),i=r("wave"),[,a]=q0(i),s=(l=o,c=yZ(i,a),function(){!function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),dc(dv.createElement(X0,{target:e,className:t}),n)}(l.current,c)});var l,c;return LJ.useEffect((()=>{const e=o.current;if(!e||1!==e.nodeType||n)return;const t=t=>{"INPUT"===t.target.tagName||!V0(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s()};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),LJ.isValidElement(t)?nc(t,{ref:Ms(t)?Rs(t.ref,o):o}):null!=t?t:null},Y0=e=>{const t=LJ.useContext(a0);return LJ.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Q0=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},J0=e=>{const{componentCls:t}=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"}}}},Z0=Tl("Space",(e=>[J0(e),Q0(e)]),(()=>({})),{resetStyle:!1});Cj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=dv.useContext(e1),r=dv.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return yZ(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${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:r}},n1=e=>{let{children:t}=e;return dv.createElement(e1.Provider,{value:null},t)},r1=e=>{var{children:t}=e,n=Cj(e,["children"]);return dv.createElement(e1.Provider,{value:n},t)},o1=dv.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=yZ(`${i}-icon`,n);return LJ.createElement("span",{ref:t,className:a,style:r},o)})),i1=dv.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=yZ(`${n}-loading-icon`,r);return LJ.createElement(o1,{prefixCls:n,className:a,style:o,ref:t},LJ.createElement(F0,{className:i}))})),a1=()=>({width:0,opacity:0,transform:"scale(0)"}),s1=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),l1=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?LJ.createElement(i1,{prefixCls:t,className:o,style:i}):LJ.createElement(s0,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:a1,onAppearActive:s1,onEnterStart:a1,onEnterActive:s1,onLeaveStart:s1,onLeaveActive:a1},((e,n)=>{let{className:r,style:a}=e;return LJ.createElement(i1,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))};Ej=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),f1=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,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:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},p1(`${t}-primary`,o),p1(`${t}-danger`,i)]}},m1=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},QZ(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},g1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),h1=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),b1=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),y1=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),v1=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},g1(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),_1=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},y1(e))}),w1=e=>Object.assign({},_1(e)),k1=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),x1=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},w1(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),g1(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),v1(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},g1(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),v1(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),_1(e))}),S1=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},w1(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),g1(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),v1(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},g1(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),v1(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_1(e))}),C1=e=>Object.assign(Object.assign({},x1(e)),{borderStyle:"dashed"}),E1=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},g1(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),k1(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},g1(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),k1(e))}),D1=e=>Object.assign(Object.assign(Object.assign({},g1(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),k1(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},k1(e)),g1(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),O1=e=>{const{componentCls:t}=e;return{[`${t}-default`]:x1(e),[`${t}-primary`]:S1(e),[`${t}-dashed`]:C1(e),[`${t}-link`]:E1(e),[`${t}-text`]:D1(e),[`${t}-ghost`]:v1(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},j1=function(e,t){let n=arguments.length>1&&void 0!==t?t:"";const{componentCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e;return[{[`${r}${n}`]:{fontSize:i,height:o,padding:`${Math.max(0,(o-i*a)/2-s)}px ${c-s}px`,borderRadius:l,[`&${r}-icon-only`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${n}`]:h1(e)},{[`${r}${r}-round${n}`]:b1(e)}]},$1=e=>j1(e),P1=e=>{const t=Pl(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return j1(t,`${e.componentCls}-sm`)},N1=e=>{const t=Pl(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return j1(t,`${e.componentCls}-lg`)},T1=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},I1=Tl("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Pl(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return[m1(r),P1(r),$1(r),N1(r),T1(r),O1(r),f1(r),kc(e),Sc(e)]}));Dj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:p,rootClassName:f,children:m,icon:g,ghost:h=!1,block:b=!1,htmlType:y="button",classNames:v,style:_={}}=e,w=Dj(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:k,autoInsertSpaceInButton:x,direction:S,button:C}=dv.useContext(WZ),E=k("btn",i),[D,O]=I1(E),j=dv.useContext(r0),$=null!=d?d:j,P=dv.useContext(c1),N=dv.useMemo((()=>function(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(o)),[o]),[T,I]=dv.useState(N.loading),[A,R]=dv.useState(!1),F=Rs(t,dv.createRef()),M=1===dv.Children.count(m)&&!g&&!vc(a);dv.useEffect((()=>{let e=null;return N.delay>0?e=setTimeout((()=>{e=null,I(!0)}),N.delay):I(N.loading),function(){e&&(clearTimeout(e),e=null)}}),[N]),dv.useEffect((()=>{F&&F.current&&!1!==x&&(M&&d1(F.current.textContent)?A||R(!0):A&&R(!1))}),[F]);const L=t=>{const{onClick:n}=e;T||$?t.preventDefault():null==n||n(t)},z=!1!==x,{compactSize:B,compactItemClassnames:H}=t1(E,S),U=Y0((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:B)&&void 0!==t?t:P)&&void 0!==n?n:e})),W=U&&{large:"lg",small:"sm",middle:void 0}[U]||"",V=T?"loading":g,G=Gs(w,["navigate"]),q=yZ(E,O,{[`${E}-${l}`]:"default"!==l&&l,[`${E}-${a}`]:a,[`${E}-${W}`]:W,[`${E}-icon-only`]:!m&&0!==m&&!!V,[`${E}-background-ghost`]:h&&!vc(a),[`${E}-loading`]:T,[`${E}-two-chinese-chars`]:A&&z&&!T,[`${E}-block`]:b,[`${E}-dangerous`]:!!s,[`${E}-rtl`]:"rtl"===S},H,p,f,null==C?void 0:C.className),X=Object.assign(Object.assign({},null==C?void 0:C.style),_),K=yZ(null==v?void 0:v.icon,null===(n=null==C?void 0:C.classNames)||void 0===n?void 0:n.icon),Y=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==C?void 0:C.styles)||void 0===r?void 0:r.icon)||{}),Q=g&&!T?LJ.createElement(o1,{prefixCls:E,className:K,style:Y},g):LJ.createElement(l1,{existIcon:!!g,prefixCls:E,loading:!!T}),J=m||0===m?function(e,t){let n=!1;const r=[];return LJ.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1;r[t]=`${r[t]}${e}`}else r.push(e);n=o})),LJ.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&d1(e.props.children)?nc(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?d1(e)?LJ.createElement("span",null,e.split("").join(n)):LJ.createElement("span",null,e):tc(e)?LJ.createElement("span",null,e):e}(e,t)))}(m,M&&z):null;if(void 0!==G.href)return D(LJ.createElement("a",Object.assign({},G,{className:yZ(q,{[`${E}-disabled`]:$}),style:X,onClick:L,ref:F}),Q,J));let Z=LJ.createElement("button",Object.assign({},w,{type:y,className:q,style:X,onClick:L,disabled:$,ref:F}),Q,J);return vc(a)||(Z=LJ.createElement(K0,{disabled:!!T},Z)),D(Z)},R1=dv.forwardRef(A1);R1.Group=e=>{const{getPrefixCls:t,direction:n}=dv.useContext(WZ),{prefixCls:r,size:o,className:i}=e,a=Ej(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=El();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=yZ(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return dv.createElement(c1.Provider,{value:o},dv.createElement("div",Object.assign({},a,{className:u})))},R1.__ANT_BUTTON=!0;const F1=R1,M1=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=dv.useRef(!1),d=dv.useRef(null),[p,f]=Ol(!1),m=function(){null==i||i.apply(void 0,arguments)};return dv.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),dv.createElement(F1,Object.assign({},Cc(t),{onClick:e=>{if(u.current)return;if(u.current=!0,!c)return void m();let t;if(s){if(t=c(e),l&&!Ec(t))return u.current=!1,void m(e)}else if(c.length)t=c(i),u.current=!1;else if(t=c(),!t)return void m();(e=>{Ec(e)&&(f(!0),e.then((function(){f(!1,!0),m.apply(void 0,arguments),u.current=!1}),(e=>(f(!1,!0),u.current=!1,Promise.reject(e)))))})(t)},loading:p,prefixCls:r},o,{ref:d}),n)},L1=()=>({height:0,opacity:0}),z1=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},B1=e=>({height:e?e.offsetHeight:0}),H1=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,U1=function(e){return{motionName:`${arguments.length>0&&void 0!==e?e:"ant"}-motion-collapse`,onAppearStart:L1,onEnterStart:L1,onAppearActive:z1,onEnterActive:z1,onLeaveStart:B1,onLeaveActive:L1,onAppearEnd:H1,onEnterEnd:H1,onLeaveEnd:H1,motionDeadline:500}},W1=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",V1=(e,t,n)=>void 0!==n?n:`${e}-${t}`,G1={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"},q1=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:G1}))})),X1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},K1=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:X1}))})),Y1={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"},Q1=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:Y1}))})),J1={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"},Z1=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:J1}))})),e2={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"},t2=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:e2}))})),n2={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"},r2=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:n2}))})),o2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},i2=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:o2}))})),a2={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},s2=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:a2}))})),l2={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"},c2=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:l2}))})),u2={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"},d2=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:u2}))})),p2={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"},f2=dv.forwardRef((function(e,t){return dv.createElement(y0,la({},e,{ref:t,icon:p2}))}));Oj=dv.createContext(null),jj=[],Pj="rc-util-locker-".concat(Date.now()),Nj=0,Tj=function(e){return!1!==e&&(Oa()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Ij=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x=e.open,S=e.autoLock,C=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,i=za(dv.useState(x),2),a=i[1],s=i[0]||x,dv.useEffect((function(){(r||x)&&a(x)}),[x,r]),c=(l=za(dv.useState((function(){return Tj(C)})),2))[0],u=l[1],dv.useEffect((function(){var e=Tj(C);u(null!=e?e:null)})),d=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=za(dv.useState((function(){return Oa()?document.createElement("div"):null})),1)[0],o=dv.useRef(!1),i=dv.useContext(Oj),a=za(dv.useState(jj),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(ba(t))}))});return RE((function(){return e?i?i(t):t():n(),n}),[e]),RE((function(){s.length&&(s.forEach((function(e){return e()})),l(jj))}),[s]),[r,c]}(s&&!c),f=(p=za(d,2))[0],m=p[1],g=null!=c?c:f,_=S&&x&&Oa()&&(g===f||g===document.body),w=!!_,k=za(dv.useState((function(){return Nj+=1,"".concat(Pj,"_").concat(Nj)})),1)[0],RE((function(){var e,t;return w?(e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.height;return{width:Dc(t.width),height:Dc(n)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ra("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),k)):Aa(k),function(){Aa(k)}}),[w,k]),h=null,o&&Ms(o)&&t&&(h=o.ref),b=Fs(h,t),s&&Oa()&&void 0!==c?(y=!1===g||false,v=o,t&&(v=dv.cloneElement(o,{ref:b})),dv.createElement(Oj.Provider,{value:m},y?v:CS.createPortal(v,g))):null})),Aj=0;const m2=dv.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));Rj={width:0,height:0,overflow:"hidden",outline:"none"},Fj=LJ.forwardRef((function(e,t){var n,r,o,i,a,s=e.prefixCls,l=e.className,c=e.style,u=e.title,d=e.ariaId,p=e.footer,f=e.closable,m=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,y=e.bodyProps,v=e.modalRender,_=e.onMouseDown,w=e.onMouseUp,k=e.holderRef,x=e.visible,S=e.forceRender,C=e.width,E=e.height,D=dv.useRef(),O=dv.useRef();return LJ.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=D.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?D.current.focus():e||t!==D.current||O.current.focus()}}})),n={},void 0!==C&&(n.width=C),void 0!==E&&(n.height=E),p&&(r=LJ.createElement("div",{className:"".concat(s,"-footer")},p)),u&&(o=LJ.createElement("div",{className:"".concat(s,"-header")},LJ.createElement("div",{className:"".concat(s,"-title"),id:d},u))),f&&(i=LJ.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(s,"-close")},m||LJ.createElement("span",{className:"".concat(s,"-close-x")}))),a=LJ.createElement("div",{className:"".concat(s,"-content")},i,o,LJ.createElement("div",la({className:"".concat(s,"-body"),style:b},y),h),r),LJ.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?d:null,"aria-modal":"true",ref:k,style:va(va({},c),n),className:yZ(s,l),onMouseDown:_,onMouseUp:w},LJ.createElement("div",{tabIndex:0,ref:D,style:Rj,"aria-hidden":"true"}),LJ.createElement(m2,{shouldUpdate:x||S},v?v(a):a),LJ.createElement("div",{tabIndex:0,ref:O,style:Rj,"aria-hidden":"true"}))})),(Mj=dv.forwardRef((function(e,t){function n(){var e,t,n,r,o,i=((n={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top}).left+=$c(o=(r=e.ownerDocument).defaultView||r.parentWindow),n.top+=$c(o,!0),n);b(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}var r=e.prefixCls,o=e.title,i=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,m=dv.useRef(),g=za(dv.useState(),2),h=g[0],b=g[1],y={};return h&&(y.transformOrigin=h),dv.createElement(s0,{visible:s,onVisibleChanged:p,onAppearPrepare:n,onEnterPrepare:n,forceRender:l,motionName:u,removeOnLeave:c,ref:m},(function(n,s){var l=n.className;return dv.createElement(Fj,la({},e,{ref:t,title:o,ariaId:d,prefixCls:r,holderRef:s,style:va(va(va({},n.style),i),y),className:yZ(a,l)}))}))}))).displayName="Content",(Lj=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,s=za(dv.useState(t),2),l=s[0],c=s[1];return dv.useEffect((function(){t&&c(!0)}),[t]),r||!i||l?dv.createElement(Ij,{open:t||r||l,autoDestroy:!1,getContainer:n,autoLock:t||l},dv.createElement(Nc,la({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),c(!1)}}))):null}).displayName="Dialog";const g2=()=>Oa()&&window.document.documentElement;let h2;zj="RC_FORM_INTERNAL_HOOKS",Hj=dv.createContext({getFieldValue:Bj=function(){Ca(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},getFieldsValue:Bj,getFieldError:Bj,getFieldWarning:Bj,getFieldsError:Bj,isFieldsTouched:Bj,isFieldTouched:Bj,isFieldValidating:Bj,isFieldsValidating:Bj,resetFields:Bj,setFields:Bj,setFieldValue:Bj,setFieldsValue:Bj,validateFields:Bj,submit:Bj,getInternalHooks:function(){return Bj(),{dispatch:Bj,initEntityValue:Bj,registerField:Bj,useSubscribe:Bj,setInitialValues:Bj,destroyForm:Bj,setCallbacks:Bj,registerWatch:Bj,getFields:Bj,setValidateMessages:Bj,setPreserve:Bj,getInitialValue:Bj}}}),Uj=dv.createContext(null),Wj=/%[sdj%]/g,Vj=function(){},Gj=function(e){function t(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,Fc(n,r),t}(Lc(Error)),Kj=function(){var e,t,n,r,o,i,a,s,l,c,u;return Xj||(e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o=("\n(?:\n(?:"+(r="[a-fA-F\\d]{1,4}")+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+(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}")+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),(l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")}).v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")},c=l.v4().source,u=l.v6().source,Xj=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i"))},Yj=/^(([^<>()\[\]\\.,;:\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,}))$/,Qj=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Jj={integer:function(e){return Jj.number(e)&&parseInt(e,10)===e},float:function(e){return Jj.number(e)&&!Jj.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(HQ){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"==typeof e&&!Jj.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Yj)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(Kj())},hex:function(e){return"string"==typeof e&&!!e.match(Qj)}},Zj=function(e,t,n,r,o){var i;e.required&&void 0===t?qj(e,t,n,r,o):["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i=e.type)>-1?Jj[i](t)||r.push(Bc(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Bc(o.messages.types[i],e.fullField,e.type))},e$="enum",t$={required:qj=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Hc(t,i||e.type)||r.push(Bc(o.messages.required,e.fullField))},whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Bc(o.messages.whitespace,e.fullField))},type:Zj,range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(Bc(o.messages[c].len,e.fullField,e.len)):a&&!s&&le.max?r.push(Bc(o.messages[c].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(Bc(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[e$]=Array.isArray(e[e$])?e[e$]:[],-1===e[e$].indexOf(t)&&r.push(Bc(o.messages[e$],e.fullField,e[e$].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Bc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Bc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},r$={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t,"string")&&!e.required)return n();t$.required(e,t,r,i,o,"string"),Hc(t,"string")||(t$.type(e,t,r,i,o),t$.range(e,t,r,i,o),t$.pattern(e,t,r,i,o),!0===e.whitespace&&t$.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o),void 0!==t&&t$.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o),void 0!==t&&(t$.type(e,t,r,i,o),t$.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o),void 0!==t&&t$.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o),Hc(t)||t$.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o),void 0!==t&&(t$.type(e,t,r,i,o),t$.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o),void 0!==t&&(t$.type(e,t,r,i,o),t$.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();t$.required(e,t,r,i,o,"array"),null!=t&&(t$.type(e,t,r,i,o),t$.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o),void 0!==t&&t$.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o),void 0!==t&&t$.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t,"string")&&!e.required)return n();t$.required(e,t,r,i,o),Hc(t,"string")||t$.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t,"date")&&!e.required)return n();t$.required(e,t,r,a,o),Hc(t,"date")||(i=t instanceof Date?t:new Date(t),t$.type(e,i,r,a,o),i&&t$.range(e,i.getTime(),r,a,o))}n(a)},url:n$=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t,i)&&!e.required)return n();t$.required(e,t,r,a,o,i),Hc(t,i)||t$.type(e,t,r,a,o)}n(a)},hex:n$,email:n$,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;t$.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Hc(t)&&!e.required)return n();t$.required(e,t,r,i,o)}n(i)}},o$=Gc(),i$=function(){function e(e){this.rules=null,this._messages=o$,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=Vc(Gc(),e)),this._messages},t.validate=function(t,n,r){var o,i,a,s,l,c,u=this;return void 0===n&&(n={}),void 0===r&&(r=function(){}),o=t,a=r,"function"==typeof(i=n)&&(a=i,i={}),this.rules&&0!==Object.keys(this.rules).length?(i.messages?((s=this.messages())===o$&&(s=Gc()),Vc(s,i.messages),i.messages=s):i.messages=this.messages(),l={},(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o[e];u.rules[e].forEach((function(r){var i=r;"function"==typeof i.transform&&(o===t&&(o=Ac({},o)),n=o[e]=i.transform(n)),(i="function"==typeof i?{validator:i}:Ac({},i)).validator=u.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=u.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:n,source:o,field:e}))}))})),c={},function(e,t,n,r,o){var i,a,s,l,c,u,d;return t.first?(i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Uc(a,n,(function(e){return r(e),e.length?i(new Gj(e,zc(e))):t(o)}))})),i.catch((function(e){return e})),i):(a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new Gj(u,zc(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?Uc(r,n,d):function(e,t,n){function r(e){o.push.apply(o,e||[]),++i===a&&n(o)}var o=[],i=0,a=e.length;e.forEach((function(e){t(e,r)}))}(r,n,d)}))})),d.catch((function(e){return e})),d)}(l,i,(function(t,n){function r(e,t){return Ac({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function a(a){var s,d,p,f,m;if(void 0===a&&(a=[]),s=Array.isArray(a)?a:[a],!i.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==l.message&&(s=[].concat(l.message)),d=s.map(Wc(l,o)),i.first&&d.length)return c[l.field]=1,n(d);if(u){if(l.required&&!t.value)return void 0!==l.message?d=[].concat(l.message).map(Wc(l,o)):i.error&&(d=[i.error(l,Bc(i.messages.required,l.field))]),n(d);p={},l.defaultField&&Object.keys(t.value).map((function(e){p[e]=l.defaultField})),p=Ac({},p,t.rule.fields),f={},Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(r.bind(null,e))})),(m=new e(f)).messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}var s,l=t.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!=typeof l.fields&&"object"!=typeof l.defaultField);if(u=u&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)s=l.asyncValidator(l,t.value,a,t.source,i);else if(l.validator){try{s=l.validator(l,t.value,a,t.source,i)}catch(d){console,i.suppressValidatorError||setTimeout((function(){throw d}),0),a(d.message)}!0===s?a():!1===s?a("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):s instanceof Array?a(s):s instanceof Error&&a(s.message)}s&&s.then&&s.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n,r,i=[],s={};for(t=0;t0&&void 0!==e?e:d$;r.validatePromise===l&&(r.validatePromise=null,n=[],o=[],null===(t=i.forEach)||void 0===t||t.call(i,(function(e){var t=e.errors,r=void 0===t?d$:t;e.rule.warningOnly?o.push.apply(o,ba(r)):n.push.apply(n,ba(r))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender())})),d):[]}));return s||(r.validatePromise=l,r.dirty=!0,r.errors=d$,r.warnings=d$,r.triggerMetaEvent(),r.reRender()),l},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(zj).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}},r.getOnlyChild=function(e){var t,n;return"function"==typeof e?(t=r.getMeta(),va(va({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})):1===(n=Is(e)).length&&dv.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Ks(e||t(!0),n)},r.getControlled=function(e){var t=arguments.length>0&&void 0!==e?e:{},n=r.props,o=n.trigger,i=n.validateTrigger,a=n.getValueFromEvent,s=n.normalize,l=n.valuePropName,c=n.getValueProps,u=n.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),f=u.getFieldsValue,m=(0,u.getInternalHooks)(zj).dispatch,g=r.getValue(),h=c||function(e){return _i({},l,e)},b=t[o],y=va(va({},t),h(g));return y[o]=function(){var e,t,n,o;for(r.touched=!0,r.dirty=!0,r.triggerMetaEvent(),t=arguments.length,n=new Array(t),o=0;o=0&&t<=n.length?(c.keys=[].concat(ba(c.keys.slice(0,t)),[c.id],ba(c.keys.slice(t))),o([].concat(ba(n.slice(0,t)),[e],ba(n.slice(t))))):(c.keys=[].concat(ba(c.keys),[c.id]),o([].concat(ba(n),[e]))),c.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(c.keys=ou(c.keys,e,t),o(ou(n,e,t)))}}},d=(void 0===n?[]:n)||[];return Array.isArray(d)||(d=[]),r(d.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),l,t)}))))},m$="__@field_split__",g$=function(){function e(){xi(this,e),this.kvs=new Map}return Ci(e,[{key:"set",value:function(e,t){this.kvs.set(su(e),t)}},{key:"get",value:function(e){return this.kvs.get(su(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(su(e))}},{key:"map",value:function(e){return ba(this.kvs.entries()).map((function(t){var n=za(t,2),r=n[1],o=n[0].split(m$);return e({key:o.map((function(e){var t=za(e.match(/^([^:]*):(.*)$/),3),n=t[2];return"number"===t[1]?Number(n):n})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.value;return e[t.key.join(".")]=n,null})),e}}]),e}(),h$=["name"],b$=Ci((function e(t){var n=this;xi(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,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,isFieldsValidating: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}},this.getInternalHooks=function(e){return e===zj?(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}):(Ca(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){var r,o;n.initialValues=e||{},t&&(o=Zs(e,n.store),null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Qs(o,n,Ks(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o))},this.destroyForm=function(){var e=new g$;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=Ks(n.initialValues,e);return e.length?Zs(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}},this.notifyWatch=function(e){var t,r,o=arguments.length>0&&void 0!==e?e:[];n.watchList.length&&(t=n.getFieldsValue(),r=n.getFieldsValue(!0),n.watchList.forEach((function(e){e(t,r,o)})))},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(e){return arguments.length>0&&void 0!==e&&e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(e){var t=arguments.length>0&&void 0!==e&&e,r=new g$;return n.getFieldEntities(t).forEach((function(e){var t=e.getNamePath();r.set(t,e)})),r},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Zc(e);return t.get(n)||{INVALIDATE_NAME_PATH:Zc(e)}}))},this.getFieldsValue=function(e,t){var r,o;return n.warningUnhooked(),!0!==e||t?(r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[],r.forEach((function(n){var r,i,a="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();!e&&(null===(r=n.isListField)||void 0===r?void 0:r.call(n))||(t?(i="getMeta"in n?n.getMeta():null,t(i)&&o.push(a)):o.push(a))})),eu(n.store,o.map(Zc))):n.store},this.getFieldValue=function(e){n.warningUnhooked();var t=Zc(e);return Ks(n.store,t)},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:Zc(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){var t;return n.warningUnhooked(),t=Zc(e),n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){var t;return n.warningUnhooked(),t=Zc(e),n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){var e,t,r,o,i,a,s,l,c,u,d,p;for(n.warningUnhooked(),e=arguments.length,t=new Array(e),r=0;r0&&void 0!==e?e:{},i=new g$,a=n.getFieldEntities(!0);a.forEach((function(e){var t,n=e.props.initialValue,r=e.getNamePath();void 0!==n&&((t=i.get(r)||new Set).add({entity:e,value:n}),i.set(r,t))})),t=function(e){e.forEach((function(e){var t,r,a;void 0!==e.props.initialValue&&(t=e.getNamePath(),void 0!==n.getInitialValue(t)?Ca(!1,"Form already set 'initialValues' with path '".concat(t.join("."),"'. Field can not overwrite it.")):(r=i.get(t))&&r.size>1?Ca(!1,"Multiple Field with path '".concat(t.join("."),"' set 'initialValue'. Can not decide which one to pick.")):r&&(a=n.getFieldValue(t),o.skipExist&&void 0!==a||n.updateStore(Qs(n.store,t,ba(r)[0].value))))}))},o.entities?r=o.entities:o.namePathList?(r=[],o.namePathList.forEach((function(e){var t,n=i.get(e);n&&(t=r).push.apply(t,ba(ba(n).map((function(e){return e.entity}))))}))):r=a,t(r)},this.resetFields=function(e){var t,r;if(n.warningUnhooked(),t=n.store,!e)return n.updateStore(Zs(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();(r=e.map(Zc)).forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Qs(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){var t,r;n.warningUnhooked(),t=n.store,r=[],e.forEach((function(e){var o=e.name,i=wi(e,h$),a=Zc(o);r.push(a),"value"in i&&n.updateStore(Qs(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=va(va({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t,r=e.props.initialValue;void 0!==r&&(t=e.getNamePath(),void 0===Ks(n.store,t)&&n.updateStore(Qs(n.store,t,r)))},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){var t,r;return n.fieldEntities.push(e),t=e.getNamePath(),n.notifyWatch([t]),void 0!==e.props.initialValue&&(r=n.store,n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})),function(r,o,i){var a,s,l=arguments.length>2&&void 0!==i?i:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),n.isMergedPreserve(o)||r&&!(l.length>1)||(a=r?void 0:n.getInitialValue(t),t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!nu(e.getNamePath(),t)}))&&(n.updateStore(Qs(s=n.store,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t))),n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":n.updateValue(e.namePath,e.value);break;case"validateField":n.validateFields([e.namePath],{triggerName:e.triggerName})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=va(va({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(ba(r))}),r},this.updateValue=function(e,t){var r,o,i=Zc(e),a=n.store;n.updateStore(Qs(n.store,i,t)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]),r=n.triggerDependenciesUpdate(a,i),(o=n.callbacks.onValuesChange)&&o(eu(n.store,[i]),n.getFieldsValue()),n.triggerOnFieldsChange([i].concat(ba(r)))},this.setFieldsValue=function(e){var t,r;n.warningUnhooked(),t=n.store,e&&(r=Zs(n.store,e),n.updateStore(r)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new g$;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Zc(t);o.update(n,(function(t){var n=arguments.length>0&&void 0!==t?t:new Set;return n.add(e),n}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r,o,i,a=n.callbacks.onFieldsChange;a&&(r=n.getFields(),t&&(o=new g$,t.forEach((function(e){o.set(e.name,e.errors)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))),(i=r.filter((function(t){return tu(e,t.name)}))).length&&a(i,r))},this.validateFields=function(e,t){var r,o,i,a,s,l,c,u,d,p;return n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e,a=(i=!!r)?r.map(Zc):[],s=[],l=String(Date.now()),c=new Set,n.getFieldEntities(!0).forEach((function(e){var t,u,d,p;i||a.push(e.getNamePath()),(null===(t=o)||void 0===t?void 0:t.recursive)&&i&&(u=e.getNamePath()).every((function(e,t){return r[t]===e||void 0===r[t]}))&&a.push(u),e.props.rules&&e.props.rules.length&&(d=e.getNamePath(),c.add(d.join(l)),i&&!tu(a,d)||(p=e.validateRules(va({validateMessages:va(va({},s$),n.validateMessages)},o)),s.push(p.then((function(){return{name:d,errors:[],warnings:[]}})).catch((function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.errors;e.rule.warningOnly?r.push.apply(r,ba(t)):n.push.apply(n,ba(t))})),n.length?Promise.reject({name:d,errors:n,warnings:r}):{name:d,errors:n,warnings:r}})))))})),u=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(s),n.lastValidatePromise=u,u.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)})),(d=u.then((function(){return n.lastValidatePromise===u?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!==u})}))).catch((function(e){return e})),p=a.filter((function(e){return c.has(e.join(l))})),n.triggerOnFieldsChange(p),d},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t})),y$=dv.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),v$=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=dv.useContext(y$),a=dv.useRef({});return dv.createElement(y$.Provider,{value:va(va({},i),{},{validateMessages:va(va({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=va(va({},a.current),{},_i({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=va({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},_$=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],w$=function(e,t){var n,r,o,i,a,s,l=e.name,c=e.initialValues,u=e.fields,d=e.form,p=e.preserve,f=e.children,m=e.component,g=void 0===m?"form":m,h=e.validateMessages,b=e.validateTrigger,y=void 0===b?"onChange":b,v=e.onValuesChange,_=e.onFieldsChange,w=e.onFinish,k=e.onFinishFailed,x=wi(e,_$),S=dv.useContext(y$),C=za(lu(d),1)[0],E=C.getInternalHooks(zj),D=E.useSubscribe,O=E.setInitialValues,j=E.setCallbacks,$=E.setValidateMessages,P=E.setPreserve,N=E.destroyForm;return dv.useImperativeHandle(t,(function(){return C})),dv.useEffect((function(){return S.registerForm(l,C),function(){S.unregisterForm(l)}}),[S,C,l]),$(va(va({},S.validateMessages),h)),j({onValuesChange:v,onFieldsChange:function(e){if(S.triggerFormChange(l,e),_){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{}}),y2=dv.createContext(null),v2=e=>{const t=Gs(e,["prefixCls"]);return dv.createElement(v$,Object.assign({},t))},_2=dv.createContext({prefixCls:""}),w2=dv.createContext({}),k2=e=>{let{children:t,status:n,override:r}=e;const o=dv.useContext(w2),i=dv.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return dv.createElement(w2.Provider,{value:i},t)},x2=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l}=e,[c]=DZ("Modal",tl());return LJ.createElement(LJ.Fragment,null,LJ.createElement(F1,Object.assign({onClick:a},l),r||(null==c?void 0:c.cancelText)),LJ.createElement(F1,Object.assign({},Cc(n),{loading:o,onClick:i},s),t||(null==c?void 0:c.okText)))},S2=e=>({animationDuration:e,animationFillMode:"both"}),C2=e=>({animationDuration:e,animationFillMode:"both"}),E2=function(e,t,n,r,o){const i=arguments.length>4&&void 0!==o&&o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},S2(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},C2(r)),{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"}}},D2=new bD("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),O2=new bD("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),j2=function(e,t){let n=arguments.length>1&&void 0!==t&&t;const{antCls:r}=e,o=`${r}-fade`,i=n?"&":"";return[E2(o,D2,O2,e.motionDurationMid,n),{[`\n ${i}${o}-enter,\n ${i}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${o}-leave`]:{animationTimingFunction:"linear"}}]},$2=new bD("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P2=new bD("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),N2=new bD("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T2=new bD("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I2=new bD("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A2=new bD("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),R2={"move-up":{inKeyframes:new bD("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 bD("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:$2,outKeyframes:P2},"move-left":{inKeyframes:N2,outKeyframes:T2},"move-right":{inKeyframes:I2,outKeyframes:A2}},F2=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=R2[t];return[E2(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},M2=new bD("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),L2=new bD("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),z2=new bD("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),B2=new bD("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),H2=new bD("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),U2=new bD("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),W2=new bD("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),V2=new bD("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),G2={"slide-up":{inKeyframes:M2,outKeyframes:L2},"slide-down":{inKeyframes:z2,outKeyframes:B2},"slide-left":{inKeyframes:H2,outKeyframes:U2},"slide-right":{inKeyframes:W2,outKeyframes:V2}},q2=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=G2[t];return[E2(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},X2=new bD("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),K2=new bD("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Y2=new bD("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Q2=new bD("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),J2=new bD("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Z2=new bD("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),e5=new bD("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),t5=new bD("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),n5=new bD("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),r5=new bD("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),o5=new bD("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),i5=new bD("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),a5={zoom:{inKeyframes:X2,outKeyframes:K2},"zoom-big":{inKeyframes:Y2,outKeyframes:Q2},"zoom-big-fast":{inKeyframes:Y2,outKeyframes:Q2},"zoom-left":{inKeyframes:e5,outKeyframes:t5},"zoom-right":{inKeyframes:n5,outKeyframes:r5},"zoom-up":{inKeyframes:J2,outKeyframes:Z2},"zoom-down":{inKeyframes:o5,outKeyframes:i5}},s5=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=a5[t];return[E2(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},l5=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`}}}),c5=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({},pu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},pu("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:j2(e)}]},u5=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${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})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},qZ(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,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.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,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:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},QZ(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,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"}}}]},d5=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},p5=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},f5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},m5=Tl("Modal",(e=>{const t=e.padding,n=Pl(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:e.lineHeightHeading5*e.fontSizeHeading5+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[u5(n),d5(n),p5(n),c5(n),e.wireframe&&f5(n),s5(n,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})));let g5;x$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{g5={x:e.pageX,y:e.pageY},setTimeout((()=>{g5=null}),100)}),!0);const h5=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=dv.useContext(WZ),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:p,getContainer:f,closeIcon:m,closable:g,focusTriggerAfterClose:h=!0,style:b,visible:y,width:v=520,footer:_}=e,w=x$(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),k=r("modal",s),x=r(),[S,C]=m5(k),E=yZ(d,{[`${k}-centered`]:!!p,[`${k}-wrap-rtl`]:"rtl"===o}),D=void 0===_?dv.createElement(x2,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})):_,[O,j]=Tc(g,m,(e=>du(k,e)),dv.createElement(x0,{className:`${k}-close-icon`}),!0);return S(dv.createElement(n1,null,dv.createElement(k2,{status:!0,override:!0},dv.createElement(Lj,Object.assign({width:v},w,{getContainer:void 0===f?n:f,prefixCls:k,rootClassName:yZ(C,c),wrapClassName:E,footer:D,visible:null!=u?u:y,mousePosition:null!==(t=w.mousePosition)&&void 0!==t?t:g5,onClose:a,closable:O,closeIcon:j,focusTriggerAfterClose:h,transitionName:V1(x,"zoom",e.transitionName),maskTransitionName:V1(x,"fade",e.maskTransitionName),className:yZ(C,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),b)})))))},b5=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:p,iconPrefixCls:f,theme:m,bodyStyle:g,closable:h=!1,closeIcon:b,modalRender:y,focusTriggerAfterClose:v}=e,_=`${u}-confirm`,w=e.width||416,k=e.style||{},x=void 0===e.mask||e.mask,S=void 0!==e.maskClosable&&e.maskClosable,C=yZ(_,`${_}-${e.type}`,{[`${_}-rtl`]:"rtl"===c},e.className);return dv.createElement(g0,{prefixCls:p,iconPrefixCls:f,direction:c,theme:m},dv.createElement(h5,{prefixCls:u,className:C,wrapClassName:yZ({[`${_}-centered`]:!!e.centered},d),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:o,title:"",footer:null,transitionName:V1(p,"zoom",e.transitionName),maskTransitionName:V1(p,"fade",e.maskTransitionName),mask:x,maskClosable:S,maskStyle:l,style:k,bodyStyle:g,width:w,zIndex:n,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:h,closeIcon:b,modalRender:y,focusTriggerAfterClose:v},dv.createElement(fu,Object.assign({},e,{confirmPrefixCls:_}))))},y5=[];S$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{afterClose:n,config:r}=e;var o;const[i,a]=dv.useState(!0),[s,l]=dv.useState(r),{direction:c,getPrefixCls:u}=dv.useContext(WZ),d=u("modal"),p=u(),f=function(){a(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));s.onCancel&&r&&s.onCancel.apply(s,[()=>{}].concat(ba(t.slice(1))))};dv.useImperativeHandle(t,(()=>({destroy:f,update:e=>{l((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(o=s.okCancel)&&void 0!==o?o:"confirm"===s.type,[g]=DZ("Modal",SZ.Modal);return dv.createElement(b5,Object.assign({prefixCls:d,rootPrefixCls:p},s,{close:f,open:i,afterClose:()=>{var e;n(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(m?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:s.direction||c,cancelText:s.cancelText||(null==g?void 0:g.cancelText)}))},w5=dv.forwardRef(_5);let k5=0;const x5=dv.memo(dv.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=dv.useState([]);return[e,dv.useCallback((e=>(t((t=>[].concat(ba(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return dv.useImperativeHandle(t,(()=>({patchElement:r})),[]),dv.createElement(dv.Fragment,null,n)}))),S5=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new bD("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new bD("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new bD("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},C5=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:m,motionDurationMid:g,motionEaseInOut:h,fontSize:b,lineHeight:y,width:v,notificationIconSize:_,colorText:w}=e,k=`${n}-notice`,x=new bD("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:v},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),S=new bD("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),C={position:"relative",width:v,maxWidth:`calc(100vw - ${2*m}px)`,marginBottom:i,marginInlineStart:"auto",padding:f,overflow:"hidden",lineHeight:y,wordWrap:"break-word",background:p,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${k}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:b,color:w},[`&${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+_,fontSize:o},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.marginSM+_,fontSize:b},[`${k}-icon`]:{position:"absolute",fontSize:_,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${k}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${k}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},qZ(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:m,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[k]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[k]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:h,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:h,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:x,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:S,animationPlayState:"running"}}),S5(e)),{"&-rtl":{direction:"rtl",[`${k}-btn`]:{float:"left"}}})},{[n]:{[k]:Object.assign({},C)}},{[`${k}-pure-panel`]:Object.assign(Object.assign({},C),{margin:0})}]},E5=Tl("Notification",(e=>{const t=Pl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:e.paddingMD,notificationPaddingHorizontal:e.paddingLG,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[C5(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));C$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=dv.createElement("span",{className:`${t}-icon`},n):r&&(l=dv.createElement(D5[r]||null,{className:yZ(`${t}-icon`,`${t}-icon-${r}`)})),dv.createElement("div",{className:yZ({[`${t}-with-icon`]:l}),role:s},l,dv.createElement("div",{className:`${t}-message`},o),dv.createElement("div",{className:`${t}-description`},i),a&&dv.createElement("div",{className:`${t}-btn`},a))};E$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:u,notification:d}=dv.useContext(WZ),p=o||c("notification"),[,f]=E5(p),[m,g]=rc({prefixCls:p,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>yZ(f,{[`${p}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(p),closable:!0,closeIcon:wu(p),duration:4.5,getContainer:()=>(null==i?void 0:i())||(null==u?void 0:u())||document.body,maxCount:a,onAllRemoved:l});return dv.useImperativeHandle(t,(()=>Object.assign(Object.assign({},m),{prefixCls:p,hashId:f,notification:d}))),g})),P5=LJ.createContext({}),N5=LJ.createContext({message:{},notification:{},modal:{}}),T5=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},I5=Tl("App",(e=>[T5(e)])),A5=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s}=e,{getPrefixCls:l}=dv.useContext(WZ),c=l("app",t),[u,d]=I5(c),p=yZ(d,c,r,o),f=dv.useContext(P5),m=LJ.useMemo((()=>({message:Object.assign(Object.assign({},f.message),i),notification:Object.assign(Object.assign({},f.notification),a)})),[i,a,f.message,f.notification]),[g,h]=ac(m.message),[b,y]=xu(m.notification),[v,_]=_u(),w=LJ.useMemo((()=>({message:g,notification:b,modal:v})),[g,b,v]);return u(LJ.createElement(N5.Provider,{value:w},LJ.createElement(P5.Provider,{value:m},LJ.createElement("div",{className:p,style:s},_,h,y,n))))};A5.useApp=()=>LJ.useContext(N5);const R5=A5,F5=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))};D$=dv.createContext(null),O$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],j$=void 0,($$=dv.forwardRef(Cu)).displayName="Item",P$=LJ.createContext(null),N$=["component"],T$=["className"],I$=["className"],A$=function(e,t){var n,r,o,i,a,s,l,c=dv.useContext(P$);return c?(i=c.className,a=wi(c,T$),s=e.className,l=wi(e,I$),dv.createElement(P$.Provider,{value:null},dv.createElement($$,la({ref:t,className:yZ(i,s)},a,l)))):(r=void 0===(n=e.component)?"div":n,o=wi(e,N$),dv.createElement(r,la({},o,{ref:t})))},(R$=dv.forwardRef(A$)).displayName="RawItem",F$=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],M$="responsive",L$="invalidate",(z$=dv.forwardRef(Ou)).displayName="Overflow",z$.Item=R$,z$.RESPONSIVE=M$,z$.INVALIDATE=L$,B$=function(e){var t,n=e.className,r=e.customizeIcon,o=e.onMouseDown,i=e.onClick,a=e.children;return t="function"==typeof r?r(e.customizeIconProps):r,dv.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:dv.createElement("span",{className:yZ(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},(H$=dv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.id,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,p=e.value,f=e.maxLength,m=e.onKeyDown,g=e.onMouseDown,h=e.onChange,b=e.onPaste,y=e.onCompositionStart,v=e.onCompositionEnd,_=e.open,w=e.attrs,k=e.inputElement||dv.createElement("input",null),x=k.ref,S=k.props,C=S.onKeyDown,E=S.onChange,D=S.onMouseDown,O=S.onCompositionStart,j=S.onCompositionEnd,$=S.style;return dv.cloneElement(k,va(va(va({type:"search"},S),{},{id:i,ref:Rs(t,x),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:yZ("".concat(o,"-selection-search-input"),null===(n=k)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":_,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":d},w),{},{value:u?p:"",maxLength:f,readOnly:!u,unselectable:u?null:"on",style:va(va({},$),{},{opacity:u?null:0}),onKeyDown:function(e){m(e),C&&C(e)},onMouseDown:function(e){g(e),D&&D(e)},onChange:function(e){h(e),E&&E(e)},onCompositionStart:function(e){y(e),O&&O(e)},onCompositionEnd:function(e){v(e),j&&j(e)},onPaste:b}))}))).displayName="Input",U$="undefined"!=typeof window&&window.document&&window.document.documentElement,W$=U$,V$=function(e){e.preventDefault(),e.stopPropagation()},G$=function(e){function t(e,t,n,r,o){return dv.createElement("span",{className:yZ("".concat(H,"-item"),_i({},"".concat(H,"-item-disabled"),n)),title:Pu(e)},dv.createElement("span",{className:"".concat(H,"-item-content")},t),r&&dv.createElement(B$,{className:"".concat(H,"-item-remove"),onMouseDown:V$,onClick:o,customizeIcon:w},"×"))}var n,r,o,i,a=e.id,s=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,d=e.autoClearSearchValue,p=e.inputRef,f=e.placeholder,m=e.disabled,g=e.mode,h=e.showSearch,b=e.autoFocus,y=e.autoComplete,v=e.activeDescendantId,_=e.tabIndex,w=e.removeIcon,k=e.maxTagCount,x=e.maxTagTextLength,S=e.maxTagPlaceholder,C=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,E=e.tagRender,D=e.onToggleOpen,O=e.onRemove,j=e.onInputChange,$=e.onInputPaste,P=e.onInputKeyDown,N=e.onInputMouseDown,T=e.onInputCompositionStart,I=e.onInputCompositionEnd,A=dv.useRef(null),R=za(dv.useState(0),2),F=R[0],M=R[1],L=za(dv.useState(!1),2),z=L[0],B=L[1],H="".concat(s,"-selection"),U=c||"multiple"===g&&!1===d||"tags"===g?u:"",W="tags"===g||"multiple"===g&&!1===d||h&&(c||z);return o=function(){M(A.current.scrollWidth)},i=[U],W$?dv.useLayoutEffect(o,i):dv.useEffect(o,i),n=dv.createElement("div",{className:"".concat(H,"-search"),style:{width:F},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},dv.createElement(H$,{ref:p,open:c,prefixCls:s,id:a,inputElement:null,disabled:m,autoFocus:b,autoComplete:y,editable:W,activeDescendantId:v,value:U,onKeyDown:P,onMouseDown:N,onChange:j,onPaste:$,onCompositionStart:T,onCompositionEnd:I,tabIndex:_,attrs:ec(e,!0)}),dv.createElement("span",{ref:A,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},U," ")),r=dv.createElement(z$,{prefixCls:"".concat(H,"-overflow"),data:l,renderItem:function(e){var n,r,o=e.disabled,i=e.label,a=e.value,s=!m&&!o,l=i;return"number"==typeof x&&("string"!=typeof i&&"number"!=typeof i||(n=String(l)).length>x&&(l="".concat(n.slice(0,x),"..."))),r=function(t){t&&t.stopPropagation(),O(e)},"function"==typeof E?function(e,t,n,r,o){return dv.createElement("span",{onMouseDown:function(e){V$(e),D(!c)}},E({label:t,value:e,disabled:n,closable:r,onClose:o}))}(a,l,o,s,r):t(e,l,o,s,r)},renderRest:function(e){var n="function"==typeof C?C(e):C;return t({title:n},n,!1)},suffix:n,itemKey:Nu,maxCount:k}),dv.createElement(dv.Fragment,null,r,!l.length&&!U&&dv.createElement("span",{className:"".concat(H,"-placeholder")},f))},q$=function(e){var t,n,r,o=e.inputElement,i=e.prefixCls,a=e.id,s=e.inputRef,l=e.disabled,c=e.autoFocus,u=e.autoComplete,d=e.activeDescendantId,p=e.mode,f=e.open,m=e.values,g=e.placeholder,h=e.tabIndex,b=e.showSearch,y=e.searchValue,v=e.activeValue,_=e.maxLength,w=e.onInputKeyDown,k=e.onInputMouseDown,x=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,E=e.onInputCompositionEnd,D=e.title,O=za(dv.useState(!1),2),j=O[1],$="combobox"===p,P=$||b,N=m[0],T=y||"";return $&&v&&!O[0]&&(T=v),dv.useEffect((function(){$&&j(!1)}),[$,v]),t=!("combobox"!==p&&!f&&!b||!T),n=void 0===D?Pu(N):D,r=function(){if(N)return null;var e=t?{visibility:"hidden"}:void 0;return dv.createElement("span",{className:"".concat(i,"-selection-placeholder"),style:e},g)},dv.createElement(dv.Fragment,null,dv.createElement("span",{className:"".concat(i,"-selection-search")},dv.createElement(H$,{ref:s,prefixCls:i,id:a,open:f,inputElement:o,disabled:l,autoFocus:c,autoComplete:u,editable:P,activeDescendantId:d,value:T,onKeyDown:w,onMouseDown:k,onChange:function(e){j(!0),x(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:E,tabIndex:h,attrs:ec(e,!0),maxLength:$?_:void 0})),!$&&N?dv.createElement("span",{className:"".concat(i,"-selection-item"),title:n,style:t?{visibility:"hidden"}:void 0},N.label):null,r())},X$=function(e,t){var n,r,o,i,a,s,l,c,u,d,p=dv.useRef(null),f=dv.useRef(!1),m=e.prefixCls,g=e.open,h=e.mode,b=e.showSearch,y=e.tokenWithEnter,v=e.autoClearSearchValue,_=e.onSearch,w=e.onSearchSubmit,k=e.onToggleOpen,x=e.onInputKeyDown,S=e.domRef;return dv.useImperativeHandle(t,(function(){return{focus:function(){p.current.focus()},blur:function(){p.current.blur()}}})),n=za(Su(0),2),r=n[0],o=n[1],i=function(e){var t=e.which;t!==dj.UP&&t!==dj.DOWN||e.preventDefault(),x&&x(e),t!==dj.ENTER||"tags"!==h||f.current||g||null==w||w(e.target.value),[dj.ESC,dj.SHIFT,dj.BACKSPACE,dj.TAB,dj.WIN_KEY,dj.ALT,dj.META,dj.WIN_KEY_RIGHT,dj.CTRL,dj.SEMICOLON,dj.EQUALS,dj.CAPS_LOCK,dj.CONTEXT_MENU,dj.F1,dj.F2,dj.F3,dj.F4,dj.F5,dj.F6,dj.F7,dj.F8,dj.F9,dj.F10,dj.F11,dj.F12].includes(t)||k(!0)},a=function(){o(!0)},s=dv.useRef(null),l=function(e){!1!==_(e,!0,f.current)&&k(!0)},c=function(e){e.target!==p.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){p.current.focus()})):p.current.focus())},u=function(e){var t=r();e.target===p.current||t||"combobox"===h||e.preventDefault(),("combobox"===h||b&&t)&&g||(g&&!1!==v&&_("",!0,!1),k())},d=dv.createElement("multiple"===h||"tags"===h?G$:q$,la({},e,{inputRef:p,onInputKeyDown:i,onInputMouseDown:a,onInputChange:function(e){var t,n=e.target.value;y&&s.current&&/[\r\n]/.test(s.current)&&(t=s.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),n=n.replace(t,s.current)),s.current=null,l(n)},onInputPaste:function(e){var t=e.clipboardData.getData("text");s.current=t},onInputCompositionStart:function(){f.current=!0},onInputCompositionEnd:function(e){f.current=!1,"combobox"!==h&&l(e.target.value)}})),dv.createElement("div",{ref:S,className:"".concat(m,"-selector"),onClick:c,onMouseDown:u},d)},(K$=dv.forwardRef(X$)).displayName="Selector",Y$=dv.createContext(null),Q$=dv.memo((function(e){return e.children}),(function(e,t){return t.cache})),J$=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.popup,u=e.className,d=e.prefixCls,p=e.style,f=e.target,m=e.onVisibleChanged,g=e.open,h=e.keepDom,b=e.onClick,y=e.mask,v=e.arrow,_=e.arrowPos,w=e.align,k=e.motion,x=e.maskMotion,S=e.forceRender,C=e.getPopupContainer,E=e.autoDestroy,D=e.portal,O=e.zIndex,j=e.onMouseEnter,$=e.onMouseLeave,P=e.ready,N=e.offsetX,T=e.offsetY,I=e.offsetR,A=e.offsetB,R=e.onAlign,F=e.onPrepare,M=e.stretch,L=e.targetWidth,z=e.targetHeight,B="function"==typeof c?c():c,H=g||h,U=(null==C?void 0:C.length)>0,W=za(dv.useState(!C||!U),2),V=W[0],G=W[1];return RE((function(){!V&&U&&f&&G(!0)}),[V,U,f]),V?(r={left:"-1000vw",top:"-1000vh",right:n="auto",bottom:n},!P&&g||(o=w.points,s=(a=null==(i=w._experimental)?void 0:i.dynamicInset)&&"b"===o[0][0],a&&"r"===o[0][1]?(r.right=I,r.left=n):(r.left=N,r.right=n),s?(r.bottom=A,r.top=n):(r.top=T,r.bottom=n)),l={},M&&(M.includes("height")&&z?l.height=z:M.includes("minHeight")&&z&&(l.minHeight=z),M.includes("width")&&L?l.width=L:M.includes("minWidth")&&L&&(l.minWidth=L)),g||(l.pointerEvents="none"),dv.createElement(D,{open:S||H,getContainer:C&&function(){return C(f)},autoDestroy:E},dv.createElement(qu,{prefixCls:d,open:g,zIndex:O,mask:y,motion:x}),dv.createElement(QD,{onResize:R,disabled:!g},(function(e){return dv.createElement(s0,la({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(d,"-hidden")},k,{onAppearPrepare:F,onEnterPrepare:F,visible:g,onVisibleChanged:function(e){var t;null==k||null===(t=k.onVisibleChanged)||void 0===t||t.call(k,e),m(e)}}),(function(n,o){var i=n.style,a=yZ(d,n.className,u);return dv.createElement("div",{ref:Rs(e,t,o),className:a,style:va(va(va(va({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},r),l),i),{},{boxSizing:"border-box",zIndex:O},p),onMouseEnter:j,onMouseLeave:$,onClick:b},v&&dv.createElement(Gu,{prefixCls:d,arrow:v,arrowPos:_,align:w}),dv.createElement(Q$,{cache:!g},B))}))})))):null})),Z$=dv.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ms(n),i=Fs(dv.useCallback((function(e){As(t,r?r(e):e)}),[r]),n.ref);return o?dv.cloneElement(n,{ref:i}):n})),eP=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const M5=function(e){var t=arguments.length>0&&void 0!==e?e:Ij,n=dv.forwardRef((function(e,n){var r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B,H,U,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,me,ge,he,be,ye,ve,_e,we,ke,xe,Se,Ce,Ee=e.prefixCls,De=void 0===Ee?"rc-trigger-popup":Ee,Oe=e.children,je=e.action,$e=void 0===je?"hover":je,Pe=e.showAction,Ne=e.hideAction,Te=e.popupVisible,Ie=e.defaultPopupVisible,Ae=e.onPopupVisibleChange,Re=e.afterPopupVisibleChange,Fe=e.mouseEnterDelay,Me=e.mouseLeaveDelay,Le=void 0===Me?.1:Me,ze=e.focusDelay,Be=e.blurDelay,He=e.mask,Ue=e.maskClosable,We=void 0===Ue||Ue,Ve=e.getPopupContainer,Ge=e.forceRender,qe=e.autoDestroy,Xe=e.destroyPopupOnHide,Ke=e.popup,Ye=e.popupClassName,Qe=e.popupStyle,Je=e.popupPlacement,Ze=e.builtinPlacements,et=void 0===Ze?{}:Ze,tt=e.popupAlign,nt=e.zIndex,rt=e.stretch,ot=e.getPopupClassNameFromAlign,it=e.alignPoint,at=e.onPopupClick,st=e.onPopupAlign,lt=e.arrow,ct=e.popupMotion,ut=e.maskMotion,dt=e.popupTransitionName,pt=e.popupAnimation,ft=e.maskTransitionName,mt=e.maskAnimation,gt=e.className,ht=e.getTriggerDOMNode,bt=wi(e,eP),yt=qe||Xe||!1,vt=za(dv.useState(!1),2),_t=vt[0],wt=vt[1];return RE((function(){wt(F5())}),[]),r=dv.useRef({}),o=dv.useContext(Y$),i=dv.useMemo((function(){return{registerSubPopup:function(e,t){r.current[e]=t,null==o||o.registerSubPopup(e,t)}}}),[o]),a=Oc(),s=za(dv.useState(null),2),l=s[0],c=s[1],u=Dl((function(e){Ls(e)&&l!==e&&c(e),null==o||o.registerSubPopup(a,e)})),d=za(dv.useState(null),2),p=d[0],f=d[1],m=Dl((function(e){Ls(e)&&p!==e&&f(e)})),g=dv.Children.only(Oe),h=(null==g?void 0:g.props)||{},b={},y=Dl((function(e){var t,n,o=p;return(null==o?void 0:o.contains(e))||(null===(t=Gl(o))||void 0===t?void 0:t.host)===e||e===o||(null==l?void 0:l.contains(e))||(null===(n=Gl(l))||void 0===n?void 0:n.host)===e||e===l||Object.values(r.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),v=Au(De,ct,pt,dt),_=Au(De,ut,mt,ft),w=za(dv.useState(Ie||!1),2),k=w[1],x=null!=Te?Te:w[0],S=Dl((function(e){void 0===Te&&k(e)})),RE((function(){k(Te||!1)}),[Te]),(C=dv.useRef(x)).current=x,E=Dl((function(e){x!==e&&(S(e),null==Ae||Ae(e))})),D=dv.useRef(),O=function(){clearTimeout(D.current)},j=function(e,t){var n=arguments.length>1&&void 0!==t?t:0;O(),0===n?E(e):D.current=setTimeout((function(){E(e)}),1e3*n)},dv.useEffect((function(){return O}),[]),$=za(dv.useState(!1),2),P=$[0],N=$[1],RE((function(e){e&&!x||N(!0)}),[x]),T=za(dv.useState(null),2),I=T[0],A=T[1],F=(R=za(dv.useState([0,0]),2))[0],M=R[1],L=function(e){M([e.clientX,e.clientY])},z=function(e,t,n,r,o,i,a){var s,l,c,u=za(dv.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),d=u[0],p=u[1],f=dv.useRef(0),m=dv.useMemo((function(){return t?Fu(t):[]}),[t]),g=dv.useRef({});return e||(g.current={}),s=Dl((function(){var s,l,c,u,d,f,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B,H,U,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,me,ge,he,be,ye,ve,_e,we,ke,xe,Se,Ce,Ee,De,Oe,je,$e,Pe,Ne,Te,Ie,Ae,Re,Fe,Me,Le,ze,Be,He,Ue,We,Ve,Ge,qe;if(t&&n&&e){let e=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:M,o=_.x+e,i=_.y+t,a=o+O,s=i+D,l=Math.max(o,r.left),c=Math.max(i,r.top),u=Math.min(a,r.right),d=Math.min(s,r.bottom);return Math.max(0,(u-l)*(d-c))},Xe=function(){be=(he=_.y+re)+D,ve=(ye=_.x+ne)+O};if(l=(s=t).style.left,c=s.style.top,u=s.style.right,d=s.style.bottom,f=s.ownerDocument,h=Ru(s),b=va(va({},o[r]),i),s.style.left="0",s.style.top="0",s.style.right="auto",s.style.bottom="auto",y=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:{x:(v=n.getBoundingClientRect()).x,y:v.y,width:v.width,height:v.height},_=s.getBoundingClientRect(),k=(w=h.getComputedStyle(s)).width,x=w.height,D=_.height,O=_.width,j=y.height,$=y.width,P={left:0,top:0,right:(S=f.documentElement).clientWidth,bottom:S.clientHeight},T="visible",I="visibleFirst","scroll"!==(N=b.htmlRegion)&&N!==I&&(N=T),A=N===I,R=zu({left:-(E=S.scrollLeft),top:-(C=S.scrollTop),right:S.scrollWidth-E,bottom:S.scrollHeight-C},m),F=zu(P,m),M=N===T?F:R,L=A?F:M,s.style.left="auto",s.style.top="auto",s.style.right="0",s.style.bottom="0",z=s.getBoundingClientRect(),s.style.left=l,s.style.top=c,s.style.right=u,s.style.bottom=d,B=Mu(Math.round(O/parseFloat(k)*1e3)/1e3),H=Mu(Math.round(D/parseFloat(x)*1e3)/1e3),0===B||0===H||Ls(n)&&!V0(n))return;U=b.targetOffset,V=(W=za(Hu(_,b.offset),2))[0],G=W[1],X=(q=za(Hu(y,U),2))[1],y.x-=q[0],y.y-=X,Y=(K=za(b.points||[],2))[0],Q=Uu(K[1]),J=Uu(Y),Z=Wu(y,Q),ee=Wu(_,J),te=va({},b),oe=e(ne=Z.x-ee.x+V,re=Z.y-ee.y+G),ie=e(ne,re,F),ae=Wu(y,["t","l"]),se=Wu(_,["t","l"]),le=Wu(y,["b","r"]),ce=Wu(_,["b","r"]),de=(ue=b.overflow||{}).adjustX,pe=ue.adjustY,fe=ue.shiftX,me=ue.shiftY,ge=function(e){return"boolean"==typeof e?e:e>=0},Xe(),_e=ge(pe),we=J[0]===Q[0],_e&&"t"===J[0]&&(be>L.bottom||g.current.bt)&&(ke=re,we?ke-=D-j:ke=ae.y-ce.y-G,xe=e(ne,ke),Se=e(ne,ke,F),xe>oe||xe===oe&&(!A||Se>=ie)?(g.current.bt=!0,re=ke,te.points=[Vu(J,0),Vu(Q,0)]):g.current.bt=!1),_e&&"b"===J[0]&&(heoe||Ee===oe&&(!A||De>=ie)?(g.current.tb=!0,re=Ce,te.points=[Vu(J,0),Vu(Q,0)]):g.current.tb=!1),Oe=ge(de),je=J[1]===Q[1],Oe&&"l"===J[1]&&(ve>L.right||g.current.rl)&&($e=ne,je?$e-=O-$:$e=ae.x-ce.x-V,Pe=e($e,re),Ne=e($e,re,F),Pe>oe||Pe===oe&&(!A||Ne>=ie)?(g.current.rl=!0,ne=$e,te.points=[Vu(J,1),Vu(Q,1)]):g.current.rl=!1),Oe&&"r"===J[1]&&(yeoe||Ie===oe&&(!A||Ae>=ie)?(g.current.lr=!0,ne=Te,te.points=[Vu(J,1),Vu(Q,1)]):g.current.lr=!1),Xe(),"number"==typeof(Re=!0===fe?0:fe)&&(yeF.right&&(ne-=ve-F.right,y.x>F.right-Re&&(ne+=y.x-F.right+Re))),"number"==typeof(Fe=!0===me?0:me)&&(heF.bottom&&(re-=be-F.bottom-G,y.y>F.bottom-Fe&&(re+=y.y-F.bottom+Fe))),Le=(Me=_.x+ne)+O,Be=(ze=_.y+re)+D,Ue=(He=y.x)+$,Ve=(We=y.y)+j,Ge=(Math.max(Me,He)+Math.min(Le,Ue))/2-Me,qe=(Math.max(ze,We)+Math.min(Be,Ve))/2-ze,null==a||a(t,te),p({ready:!0,offsetX:ne/B,offsetY:re/H,offsetR:(z.right-_.x-(ne+_.width))/B,offsetB:(z.bottom-_.y-(re+_.height))/H,arrowX:Ge/B,arrowY:qe/H,scaleX:B,scaleY:H,align:te})}})),l=function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&s()}))},RE(c=function(){p((function(e){return va(va({},e),{},{ready:!1})}))},[r]),RE((function(){e||c()}),[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,l]}(x,l,it?F:p,Je,et,tt,st),H=(B=za(z,11))[0],U=B[1],W=B[2],V=B[3],G=B[4],q=B[5],X=B[6],K=B[7],Y=B[8],Q=B[9],J=B[10],Z=Dl((function(){P||J()})),function(e,t,n,r){RE((function(){var o,i,a,s,l;if(e&&t&&n){let e=function(){r()};return o=n,i=Fu(t),a=Fu(o),s=Ru(o),(l=new Set([s].concat(ba(i),ba(a)))).forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(x,p,l,Z),RE((function(){Z()}),[F,Je]),RE((function(){!x||null!=et&&et[Je]||Z()}),[JSON.stringify(tt)]),ee=dv.useMemo((function(){var e=function(e,t,n,r){var o,i,a,s=n.points,l=Object.keys(e);for(o=0;o1?a-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==e?e:10,n=za(dv.useState(!1),2),r=n[0],o=n[1],i=dv.useRef(null),a=function(){window.clearTimeout(i.current)};return dv.useEffect((function(){return a}),[]),[r,function(e,n){a(),i.current=window.setTimeout((function(){o(e),n&&n()}),t)},a]}(),m=(f=za(p,3))[0],g=f[1],h=f[2],dv.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=u.current)||void 0===e?void 0:e.focus,blur:null===(t=u.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=d.current)||void 0===t?void 0:t.scrollTo(e)}}})),b=dv.useMemo((function(){var e,t;return"combobox"!==ve?$e:"string"==typeof(t=null===(e=fe[0])||void 0===e?void 0:e.value)||"number"==typeof t?String(t):""}),[$e,ve,fe]),y="combobox"===ve&&"function"==typeof ke&&ke()||null,v="function"==typeof xe&&xe(),_=Fs(l,null==v||null===(n=v.props)||void 0===n?void 0:n.ref),k=(w=za(dv.useState(!1),2))[0],x=w[1],RE((function(){x(!0)}),[]),S=za($l(!1,{defaultValue:Ce,value:Se}),2),C=S[0],D=!!k&&C,O=!be&&ge,(_e||O&&D&&"combobox"===ve)&&(D=!1),j=!O&&D,$=dv.useCallback((function(e){var t=void 0!==e?e:!D;_e||(E(t),D!==t&&(null==Ee||Ee(t)))}),[_e,D,E=S[1],Ee]),P=dv.useMemo((function(){return(Ie||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Ie]),N=function(e,t,n){var r,o,i,a,s=!0,l=e;return null==Oe||Oe(null),r=n?null:(o=Ie)&&o.length?(i=!1,a=function e(t,n){var r,o=Xs(n),a=o[0],s=o.slice(1);return a?(r=t.split(a),i=i||r.length>1,r.reduce((function(t,n){return[].concat(ba(t),ba(e(n,s)))}),[]).filter((function(e){return e}))):[t]}(e,o),i?a:null):null,"combobox"!==ve&&r&&(l="",null==Te||Te(r),$(!1),s=!1),Ne&&b!==l&&Ne(l,{source:t?"typing":"effect"}),s},T=function(e){e&&e.trim()&&Ne(e,{source:"submit"})},dv.useEffect((function(){D||ot||"combobox"===ve||N("",!1,!1)}),[D]),dv.useEffect((function(){C&&_e&&E(!1),_e&&g(!1)}),[_e]),I=za(Su(),2),A=I[0],R=I[1],F=function(e){var t,n,r,o,i,a,s,l,c=A(),u=e.which;if(u===dj.ENTER&&("combobox"!==ve&&e.preventDefault(),D||$(!0)),R(!!b),u===dj.BACKSPACE&&!c&&ot&&!b&&fe.length){for(n=null,r=(t=ba(fe)).length-1;r>=0;r-=1)if(!(o=t[r]).disabled){t.splice(r,1),n=o;break}n&&me(t,{type:"remove",values:[n]})}for(i=arguments.length,a=new Array(i>1?i-1:0),s=1;s1?t-1:0),r=1;r1?r-1:0),a=1;ae.height},n}js(e,dv.Component);var t=Ts(e);return Ci(e,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){var e,t;this.removeEvents(),null===(e=this.scrollbarRef.current)||void 0===e||e.removeEventListener("touchstart",this.onScrollbarTouchStart),null===(t=this.thumbRef.current)||void 0===t||t.removeEventListener("touchstart",this.onMouseDown),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props,o=r.prefixCls,i=r.direction,a=this.getSpinHeight(),s=this.getTop(),l=this.showScroll(),c=l&&n,u="rtl"===i?{left:0}:{right:0};return dv.createElement("div",{ref:this.scrollbarRef,className:yZ("".concat(o,"-scrollbar"),_i({},"".concat(o,"-scrollbar-show"),l)),style:va(va({width:8,top:0,bottom:0},u),{},{position:"absolute",display:c?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},dv.createElement("div",{ref:this.thumbRef,className:yZ("".concat(o,"-scrollbar-thumb"),_i({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:a,top:s,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),e}(),hP=function(){function e(){xi(this,e),this.maps=void 0,this.maps=Object.create(null)}return Ci(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),bP="object"===("undefined"==typeof navigator?"undefined":yi(navigator))&&/Firefox/i.test(navigator.userAgent);const L5=function(e,t){var n=dv.useRef(!1),r=dv.useRef(null),o=dv.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e,t){var i=e<0&&o.current.top||e>0&&o.current.bottom;return arguments.length>1&&void 0!==t&&t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};yP=14/15,vP=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],_P=[],wP={overflowY:"auto",overflowAnchor:"none"},(kP=dv.forwardRef(nd)).displayName="List",xP=dv.createContext(null),SP=["disabled","title","children","style","className"],CP=function(e,t){function n(e,t){return{role:e.group?"presentation":"option",id:"".concat(d,"_list_").concat(t)}}var r,o,i,a,s,l,c=dv.useContext(D$),u=c.prefixCls,d=c.id,p=c.open,f=c.multiple,m=c.mode,g=c.searchValue,h=c.toggleOpen,b=c.notFoundContent,y=c.onPopupScroll,v=dv.useContext(xP),_=v.flattenOptions,w=v.onActiveValue,k=v.defaultActiveFirstOption,x=v.onSelect,S=v.menuItemSelectedIcon,C=v.rawValues,E=v.fieldNames,D=v.virtual,O=v.direction,j=v.listHeight,$=v.listItemHeight,P="".concat(u,"-item"),N=wa((function(){return _}),[p,_],(function(e,t){return t[0]&&e[1]!==t[1]})),T=dv.useRef(null),I=function(e){e.preventDefault()},A=function(e){T.current&&T.current.scrollTo("number"==typeof e?{index:e}:e)},R=function(e,t){var n,r,o,i=arguments.length>1&&void 0!==t?t:1,a=N.length;for(n=0;n1&&void 0!==t&&t;L(e),n={source:o?"keyboard":"mouse"},(r=N[e])?w(r.value,e,n):w(null,-1,n)};return dv.useEffect((function(){z(!1!==k?R(0):-1)}),[N.length,g]),r=dv.useCallback((function(e){return C.has(e)&&"combobox"!==m}),[m,ba(C).toString(),C.size]),dv.useEffect((function(){var e,t=setTimeout((function(){var e,t;!f&&p&&1===C.size&&(e=Array.from(C)[0],-1!==(t=N.findIndex((function(t){return t.data.value===e})))&&(z(t),A(t)))}));return p&&(null===(e=T.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[p,g,_.length]),o=function(e){void 0!==e&&x(e,{selected:!C.has(e)}),f||h(!1)},dv.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t,n,r,i=e.which,a=e.ctrlKey;switch(i){case dj.N:case dj.P:case dj.UP:case dj.DOWN:t=0,i===dj.UP?t=-1:i===dj.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&a&&(i===dj.N?t=1:i===dj.P&&(t=-1)),0!==t&&(n=R(M+t,t),A(n),z(n,!0));break;case dj.ENTER:o((r=N[M])&&!r.data.disabled?r.value:void 0),p&&e.preventDefault();break;case dj.ESC:h(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}})),0===N.length?dv.createElement("div",{role:"listbox",id:"".concat(d,"_list"),className:"".concat(P,"-empty"),onMouseDown:I},b):(i=Object.keys(E).map((function(e){return E[e]})),a=function(e){return e.label},s=function(e){var t,o,i,s,l,c=N[e];return c?(o=(t=c.data||{}).value,i=c.group,s=ec(t,!0),l=a(c),c?dv.createElement("div",la({"aria-label":"string"!=typeof l||i?null:l},s,{key:e},n(c,e),{"aria-selected":r(o)}),o):null):null},l={role:"listbox",id:"".concat(d,"_list")},dv.createElement(dv.Fragment,null,D&&dv.createElement("div",la({},l,{style:{height:0,width:0,overflow:"hidden"}}),s(M-1),s(M),s(M+1)),dv.createElement(kP,{itemKey:"key",ref:T,data:N,height:j,itemHeight:$,fullHeight:!1,onMouseDown:I,onScroll:y,virtual:D,direction:O,innerProps:D?null:l},(function(e,t){var s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k=e.groupOption,x=e.data,C=e.label,E=e.value,O=x.key;return e.group?(c=null!==(l=x.title)&&void 0!==l?l:rd(C)?C.toString():void 0,dv.createElement("div",{className:yZ(P,"".concat(P,"-group")),title:c},void 0!==C?C:O)):(u=x.disabled,d=x.title,p=x.style,f=x.className,m=Gs(wi(x,SP),i),g=r(E),h="".concat(P,"-option"),b=yZ(P,h,f,(_i(s={},"".concat(h,"-grouped"),k),_i(s,"".concat(h,"-active"),M===t&&!u),_i(s,"".concat(h,"-disabled"),u),_i(s,"".concat(h,"-selected"),g),s)),y=a(e),v=!S||"function"==typeof S||g,w=rd(_="number"==typeof y?y:y||E)?_.toString():void 0,void 0!==d&&(w=d),dv.createElement("div",la({},ec(m),D?{}:n(e,t),{"aria-selected":g,className:b,title:w,onMouseMove:function(){M===t||u||z(t)},onClick:function(){u||o(E)},style:p}),dv.createElement("div",{className:"".concat(h,"-content")},_),dv.isValidElement(S)||g,v&&dv.createElement(B$,{className:"".concat(P,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:g}},g?"✓":null)))}))))},(EP=dv.forwardRef(CP)).displayName="OptionList",DP=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],OP=["inputValue"],jP=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x=e.id,S=e.mode,C=e.prefixCls,E=void 0===C?"rc-select":C,D=e.backfill,O=e.fieldNames,j=e.inputValue,$=e.searchValue,P=e.onSearch,N=e.autoClearSearchValue,T=void 0===N||N,I=e.onSelect,A=e.onDeselect,R=e.dropdownMatchSelectWidth,F=void 0===R||R,M=e.filterOption,L=e.filterSort,z=e.optionFilterProp,B=e.optionLabelProp,H=e.options,U=e.children,W=e.defaultActiveFirstOption,V=e.menuItemSelectedIcon,G=e.virtual,q=e.direction,X=e.listHeight,K=void 0===X?200:X,Y=e.listItemHeight,Q=void 0===Y?20:Y,J=e.value,Z=e.defaultValue,ee=e.labelInValue,te=e.onChange,ne=wi(e,DP),re=function(e){var t=za(dv.useState(),2),n=t[0],r=t[1];return dv.useEffect((function(){var e;r("rc_select_".concat((cP?(e=lP,lP+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(x),oe=Qu(S),ie=!(H||!U),ae=dv.useMemo((function(){return(void 0!==M||"combobox"!==S)&&M}),[M,S]),se=dv.useMemo((function(){return Ku(O,ie)}),[JSON.stringify(O),ie]),le=za($l("",{value:void 0!==$?$:j,postState:function(e){return e||""}}),2),ce=le[0],ue=le[1],de=function(e,t,n,r,o){return dv.useMemo((function(){var i,a,s,l=e;return!e&&(l=Ju(t)),i=new Map,a=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)},function e(t,l){var c,u,d=arguments.length>1&&void 0!==l&&l;for(c=0;c1&&void 0!==t?t:{},r=n.childrenAsData,o=[],i=Ku(n.fieldNames,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){t.forEach((function(t){var i,u;n||!(l in t)?(i=t[s],o.push({key:Xu(t,o.length),groupOption:n,data:t,label:t[a],value:i})):(void 0===(u=t[c])&&r&&(u=t.label),o.push({key:Xu(t,o.length),group:!0,data:t,label:u}),e(t[l],!0))}))}(e,!1),o}(a,{fieldNames:se,childrenAsData:ie})}),[a,se,ie]),l=function(e){var t,n,r=ge(e);ye(r),te&&(r.length!==we.length||r.some((function(e,t){var n;return(null===(n=we[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))&&(t=ee?r:r.map((function(e){return e.value})),n=r.map((function(e){return Yu(ke(e.value))})),te(oe?t:t[0],oe?n:n[0]))},u=(c=za(dv.useState(null),2))[0],d=c[1],f=(p=za(dv.useState(0),2))[0],m=p[1],g=void 0!==W?W:"combobox"!==S,h=dv.useCallback((function(e,t,n){var r=(arguments.length>2&&void 0!==n?n:{}).source,o=void 0===r?"keyboard":r;m(t),D&&"combobox"===S&&null!==e&&"keyboard"===o&&d(String(e))}),[D,S]),b=function(e,t,n){var r,o,i=function(){var t,n=ke(e);return[ee?{label:null==n?void 0:n[se.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Yu(n)]};t&&I?(r=za(i(),2),I(r[0],r[1])):!t&&A&&"clear"!==n&&(o=za(i(),2),A(o[0],o[1]))},y=Zu((function(e,t){var n,r=!oe||t.selected;n=r?oe?[].concat(ba(we),[e]):[e]:we.filter((function(t){return t.value!==e})),l(n),b(e,r),"combobox"===S?d(""):Qu&&!T||(ue(""),d(""))})),v=function(e,t){l(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach((function(e){b(e.value,!1,n)}))},_=function(e,t){var n,r;ue(e),d(null),"submit"!==t.source?"blur"!==t.source&&("combobox"===S&&l(e),null==P||P(e)):(n=(e||"").trim())&&(r=Array.from(new Set([].concat(ba(Se),[n]))),l(r),b(n,!0),ue(""))},w=function(e){var t,n=e;"tags"!==S&&(n=e.map((function(e){var t=fe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e}))),t=Array.from(new Set([].concat(ba(Se),ba(n)))),l(t),t.forEach((function(e){b(e,!0)}))},k=dv.useMemo((function(){var e=!1!==G&&!1!==F;return va(va({},de),{},{flattenOptions:s,onActiveValue:h,defaultActiveFirstOption:g,onSelect:y,menuItemSelectedIcon:V,rawValues:Se,fieldNames:se,virtual:e,direction:q,listHeight:K,listItemHeight:Q,childrenAsData:ie})}),[de,s,h,g,y,V,Se,se,G,F,K,Q,ie]),dv.createElement(xP.Provider,{value:k},dv.createElement(sP,la({},ne,{id:re,prefixCls:E,ref:t,omitDomProps:OP,mode:S,displayValues:xe,onDisplayValuesChange:v,direction:q,searchValue:ce,onSearch:_,autoClearSearchValue:T,onSearchSplit:w,dropdownMatchSelectWidth:F,OptionList:EP,emptyOptions:!s.length,activeValue:u,activeDescendantId:"".concat(re,"_list_").concat(f)})))})),($P=jP).Option=fP,$P.OptGroup=pP;const z5=(e,t)=>t||e,B5=()=>{const[,e]=El(),t=new cO(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return dv.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},dv.createElement("g",{fill:"none",fillRule:"evenodd"},dv.createElement("g",{transform:"translate(24 31.67)"},dv.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),dv.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"}),dv.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)"}),dv.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"}),dv.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.515c-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"})),dv.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"}),dv.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},dv.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),dv.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},H5=()=>{const[,e]=El(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=dv.useMemo((()=>({borderColor:new cO(t).onBackground(o).toHexShortString(),shadowColor:new cO(n).onBackground(o).toHexShortString(),contentColor:new cO(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return dv.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},dv.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},dv.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),dv.createElement("g",{fillRule:"nonzero",stroke:i},dv.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"}),dv.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}))))},U5=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},W5=Tl("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=Pl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[U5(r)]}));PP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:r,image:o=V5,description:i,children:a,imageStyle:s,style:l}=e,c=PP(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:p}=dv.useContext(WZ),f=u("empty",r),[m,g]=W5(f),[h]=DZ("Empty"),b=void 0!==i?i:null==h?void 0:h.description;let y=null;return y="string"==typeof o?dv.createElement("img",{alt:"string"==typeof b?b:"empty",src:o}):o,m(dv.createElement("div",Object.assign({className:yZ(g,f,null==p?void 0:p.className,{[`${f}-normal`]:o===G5,[`${f}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),l)},c),dv.createElement("div",{className:`${f}-image`,style:s},y),b&&dv.createElement("div",{className:`${f}-description`},b),a&&dv.createElement("div",{className:`${f}-footer`},a)))};q5.PRESENTED_IMAGE_DEFAULT=V5,q5.PRESENTED_IMAGE_SIMPLE=G5;const X5=q5,K5=e=>{const{componentName:t}=e,{getPrefixCls:n}=dv.useContext(WZ),r=n("empty");switch(t){case"Table":case"List":return LJ.createElement(X5,{image:X5.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return LJ.createElement(X5,{image:X5.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return LJ.createElement(X5,null)}},Y5=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Q5=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},qZ(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 &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:M2},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:z2},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:L2},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:B2},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Y5(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"},GZ),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},q2(e,"slide-up"),q2(e,"slide-down"),F2(e,"move-up"),F2(e,"move-down")]},J5=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]},Z5=e=>{const{componentCls:t}=e,n=Pl(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Pl(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=J5(e);return[id(e),id(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},id(r,"lg")]},e4=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},t4=function(e,t,n){let r=arguments.length>2&&void 0!==n&&n;const{componentCls:o,borderHoverColor:i,outlineColor:a,antCls:s}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${s}-pagination-size-changer)`]:Object.assign(Object.assign({},r?{[`${o}-selector`]:{borderColor:i}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:i}})}}},n4=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},r4=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},qZ(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},e4(e)),n4(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},GZ),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},GZ),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},o4=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},r4(e),sd(e),Z5(e),Q5(e),{[`${t}-rtl`]:{direction:"rtl"}},t4(t,Pl(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),t4(`${t}-status-error`,Pl(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),t4(`${t}-status-warning`,Pl(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),kc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},i4=Tl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=Pl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[o4(r)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));NP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:p=24,size:f,disabled:m,notFoundContent:g,status:h,showArrow:b,builtinPlacements:y,dropdownMatchSelectWidth:v,popupMatchSelectWidth:_,direction:w,style:k}=e,x=NP(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style"]);const{getPopupContainer:S,getPrefixCls:C,renderEmpty:E,direction:D,virtual:O,popupMatchSelectWidth:j,popupOverflow:$,select:P}=dv.useContext(WZ),N=C("select",r),T=C(),I=null!=w?w:D,{compactSize:A,compactItemClassnames:R}=t1(N,I),[F,M]=i4(N),L=dv.useMemo((()=>{const{mode:e}=x;if("combobox"!==e)return e===a4?"combobox":e}),[x.mode]),z="multiple"===L||"tags"===L,B=function(e){return null==e||e}(b),H=null!==(n=null!=_?_:v)&&void 0!==n?n:j,{status:U,hasFeedback:W,isFormItemInput:V,feedbackIcon:G}=dv.useContext(w2),q=z5(U,h);let X;X=void 0!==g?g:"combobox"===L?null:(null==E?void 0:E("Select"))||dv.createElement(K5,{componentName:"Select"});const{suffixIcon:K,itemIcon:Y,removeIcon:Q,clearIcon:J}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const d=null!=n?n:dv.createElement(w0,null),p=e=>dv.createElement(dv.Fragment,null,!1!==c&&e,s&&u);let f=null;if(void 0!==t)f=p(t);else if(i)f=p(dv.createElement(F0,{spin:!0}));else{const e=`${l}-suffix`;f=t=>{let{open:n,showSearch:r}=t;return p(dv.createElement(n&&r?d2:Q1,{className:e}))}}let m=null;m=void 0!==r?r:a?dv.createElement(q1,null):null;let g=null;return g=void 0!==o?o:dv.createElement(x0,null),{clearIcon:d,suffixIcon:f,itemIcon:m,removeIcon:g}}(Object.assign(Object.assign({},x),{multiple:z,hasFeedback:W,feedbackIcon:G,showArrow:B,prefixCls:N})),Z=Gs(x,["suffixIcon","itemIcon"]),ee=yZ(l||c,{[`${N}-dropdown-${I}`]:"rtl"===I},a,M),te=Y0((e=>{var t;return null!==(t=null!=f?f:A)&&void 0!==t?t:e})),ne=dv.useContext(r0),re=null!=m?m:ne,oe=yZ({[`${N}-lg`]:"large"===te,[`${N}-sm`]:"small"===te,[`${N}-rtl`]:"rtl"===I,[`${N}-borderless`]:!o,[`${N}-in-form-item`]:V},od(N,q,W),R,null==P?void 0:P.className,i,a,M),ie=dv.useMemo((()=>void 0!==d?d:"rtl"===I?"bottomRight":"bottomLeft"),[d,I]),ae=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{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)}(y,$);return F(dv.createElement($P,Object.assign({ref:t,virtual:O,showSearch:null==P?void 0:P.showSearch},Z,{style:Object.assign(Object.assign({},null==P?void 0:P.style),k),dropdownMatchSelectWidth:H,builtinPlacements:ae,transitionName:V1(T,W1(d),x.transitionName),listHeight:u,listItemHeight:p,mode:L,prefixCls:N,placement:ie,direction:I,inputIcon:K,menuItemSelectedIcon:Y,removeIcon:Q,clearIcon:J,notFoundContent:X,className:oe,getPopupContainer:s||S,dropdownClassName:ee,showArrow:W||B,disabled:re})))},l4=dv.forwardRef(s4),c4=(NQ=l4,function(e){const{prefixCls:t,style:n}=e,r=dv.useRef(null),[o,i]=dv.useState(0),[a,s]=dv.useState(0),[l,c]=$l(!1,{value:e.open}),{getPrefixCls:u}=dv.useContext(WZ),d=u("select",t);dv.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=null===(n=r.current)||void 0===n?void 0:n.querySelector(`.${d}-dropdown`);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let p=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return dv.createElement(g0,{theme:{token:{motion:!1}}},dv.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:a}},dv.createElement(NQ,Object.assign({},p))))});l4.SECRET_COMBOBOX_MODE_DO_NOT_USE=a4,l4.Option=fP,l4.OptGroup=pP,l4._InternalPanelDoNotUseOrYouWillBeFired=c4;const u4=l4,d4=["xxl","xl","lg","md","sm","xs"],p4=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)`}),f4=e=>{const t=e,n=[].concat(d4).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(rnew cO(e).setAlpha(t).toRgbString(),_4=(e,t)=>new cO(e).lighten(t).toHexString(),w4=e=>{const t=_l(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},k4=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:v4(r,.85),colorTextSecondary:v4(r,.65),colorTextTertiary:v4(r,.45),colorTextQuaternary:v4(r,.25),colorFill:v4(r,.18),colorFillSecondary:v4(r,.12),colorFillTertiary:v4(r,.08),colorFillQuaternary:v4(r,.04),colorBgElevated:_4(n,12),colorBgContainer:_4(n,8),colorBgLayout:_4(n,0),colorBgSpotlight:_4(n,26),colorBorder:_4(n,26),colorBorderSecondary:_4(n,19)}},x4={defaultConfig:BZ,defaultSeed:BZ.token,useToken:function(){const[e,t,n]=El();return{theme:e,token:t,hashId:n}},defaultAlgorithm:kl,darkAlgorithm:(e,t)=>{const n=Object.keys(NZ).map((t=>{const n=_l(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:kl(e);return Object.assign(Object.assign(Object.assign({},r),n),wl(e,{generateColorPalettes:w4,generateNeutralColorPalettes:k4}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:kl(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),LZ(r)),{controlHeight:o}),PZ(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=Ss((null==e?void 0:e.algorithm)?e.algorithm:kl),n=Object.assign(Object.assign({},TZ),null==e?void 0:e.token);return WE(n,{override:null==e?void 0:e.token},t,Cl)}},S4=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qZ(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,g4)}},[`${t}-content`]:{position:"relative"}}),Il(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},pd(Pl(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},C4=(e,t)=>Tl("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=Pl(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[S4(a),s5(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),E4=jZ.map((e=>`${e}-inverse`)),D4=["success","processing","error","default","warning"];LP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:f,arrow:m=!0,title:g,overlay:h,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:v=!0}=e,_=!!m,{token:w}=O4(),{getPopupContainer:k,getPrefixCls:x,direction:S}=dv.useContext(WZ),C=dv.useRef(null),E=()=>{var e;null===(e=C.current)||void 0===e||e.forceAlign()};dv.useImperativeHandle(t,(()=>({forceAlign:E,forcePopupAlign:()=>{E()}})));const[D,O]=$l(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),j=!g&&!h&&0!==g,$=dv.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||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(h4).forEach((e=>{const c=Object.assign(Object.assign({},r&&b4[e]||h4[e]),{offset:[0,0]});switch(l[e]=c,y4.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=s+o}const u=ud({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-u.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":c.offset[0]=u.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":c.offset[1]=-u.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":c.offset[1]=u.dropdownArrowOffset+s}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,u,t,n),a&&(c.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:v,arrowWidth:_?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[y,m,b,w]),P=dv.useMemo((()=>0===g?g:h||g||""),[h,g]),N=dv.createElement(n1,null,"function"==typeof P?P():P),{getPopupContainer:T,placement:I="top",mouseEnterDelay:A=.1,mouseLeaveDelay:R=.1,overlayStyle:F,rootClassName:M}=e,L=LP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),z=x("tooltip",o),B=x(),H=e["data-popover-inject"];let U=D;"open"in e||"visible"in e||!j||(U=!1);const W=function(e,t){const n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){const{picked:n,omitted:r}=(e=>{const t={},n=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach((r=>{e&&r in e&&(t[r]=e[r],delete n[r])})),{picked:t,omitted:n}})(e.props.style),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),i=nc(e,{style:Object.assign(Object.assign({},r),{pointerEvents:"none"}),className:null});return dv.createElement("span",{style:o,className:yZ(e.props.className,`${t}-disabled-compatible-wrapper`)},i)}return e}(O0(u)&&!tc(u)?u:dv.createElement("span",null,u),z),V=W.props,G=V.className&&"string"!=typeof V.className?V.className:yZ(V.className,i||`${z}-open`),[q,X]=C4(z,!H),K=md(z,l),Y=K.arrowStyle,Q=Object.assign(Object.assign({},c),K.overlayStyle),J=yZ(s,{[`${z}-rtl`]:"rtl"===S},K.className,M,X);return q(dv.createElement(m4,Object.assign({},L,{showArrow:_,placement:I,mouseEnterDelay:A,mouseLeaveDelay:R,prefixCls:z,overlayClassName:J,overlayStyle:Object.assign(Object.assign({},Y),F),getTooltipContainer:T||a||k,ref:C,builtinPlacements:$,overlay:N,visible:U,onVisibleChange:t=>{var n,r;O(!j&&t),j||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:p,overlayInnerStyle:Q,arrowContent:dv.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:V1(B,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),U?nc(W,{className:G}):W))}));j4._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=dv.useContext(WZ),l=s("tooltip",t),[c,u]=C4(l,!0),d=md(l,i),p=d.arrowStyle,f=Object.assign(Object.assign({},a),d.overlayStyle),m=yZ(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(dv.createElement("div",{className:m,style:p},dv.createElement("div",{className:`${l}-arrow`}),dv.createElement(cd,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),o)))};const $4=j4;zP=dj.ESC,BP=dj.TAB,HP=dv.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=dv.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=Rs(t,null==i?void 0:i.ref);return LJ.createElement(LJ.Fragment,null,r&&LJ.createElement("div",{className:"".concat(o,"-arrow")}),LJ.cloneElement(i,{ref:Ms(i)?a:void 0}))})),VP={topLeft:{points:["bl","tl"],overflow:UP={adjustX:1,adjustY:1},offset:[0,-4],targetOffset:WP=[0,0]},top:{points:["bc","tc"],overflow:UP,offset:[0,-4],targetOffset:WP},topRight:{points:["br","tr"],overflow:UP,offset:[0,-4],targetOffset:WP},bottomLeft:{points:["tl","bl"],overflow:UP,offset:[0,4],targetOffset:WP},bottom:{points:["tc","bc"],overflow:UP,offset:[0,4],targetOffset:WP},bottomRight:{points:["tr","br"],overflow:UP,offset:[0,4],targetOffset:WP}},GP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const P4=LJ.forwardRef(gd);qP=dv.createContext(null),XP=["children","locked"],KP=dv.createContext(null),YP=[],QP=dv.createContext(null),JP=dv.createContext(YP),ZP=dv.createContext(null),eN=dv.createContext({}),iN=dj.ENTER,aN=dj.ESC,sN=dj.HOME,lN=dj.END,cN=[rN=dj.UP,oN=dj.DOWN,tN=dj.LEFT,nN=dj.RIGHT],uN="__RC_UTIL_PATH_SPLIT__",dN=function(e){return e.join(uN)},pN=function(e){return e.split(uN)},fN="rc-menu-more",mN=Math.random().toFixed(5).toString().slice(2),gN=0,hN=["item"],bN=["title","attribute","elementRef"],yN=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],vN=["active"],_N=function(){function e(){return xi(this,e),t.apply(this,arguments)}js(e,dv.Component);var t=Ts(e);return Ci(e,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Gs(wi(e,bN),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ca(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),dv.createElement(z$.Item,la({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),e}(),wN=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B=e.style,H=e.className,U=e.eventKey;return r=e.disabled,o=e.itemIcon,i=e.children,a=e.role,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onClick,u=e.onKeyDown,d=e.onFocus,p=wi(e,yN),f=bd(U),g=(m=dv.useContext(KP)).prefixCls,h=m.onItemClick,b=m.disabled,y=m.overflowDisabled,v=m.itemIcon,_=m.selectedKeys,w=m.onActive,k=dv.useContext(eN)._internalRenderMenuItem,x="".concat(g,"-item"),S=dv.useRef(),C=dv.useRef(),E=b||r,D=Fs(t,C),O=_d(U),j=function(e){return{key:U,keyPath:ba(O).reverse(),item:S.current,domEvent:e}},$=o||v,N=(P=Cd(U,E,s,l)).active,T=wi(P,vN),I=_.includes(U),A=Ed(O.length),R=function(e){if(!E){var t=j(e);null==c||c(Od(t)),h(t)}},F=function(e){if(null==u||u(e),e.which===dj.ENTER){var t=j(e);null==c||c(Od(t)),h(t)}},M=function(e){w(U),null==d||d(e)},L={},"option"===e.role&&(L["aria-selected"]=I),z=dv.createElement(_N,la({ref:S,elementRef:D,role:null===a?"none":a||"menuitem",tabIndex:r?null:-1,"data-menu-id":y&&f?null:f},p,T,L,{component:"li","aria-disabled":r,style:va(va({},A),B),className:yZ(x,(n={},_i(n,"".concat(x,"-active"),N),_i(n,"".concat(x,"-selected"),I),_i(n,"".concat(x,"-disabled"),E),n),H),onClick:R,onKeyDown:F,onFocus:M}),i,dv.createElement(Dd,{props:va(va({},e),{},{isSelected:I}),icon:$})),k&&(z=k(z,e,{selected:I})),z}));const N4=dv.forwardRef(jd);kN=["className","children"],xN=function(e,t){var n=e.className,r=e.children,o=wi(e,kN),i=dv.useContext(KP),a=i.prefixCls,s=i.mode;return dv.createElement("ul",la({className:yZ(a,i.rtl&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},(SN=dv.forwardRef(xN)).displayName="SubMenuList",EN={topLeft:{points:["bl","tl"],overflow:CN={adjustX:1,adjustY:1}},topRight:{points:["br","tr"],overflow:CN},bottomLeft:{points:["tl","bl"],overflow:CN},bottomRight:{points:["tr","br"],overflow:CN},leftTop:{points:["tr","tl"],overflow:CN},leftBottom:{points:["br","bl"],overflow:CN},rightTop:{points:["tl","tr"],overflow:CN},rightBottom:{points:["bl","br"],overflow:CN}},DN={topLeft:{points:["bl","tl"],overflow:CN},topRight:{points:["br","tr"],overflow:CN},bottomLeft:{points:["tl","bl"],overflow:CN},bottomRight:{points:["tr","br"],overflow:CN},rightTop:{points:["tr","tl"],overflow:CN},rightBottom:{points:["br","bl"],overflow:CN},leftTop:{points:["tl","tr"],overflow:CN},leftBottom:{points:["bl","br"],overflow:CN}},ON={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},jN=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$N=["active"],PN=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B,H,U,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce=e.style,ue=e.className,de=e.title,pe=e.eventKey;return n=e.disabled,r=e.internalPopupClose,o=e.children,i=e.itemIcon,a=e.expandIcon,s=e.popupClassName,l=e.popupOffset,c=e.onClick,u=e.onMouseEnter,d=e.onMouseLeave,p=e.onTitleClick,f=e.onTitleMouseEnter,m=e.onTitleMouseLeave,g=wi(e,jN),h=bd(pe),y=(b=dv.useContext(KP)).prefixCls,v=b.mode,_=b.openKeys,w=b.disabled,k=b.overflowDisabled,x=b.activeKey,S=b.selectedKeys,C=b.itemIcon,E=b.expandIcon,D=b.onItemClick,O=b.onOpenChange,j=b.onActive,$=dv.useContext(eN)._internalRenderSubMenuItem,P=dv.useContext(ZP),N=P.isSubPathKey,T=_d(),I="".concat(y,"-submenu"),A=w||n,R=dv.useRef(),F=dv.useRef(),M=i||C,L=a||E,z=_.includes(pe),B=!k&&z,H=N(S,pe),U=Cd(pe,A,f,m),W=U.active,V=wi(U,$N),G=za(dv.useState(!1),2),X=G[1],K=function(e){A||X(e)},Y=function(e){K(!0),null==u||u({key:pe,domEvent:e})},Q=function(e){K(!1),null==d||d({key:pe,domEvent:e})},J=dv.useMemo((function(){return W||"inline"!==v&&(q||N([x],pe))}),[v,W,x,q=G[0],pe,N]),Z=Ed(T.length),ee=function(e){A||(null==p||p({key:pe,domEvent:e}),"inline"===v&&O(pe,!z))},te=Sd((function(e){null==c||c(Od(e)),D(e)})),ne=function(e){"inline"!==v&&O(pe,e)},re=function(){j(pe)},oe=h&&"".concat(h,"-popup"),ie=dv.createElement("div",la({role:"menuitem",style:Z,className:"".concat(I,"-title"),tabIndex:A?null:-1,ref:R,title:"string"==typeof de?de:null,"data-menu-id":k&&h?null:h,"aria-expanded":B,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":A,onClick:ee,onFocus:re},V),de,dv.createElement(Dd,{icon:"horizontal"!==v?L:null,props:va(va({},e),{},{isOpen:B,isSubMenu:!0})},dv.createElement("i",{className:"".concat(I,"-arrow")}))),(ae=dv.useRef(v)).current="inline"!==v&&T.length>1?"vertical":v,k||(ie=dv.createElement(Nd,{mode:se=ae.current,prefixCls:I,visible:!r&&B&&"inline"!==v,popupClassName:s,popupOffset:l,popup:dv.createElement(yd,{mode:"horizontal"===se?"vertical":se},dv.createElement(SN,{id:oe,ref:F},o)),disabled:A,onVisibleChange:ne},ie)),le=dv.createElement(z$.Item,la({role:"none"},g,{component:"li",style:ce,className:yZ(I,"".concat(I,"-").concat(v),ue,(t={},_i(t,"".concat(I,"-open"),B),_i(t,"".concat(I,"-active"),J),_i(t,"".concat(I,"-selected"),H),_i(t,"".concat(I,"-disabled"),A),t)),onMouseEnter:Y,onMouseLeave:Q}),ie,!k&&dv.createElement(Td,{id:oe,open:B,keyPath:T},o)),$&&(le=$(le,e,{selected:H,active:J,open:B,disabled:A})),dv.createElement(yd,{onItemClick:te,mode:"horizontal"===v?"vertical":v,itemIcon:M,expandIcon:L},le)},NN=["className","title","eventKey","children"],TN=["children"],IN=function(e){var t,n,r,o,i=e.className,a=e.title;return t=e.children,n=wi(e,NN),r=dv.useContext(KP),o="".concat(r.prefixCls,"-item-group"),dv.createElement("li",la({role:"presentation"},n,{onClick:function(e){return e.stopPropagation()},className:yZ(o,i)}),dv.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:"string"==typeof a?a:void 0},a),dv.createElement("ul",{role:"group",className:"".concat(o,"-list")},t))},AN=["label","children","key","type"],RN=["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"],FN=[],(MN=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B,H,U,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se=e.prefixCls,le=void 0===se?"rc-menu":se,ce=e.rootClassName,ue=e.style,de=e.className,pe=e.tabIndex,fe=void 0===pe?0:pe,me=e.items,ge=e.children,he=e.direction,be=e.id,ye=e.mode,ve=void 0===ye?"vertical":ye,_e=e.inlineCollapsed,we=e.disabled,ke=e.disabledOverflow,xe=e.subMenuOpenDelay,Se=void 0===xe?.1:xe,Ce=e.subMenuCloseDelay,Ee=void 0===Ce?.1:Ce,De=e.forceSubMenuRender,Oe=e.defaultOpenKeys,je=e.openKeys,$e=e.activeKey,Pe=e.defaultActiveFirst,Ne=e.selectable,Te=void 0===Ne||Ne,Ie=e.multiple,Ae=void 0!==Ie&&Ie,Re=e.defaultSelectedKeys,Fe=e.selectedKeys,Me=e.onSelect,Le=e.onDeselect,ze=e.inlineIndent,Be=void 0===ze?24:ze,He=e.motion,Ue=e.defaultMotions,We=e.triggerSubMenuAction,Ve=void 0===We?"hover":We,Ge=e.builtinPlacements,qe=e.itemIcon,Xe=e.expandIcon,Ke=e.overflowedIndicator,Ye=void 0===Ke?"...":Ke,Qe=e.overflowedIndicatorPopupClassName,Je=e.getPopupContainer,Ze=e.onClick,et=e.onOpenChange,tt=e.onKeyDown;return o=e._internalRenderMenuItem,i=e._internalRenderSubMenuItem,a=wi(e,RN),s=dv.useMemo((function(){return Md(ge,me,FN)}),[ge,me]),c=(l=za(dv.useState(!1),2))[0],u=l[1],d=dv.useRef(),p=function(e){var t=za($l(e,{value:e}),2),n=t[0],r=t[1];return dv.useEffect((function(){gN+=1;var e="".concat(mN,"-").concat(gN);r("rc-menu-uuid-".concat(e))}),[]),n}(be),f="rtl"===he,m=za($l(Oe,{value:je,postState:function(e){return e||FN}}),2),h=m[1],b=function(e,t){function n(){h(e),null==et||et(e)}arguments.length>1&&void 0!==t&&t?CS.flushSync(n):n()},y=za(dv.useState(g=m[0]),2),v=y[0],_=y[1],w=dv.useRef(!1),k=za(dv.useMemo((function(){return"inline"!==ve&&"vertical"!==ve||!_e?[ve,!1]:["vertical",_e]}),[ve,_e]),2),S=k[1],C="inline"===(x=k[0]),E=za(dv.useState(x),2),D=E[0],O=E[1],$=(j=za(dv.useState(S),2))[0],P=j[1],dv.useEffect((function(){O(x),P(S),w.current&&(C?h(v):b(FN))}),[x,S]),N=za(dv.useState(0),2),I=N[1],A=(T=N[0])>=s.length-1||"horizontal"!==D||ke,dv.useEffect((function(){C&&_(g)}),[g]),dv.useEffect((function(){return w.current=!0,function(){w.current=!1}}),[]),R=function(){var e=za(dv.useState({}),2)[1],t=dv.useRef(new Map),n=dv.useRef(new Map),r=za(dv.useState([]),2),o=r[0],i=r[1],a=dv.useRef(0),s=dv.useRef(!1),l=dv.useCallback((function(r,o){var i,l,c=dN(o);n.current.set(c,r),t.current.set(r,c),a.current+=1,i=a.current,l=function(){i===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=dv.useCallback((function(e,r){var o=dN(r);n.current.delete(o),t.current.delete(e)}),[]),u=dv.useCallback((function(e){i(e)}),[]),d=dv.useCallback((function(e,n){var r=t.current.get(e)||"",i=pN(r);return n&&o.includes(i[0])&&i.unshift(fN),i}),[o]),p=dv.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),f=dv.useCallback((function(e){var r="".concat(t.current.get(e)).concat(uN),o=new Set;return ba(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return dv.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:d,getKeys:function(){var e=ba(t.current.keys());return o.length&&e.push(fN),e},getSubPathKeys:f}}(),L=R.refreshOverflowKeys,z=R.isSubPathKey,B=R.getKeyPath,H=R.getKeys,U=R.getSubPathKeys,W=dv.useMemo((function(){return{registerPath:F,unregisterPath:M}}),[F=R.registerPath,M=R.unregisterPath]),V=dv.useMemo((function(){return{isSubPathKey:z}}),[z]),dv.useEffect((function(){L(A?FN:s.slice(T+1).map((function(e){return e.key})))}),[T,A]),G=za($l($e||Pe&&(null===(n=s[0])||void 0===n?void 0:n.key),{value:$e}),2),q=G[0],X=G[1],K=Sd((function(e){X(e)})),Y=Sd((function(){X(void 0)})),dv.useImperativeHandle(t,(function(){return{list:d.current,focus:function(e){var t,n,r,o,i=null!=q?q:null===(t=s.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=d.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(hd(p,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}})),Q=za($l(Re||[],{value:Fe,postState:function(e){return Array.isArray(e)?e:null==e?FN:[e]}}),2),J=Q[0],Z=Q[1],ee=function(e){var t,n,r,o;Te&&(n=J.includes(t=e.key),r=Ae?n?J.filter((function(e){return e!==t})):[].concat(ba(J),[t]):[t],Z(r),o=va(va({},e),{},{selectedKeys:r}),n?null==Le||Le(o):null==Me||Me(o)),!Ae&&g.length&&"inline"!==D&&b(FN)},te=Sd((function(e){null==Ze||Ze(Od(e)),ee(e)})),ne=Sd((function(e,t){var n,r=g.filter((function(t){return t!==e}));t?r.push(e):"inline"!==D&&(n=U(e),r=r.filter((function(e){return!n.has(e)}))),Ea(g,r,!0)||b(r,!0)})),re=function(e,t,n,r,o,i,a,s,l,c){var u,d=dv.useRef(),p=dv.useRef();return p.current=t,u=function(){nO.cancel(d.current)},dv.useEffect((function(){return function(){u()}}),[]),function(f){var m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j=f.which;if([].concat(cN,[iN,aN,sN,lN]).includes(j)){if((b=function(){return m=new Set,g=new Map,h=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(hd(r,e),"']"));t&&(m.add(t),h.set(t,e),g.set(e,t))})),m})(),y=g.get(t),v=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y,m),_=h.get(v),w=function(e,t,n,r){var o,i,a,s,l,c,u,d="prev",p="next",f="children",m="parent";if("inline"===e&&r===iN)return{inlineTrigger:!0};switch(_i(o={},rN,d),_i(o,oN,p),l=o,_i(i={},tN,n?p:d),_i(i,nN,n?d:p),_i(i,oN,f),_i(i,iN,f),c=i,_i(a={},rN,d),_i(a,oN,p),_i(a,iN,f),_i(a,aN,m),_i(a,tN,n?f:m),_i(a,nN,n?m:f),null===(s={inline:l,horizontal:c,vertical:u=a,inlineSub:l,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case d:return{offset:-1,sibling:!0};case p:return{offset:1,sibling:!0};case m:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===a(_,!0).length,n,j),!w&&j!==sN&&j!==lN)return;(cN.includes(j)||[sN,lN].includes(j))&&f.preventDefault(),k=function(e){var t,n,r;e&&(t=e,null!=(n=e.querySelector("a"))&&n.getAttribute("href")&&(t=n),r=h.get(e),s(r),u(),d.current=nO((function(){p.current===r&&t.focus()})))},[sN,lN].includes(j)||w.sibling||!v?(C=kd(x=v&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(v):o.current,m),S=j===sN?C[0]:j===lN?C[C.length-1]:xd(x,m,v,w.offset),k(S)):w.inlineTrigger?l(_):w.offset>0?(l(_,!0),u(),d.current=nO((function(){var e,t;b(),e=v.getAttribute("aria-controls"),t=xd(document.getElementById(e),m),k(t)}),5)):w.offset<0&&(E=a(_,!0),O=g.get(D=E[E.length-2]),l(D,!1),k(O))}null==c||c(f)}}(D,q,f,p,d,H,B,X,(function(e,t){var n=null!=t?t:!g.includes(e);ne(e,n)}),tt),dv.useEffect((function(){u(!0)}),[]),oe=dv.useMemo((function(){return{_internalRenderMenuItem:o,_internalRenderSubMenuItem:i}}),[o,i]),ie="horizontal"!==D||ke?s:s.map((function(e,t){return dv.createElement(yd,{key:e.key,overflowDisabled:t>T},e)})),ae=dv.createElement(z$,la({id:be,ref:d,prefixCls:"".concat(le,"-overflow"),component:"ul",itemComponent:N4,className:yZ(le,"".concat(le,"-root"),"".concat(le,"-").concat(D),de,(r={},_i(r,"".concat(le,"-inline-collapsed"),$),_i(r,"".concat(le,"-rtl"),f),r),ce),dir:he,style:ue,role:"menu",tabIndex:fe,data:ie,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?s.slice(-t):null;return dv.createElement(Id,{eventKey:fN,title:Ye,disabled:A,internalPopupClose:0===t,popupClassName:Qe},n)},maxCount:"horizontal"!==D||ke?z$.INVALIDATE:z$.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){I(e)},onKeyDown:re},a)),dv.createElement(eN.Provider,{value:oe},dv.createElement(qP.Provider,{value:p},dv.createElement(yd,{prefixCls:le,rootClassName:ce,mode:D,openKeys:g,rtl:f,disabled:we,motion:c?He:null,defaultMotions:c?Ue:null,activeKey:q,onActive:K,onInactive:Y,selectedKeys:J,inlineIndent:Be,subMenuOpenDelay:Se,subMenuCloseDelay:Ee,forceSubMenuRender:De,builtinPlacements:Ge,triggerSubMenuAction:Ve,getPopupContainer:Je,itemIcon:qe,expandIcon:Xe,onItemClick:te,onOpenChange:ne},dv.createElement(ZP.Provider,{value:V},ae),dv.createElement("div",{style:{display:"none"},"aria-hidden":!0},dv.createElement(QP.Provider,{value:W},s)))))}))).Item=N4,MN.SubMenu=Id,MN.ItemGroup=Ad,MN.Divider=Rd,globalThis&&globalThis;const T4=dv.createContext({});LN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:r}=e,o=LN(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=dv.useContext(WZ),a=i("menu",t),s=yZ({[`${a}-item-divider-dashed`]:!!r},n);return dv.createElement(Rd,Object.assign({className:s},o))},A4=dv.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),R4=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=dv.useContext(A4),{siderCollapsed:p}=dv.useContext(T4);let f=i;void 0===i?f=l?r:"":!1===i&&(f="");const m={title:f};p||d||(m.title=null,m.open=!1);const g=Is(r).length;let h=dv.createElement(N4,Object.assign({},Gs(e,["title","icon","danger"]),{className:yZ({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof i?i:void 0}),nc(o,{className:yZ(O0(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=dv.createElement("span",{className:`${s}-title-content`},r);return(!o||O0(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?dv.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(h=dv.createElement($4,Object.assign({},m,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),h)),h},F4=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=dv.useContext(A4),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=_d();let d;if(r){const e=O0(o)&&"span"===o.type;d=dv.createElement(dv.Fragment,null,nc(r,{className:yZ(O0(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:dv.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?dv.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):dv.createElement("span",{className:`${s}-title-content`},o);const p=dv.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]);return dv.createElement(A4.Provider,{value:p},dv.createElement(Id,Object.assign({},Gs(e,["icon"]),{title:d,popupClassName:yZ(s,n,`${s}-${i||c}`)})))};globalThis&&globalThis;const M4=dv.createContext(null);zN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${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"}}}},z4=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},B4=e=>Object.assign({},YZ(e)),H4=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:y,colorSplit:v,itemDisabledColor:_,dangerItemColor:w,dangerItemHoverColor:k,dangerItemSelectedColor:x,dangerItemActiveBg:S,dangerItemSelectedBg:C,itemHoverBg:E,itemActiveBg:D,menuSubMenuBg:O,horizontalItemSelectedColor:j,horizontalItemSelectedBg:$,horizontalItemBorderRadius:P,horizontalItemHoverBg:N,popupBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},B4(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !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:E},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:C}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},B4(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:$,"&:hover":{backgroundColor:$},"&::after":{borderBottomWidth:c,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${v}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(",")}}}}}},U4=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}},W4=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},U4(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},U4(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,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 ${s} ${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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${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% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:`${r}px`,"+ 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:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},GZ),{paddingInline:f})}}]},V4=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},G4=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,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} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},q4=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:v}=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({},qZ(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${s}px ${l}px`,fontSize:v,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${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:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),V4(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\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},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},V4(e)),G4(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),G4(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};BN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const o=dv.useContext(M4),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=dv.useContext(WZ),u=a(),{prefixCls:d,className:p,style:f,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,items:v,children:_,rootClassName:w,mode:k,selectable:x,onClick:S,overflowedIndicatorPopupClassName:C}=e,E=Gs(BN(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),D=zd(v)||_;null===(n=i.validator)||void 0===n||n.call(i,{mode:k});const O=Dl((function(){var e;null==S||S.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),j=i.mode||k,$=null!=x?x:i.selectable,P=dv.useMemo((()=>void 0!==y?y:b),[b,y]),N={horizontal:{motionName:`${u}-slide-up`},inline:U1(u),other:{motionName:`${u}-zoom-big`}},T=a("menu",d||i.prefixCls),[I,A]=((e,t)=>Tl("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:p,darkDangerItemSelectedBg:f,darkItemHoverBg:m,darkGroupTitleColor:g,darkItemHoverColor:h,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:_}=e,w=a/7*5,k=Pl(e,{menuArrowSize:w,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*w+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),x=Pl(k,{itemColor:s,itemHoverColor:h,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:y,dangerItemSelectedColor:v,dangerItemActiveBg:_,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[q4(k),L4(k),W4(k),H4(k,"light"),H4(x,"dark"),z4(k),l5(k),q2(k,"slide-up"),q2(k,"slide-down"),s5(k,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f,controlHeightLG:m,lineHeight:g,colorBgElevated:h,marginXXS:b,padding:y,fontSize:v,controlHeightSM:_,fontSizeLG:w,colorTextLightSolid:k,colorErrorHover:x}=e,S=new cO(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:g,collapsedWidth:2*m,popupBg:h,itemMarginBlock:b,itemPaddingInline:y,horizontalLineHeight:1.15*m+"px",iconSize:v,iconMarginInlineEnd:_-v,collapsedIconSize:w,groupTitleFontSize:v,darkItemDisabledColor:new cO(k).setAlpha(.25).toRgbString(),darkItemColor:S,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:S,darkItemHoverColor:k,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:n}}),{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"]]})(e))(T,!o),R=yZ(`${T}-${m}`,null==c?void 0:c.className,p);let F;if("function"==typeof g)F=g;else{const e=g||i.expandIcon;F=nc(e,{className:yZ(`${T}-submenu-expand-icon`,null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.className)})}const M=dv.useMemo((()=>({prefixCls:T,inlineCollapsed:P||!1,direction:l,firstLevel:!0,theme:m,mode:j,disableMenuItemTitleTooltip:h})),[T,P,l,h,m]);return I(dv.createElement(M4.Provider,{value:null},dv.createElement(A4.Provider,{value:M},dv.createElement(MN,Object.assign({getPopupContainer:s,overflowedIndicator:dv.createElement(Z1,null),overflowedIndicatorPopupClassName:yZ(T,`${T}-${m}`,C),mode:j,selectable:$,onClick:O},E,{inlineCollapsed:P,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:R,prefixCls:T,direction:l,defaultMotions:N,expandIcon:F,ref:t,rootClassName:yZ(w,A)}),D))))})),K4=dv.forwardRef(((e,t)=>{const n=dv.useRef(null),r=dv.useContext(T4);return dv.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),dv.createElement(X4,Object.assign({ref:n},e,r))}));K4.Item=R4,K4.SubMenu=F4,K4.Divider=I4,K4.ItemGroup=Ad;const Y4=K4,Q4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),J4=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Z4=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),e3=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},J4(Pl(e,{inputBorderHoverColor:e.colorBorder})))}),t3=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},n3=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),r3=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},Z4(Pl(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},Z4(Pl(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},o3=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Q4(e.colorTextPlaceholder)),{"&:hover":Object.assign({},J4(e)),"&:focus, &-focused":Object.assign({},Z4(e)),"&-disabled, &[disabled]":Object.assign({},e3(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},t3(e)),"&-sm":Object.assign({},n3(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),i3=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({},t3(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},n3(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 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${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":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",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.lineWidth,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":{zIndex:1},"&: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.lineWidth,[`${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}}}})}},a3=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qZ(e)),o3(e)),r3(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},s3=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},l3=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o3(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},J4(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),s3(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),r3(e,`${t}-affix-wrapper`))}},c3=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},qZ(e)),i3(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},e3(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}}}})}},u3=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,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}}}}},d3=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},p3=Tl("Input",(e=>{const t=Bd(e);return[a3(t),d3(t),l3(t),c3(t),u3(t),kc(t)]})),f3=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=yZ({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=yZ({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=dv.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return dv.createElement("span",{className:yZ(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},m3=new bD("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g3=e=>({height:e,lineHeight:`${e}px`}),h3=e=>Object.assign({width:e},g3(e)),b3=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:m3,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),y3=e=>Object.assign({width:5*e,minWidth:5*e},g3(e)),v3=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},h3(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},h3(o)),[`${t}${t}-sm`]:Object.assign({},h3(i))}},_3=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},y3(t)),[`${r}-lg`]:Object.assign({},y3(o)),[`${r}-sm`]:Object.assign({},y3(i))}},w3=e=>Object.assign({width:e},g3(e)),k3=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},w3(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},w3(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},x3=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},S3=e=>Object.assign({width:2*e,minWidth:2*e},g3(e)),C3=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=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:2*r,minWidth:2*r},S3(r))},x3(e,r,n)),{[`${n}-lg`]:Object.assign({},S3(o))}),x3(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},S3(i))}),x3(e,i,`${n}-sm`))},E3=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:m,titleHeight:g,blockRadius:h,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:v}=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:d},h3(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},h3(c)),[`${n}-sm`]:Object.assign({},h3(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:v}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},C3(e)),v3(e)),_3(e)),k3(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},b3(e))}}},D3=Tl("Skeleton",(e=>{const{componentCls:t}=e,n=Pl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[E3(n)]}),(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"]]}),O3=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:i}=e,a=ba(Array(i)).map(((e,n)=>dv.createElement("li",{key:n,style:{width:t(n)}})));return dv.createElement("ul",{className:yZ(n,r),style:o},a)},j3=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return dv.createElement("h3",{className:yZ(t,n),style:Object.assign({width:r},o)})},$3=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:p,direction:f,skeleton:m}=dv.useContext(WZ),g=p("skeleton",t),[h,b]=D3(g);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let a,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Hd(s));a=dv.createElement("div",{className:`${g}-header`},dv.createElement(f3,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Hd(l));r=dv.createElement(j3,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Hd(c));o=dv.createElement(O3,Object.assign({},n))}p=dv.createElement("div",{className:`${g}-content`},r,o)}const y=yZ(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===f,[`${g}-round`]:d},null==m?void 0:m.className,r,o,b);return h(dv.createElement("div",{className:y,style:Object.assign(Object.assign({},null==m?void 0:m.style),i)},a,p))}return void 0!==a?a:null};$3.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=dv.useContext(WZ),l=s("skeleton",t),[c,u]=D3(l),d=Gs(e,["prefixCls"]),p=yZ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(dv.createElement("div",{className:p},dv.createElement(f3,Object.assign({prefixCls:`${l}-button`,size:a},d))))},$3.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=dv.useContext(WZ),l=s("skeleton",t),[c,u]=D3(l),d=Gs(e,["prefixCls","className"]),p=yZ(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(dv.createElement("div",{className:p},dv.createElement(f3,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},$3.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=dv.useContext(WZ),l=s("skeleton",t),[c,u]=D3(l),d=Gs(e,["prefixCls"]),p=yZ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(dv.createElement("div",{className:p},dv.createElement(f3,Object.assign({prefixCls:`${l}-input`,size:a},d))))},$3.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=dv.useContext(WZ),s=a("skeleton",t),[l,c]=D3(s),u=yZ(s,`${s}-element`,{[`${s}-active`]:i},n,r,c);return l(dv.createElement("div",{className:u},dv.createElement("div",{className:yZ(`${s}-image`,n),style:o},dv.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},dv.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:`${s}-image-path`})))))},$3.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=dv.useContext(WZ),l=s("skeleton",t),[c,u]=D3(l),d=yZ(l,`${l}-element`,{[`${l}-active`]:i},u,n,r),p=null!=a?a:dv.createElement(K1,null);return c(dv.createElement("div",{className:d},dv.createElement("div",{className:yZ(`${l}-image`,n),style:o},p)))};const P3=$3,N3=dv.createContext(null);HN=dv.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return dv.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:yZ(n,a&&"".concat(n,"-active"),r),ref:t},l)})),UN=["key","forceRender","style","className"],WN={width:0,height:0,left:0,top:0},VN=.1,GN=.01,qN=20,XN=Math.pow(.995,qN),KN={width:0,height:0,left:0,top:0,right:0},YN="TABS_DQ";const T3=dv.forwardRef(Kd);QN=dv.forwardRef((function(e,t){var n,r,o=e.position,i=e.prefixCls,a=e.extra;return a?(r={},"object"!==yi(a)||dv.isValidElement(a)?r.right=a:r=a,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?dv.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null):null}));const I3=dv.memo(dv.forwardRef(Yd),(function(e,t){return t.tabMoving}));JN=function(e){var t=e.current||{},n=t.offsetWidth,r=t.offsetHeight;return[void 0===n?0:n,void 0===r?0:r]},ZN=function(e,t){return e[t?0:1]};const A3=dv.forwardRef(Jd);eT=["renderTabBar"],tT=["label","key"],nT=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],rT=0,oT=dv.forwardRef(ep);const R3={motionAppear:!1,motionEnter:!0,motionLeave:!0};iT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{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}`}}}}},[q2(e,"slide-up"),q2(e,"slide-down")]]},M3=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},L3=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},qZ(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:`${r}px 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({},GZ),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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.colorTextDescription,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"}}})}})}},z3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,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}px`,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:1.25*e.controlHeight,[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},B3=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},H3=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},QZ(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},U3=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},W3=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qZ(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",whiteSpace:"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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 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}},QZ(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),H3(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},V3=Tl("Tabs",(e=>{const t=Pl(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[B3(t),U3(t),z3(t),L3(t),M3(t),W3(t),F3(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:e.controlHeightLG,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2})));aT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:p,style:f}=e,m=aT(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:g,moreIcon:h=dv.createElement(Z1,null)}=m,{direction:b,tabs:y,getPrefixCls:v,getPopupContainer:_}=dv.useContext(WZ),w=v("tabs",g),[k,x]=V3(w);let S;"editable-card"===t&&(S={onEdit:(e,t)=>{let{key:n,event:r}=t;null==i||i("add"===e?r:n,e)},removeIcon:dv.createElement(x0,null),addIcon:l||dv.createElement(i2,null),showAdd:!0!==a});const C=v(),E=function(e,t){return e||function(e){return e.filter((e=>e))}(Is(t).map((e=>{if(dv.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=iT(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(d,u),D=function(e,t){let n,r=arguments.length>1&&void 0!==t?t:{inkBar:!0,tabPane:!1};return n=!1===r?{inkBar:!1,tabPane:!1}:!0===r?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof r?r:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},R3),{motionName:V1(e,"switch")})),n}(w,p),O=Y0(o),j=Object.assign(Object.assign({},null==y?void 0:y.style),f);return k(dv.createElement(oT,Object.assign({direction:b,getPopupContainer:_,moreTransitionName:`${C}-slide-up`},m,{items:E,className:yZ({[`${w}-${O}`]:O,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:"editable-card"===t,[`${w}-centered`]:s},null==y?void 0:y.className,n,r,x),popupClassName:yZ(c,x),style:j,editable:S,moreIcon:h,prefixCls:w,animated:D})))};G3.TabPane=()=>null;const q3=G3,X3=dv.createContext({}),K3=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"}}}},Y3=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Q3=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"},o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o})(e,t),J3=Tl("Grid",(e=>[K3(e)])),Z3=Tl("Grid",(e=>{const t=Pl(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Y3(t),Q3(t,""),Q3(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},Q3(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));sT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=dv.useContext(WZ),{gutter:o,wrap:i,supportFlexGap:a}=dv.useContext(X3),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:p,className:f,children:m,flex:g,style:h}=e,b=sT(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",s),[v,_]=Z3(y);let w={};e8.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete b[t],w=Object.assign(Object.assign({},w),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${y}-rtl`]:"rtl"===r})}));const k=yZ(y,{[`${y}-${l}`]:void 0!==l,[`${y}-order-${c}`]:c,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${p}`]:p},f,w,_),x={};if(o&&o[0]>0){const e=o[0]/2;x.paddingLeft=e,x.paddingRight=e}if(o&&o[1]>0&&!a){const e=o[1]/2;x.paddingTop=e,x.paddingBottom=e}return g&&(x.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(g),!1!==i||x.minWidth||(x.minWidth=0)),v(dv.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},x),h),className:k,ref:t}),m))})),n8=()=>{const[e,t]=dv.useState(!1);return dv.useEffect((()=>{t((()=>{if(!g2())return!1;if(void 0!==h2)return h2;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));const t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),h2=1===e.scrollHeight,document.body.removeChild(t),h2})())}),[]),e};lT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=lT(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:p}=dv.useContext(WZ),[f,m]=dv.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,h]=dv.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=tp(o,g),y=tp(r,g),v=n8(),_=dv.useRef(l),w=ld();dv.useEffect((()=>{const e=w.subscribe((e=>{h(e);const t=_.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&m(e)}));return()=>w.unsubscribe(e)}),[]);const k=d("row",n),[x,S]=J3(k),C=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?C[0]/-2:void 0,j=null!=C[1]&&C[1]>0?C[1]/-2:void 0;O&&(D.marginLeft=O,D.marginRight=O),v?[,D.rowGap]=C:j&&(D.marginTop=j,D.marginBottom=j);const[$,P]=C,N=dv.useMemo((()=>({gutter:[$,P],wrap:c,supportFlexGap:v})),[$,P,c,v]);return x(dv.createElement(X3.Provider,{value:N},dv.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},D),a),ref:t}),s)))}));(cT=LJ.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=za(LJ.useState(l||o),2),d=u[0],p=u[1];return LJ.useEffect((function(){(o||l)&&p(!0)}),[o,l]),d?LJ.createElement("div",{ref:t,className:yZ("".concat(r,"-content"),(n={},_i(n,"".concat(r,"-content-active"),l),_i(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},LJ.createElement("div",{className:"".concat(r,"-content-box")},s)):null}))).displayName="PanelContent",uT=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],dT=LJ.forwardRef((function(e,t){var n,r,o,i,a=e.showArrow,s=void 0===a||a,l=e.headerClass,c=e.isActive,u=e.onItemClick,d=e.forceRender,p=e.className,f=e.prefixCls,m=e.collapsible,g=e.accordion,h=e.panelKey,b=e.extra,y=e.header,v=e.expandIcon,_=e.openMotion,w=e.destroyInactivePanel,k=e.children,x=wi(e,uT),S="disabled"===m,C="header"===m,E="icon"===m,D=null!=b&&"boolean"!=typeof b,O=function(){null==u||u(h)},j="function"==typeof v?v(e):LJ.createElement("i",{className:"arrow"});return j&&(j=LJ.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(m)?O:void 0},j)),o=yZ((_i(n={},"".concat(f,"-item"),!0),_i(n,"".concat(f,"-item-active"),c),_i(n,"".concat(f,"-item-disabled"),S),n),p),i={className:yZ((_i(r={},"".concat(f,"-header"),!0),_i(r,"headerClass",l),_i(r,"".concat(f,"-header-collapsible-only"),C),_i(r,"".concat(f,"-icon-collapsible-only"),E),r)),"aria-expanded":c,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==dj.ENTER&&e.which!==dj.ENTER||O()}},C||E||(i.onClick=O,i.role=g?"tab":"button",i.tabIndex=S?-1:0),LJ.createElement("div",la({},x,{ref:t,className:o}),LJ.createElement("div",i,s&&j,LJ.createElement("span",{className:"".concat(f,"-header-text"),onClick:"header"===m?O:void 0},y),D&&LJ.createElement("div",{className:"".concat(f,"-extra")},b)),LJ.createElement(s0,la({visible:c,leavedClassName:"".concat(f,"-content-hidden")},_,{forceRender:d,removeOnLeave:w}),(function(e,t){return LJ.createElement(cT,{ref:t,prefixCls:f,className:e.className,style:e.style,isActive:c,forceRender:d,role:g?"tabpanel":void 0},k)})))})),pT=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],fT=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,d=e.children,p=e.label,f=e.key,m=e.collapsible,g=e.onItemClick,h=e.destroyInactivePanel,b=wi(e,pT),y=String(null!=f?f:t),v=null!=m?m:o,_=null!=h?h:i;return u=r?s[0]===y:s.indexOf(y)>-1,LJ.createElement(dT,la({},b,{prefixCls:n,key:y,panelKey:y,isActive:u,accordion:r,openMotion:l,expandIcon:c,header:p,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==g||g(e))},destroyInactivePanel:_}),d)}))},mT=function(e,t,n){var r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_;return e?(r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=(p=e.props).header,m=p.headerClass,g=p.destroyInactivePanel,h=p.collapsible,b=p.onItemClick,y=o?l[0]===d:l.indexOf(d)>-1,_={key:d,panelKey:d,header:f,headerClass:m,isActive:y,prefixCls:r,destroyInactivePanel:null!=g?g:a,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==v&&(s(e),null==b||b(e))},expandIcon:u,collapsible:v=null!=h?h:i},"string"==typeof e.type?e:(Object.keys(_).forEach((function(e){void 0===_[e]&&delete _[e]})),LJ.cloneElement(e,_))):null};const o8=Object.assign(LJ.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.children,u=e.collapsible,d=e.openMotion,p=e.expandIcon,f=e.activeKey,m=e.defaultActiveKey,g=e.onChange,h=e.items,b=yZ(o,e.className),y=za($l([],{value:f,onChange:function(e){return null==g?void 0:g(e)},defaultValue:m,postState:np}),2),v=y[0],_=y[1];return Ca(!c,"`children` will be removed in next major version. Please use `items` instead."),n=function(e,t,n){return Array.isArray(e)?fT(e,n):Is(t).map((function(e,t){return mT(e,t,n)}))}(h,c,{prefixCls:o,accordion:l,openMotion:d,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:function(e){return _((function(){return l?v[0]===e?[]:[e]:v.indexOf(e)>-1?v.filter((function(t){return t!==e})):[].concat(ba(v),[e])}))},activeKey:v}),LJ.createElement("div",{ref:t,className:b,style:s,role:l?"tablist":void 0},n)})),{Panel:dT}),i8=dv.forwardRef(((e,t)=>{const{getPrefixCls:n}=dv.useContext(WZ),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=yZ({[`${a}-no-arrow`]:!i},o);return dv.createElement(o8.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))})),a8=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:p,colorText:f,colorTextHeading:m,colorTextDisabled:g,fontSize:h,fontSizeLG:b,lineHeight:y,marginSM:v,paddingSM:_,paddingLG:w,paddingXS:k,motionDurationSlow:x,fontSizeIcon:S}=e,C=`${u}px ${d} ${p}`;return{[t]:Object.assign(Object.assign({},qZ(e)),{backgroundColor:i,border:C,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:C,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:_,color:m,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*y,display:"flex",alignItems:"center",paddingInlineEnd:v,marginInlineStart:r-_},[`${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:S,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:C,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:k,[`> ${t}-expand-icon`]:{marginInlineStart:_-k}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*y,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},s8=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},l8=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\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:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},c8=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}}}}}},u8=Tl("Collapse",(e=>{const t=Pl(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[a8(t),l8(t),c8(t),s8(t),l5(t)]})),d8=dv.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=dv.useContext(WZ),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:p="start",children:f,expandIcon:m}=e,g=Y0((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),h=n("collapse",i),b=n(),[y,v]=u8(h),_=dv.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),w=yZ(`${h}-icon-position-${_}`,{[`${h}-borderless`]:!c,[`${h}-rtl`]:"rtl"===r,[`${h}-ghost`]:!!u,[`${h}-${g}`]:"middle"!==g},null==o?void 0:o.className,a,s,v),k=Object.assign(Object.assign({},U1(b)),{motionAppear:!1,leavedClassName:`${h}-content-hidden`}),x=dv.useMemo((()=>f?Is(f).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return nc(e,Object.assign(Object.assign({},Gs(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[f]);return y(dv.createElement(o8,Object.assign({ref:t,openMotion:k},Gs(e,["rootClassName"]),{expandIcon:function(e){let t=arguments.length>0&&void 0!==e?e:{};const n=m?m(t):dv.createElement(c2,{rotate:t.isActive?90:void 0});return nc(n,(()=>({className:yZ(n.props.className,`${h}-arrow`)})))},prefixCls:h,className:w,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),x))})),p8=Object.assign(d8,{Panel:i8}),f8=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},qZ(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},m8=Tl("Divider",(e=>{const t=Pl(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[f8(t)]}),{sizePaddingEdgeHorizontal:0});gT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:r}=dv.useContext(WZ),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:p,style:f}=e,m=gT(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[h,b]=m8(g),y=!!u,v="left"===a&&null!=s,_="right"===a&&null!=s,w=yZ(g,null==r?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:y,[`${g}-with-text${a.length>0?`-${a}`:a}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!p,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:v,[`${g}-no-default-orientation-margin-right`]:_},l,c),k=dv.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),x=Object.assign(Object.assign({},v&&{marginLeft:k}),_&&{marginRight:k});return h(dv.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},m,{role:"separator"}),u&&"vertical"!==i&&dv.createElement("span",{className:`${g}-inner-text`,style:x},u)))};hT=function(){function e(t){var n,r,o,i;xi(this,e),_i(this,"origin",""),_i(this,"negative",void 0),_i(this,"integer",void 0),_i(this,"decimal",void 0),_i(this,"decimalLen",void 0),_i(this,"empty",void 0),_i(this,"nan",void 0),op(t)?this.empty=!0:(this.origin=String(t),"-"===t||Number.isNaN(t)?this.nan=!0:(ap(n=t)&&(n=Number(n)),cp(n="string"==typeof n?n:lp(n))?(r=ip(n),this.negative=r.negative,o=r.trimStr.split("."),this.integer=BigInt(o[0]),i=o[1]||"0",this.decimal=BigInt(i),this.decimalLen=i.length):this.nan=!0))}return Ci(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,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),s=ip(i),l=s.trimStr,c="".concat(s.negativeStr).concat(l.padStart(a+1,"0"));return new e("".concat(c.slice(0,-a),".").concat(c.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(e){return arguments.length>0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":ip("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),bT=function(){function e(t){xi(this,e),_i(this,"origin",""),_i(this,"number",void 0),_i(this,"empty",void 0),op(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ci(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){var n,r,o;return this.isInvalidate()?new e(t):(n=Number(t),Number.isNaN(n)?this:(r=this.number+n)>Number.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):rNumber.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):n0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":lp(this.number)}}]),e}(),yT=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,m,g=e.inputElement,h=e.prefixCls,b=e.prefix,y=e.suffix,v=e.addonBefore,_=e.addonAfter,w=e.className,k=e.style,x=e.disabled,S=e.readOnly,C=e.focused,E=e.triggerFocus,D=e.allowClear,O=e.value,j=e.handleReset,$=e.hidden,P=e.classes,N=e.classNames,T=e.dataAttrs,I=e.styles,A=e.components,R=(null==A?void 0:A.affixWrapper)||"span",F=(null==A?void 0:A.groupWrapper)||"span",M=(null==A?void 0:A.wrapper)||"span",L=(null==A?void 0:A.groupAddon)||"span",z=dv.useRef(null),B=dv.cloneElement(g,{value:O,hidden:$,className:yZ(null===(t=g.props)||void 0===t?void 0:t.className,!fp(e)&&!pp(e)&&w)||null,style:va(va({},null===(n=g.props)||void 0===n?void 0:n.style),fp(e)||pp(e)?{}:k)});return fp(e)&&(o="".concat(h,"-affix-wrapper"),i=yZ(o,(_i(r={},"".concat(o,"-disabled"),x),_i(r,"".concat(o,"-focused"),C),_i(r,"".concat(o,"-readonly"),S),_i(r,"".concat(o,"-input-with-clear-btn"),y&&D&&O),r),!pp(e)&&w,null==P?void 0:P.affixWrapper,null==N?void 0:N.affixWrapper),a=(y||D)&&LJ.createElement("span",{className:yZ("".concat(h,"-suffix"),null==N?void 0:N.suffix),style:null==I?void 0:I.suffix},D?(p=!x&&!S&&O,f="".concat(h,"-clear-icon"),m="object"===yi(D)&&null!=D&&D.clearIcon?D.clearIcon:"✖",LJ.createElement("span",{onClick:j,onMouseDown:function(e){return e.preventDefault()},className:yZ(f,(d={},_i(d,"".concat(f,"-hidden"),!p),_i(d,"".concat(f,"-has-suffix"),!!y),d)),role:"button",tabIndex:-1},m)):null,y),B=LJ.createElement(R,la({className:i,style:pp(e)?void 0:k,hidden:!pp(e)&&$,onClick:function(e){var t;null!==(t=z.current)&&void 0!==t&&t.contains(e.target)&&(null==E||E())}},null==T?void 0:T.affixWrapper,{ref:z}),b&&LJ.createElement("span",{className:yZ("".concat(h,"-prefix"),null==N?void 0:N.prefix),style:null==I?void 0:I.prefix},b),dv.cloneElement(g,{value:O,hidden:null}),a)),pp(e)?(s="".concat(h,"-group"),l="".concat(s,"-addon"),c=yZ("".concat(h,"-wrapper"),s,null==P?void 0:P.wrapper),u=yZ("".concat(h,"-group-wrapper"),w,null==P?void 0:P.group),LJ.createElement(F,{className:u,style:k,hidden:$},LJ.createElement(M,{className:c},v&&LJ.createElement(L,{className:l},v),dv.cloneElement(B,{hidden:null}),_&&LJ.createElement(L,{className:l},_)))):B},vT=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],_T=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.autoComplete,u=e.onChange,d=e.onFocus,p=e.onBlur,f=e.onPressEnter,m=e.onKeyDown,g=e.prefixCls,h=void 0===g?"rc-input":g,b=e.disabled,y=e.htmlSize,v=e.className,_=e.maxLength,w=e.suffix,k=e.showCount,x=e.type,S=void 0===x?"text":x,C=e.classes,E=e.classNames,D=e.styles,O=wi(e,vT),j=za($l(e.defaultValue,{value:e.value}),2),$=j[0],P=j[1],N=za(dv.useState(!1),2),T=N[0],I=N[1],A=dv.useRef(null),R=function(e){A.current&&gp(A.current,e)};return dv.useImperativeHandle(t,(function(){return{focus:R,blur:function(){var e;null===(e=A.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=A.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=A.current)||void 0===e||e.select()},input:A.current}})),dv.useEffect((function(){I((function(e){return(!e||!b)&&e}))}),[b]),n=function(t){void 0===e.value&&P(t.target.value),A.current&&mp(A.current,t,u)},r=function(e){f&&"Enter"===e.key&&f(e),null==m||m(e)},o=function(e){I(!0),null==d||d(e)},i=function(e){I(!1),null==p||p(e)},a=function(e){P(""),R(),A.current&&mp(A.current,e,u)},s=function(){var t=Gs(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return LJ.createElement("input",la({autoComplete:c},t,{onChange:n,onFocus:o,onBlur:i,onKeyDown:r,className:yZ(h,_i({},"".concat(h,"-disabled"),b),null==E?void 0:E.input),style:null==D?void 0:D.input,ref:A,size:y,type:S}))},l=function(){var e,t,n,r=Number(_)>0;return w||k?(t=ba(e=hp($)).length,n="object"===yi(k)?k.formatter({value:e,count:t,maxLength:_}):"".concat(t).concat(r?" / ".concat(_):""),LJ.createElement(LJ.Fragment,null,!!k&&LJ.createElement("span",{className:yZ("".concat(h,"-show-count-suffix"),_i({},"".concat(h,"-show-count-has-suffix"),!!w),null==E?void 0:E.count),style:va({},null==D?void 0:D.count)},n),w)):null},LJ.createElement(yT,la({},O,{prefixCls:h,className:v,inputElement:s(),handleReset:a,value:hp($),focused:T,triggerFocus:R,suffix:l(),disabled:b,classes:C,classNames:E,styles:D}))})),wT=function(){var e=za(dv.useState(!1),2),t=e[0],n=e[1];return RE((function(){n(F5())}),[]),t},kT=200,xT=600,ST=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],CT=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],ET=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},DT=function(e){var t=up(e);return t.isInvalidate()?null:t},OT=dv.forwardRef((function(e,t){function n(e,t){ke(ve(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P=e.prefixCls,N=void 0===P?"rc-input-number":P,T=e.className,I=e.style,A=e.min,R=e.max,F=e.step,M=void 0===F?1:F,L=e.defaultValue,z=e.value,B=e.disabled,H=e.readOnly,U=e.upHandler,W=e.downHandler,V=e.keyboard,G=e.controls,q=void 0===G||G,X=e.classNames,K=e.stringMode,Y=e.parser,Q=e.formatter,J=e.precision,Z=e.decimalSeparator,ee=e.onChange,te=e.onInput,ne=e.onPressEnter,re=e.onStep,oe=wi(e,ST),ie="".concat(N,"-input"),ae=dv.useRef(null),se=za(dv.useState(!1),2),le=se[0],ce=se[1],ue=dv.useRef(!1),de=dv.useRef(!1),pe=dv.useRef(!1),fe=za(dv.useState((function(){return up(null!=z?z:L)})),2),me=fe[0],ge=fe[1],he=dv.useCallback((function(e,t){if(!t)return J>=0?J:Math.max(sp(e),sp(M))}),[J,M]),be=dv.useCallback((function(e){var t,n=String(e);return Y?Y(n):(t=n,Z&&(t=t.replace(Z,".")),t.replace(/[^\w.-]+/g,""))}),[Y,Z]),ye=dv.useRef(""),ve=dv.useCallback((function(e,t){var n,r;return Q?Q(e,{userTyping:t,input:String(ye.current)}):(n="number"==typeof e?lp(e):e,t||(r=he(n,t),cp(n)&&(Z||r>=0)&&(n=dp(n,Z||".",r))),n)}),[Q,he,Z]),_e=za(dv.useState((function(){var e=null!=L?L:z;return me.isInvalidate()&&["string","number"].includes(yi(e))?Number.isNaN(e)?"":e:ve(me.toString(),!1)})),2),we=_e[0],ke=_e[1];return ye.current=we,o=dv.useMemo((function(){return DT(R)}),[R,J]),i=dv.useMemo((function(){return DT(A)}),[A,J]),a=dv.useMemo((function(){return!(!o||!me||me.isInvalidate())&&o.lessEquals(me)}),[o,me]),s=dv.useMemo((function(){return!(!i||!me||me.isInvalidate())&&me.lessEquals(i)}),[i,me]),E=ae.current,D=le,O=dv.useRef(null),l=[function(){var e,t,n,r,o;try{t=E.selectionEnd,r=(n=E.value).substring(0,e=E.selectionStart),o=n.substring(t),O.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(HQ){}},function(){var e,t,n,r,o,i;if(E&&O.current&&D)try{n=(t=O.current).beforeTxt,r=t.start,o=(e=E.value).length,e.endsWith(t.afterTxt)?o=e.length-O.current.afterTxt.length:e.startsWith(n)?o=n.length:-1!==(i=e.indexOf(n[r-1],r-1))&&(o=i+1),E.setSelectionRange(o,o)}catch(HQ){Ca(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(HQ.message))}}],c=za(l,2),u=c[0],d=c[1],p=function(e){return o&&!e.lessEquals(o)?o:i&&!i.lessEquals(e)?i:null},f=function(e){return!p(e)},m=function(e,t){var r,o,i=e,a=f(i)||i.isEmpty();return i.isEmpty()||t||(i=p(i)||i,a=!0),H||B||!a?me:(r=i.toString(),(o=he(r,t))>=0&&(i=up(dp(r,".",o)),f(i)||(i=up(dp(r,".",o,!0)))),i.equals(me)||(void 0===z&&ge(i),null==ee||ee(i.isEmpty()?null:ET(K,i)),void 0===z&&n(i,t)),i)},j=dv.useRef(0),$=function(){nO.cancel(j.current)},dv.useEffect((function(){return $}),[]),g=function(e){$(),j.current=nO((function(){e()}))},h=function e(t){var n;u(),ye.current=t,ke(t),de.current||(n=up(be(t))).isNaN()||m(n,!0),null==te||te(t),g((function(){var n=t;Y||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},b=function(){de.current=!0},y=function(){de.current=!1,h(ae.current.value)},v=function(e){h(e.target.value)},_=function(e){var t,n,r,o;e&&a||!e&&s||(ue.current=!1,n=up(pe.current?yp(M):M),e||(n=n.negate()),r=(me||up(0)).add(n.toString()),o=m(r,!1),null==re||re(ET(K,o),{offset:pe.current?yp(M):M,type:e?"up":"down"}),null===(t=ae.current)||void 0===t||t.focus())},w=function(e){var t=up(be(we)),r=t;r=t.isNaN()?me:m(t,e),void 0!==z?n(me,!1):r.isNaN()||n(r,!1)},k=function(){ue.current=!0},x=function(e){var t=e.key,n=e.shiftKey;ue.current=!0,pe.current=n,"Enter"===t&&(de.current||(ue.current=!1),w(!1),null==ne||ne(e)),!1!==V&&!de.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(_("Up"===t||"ArrowUp"===t),e.preventDefault())},S=function(){ue.current=!1,pe.current=!1},C=function(){w(!1),ce(!1),ue.current=!1},FE((function(){me.isInvalidate()||n(me,!1)}),[J]),FE((function(){var e,t=up(z);ge(t),e=up(be(we)),t.equals(e)&&ue.current&&!Q||n(t,ue.current)}),[z]),FE((function(){Q&&d()}),[we]),dv.createElement("div",{className:yZ(N,null==X?void 0:X.input,T,(r={},_i(r,"".concat(N,"-focused"),le),_i(r,"".concat(N,"-disabled"),B),_i(r,"".concat(N,"-readonly"),H),_i(r,"".concat(N,"-not-a-number"),me.isNaN()),_i(r,"".concat(N,"-out-of-range"),!me.isInvalidate()&&!f(me)),r)),style:I,onFocus:function(){ce(!0)},onBlur:C,onKeyDown:x,onKeyUp:S,onCompositionStart:b,onCompositionEnd:y,onBeforeInput:k},q&&dv.createElement(bp,{prefixCls:N,upNode:U,downNode:W,upDisabled:a,downDisabled:s,onStep:_}),dv.createElement("div",{className:"".concat(ie,"-wrap")},dv.createElement("input",la({autoComplete:"off",role:"spinbutton","aria-valuemin":A,"aria-valuemax":R,"aria-valuenow":me.isInvalidate()?null:me.toString(),step:M},oe,{ref:Rs(ae,t),className:ie,value:we,onChange:v,disabled:B,readOnly:H}))))})),(jT=dv.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,p=e.classNames,f=wi(e,CT),m=dv.useRef(null);return dv.createElement(yT,{inputElement:dv.createElement(OT,la({prefixCls:o,disabled:n,classNames:p,ref:Rs(m,t)},f)),className:d,triggerFocus:function(e){m.current&&gp(m.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}))).displayName="InputNumber";const h8=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:p,colorPrimary:f,inputPaddingHorizontal:m,inputPaddingVertical:g,colorBgContainer:h,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:v,controlWidth:_,handleVisible:w}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qZ(e)),o3(e)),r3(e,t)),{display:"inline-block",width:_,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:v,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},J4(e)),"&-focused":Object.assign({},Z4(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},qZ(e)),i3(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:v}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},e3(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},qZ(e)),{width:"100%",padding:`${g}px ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),Q4(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:h,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${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:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${p} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-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:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-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:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},b8=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},o3(e)),r3(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},J4(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},y8=Tl("InputNumber",(e=>{const t=Bd(e);return[h8(t),b8(t),kc(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"})));$T=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=dv.useContext(WZ),o=dv.useRef(null);dv.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:p,bordered:f=!0,readOnly:m,status:g,controls:h}=e,b=$T(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[v,_]=y8(y),{compactSize:w,compactItemClassnames:k}=t1(y,r);let x=dv.createElement(f2,{className:`${y}-handler-up-inner`}),S=dv.createElement(Q1,{className:`${y}-handler-down-inner`});const C="boolean"==typeof h?h:void 0;"object"==typeof h&&(x=void 0===h.upIcon?x:dv.createElement("span",{className:`${y}-handler-up-inner`},h.upIcon),S=void 0===h.downIcon?S:dv.createElement("span",{className:`${y}-handler-down-inner`},h.downIcon));const{hasFeedback:E,status:D,isFormItemInput:O,feedbackIcon:j}=dv.useContext(w2),$=z5(D,g),P=Y0((e=>{var t;return null!==(t=null!=s?s:w)&&void 0!==t?t:e})),N=dv.useContext(r0),T=null!=l?l:N,I=yZ({[`${y}-lg`]:"large"===P,[`${y}-sm`]:"small"===P,[`${y}-rtl`]:"rtl"===r,[`${y}-borderless`]:!f,[`${y}-in-form-item`]:O},od(y,$),k,_),A=`${y}-group`;return v(dv.createElement(jT,Object.assign({ref:o,disabled:T,className:yZ(i,a),upHandler:x,downHandler:S,prefixCls:y,readOnly:m,controls:C,prefix:p,suffix:E&&j,addonAfter:d&&dv.createElement(n1,null,dv.createElement(k2,{override:!0,status:!0},d)),addonBefore:u&&dv.createElement(n1,null,dv.createElement(k2,{override:!0,status:!0},u)),classNames:{input:I},classes:{affixWrapper:yZ(od(`${y}-affix-wrapper`,$,E),{[`${y}-affix-wrapper-sm`]:"small"===P,[`${y}-affix-wrapper-lg`]:"large"===P,[`${y}-affix-wrapper-rtl`]:"rtl"===r,[`${y}-affix-wrapper-borderless`]:!f},_),wrapper:yZ({[`${A}-rtl`]:"rtl"===r,[`${y}-wrapper-disabled`]:T},_),group:yZ({[`${y}-group-wrapper-sm`]:"small"===P,[`${y}-group-wrapper-lg`]:"large"===P,[`${y}-group-wrapper-rtl`]:"rtl"===r},od(`${y}-group-wrapper`,$,E),_)}},b)))})),_8=v8;_8._InternalPanelDoNotUseOrYouWillBeFired=e=>dv.createElement(g0,{theme:{components:{InputNumber:{handleVisible:!0}}}},dv.createElement(v8,Object.assign({},e)));const w8=_8;PT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:p,addonBefore:f,className:m,style:g,styles:h,rootClassName:b,onChange:y,classNames:v}=e,_=PT(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:w,direction:k,input:x}=LJ.useContext(WZ),S=w("input",r),C=dv.useRef(null),[E,D]=p3(S),{compactSize:O,compactItemClassnames:j}=t1(S,k),$=Y0((e=>{var t;return null!==(t=null!=a?a:O)&&void 0!==t?t:e})),P=LJ.useContext(r0),N=null!=s?s:P,{status:T,hasFeedback:I,feedbackIcon:A}=dv.useContext(w2),R=z5(T,i),F=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!I,M=dv.useRef(F);dv.useEffect((()=>{M.current=F}),[F]);const L=vp(C,!0),z=(I||u)&&LJ.createElement(LJ.Fragment,null,u,I&&A);let B;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?B=d:d&&(B={clearIcon:LJ.createElement(w0,null)}),E(LJ.createElement(_T,Object.assign({ref:Rs(t,C),prefixCls:S,autoComplete:null==x?void 0:x.autoComplete},_,{disabled:N,onBlur:e=>{L(),null==l||l(e)},onFocus:e=>{L(),null==c||c(e)},style:Object.assign(Object.assign({},null==x?void 0:x.style),g),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),h),suffix:z,allowClear:B,className:yZ(m,b,j,null==x?void 0:x.className),onChange:e=>{L(),null==y||y(e)},addonAfter:p&&LJ.createElement(n1,null,LJ.createElement(k2,{override:!0,status:!0},p)),addonBefore:f&&LJ.createElement(n1,null,LJ.createElement(k2,{override:!0,status:!0},f)),classNames:Object.assign(Object.assign(Object.assign({},v),null==x?void 0:x.classNames),{input:yZ({[`${S}-sm`]:"small"===$,[`${S}-lg`]:"large"===$,[`${S}-rtl`]:"rtl"===k,[`${S}-borderless`]:!o},!F&&od(S,R),null==v?void 0:v.input,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.input,D)}),classes:{affixWrapper:yZ({[`${S}-affix-wrapper-sm`]:"small"===$,[`${S}-affix-wrapper-lg`]:"large"===$,[`${S}-affix-wrapper-rtl`]:"rtl"===k,[`${S}-affix-wrapper-borderless`]:!o},od(`${S}-affix-wrapper`,R,I),D),wrapper:yZ({[`${S}-group-rtl`]:"rtl"===k},D),group:yZ({[`${S}-group-wrapper-sm`]:"small"===$,[`${S}-group-wrapper-lg`]:"large"===$,[`${S}-group-wrapper-rtl`]:"rtl"===k,[`${S}-group-wrapper-disabled`]:N},od(`${S}-group-wrapper`,R,I),D)}})))})),x8=k8;NT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rdv.createElement(e?r2:t2,null),C8={click:"onClick",hover:"onMouseOver"},E8=dv.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=dv.useState((()=>!!r&&n.visible)),a=dv.useRef(null);dv.useEffect((()=>{r&&i(n.visible)}),[r,n]);const s=vp(a),l=()=>{const{disabled:t}=e;t||(o&&s(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:p}=e,f=NT(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=dv.useContext(WZ),g=m("input",d),h=m("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=S8}=e,i=C8[n]||"",a=r(o),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return dv.cloneElement(dv.isValidElement(a)?a:dv.createElement("span",null,a),s)})(h),y=yZ(h,c,{[`${h}-${p}`]:!!p}),v=Object.assign(Object.assign({},Gs(f,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:g,suffix:b});return p&&(v.size=p),dv.createElement(x8,Object.assign({ref:Rs(t,a)},v))})),D8=E8;TT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:p,onCompositionStart:f,onCompositionEnd:m}=e,g=TT(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=dv.useContext(WZ),y=dv.useRef(!1),v=h("input-search",n),_=h("input",r),{compactSize:w}=t1(v,b),k=Y0((e=>{var t;return null!==(t=null!=i?i:w)&&void 0!==t?t:e})),x=dv.useRef(null),S=e=>{var t;document.activeElement===(null===(t=x.current)||void 0===t?void 0:t.input)&&e.preventDefault()},C=e=>{var t,n;d&&d(null===(n=null===(t=x.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},E="boolean"==typeof s?dv.createElement(d2,null):null,D=`${v}-button`;let O;const j=s||{},$=j.type&&!0===j.type.__ANT_BUTTON;O=$||"button"===j.type?nc(j,Object.assign({onMouseDown:S,onClick:e=>{var t,n;null===(n=null===(t=null==j?void 0:j.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),C(e)},key:"enterButton"},$?{className:D,size:k}:{})):dv.createElement(F1,{className:D,type:s?"primary":void 0,size:k,disabled:u,key:"enterButton",onMouseDown:S,onClick:C,loading:c,icon:E},s),l&&(O=[O,nc(l,{key:"addonAfter"})]);const P=yZ(v,{[`${v}-rtl`]:"rtl"===b,[`${v}-${k}`]:!!k,[`${v}-with-button`]:!!s},o);return dv.createElement(x8,Object.assign({ref:Rs(x,t),onPressEnter:e=>{y.current||c||C(e)}},g,{size:k,onCompositionStart:e=>{y.current=!0,null==f||f(e)},onCompositionEnd:e=>{y.current=!1,null==m||m(e)},prefixCls:_,addonAfter:O,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e),p&&p(e)},className:P,disabled:u}))})),j8=O8;IT=["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"],AT={},FT=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],MT=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T=e.prefixCls;return n=e.defaultValue,r=e.value,o=e.autoSize,i=e.onResize,a=e.className,s=e.style,l=e.disabled,c=e.onChange,u=wi(e,FT),p=(d=za($l(n,{value:r,postState:function(e){return null!=e?e:""}}),2))[0],f=d[1],m=function(e){f(e.target.value),null==c||c(e)},g=dv.useRef(),dv.useImperativeHandle(t,(function(){return{textArea:g.current}})),h=za(dv.useMemo((function(){return o&&"object"===yi(o)?[o.minRows,o.maxRows]:[]}),[o]),2),b=h[0],y=h[1],v=!!o,_=function(){try{if(document.activeElement===g.current){var e=g.current,t=e.scrollTop;g.current.setSelectionRange(e.selectionStart,e.selectionEnd),g.current.scrollTop=t}}catch(HQ){}},w=za(dv.useState(2),2),k=w[0],x=w[1],C=(S=za(dv.useState(),2))[0],E=S[1],D=function(){x(0)},RE((function(){v&&D()}),[r,b,y,v]),RE((function(){if(0===k)x(1);else if(1===k){var e=function(e,t,n,r){var o,i,a,s,l,c,u,d,p,f,m=arguments.length>1&&void 0!==t&&t,g=arguments.length>2&&void 0!==n?n:null,h=arguments.length>3&&void 0!==r?r:null;return RT||((RT=document.createElement("textarea")).setAttribute("tab-index","-1"),RT.setAttribute("aria-hidden","true"),document.body.appendChild(RT)),e.getAttribute("wrap")?RT.setAttribute("wrap",e.getAttribute("wrap")):RT.removeAttribute("wrap"),o=function(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t,l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");return s&&AT[l]?AT[l]:(r=(n=window.getComputedStyle(e)).getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:IT.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:i,boxSizing:r},s&&l&&(AT[l]=a),a)}(e,m),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,RT.setAttribute("style","".concat(o.sizingStyle,";").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")),RT.value=e.value||e.placeholder||"",l=void 0,c=void 0,d=RT.scrollHeight,"border-box"===s?d+=a:"content-box"===s&&(d-=i),null===g&&null===h||(RT.value=" ",p=RT.scrollHeight-i,null!==g&&(l=p*g,"border-box"===s&&(l=l+i+a),d=Math.max(l,d)),null!==h&&(c=p*h,"border-box"===s&&(c=c+i+a),u=d>c?"":"hidden",d=Math.min(c,d))),f={height:d,overflowY:u,resize:"none"},l&&(f.minHeight=l),c&&(f.maxHeight=c),f}(g.current,!1,b,y);x(2),E(e)}else _()}),[k]),O=dv.useRef(),j=function(){nO.cancel(O.current)},$=function(e){2===k&&(null==i||i(e),o&&(j(),O.current=nO((function(){D()}))))},dv.useEffect((function(){return j}),[]),P=v?C:null,N=va(va({},s),P),0!==k&&1!==k||(N.overflowY="hidden",N.overflowX="hidden"),dv.createElement(QD,{onResize:$,disabled:!(o||i)},dv.createElement("textarea",la({},u,{ref:g,style:N,className:yZ(T,a,_i({},"".concat(T,"-disabled"),l)),disabled:l,value:p,onChange:m})))})),LT=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"],zT=LJ.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h=e.defaultValue,b=e.value,y=e.onFocus,v=e.onBlur,_=e.onChange,w=e.allowClear,k=e.maxLength,x=e.onCompositionStart,S=e.onCompositionEnd,C=e.suffix,E=e.prefixCls,D=void 0===E?"rc-textarea":E,O=e.classes,j=e.showCount,$=e.className,P=e.style,N=e.disabled,T=e.hidden,I=e.classNames,A=e.styles,R=e.onResize,F=wi(e,LT),M=za($l(h,{value:b,defaultValue:h}),2),L=M[0],z=M[1],B=dv.useRef(null),H=za(LJ.useState(!1),2),U=H[0],W=H[1],V=za(LJ.useState(!1),2),G=V[0],q=V[1],X=LJ.useRef(),K=LJ.useRef(0),Y=za(LJ.useState(null),2),Q=Y[0],J=Y[1],Z=function(){var e;null===(e=B.current)||void 0===e||e.textArea.focus()};return dv.useImperativeHandle(t,(function(){return{resizableTextArea:B.current,focus:Z,blur:function(){var e;null===(e=B.current)||void 0===e||e.textArea.blur()}}})),dv.useEffect((function(){W((function(e){return!N&&e}))}),[N]),r=Number(k)>0,o=function(e){q(!0),X.current=L,K.current=e.currentTarget.selectionStart,null==x||x(e)},i=function(e){var t,n;q(!1),t=e.currentTarget.value,r&&(t=wp(K.current>=k+1||K.current===(null===(n=X.current)||void 0===n?void 0:n.length),X.current,t,k)),t!==L&&(z(t),mp(e.currentTarget,e,_,t)),null==S||S(e)},a=function(e){var t=e.target.value;!G&&r&&(t=wp(e.target.selectionStart>=k+1||e.target.selectionStart===t.length||!e.target.selectionStart,L,t,k)),z(t),mp(e.currentTarget,e,_,t)},s=function(e){var t=F.onPressEnter,n=F.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},l=function(e){W(!0),null==y||y(e)},c=function(e){W(!1),null==v||v(e)},u=function(e){var t;z(""),Z(),mp(null===(t=B.current)||void 0===t?void 0:t.textArea,e,_)},d=hp(L),!G&&r&&null==b&&(d=_p(d,k)),p=C,j&&(m=ba(d).length,f="object"===yi(j)?j.formatter({value:d,count:m,maxLength:k}):"".concat(m).concat(r?" / ".concat(k):""),p=LJ.createElement(LJ.Fragment,null,p,LJ.createElement("span",{className:yZ("".concat(D,"-data-count"),null==I?void 0:I.count),style:null==A?void 0:A.count},f))),g=function(e){var t;null==R||R(e),null!==(t=B.current)&&void 0!==t&&t.textArea.style.height&&J(!0)},LJ.createElement(yT,{value:d,allowClear:w,handleReset:u,suffix:p,prefixCls:D,classes:{affixWrapper:yZ(null==O?void 0:O.affixWrapper,(n={},_i(n,"".concat(D,"-show-count"),j),_i(n,"".concat(D,"-textarea-allow-clear"),w),n))},disabled:N,focused:U,className:$,style:va(va({},P),Q?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof f?f:void 0}},hidden:T,inputElement:LJ.createElement(MT,la({},F,{onKeyDown:s,onChange:a,onFocus:l,onBlur:c,onCompositionStart:o,onCompositionEnd:i,className:null==I?void 0:I.textarea,style:va(va({},null==A?void 0:A.textarea),{},{resize:null==P?void 0:P.resize}),disabled:N,prefixCls:D,onResize:g,ref:B}))})})),BT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=BT(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:d,direction:p}=dv.useContext(WZ),f=Y0(o),m=dv.useContext(r0),g=null!=i?i:m,{status:h,hasFeedback:b,feedbackIcon:y}=dv.useContext(w2),v=z5(h,a),_=dv.useRef(null);dv.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=_.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=_.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.blur()}}}));const w=d("input",n);let k;"object"==typeof s&&(null==s?void 0:s.clearIcon)?k=s:s&&(k={clearIcon:dv.createElement(w0,null)});const[x,S]=p3(w);return x(dv.createElement(zT,Object.assign({},u,{disabled:g,allowClear:k,classes:{affixWrapper:yZ(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:"rtl"===p,[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:"small"===f,[`${w}-affix-wrapper-lg`]:"large"===f,[`${w}-textarea-show-count`]:l},od(`${w}-affix-wrapper`,v),S)},classNames:Object.assign(Object.assign({},c),{textarea:yZ({[`${w}-borderless`]:!r,[`${w}-sm`]:"small"===f,[`${w}-lg`]:"large"===f},od(w,v),S,null==c?void 0:c.textarea)}),prefixCls:w,suffix:b&&dv.createElement("span",{className:`${w}-textarea-suffix`},y),showCount:l,ref:_})))})),P8=x8;P8.Group=e=>{const{getPrefixCls:t,direction:n}=dv.useContext(WZ),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=p3(a),c=yZ(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=dv.useContext(w2),d=dv.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(dv.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},dv.createElement(w2.Provider,{value:d},e.children)))},P8.Search=j8,P8.TextArea=$8,P8.Password=D8;const N8=P8;HT=dv.createContext(null),UT=function(e){var t=e.className,n=e.style,r=e.children,o=e.containerRef,i={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp};return dv.createElement(dv.Fragment,null,dv.createElement("div",la({className:yZ("".concat(e.prefixCls,"-content"),t),style:va({},n),"aria-modal":"true",role:"dialog",ref:o},i),r))},WT={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},VT=dv.forwardRef(xp),GT=function(e){var t,n,r,o,i,a,s=e.open,l=void 0!==s&&s,c=e.prefixCls,u=void 0===c?"rc-drawer":c,d=e.placement,p=void 0===d?"right":d,f=e.autoFocus,m=void 0===f||f,g=e.keyboard,h=void 0===g||g,b=e.width,y=void 0===b?378:b,v=e.mask,_=void 0===v||v,w=e.maskClosable,k=void 0===w||w,x=e.getContainer,S=e.forceRender,C=e.afterOpenChange,E=e.destroyOnClose,D=e.onMouseEnter,O=e.onMouseOver,j=e.onMouseLeave,$=e.onClick,P=e.onKeyDown,N=e.onKeyUp,T=za(dv.useState(!1),2),I=T[0],A=T[1],R=za(dv.useState(!1),2),F=R[0],M=R[1];return RE((function(){M(!0)}),[]),t=!!F&&l,n=dv.useRef(),r=dv.useRef(),RE((function(){t&&(r.current=document.activeElement)}),[t]),o=function(e){var t,o;A(e),null==C||C(e),e||!r.current||(null===(t=n.current)||void 0===t?void 0:t.contains(r.current))||null===(o=r.current)||void 0===o||o.focus({preventScroll:!0})},S||I||t||!E?(i={onMouseEnter:D,onMouseOver:O,onMouseLeave:j,onClick:$,onKeyDown:P,onKeyUp:N},a=va(va({},e),{},{open:t,prefixCls:u,placement:p,autoFocus:m,keyboard:h,width:y,mask:_,maskClosable:k,inline:!1===x,afterOpenChange:o,ref:n},i),dv.createElement(Ij,{open:t||S||I,autoDestroy:!1,getContainer:x,autoLock:_&&(t||I)},dv.createElement(VT,a))):null};const T8=e=>{const{prefixCls:t,title:n,footer:r,extra:o,closeIcon:i,closable:a,onClose:s,headerStyle:l,drawerStyle:c,bodyStyle:u,footerStyle:d,children:p}=e,f=dv.useCallback((e=>dv.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},e)),[s]),[m,g]=Tc(a,i,f,void 0,!0),h=dv.useMemo((()=>n||m?dv.createElement("div",{style:l,className:yZ(`${t}-header`,{[`${t}-header-close-only`]:m&&!n&&!o})},dv.createElement("div",{className:`${t}-header-title`},g,n&&dv.createElement("div",{className:`${t}-title`},n)),o&&dv.createElement("div",{className:`${t}-extra`},o)):null),[m,g,o,l,t,n]),b=dv.useMemo((()=>r?dv.createElement("div",{className:`${t}-footer`,style:d},r):null),[r,d,t]);return dv.createElement("div",{className:`${t}-wrapper-body`,style:c},h,dv.createElement("div",{className:`${t}-body`,style:u},p),b)},I8=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},A8=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:f,marginSM:m,colorIcon:g,colorIconHover:h,colorText:b,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:_}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${p} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:m,color:g,fontWeight:y,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${v}px ${_}px`,borderTop:`${d}px ${p} ${f}`},"&-rtl":{direction:"rtl"}}}},R8=Tl("Drawer",(e=>{const t=Pl(e,{});return[A8(t),I8(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));qT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=F8,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:p,className:f,visible:m,afterVisibleChange:g}=e,h=qT(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:b,getPrefixCls:y,direction:v,drawer:_}=dv.useContext(WZ),w=y("drawer",u),[k,x]=R8(w),S=void 0===d&&b?()=>b(document.body):d,C=yZ({"no-mask":!i,[`${w}-rtl`]:"rtl"===v},t,x),E=dv.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),D=dv.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),O={motionName:V1(w,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};return k(dv.createElement(n1,null,dv.createElement(k2,{status:!0,override:!0},dv.createElement(GT,Object.assign({prefixCls:w,onClose:c,maskMotion:O,motion:e=>({motionName:V1(w,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},h,{open:null!=s?s:m,mask:i,push:a,width:E,height:D,style:Object.assign(Object.assign({},null==_?void 0:_.style),p),className:yZ(null==_?void 0:_.className,f),rootClassName:C,getContainer:S,afterOpenChange:null!=l?l:g}),dv.createElement(T8,Object.assign({prefixCls:w},h,{onClose:c}))))))};M8._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=qT(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=dv.useContext(WZ),s=a("drawer",t),[l,c]=R8(s),u=yZ(s,`${s}-pure`,`${s}-${o}`,c,r);return l(dv.createElement("div",{className:u,style:n},dv.createElement(T8,Object.assign({prefixCls:s},i))))};const L8=M8,z8=LJ.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),B8=z8.Provider,H8=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:d,supportFlexGap:p}=dv.useContext(z8);let f={};return p||("vertical"===n?r{var n,r;const{getPrefixCls:o,space:i,direction:a}=dv.useContext(WZ),{size:s=(null==i?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:p="horizontal",prefixCls:f,split:m,style:g,wrap:h=!1,classNames:b,styles:y}=e,v=XT(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),_=n8(),[w,k]=dv.useMemo((()=>(Array.isArray(s)?s:[s,s]).map((e=>function(e){return"string"==typeof e?U8[e]:e||0}(e)))),[s]),x=Is(d,{keepEmpty:!0}),S=void 0===l&&"horizontal"===p?"center":l,C=o("space",f),[E,D]=Z0(C),O=yZ(C,null==i?void 0:i.className,D,`${C}-${p}`,{[`${C}-rtl`]:"rtl"===a,[`${C}-align-${S}`]:S},c,u),j=yZ(`${C}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item),$="rtl"===a?"marginLeft":"marginRight";let P=0;const N=x.map(((e,t)=>{var n,r;return null!=e&&(P=t),dv.createElement(H8,{className:j,key:e&&e.key||`${j}-${t}`,direction:p,index:t,marginDirection:$,split:m,wrap:h,style:null!==(n=null==y?void 0:y.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),T=dv.useMemo((()=>({horizontalSize:w,verticalSize:k,latestIndex:P,supportFlexGap:_})),[w,k,P,_]);if(0===x.length)return null;const I={};return h&&(I.flexWrap="wrap",_||(I.marginBottom=-k)),_&&(I.columnGap=w,I.rowGap=k),E(dv.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},I),null==i?void 0:i.style),g)},v),dv.createElement(B8,{value:T},N)))}));W8.Compact=e=>{const{getPrefixCls:t,direction:n}=dv.useContext(WZ),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Cj(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Y0((e=>null!=r?r:e)),p=t("space-compact",a),[f,m]=Z0(p),g=yZ(p,m,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===o},s,l),h=dv.useContext(e1),b=Is(c),y=dv.useMemo((()=>b.map(((e,t)=>dv.createElement(r1,{key:e&&e.key||`${p}-item-${t}`,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!h||(null==h?void 0:h.isFirstItem)),isLastItem:t===b.length-1&&(!h||(null==h?void 0:h.isLastItem))},e)))),[r,b,h]);return 0===b.length?null:f(dv.createElement("div",Object.assign({className:g},u),y))};const V8=W8,G8=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},q8=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),X8=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},K8=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},qZ(e)),q8(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},X8(e,e.controlHeightSM)),"&-large":Object.assign({},X8(e,e.controlHeightLG))})}},Y8=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:Object.assign(Object.assign({},qZ(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:X2,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Q8=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},J8=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Z8=e=>({padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),e6=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Z8(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},t6=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:Z8(e),[`@media (max-width: ${e.screenXSMax}px)`]:[e6(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Z8(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Z8(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Z8(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Z8(e)}}}},n6=Tl("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=Pl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[K8(r),Y8(r),G8(r),Q8(r),J8(r),t6(r),l5(r),X2]})),r6=[],o6=["parentNode"],i6="form_item";KT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=dv.useContext(r0),{getPrefixCls:r,direction:o,form:i}=dv.useContext(WZ),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:p,labelAlign:f,labelWrap:m,labelCol:g,wrapperCol:h,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:v,requiredMark:_,onFinishFailed:w,name:k,style:x}=e,S=KT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style"]),C=Y0(c),E=dv.useContext(_Z),D=dv.useMemo((()=>void 0!==_?_:i&&void 0!==i.requiredMark?i.requiredMark:!b),[b,_,i]),O=null!=p?p:null==i?void 0:i.colon,j=r("form",a),[$,P]=n6(j),N=yZ(j,`${j}-${y}`,{[`${j}-hide-required-mark`]:!1===D,[`${j}-rtl`]:"rtl"===o,[`${j}-${C}`]:C},P,null==i?void 0:i.className,s,l),[T]=$p(d),{__INTERNAL__:I}=T;I.name=k;const A=dv.useMemo((()=>({name:k,labelAlign:f,labelCol:g,labelWrap:m,wrapperCol:h,vertical:"vertical"===y,colon:O,requiredMark:D,itemRef:I.itemRef,form:T})),[k,f,g,h,y,O,D,T]);dv.useImperativeHandle(t,(()=>T));const R=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),T.scrollToField(t,n)}};return $(dv.createElement(n0,{disabled:u},dv.createElement(i0,{size:C},dv.createElement(v2,{validateMessages:E},dv.createElement(b2.Provider,{value:A},dv.createElement(k$,Object.assign({id:k},S,{name:k,onFinishFailed:e=>{if(null==w||w(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==v)return void R(v,t);i&&void 0!==i.scrollToFirstError&&R(i.scrollToFirstError,t)}},form:T,style:Object.assign(Object.assign({},null==i?void 0:i.style),x),className:N})))))))},s6=dv.forwardRef(a6),l6=()=>{const{status:e,errors:t=[],warnings:n=[]}=dv.useContext(w2);return{status:e,errors:t,warnings:n}};l6.Context=w2;const c6=l6,u6=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:p}=e,f=`${t}-item`,m=dv.useContext(b2),g=r||m.wrapperCol||{},h=yZ(`${f}-control`,g.className),b=dv.useMemo((()=>Object.assign({},m)),[m]);delete b.labelCol,delete b.wrapperCol;const y=dv.createElement("div",{className:`${f}-control-input`},dv.createElement("div",{className:`${f}-control-input-content`},o)),v=dv.useMemo((()=>({prefixCls:t,status:n})),[t,n]),_=null!==d||i.length||a.length?dv.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},dv.createElement(_2.Provider,{value:v},dv.createElement(Ep,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${f}-explain-connected`,onVisibleChanged:p})),!!d&&dv.createElement("div",{style:{width:0,height:d}})):null,w={};u&&(w.id=`${u}_extra`);const k=l?dv.createElement("div",Object.assign({},w,{className:`${f}-extra`}),l):null,x=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:y,errorList:_,extra:k}):dv.createElement(dv.Fragment,null,y,_,k);return dv.createElement(b2.Provider,{value:b},dv.createElement(t8,Object.assign({},g,{className:h}),x))};YT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c}=e;var u;const[d]=DZ("Form"),{vertical:p,labelAlign:f,labelCol:m,labelWrap:g,colon:h}=dv.useContext(b2);if(!n)return null;const b=o||m||{},y=`${t}-item-label`,v=yZ(y,"left"===(i||f)&&`${y}-left`,b.className,{[`${y}-wrap`]:!!g});let _=n;const w=!0===a||!1!==h&&!1!==a;w&&!p&&"string"==typeof n&&""!==n.trim()&&(_=n.replace(/[:|:]\s*$/,""));const k=function(e){return e?"object"!=typeof e||dv.isValidElement(e)?{title:e}:e:null}(c);if(k){const{icon:e=dv.createElement(s2,null)}=k,n=YT(k,["icon"]),r=dv.createElement($4,Object.assign({},n),dv.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));_=dv.createElement(dv.Fragment,null,_,r)}"optional"!==l||s||(_=dv.createElement(dv.Fragment,null,_,dv.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=SZ.Form)||void 0===u?void 0:u.optional))));const x=yZ({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:"optional"===l,[`${t}-item-no-colon`]:!w});return dv.createElement(t8,Object.assign({},b,{className:v}),dv.createElement("label",{htmlFor:r,className:x,title:"string"==typeof n?n:""},_))};QT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),m6=function(e){function t(t,n,i){return r&&!g?t:dv.createElement(Pp,Object.assign({key:"row"},e,{className:yZ(o,D),prefixCls:C,fieldId:n,isRequired:i,errors:A,warnings:R,meta:N,onSubItemMetaChange:I}),t)}const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:s,rules:l,children:c,required:u,label:d,messageVariables:p,trigger:f="onChange",validateTrigger:m,hidden:g,help:h}=e,{getPrefixCls:b}=dv.useContext(WZ),{name:y}=dv.useContext(b2),v=function(e){if("function"==typeof e)return e;const t=Is(e);return t.length<=1?t[0]:t}(c),_="function"==typeof v,w=dv.useContext(y2),{validateTrigger:k}=dv.useContext(Hj),x=void 0!==m?m:k,S=function(e){return!(null==e)}(n),C=b("form",a),[E,D]=n6(C),O=dv.useContext(Uj),j=dv.useRef(),[$,P]=function(){const[e,t]=dv.useState({}),n=dv.useRef(null),r=dv.useRef([]),o=dv.useRef(!1);return dv.useEffect((()=>(o.current=!1,()=>{o.current=!0,nO.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=nO((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[N,T]=Ol((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{P((n=>{const r=Object.assign({},n),o=[].concat(ba(e.name.slice(0,-1)),ba(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[A,R]=dv.useMemo((()=>{const e=ba(N.errors),t=ba(N.warnings);return Object.values($).forEach((n=>{e.push.apply(e,ba(n.errors||[])),t.push.apply(t,ba(n.warnings||[]))})),[e,t]}),[$,N.errors,N.warnings]),F=function(){const{itemRef:e}=dv.useContext(b2),t=dv.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=Rs(e(n),o)),t.current.ref}}();if(!S&&!_&&!i)return E(t(v));let M={};return"string"==typeof d?M.label=d:n&&(M.label=String(n)),p&&(M=Object.assign(Object.assign({},M),p)),E(dv.createElement(au,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:x,onMetaChange:e=>{const t=null==O?void 0:O.getKey(e.name);if(T(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==h&&w){let n=e.name;if(e.destroy)n=j.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(ba(r)),j.current=n}w(e,n)}}}),((r,o,a)=>{const c=Dp(n).length&&o?o.name:[],d=Op(c,y),p=void 0!==u?u:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return t&&t.required&&!t.warningOnly}return!1}))),m=Object.assign({},r);let g=null;if(Array.isArray(v)&&S)g=v;else if(_&&(!s&&!i||S));else if(!i||_||S)if(O0(v)){const t=Object.assign(Object.assign({},v.props),m);if(t.id||(t.id=d),h||A.length>0||R.length>0||e.extra){const n=[];(h||A.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t["aria-describedby"]=n.join(" ")}A.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),Ms(v)&&(t.ref=F(c,v)),new Set([].concat(ba(Dp(f)),ba(Dp(x)))).forEach((e=>{t[e]=function(){var t,n,r,o,i,a,s,l;for(a=arguments.length,s=new Array(a),l=0;l{var{prefixCls:t,children:n}=e,r=JT(e,["prefixCls","children"]);const{getPrefixCls:o}=dv.useContext(WZ),i=o("form",t),a=dv.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return dv.createElement(f$,Object.assign({},r),((e,t,r)=>dv.createElement(_2.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},g6.ErrorList=Ep,g6.useForm=$p,g6.useFormInstance=function(){const{form:e}=dv.useContext(b2);return e},g6.useWatch=uu,g6.Provider=v2,g6.create=()=>{};const h6=g6;let b6=null,y6=e=>e(),v6=[],_6={};const w6=dv.forwardRef(((e,t)=>{const n=()=>{const{prefixCls:e,container:t,maxCount:n,duration:r,rtl:o,top:i}=function(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=_6;return{prefixCls:null!=e?e:f0().getPrefixCls("message"),container:(null==t?void 0:t())||document.body,duration:n,rtl:r,maxCount:o,top:i}}();return{prefixCls:e,getContainer:()=>t,maxCount:n,duration:r,rtl:o,top:i}},[r,o]=dv.useState(n),[i,a]=ic(r),s=f0(),l=s.getRootPrefixCls(),c=s.getIconPrefixCls(),u=s.getTheme(),d=()=>{o(n)};return dv.useEffect(d,[]),dv.useImperativeHandle(t,(()=>{const e=Object.assign({},i);return Object.keys(e).forEach((t=>{e[t]=function(){return d(),i[t].apply(i,arguments)}})),{instance:e,sync:d}})),dv.createElement(g0,{prefixCls:l,iconPrefixCls:c,theme:u},a)})),k6={open:function(e){const t=oc((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return v6.push(r),()=>{n?y6((()=>{n()})):r.skipped=!0}}));return Np(),t},destroy:function(e){v6.push({type:"destroy",key:e}),Np()},config:function(e){_6=Object.assign(Object.assign({},_6),e),y6((()=>{var e;null===(e=null==b6?void 0:b6.sync)||void 0===e||e.call(b6)}))},useMessage:ac,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=bj(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=dv.useContext(WZ),l=t||s("message"),[,c]=L0(l);return dv.createElement(pj,Object.assign({},a,{prefixCls:l,className:yZ(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:dv.createElement(B0,{prefixCls:l,type:r,icon:o},i)}))}},x6=k6;["success","info","warning","error","loading"].forEach((e=>{x6[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return v6.push(o),()=>{r?y6((()=>{r()})):o.skipped=!0}}));return Np(),n}(e,n)}}));const S6=x6;ZT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s}=e,l=ZT(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=dv.useContext(WZ),u=c(),d=t||c("modal"),[,p]=m5(d),f=`${d}-confirm`;let m={};return m=i?{closable:null!=o&&o,title:"",footer:"",children:dv.createElement(fu,Object.assign({},e,{confirmPrefixCls:f,rootPrefixCls:u,content:s}))}:{closable:null==o||o,title:a,footer:void 0===e.footer?dv.createElement(x2,Object.assign({},e)):e.footer,children:s},dv.createElement(Fj,Object.assign({prefixCls:d,className:yZ(p,`${d}-pure-panel`,i&&f,i&&`${f}-${i}`,n)},l,{closeIcon:du(d,r),closable:o},m))};const E6=C6;let D6=null,O6=e=>e(),j6=[],$6={};const P6=dv.forwardRef(((e,t)=>{const[n,r]=dv.useState(),[o,i]=dv.useState(),[a,s]=dv.useState(),[l,c]=dv.useState(),[u,d]=dv.useState(),[p,f]=dv.useState(),[m,g]=ku({prefixCls:n,getContainer:()=>o,maxCount:a,rtl:l,top:u,bottom:p}),h=f0(),b=h.getRootPrefixCls(),y=h.getIconPrefixCls(),v=h.getTheme(),_=()=>{const{prefixCls:e,container:t,maxCount:n,rtl:o,top:a,bottom:l}=function(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=$6;return{prefixCls:null!=e?e:f0().getPrefixCls("notification"),container:(null==t?void 0:t())||document.body,rtl:n,maxCount:r,top:o,bottom:i}}();r(e),i(t),s(n),c(o),d(a),f(l)};return dv.useEffect(_,[]),dv.useImperativeHandle(t,(()=>{const e=Object.assign({},m);return Object.keys(e).forEach((t=>{e[t]=function(){return _(),m[t].apply(m,arguments)}})),{instance:e,sync:_}})),dv.createElement(g0,{prefixCls:b,iconPrefixCls:y,theme:v},g)})),N6={open:Ap,destroy:function(e){j6.push({type:"destroy",key:e}),Ip()},config:function(e){$6=Object.assign(Object.assign({},$6),e),O6((()=>{var e;null===(e=null==D6?void 0:D6.sync)||void 0===e||e.call(D6)}))},useNotification:xu,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c}=e,u=C$(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=dv.useContext(WZ),p=t||d("notification"),f=`${p}-notice`,[,m]=E5(p);return dv.createElement(pj,Object.assign({},u,{prefixCls:p,className:yZ(n,m,`${f}-pure-panel`),eventKey:"pure",duration:null,closable:l,closeIcon:wu(p,c),content:dv.createElement(O5,{prefixCls:f,icon:r,type:o,message:i,description:a,btn:s})}))}},T6=N6;["success","info","warning","error"].forEach((e=>{T6[e]=t=>Ap(Object.assign(Object.assign({},t),{type:e}))}));const I6=T6;eI=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},tI=function(e){return void 0!==e?"".concat(e,"px"):void 0},nI=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"],rI=function(e){var t=e.prefixCls,n=e.disabled,r=e.checked,o=e.label,i=e.title,a=e.value,s=e.onChange;return dv.createElement("label",{className:yZ(e.className,_i({},"".concat(t,"-item-disabled"),n))},dv.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:r,onChange:function(e){n||s(e,a)}}),dv.createElement("div",{className:"".concat(t,"-item-label"),title:i},o))},oI=dv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,p=e.className,f=void 0===p?"":p,m=e.motionName,g=void 0===m?"thumb-motion":m,h=wi(e,nI),b=dv.useRef(null),y=dv.useMemo((function(){return Rs(b,t)}),[b,t]),v=dv.useMemo((function(){return function(e){return e.map((function(e){if("object"===yi(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==yi(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return va(va({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(s)}),[s]),_=za($l(null===(n=v[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),w=_[0],k=_[1],x=za(dv.useState(!1),2),S=x[0],C=x[1],E=function(e,t){l||(k(t),null==d||d(t))},D=Gs(h,["children"]);return dv.createElement("div",la({},D,{className:yZ(i,(r={},_i(r,"".concat(i,"-rtl"),"rtl"===a),_i(r,"".concat(i,"-disabled"),l),r),f),ref:y}),dv.createElement("div",{className:"".concat(i,"-group")},dv.createElement(Rp,{prefixCls:i,value:w,containerRef:b,motionName:"".concat(i,"-").concat(g),direction:a,getValueIndex:function(e){return v.findIndex((function(t){return t.value===e}))},onMotionStart:function(){C(!0)},onMotionEnd:function(){C(!1)}}),v.map((function(e){return dv.createElement(rI,la({},e,{key:e.value,prefixCls:i,className:yZ(e.className,"".concat(i,"-item"),_i({},"".concat(i,"-item-selected"),e.value===w&&!S)),checked:e.value===w,onChange:E,disabled:!!l||!!e.disabled}))}))))})),oI.displayName="Segmented",oI.defaultProps={options:[]};const A6=Object.assign({overflow:"hidden"},GZ),R6=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qZ(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":Object.assign(Object.assign({},Mp(e)),{color:e.itemHoverColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},A6),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Mp(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Fp(`&-disabled ${t}-item`,e)),Fp(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},F6=Tl("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=Pl(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[R6(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i}}));iI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:s="middle",style:l}=e,c=iI(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:p}=dv.useContext(WZ),f=u("segmented",n),[m,g]=F6(f),h=Y0(s),b=dv.useMemo((()=>a.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=iI(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:dv.createElement(dv.Fragment,null,dv.createElement("span",{className:`${f}-item-icon`},t),n&&dv.createElement("span",null,n))})}return e}))),[a,f]),y=yZ(r,o,null==p?void 0:p.className,{[`${f}-block`]:i,[`${f}-sm`]:"small"===h,[`${f}-lg`]:"large"===h},g),v=Object.assign(Object.assign({},null==p?void 0:p.style),l);return m(dv.createElement(oI,Object.assign({},c,{className:y,style:v,options:b,ref:t,prefixCls:f,direction:d})))}));aI=dv.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),sI=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],lI=dv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,p=wi(e,sI),f=dv.useContext(aI),m=f.min,g=f.max,h=f.direction,b=f.disabled,y=f.keyboard,v=f.range,_=f.tabIndex,w=f.ariaLabelForHandle,k=f.ariaLabelledByForHandle,x=f.ariaValueTextFormatterForHandle,S="".concat(o,"-handle"),C=function(e){b||s(e,a)},E=zp(h,i,m,g),D=dv.createElement("div",la({ref:t,className:yZ(S,(n={},_i(n,"".concat(S,"-").concat(a+1),v),_i(n,"".concat(S,"-dragging"),u),n)),style:va(va({},E),l),onMouseDown:C,onTouchStart:C,onKeyDown:function(e){if(!b&&y){var t=null;switch(e.which||e.keyCode){case dj.LEFT:t="ltr"===h||"btt"===h?-1:1;break;case dj.RIGHT:t="ltr"===h||"btt"===h?1:-1;break;case dj.UP:t="ttb"!==h?1:-1;break;case dj.DOWN:t="ttb"!==h?-1:1;break;case dj.HOME:t="min";break;case dj.END:t="max";break;case dj.PAGE_UP:t=2;break;case dj.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,a))}},tabIndex:b?null:Bp(_,a),role:"slider","aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":Bp(w,a),"aria-labelledby":Bp(k,a),"aria-valuetext":null===(r=Bp(x,a))||void 0===r?void 0:r(i)},p));return c&&(D=c(D,{index:a,prefixCls:o,value:i,dragging:u})),D})),cI=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],uI=dv.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=wi(e,cI),u=dv.useRef({});return dv.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),dv.createElement(dv.Fragment,null,a.map((function(e,t){return dv.createElement(lI,la({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:Bp(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:s},c))})))})),dI=dv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C=e.prefixCls,E=void 0===C?"rc-slider":C,D=e.className,O=e.style,j=e.disabled,$=void 0!==j&&j,P=e.keyboard,N=void 0===P||P,T=e.autoFocus,I=e.onFocus,A=e.onBlur,R=e.min,F=void 0===R?0:R,M=e.max,L=void 0===M?100:M,z=e.step,B=void 0===z?1:z,H=e.value,U=e.defaultValue,W=e.range,V=e.count,G=e.onChange,q=e.onBeforeChange,X=e.onAfterChange,K=e.allowCross,Y=void 0===K||K,Q=e.pushable,J=void 0!==Q&&Q,Z=e.draggableTrack,ee=e.reverse,te=e.vertical,ne=e.included,re=void 0===ne||ne,oe=e.startPoint,ie=e.trackStyle,ae=e.handleStyle,se=e.railStyle,le=e.dotStyle,ce=e.activeDotStyle,ue=e.marks,de=e.dots,pe=e.handleRender,fe=e.tabIndex,me=void 0===fe?0:fe,ge=e.ariaLabelForHandle,he=e.ariaLabelledByForHandle,be=e.ariaValueTextFormatterForHandle,ye=dv.useRef(),ve=dv.useRef(),_e=dv.useMemo((function(){return te?ee?"ttb":"btt":ee?"rtl":"ltr"}),[ee,te]),we=dv.useMemo((function(){return isFinite(F)?F:0}),[F]),ke=dv.useMemo((function(){return isFinite(L)?L:100}),[L]),xe=dv.useMemo((function(){return null!==B&&B<=0?1:B}),[B]),Se=dv.useMemo((function(){return!0===J?xe:J>=0&&J}),[J,xe]),Ce=dv.useMemo((function(){return Object.keys(ue||{}).map((function(e){var t=ue[e],n={value:Number(e)};return t&&"object"===yi(t)&&!dv.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[ue]),Ee=function(e,t,n,r,o,i){var a=dv.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=dv.useCallback((function(r){var o,i,s,l;return null!==n?(o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(i(n),i(t),i(e)),l=Number(o.toFixed(s)),e<=l&&l<=t?l:null):null}),[n,e,t,a]),l=dv.useCallback((function(o){var i,l,c=a(o),u=r.map((function(e){return e.value}));return null!==n&&u.push(s(o)),u.push(e,t),i=u[0],l=t-e,u.forEach((function(e){var t=Math.abs(c-e);t<=l&&(i=e,l=t)})),i}),[e,t,r,n,a,s]),c=function o(i,a,l,c){var u,d,p,f,m,g,h,b,y=arguments.length>3&&void 0!==c?c:"unit";return"number"==typeof a?(p=(d=i[l])+a,f=[],r.forEach((function(e){f.push(e.value)})),f.push(e,t),f.push(s(d)),m=a>0?1:-1,f.push(s("unit"===y?d+m*n:p)),f=f.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===y&&(f=f.filter((function(e){return e!==d}))),g="unit"===y?d:p,u=f[0],h=Math.abs(u-g),f.forEach((function(e){var t=Math.abs(e-g);t1?((b=ba(i))[l]=u,o(b,a-m,l,y)):u):"min"===a?e:"max"===a?t:void 0},u=function(e,t,n,r){var o=e[n],i=c(e,t,n,arguments.length>3&&void 0!==r?r:"unit");return{value:i,changed:i!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e3&&void 0!==r?r:"unit",S=e.map(l),C=S[n],E=c(S,t,n,x);if(S[n]=E,!1===o)a=i||0,n>0&&S[n-1]!==C&&(S[n]=Math.max(S[n],S[n-1]+a)),n0;m-=1)for(g=!0;d(S[m]-S[m-1])&&g;)h=u(S,-1,m-1),S[m-1]=h.value,g=h.changed;for(b=S.length-1;b>0;b-=1)for(y=!0;d(S[b]-S[b-1])&&y;)v=u(S,-1,b-1),S[b-1]=v.value,y=v.changed;for(_=0;_=0?V+1:2);o.length=0&&ye.current.focus(e)}c(null)}),[l=s[0]]),d=dv.useMemo((function(){return(!Z||null!==xe)&&Z}),[Z,xe]),p=function(e,t,n,o,i,a,s,l,c){var u,d,p,f,m,g=za(dv.useState(null),2),h=g[0],b=g[1],y=za(dv.useState(-1),2),v=y[0],_=y[1],w=za(dv.useState(n),2),k=w[0],x=w[1],S=za(dv.useState(n),2),C=S[0],E=S[1],D=dv.useRef(null),O=dv.useRef(null);return dv.useEffect((function(){-1===v&&x(n)}),[n,v]),dv.useEffect((function(){return function(){document.removeEventListener("mousemove",D.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",D.current),document.removeEventListener("touchend",O.current)}}),[]),u=function(e,t){k.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&b(t),x(e),s(e))},(p=dv.useRef(d=function(e,t){var n,r,s,l,d,p,f,m;-1===e?(n=C[0],r=i-C[C.length-1],s=t*(i-o),s=Math.max(s,o-n),s=Math.min(s,r),l=a(n+s),s=l-n,d=C.map((function(e){return e+s})),u(d)):(p=(i-o)*t,(f=ba(k))[e]=C[e],m=c(f,p,e,"dist"),u(m.values,m.value))})).current=d,f=function(o,i){var a,s,l,c,u,d;o.stopPropagation(),a=n[i],_(i),b(a),E(n),s=Hp(o),l=s.pageX,c=s.pageY,u=function(n){var r,o,a,s,u,d,f;switch(n.preventDefault(),o=(r=Hp(n)).pageX-l,a=r.pageY-c,u=(s=e.current.getBoundingClientRect()).width,d=s.height,t){case"btt":f=-a/d;break;case"ttb":f=a/d;break;case"rtl":f=-o/u;break;default:f=o/u}p.current(i,f)},d=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),D.current=null,O.current=null,_(-1),null==X||X(r(Ie.current))},document.addEventListener("mouseup",d),document.addEventListener("mousemove",u),document.addEventListener("touchend",d),document.addEventListener("touchmove",u),D.current=u,O.current=d},m=dv.useMemo((function(){var e=ba(n).sort((function(e,t){return e-t})),t=ba(k).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?k:n}),[n,k]),[v,h,m,f]}(ve,_e,Te,we,ke,Oe,o,0,je),f=za(p,4),g=f[1],h=f[2],b=f[3],y=function(e,t){b(e,t),null==q||q(r(Ie.current))},dv.useEffect((function(){if(!v){var e=Te.lastIndexOf(g);ye.current.focus(e)}}),[v=-1!==(m=f[0])]),_=dv.useMemo((function(){return ba(h).sort((function(e,t){return e-t}))}),[h]),w=za(dv.useMemo((function(){return W?[_[0],_[_.length-1]]:[we,_[0]]}),[_,W,we]),2),k=w[0],x=w[1],dv.useImperativeHandle(t,(function(){return{focus:function(){ye.current.focus(0)},blur:function(){var e=document.activeElement;ve.current.contains(e)&&(null==e||e.blur())}}})),dv.useEffect((function(){T&&ye.current.focus(0)}),[]),S=dv.useMemo((function(){return{min:we,max:ke,direction:_e,disabled:$,keyboard:N,step:xe,included:re,includedStart:k,includedEnd:x,range:W,tabIndex:me,ariaLabelForHandle:ge,ariaLabelledByForHandle:he,ariaValueTextFormatterForHandle:be}}),[we,ke,_e,$,N,xe,re,k,x,W,me,ge,he,be]),dv.createElement(aI.Provider,{value:S},dv.createElement("div",{ref:ve,className:yZ(E,D,(n={},_i(n,"".concat(E,"-disabled"),$),_i(n,"".concat(E,"-vertical"),te),_i(n,"".concat(E,"-horizontal"),!te),_i(n,"".concat(E,"-with-marks"),Ce.length),n)),style:O,onMouseDown:a},dv.createElement("div",{className:"".concat(E,"-rail"),style:se}),dv.createElement(Wp,{prefixCls:E,style:ie,values:_,startPoint:oe,onStartMove:d?y:null}),dv.createElement(Xp,{prefixCls:E,marks:Ce,dots:de,style:le,activeStyle:ce}),dv.createElement(uI,{ref:ye,prefixCls:E,style:ae,values:h,draggingIndex:m,onStartMove:y,onOffsetChange:u,onFocus:I,onBlur:A,handleRender:pe}),dv.createElement(Gp,{prefixCls:E,marks:Ce,onClick:i})))}));const L6=dv.forwardRef(((e,t)=>{function n(){nO.cancel(i.current),i.current=null}const{open:r}=e,o=dv.useRef(null),i=dv.useRef(null);return dv.useEffect((()=>(r?i.current=nO((()=>{var e;null===(e=o.current)||void 0===e||e.forceAlign(),i.current=null})):n(),n)),[r,e.title]),dv.createElement($4,Object.assign({ref:Rs(o,t)},e))})),z6=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},qZ(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new cO(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},B6=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[a]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[l]:(3*r-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:o,[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-i)/2}}},H6=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},B6(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},U6=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},B6(e,!1)),{height:"100%"})}},W6=Tl("Slider",(e=>{const t=Pl(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[z6(t),H6(t),U6(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));pI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",G6=LJ.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:p}=e,f=pI(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:m,slider:g,getPrefixCls:h,getPopupContainer:b}=LJ.useContext(WZ),y=LJ.useContext(r0),v=null!=s?s:y,[_,w]=LJ.useState({}),k=(e,t)=>{w((n=>Object.assign(Object.assign({},n),{[e]:t})))},x=(e,t)=>e||(t?"rtl"===m?"left":"right":"top"),S=h("slider",n),[C,E]=W6(S),D=yZ(o,null==g?void 0:g.className,i,{[`${S}-rtl`]:"rtl"===m},E);"rtl"!==m||f.vertical||(f.reverse=!f.reverse);const[O,j]=LJ.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),$=Object.assign(Object.assign({},null==g?void 0:g.style),a);return C(LJ.createElement(dI,Object.assign({},f,{step:f.step,range:O,draggableTrack:j,className:D,style:$,disabled:v,ref:t,prefixCls:S,handleRender:(t,n)=>{var r;const{index:o,dragging:i}=n,{tooltip:a={},vertical:s}=e,f=Object.assign({},a),{open:m,placement:g,getPopupContainer:y,prefixCls:v,formatter:w}=f;let C;C=w||null===w?w:c||null===c?c:V6;const E=null!==(r=null!=m?m:u)&&void 0!==r?r:void 0===m&&!!C&&(_[o]||i),D=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>k(o,!0),onMouseLeave:()=>k(o,!1)}),O=h("tooltip",null!=v?v:l);return LJ.createElement(L6,{prefixCls:O,title:C?C(n.value):"",open:E,placement:x(null!=g?g:p,s),key:o,overlayClassName:`${S}-tooltip`,getPopupContainer:y||d||b},LJ.cloneElement(t,D))}})))}));fI=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],mI=dv.forwardRef((function(e,t){function n(e,t){var n=y;return c||(v(n=e),null==m||m(n,t)),n}var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,f=e.onClick,m=e.onChange,g=e.onKeyDown,h=wi(e,fI),b=za($l(!1,{value:s,defaultValue:l}),2),y=b[0],v=b[1],_=yZ(i,a,(_i(r={},"".concat(i,"-checked"),y),_i(r,"".concat(i,"-disabled"),c),r));return dv.createElement("button",la({},h,{type:"button",role:"switch","aria-checked":y,disabled:c,className:_,ref:t,onKeyDown:function(e){e.which===dj.LEFT?n(!1,e):e.which===dj.RIGHT&&n(!0,e),null==g||g(e)},onClick:function(e){var t=n(!y,e);null==f||f(t,e)}}),u,dv.createElement("span",{className:"".concat(i,"-inner")},dv.createElement("span",{className:"".concat(i,"-inner-checked")},d),dv.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))})),mI.displayName="Switch";const q6=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},X6=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},K6=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return{[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},Y6=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-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"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:2*-e.switchPadding}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:2*-e.switchPadding,marginInlineEnd:2*e.switchPadding}}}}}},Q6=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qZ(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),QZ(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"}})}},J6=Tl("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=t-4,o=n-4,i=Pl(e,{switchMinWidth:2*r+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+2+4,switchPadding:2,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:2*o+4,switchHeightSM:n,switchInnerMarginMinSM:o/2,switchInnerMarginMaxSM:o+2+4,switchPinSizeSM:o,switchHandleShadow:`0 2px 4px 0 ${new cO("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Q6(i),Y6(i),K6(i),X6(i),q6(i)]}));gI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=gI(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:p}=dv.useContext(WZ),f=dv.useContext(r0),m=(null!=o?o:f)||i,g=u("switch",n),h=dv.createElement("div",{className:`${g}-handle`},i&&dv.createElement(F0,{className:`${g}-loading-icon`})),[b,y]=J6(g),v=Y0(r),_=yZ(null==p?void 0:p.className,{[`${g}-small`]:"small"===v,[`${g}-loading`]:i,[`${g}-rtl`]:"rtl"===d},a,s,y),w=Object.assign(Object.assign({},null==p?void 0:p.style),l);return b(dv.createElement(K0,null,dv.createElement(mI,Object.assign({},c,{prefixCls:g,className:_,style:w,disabled:m,ref:t,loadingIcon:h}))))}));Z6.__ANT_SWITCH=!0;const e7=Z6,t7=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},n7=e=>Il(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),r7=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},qZ(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},o7=Tl("Tag",(e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=Pl(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[r7(o),n7(o),t7(o,"success","Success"),t7(o,"processing","Info"),t7(o,"error","Error"),t7(o,"warning","Warning")]}),(e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText})));hI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:p=!0}=e,f=bI(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:m,direction:g,tag:h}=dv.useContext(WZ),[b,y]=dv.useState(!0);dv.useEffect((()=>{"visible"in f&&y(f.visible)}),[f.visible]);const v=fd(l)||function(e){return D4.includes(e)}(l),_=Object.assign(Object.assign({backgroundColor:l&&!v?l:void 0},null==h?void 0:h.style),i),w=m("tag",n),[k,x]=o7(w),S=yZ(w,null==h?void 0:h.className,{[`${w}-${l}`]:v,[`${w}-has-color`]:l&&!v,[`${w}-hidden`]:!b,[`${w}-rtl`]:"rtl"===g,[`${w}-borderless`]:!p},r,o,x),C=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||y(!1)},[,E]=Tc(d,u,(e=>null===e?dv.createElement(x0,{className:`${w}-close-icon`,onClick:C}):dv.createElement("span",{className:`${w}-close-icon`,onClick:C},e)),null,!1),D="function"==typeof f.onClick||a&&"a"===a.type,O=s||null,j=O?dv.createElement(dv.Fragment,null,O,a&&dv.createElement("span",null,a)):a,$=dv.createElement("span",Object.assign({},f,{ref:t,className:S,style:_}),j,E);return k(D?dv.createElement(K0,null,$):$)},a7=dv.forwardRef(i7);a7.CheckableTag=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=hI(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=dv.useContext(WZ),l=s("tag",t),[c,u]=o7(l),d=yZ(l,`${l}-checkable`,{[`${l}-checkable-checked`]:r},n,u);return c(dv.createElement("span",Object.assign({},a,{className:d,onClick:e=>{null==o||o(!r),null==i||i(e)}})))};const s7=a7;yI=function(){return x4.useToken().token},wI=dv.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(_I=(vI=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}})("dark"))&&void 0!==_I&&_I.matches?"dark":"light"}),kI=function(){return dv.useContext(wI)},xI=function(){var e=yI(),t=kI(),n=t.appearance,r=t.isDarkMode;return dv.useMemo((function(){return CD(SD({token:e,css:$C,appearance:n,isDarkMode:r}))}),[e,n,r])},SI=function(){var e=yI(),t=xI();return dv.useMemo((function(){return Qp(Qp({},e),{},{stylish:t})}),[e,t])},CI=function(e){return Zp(Zp({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},EI=function(){var e=function(e){let t=!(arguments.length>0&&void 0!==e)||e;const n=dv.useRef({}),r=function(){const[,e]=dv.useReducer((e=>e+1),0);return e}(),o=ld();return dv.useEffect((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current}();return dv.useMemo((function(){return CI(e)}),[e])},DI=function(){var e=yI(),t={xs:"@media (max-width: ".concat(e.screenXSMax,"px)"),sm:"@media (max-width: ".concat(e.screenSMMax,"px)"),md:"@media (max-width: ".concat(e.screenMDMax,"px)"),lg:"@media (max-width: ".concat(e.screenLGMax,"px)"),xl:"@media (max-width: ".concat(e.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(e.screenXXLMin,"px)")};return dv.useMemo((function(){return CI(t)}),[e])},OI=function(e,t){return Object.entries(e).map((function(e){var n=za(e,2),r=n[0],o=n[1],i=o;return SC(o)||(i=$C(o)),t[r]?"".concat(t[r]," {").concat(i.styles,"}"):""})).join("")},jI=["stylish","appearance","isDarkMode","prefixCls"],$I=["prefixCls"],PI=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var i=null==o?void 0:o.__BABEL_FILE_NAME__,a=!!i;return function(s){var l=n(),c=dv.useContext(r),u=jC(c.cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),d=u.cx,p=u.css,f=DI(),m=dv.useMemo((function(){var t,n,r,o,c,u,m;return e instanceof Function?(n=l.stylish,r=l.appearance,o=l.isDarkMode,c=l.prefixCls,u=wi(l,jI),m=function(e){return OI(e,f)},Object.assign(m,f),t=e({token:u,stylish:n,appearance:r,isDarkMode:o,prefixCls:c,cx:d,css:$C,responsive:m},s)):t=e,"object"===yi(t)&&(t=SC(t)?p(t):Object.fromEntries(Object.entries(t).map((function(e){var t=za(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===yi(r)?a?[n,p(r,"label:".concat(o))]:[n,p(r)]:[n,r]})))),t}),[s,l]);return dv.useMemo((function(){var e=l.prefixCls,t=wi(l,$I);return{styles:m,cx:d,theme:t,prefixCls:e}}),[m,l])}}},NI=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return yv.jsx(t.Provider,{value:e.theme,children:e.children})}},TI=bE,II=mE,AI=function(e){if(!e.ThemeContext)throw"ThemeContext is required. Please check your config.";II=e.ThemeContext,TI=NI(e)};const l7=dv.memo((function(e){var t,n=e.children,r=e.theme,o=e.prefixCls,i=e.getStaticInstance,a=e.staticInstanceConfig,s=kI(),l=s.appearance,c=s.isDarkMode,u=za(S6.useMessage(null==a?void 0:a.message),2),d=u[0],p=u[1],f=za(I6.useNotification(null==a?void 0:a.notification),2),m=f[0],g=f[1],h=za(E6.useModal(),2),b=h[0],y=h[1];return dv.useEffect((function(){null==i||i({message:d,modal:b,notification:m})}),[]),t=dv.useMemo((function(){var e,t=c?x4.darkAlgorithm:x4.defaultAlgorithm,n=r;return"function"==typeof r&&(n=r(l)),n?(e=n.algorithm?n.algorithm instanceof Array?n.algorithm:[n.algorithm]:[],tf(tf({},n),{},{algorithm:n.algorithm?[t].concat(ba(e)):t})):{algorithm:t}}),[r,c]),yv.jsxs(g0,{prefixCls:o,theme:t,children:[p,g,y,n]})}));RI=function(e){"function"==typeof dv.startTransition?dv.startTransition(e):e()},MI=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){vI("dark").matches?n("dark"):n("light")},i=function(){vI("dark").matches?r("dark"):r("light")};return dv.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),FI||(FI=vI("dark")),FI.addEventListener("change",o),function(){FI.removeEventListener("change",o)};RI((function(){n(t)}))}),[t]),dv.useLayoutEffect((function(){return FI||(FI=vI("dark")),FI.addEventListener("change",i),function(){FI.removeEventListener("change",i)}}),[]),null};const c7=dv.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,d=za(rf("light",{value:a,defaultValue:null!=s?s:c.themeMode,onChange:function(e){return null==l?void 0:l(e)}}),2),p=d[0],f=d[1],m=za(rf("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==i?void 0:i(e)}}),2),g=m[0],h=m[1],b=za(dv.useState(null!==(t=vI("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=b[0],v=b[1],_=za(dv.useState(!1),2),w=_[0],k=_[1];return dv.useEffect((function(){RI((function(){k(!0)}))}),[]),yv.jsxs(wI.Provider,{value:{themeMode:p,setThemeMode:f,appearance:g,setAppearance:h,isDarkMode:"dark"===g,browserPrefers:y},children:[w&&yv.jsx(MI,{themeMode:p,setAppearance:h,setBrowserPrefers:v}),n]})}));LI=["stylish"];const u7=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,a=void 0===i?"ant":i,s=e.StyledThemeProvider,l=kI(),c=l.appearance,u=l.isDarkMode,d=SI(),p=d.stylish,f=wi(d,LI),m=dv.useMemo((function(){return r?r instanceof Function?r({token:f,appearance:c,isDarkMode:u}):r:{}}),[r,f,c]),g=dv.useMemo((function(){return af(af({},m),n instanceof Function?n({token:f,appearance:c,isDarkMode:u}):n)}),[m,n,f,c]),h=dv.useMemo((function(){return o?o({token:af(af({},f),g),stylish:p,appearance:c,isDarkMode:u,css:$C}):{}}),[o,f,g,p,c]),b=dv.useMemo((function(){return af(af({},h),p)}),[h,p]),y=af(af(af(af({},f),g),{},{stylish:b},l),{},{prefixCls:a});return yv.jsx(s,{theme:y,children:t})};zI=function(e){var t=e.styledConfig?NI(e.styledConfig):void 0,n=e.StyleEngineContext;return dv.memo((function(r){var o=r.children,i=r.customToken,a=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,d=r.appearance,p=r.defaultAppearance,f=r.onAppearanceChange,m=r.themeMode,g=r.defaultThemeMode,h=r.onThemeModeChange,b=r.styled,y=dv.useContext(n),v=y.prefixCls,_=y.StyledThemeContext,w=y.CustomThemeContext,k=dv.useContext(w),x=b?NI(b):t||TI,S=c||v;return yv.jsx(n.Provider,{value:{prefixCls:S,StyledThemeContext:(null==b?void 0:b.ThemeContext)||_||II,CustomThemeContext:w},children:yv.jsx(c7,{themeMode:m,defaultThemeMode:g,onThemeModeChange:h,defaultAppearance:p,appearance:d,onAppearanceChange:f,useTheme:e.useTheme,children:yv.jsx(l7,{prefixCls:S,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:yv.jsx(u7,{prefixCls:S,customToken:i,defaultCustomToken:k,customStylish:a,StyledThemeProvider:x,children:o})})})})}))},BI=function(e){return function(){var t=dv.useContext(e.StyleEngineContext),n=t.StyledThemeContext,r=t.CustomThemeContext,o=t.prefixCls,i=SI(),a=kI(),s=dv.useContext(r),l=dv.useContext(null!=n?n:II)||{},c=dv.useMemo((function(){return lf(lf(lf(lf({},i),a),s),{},{prefixCls:o||"ant"})}),[i,a,o,s]);return l&&0!==Object.keys(l).length?l:c}},HI=new _C,"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=HI),VI=(tJ={key:"acss",speedy:!1},fJ=uf(uf({},tJ),{},{key:null!==(nJ=tJ.key)&&void 0!==nJ?nJ:"zcss",speedy:null!==(rJ=tJ.speedy)&&void 0!==rJ&&rJ}),mJ=mC({key:fJ.key,speedy:fJ.speedy,container:fJ.container}),gJ=PC(mJ),hJ=xD(gJ),mJ.cache=HI.add(mJ.cache),iJ=null===(oJ=fJ.styled)||void 0===oJ?void 0:oJ.ThemeContext,sJ=BI({StyleEngineContext:aJ=dv.createContext({CustomThemeContext:dv.createContext(fJ.customToken?fJ.customToken:{}),StyledThemeContext:iJ,prefixCls:null==fJ?void 0:fJ.prefixCls})}),lJ=PI({hashPriority:fJ.hashPriority,useTheme:sJ,EmotionContext:gJ}),cJ=vE(sJ),uJ=_E(lJ),dJ=zI({styledConfig:fJ.styled,StyleEngineContext:aJ,useTheme:sJ}),pJ=jC(mJ.cache,{hashPriority:fJ.hashPriority}),UI={createStyles:lJ,createGlobalStyle:cJ,createStylish:uJ,css:$C,cx:pJ.cx,keyframes:mJ.keyframes,injectGlobal:mJ.injectGlobal,styleManager:mJ,useTheme:sJ,StyleProvider:hJ,ThemeProvider:dJ}).createGlobalStyle,GI=UI.css,qI=UI.cx,XI=UI.keyframes,KI=UI.ThemeProvider,YI=UI.StyleProvider,QI=UI.useTheme,eA=(WI=UI.createStyles)((function(e){var t=e.css,n=XI(JI||(JI=ki(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(ZI||(ZI=ki(["\n animation: "," 1s linear infinite;\n "])),n)}})),tA=["icon","size","color","fill","className","spin"],nA=function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}};const d7=dv.memo((function(e){var t=e.icon,n=e.size,r=e.color,o=e.fill,i=e.className,a=e.spin,s=wi(e,tA),l=eA(),c=l.styles,u=l.cx,d=t,p=dv.useMemo((function(){return nA(n)}),[n]),f=p.fontSize,m=p.strokeWidth;return yv.jsx("span",pf(pf({className:u("anticon",a&&c.spin,i),role:"img"},s),{},{children:yv.jsx(d,{color:r,fill:null!=o?o:"transparent",focusable:!1,height:f,size:f,strokeWidth:m,width:f})}))}));oA=WI((function(e,t){var n,r,o=e.token,i=e.isDarkMode,a=t.offset,s=(null!==(n=null==a?void 0:a.x)&&void 0!==n?n:0)+"px",l=(null!==(r=null==a?void 0:a.y)&&void 0!==r?r:0)+"px",c=t.outside?"0":".1",u=t.size+"px";return(0,e.css)(rA||(rA=ki(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),c,u,s,l,i?o.colorText:"#fff",i?"transparent":o.colorTextQuaternary)})),iA=["className","size"],aA=function(){var e=za(dv.useState(),2),t=e[0],n=e[1],r=za(dv.useState(!0),2),o=r[0],i=r[1],a=dv.useRef();return dv.useEffect((function(){var e,t,r;if(a.current&&a.current.parentElement)return t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),i(!1)},r=function(){i(!0)},(e=a.current.parentElement).addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}),[]),[t,o,a]};const p7=dv.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=wi(e,iA),i=za(aA(),3),a=i[2],s=oA({offset:i[0],outside:i[1],size:r});return yv.jsx("div",function(e){var t,n;for(t=1;ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,r=Array(i);++o-1},dF=function(e,t){var n=this.__data__,r=sF(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Xf.prototype.clear=function(){this.__data__=[],this.size=0},Xf.prototype.delete=lF,Xf.prototype.get=cF,Xf.prototype.has=uF,Xf.prototype.set=dF,fF=pF=Xf,mF=function(){this.__data__=new fF,this.size=0},gF=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},hF=function(e){return this.__data__.get(e)},bF=function(e){return this.__data__.has(e)},yF=KR,vF=IR,_F=function(e){if(!vF(e))return!1;var t=yF(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},IQ=/[^.]+$/.exec((wF=FR["__core-js_shared__"])&&wF.keys&&wF.keys.IE_PROTO||""),kF=IQ?"Symbol(src)_1."+IQ:"",xF=Function.prototype.toString,CF=_F,EF=function(e){return!!kF&&kF in e},DF=IR,OF=SF=function(e){if(null!=e){try{return xF.call(e)}catch(HQ){}try{return e+""}catch(HQ){}}return""},jF=/[\\^$.*+?()[\]{}|]/g,$F=/^\[object .+?Constructor\]$/,PF=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(jF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),NF=function(e,t){return null==e?void 0:e[t]},TF=function(e){return!(!DF(e)||EF(e))&&(CF(e)?PF:$F).test(OF(e))},IF=NF,AF=function(e,t){var n=IF(e,t);return TF(n)?n:void 0},RF=AF(FR,"Map"),FF=AF(Object,"create"),LF=MF=FF,zF=MF,BF=Object.prototype.hasOwnProperty,HF=MF,UF=Object.prototype.hasOwnProperty,WF=MF,VF=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},GF=function(e){var t,n=this.__data__;return zF?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:BF.call(n,e)?n[e]:void 0},qF=function(e){var t=this.__data__;return HF?void 0!==t[e]:UF.call(t,e)},XF=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=WF&&void 0===t?"__lodash_hash_undefined__":t,this},Kf.prototype.clear=function(){this.__data__=LF?LF(null):{},this.size=0},Kf.prototype.delete=VF,Kf.prototype.get=GF,Kf.prototype.has=qF,Kf.prototype.set=XF,KF=Kf,YF=pF,QF=RF,JF=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eM=ZF=function(e,t){var n=e.__data__;return JF(t)?n["string"==typeof t?"string":"hash"]:n.map},tM=ZF,nM=ZF,rM=ZF,oM=function(e){var t=eM(this,e).delete(e);return this.size-=t?1:0,t},iM=function(e){return tM(this,e).get(e)},aM=function(e){return nM(this,e).has(e)},sM=function(e,t){var n=rM(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yf.prototype.clear=function(){this.size=0,this.__data__={hash:new KF,map:new(QF||YF),string:new KF}},Yf.prototype.delete=oM,Yf.prototype.get=iM,Yf.prototype.has=aM,Yf.prototype.set=sM,cM=pF,uM=RF,dM=lM=Yf,pM=pF,fM=gF,mM=hF,gM=bF,hM=function(e,t){var n,r=this.__data__;if(r instanceof cM){if(n=r.__data__,!uM||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new dM(n)}return r.set(e,t),this.size=r.size,this},Qf.prototype.clear=mF,Qf.prototype.delete=fM,Qf.prototype.get=mM,Qf.prototype.has=gM,Qf.prototype.set=hM,bM=Qf,yM=lM,vM=function(e){return this.__data__.has(e)},Jf.prototype.add=Jf.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Jf.prototype.has=vM,kM=_M=Jf,xM=function(e,t){for(var n=-1,r=null==e?0:e.length;++ng))return!1;if(a=i.get(e),s=i.get(t),a&&s)return a==t&&s==e;for(l=-1,c=!0,u=2&n?new kM:void 0,i.set(e,t),i.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},sL=YR,(lL={})["[object Float32Array]"]=lL["[object Float64Array]"]=lL["[object Int8Array]"]=lL["[object Int16Array]"]=lL["[object Int32Array]"]=lL["[object Uint8Array]"]=lL["[object Uint8ClampedArray]"]=lL["[object Uint16Array]"]=lL["[object Uint32Array]"]=!0,lL["[object Arguments]"]=lL["[object Array]"]=lL["[object ArrayBuffer]"]=lL["[object Boolean]"]=lL["[object DataView]"]=lL["[object Date]"]=lL["[object Error]"]=lL["[object Function]"]=lL["[object Map]"]=lL["[object Number]"]=lL["[object Object]"]=lL["[object RegExp]"]=lL["[object Set]"]=lL["[object String]"]=lL["[object WeakMap]"]=!1,cL=function(e){return sL(e)&&aL(e.length)&&!!lL[iL(e)]},uL=function(e){return function(t){return e(t)}},function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&AR.process,i=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(HQ){}}();e.exports=i}(dL={exports:{}},dL.exports),pL=cL,gL=(mL=(fL=dL.exports)&&fL.isTypedArray)?uL(mL):pL,bL=VM,yL=ZM,vL=RM,_L=tL,wL=rL,kL=hL=gL,xL=Object.prototype.hasOwnProperty,SL=function(e,t){var n,r=vL(e),o=!r&&yL(e),i=!r&&!o&&_L(e),a=!r&&!o&&!i&&kL(e),s=r||o||i||a,l=s?bL(e.length,String):[],c=l.length;for(n in e)!t&&!xL.call(e,n)||s&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||wL(n,c))||l.push(n);return l},CL=Object.prototype,EL=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||CL)},bJ=Object.keys,yJ=Object,DL=EL,OL=function(e){return bJ(yJ(e))},jL=Object.prototype.hasOwnProperty,$L=function(e){var t,n;if(!DL(e))return OL(e);for(n in t=[],Object(e))jL.call(e,n)&&"constructor"!=n&&t.push(n);return t},PL=_F,NL=oL,TL=SL,IL=$L,AL=function(e){return null!=e&&NL(e.length)&&!PL(e)},RL=function(e){return AL(e)?TL(e):IL(e)},FL=LM,ML=WM,LL=RL,zL=function(e){return FL(e,LL,ML)},BL=zL,HL=Object.prototype.hasOwnProperty,UL=function(e,t,n,r,o,i){var a,s,l,c,u,d,p,f,m,g,h,b=1&n,y=BL(e),v=y.length;if(v!=BL(t).length&&!b)return!1;for(a=v;a--;)if(s=y[a],!(b?s in t:HL.call(t,s)))return!1;if(l=i.get(e),c=i.get(t),l&&c)return l==t&&c==e;for(u=!0,i.set(e,t),i.set(t,e),d=b;++a .ant-menu-item-only-child,\n .ant-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .ant-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .ant-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .ant-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .ant-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .ant-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .ant-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),n.colorText,n.colorFill,n.colorText,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFillSecondary,n.colorFillSecondary,n.borderRadius,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),Vz=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];const $7=dv.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,i=e.setOpened,a=e.className,s=e.headerHeight,l=void 0===s?64:s,c=wi(e,Vz),u=Wz(l),d=u.styles;return yv.jsxs(j7,lm(lm({className:(0,u.cx)(d.container,a),onClick:function(){i(!o)}},c),{},{children:[yv.jsx(m7,{icon:o?pZ:tZ,size:"site"}),yv.jsxs(L8,{bodyStyle:{padding:0},className:d.drawer,closeIcon:void 0,headerStyle:{display:"none"},open:o,placement:"left",rootClassName:d.drawerRoot,width:"100vw",children:[yv.jsx(Y4,{className:d.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),yv.jsx("div",{className:d.fillRect})]})]}))}));Gz={exports:{}},um.resetWarningCache=cm,Gz.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:um,resetWarningCache:cm};return n.PropTypes=n,n}();const P7=t(qz=Gz.exports);Xz={exports:{}},function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Kz={exports:{}}),Yz=Kz.exports,function(e){function t(){function r(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function o(e,t,n,r){var o=Object.create((t&&t.prototype instanceof a?t:a).prototype),i=new g(r||[]);return w(o,"_invoke",{value:d(e,n,i)}),o}function i(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function a(){}function s(){}function l(){}function c(e){["next","throw","return"].forEach((function(t){r(e,t,(function(e){return this._invoke(t,e)}))}))}function u(e,t){function r(o,a,s,l){var c,u,d=i(e[o],e,a);if("throw"!==d.type)return(u=(c=d.arg).value)&&"object"==n(u)&&_.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,l)}));l(d.arg)}var o;w(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function d(e,t,n){var r="suspendedStart";return function(o,a){var s,l,c;if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){if((s=n.delegate)&&(l=p(s,n))){if(l===E)continue;return l}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);if(r="executing","normal"===(c=i(e,t,n)).type){if(r=n.done?"completed":"suspendedYield",c.arg===E)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function p(e,t){var n,r,o=t.method,a=e.iterator[o];return void 0===a?(t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,p(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),E):"throw"===(n=i(a,e.iterator,t.arg)).type?(t.method="throw",t.arg=n.arg,t.delegate=null,E):(r=n.arg)?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,E):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,E)}function f(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 m(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){var t,n,r;if(e){if(t=e[x])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(i=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(a=_.call(o,"catchLoc"),s=_.call(o,"finallyLoc"),a&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),m(n),E},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,m(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),E}},y}var n=Yz.default;e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xz),Jz=Qz=(0,Xz.exports)();try{regeneratorRuntime=Qz}catch(woe){"object"==typeof globalThis?globalThis.regeneratorRuntime=Qz:Function("r","regeneratorRuntime = r")(Qz)}const N7=t(Jz);"undefined"!=typeof globalThis?globalThis:void 0!=={}||("undefined"!=typeof global?global:"undefined"!=typeof self&&self),BQ=()=>{return e={770:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const o=r(n(418));let i=null,a=!1;class s{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n=55296&&o<=56319&&n+1=56320&&t<=57343&&(i=65536+(o-55296<<10)|t-56320,a=!0)}t+=i<=127?1:i<=2047?2:i<=65535?3:4,a&&n++}return t}constructor(e){const t=e.length,n=s._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);const i=r?new Uint32Array(n+1):null;r&&(i[n]=t);const a=new Uint8Array(n);let l=0;for(let s=0;s=55296&&n<=56319&&s+1=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?i[l+0]=s:c<=2047?(i[l+0]=s,i[l+1]=s):c<=65535?(i[l+0]=s,i[l+1]=s,i[l+2]=s):(i[l+0]=s,i[l+1]=s,i[l+2]=s,i[l+3]=s)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(1984&c)>>>6,a[l++]=128|(63&c)>>>0):c<=65535?(a[l++]=224|(61440&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0):(a[l++]=240|(1835008&c)>>>18,a[l++]=128|(258048&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!i)throw new Error("Must invoke loadWASM first.");this._onigBinding=i,this.content=e;const t=new s(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=i._omalloc(1e4)),l._sharedPtrInUse=!0,i.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(i)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!i)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let l=0,c=e.length;lWebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}var s;return d=new Promise(((e,t)=>{r=e,a=t})),function(e,t,n,r){(0,o.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{i=e,n()}))}(t,n,r,a),d},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){a=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document,function(e){function t(e,t,n){var r,o,i,a,s,l,c;for(r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&w)return w.decode(e.subarray(t,o));for(i="";t>10,56320|1023&c))):i+=String.fromCharCode((31&a)<<6|s)):i+=String.fromCharCode(a);return i}function n(e){y=e,I.HEAP8=new Int8Array(e),I.HEAP16=new Int16Array(e),I.HEAP32=new Int32Array(e),I.HEAPU8=v=new Uint8Array(e),I.HEAPU16=new Uint16Array(e),I.HEAPU32=_=new Uint32Array(e),I.HEAPF32=new Float32Array(e),I.HEAPF64=new Float64Array(e)}function r(e){I.onAbort&&I.onAbort(e),h(e="Aborted("+e+")"),b=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw u(t),t}function o(e){return e.startsWith(j)}function i(e){for(;e.length>0;)e.shift()(I)}function a(e){try{return m.grow(e-y.byteLength+65535>>>16),n(m.buffer),1}catch(t){}}function s(e,n){var r=$[e];0===n||10===n?((1===e?g:h)(t(r,0)),r.length=0):r.push(n)}function l(){function e(){P||(P=!0,I.calledRun=!0,b||(i(x),c(I),I.onRuntimeInitialized&&I.onRuntimeInitialized(),function(){if(I.postRun)for("function"==typeof I.postRun&&(I.postRun=[I.postRun]);I.postRun.length;)e=I.postRun.shift(),S.unshift(e);var e;i(S)}()))}C>0||(function(){if(I.preRun)for("function"==typeof I.preRun&&(I.preRun=[I.preRun]);I.preRun.length;)e=I.preRun.shift(),k.unshift(e);var e;i(k)}(),C>0||(I.setStatus?(I.setStatus("Running..."),setTimeout((function(){setTimeout((function(){I.setStatus("")}),1),e()}),1)):e()))}var c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I=void 0!==(e=e||{})?e:{};if(I.ready=new Promise((function(e,t){c=e,u=t})),p=Object.assign({},I),d=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e){e||r(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print),g=I.print||void 0,h=I.printErr||void 0,Object.assign(I,p),p=null,I.wasmBinary&&(f=I.wasmBinary),"object"!=typeof WebAssembly&&r("no native wasm support detected"),b=!1,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,k=[],x=[],S=[],C=0,E=null,j="data:application/octet-stream;base64,",o(D="onig.wasm")||(T=D,D=I.locateFile?I.locateFile(T,""):""+T),O="undefined"!=typeof dateNow?dateNow:()=>performance.now(),$=[null,[],[]],N={emscripten_get_now:O,emscripten_memcpy_big:function(e,t,n){v.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n,r,o=v.length,i=2147483648;if((e>>>=0)>i)return!1;for(n=1;n<=4;n*=2)if(r=o*(1+.2/n),r=Math.min(r,e+100663296),a(Math.min(i,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0;return!1},fd_write:function(e,t,n,r){var o,i,a,l,c;for(o=0,i=0;i>2],l=_[t+4>>2],t+=8,c=0;c>2]=o,0}},function(){function e(e){I.asm=e.exports,n((m=I.asm.memory).buffer),function(e){x.unshift(e)}(I.asm.__wasm_call_ctors),function(){if(C--,I.monitorRunDependencies&&I.monitorRunDependencies(C),0==C&&E){var e=E;E=null,e()}}()}function t(t){e(t.instance)}function i(e){return Promise.resolve().then((function(){return function(e){try{if(e==D&&f)return new Uint8Array(f);if(d)return d(e);throw"both async and sync fetching of the wasm failed"}catch(t){r(t)}}(D)})).then((function(e){return WebAssembly.instantiate(e,a)})).then((function(e){return e})).then(e,(function(e){h("failed to asynchronously prepare wasm: "+e),r(e)}))}var a={env:N,wasi_snapshot_preview1:N};if(C++,I.monitorRunDependencies&&I.monitorRunDependencies(C),I.instantiateWasm)try{return I.instantiateWasm(a,e)}catch(s){h("Module.instantiateWasm callback failed with error: "+s),u(s)}(f||"function"!=typeof WebAssembly.instantiateStreaming||o(D)||"function"!=typeof fetch?i(t):fetch(D,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,a).then(t,(function(e){return h("wasm streaming compile failed: "+e),h("falling back to ArrayBuffer instantiation"),i(t)}))}))).catch(u)}(),I.___wasm_call_ctors=function(){return(I.___wasm_call_ctors=I.asm.__wasm_call_ctors).apply(null,arguments)},I.___errno_location=function(){return(I.___errno_location=I.asm.__errno_location).apply(null,arguments)},I._omalloc=function(){return(I._omalloc=I.asm.omalloc).apply(null,arguments)},I._ofree=function(){return(I._ofree=I.asm.ofree).apply(null,arguments)},I._getLastOnigError=function(){return(I._getLastOnigError=I.asm.getLastOnigError).apply(null,arguments)},I._createOnigScanner=function(){return(I._createOnigScanner=I.asm.createOnigScanner).apply(null,arguments)},I._freeOnigScanner=function(){return(I._freeOnigScanner=I.asm.freeOnigScanner).apply(null,arguments)},I._findNextOnigScannerMatch=function(){return(I._findNextOnigScannerMatch=I.asm.findNextOnigScannerMatch).apply(null,arguments)},I._findNextOnigScannerMatchDbg=function(){return(I._findNextOnigScannerMatchDbg=I.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},I.stackSave=function(){return(I.stackSave=I.asm.stackSave).apply(null,arguments)},I.stackRestore=function(){return(I.stackRestore=I.asm.stackRestore).apply(null,arguments)},I.stackAlloc=function(){return(I.stackAlloc=I.asm.stackAlloc).apply(null,arguments)},I.dynCall_jiji=function(){return(I.dynCall_jiji=I.asm.dynCall_jiji).apply(null,arguments)},I.UTF8ToString=function(e,n){return e?t(v,e,n):""},E=function e(){P||l(),P||(E=e)},I.preInit)for("function"==typeof I.preInit&&(I.preInit=[I.preInit]);I.preInit.length>0;)I.preInit.pop()();return l(),e.ready});e.exports=t}},t={},function n(r){var o,i=t[r];return void 0!==i?i.exports:(o=t[r]={exports:{}},e[r].call(o.exports,o,o.exports,n),o.exports)}(770);var e,t},(Zz={exports:{}}).exports=BQ(),eB=Zz.exports,(tB={exports:{}}).exports=(HQ={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!1},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){n.getLanguageId(e),n.getTokenType(e),n.getFontStyle(e),n.getForeground(e),n.getBackground(e)},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,o,i,a,s){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,d=n.getFontStyle(e),p=n.getForeground(e),f=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==i&&(d=i),0!==a&&(p=a),0!==s&&(f=s),(l<<0|c<<8|u<<10|d<<11|p<<15|f<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class i{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new o(t,n)})),this._defaultAttributes=new o(e,8),this._embeddedLanguagesMatcher=new a(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(i.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=i,i._NULL_SCOPE_METADATA=new o(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class a{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{function r(e,t,n,r,i){const a=c.createMatchers(t,o),s=d.RuleFactory.getCompiledRuleId(n,r,i.repository);for(const o of a)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:i,priority:o.priority})}function o(e,t){if(t.length{for(let r=n;rn&&e.substr(0,n)===t&&"."===e[n]}function a(e,t){return(e=f.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=n(350),l=n(36),c=n(736),u=n(44),d=n(792),p=n(583),f=n(878),m=n(996),g=n(47);t.createGrammar=function(e,t,n,r,o,i,a,s){return new h(e,t,n,r,o,i,a,s)};class h{constructor(e,t,n,r,i,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new m.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=a(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const e=c.createMatchers(a,o);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:i[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const o=n.injections;if(o)for(let t in o)r(e,t,o[t],this,n);const i=this._grammarRepository.injections(t);i&&i.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&r(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0))for(const e of this._injections);return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(d.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[d.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=a(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let o;if(-1===this._rootId&&(this._rootId=d.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=l.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),i=this.getRule(this._rootId).getName(null,null);let a;a=i?b.createRootAndLookUpScopeName(i,r,this):b.createRoot("unknown",r),t=new y(null,this._rootId,-1,-1,!1,null,a,a)}const i=this.createOnigString(e+="\n"),a=i.content.length,s=new v(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=g._tokenizeString(this,i,o,0,t,s,!0,r);return u.disposeOnigString(i),{lineLength:a,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}t.Grammar=h;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new p.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new p.ScopeStack(null,e),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(t,r,i);return new b(null,o,a)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,i=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,i=n.backgroundId),l.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,o,i)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const o of n)r=b._pushAttributed(r,o,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),o=e.scopePath.push(t),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(e.tokenAttributes,r,i);return new b(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,n,r,o,i,a,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=s,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,i,a){return new y(this,e,t,n,r,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):c.createMatchers(e,o).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>c.createMatchers(e,o).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class v{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=s.DebugFlags.InDebugMode?t:null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e.tokenAttributes,o=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(r=l.EncodedTokenAttributes.set(r,0,l.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(r=l.EncodedTokenAttributes.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const t=e.getScopeNames();for(let e=0;e0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r{function r(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof c?i({baseGrammar:s,selfGrammar:a},r):o(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const o of l)r.add(new c(o))}function o(e,t,n){t.repository&&t.repository[e]&&a([t.repository[e]],t,n)}function i(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&a(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&a(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function a(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?l.mergeObjects({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&a(r.patterns,{...t,repository:e},n);const d=r.include;if(!d)continue;const p=s(d);switch(p.kind){case 0:i({...t,selfGrammar:t.baseGrammar},n);break;case 1:i(t,n);break;case 2:o(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const a={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===p.kind?o(p.ruleName,a,n):i(a,n)}else n.add(4===p.kind?new u(p.scopeName,p.ruleName):new c(p.scopeName))}}}function s(e){if("$base"===e)return new p;if("$self"===e)return new f;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new m(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new h(n,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const l=n(878);class c{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=c;class u{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=u;class d{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}t.ExternalReferenceCollector=d,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new c(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new d;for(const n of e)r(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof c){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class f{constructor(){this.kind=1}}t.SelfReference=f;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class h{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}t.TopLevelRepositoryReference=h,t.parseInclude=s},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{function r(e,t,n,r,a,c,f,m){function g(){const i=function(e,t,n,r,i,a){const s=function(e,t,n,r,i,a){const s=i.getRule(e),{ruleScanner:c,findOptions:u}=o(s,e,i.endRule,n,r===a);l.DebugFlags.InDebugMode&&d.performanceNow();const p=c.findNextMatchSync(t,r,u);return l.DebugFlags.InDebugMode&&d.performanceNow(),p?{captureIndices:p.captureIndices,matchedRuleId:p.ruleId}:null}(e,t,n,r,i,a),c=e.getInjections();if(0===c.length)return s;const u=function(e,t,n,r,i,a,s){let l,c=Number.MAX_VALUE,u=null,d=0;const p=a.contentNameScopesList.getScopeNames();for(let f=0,m=e.length;f=c)&&(c=y,u=b.captureIndices,l=b.ruleId,d=a.priority,c===i))break}return u?{priorityMatch:-1===d,captureIndices:u,matchedRuleId:l}:null}(c,e,t,n,r,i,a);if(!u)return s;if(!s)return u;const p=s.captureIndices[0].start,f=u.captureIndices[0].start;return f0)&&p[0].end>r;if(f===u.endRuleId){const o=a.getRule(e);c.produce(a,p[0].start),a=a.withContentNameScopesList(a.nameScopesList),s(e,t,n,a,c,o.endCaptures,p),c.produce(a,p[0].end);const i=a;if(a=a.parent,y=i.getAnchorPos(),!m&&i.getEnterPos()===r)return c.produce(a=i,h),void(b=!0)}else{const o=e.getRule(f);c.produce(a,p[0].start);const i=a,l=o.getName(t.content,p),d=a.contentNameScopesList.pushAttributed(l,e);if(a=a.push(f,r,y,p[0].end===h,null,d,d),o instanceof u.BeginEndRule){const r=o;s(e,t,n,a,c,r.beginCaptures,p),c.produce(a,p[0].end),y=p[0].end;const l=r.getContentName(t.content,p),u=d.pushAttributed(l,e);if(a=a.withContentNameScopesList(u),r.endHasBackReferences&&(a=a.withEndRule(r.getEndWithResolvedBackReferences(t.content,p))),!m&&i.hasSameRuleAs(a))return a=a.pop(),c.produce(a,h),void(b=!0)}else if(o instanceof u.BeginWhileRule){const r=o;s(e,t,n,a,c,r.beginCaptures,p),c.produce(a,p[0].end),y=p[0].end;const l=r.getContentName(t.content,p),u=d.pushAttributed(l,e);if(a=a.withContentNameScopesList(u),r.whileHasBackReferences&&(a=a.withEndRule(r.getWhileWithResolvedBackReferences(t.content,p))),!m&&i.hasSameRuleAs(a))return a=a.pop(),c.produce(a,h),void(b=!0)}else if(s(e,t,n,a,c,o.captures,p),c.produce(a,p[0].end),a=a.pop(),!m)return a=a.safePop(),c.produce(a,h),void(b=!0)}p[0].end>r&&(r=p[0].end,n=!1)}const h=t.content.length;let b=!1,y=-1;if(f){const o=function(e,t,n,r,o,a){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let i=o;i;i=i.pop()){const t=i.getRule(e);t instanceof u.BeginWhileRule&&c.push({rule:t,stack:i})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:c,findOptions:p}=i(d.rule,e,d.stack.endRule,n,r===l),f=c.findNextMatchSync(t,r,p);if(!f){o=d.stack.pop();break}if(f.ruleId!==u.whileRuleId){o=d.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(a.produce(d.stack,f.captureIndices[0].start),s(e,t,n,d.stack,a,d.rule.whileCaptures,f.captureIndices),a.produce(d.stack,f.captureIndices[0].end),l=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}(e,t,n,r,a,c);a=o.stack,r=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const v=Date.now();for(;!b;){if(0!==m&&Date.now()-v>m)return new p(a,!0);g()}return new p(a,!1)}function o(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:a(r,o)}:{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function i(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:a(r,o)}:{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function a(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function s(e,t,n,o,i,a,s){if(0===a.length)return;const l=t.content,u=Math.min(a.length,s.length),d=[],p=s[0].end;for(let m=0;mp)break;for(;d.length>0&&d[d.length-1].endPos<=u.start;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?i.produceFromScopes(d[d.length-1].scopes,u.start):i.produce(o,u.start),t.retokenizeCapturedWithRuleId){const a=t.getName(l,s),d=o.contentNameScopesList.pushAttributed(a,e),p=t.getContentName(l,s),f=d.pushAttributed(p,e),m=o.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,f),g=e.createOnigString(l.substring(0,u.end));r(e,g,n&&0===u.start,u.start,m,i,!1,0),c.disposeOnigString(g);continue}const g=t.getName(l,s);if(null!==g){const t=(d.length>0?d[d.length-1].scopes:o.contentNameScopesList).pushAttributed(g,e);d.push(new f(t,u.end))}}for(;d.length>0;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const l=n(350),c=n(44),u=n(792),d=n(878);class p{constructor(e,t){this.stack=e,this.stoppedEarly=t}}t._tokenizeString=r;class f{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=f},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,o=e.source,i=e.pos,a=e.len,s=e.line,l=e.char;for(;;){if(i>=a)return!1;if(r=o.charCodeAt(i),32!==r&&9!==r&&13!==r){if(10!==r)break;i++,s++,l=0}else i++,l++}if(t.offset=i,t.line=s,t.char=l,34===r){for(t.type=1,i++,l++;;){if(i>=a)return!1;if(r=o.charCodeAt(i),i++,l++,92!==r){if(34===r)break}else i++,l++}t.value=o.substring(t.offset+1,i-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,i++,l++;else if(123===r)t.type=3,i++,l++;else if(93===r)t.type=4,i++,l++;else if(125===r)t.type=5,i++,l++;else if(58===r)t.type=6,i++,l++;else if(44===r)t.type=7,i++,l++;else if(110===r){if(t.type=8,i++,l++,r=o.charCodeAt(i),117!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;i++,l++}else if(116===r){if(t.type=9,i++,l++,r=o.charCodeAt(i),114!==r)return!1;if(i++,l++,r=o.charCodeAt(i),117!==r)return!1;if(i++,l++,r=o.charCodeAt(i),101!==r)return!1;i++,l++}else if(102===r){if(t.type=10,i++,l++,r=o.charCodeAt(i),97!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;if(i++,l++,r=o.charCodeAt(i),115!==r)return!1;if(i++,l++,r=o.charCodeAt(i),101!==r)return!1;i++,l++}else for(t.type=11;;){if(i>=a)return!1;if(r=o.charCodeAt(i),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;i++,l++}return t.len=i-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=i,e.line=s,e.char=l,!0}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,a){function s(){m.push(p),g.push(f)}function l(){p=m.pop(),f=g.pop()}function c(e){n(u,e)}let u=new o(e),d=new i,p=0,f=null,m=[],g=[];for(;r(u,d);){if(0===p){if(null!==f&&c("too many constructs in root"),3===d.type){f={},a&&(f.$vscodeTextmateLocation=d.toLocation(t)),s(),p=1;continue}if(2===d.type){f=[],s(),p=4;continue}c("unexpected token in root")}if(2===p){if(5===d.type){l();continue}if(7===d.type){p=3;continue}c("expected , or }")}if(1===p||3===p){if(1===p&&5===d.type){l();continue}if(1===d.type){let e=d.value;if(r(u,d)&&6===d.type||c("expected colon"),r(u,d)||c("expected value"),p=2,1===d.type){f[e]=d.value;continue}if(8===d.type){f[e]=null;continue}if(9===d.type){f[e]=!0;continue}if(10===d.type){f[e]=!1;continue}if(11===d.type){f[e]=parseFloat(d.value);continue}if(2===d.type){let t=[];f[e]=t,s(),p=4,f=t;continue}if(3===d.type){let n={};a&&(n.$vscodeTextmateLocation=d.toLocation(t)),f[e]=n,s(),p=1,f=n;continue}}c("unexpected token in dict")}if(5===p){if(4===d.type){l();continue}if(7===d.type){p=6;continue}c("expected , or ]")}if(4===p||6===p){if(4===p&&4===d.type){l();continue}if(p=5,1===d.type){f.push(d.value);continue}if(8===d.type){f.push(null);continue}if(9===d.type){f.push(!0);continue}if(10===d.type){f.push(!1);continue}if(11===d.type){f.push(parseFloat(d.value));continue}if(2===d.type){let e=[];f.push(e),s(),p=4,f=e;continue}if(3===d.type){let e={};a&&(e.$vscodeTextmateLocation=d.toLocation(t)),f.push(e),s(),p=1,f=e;continue}c("unexpected token in array")}c("unknown state")}return 0!==g.length&&c("unclosed constructs"),f};class o{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class i{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const i=n(391),a=n(50),s=n(652),l=n(583),c=n(965);o(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new s.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new i.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const i=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;i.Q.length>0;)await Promise.all(i.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),i.processQueue();return this._grammarForScopeName(e,t,n,r,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},t.INITIAL=i.StateStack.NULL,t.parseRawGrammar=a.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){function r(){if("-"===s){s=a.next();const e=r();return t=>!!e&&!e(t)}if("("===s){s=a.next();const e=function(){const e=[];let t=o();for(;t&&(e.push(t),"|"===s||","===s);){do{s=a.next()}while("|"===s||","===s);t=o()}return t=>e.some((e=>e(t)))}();return")"===s&&(s=a.next()),e}if(n(s)){const e=[];do{e.push(s),s=a.next()}while(n(s));return n=>t(e,n)}return null}function o(){const e=[];let t=r();for(;t;)e.push(t),t=r();return t=>e.every((e=>e(t)))}const i=[],a=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let s=a.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1}s=a.next()}let t=o();if(i.push({matcher:t,priority:e}),","!==s)break;s=a.next()}return i}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),i=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o.DebugFlags.InDebugMode?i.parseJSON(a,t,!0):JSON.parse(a)):(n=e,o.DebugFlags.InDebugMode?r.parseWithLocation(n,t,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,a}},69:(e,t)=>{function n(e,t,n){function r(t){if(null===n)x+=t;else for(;t>0;)10===e.charCodeAt(x)?(x++,S++,C=0):(x++,C++),t--}function o(e){null===n?x=e:r(e-x)}function i(){for(;x");u()}function f(){return 1===E||2!==E?d("unexpected "):void u()}function m(e){if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function g(e){if(isNaN(e))return d("cannot parse float");if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function h(e){if(isNaN(e))return d("cannot parse integer");if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function b(e){if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function y(e){if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function v(e){if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function _(){let e=l(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function w(e){if(e.isClosed)return"";let t=l(""),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}const k=e.length;let x=0,S=1,C=0;k>0&&65279===e.charCodeAt(0)&&(x=1);let E=0,D=null,O=[],j=[],$=null;const P=function(){if(null===$)return d("missing ");let e={};null!==n&&(e[n]={filename:t,line:S,char:C}),D[$]=e,$=null,c(1,e)},N=function(){if(null===$)return d("missing ");let e=[];D[$]=e,$=null,c(2,e)},T=function(){let e={};null!==n&&(e[n]={filename:t,line:S,char:C}),D.push(e),c(1,e)},I=function(){let e=[];D.push(e),c(2,e)};for(;x=k));){const o=e.charCodeAt(x);if(r(1),60!==o)return d("expected <");if(x>=k)return d("unexpected end of input");const l=e.charCodeAt(x);if(63===l){r(1),s("?>");continue}if(33===l){if(r(1),a("--")){s("--\x3e");continue}s(">");continue}if(47===l){if(r(1),i(),a("plist")){s(">");continue}if(a("dict")){s(">"),p();continue}if(a("array")){s(">"),f();continue}return d("unexpected closed tag")}let u=_();switch(u.name){case"dict":1===E?P():2===E?T():(D={},null!==n&&(D[n]={filename:t,line:S,char:C}),c(1,D)),u.isClosed&&p();continue;case"array":1===E?N():2===E?I():(D=[],c(2,D)),u.isClosed&&f();continue;case"key":A=w(u),1!==E?d("unexpected "):null!==$?d("too many "):$=A;continue;case"string":m(w(u));continue;case"real":g(parseFloat(w(u)));continue;case"integer":h(parseInt(w(u),10));continue;case"date":b(new Date(w(u)));continue;case"data":y(w(u));continue;case"true":w(u),v(!0);continue;case"false":w(u),v(!1);continue}if(!/^plist/.test(u.name))return d("unexpected opened tag "+u.name)}var A;return D}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,o,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,r.createGrammar(e,a,t,n,o,i,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),o=n(965),i=/\\(\d+)/,a=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class s{constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=s;class l extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends s{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new m(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class d extends s{constructor(e,t,n,r,o,i,a,s,l,c){super(e,t,n,r),this._begin=new m(o,this.id),this.beginCaptures=i,this._end=new m(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&this._cachedCompiledPatterns.setSource(this.applyEndPatternLast?this._cachedCompiledPatterns.length()-1:0,t),this._cachedCompiledPatterns}}t.BeginEndRule=d;class p extends s{constructor(e,n,r,o,i,a,s,l,c){super(e,n,r,o),this._begin=new m(i,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new m(s,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class f{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new l(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((o=>{if(e.id=o,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,f._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let o=e.patterns;return void 0===o&&e.include&&(o=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,f._compilePatterns(o,t,n))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,f._compileCaptures(e.whileCaptures||e.captures,t,n),f._compilePatterns(e.patterns,t,n)):new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,f._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,f._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let o=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>o&&(o=e)}for(let e=0;e<=o;e++)r[e]=null;for(const i in e){if("$vscodeTextmateLocation"===i)continue;const o=parseInt(i,10);let a=0;e[i].patterns&&(a=f.getCompiledRuleId(e[i],t,n)),r[o]=f.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,a)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let i=0,a=e.length;ie.substring(t.start,t.end)));return a.lastIndex=0,this.source.replace(a,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],i=[],a=[],s=[];for(e=0,t=this.source.length;ee.source));this._cached=new h(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new h(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class h{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t{function r(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}function o(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,a=t.length;o1&&(d=i.slice(0,i.length-1),d.reverse()),n[r++]=new c(a,d,o,s,l,u)}}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const i=n(878);class a{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new i.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(o(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=i.strcmp(e.scope,t.scope);return 0!==n?n:(n=i.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let s=new u(t),c=new l(n,s.getId(r),s.getId(o)),f=new p(new d(0,null,-1,0,0),[]);for(let i=0,a=e.length;ifunction(e,t){if(null===t)return!0;let n=0,o=t[n];for(;e;){if(r(e.scopeName,o)){if(n++,n===t.length)return!0;o=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return t?new l(t.fontStyle,t.foreground,t.background):null}}t.Theme=a;class s{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;ne||(this.scopeDepth=e),-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=d;class p{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let o=null===n?0:n.length,i=null===r?0:r.length;if(o===i)for(let e=0;e{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;rt?1:0}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let o=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;t.RegexSource=class{static hasCaptures(e){return null!==e&&(o.lastIndex=0,o.test(e))}static replaceCaptures(e,t,n){return e.replace(o,((e,r,o,i)=>{let a=n[parseInt(r||o,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=r,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let o=0;o(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(rB||{});class I7{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){I7.getLanguageId(e),I7.getTokenType(e),I7.getFontStyle(e),I7.getForeground(e),I7.getBackground(e)}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,o,i){let a=I7.getLanguageId(e),s=I7.getTokenType(e),l=I7.getFontStyle(e),c=I7.getForeground(e),u=I7.getBackground(e);return 0!==t&&(a=t),0!==n&&(s=8===n?0:n),-1!==r&&(l=r),0!==o&&(c=o),0!==i&&(u=i),(a<<0|s<<8|l<<11|(I7.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}(WQ=oB||(oB={}))[WQ.lineFeed=10]="lineFeed",WQ[WQ.carriageReturn=13]="carriageReturn",WQ[WQ.space=32]="space",WQ[WQ._0=48]="_0",WQ[WQ._1=49]="_1",WQ[WQ._2=50]="_2",WQ[WQ._3=51]="_3",WQ[WQ._4=52]="_4",WQ[WQ._5=53]="_5",WQ[WQ._6=54]="_6",WQ[WQ._7=55]="_7",WQ[WQ._8=56]="_8",WQ[WQ._9=57]="_9",WQ[WQ.a=97]="a",WQ[WQ.b=98]="b",WQ[WQ.c=99]="c",WQ[WQ.d=100]="d",WQ[WQ.e=101]="e",WQ[WQ.f=102]="f",WQ[WQ.g=103]="g",WQ[WQ.h=104]="h",WQ[WQ.i=105]="i",WQ[WQ.j=106]="j",WQ[WQ.k=107]="k",WQ[WQ.l=108]="l",WQ[WQ.m=109]="m",WQ[WQ.n=110]="n",WQ[WQ.o=111]="o",WQ[WQ.p=112]="p",WQ[WQ.q=113]="q",WQ[WQ.r=114]="r",WQ[WQ.s=115]="s",WQ[WQ.t=116]="t",WQ[WQ.u=117]="u",WQ[WQ.v=118]="v",WQ[WQ.w=119]="w",WQ[WQ.x=120]="x",WQ[WQ.y=121]="y",WQ[WQ.z=122]="z",WQ[WQ.A=65]="A",WQ[WQ.B=66]="B",WQ[WQ.C=67]="C",WQ[WQ.D=68]="D",WQ[WQ.E=69]="E",WQ[WQ.F=70]="F",WQ[WQ.G=71]="G",WQ[WQ.H=72]="H",WQ[WQ.I=73]="I",WQ[WQ.J=74]="J",WQ[WQ.K=75]="K",WQ[WQ.L=76]="L",WQ[WQ.M=77]="M",WQ[WQ.N=78]="N",WQ[WQ.O=79]="O",WQ[WQ.P=80]="P",WQ[WQ.Q=81]="Q",WQ[WQ.R=82]="R",WQ[WQ.S=83]="S",WQ[WQ.T=84]="T",WQ[WQ.U=85]="U",WQ[WQ.V=86]="V",WQ[WQ.W=87]="W",WQ[WQ.X=88]="X",WQ[WQ.Y=89]="Y",WQ[WQ.Z=90]="Z",WQ[WQ.asterisk=42]="asterisk",WQ[WQ.backslash=92]="backslash",WQ[WQ.closeBrace=125]="closeBrace",WQ[WQ.closeBracket=93]="closeBracket",WQ[WQ.colon=58]="colon",WQ[WQ.comma=44]="comma",WQ[WQ.dot=46]="dot",WQ[WQ.doubleQuote=34]="doubleQuote",WQ[WQ.minus=45]="minus",WQ[WQ.openBrace=123]="openBrace",WQ[WQ.openBracket=91]="openBracket",WQ[WQ.plus=43]="plus",WQ[WQ.slash=47]="slash",WQ[WQ.formFeed=12]="formFeed",WQ[WQ.tab=9]="tab",(iB||(iB={})).DEFAULT={allowTrailingComma:!1},(VQ=aB||(aB={}))[VQ.None=0]="None",VQ[VQ.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",VQ[VQ.UnexpectedEndOfString=2]="UnexpectedEndOfString",VQ[VQ.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",VQ[VQ.InvalidUnicode=4]="InvalidUnicode",VQ[VQ.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",VQ[VQ.InvalidCharacter=6]="InvalidCharacter",(GQ=sB||(sB={}))[GQ.OpenBraceToken=1]="OpenBraceToken",GQ[GQ.CloseBraceToken=2]="CloseBraceToken",GQ[GQ.OpenBracketToken=3]="OpenBracketToken",GQ[GQ.CloseBracketToken=4]="CloseBracketToken",GQ[GQ.CommaToken=5]="CommaToken",GQ[GQ.ColonToken=6]="ColonToken",GQ[GQ.NullKeyword=7]="NullKeyword",GQ[GQ.TrueKeyword=8]="TrueKeyword",GQ[GQ.FalseKeyword=9]="FalseKeyword",GQ[GQ.StringLiteral=10]="StringLiteral",GQ[GQ.NumericLiteral=11]="NumericLiteral",GQ[GQ.LineCommentTrivia=12]="LineCommentTrivia",GQ[GQ.BlockCommentTrivia=13]="BlockCommentTrivia",GQ[GQ.LineBreakTrivia=14]="LineBreakTrivia",GQ[GQ.Trivia=15]="Trivia",GQ[GQ.Unknown=16]="Unknown",GQ[GQ.EOF=17]="EOF";const A7=function(e,t=[],n=iB.DEFAULT){function r(e){Array.isArray(i)?i.push(e):null!==o&&(i[o]=e)}let o=null,i=[];const a=[];return function(e,t,n=iB.DEFAULT){function r(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>d.slice())):()=>!0}function i(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function a(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>d.slice())):()=>!0}function s(){for(;;){const e=u.scan();switch(u.getTokenError()){case 4:l(14);break;case 5:l(15);break;case 3:l(13);break;case 1:w||l(11);break;case 2:l(12);break;case 6:l(16)}switch(e){case 12:case 13:w?l(10):v();break;case 16:l(1);break;case 15:case 14:break;default:return e}}}function l(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=u.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){s();break}if(-1!==n.indexOf(e))break;e=s()}}}function c(e){const t=u.getTokenValue();return e?b(t):(f(t),d.push(t)),s(),!0}const u=function(e,t=!1){function n(t,n){let r=0,o=0;for(;r=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}a++,r++}return r=i)return l=i,c=17;let t=e.charCodeAt(a);if(gm(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(gm(t));return c=15}if(hm(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),u++,p=a,c=14;switch(t){case 123:return a++,c=1;case 125:return a++,c=2;case 91:return a++,c=3;case 93:return a++,c=4;case 58:return a++,c=6;case 44:return a++,c=5;case 34:return a++,s=function(){let t="",r=a;for(;;){if(a>=i){t+=e.substring(r,a),m=2;break}const o=e.charCodeAt(a);if(34===o){t+=e.substring(r,a),a++;break}if(92!==o){if(o>=0&&o<=31){if(hm(o)){t+=e.substring(r,a),m=2;break}m=6}a++}else{if(t+=e.substring(r,a),a++,a>=i){m=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=n(4,!0);e>=0?t+=String.fromCharCode(e):m=4;break;default:m=5}r=a}}return t}(),c=10;case 47:const r=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;aa,scan:t?function(){let e;do{e=r()}while(e>=12&&e<=15);return e}:r,getToken:()=>c,getTokenValue:()=>s,getTokenOffset:()=>l,getTokenLength:()=>a-l,getTokenStartLine:()=>d,getTokenStartCharacter:()=>l-f,getTokenError:()=>m}}(e,!1),d=[],p=o(t.onObjectBegin),f=a(t.onObjectProperty),m=r(t.onObjectEnd),g=o(t.onArrayBegin),h=r(t.onArrayEnd),b=a(t.onLiteralValue),y=i(t.onSeparator),v=r(t.onComment),_=i(t.onError),w=n&&n.disallowComments,k=n&&n.allowTrailingComma;s(),17===u.getToken()?n.allowEmptyContent||l(4,[],[]):function e(){switch(u.getToken()){case 3:return function(){g(),s();let t=!0,n=!1;for(;4!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(n||l(4,[],[]),y(","),s(),4===u.getToken()&&k)break}else n&&l(6,[],[]);t?(d.push(0),t=!1):d[d.length-1]++,e()||l(4,[],[4,5]),n=!0}return h(),t||d.pop(),4!==u.getToken()?l(8,[4],[]):s(),!0}();case 1:return function(){p(),s();let t=!1;for(;2!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(t||l(4,[],[]),y(","),s(),2===u.getToken()&&k)break}else t&&l(6,[],[]);(10!==u.getToken()?(l(3,[],[2,5]),!1):(c(!1),6===u.getToken()?(y(":"),s(),e()||l(4,[],[2,5])):l(5,[],[2,5]),d.pop(),!0))||l(4,[],[2,5]),t=!0}return m(),2!==u.getToken()?l(7,[2],[]):s(),!0}();case 10:return c(!0);default:return function(){switch(u.getToken()){case 11:const e=u.getTokenValue();let t=Number(e);isNaN(t)&&(l(2),t=0),b(t);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return s(),!0}()}}()?17!==u.getToken()&&l(9,[],[]):l(4,[],[])}(e,{onObjectBegin:()=>{const e={};r(e),a.push(i),i=e,o=null},onObjectProperty:e=>{o=e},onObjectEnd:()=>{i=a.pop()},onArrayBegin:()=>{const e=[];r(e),a.push(i),i=e,o=null},onArrayEnd:()=>{i=a.pop()},onLiteralValue:r,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]};(qQ=lB||(lB={}))[qQ.InvalidSymbol=1]="InvalidSymbol",qQ[qQ.InvalidNumberFormat=2]="InvalidNumberFormat",qQ[qQ.PropertyNameExpected=3]="PropertyNameExpected",qQ[qQ.ValueExpected=4]="ValueExpected",qQ[qQ.ColonExpected=5]="ColonExpected",qQ[qQ.CommaExpected=6]="CommaExpected",qQ[qQ.CloseBraceExpected=7]="CloseBraceExpected",qQ[qQ.CloseBracketExpected=8]="CloseBracketExpected",qQ[qQ.EndOfFileExpected=9]="EndOfFileExpected",qQ[qQ.InvalidCommentToken=10]="InvalidCommentToken",qQ[qQ.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",qQ[qQ.UnexpectedEndOfString=12]="UnexpectedEndOfString",qQ[qQ.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",qQ[qQ.InvalidUnicode=14]="InvalidUnicode",qQ[qQ.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",qQ[qQ.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process;let R7="";const F7="dist/";let M7=null;const L7={light:"#333333",dark:"#bbbbbb"},z7={light:"#fffffe",dark:"#1e1e1e"};class B7{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await vm(e)}(T7.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}cB=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],uB={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"},dB={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};const H7={pre:({className:e,style:t,children:n})=>`
${n}
`,code:({children:e})=>`${e}`,line:({className:e,children:t})=>`${t}`,token:({style:e,children:t})=>`${t}`},U7={"&":"&","<":"<",">":">",'"':""","'":"'"};class W7 extends nB.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=T7.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await _m(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=wm(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){var t;const n={embeddedLanguages:null==(t=e.embeddedLangs)?void 0:t.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=r,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=r}))}async loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.values());for(const n of t)this._resolver.addLanguage(n);for(const n of t)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}!function(e){R7=e.endsWith("/")?e:e+"/"}("https://cdn.jsdelivr.net/npm/shiki-es@0.14.0/dist/assets/"),pB={exports:{}},fB={},mB={exports:{}},gB={},hB=dv,bB="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},yB=hB.useState,vB=hB.useEffect,_B=hB.useLayoutEffect,wB=hB.useDebugValue,kB="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=yB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return _B((function(){o.value=n,o.getSnapshot=t,Tm(o)&&i({inst:o})}),[e,n,t]),vB((function(){return Tm(o)&&i({inst:o}),e((function(){Tm(o)&&i({inst:o})}))}),[e]),wB(n),n},gB.useSyncExternalStore=void 0!==hB.useSyncExternalStore?hB.useSyncExternalStore:kB,mB.exports=gB,xB=dv,SB="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},CB=mB.exports.useSyncExternalStore,EB=xB.useRef,DB=xB.useEffect,OB=xB.useMemo,jB=xB.useDebugValue,fB.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i,a,s=EB(null);return null===s.current?s.current=i={hasValue:!1,value:null}:i=s.current,s=OB((function(){function e(e){var t,n;return l?(t=s,SB(a,e)?t:(n=r(e),void 0!==o&&o(t,n)?t:(a=e,s=n))):(l=!0,a=e,e=r(e),s=void 0!==o&&i.hasValue&&o(t=i.value,e)?t:e)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]),a=CB(e,s[0],s[1]),DB((function(){i.hasValue=!0,i.value=a}),[a]),jB(a),a},pB.exports=fB;const V7=t(pB.exports),G7=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}};return t=e(r,o,i),i},{useSyncExternalStoreWithSelector:q7}=V7,X7=(e,t)=>{const n=(e=>e?G7(e):G7)(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=q7(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return dv.useDebugValue(r),r}(n,e,r);return Object.assign(r,n),r};$B={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},PB=function(e){var t=e?"dark":"light",n=$B.gray[t][11],r=$B.gray[t][7],o=e?$B.red[t][9]:$B.volcano[t][9],i=e?$B.gold[t][9]:$B.orange[t][9],a=e?$B.lime[t][9]:$B.green[t][9],s=e?$B.blue[t][9]:$B.geekblue[t][9];return{colors:{"editor.foreground":n},name:t,semanticHighlighting:!0,semanticTokenColors:{"annotation:dart":{foreground:a},enumMember:{foreground:s},macro:{foreground:a},"parameter.label:dart":{foreground:r},"property:dart":{foreground:a},tomlArrayKey:{foreground:o},"variable.constant":{foreground:a},"variable.defaultLibrary":{foreground:o},"variable:dart":{foreground:a}},tokenColors:[{scope:"meta.embedded",settings:{foreground:r}},{name:"unison punctuation",scope:"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison",settings:{foreground:n}},{name:"haskell variable generic-type",scope:"variable.other.generic-type.haskell",settings:{foreground:s}},{name:"haskell storage type",scope:"storage.type.haskell",settings:{foreground:a}},{name:"support.variable.magic.python",scope:"support.variable.magic.python",settings:{foreground:n}},{name:"punctuation.separator.parameters.python",scope:"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python",settings:{foreground:r}},{name:"variable.parameter.function.language.special.self.python",scope:"variable.parameter.function.language.special.self.python",settings:{foreground:o}},{name:"variable.parameter.function.language.special.cls.python",scope:"variable.parameter.function.language.special.cls.python",settings:{foreground:o}},{name:"storage.modifier.lifetime.rust",scope:"storage.modifier.lifetime.rust",settings:{foreground:r}},{name:"support.function.std.rust",scope:"support.function.std.rust",settings:{foreground:i}},{name:"entity.name.lifetime.rust",scope:"entity.name.lifetime.rust",settings:{foreground:o}},{name:"variable.language.rust",scope:"variable.language.rust",settings:{foreground:n}},{name:"support.constant.edge",scope:"support.constant.edge",settings:{foreground:s}},{name:"regexp constant character-class",scope:"constant.other.character-class.regexp",settings:{foreground:n}},{name:"keyword.operator",scope:["keyword.operator.word"],settings:{foreground:s}},{name:"regexp operator.quantifier",scope:"keyword.operator.quantifier.regexp",settings:{foreground:a}},{name:"Text",scope:"variable.parameter.function",settings:{foreground:r}},{name:"Comment Markup Link",scope:"comment markup.link",settings:{foreground:r}},{name:"markup diff",scope:"markup.changed.diff",settings:{foreground:o}},{name:"diff",scope:"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff",settings:{foreground:i}},{name:"inserted.diff",scope:"markup.inserted.diff",settings:{foreground:a}},{name:"deleted.diff",scope:"markup.deleted.diff",settings:{foreground:n}},{name:"c++ function",scope:"meta.function.c,meta.function.cpp",settings:{foreground:n}},{name:"c++ block",scope:"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c",settings:{foreground:r}},{name:"js/ts punctuation separator key-value",scope:"punctuation.separator.key-value",settings:{foreground:r}},{name:"js/ts import keyword",scope:"keyword.operator.expression.import",settings:{foreground:i}},{name:"math js/ts",scope:"support.constant.math",settings:{foreground:o}},{name:"math property js/ts",scope:"support.constant.property.math",settings:{foreground:a}},{name:"js/ts variable.other.constant",scope:"variable.other.constant",settings:{foreground:o}},{name:"java type",scope:["storage.type.annotation.java","storage.type.object.array.java"],settings:{foreground:o}},{name:"java source",scope:"source.java",settings:{foreground:n}},{name:"java modifier.import",scope:"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java",settings:{foreground:r}},{name:"java modifier.import",scope:"meta.method.java",settings:{foreground:i}},{name:"java modifier.import",scope:"storage.modifier.import.java,storage.type.java,storage.type.generic.java",settings:{foreground:o}},{name:"java instanceof",scope:"keyword.operator.instanceof.java",settings:{foreground:s}},{name:"java variable.name",scope:"meta.definition.variable.name.java",settings:{foreground:n}},{name:"operator logical",scope:"keyword.operator.logical",settings:{foreground:s}},{name:"operator bitwise",scope:"keyword.operator.bitwise",settings:{foreground:s}},{name:"operator channel",scope:"keyword.operator.channel",settings:{foreground:s}},{name:"support.constant.property-value.scss",scope:"support.constant.property-value.scss,support.constant.property-value.css",settings:{foreground:a}},{name:"CSS/SCSS/LESS Operators",scope:"keyword.operator.css,keyword.operator.scss,keyword.operator.less",settings:{foreground:s}},{name:"css color standard name",scope:"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss",settings:{foreground:a}},{name:"css comma",scope:"punctuation.separator.list.comma.css",settings:{foreground:r}},{name:"css attribute-name.id",scope:"support.constant.color.w3c-standard-color-name.css",settings:{foreground:a}},{name:"css property-name",scope:"support.type.vendored.property-name.css",settings:{foreground:s}},{name:"js/ts module",scope:"support.module.node,support.type.object.module,support.module.node",settings:{foreground:o}},{name:"entity.name.type.module",scope:"entity.name.type.module",settings:{foreground:o}},{name:"js variable readwrite",scope:"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node",settings:{foreground:n}},{name:"js/ts json",scope:"support.constant.json",settings:{foreground:a}},{name:"js/ts Keyword",scope:["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],settings:{foreground:s}},{name:"js/ts console",scope:"support.type.object.console",settings:{foreground:n}},{name:"js/ts support.variable.property.process",scope:"support.variable.property.process",settings:{foreground:a}},{name:"js console function",scope:"entity.name.function,support.function.console",settings:{foreground:i}},{name:"keyword.operator.misc.rust",scope:"keyword.operator.misc.rust",settings:{foreground:r}},{name:"keyword.operator.sigil.rust",scope:"keyword.operator.sigil.rust",settings:{foreground:s}},{name:"operator",scope:"keyword.operator.delete",settings:{foreground:s}},{name:"js dom",scope:"support.type.object.dom",settings:{foreground:s}},{name:"js dom variable",scope:"support.variable.dom,support.variable.property.dom",settings:{foreground:n}},{name:"keyword.operator",scope:"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational",settings:{foreground:s}},{name:"C operator assignment",scope:"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp",settings:{foreground:s}},{name:"Punctuation",scope:"punctuation.separator.delimiter",settings:{foreground:r}},{name:"Other punctuation .c",scope:"punctuation.separator.c,punctuation.separator.cpp",settings:{foreground:s}},{name:"C type posix-reserved",scope:"support.type.posix-reserved.c,support.type.posix-reserved.cpp",settings:{foreground:s}},{name:"keyword.operator.sizeof.c",scope:"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp",settings:{foreground:s}},{name:"python parameter",scope:"variable.parameter.function.language.python",settings:{foreground:a}},{name:"python type",scope:"support.type.python",settings:{foreground:s}},{name:"python logical",scope:"keyword.operator.logical.python",settings:{foreground:s}},{name:"pyCs",scope:"variable.parameter.function.python",settings:{foreground:a}},{name:"python block",scope:"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python",settings:{foreground:r}},{name:"python function-call.generic",scope:"meta.function-call.generic.python",settings:{foreground:i}},{name:"python placeholder reset to normal string",scope:"constant.character.format.placeholder.other.python",settings:{foreground:a}},{name:"Operators",scope:"keyword.operator",settings:{foreground:r}},{name:"Compound Assignment Operators",scope:"keyword.operator.assignment.compound",settings:{foreground:s}},{name:"Compound Assignment Operators js/ts",scope:"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts",settings:{foreground:s}},{name:"Keywords",scope:"keyword",settings:{foreground:s}},{name:"Namespaces",scope:"entity.name.namespace",settings:{foreground:o}},{name:"Variables",scope:"variable",settings:{foreground:n}},{name:"Variables",scope:"variable.c",settings:{foreground:r}},{name:"Language variables",scope:"variable.language",settings:{foreground:o}},{name:"Java Variables",scope:"token.variable.parameter.java",settings:{foreground:r}},{name:"Java Imports",scope:"import.storage.java",settings:{foreground:o}},{name:"Packages",scope:"token.package.keyword",settings:{foreground:s}},{name:"Packages",scope:"token.package",settings:{foreground:r}},{name:"Functions",scope:["entity.name.function","meta.require","support.function.any-method","variable.function"],settings:{foreground:i}},{name:"Classes",scope:"entity.name.type.namespace",settings:{foreground:o}},{name:"Classes",scope:"support.class, entity.name.type.class",settings:{foreground:o}},{name:"Class name",scope:"entity.name.class.identifier.namespace.type",settings:{foreground:o}},{name:"Class name",scope:["entity.name.class","variable.other.class.js","variable.other.class.ts"],settings:{foreground:o}},{name:"Class name php",scope:"variable.other.class.php",settings:{foreground:n}},{name:"Type Name",scope:"entity.name.type",settings:{foreground:o}},{name:"Keyword Control",scope:"keyword.control",settings:{foreground:s}},{name:"Control Elements",scope:"control.elements, keyword.operator.less",settings:{foreground:a}},{name:"Methods",scope:"keyword.other.special-method",settings:{foreground:i}},{name:"Storage",scope:"storage",settings:{foreground:s}},{name:"Storage JS TS",scope:"token.storage",settings:{foreground:s}},{name:"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void",scope:"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void",settings:{foreground:s}},{name:"Java Storage",scope:"token.storage.type.java",settings:{foreground:o}},{name:"Support",scope:"support.function",settings:{foreground:s}},{name:"Support type",scope:"support.type.property-name",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] toml support",scope:"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml",settings:{foreground:n}},{name:"Support type",scope:"support.constant.property-value",settings:{foreground:r}},{name:"Support type",scope:"support.constant.font-name",settings:{foreground:a}},{name:"Meta tag",scope:"meta.tag",settings:{foreground:r}},{name:"Strings",scope:"string",settings:{foreground:a}},{name:"Constant other symbol",scope:"constant.other.symbol",settings:{foreground:s}},{name:"Integers",scope:"constant.numeric",settings:{foreground:a}},{name:"Constants",scope:"constant",settings:{foreground:a}},{name:"Constants",scope:"punctuation.definition.constant",settings:{foreground:a}},{name:"Tags",scope:"entity.name.tag",settings:{foreground:n}},{name:"Attributes",scope:"entity.other.attribute-name",settings:{foreground:a}},{name:"Attribute IDs",scope:"entity.other.attribute-name.id",settings:{foreground:i}},{name:"Attribute class",scope:"entity.other.attribute-name.class.css",settings:{foreground:a}},{name:"Selector",scope:"meta.selector",settings:{foreground:s}},{name:"Headings",scope:"markup.heading",settings:{fontStyle:"bold"}},{name:"FencedCode",scope:"punctuation.definition.markdown, fenced_code.block.language.markdown",settings:{foreground:o}},{name:"Headings",scope:"markup.heading punctuation.definition.heading, entity.name.section",settings:{foreground:i}},{name:"Units",scope:"keyword.other.unit",settings:{foreground:n}},{name:"Bold",scope:"markup.bold,todo.bold",settings:{foreground:a}},{name:"Bold",scope:"punctuation.definition.bold",settings:{foreground:o}},{name:"markup Italic",scope:"markup.italic, punctuation.definition.italic,todo.emphasis",settings:{foreground:s}},{name:"emphasis md",scope:"emphasis md",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Markdown headings",scope:"entity.name.section.markdown",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown heading Punctuation Definition",scope:"punctuation.definition.heading.markdown",settings:{foreground:n}},{name:"punctuation.definition.list.begin.markdown",scope:"punctuation.definition.list.begin.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown heading setext",scope:"markup.heading.setext",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold",scope:"punctuation.definition.bold.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.string.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw punctuation",scope:"punctuation.definition.raw.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown List Punctuation Definition",scope:"punctuation.definition.list.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition String",scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],settings:{foreground:n}},{name:"beginning.punctuation.definition.list.markdown",scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Link",scope:"punctuation.definition.metadata.markdown",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown Underline Link/Image",scope:"markup.underline.link.markdown,markup.underline.link.image.markdown",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Markdown Link Title/Description",scope:"string.other.link.title.markdown,string.other.link.description.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw",scope:"markup.raw.monospace.asciidoc",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition",scope:"punctuation.definition.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition",scope:"markup.list.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc underline link",scope:"markup.link.asciidoc,markup.other.url.asciidoc",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Asciidoc link name",scope:"string.unquoted.asciidoc,markup.other.url.asciidoc",settings:{foreground:i}},{name:"Regular Expressions",scope:"string.regexp",settings:{foreground:s}},{name:"Embedded",scope:"punctuation.section.embedded, variable.interpolation",settings:{foreground:n}},{name:"Embedded",scope:"punctuation.section.embedded.begin,punctuation.section.embedded.end",settings:{foreground:s}},{name:"illegal",scope:"invalid.illegal",settings:{foreground:n}},{name:"illegal",scope:"invalid.illegal.bad-ampersand.html",settings:{foreground:r}},{scope:"invalid.illegal.unrecognized-tag.html",settings:{foreground:n}},{name:"Broken",scope:"invalid.broken",settings:{foreground:n}},{name:"Deprecated",scope:"invalid.deprecated",settings:{foreground:n}},{name:"html Deprecated",scope:"invalid.deprecated.entity.other.attribute-name.html",settings:{foreground:a}},{name:"Unimplemented",scope:"invalid.unimplemented",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json",scope:"source.json meta.structure.dictionary.json > string.quoted.json",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String",scope:"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation",scope:"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation",settings:{foreground:a}},{name:"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json",scope:"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] JSON Property Name",scope:"support.type.property-name.json",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] JSON Punctuation for Property Name",scope:"support.type.property-name.json punctuation",settings:{foreground:n}},{name:"laravel blade tag",scope:"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade",settings:{foreground:s}},{name:"laravel blade @",scope:"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade",settings:{foreground:s}},{name:"use statement for other classes",scope:"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php",settings:{foreground:o}},{name:"error suppression",scope:"keyword.operator.error-control.php",settings:{foreground:s}},{name:"php instanceof",scope:"keyword.operator.type.php",settings:{foreground:s}},{name:"style double quoted array index normal begin",scope:"punctuation.section.array.begin.php",settings:{foreground:r}},{name:"style double quoted array index normal end",scope:"punctuation.section.array.end.php",settings:{foreground:r}},{name:"php illegal.non-undefined-typehinted",scope:"invalid.illegal.non-undefined-typehinted.php",settings:{foreground:o}},{name:"php types",scope:"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php",settings:{foreground:o}},{name:"php call-function",scope:"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php",settings:{foreground:i}},{name:"php function-resets",scope:"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php",settings:{foreground:r}},{name:"support php constants",scope:"support.constant.core.rust",settings:{foreground:a}},{name:"support php constants",scope:"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php",settings:{foreground:a}},{name:"php goto",scope:"entity.name.goto-label.php,support.other.php",settings:{foreground:i}},{name:"php logical/bitwise operator",scope:"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php",settings:{foreground:s}},{name:"php regexp operator",scope:"keyword.operator.regexp.php",settings:{foreground:s}},{name:"php comparison",scope:"keyword.operator.comparison.php",settings:{foreground:s}},{name:"php heredoc/nowdoc",scope:"keyword.operator.heredoc.php,keyword.operator.nowdoc.php",settings:{foreground:s}},{name:"python function decorator @",scope:"meta.function.decorator.python",settings:{foreground:i}},{name:"python function support",scope:"support.token.decorator.python,meta.function.decorator.identifier.python",settings:{foreground:s}},{name:"parameter function js/ts",scope:"function.parameter",settings:{foreground:r}},{name:"brace function",scope:"function.brace",settings:{foreground:r}},{name:"parameter function ruby cs",scope:"function.parameter.ruby, function.parameter.cs",settings:{foreground:r}},{name:"constant.language.symbol.ruby",scope:"constant.language.symbol.ruby",settings:{foreground:s}},{name:"constant.language.symbol.hashkey.ruby",scope:"constant.language.symbol.hashkey.ruby",settings:{foreground:s}},{name:"rgb-value",scope:"rgb-value",settings:{foreground:s}},{name:"rgb value",scope:"inline-color-decoration rgb-value",settings:{foreground:a}},{name:"rgb value less",scope:"less rgb-value",settings:{foreground:a}},{name:"sass selector",scope:"selector.sass",settings:{foreground:n}},{name:"ts primitive/builtin types",scope:"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx",settings:{foreground:o}},{name:"block scope",scope:"block.scope.end,block.scope.begin",settings:{foreground:r}},{name:"cs storage type",scope:"storage.type.cs",settings:{foreground:o}},{name:"cs local variable",scope:"entity.name.variable.local.cs",settings:{foreground:n}},{scope:"token.info-token",settings:{foreground:i}},{scope:"token.warn-token",settings:{foreground:a}},{scope:"token.error-token",settings:{foreground:o}},{scope:"token.debug-token",settings:{foreground:s}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:s}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:r}},{name:"Import module JS",scope:["keyword.operator.module"],settings:{foreground:s}},{name:"js Flowtype",scope:["support.type.type.flowtype"],settings:{foreground:i}},{name:"js Flow",scope:["support.type.primitive"],settings:{foreground:o}},{name:"js class prop",scope:["meta.property.object"],settings:{foreground:n}},{name:"js func parameter",scope:["variable.parameter.function.js"],settings:{foreground:n}},{name:"js template literals begin",scope:["keyword.other.template.begin"],settings:{foreground:a}},{name:"js template literals end",scope:["keyword.other.template.end"],settings:{foreground:a}},{name:"js template literals variable braces begin",scope:["keyword.other.substitution.begin"],settings:{foreground:a}},{name:"js template literals variable braces end",scope:["keyword.other.substitution.end"],settings:{foreground:a}},{name:"js operator.assignment",scope:["keyword.operator.assignment"],settings:{foreground:s}},{name:"go operator",scope:["keyword.operator.assignment.go"],settings:{foreground:o}},{name:"go operator",scope:["keyword.operator.arithmetic.go","keyword.operator.address.go"],settings:{foreground:s}},{name:"Go package name",scope:["entity.name.package.go"],settings:{foreground:o}},{name:"elm prelude",scope:["support.type.prelude.elm"],settings:{foreground:s}},{name:"elm constant",scope:["support.constant.elm"],settings:{foreground:a}},{name:"template literal",scope:["punctuation.quasi.element"],settings:{foreground:s}},{name:"html/pug (jade) escaped characters and entities",scope:["constant.character.entity"],settings:{foreground:n}},{name:"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour",scope:["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],settings:{foreground:s}},{name:"Clojure globals",scope:["entity.global.clojure"],settings:{foreground:o}},{name:"Clojure symbols",scope:["meta.symbol.clojure"],settings:{foreground:n}},{name:"Clojure constants",scope:["constant.keyword.clojure"],settings:{foreground:s}},{name:"CoffeeScript Function Argument",scope:["meta.arguments.coffee","variable.parameter.function.coffee"],settings:{foreground:n}},{name:"Ini Default Text",scope:["source.ini"],settings:{foreground:a}},{name:"Makefile prerequisities",scope:["meta.scope.prerequisites.makefile"],settings:{foreground:n}},{name:"Makefile text colour",scope:["source.makefile"],settings:{foreground:o}},{name:"Groovy import names",scope:["storage.modifier.import.groovy"],settings:{foreground:o}},{name:"Groovy Methods",scope:["meta.method.groovy"],settings:{foreground:i}},{name:"Groovy Variables",scope:["meta.definition.variable.name.groovy"],settings:{foreground:n}},{name:"Groovy Inheritance",scope:["meta.definition.class.inherited.classes.groovy"],settings:{foreground:a}},{name:"HLSL Semantic",scope:["support.variable.semantic.hlsl"],settings:{foreground:o}},{name:"HLSL Types",scope:["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],settings:{foreground:s}},{name:"SQL Variables",scope:["text.variable","text.bracketed"],settings:{foreground:n}},{name:"types",scope:["support.type.swift","support.type.vb.asp"],settings:{foreground:o}},{name:"heading 1, keyword",scope:["entity.name.function.xi"],settings:{foreground:o}},{name:"heading 2, callable",scope:["entity.name.class.xi"],settings:{foreground:s}},{name:"heading 3, property",scope:["constant.character.character-class.regexp.xi"],settings:{foreground:n}},{name:"heading 4, type, class, interface",scope:["constant.regexp.xi"],settings:{foreground:s}},{name:"heading 5, enums, preprocessor, constant, decorator",scope:["keyword.control.xi"],settings:{foreground:s}},{name:"heading 6, number",scope:["invalid.xi"],settings:{foreground:r}},{name:"string",scope:["beginning.punctuation.definition.quote.markdown.xi"],settings:{foreground:a}},{name:"comments",scope:["beginning.punctuation.definition.list.markdown.xi"],settings:{foreground:r}},{name:"link",scope:["constant.character.xi"],settings:{foreground:i}},{name:"accent",scope:["accent.xi"],settings:{foreground:i}},{name:"wikiword",scope:["wikiword.xi"],settings:{foreground:a}},{name:"language operators like '+', '-' etc",scope:["constant.other.color.rgb-value.xi"],settings:{foreground:n}},{name:"elements to dim",scope:["punctuation.definition.tag.xi"],settings:{foreground:r}},{name:"C++/C#",scope:["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],settings:{foreground:o}},{name:"Markdown underscore-style headers",scope:["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],settings:{foreground:n}},{name:"meta.brace.square",scope:[" meta.brace.square"],settings:{foreground:r}},{name:"Comments",scope:"comment, punctuation.definition.comment",settings:{fontStyle:"italic",foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Quote",scope:"markup.quote.markdown",settings:{foreground:r}},{name:"punctuation.definition.block.sequence.item.yaml",scope:"punctuation.definition.block.sequence.item.yaml",settings:{foreground:r}},{scope:["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],settings:{foreground:s}},{scope:["entity.name.variable.parameter.cs"],settings:{foreground:o}},{scope:["entity.name.variable.field.cs"],settings:{foreground:n}},{name:"Deleted",scope:"markup.deleted",settings:{foreground:n}},{name:"Inserted",scope:"markup.inserted",settings:{foreground:a}},{name:"Underline",scope:"markup.underline",settings:{fontStyle:"underline"}},{name:"punctuation.section.embedded.begin.php",scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:o}},{name:"support.other.namespace.php",scope:["support.other.namespace.php"],settings:{foreground:r}},{name:"variable.other.object",scope:["variable.other.object"],settings:{foreground:o}},{name:"variable.other.constant.property",scope:["variable.other.constant.property"],settings:{foreground:n}},{name:"entity.other.inherited-class",scope:["entity.other.inherited-class"],settings:{foreground:o}},{name:"c variable readwrite",scope:"variable.other.readwrite.c",settings:{foreground:n}},{name:"php scope",scope:"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php",settings:{foreground:r}},{name:"Assembly",scope:["constant.numeric.decimal.asm.x86_64"],settings:{foreground:s}},{scope:["support.other.parenthesis.regexp"],settings:{foreground:a}},{scope:["constant.character.escape"],settings:{foreground:s}},{scope:["string.regexp"],settings:{foreground:n}},{scope:["log.info"],settings:{foreground:a}},{scope:["log.warning"],settings:{foreground:o}},{scope:["log.error"],settings:{foreground:n}},{name:"js/ts italic",scope:"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super",settings:{fontStyle:"italic"}},{name:"comment",scope:"comment.line.double-slash,comment.block.documentation",settings:{fontStyle:"italic"}},{name:"Python Keyword Control",scope:"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python",settings:{fontStyle:"italic"}},{name:"markup.italic.markdown",scope:"markup.italic.markdown",settings:{fontStyle:"italic"}}],type:t}},NB=["javascript","js","jsx","json","markdown","md","less","css","typescript","ts","tsx","diff","bash"],KQ=function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r div {\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),n.motionEaseOut,n.colorTextTertiary,n.colorFillTertiary,n.colorBorderSecondary,n.motionEaseOut,n.colorTextSecondary,n.colorFillSecondary,n.colorText,n.colorFill),i=GI(lH||(lH=ki(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:qI(i,GI(cH||(cH=ki(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:qI("".concat(DH,"-bottom-handle"),GI(uH||(uH=ki(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:qI(DH,GI(dH||(dH=ki(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,DH)),fixed:GI(pH||(pH=ki(["\n position: relative;\n "]))),fullscreen:GI(fH||(fH=ki(["\n position: absolute;\n inset: ","px 0 0 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),t,t,n.colorBgLayout),handlerIcon:GI(mH||(mH=ki(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:qI(i,GI(gH||(gH=ki(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:qI(GI(hH||(hH=ki(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(DH,"-left-handle")),panel:qI("".concat(DH,"-fixed"),GI(bH||(bH=ki(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:qI(i,GI(yH||(yH=ki(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:qI(GI(vH||(vH=ki(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(DH,"-right-handle")),toggleBottom:qI("".concat(DH,"-toggle"),"".concat(DH,"-toggle-bottom"),o,GI(_H||(_H=ki(["\n bottom: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: 16px;\n margin-left: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,EH,40)),toggleLeft:qI("".concat(DH,"-toggle"),"".concat(DH,"-toggle-left"),o,GI(wH||(wH=ki(["\n left: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,EH,EH,40)),toggleRight:qI("".concat(DH,"-toggle"),"".concat(DH,"-toggle-right"),o,GI(kH||(kH=ki(["\n right: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,EH,EH,40)),toggleTop:qI("".concat(DH,"-toggle"),"".concat(DH,"-toggle-top"),o,GI(xH||(xH=ki(["\n top: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: ","px;\n margin-left: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,EH,40,EH)),topFloat:qI(i,GI(SH||(SH=ki(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:qI("".concat(DH,"-top-handle"),GI(CH||(CH=ki(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),jH=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};const Y7=dv.memo((function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D=e.headerHeight,O=void 0===D?0:D,j=e.fullscreen,$=e.maxHeight,P=e.pin,N=void 0===P||P,T=e.mode,I=void 0===T?"fixed":T,A=e.children,R=e.placement,F=void 0===R?"right":R,M=e.resize,L=e.style,z=e.size,B=e.defaultSize,H=e.minWidth,U=e.minHeight,W=e.maxWidth,V=e.onSizeChange,G=e.onSizeDragging,q=e.expandable,X=void 0===q||q,K=e.expand,Y=e.defaultExpand,Q=void 0===Y||Y,J=e.onExpandChange,Z=e.className,ee=e.showHandlerWhenUnexpand,te=e.destroyOnClose,ne=e.hanlderStyle,re=e.classNames,oe=void 0===re?{}:re,ie=dv.useRef(),ae=(b=ie,v=(y={}).onEnter,_=y.onLeave,w=y.onChange,k=Uf(function(e){var t,n,r,o;return void 0===e&&(e=!1),t=Uf(function(e){var t,n;return void 0===e&&(e=!1),t=Uf(dv.useState(e),2),n=t[1],[t[0],dv.useMemo((function(){var t=!e;return{toggle:function(){return n((function(n){return n===e?t:e}))},set:function(e){return n(e)},setLeft:function(){return n(e)},setRight:function(){return n(t)}}}),[])]}(!!e),2),r=(n=t[1]).toggle,o=n.set,[t[0],dv.useMemo((function(){return{toggle:r,set:function(e){return o(!!e)},setTrue:function(){return o(!0)},setFalse:function(){return o(!1)}}}),[])]}(!1),2),x=k[0],C=(S=k[1]).setTrue,E=S.setFalse,Zf("mouseenter",(function(){null==v||v(),C(),null==w||w(!0)}),{target:b}),Zf("mouseleave",(function(){null==_||_(),E(),null==w||w(!1)}),{target:b}),x),se="top"===F||"bottom"===F,le=OH(O),ce=le.styles,ue=le.cx,de=za(rf(Q,{onChange:J,value:K}),2),pe=de[0],fe=de[1];return dv.useEffect((function(){N||(ae&&!pe?fe(!0):!ae&&pe&&fe(!1))}),[N,ae,pe]),n=(t=za(dv.useState(!0),2))[0],r=t[1],i=(o=za(dv.useState(!1),2))[0],a=o[1],l=dv.useMemo((function(){return s?_i({},jH(F),ce["".concat(jH(F),"Handle")]):{}}),[s=!1!==M&&pe,F]),c=Am(_i({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},jH(F),!0),M),u=dv.useMemo((function(){return Am(se?{height:180,width:"100%"}:{height:"100%",width:280},B)}),[se]),d=pe?{defaultSize:u,maxHeight:"number"==typeof $?Math.max($,0):$,maxWidth:"number"==typeof W?Math.max(W,0):W,minHeight:"number"==typeof U?Math.max(U,0):U,minWidth:"number"==typeof H?Math.max(H,0):H,size:z}:se?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},f=(p=dv.useMemo((function(){switch(F){case"top":return{Arrow:GJ,className:"Bottom"};case"bottom":return{Arrow:KJ,className:"Top"};case"right":return{Arrow:qJ,className:"Left"};case"left":return{Arrow:XJ,className:"Right"}}}),[ce,F])).Arrow,g=yv.jsx(j7,{className:ue(ce["toggle".concat(m=p.className)],oe.handle),style:{opacity:pe?N?void 0:0:ee?1:0},children:yv.jsx(j7,{onClick:function(){fe(!pe)},style:ne,children:yv.jsx("div",{className:ce.handlerIcon,style:{transform:"rotate(".concat(pe?180:0,"deg)")},children:yv.jsx(f,{size:16,strokeWidth:1.5})})})}),h=yv.jsx(iH,Am(Am({},d),{},{className:ue(ce.panel,oe.content),enable:s?c:void 0,handleClasses:l,onResize:function(e,t,n,r){null==G||G(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){a(!0),r(!1)},onResizeStop:function(e,t,n,o){a(!1),r(!0),null==V||V(o,{height:n.style.height,width:n.style.width})},style:Am({transition:i?"unset":void 0},L),children:A})),j?yv.jsx("div",{className:ue(ce.fullscreen,Z),children:A}):yv.jsxs("aside",{className:ue(ce.container,ce["fixed"===I?"fixed":"".concat(F,"Float")],Z),ref:ie,style:pe?_i({},"border".concat(m,"Width"),1):{},children:[X&&n&&g,te?pe&&h:h]})}));IH=WI((function(e){var t=e.css,n=e.token;return{body:t($H||($H=ki(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(PH||(PH=ki(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(NH||(NH=ki(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n\n padding: 8px 16px;\n\n border-top: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(TH||(TH=ki(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 16px;\n\n font-weight: 500;\n\n border-bottom: 1px solid ",";\n "])),n.colorBorderSecondary)}})),AH=["className","children"];const Q7=dv.memo((function(e){var t=e.className,n=e.children,r=wi(e,AH),o=IH();return yv.jsx("div",Fm(Fm({className:(0,o.cx)(o.styles.body,t)},r),{},{children:n}))}));RH=["className","children"];const J7=dv.memo((function(e){var t=e.className,n=e.children,r=wi(e,RH),o=IH();return yv.jsx("div",Lm(Lm({className:(0,o.cx)(o.styles.container,t)},r),{},{children:n}))}));FH=["className","children"];const Z7=dv.memo((function(e){var t=e.className,n=e.children,r=wi(e,FH),o=IH();return yv.jsx("div",Bm(Bm({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));MH=["pin","setPin","className","setExpand","title","position"];const e9=dv.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,i=e.title,a=e.position,s=void 0===a?"left":a,l=wi(e,MH),c=IH(),u=c.cx,d=c.styles,p=yv.jsx(m7,{icon:iZ,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),f=yv.jsx(m7,{active:t,icon:t?lZ:sZ,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return yv.jsxs("div",Um(Um({className:u(d.header,r)},l),{},{children:["left"===s?p:f,i,"left"===s?f:p]}))}));LH=function e(t,n){var r,o,i,a;if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;)if(!e(t[a=i[o]],n[a]))return!1;return!0}return t!=t&&n!=n};const t9=t(LH);zH=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t};const n9=dv.memo((function(e){var t=e.url;return dv.useEffect((function(){var e=zH(t);document.head.append(e)}),[]),!1}));BH=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,i=void 0===o?[]:o,a=e.style,s=e.className;return LJ.createElement("div",{className:yZ("".concat(t,"-column"),s),style:a},(r||n)&&LJ.createElement("h2",null,n&&LJ.createElement("span",{className:"".concat(t,"-column-icon")},n),r),i.map((function(e,n){var r=e.LinkComponent||"a";return LJ.createElement("div",{className:yZ("".concat(t,"-item"),e.className),style:e.style,key:n},LJ.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&LJ.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&LJ.createElement(LJ.Fragment,null,LJ.createElement("span",{className:"".concat(t,"-item-separator")},"-"),LJ.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},HH=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],UH=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,i=e.bottom,a=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,d=void 0===u?"dark":u,p=wi(e,HH),f=yZ("".concat(n),r,_i({},"".concat(n,"-").concat(d),!!d)),m="number"==typeof s&&s>0;return LJ.createElement("footer",va(va({},p),{},{className:f,style:va(va({},o),{},{backgroundColor:l})}),LJ.createElement("section",{className:"".concat(n,"-container")},a&&a.length>0&&LJ.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:m?"wrap":void 0}},a.map((function(e,t){var r=e.title,o=e.icon,i=e.className,a=e.items,l=void 0===a?[]:a,c=va({},e.style);return m&&(c.flex="0 0 ".concat(100/(s+1)+.1,"%")),LJ.createElement(BH,{key:t,prefixCls:n,title:r,icon:o,items:l,style:c,className:i})})))),i&&LJ.createElement("section",{className:"".concat(n,"-bottom")},LJ.createElement("div",{className:"".concat(n,"-bottom-container")},i)))},GH=WI((function(e,t){var n=e.css,r=e.responsive,o=e.token,i=t.isEmpty,a=t.contentMaxWidth,s="rc-footer";return{container:n(WH||(WH=ki(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-top: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(VH||(VH=ki(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: left;\n\n h2 {\n position: relative;\n\n margin: 0 auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin: 12px 0;\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin: 0 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin: 0 auto;\n padding: 16px 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-top-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding: 40px 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-bottom: 40px;\n text-align: center;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,s,o.colorTextTertiary,o.colorLinkHover,s,a,i?"0":"60px 0 20px",o.colorText,o.colorTextDescription,a,r.mobile,s)}}));const r9=dv.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,i=GH({contentMaxWidth:void 0===o?960:o,isEmpty:!t||0===(null==t?void 0:t.length)}).styles;return yv.jsx("section",{className:i.container,children:yv.jsx(UH,{bottom:n,className:i.footer,columns:t,theme:r})})}));tU=WI((function(e,t){var n,r=e.css,o=e.cx,i=e.token,a=e.isDarkMode;return{footer:r(qH||(qH=ki(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(XH||(XH=ki(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 6px;\n\n text-align: left;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .ant-tag {\n font-family: ",";\n }\n "])),i.colorTextDescription,i.fontFamilyCode),group:o(a&&r(KH||(KH=ki(["\n .ant-collapse-content {\n background: transparent;\n }\n\n .ant-collapse-header {\n background: ",";\n }\n "])),i.colorFillTertiary),r(YH||(YH=ki(["\n .ant-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .ant-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n .ant-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])))),icon:r(QH||(QH=ki(["\n transition: all 100ms ",";\n "])),i.motionEaseOut),item:r(JH||(JH=ki(["\n padding: 8px 0;\n\n .ant-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n\n ","\n "])),t&&r(ZH||(ZH=ki(["\n .ant-form-item-control {\n width: ",";\n }\n "])),(n=t,"number"==typeof n||yf(n)&&"[object Number]"==bf(n)?"".concat(t,"px"):t))),title:r(eU||(eU=ki(["\n display: flex;\n gap: 8px;\n align-items: center;\n\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n "])),i.colorPrimary)}})),nU=["className","children"];const o9=dv.memo((function(e){var t=e.className,n=e.children,r=wi(e,nU),o=tU();return yv.jsx("div",Vm(Vm({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));rU=["className","icon","title","children","extra"];const i9=dv.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,i=e.extra,a=wi(e,rU),s=tU(),l=s.styles;return yv.jsx(p8,function(e){var t,n;for(t=1;t label {\n height: unset;\n }\n\n .ant-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .ant-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .ant-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .ant-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),n.borderRadius)}})),mU=["className","itemMinWidth","footer","items","children"];const u9=dv.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,i=e.items,a=e.children,s=wi(e,mU),l=fU();return yv.jsxs(h6,eg(eg({className:(0,l.cx)(l.styles.form,n),colon:!1,layout:"horizontal",ref:t},s),{},{children:[null==i?void 0:i.map((function(e,t){return yv.jsx(i9,{extra:null==e?void 0:e.extra,icon:null==e?void 0:e.icon,title:e.title,children:e.children.filter((function(e){return!e.hidden})).map((function(e,t){return yv.jsx(c9,eg({divider:0!==t,minWidth:r},e),t)}))},t)})),a,o&&yv.jsx(o9,{children:o})]}))}));gU={};const d9=yv,p9=dv;bU=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:i,mapping:a,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:d,theme:p,lang:f,loading:m}){const[g,h]=p9.useState(!1);return p9.useEffect((()=>{g||(Promise.resolve().then((()=>(hU||(hU=1,function(t){function n(e,t,r=e,o){var i,a,s,l;if(t===Y)return t;let c=void 0!==o?null===(i=r._$Co)||void 0===i?void 0:i[o]:r._$Cl;const u=L(t)?void 0:t._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,r,o)),void 0!==o?(null!==(s=(l=r)._$Co)&&void 0!==s?s:l._$Co=[])[o]=c:r._$Cl=c),void 0!==c&&(t=n(e,c._$AS(e,t.values),c,o)),t}function r(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):de(e,t)}function i(e){void 0!==this._$AN?(me(this),this._$AM=e,ge(this)):this._$AM=e}function a(e,t=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let i=n;ie:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new v("string"==typeof e?e:e+"",void 0,b))(t)})(e):e,w=window,k=w.trustedTypes,x=k?k.emptyScript:"",S=w.reactiveElementPolyfillSupport,C={toAttribute(e,t){switch(t){case Boolean:e=e?x:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},E=(e,t)=>t!==e&&(t==t||e==e),D={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:E},O="finalized";let j=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=D){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||D}static finalize(){if(this.hasOwnProperty(O))return!1;this[O]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(_(e))}else void 0!==e&&t.push(_(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{h?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=m.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=D){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:C).toAttribute(t,n.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:C;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||E)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(g){Promise.reject(g)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};j[O]=!0,j.elementProperties=new Map,j.elementStyles=[],j.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:j}),(null!==(s=w.reactiveElementVersions)&&void 0!==s?s:w.reactiveElementVersions=[]).push("1.6.2");const $=window,P=$.trustedTypes,N=P?P.createPolicy("lit-html",{createHTML:e=>e}):void 0,T="$lit$",I=`lit$${(Math.random()+"").slice(9)}$`,A="?"+I,R=`<${A}>`,F=document,M=()=>F.createComment(""),L=e=>null===e||"object"!=typeof e&&"function"!=typeof e,z=Array.isArray,B="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,W=/>/g,V=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,q=/"/g,X=/^(?:script|style|textarea|title)$/i,K=(e,...t)=>({_$litType$:1,strings:e,values:t}),Y=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),J=new WeakMap,Z=F.createTreeWalker(F,129,null,!1);class ee{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"":"",a=H;for(let l=0;l"===s[0]?(a=o??H,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?V:'"'===s[3]?q:G):a===q||a===G?a=V:a===U||a===W?a=H:(a=V,o=void 0);const d=a===V&&e[l+1].startsWith("/>")?" ":"";i+=a===H?t+R:c>=0?(r.push(n),t.slice(0,c)+T+t.slice(c)+I+d):t+I+(-2===c?(r.push(void 0),l):d)}const s=i+(e[n]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(s):s,r]})(e,t);if(this.el=ee.createElement(l,n),Z.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Z.nextNode())&&s.length0){r.textContent=P?P.emptyScript:"";for(let n=0;nz(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Q&&L(this._$AH)?this._$AA.nextSibling.data=e:this.$(F.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=ee.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{const e=new class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:F).importNode(n,!0);Z.currentNode=o;let i=Z.nextNode(),a=0,s=0,l=r[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new te(i,i.nextSibling,this,e):1===l.type?t=new l.ctor(i,l.name,l.strings,this,e):6===l.type&&(t=new se(i,this,e)),this._$AV.push(t),l=r[++s]}a!==(null==l?void 0:l.index)&&(i=Z.nextNode(),a++)}return Z.currentNode=F,o}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}(o,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=J.get(e.strings);return void 0===t&&J.set(e.strings,t=new ee(e)),t}T(e){z(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new te(this.k(M()),this.k(M()),this,this.options)):n=t[r],n._$AI(o),r++;r2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const i=this.strings;let a=!1;if(void 0===i)e=n(this,e,t,0),a=!L(e)||e!==this._$AH&&e!==Y,a&&(this._$AH=e);else{const o=e;let s,l;for(e=i[0],s=0;s{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let a=i._$litPart$;if(void 0===a){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new te(t.insertBefore(M(),e),e,void 0,n??{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Y}};ce.finalized=!0,ce._$litElement$=!0,null===(c=globalThis.litElementHydrateSupport)||void 0===c||c.call(globalThis,{LitElement:ce});const ue=globalThis.litElementPolyfillSupport;null==ue||ue({LitElement:ce}),(null!==(u=globalThis.litElementVersions)&&void 0!==u?u:globalThis.litElementVersions=[]).push("3.3.2");const de=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};window;let pe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const fe=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const i of o)null===(r=(n=i)._$AO)||void 0===r||r.call(n,t,!1),fe(i,t);return!0},me=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},ge=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),he(t)}},he=e=>{var t,n,r,o;2==e.type&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=a),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=i))};class be extends pe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),ge(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(fe(this,e),me(this))}setValue(e){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class ye{}const ve=new WeakMap,_e=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends be{render(e){return Q}update(e,[t]){var n;const r=t!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),Q}ot(e){var t;if("function"==typeof this.G){const n=null!==(t=this.ct)&&void 0!==t?t:globalThis;let r=ve.get(n);void 0===r&&(r=new WeakMap,ve.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,n;return"function"==typeof this.G?null===(t=ve.get(null!==(e=this.ct)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?p(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&d(t,n,i),i},t.GiscusWidget=class extends ce{constructor(){super(),this.GISCUS_SESSION_KEY="giscus-session",this.GISCUS_DEFAULT_HOST="https://giscus.app",this.ERROR_SUGGESTION="Please consider reporting this error at https://github.com/giscus/giscus/issues/new.",this.__session="",this._iframeRef=new ye,this.messageEventHandler=this.handleMessageEvent.bind(this),this.hasLoaded=!1,this.host=this.GISCUS_DEFAULT_HOST,this.strict="0",this.reactionsEnabled="1",this.emitMetadata="0",this.inputPosition="bottom",this.theme="light",this.lang="en",this.loading="eager",this.setupSession(),window.addEventListener("message",this.messageEventHandler)}get iframeRef(){var e;return null==(e=this._iframeRef)?void 0:e.value}get _host(){try{return new URL(this.host),this.host}catch{return this.GISCUS_DEFAULT_HOST}}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const t=location.href,n=new URL(t),r=localStorage.getItem(this.GISCUS_SESSION_KEY),o=n.searchParams.get("giscus")||"";if(this.__session="",o)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(o)),this.__session=o,n.searchParams.delete("giscus"),n.hash="",void history.replaceState(void 0,document.title,n.toString());if(r)try{this.__session=JSON.parse(r)}catch(e){localStorage.removeItem(this.GISCUS_SESSION_KEY)}}signOut(){localStorage.removeItem(this.GISCUS_SESSION_KEY),this.__session="",this.update(new Map)}handleMessageEvent(e){if(e.origin!==this._host)return;const{data:t}=e;if("object"!=typeof t||!t.giscus)return;if(this.iframeRef&&t.giscus.resizeHeight&&(this.iframeRef.style.height=`${t.giscus.resizeHeight}px`),t.giscus.signOut)return void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired"))&&null!==localStorage.getItem(this.GISCUS_SESSION_KEY)?this.signOut():n.includes("Discussion not found")}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||this.iframeRef.contentWindow.postMessage({giscus:e},this._host)}updateConfig(){const e={setConfig:{repo:this.repo,repoId:this.repoId,category:this.category,categoryId:this.categoryId,term:this.getTerm(),number:+this.getNumber(),strict:"1"===this.strict,reactionsEnabled:"1"===this.reactionsEnabled,emitMetadata:"1"===this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,lang:this.lang}};this.sendMessage(e)}firstUpdated(){var e;null==(e=this.iframeRef)||e.addEventListener("load",(()=>{var e;null==(e=this.iframeRef)||e.classList.remove("loading"),this.hasLoaded=!0,this.updateConfig()}))}requestUpdate(e,t,n){this.hasUpdated&&"host"!==e?this.updateConfig():super.requestUpdate(e,t,n)}getMetaContent(e,t=!1){const n=document.querySelector((t?`meta[property='og:${e}'],`:"")+`meta[name='${e}']`);return n?n.content:""}_getCleanedUrl(){const e=new URL(location.href);return e.searchParams.delete("giscus"),e.hash="",e}getTerm(){switch(this.mapping){case"url":return`${this._getCleanedUrl()}`;case"title":return document.title;case"og:title":return this.getMetaContent("title",!0);case"specific":return this.term||"";case"number":return"";default:return location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}}getNumber(){return"number"===this.mapping&&this.term||""}getIframeSrc(){const e=this._getCleanedUrl().toString(),t=`${e}${this.id?"#"+this.id:""}`,n=this.getMetaContent("description",!0),r=this.getMetaContent("giscus:backlink")||e,o={origin:t,session:this.__session,repo:this.repo,repoId:this.repoId||"",category:this.category||"",categoryId:this.categoryId||"",term:this.getTerm(),number:this.getNumber(),strict:this.strict,reactionsEnabled:this.reactionsEnabled,emitMetadata:this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,description:n,backLink:r};return`${this._host}${this.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return K` +function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t,n;return e.__esModule?e:("function"==typeof(t=e.default)?(n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},n.prototype=t.prototype):n={},Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n)}function r(e,t,n){this.props=e,this.context=t,this.refs=LJ,this.updater=n||FJ}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=LJ,this.updater=n||FJ}function a(e,t,n){var r,o,i,a,s={},l=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)iv.call(t,r)&&!sv.hasOwnProperty(r)&&(s[r]=t[r]);if(1==(o=arguments.length-2))s.children=n;else if(1t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!jv.call(Nv,e)||!jv.call(Pv,e)&&($v.test(e)?Nv[e]=!0:(Pv[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function v(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Kv&&e[Kv]||e["@@iterator"])?e:null}function _(e){if(void 0===Qv)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qv=t&&t[1]||""}return"\n"+Qv+e}function w(e,t){var n,r,o,i,a,s,l;if(!e||Jv)return"";Jv=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return l="\n"+o[a].replace(" at new "," at "),e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Jv=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function k(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return w(e.type,!1);case 11:return w(e.type.render,!1);case 1:return w(e.type,!0);default:return""}}function x(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Mv:return"Fragment";case Fv:return"Portal";case zv:return"Profiler";case Lv:return"StrictMode";case Wv:return"Suspense";case Vv:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Hv:return(e.displayName||"Context")+".Consumer";case Bv:return(e._context.displayName||"Context")+".Provider";case Uv:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Gv:return null!==(t=e.displayName||null)?t:x(e.type)||"Memo";case qv:t=e._payload,e=e._init;try{return x(e(t))}catch(n){}}return null}function S(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return x(t);case 8:return t===Lv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function C(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function E(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function D(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=E(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),i=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set)return t=o.get,n=o.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){i=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function O(e){var t,n,r;return!(!e||(t=e._valueTracker)&&(n=t.getValue(),r="",e&&(r=E(e)?e.checked?"true":"false":e.value),(e=r)===n||(t.setValue(e),0)))}function j(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return Yv({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function P(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=C(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function N(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function T(e,t){N(e,t);var n=C(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?A(e,t.type,n):t.hasOwnProperty("defaultValue")&&A(e,t.type,C(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function I(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function A(e,t,n){"number"===t&&j(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function R(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=(o=t&-t)||16===r&&0!=(4194240&o)))return t;if(0!=(4&n)&&(n|=16&s),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0n;n++)t.push(e);return t}function ge(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-$_(t)]=n}function he(e,t){var n,r,o=e.entangledLanes|=t;for(e=e.entanglements;o;)(r=1<<(n=31-$_(o)))&t|e[n]&t&&(e[n]|=t),o&=~r}function be(e){return 1<(e&=-e)?4=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Je(r)}}function et(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?et(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tt(){var e,t,n;for(e=window,t=j();t instanceof e.HTMLIFrameElement;){try{n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=j((e=t.contentWindow).document)}return t}function nt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rt(e){var t,n,r,o=tt(),i=e.focusedElem,a=e.selectionRange;if(o!==i&&i&&i.ownerDocument&&et(i.ownerDocument.documentElement,i)){null!==a&&nt(i)&&(o=a.start,void 0===(e=a.end)&&(e=o),"selectionStart"in i?(i.selectionStart=o,i.selectionEnd=Math.min(e,i.value.length)):(e=(o=i.ownerDocument||document)&&o.defaultView||window).getSelection&&(e=e.getSelection(),t=i.textContent.length,n=Math.min(a.start,t),a=void 0===a.end?n:Math.min(a.end,t),!e.extend&&n>a&&(t=a,a=n,n=t),t=Ze(i,n),r=Ze(i,a),t&&r&&(1!==e.rangeCount||e.anchorNode!==t.node||e.anchorOffset!==t.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((o=o.createRange()).setStart(t.node,t.offset),e.removeAllRanges(),n>a?(e.addRange(o),e.extend(r.node,r.offset)):(o.setEnd(r.node,r.offset),e.addRange(o))))),o=[];for(e=i;e=e.parentNode;)1===e.nodeType&&o.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;iPk||(e.current=$k[Pk],$k[Pk]=null,Pk--)}function Tt(e,t){Pk++,$k[Pk]=e.current,e.current=t}function It(e,t){var n,r,o,i=e.type.contextTypes;if(!i)return Nk;if((n=e.stateNode)&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;for(o in r={},i)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function At(e){return null!=e.childContextTypes}function Rt(){Nt(Ik),Nt(Tk)}function Ft(e,t,n){if(Tk.current!==Nk)throw Error(f(168));Tt(Tk,t),Tt(Ik,n)}function Mt(e,t,n){var r,o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(r in o=o.getChildContext())if(!(r in t))throw Error(f(108,S(e)||"Unknown",r));return Yv({},n,o)}function Lt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nk,Ak=Tk.current,Tt(Tk,e),Tt(Ik,Ik.current),!0}function zt(e,t,n){var r=e.stateNode;if(!r)throw Error(f(169));n?(e=Mt(e,t,Ak),r.__reactInternalMemoizedMergedChildContext=e,Nt(Ik),Nt(Tk),Tt(Tk,e)):Nt(Ik),Tt(Ik,n)}function Bt(e){null===Rk?Rk=[e]:Rk.push(e)}function Ht(){var e,t,n,r;if(!Mk&&null!==Rk){Mk=!0,e=0,t=A_;try{for(n=Rk,A_=1;e>=a,o-=a,Gk=1<<32-$_(t)+o|n<g?(h=f,f=null):h=f.sibling,null===(b=p(o,f,s[g],l))){null===f&&(f=h);break}e&&f&&null===b.alternate&&t(o,f),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,f=h}if(g===s.length)return n(o,f),Yk&&Ut(o,g),c;if(null===f){for(;gg?(h=u,u=null):h=u.sibling,null===(y=p(o,u,b.value,l))){null===u&&(u=h);break}e&&u&&null===y.alternate&&t(o,u),a=i(y,a,g),null===c?_=y:c.sibling=y,c=y,u=h}if(b.done)return n(o,u),Yk&&Ut(o,g),_;if(null===u){for(;!b.done;g++,b=s.next())null!==(b=d(o,b.value,l))&&(a=i(b,a,g),null===c?_=b:c.sibling=b,c=b);return Yk&&Ut(o,g),_}for(u=r(o,u);!b.done;g++,b=s.next())null!==(b=m(u,o,g,b.value,l))&&(e&&null!==b.alternate&&u.delete(null===b.key?g:b.key),a=i(b,a,g),null===c?_=b:c.sibling=b,c=b);return e&&u.forEach((function(e){return t(o,e)})),Yk&&Ut(o,g),_}(l,c,u,g);En(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=ni(u,l.mode,g)).return=l,l=c),a(l)):n(l,c)}}function jn(e){if(e===cx)throw Error(f(174));return e}function $n(e,t){switch(Tt(px,t),Tt(dx,e),Tt(ux,cx),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:H(null,"");break;default:t=H(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Nt(ux),Tt(ux,t)}function Pn(){Nt(ux),Nt(dx),Nt(px)}function Nn(e){var t,n;jn(px.current),(t=jn(ux.current))!==(n=H(t,e.type))&&(Tt(dx,e),Tt(ux,n))}function Tn(e){dx.current===e&&(Nt(ux),Nt(dx))}function In(e){var t,n;for(t=e;null!==t;){if(13===t.tag){if(null!==(n=t.memoizedState)&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function An(){for(var e=0;er?r:4,e(!0),n=hx.transition,hx.transition={};try{e(!1),t()}finally{A_=r,hx.transition=n}}function mr(){return Bn().memoizedState}function gr(e,t,n){var r=_o(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?yr(t,n):null!==(n=un(e,t,n,r))&&(wo(n,e,r,vo()),vr(n,t,r))}function hr(e,t,n){var r,o,i,a,s=_o(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))yr(t,l);else{if(r=e.alternate,0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{if(i=r(o=t.lastRenderedState,n),l.hasEagerState=!0,l.eagerState=i,Kw(i,o))return null===(a=t.interleaved)?(l.next=l,cn(t)):(l.next=a.next,a.next=l),void(t.interleaved=l)}catch(c){}null!==(n=un(e,t,l,s))&&(wo(n,e,s,l=vo()),vr(n,t,s))}}function br(e){var t=e.alternate;return e===yx||null!==t&&t===yx}function yr(e,t){kx=wx=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vr(e,t,n){if(0!=(4194240&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,he(e,n)}}function _r(e,t){var n,r,o;try{n="",r=t;do{n+=k(r),r=r.return}while(r);o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function wr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function kr(e,t,n){(n=mn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){uS||(uS=!0,dS=r)},n}function xr(e,t,n){var r,o,i;return(n=mn(-1,n)).tag=3,"function"==typeof(r=e.type.getDerivedStateFromError)&&(o=t.value,n.payload=function(){return r(o)},n.callback=function(){}),null!==(i=e.stateNode)&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===pS?pS=new Set([this]):pS.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Sr(e,t,n){var r,o=e.pingCache;null===o?(o=e.pingCache=new jx).set(t,r=new Set):void 0===(r=o.get(t))&&o.set(t,r=new Set),r.has(n)||(r.add(n),e=Wo.bind(null,e,t,n),t.then(e,e))}function Cr(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Er(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=mn(-1,1)).tag=2,gn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function Dr(e,t,n,r){t.child=null===e?lx(t,null,n,r):sx(t,e.child,n,r)}function Or(e,t,n,r,o){n=n.render;var i=t.ref;return sn(t,o),r=Mn(e,t,n,r,i,o),n=Ln(),null===e||Px?(Yk&&n&&Vt(t),t.flags|=1,Dr(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function jr(e,t,n,r,o){var i;return null===e?"function"!=typeof(i=n.type)||Qo(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,$r(e,t,i,r,o)):(i=e.child,0==(e.lanes&o)&&(n=null!==(n=n.compare)?n:Qe)(i.memoizedProps,r)&&e.ref===t.ref?Gr(e,t,o):(t.flags|=1,(e=Jo(i,r)).ref=t.ref,e.return=t,t.child=e))}function $r(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Qe(i,r)&&e.ref===t.ref){if(Px=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Gr(e,t,o);0!=(131072&e.flags)&&(Px=!0)}}return Tr(e,t,n,r,o)}function Pr(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(Zx,Jx),Jx|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tt(Zx,Jx),Jx|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Tt(Zx,Jx),Jx|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Tt(Zx,Jx),Jx|=r;return Dr(e,t,o,n),t.child}function Nr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tr(e,t,n,r,o){var i=At(n)?Ak:Tk.current;return i=It(t,i),sn(t,o),n=Mn(e,t,n,r,i,o),r=Ln(),null===e||Px?(Yk&&r&&Vt(t),t.flags|=1,Dr(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gr(e,t,o))}function Ir(e,t,n,r,o){var i,a,s,l,c,u,d,p,f,m;return At(n)?(i=!0,Lt(t)):i=!1,sn(t,o),null===t.stateNode?(Vr(e,t),kn(t,n,r),Sn(t,n,r,o),r=!0):null===e?((a=t.stateNode).props=s=t.memoizedProps,l=a.context,c="object"==typeof(c=n.contextType)&&null!==c?ln(c):It(t,c=At(n)?Ak:Tk.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&xn(t,a,r,c),ox=!1,a.state=p=t.memoizedState,yn(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Ik.current||ox?("function"==typeof u&&(_n(t,n,u,r),l=t.memoizedState),(s=ox||wn(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)):(a=t.stateNode,fn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:nn(t.type,s),a.props=c,d=t.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ln(l):It(t,l=At(n)?Ak:Tk.current),(u="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&xn(t,a,r,l),ox=!1,a.state=p=t.memoizedState,yn(t,r,a,o),m=t.memoizedState,s!==d||p!==m||Ik.current||ox?("function"==typeof f&&(_n(t,n,f,r),m=t.memoizedState),(c=ox||wn(t,n,c,r,p,m,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)),Ar(e,t,n,r,i,o)}function Ar(e,t,n,r,o,i){var a,s;return Nr(e,t),a=0!=(128&t.flags),r||a?(r=t.stateNode,$x.current=t,s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render(),t.flags|=1,null!==e&&a?(t.child=sx(t,e.child,null,i),t.child=sx(t,null,s,i)):Dr(e,t,s,i),t.memoizedState=r.state,o&&zt(t,n,!0),t.child):(o&&zt(t,n,!1),Gr(e,t,i))}function Rr(e){var t=e.stateNode;t.pendingContext?Ft(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ft(0,t.context,!1),$n(e,t.containerInfo)}function Fr(e,t,n,r,o){return en(),tn(o),t.flags|=256,Dr(e,t,n,r),t.child}function Mr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lr(e,t,n){var r,o,i=t.pendingProps,a=fx.current,s=!1,l=0!=(128&t.flags);return(r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Tt(fx,1&a),null===e?(Yt(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(t.lanes=0==(1&t.mode)?1:"$!"===e.data?8:1073741824,null):(l=i.children,e=i.fallback,s?(s=t.child,l={mode:"hidden",children:l},0==(1&(i=t.mode))&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ti(l,i,0,null),e=ei(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Mr(n),t.memoizedState=Nx,e):zr(t,l))):null!==(a=e.memoizedState)&&null!==(r=a.dehydrated)?function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Br(e,t,a,r=wr(Error(f(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,r=ti({mode:"visible",children:r.children},o=t.mode,0,null),(i=ei(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&sx(t,e.child,null,a),t.child.memoizedState=Mr(a),t.memoizedState=Nx,i);if(0==(1&t.mode))return Br(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Br(e,t,a,r=wr(i=Error(f(419)),r,void 0))}if(s=0!=(a&e.childLanes),Px||s){if(null!==(r=Kx)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,dn(e,o),wo(r,e,o,-1))}return Io(),Br(e,t,a,r=wr(Error(f(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Go.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Kk=Ct(o.nextSibling),Xk=t,Yk=!0,Qk=null,null!==e&&(Uk[Wk++]=Gk,Uk[Wk++]=qk,Uk[Wk++]=Vk,Gk=e.id,qk=e.overflow,Vk=t),(t=zr(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n):s?(s=i.fallback,r=(a=e.child).sibling,o={mode:"hidden",children:i.children},0==(1&(l=t.mode))&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=o,t.deletions=null):(i=Jo(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Jo(r,s):(s=ei(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Mr(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Nx,i):(e=(s=e.child).sibling,i=Jo(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i)}function zr(e,t){return(t=ti({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Br(e,t,n,r){return null!==r&&tn(r),sx(t,e.child,null,n),(e=zr(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hr(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),an(e.return,t,n)}function Ur(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Wr(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Dr(e,t,r.children,n),0!=(2&(r=fx.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hr(e,n,t);else if(19===e.tag)Hr(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Tt(fx,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===In(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ur(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===In(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ur(t,!0,n,null,i);break;case"together":Ur(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vr(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),nS|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(f(153));if(null!==t.child){for(n=Jo(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Jo(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function qr(e,t){var n,r;if(!Yk)switch(e.tailMode){case"hidden":for(t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":for(n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xr(e){var t,n=null!==e.alternate&&e.alternate.child===e.child,r=0,o=0;if(n)for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=14680064&t.subtreeFlags,o|=14680064&t.flags,t.return=e,t=t.sibling;else for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=t.subtreeFlags,o|=t.flags,t.return=e,t=t.sibling;return e.subtreeFlags|=o,e.childLanes=r,n}function Kr(e,t,n){var r,o,i,a,s,l=t.pendingProps;switch(Gt(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:case 17:return At(t.type)&&Rt(),Xr(t),null;case 3:return l=t.stateNode,Pn(),Nt(Ik),Nt(Tk),An(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(Jt(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Qk&&(Co(Qk),Qk=null))),Ix(e,t),Xr(t),null;case 5:if(Tn(t),r=jn(px.current),n=t.type,null!==e&&null!=t.stateNode)Ax(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(f(166));return Xr(t),null}if(e=jn(ux.current),Jt(t)){switch(n=t.type,o=t.memoizedProps,(l=t.stateNode)[Sk]=t,l[Ck]=o,e=0!=(1&t.mode),n){case"dialog":ut("cancel",l),ut("close",l);break;case"iframe":case"object":case"embed":ut("load",l);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=i.createElement(n,{is:l.is}):(e=i.createElement(n),"select"===n&&(i=e,l.multiple?i.multiple=!0:l.size&&(i.size=l.size))):e=i.createElementNS(e,n),e[Sk]=t,e[Ck]=l,Tx(e,t,!1,!1),t.stateNode=e;e:{switch(i=q(n,l),n){case"dialog":ut("cancel",e),ut("close",e),r=l;break;case"iframe":case"object":case"embed":ut("load",e),r=l;break;case"video":case"audio":for(r=0;rlS&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=In(i))){if(t.flags|=128,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!Yk)return Xr(t),null}else 2*w_()-o.renderingStartTime>lS&&1073741824!==n&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=o.last)?n.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(o.rendering=t=o.tail,o.tail=t.sibling,o.renderingStartTime=w_(),t.sibling=null,n=fx.current,Tt(fx,l?1&n|2:1&n),t):(Xr(t),null);case 22:case 23:return $o(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&0!=(1&t.mode)?0!=(1073741824&Jx)&&(Xr(t),6&t.subtreeFlags&&(t.flags|=8192)):Xr(t),null;case 24:case 25:return null}throw Error(f(156,t.tag))}function Yr(e,t){switch(Gt(t),t.tag){case 1:return At(t.type)&&Rt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Pn(),Nt(Ik),Nt(Tk),An(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Tn(t),null;case 13:if(Nt(fx),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(f(340));en()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Nt(fx),null;case 4:return Pn(),null;case 10:return on(t.type._context),null;case 22:case 23:return $o(),null;default:return null}}function Qr(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Uo(e,t,r)}else n.current=null}function Jr(e,t,n){try{n()}catch(r){Uo(e,t,r)}}function Zr(e,t,n){var r,o,i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){r=i=i.next;do{(r.tag&e)===e&&(o=r.destroy,r.destroy=void 0,void 0!==o&&Jr(t,n,o)),r=r.next}while(r!==i)}}function eo(e,t){var n;if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){n=t=t.next;do{(n.tag&e)===e&&(n.destroy=(0,n.create)()),n=n.next}while(n!==t)}}function to(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function no(e){var t=e.alternate;null!==t&&(e.alternate=null,no(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[Sk],delete t[Ck],delete t[Dk],delete t[Ok],delete t[jk]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ro(e){return 5===e.tag||3===e.tag||4===e.tag}function oo(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ro(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function io(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=wt));else if(4!==r&&null!==(e=e.child))for(io(e,t,n),e=e.sibling;null!==e;)io(e,t,n),e=e.sibling}function ao(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ao(e,t,n),e=e.sibling;null!==e;)ao(e,t,n),e=e.sibling}function so(e,t,n){for(n=n.child;null!==n;)lo(e,t,n),n=n.sibling}function lo(e,t,n){var r,o,i,a;if(j_&&"function"==typeof j_.onCommitFiberUnmount)try{j_.onCommitFiberUnmount(O_,n)}catch(s){}switch(n.tag){case 5:Mx||Qr(n,t);case 6:r=Hx,o=Ux,Hx=null,so(e,t,n),Ux=o,null!==(Hx=r)&&(Ux?(n=n.stateNode,8===(e=Hx).nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Hx.removeChild(n.stateNode));break;case 18:null!==Hx&&(Ux?(n=n.stateNode,8===(e=Hx).nodeType?St(e.parentNode,n):1===e.nodeType&&St(e,n),Ce(e)):St(Hx,n.stateNode));break;case 4:r=Hx,o=Ux,Hx=n.stateNode.containerInfo,Ux=!0,so(e,t,n),Hx=r,Ux=o;break;case 0:case 11:case 14:case 15:if(!Mx&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{a=(i=o).destroy,i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Jr(n,t,a),o=o.next}while(o!==r)}so(e,t,n);break;case 1:if(!Mx&&(Qr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Uo(n,t,s)}so(e,t,n);break;case 21:so(e,t,n);break;case 22:1&n.mode?(Mx=(r=Mx)||null!==n.memoizedState,so(e,t,n),Mx=r):so(e,t,n);break;default:so(e,t,n)}}function co(e){var t,n=e.updateQueue;null!==n&&(e.updateQueue=null,null===(t=e.stateNode)&&(t=e.stateNode=new Lx),n.forEach((function(n){var r=qo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})))}function uo(e,t){var n,r,o,i,a,s,l=t.deletions;if(null!==l)for(n=0;no&&(o=a),r&=~i;if(r=o,10<(r=(120>(r=w_()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wx(r/1960))-r)){e.timeoutHandle=vk(zo.bind(null,e,aS,cS),r);break}zo(e,aS,cS);break;default:throw Error(f(329))}}}return ko(e,w_()),e.callbackNode===n?xo.bind(null,e):null}function So(e,t){var n=iS;return e.current.memoizedState.isDehydrated&&(Po(e,t).flags|=256),2!==(e=Ao(e,t))&&(t=aS,aS=n,null!==t&&Co(t)),e}function Co(e){null===aS?aS=e:aS.push.apply(aS,e)}function Eo(e,t){for(t&=~oS,e.suspendedLanes|=t&=~rS,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===mS)r=!1;else{if(e=mS,mS=null,gS=0,0!=(6&Xx))throw Error(f(331));for(o=Xx,Xx|=4,zx=e.current;null!==zx;){if(a=(i=zx).child,0!=(16&zx.flags)&&null!==(s=i.deletions)){for(l=0;lw_()-sS?Po(e,0):oS|=n),ko(e,t)}function Vo(e,t){0===t&&(0==(1&e.mode)?t=1:(t=I_,0==(130023424&(I_<<=1))&&(I_=4194304)));var n=vo();null!==(e=dn(e,t))&&(ge(e,t,n),ko(e,n))}function Go(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Vo(e,n)}function qo(e,t){var n,r,o=0;switch(e.tag){case 13:n=e.stateNode,null!==(r=e.memoizedState)&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(f(314))}null!==n&&n.delete(t),Vo(e,o)}function Xo(e,t){return b_(e,t)}function Ko(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yo(e,t,n,r){return new Ko(e,t,n,r)}function Qo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jo(e,t){var n=e.alternate;return null===n?((n=Yo(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zo(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Qo(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Mv:return ei(n.children,o,i,t);case Lv:a=8,o|=8;break;case zv:return(e=Yo(12,n,t,2|o)).elementType=zv,e.lanes=i,e;case Wv:return(e=Yo(13,n,t,o)).elementType=Wv,e.lanes=i,e;case Vv:return(e=Yo(19,n,t,o)).elementType=Vv,e.lanes=i,e;case Xv:return ti(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Bv:a=10;break e;case Hv:a=9;break e;case Uv:a=11;break e;case Gv:a=14;break e;case qv:a=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,""))}return(t=Yo(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function ei(e,t,n,r){return(e=Yo(7,e,r,t)).lanes=n,e}function ti(e,t,n,r){return(e=Yo(22,e,r,t)).elementType=Xv,e.lanes=n,e.stateNode={isHidden:!1},e}function ni(e,t,n){return(e=Yo(6,e,null,t)).lanes=n,e}function ri(e,t,n){return(t=Yo(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oi(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=me(0),this.expirationTimes=me(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=me(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ii(e,t,n,r,o,i,a,s,l){return e=new oi(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Yo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pn(i),e}function ai(e){var t,n;if(!e)return Nk;e:{if(oe(e=e._reactInternals)!==e||1!==e.tag)throw Error(f(170));t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(At(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(f(171))}return 1===e.tag&&At(n=e.type)?Mt(e,n,t):t}function si(e,t,n,r,o,i,a,s,l){return(e=ii(n,r,!0,e,0,i,0,s,l)).context=ai(null),n=e.current,(i=mn(r=vo(),o=_o(n))).callback=null!=t?t:null,gn(n,i,o),e.current.lanes=o,ge(e,o,r),ko(e,r),e}function li(e,t,n,r){var o=t.current,i=vo(),a=_o(o);return n=ai(n),null===t.context?t.context=n:t.pendingContext=n,(t=mn(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=gn(o,t,a))&&(wo(e,o,a,i),hn(e,o,a)),a}function ci(e){return(e=e.current).child?e.child.stateNode:null}function ui(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(n[o]=e[o]);return n}(e,t),Object.getOwnPropertySymbols)for(i=Object.getOwnPropertySymbols(e),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Di(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Oi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ji(e,t){var n,r;for(n=0;n2||Vi(oE)>3?"":" "}function Yi(e,t){for(;--t&&Bi()&&!(oE<48||oE>102||oE>57&&oE<65||oE>70&&oE<97););return Wi(e,Ui()+(t<6&&32==Hi()&&32==Bi()))}function Qi(e){for(;Bi();)switch(oE){case e:return rE;case 34:case 39:34!==e&&39!==e&&Qi(oE);break;case 40:41===e&&Qi(e);break;case 92:Bi()}return rE}function Ji(e,t){for(;Bi()&&e+oE!==57&&(e+oE!==84||47!==Hi()););return"/*"+Wi(t,rE-1)+"*"+JC(47===e?e:Bi())}function Zi(e){for(;!Vi(Hi());)Bi();return Wi(e,rE)}function ea(e){return qi(ta("",null,null,null,[""],e=Gi(e),0,[0],e))}function ta(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,g=1,h=1,b=1,y=0,v="",_=o,w=i,k=r,x=v;h;)switch(m=y,y=Bi()){case 40:if(108!=m&&58==Ii(x,d-1)){-1!=Ti(x+=Ni(Xi(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:x+=Xi(y);break;case 9:case 10:case 13:case 32:x+=Ki(m);break;case 92:x+=Yi(Ui()-1,7);continue;case 47:switch(Hi()){case 42:case 47:Mi(ra(Ji(Bi(),Ui()),t,n),l);break;default:x+="/"}break;case 123*g:s[c++]=Ri(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:-1==b&&(x=Ni(x,/\f/g,"")),f>0&&Ri(x)-d&&Mi(f>32?oa(x+";",r,n,d-1):oa(Ni(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(Mi(k=na(x,t,n,c,u,o,s,v,_=[],w=[],d),i),123===y)if(0===u)ta(x,t,k,k,_,i,d,s,w);else switch(99===p&&110===Ii(x,3)?100:p){case 100:case 108:case 109:case 115:ta(e,k,k,r&&Mi(na(e,k,k,0,0,o,s,v,o,_=[],d),w),o,w,d,s,r?_:w);break;default:ta(x,k,k,k,[""],w,0,s,w)}}c=u=f=0,g=b=1,v=x="",d=a;break;case 58:d=1+Ri(x),f=m;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(oE=rE>0?Ii(iE,--rE):0,tE--,10===oE&&(tE=1,eE--),oE))continue;switch(x+=JC(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Ri(x)-1)*b,b=1;break;case 64:45===Hi()&&(x+=Xi(Bi())),p=Hi(),u=d=Ri(v=x+=Zi(Ui())),y++;break;case 45:45===m&&2==Ri(x)&&(g=0)}}return i}function na(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,m,g,h,b=o-1,y=0===o?i:[""],v=Fi(y);for(d=0,p=0,f=0;d0?y[m]+" "+g:Ni(g,/&\f/g,y[m])))&&(l[f++]=h);return Li(e,t,n,0===o?GC:s,l,c,u)}function ra(e,t,n){return Li(e,t,n,VC,JC(oE),Ai(e,2,-2),0)}function oa(e,t,n,r){return Li(e,t,n,qC,Ai(e,0,r),Ai(e,r+1,-1),r)}function ia(e,t){var n,r="",o=Fi(e);for(n=0;n6)switch(Ii(e,t+1)){case 109:if(45!==Ii(e,t+4))break;case 102:return Ni(e,/(.+:)(.+)-([^]+)/,"$1"+WC+"$2-$3$1"+UC+(108==Ii(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ti(e,"stretch")?la(Ni(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ii(e,t+1))break;case 6444:switch(Ii(e,Ri(e)-3-(~Ti(e,"!important")&&10))){case 107:return Ni(e,":",":"+WC)+e;case 101:return Ni(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WC+(45===Ii(e,14)?"inline-":"")+"box$3$1"+WC+"$2$3$1"+HC+"$2box$3")+e}break;case 5936:switch(Ii(e,t+11)){case 114:return WC+e+HC+Ni(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WC+e+HC+Ni(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WC+e+HC+Ni(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WC+e+HC+e+e}return e}function ca(e,t,n){var r,o,i,a;if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return xE={name:n.name,styles:n.styles,next:xE},n.name;if(void 0!==n.styles){if(void 0!==(r=n.next))for(;void 0!==r;)xE={name:r.name,styles:r.styles,next:xE},r=r.next;return n.styles+";"}return function(e,t,n){var r,o,i,a,s,l="";if(Array.isArray(n))for(r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Ea(e,t,n){var r=pv.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Da(){}function Oa(){}function ja(e,t,n){t||ID[n]||(e(!1,n),ID[n]=!0)}function $a(e,t){ja(Da,e,t)}function Pa(e,t,n){var r=arguments.length>2&&void 0!==n&&n,o=new Set;return function e(t,n,i){var a,s,l,c=arguments.length>2&&void 0!==i?i:1,u=o.has(t);if($a(!u,"Warning: There may be circular references"),u)return!1;if(t===n)return!0;if(r&&c>1)return!1;if(o.add(t),a=c+1,Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(s=0;s0&&void 0!==e?e:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):UD}function Ra(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Fa(e){return Array.from((WD.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ma(e,t){var n,r,o,i,a,s,l=arguments.length>1&&void 0!==t?t:{};if(!Ta())return null;if(n=l.csp,r=l.prepend,(o=document.createElement("style")).setAttribute(HD,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r)),null!=n&&n.nonce&&(o.nonce=null==n?void 0:n.nonce),o.innerHTML=e,a=(i=Ra(l)).firstChild,r){if("queue"===r&&(s=Fa(i).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(HD))}))).length)return i.insertBefore(o,s[s.length-1].nextSibling),o;i.insertBefore(o,a)}else i.appendChild(o);return o}function La(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Fa(Ra(n)).find((function(t){return t.getAttribute(Aa(n))===e}))}function za(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=La(e,n);r&&Ra(n).removeChild(r)}function Ba(e,t,n){var r,o,i,a,s,l=arguments.length>2&&void 0!==n?n:{};return function(e,t){var n,r=WD.get(e);r&&Ia(document,r)||(n=Ma("",t),WD.set(e,n.parentNode),e.removeChild(n))}(Ra(l),l),(r=La(t,l))?(null!==(o=l.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=l.csp)||void 0===i?void 0:i.nonce)&&(r.nonce=null===(a=l.csp)||void 0===a?void 0:a.nonce),r.innerHTML!==e&&(r.innerHTML=e),r):((s=Ma(e,l)).setAttribute(Aa(l),t),s)}function Ha(e){var t="";return Object.keys(e).forEach((function(n){var r=e[n];t+=n,r&&"object"===xi(r)?t+=Ha(r):t+=r})),t}function Ua(e){if(Array.isArray(e))return e}function Wa(){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 Va(e,t){return Ua(e)||function(e,t){var n,r,o,i,a,s,l,c=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=c){a=[],s=!0,l=!1;try{if(o=(c=c.call(e)).next,0===t){if(Object(c)!==c)return;s=!1}else for(;!(s=(n=o.call(c)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(u){l=!0,r=u}finally{try{if(!s&&null!=c.return&&(i=c.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e,t)||wa(e,t)||Wa()}function Ga(e,t,n,r,o){var i,a=pv.useContext(wZ).cache,s=[e].concat(ka(t)),l=s.join("_"),c=function(e){a.update(s,(function(t){var r=Va(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};return pv.useMemo((function(){return c()}),[l]),i=a.get(s)[1],kZ((function(){null==o||o(i)}),(function(e){return c((function(t){var n=Va(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(i)),[r+1,a]})),function(){a.update(s,(function(e){var t=Va(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0==o-1?(null==r||r(i,!1),null):[o-1,i]}))}}),[l]),i}function qa(e){return e.trim()}function Xa(e,t){return(e=t.exec(e))?e[0]:e}function Ka(e,t,n){return e.replace(t,n)}function Ya(e,t){return e.indexOf(t)}function Qa(e,t){return 0|e.charCodeAt(t)}function Ja(e,t,n){return e.slice(t,n)}function Za(e){return e.length}function es(e){return e.length}function ts(e,t){return t.push(e),e}function ns(e,t){return e.filter((function(e){return!Xa(e,t)}))}function rs(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bO,column:yO,length:a,return:"",siblings:s}}function os(e,t){return hO(rs("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function is(e){for(;e.root;)e=os(e.root,{children:[e]});ts(e,e.siblings)}function as(){return wO=_O2||us(wO)>3?"":" "}function fs(e,t){for(;--t&&as()&&!(wO<48||wO>102||wO>57&&wO<65||wO>70&&wO<97););return cs(e,ls()+(t<6&&32==ss()&&32==as()))}function ms(e){for(;as();)switch(wO){case e:return _O;case 34:case 39:34!==e&&39!==e&&ms(wO);break;case 40:41===e&&ms(e);break;case 92:as()}return _O}function gs(e,t){for(;as()&&e+wO!==57&&(e+wO!==84||47!==ss()););return"/*"+cs(t,_O-1)+"*"+gO(47===e?e:as())}function hs(e){for(;!us(ss());)as();return cs(e,_O)}function bs(e){return function(e){return kO="",e}(ys("",null,null,null,[""],e=function(e){return bO=yO=1,vO=Za(kO=e),_O=0,[]}(e),0,[0],e))}function ys(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,g=1,h=1,b=1,y=0,v="",_=o,w=i,k=r,x=v;h;)switch(m=y,y=as()){case 40:if(108!=m&&58==Qa(x,d-1)){-1!=Ya(x+=Ka(ds(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:x+=ds(y);break;case 9:case 10:case 13:case 32:x+=ps(m);break;case 92:x+=fs(ls()-1,7);continue;case 47:switch(ss()){case 42:case 47:ts(_s(gs(as(),ls()),t,n,l),l);break;default:x+="/"}break;case 123*g:s[c++]=Za(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:-1==b&&(x=Ka(x,/\f/g,"")),f>0&&Za(x)-d&&ts(f>32?ws(x+";",r,n,d-1,l):ws(Ka(x," ","")+";",r,n,d-2,l),l);break;case 59:x+=";";default:if(ts(k=vs(x,t,n,c,u,o,s,v,_=[],w=[],d,i),i),123===y)if(0===u)ys(x,t,k,k,_,i,d,s,w);else switch(99===p&&110===Qa(x,3)?100:p){case 100:case 108:case 109:case 115:ys(e,k,k,r&&ts(vs(e,k,k,0,0,o,s,v,o,_=[],d,w),w),o,w,d,s,r?_:w);break;default:ys(x,k,k,k,[""],w,0,s,w)}}c=u=f=0,g=b=1,v=x="",d=a;break;case 58:d=1+Za(x),f=m;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(wO=_O>0?Qa(kO,--_O):0,yO--,10===wO&&(yO=1,bO--),wO))continue;switch(x+=gO(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Za(x)-1)*b,b=1;break;case 64:45===ss()&&(x+=ds(as())),p=ss(),u=d=Za(v=x+=hs(ls())),y++;break;case 45:45===m&&2==Za(x)&&(g=0)}}return i}function vs(e,t,n,r,o,i,a,s,l,c,u,d){var p,f,m,g,h,b,y=o-1,v=0===o?i:[""],_=es(v);for(p=0,f=0,m=0;p0?v[g]+" "+h:Ka(h,/&\f/g,v[g])))&&(l[m++]=b);return rs(e,t,n,0===o?cO:s,l,c,u,d)}function _s(e,t,n,r){return rs(e,t,n,lO,gO(wO),Ja(e,2,-2),0,r)}function ws(e,t,n,r,o){return rs(e,t,n,uO,Ja(e,0,r),Ja(e,r+1,-1),r,o)}function ks(e,t,n){switch(function(e,t){return 45^Qa(e,0)?(((t<<2^Qa(e,0))<<2^Qa(e,1))<<2^Qa(e,2))<<2^Qa(e,3):0}(e,t)){case 5103:return sO+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return sO+e+e;case 4789:return aO+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return sO+e+aO+e+iO+e+e;case 5936:switch(Qa(e,t+11)){case 114:return sO+e+iO+Ka(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sO+e+iO+Ka(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sO+e+iO+Ka(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return sO+e+iO+e+e;case 6165:return sO+e+iO+"flex-"+e+e;case 5187:return sO+e+Ka(e,/(\w+).+(:[^]+)/,sO+"box-$1$2"+iO+"flex-$1$2")+e;case 5443:return sO+e+iO+"flex-item-"+Ka(e,/flex-|-self/g,"")+(Xa(e,/flex-|baseline/)?"":iO+"grid-row-"+Ka(e,/flex-|-self/g,""))+e;case 4675:return sO+e+iO+"flex-line-pack"+Ka(e,/align-content|flex-|-self/g,"")+e;case 5548:return sO+e+iO+Ka(e,"shrink","negative")+e;case 5292:return sO+e+iO+Ka(e,"basis","preferred-size")+e;case 6060:return sO+"box-"+Ka(e,"-grow","")+sO+e+iO+Ka(e,"grow","positive")+e;case 4554:return sO+Ka(e,/([^-])(transform)/g,"$1"+sO+"$2")+e;case 6187:return Ka(Ka(Ka(e,/(zoom-|grab)/,sO+"$1"),/(image-set)/,sO+"$1"),e,"")+e;case 5495:case 3959:return Ka(e,/(image-set\([^]*)/,sO+"$1$`$1");case 4968:return Ka(Ka(e,/(.+:)(flex-)?(.*)/,sO+"box-pack:$3"+iO+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+sO+e+e;case 4200:if(!Xa(e,/flex-|baseline/))return iO+"grid-column-align"+Ja(e,t)+e;break;case 2592:case 3360:return iO+Ka(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Xa(e.props,/grid-\w+-end/)}))?~Ya(e+(n=n[t].value),"span")?e:iO+Ka(e,"-start","")+e+iO+"grid-row-span:"+(~Ya(n,"span")?Xa(n,/\d+/):+Xa(n,/\d+/)-+Xa(e,/\d+/))+";":iO+Ka(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Xa(e.props,/grid-\w+-start/)}))?e:iO+Ka(Ka(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ka(e,/(.+)-inline(.+)/,sO+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Za(e)-1-t>6)switch(Qa(e,t+1)){case 109:if(45!==Qa(e,t+4))break;case 102:return Ka(e,/(.+:)(.+)-([^]+)/,"$1"+sO+"$2-$3$1"+aO+(108==Qa(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ya(e,"stretch")?ks(Ka(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ka(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return iO+n+":"+r+s+(o?iO+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===Qa(e,t+6))return Ka(e,":",":"+sO)+e;break;case 6444:switch(Qa(e,45===Qa(e,14)?18:11)){case 120:return Ka(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+sO+(45===Qa(e,14)?"inline-":"")+"box$3$1"+sO+"$2$3$1"+iO+"$2box$3")+e;case 100:return Ka(e,":",":"+iO)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ka(e,"scroll-","scroll-snap-")+e}return e}function xs(e,t){var n,r="";for(n=0;n-1&&!e.return)switch(e.type){case uO:return void(e.return=ks(e.value,e.length,n));case pO:return xs([os(e,{value:Ka(e.value,"@","@"+sO)})],r);case cO:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Xa(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":is(os(e,{props:[Ka(t,/:(read-\w+)/,":"+aO+"$1")]})),is(os(e,{props:[t]})),hO(e,{props:ns(n,r)});break;case"::placeholder":is(os(e,{props:[Ka(t,/:(plac\w+)/,":"+sO+"input-$1")]})),is(os(e,{props:[Ka(t,/:(plac\w+)/,":"+aO+"$1")]})),is(os(e,{props:[Ka(t,/:(plac\w+)/,iO+"input-$1")]})),is(os(e,{props:[t]})),hO(e,{props:ns(n,r)})}return""}))}}function Es(e){return xs(bs(e),Ss).replace(/\{%%%\:[^;];}/g,";")}function Ds(){return null}function Os(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b=e.token,y=e.path,v=e.hashId,_=e.layer,w=e.nonce,k=pv.useContext(wZ),x=k.autoClear;return n=k.defaultCache,r=k.hashPriority,o=k.container,i=k.ssrInline,a=k.transformers,s=k.linters,l=k.cache,u=[c=b._tokenKey].concat(ka(y)),d=DO,p=Ga("style",u,(function(){var e,n,o,i,l,d,p,f,m=u.join("|");return function(e){var t,n,r;return CO||(CO={},Ta()&&((t=document.createElement("div")).className=xO,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t),(getComputedStyle(t).content||"").replace(/^"/,"").replace(/"$/,"").split(";").forEach((function(e){var t=Va(e.split(":"),2);CO[t[0]]=t[1]})),(n=document.querySelector("style[".concat(xO,"]")))&&(EO=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(t))),!!CO[e]}(m)&&(e=function(e){var t,n=CO[e],r=null;return n&&Ta()&&(EO?r=SO:(t=document.querySelector("style[".concat(MD,'="').concat(CO[e],'"]')))?r=t.innerHTML:delete CO[e]),[r,n]}(m),o=(n=Va(e,2))[0])?[o,c,n[1],{}]:(i=t(),d=(l=Va(jO(i,{hashId:v,hashPriority:r,layer:_,path:y.join("-"),transformers:a,linters:s}),2))[1],p=Es(l[0]),f=function(e,t){return Ca("".concat(e.join("%")).concat(t))}(u,p),[p,c,f,d])}),(function(e,t){var n=Va(e,3);(t||x)&&DO&&za(n[2],{mark:MD})}),(function(e){var t,n,r,i,a,s=Va(e,4),u=s[0];t=s[2],n=s[3],d&&u!==SO&&(r={mark:MD,prepend:"queue",attachTo:o},(i="function"==typeof w?w():w)&&(r.csp={nonce:i}),(a=Ba(u,t,r))[LD]=l.instanceId,a.setAttribute(FD,c),Object.keys(n).forEach((function(e){Ba(Es(n[e]),"_effect-".concat(e),r)})))})),f=Va(p,3),m=f[0],g=f[1],h=f[2],function(e){var t,r;return t=i&&!d&&n?pv.createElement("style",fa({},(Ci(r={},FD,g),Ci(r,MD,h),r),{dangerouslySetInnerHTML:{__html:m}})):pv.createElement(Ds,null),pv.createElement(pv.Fragment,null,t,e)}}function js(e){var t=Array.isArray(e)?e:[e];return IO.has(t)||IO.set(t,new TO(t)),IO.get(t)}function $s(e){return e.notSplit=!0,e}function Ps(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Ns(e){var t,n;for(t=1;t1&&void 0!==t?t:{},r=[];return zJ.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Ls(e)):pD.isFragment(e)&&e.props?r=r.concat(Ls(e.props.children,n)):r.push(e))})),r}function zs(e,t){"function"==typeof e?e(t):"object"===xi(e)&&e&&"current"in e&&(e.current=t)}function Bs(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n3&&void 0!==r&&r;return t.length&&o&&void 0===n&&!el(e,t.slice(0,-1))?e:tl(e,t,n,o)}function rl(e){return Array.isArray(e)?[]:{}}function ol(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function ul(e){return e<=1?"".concat(100*Number(e),"%"):e}function dl(e){return 1===e.length?"0"+e:String(e)}function pl(e,t,n){var r,o,i,a,s,l;if(e=sl(e,255),t=sl(t,255),n=sl(n,255),i=0,a=0,s=((r=Math.max(e,t,n))+(o=Math.min(e,t,n)))/2,r===o)a=0,i=0;else{switch(l=r-o,a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ml(e,t,n){var r,o,i,a,s,l;if(e=sl(e,255),t=sl(t,255),n=sl(n,255),i=0,a=r=Math.max(e,t,n),s=r-(o=Math.min(e,t,n)),l=0===r?0:s/r,r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-xj*t:Math.round(e.h)+xj*t:n?Math.round(e.h)+xj*t:Math.round(e.h)-xj*t)<0?r+=360:r>=360&&(r-=360),r}function xl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Sj*t:t===jj?e.s+Sj:e.s+Cj*t)>1&&(r=1),n&&t===Oj&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Sl(e,t,n){var r;return(r=n?e.v+Ej*t:e.v-Dj*t)>1&&(r=1),Number(r.toFixed(2))}function Cl(e,t){var n,r,o,i,a,s,l=arguments.length>1&&void 0!==t?t:{},c=[],u=yl(e);for(n=Oj;n>0;n-=1)o=wl(yl({h:kl(r=_l(u),n,!0),s:xl(r,n,!0),v:Sl(r,n,!0)})),c.push(o);for(c.push(wl(u)),i=1;i<=jj;i+=1)s=wl(yl({h:kl(a=_l(u),i),s:xl(a,i),v:Sl(a,i)})),c.push(s);return"dark"===l.theme?$j.map((function(e){var t,n,r,o=e.index,i=e.opacity;return wl((t=yl(l.backgroundColor||"#141414"),{r:((n=yl(c[o])).r-t.r)*(r=100*i/100)+t.r,g:(n.g-t.g)*r+t.g,b:(n.b-t.b)*r+t.b}))})):c}function El(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(o),f=n(i),m=n(a),g=n(s),h=r(c,u),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},h),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new kj("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function Dl(e){const t=Object.keys(FZ).map((t=>{const n=Cl(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],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),El(e,{generateColorPalettes:HZ,generateNeutralColorPalettes:UZ})),WZ(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)),RZ(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},LZ(r))}(e))}function Ol(e){return e>=0&&e<=255}function jl(e,t){const{r:n,g:r,b:o,a:i}=new kj(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new kj(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-s*(1-c))/c),i=Math.round((o-l*(1-c))/c);if(Ol(e)&&Ol(t)&&Ol(i))return new kj({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new kj({r:n,g:r,b:o,a:1}).toRgbString()}function $l(e){const{override:t}=e,n=Aj(e,["override"]),r=Object.assign({},t);Object.keys(MZ).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:jl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:jl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:jl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:jl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\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 kj("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new kj("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new kj("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)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function Pl(){const{token:e,hashed:t,theme:n,components:r}=zJ.useContext(qZ),o=`${AZ}-${t||""}`,i=n||VZ,[a,s]=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:{},o=pv.useContext(wZ).cache.instanceId,i=r.salt,a=void 0===i?"":i,s=r.override,l=void 0===s?ZD:s,c=r.formatToken,u=pv.useMemo((function(){return Object.assign.apply(Object,[{}].concat(ka(t)))}),[t]),d=pv.useMemo((function(){return Ha(u)}),[u]),p=pv.useMemo((function(){return Ha(l)}),[l]),f=Ga("token",[a,e.id,d,p],(function(){var t,n=rO(u,l,e,c),r=function(e,t){return Ca("".concat(t,"_").concat(Ha(e)))}(n,a);return n._tokenKey=r,function(e){tO.set(e,(tO.get(e)||0)+1)}(r),t="".concat(eO,"-").concat(Ca(r)),n._hashId=t,[n,t]}),(function(e){!function(e,t){var n,r;tO.set(e,(tO.get(e)||0)-1),r=(n=Array.from(tO.keys())).filter((function(e){return(tO.get(e)||0)<=0})),n.length-r.length>nO&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(FD,'="').concat(e,'"]')).forEach((function(e){var n;e[LD]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),tO.delete(e)}))}(e[0]._tokenKey,o)}));return f}(i,[MZ,e],{salt:o,override:Object.assign({override:e},r),formatToken:$l});return[i,a,t?s:""]}function Nl(e){var t,n=pv.useRef();return n.current=e,t=pv.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),o0=!0,r}function Fl(){}function Ml(e,t,n,r){return o=>{const[i,a,s]=Pl(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=pv.useContext(KZ),d=l(),p={theme:i,token:a,hashId:s,nonce:()=>null==u?void 0:u.nonce};return Os(Object.assign(Object.assign({},p),{path:["Shared",d]}),(()=>[{"&":ZZ(a)}])),[Os(Object.assign(Object.assign({},p),{path:[e,o,c]}),(()=>{const{token:i,flush:l}=function(e){let t,n=e,r=Fl;return r0&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o0&&t.add(n),e[n])}),r=()=>{Array.from(t)}),{token:n,keys:t,flush:r}}(a),u=Object.assign({},a[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==u?void 0:u[t])||(null==u?void 0:u[n]))&&(null!==(r=u[n])&&void 0!==r||(u[n]=null==u?void 0:u[t]))}))}const p="function"==typeof n?n(Rl(i,null!=u?u:{})):n,f=Object.assign(Object.assign({},p),u),m=Rl(i,{componentCls:`.${o}`,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},f),g=t(m,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:u});return l(e,f),[!1===(null==r?void 0:r.resetStyle)?null:e0(a,o),g]})),s]}}function Ll(e,t){return IZ.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}function zl(e){var t=e.children,n=Ei(e,Rj);return pv.createElement(Fj.Provider,{value:n},t)}function Bl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Hl(e){var t,n,r,o,i;if(Jj[e])return Jj[e];if(t=Kj[e])for(r=(n=Object.keys(t)).length,o=0;o0&&void 0!==e?e:[]).map(Vl)}function ql(e){const{children:t}=e,[,n]=Pl(),{motion:r}=n,o=pv.useRef(!1);return o.current=o.current||!1===r,o.current?pv.createElement(zl,{motion:r},t):t}function Xl(){return g0||"ant"}function Kl(){return h0||XZ}function Yl(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ql(e){return function(e){return Yl(e)!==(null==e?void 0:e.ownerDocument)}(e)?Yl(e):null}function Jl(e){return"object"===xi(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===xi(e.icon)||"function"==typeof e.icon)}function Zl(e){var t=arguments.length>0&&void 0!==e?e:{};return Object.keys(t).reduce((function(e,n){var r=t[n];return"class"===n?(e.className=r,delete e.class):e[n]=r,e}),{})}function ec(e,t,n){return zJ.createElement(e.tag,n?Sa(Sa({key:t},Zl(e.attrs)),n):Sa({key:t},Zl(e.attrs)),(e.children||[]).map((function(n,r){return ec(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function tc(e){return Cl(e)[0]}function nc(e){return e?Array.isArray(e)?e:[e]:[]}function rc(e){var t=Va(nc(e),2);return k0.setTwoToneColors({primaryColor:t[0],secondaryColor:t[1]})}function oc(e,t){return 0===e.indexOf(t)}function ic(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t;return n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:Sa({},o),r={},Object.keys(e).forEach((function(t){(n.aria&&("role"===t||oc(t,k$))||n.data&&oc(t,x$)||n.attr&&w$.includes(t))&&(r[t]=e[t])})),r}function ac(e){return e&&T0(e)&&e.type===pv.Fragment}function sc(e,t){return function(e,t,n){return T0(e)?pv.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function lc(e){var t=arguments.length>0&&void 0!==e?e:{},n=t.getContainer,r=void 0===n?O$:n,o=t.motion,i=t.prefixCls,a=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,u=Ei(t,D$),d=Va(pv.useState(),2),p=d[0],f=d[1],m=pv.useRef(),g=pv.createElement(E$,{container:p,ref:m,prefixCls:i,motion:o,maxCount:a,className:s,style:l,onAllRemoved:c}),h=Va(pv.useState([]),2),b=h[0],y=h[1],v=pv.useMemo((function(){return{open:function(e){var t=function(){var e,t,n,r={};for(e=arguments.length,t=new Array(e),n=0;n{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function uc(e){const t=pv.useRef(null);return[pv.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:r,prefixCls:o,hashId:i,message:a}=t.current,s=`${o}-notice`,{content:l,icon:c,type:u,key:d,className:p,style:f,onClose:m}=n,g=P$(n,["content","icon","type","key","className","style","onClose"]);let h=d;return null==h&&(K0+=1,h=`antd-message-${K0}`),cc((t=>(r(Object.assign(Object.assign({},g),{key:h,content:pv.createElement(G0,{prefixCls:o,type:u,icon:c},l),placement:"top",className:xZ(u&&`${s}-${u}`,i,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),f),onClose:()=>{null==m||m(),t()}})),()=>{e(h)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let i,a,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}})),r}),[]),pv.createElement(X0,Object.assign({key:"message-holder"},e,{ref:t}))]}function dc(e){return uc(e)}function pc(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,o){var i=Object.create((t&&t.prototype instanceof r?t:r).prototype),a=new p(o||[]);return y(i,"_invoke",{value:l(e,n,a)}),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function r(){}function o(){}function i(){}function a(t){["next","throw","return"].forEach((function(n){e(t,n,(function(e){return this._invoke(n,e)}))}))}function s(e,t){function r(o,i,a,s){var l,c,u=n(e[o],e,i);if("throw"!==u.type)return(c=(l=u.arg).value)&&"object"==xi(c)&&b.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}));s(u.arg)}var o;y(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function l(e,t,r){var o="suspendedStart";return function(i,a){var s,l,u;if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw a;return{value:void 0,done:!0}}for(r.method=i,r.arg=a;;){if((s=r.delegate)&&(l=c(s,r))){if(l===x)continue;return l}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(o="executing","normal"===(u=n(e,t,r)).type){if(o=r.done?"completed":"suspendedYield",u.arg===x)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o="completed",r.method="throw",r.arg=u.arg)}}}function c(e,t){var r,o,i=t.method,a=e.iterator[i];return void 0===a?(t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=void 0,c(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),x):"throw"===(r=n(a,e.iterator,t.arg)).type?(t.method="throw",t.arg=r.arg,t.delegate=null,x):(o=r.arg)?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,x):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,x)}function u(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 d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){var t,n,r;if(e){if(t=e[_])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(i=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(a=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc"),a&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),x},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,d(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),x}},g}function fc(e,t,n,r,o,i,a){var s,l;try{l=(s=e[i](a)).value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function mc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){fc(s,r,o,i,a,"next",e)}function a(e){fc(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}function gc(e){var t=N$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===xi(t)&&(t.usingClientEntryPoint=e)}function hc(e,t){R$?function(e,t){gc(!0);var n=t[F$]||R$(t);gc(!1),n.render(e),t[F$]=n}(e,t):function(e,t){I$(e,t)}(e,t)}function bc(e){return yc.apply(this,arguments)}function yc(){return(yc=mc(pc().mark((function e(t){return pc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[F$])||void 0===e||e.unmount(),delete t[F$]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vc(e){A$(e)}function _c(e){return wc.apply(this,arguments)}function wc(){return(wc=mc(pc().mark((function e(t){return pc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===R$){e.next=2;break}return e.abrupt("return",bc(t));case 2:vc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function xc(e){return Number.isNaN(e)?0:e}function Sc(e){return"text"===e||"link"===e}function Cc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Ec(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Dc(e,t){let n=arguments.length>1&&void 0!==t?t:{focus:!0};const{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},Cc(e,o,n)),Ec(r,o,n))}}function Oc(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function jc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Oc(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}function $c(e){return"danger"===e?{danger:!0}:{type:e}}function Pc(e){return!(!e||!e.then)}function Nc(e){var t,n,r,o,i,a=e.match(/^(.*)px$/),s=Number(null==a?void 0:a[1]);return Number.isNaN(s)?"undefined"==typeof document?0:(void 0===U$&&((t=document.createElement("div")).style.width="100%",t.style.height="200px",(r=(n=document.createElement("div")).style).position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n),o=t.offsetWidth,n.style.overflow="scroll",o===(i=t.offsetWidth)&&(i=n.clientWidth),document.body.removeChild(n),U$=o-i),U$):s}function Tc(e){var t=Va(pv.useState("ssr-id"),2),n=t[0],r=t[1],o=Sa({},BJ).useId,i=null==o?void 0:o();return pv.useEffect((function(){if(!o){var e=X$;X$+=1,r("rc_unique_".concat(e))}}),[]),e||i||n}function Ic(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Ac(e,t){var n,r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");return"number"!=typeof r&&"number"!=typeof(r=(n=e.document).documentElement[o])&&(r=n.body[o]),r}function Rc(e){var t=e.prefixCls,n=e.style,r=e.maskProps;return pv.createElement(p0,{key:"mask",visible:e.visible,motionName:e.motionName,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var i=e.className;return pv.createElement("div",fa({ref:o,style:Sa(Sa({},e.style),n),className:xZ("".concat(t,"-mask"),i)},r))}))}function Fc(e){function t(e){null==m||m(e)}var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,m=e.onClose,g=e.afterOpenChange,h=e.afterClose,b=e.transitionName,y=e.animation,v=e.closable,_=void 0===v||v,w=e.mask,k=void 0===w||w,x=e.maskTransitionName,S=e.maskAnimation,C=e.maskClosable,E=void 0===C||C,D=e.maskStyle,O=e.maskProps,j=e.rootClassName,$=pv.useRef(),P=pv.useRef(),N=pv.useRef(),T=Va(pv.useState(a),2),I=T[0],A=T[1],R=Tc(),F=pv.useRef(!1),M=pv.useRef(),L=null;return E&&(L=function(e){F.current?F.current=!1:P.current===e.target&&t(e)}),pv.useEffect((function(){a&&(A(!0),Ia(P.current,document.activeElement)||($.current=document.activeElement))}),[a]),pv.useEffect((function(){return function(){clearTimeout(M.current)}}),[]),pv.createElement("div",fa({className:xZ("".concat(r,"-root"),j)},ic(e,{data:!0})),pv.createElement(Rc,{prefixCls:r,visible:k&&a,motionName:Ic(r,x,S),style:Sa({zIndex:o},D),maskProps:O}),pv.createElement("div",fa({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===S$.ESC)return e.stopPropagation(),void t(e);a&&e.keyCode===S$.TAB&&N.current.changeActive(!e.shiftKey)},className:xZ("".concat(r,"-wrap"),p),ref:P,onClick:L,style:Sa(Sa({zIndex:o},d),{},{display:I?null:"none"})},f),pv.createElement(Q$,fa({},e,{onMouseDown:function(){clearTimeout(M.current),F.current=!0},onMouseUp:function(){M.current=setTimeout((function(){F.current=!1}))},ref:N,closable:_,ariaId:R,prefixCls:r,visible:a&&I,onClose:t,onVisibleChanged:function(e){if(e)Ia(P.current,document.activeElement)||null===(t=N.current)||void 0===t||t.focus();else{if(A(!1),k&&$.current&&u){try{$.current.focus({preventScroll:!0})}catch(VQ){}$.current=null}I&&(null==h||h())}var t;null==g||g(e)},motionName:Ic(r,b,y)}))))}function Mc(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:zJ.createElement(O0,null);const a=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==o&&o);if(!a)return[!1,null];const s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}function Lc(e){return null==e?[]:Array.isArray(e)?e:[e]}function zc(){return zc=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function qc(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}(t)||"string"!=typeof e||e)}function Xc(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s=i||n<0||n>=i?e:(r=e[t],(o=t-n)>0?[].concat(ka(e.slice(0,n)),[r],ka(e.slice(n,t)),ka(e.slice(t+1,i))):o<0?[].concat(ka(e.slice(0,t)),ka(e.slice(t+1,n+1)),[r],ka(e.slice(n+1,i))):e)}function uu(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}function du(e){var t=e.name,n=Ei(e,xP),r=pv.useContext(tP),o=pv.useContext(nP),i=void 0!==t?ou(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),pv.createElement(CP,fa({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function pu(e){return e.map((function(e){return"".concat(xi(e),":").concat(e)})).join(DP)}function fu(e){var t,n=pv.useRef(),r=Va(pv.useState({}),2)[1];return n.current||(e?n.current=e:(t=new $P((function(){r({})})),n.current=t.getForm())),[n.current]}function mu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function gu(){var e,t,n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y;for(e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat(ka(n.slice(1))));for(let e=0;e{const e=al(),{getPrefixCls:i,getIconPrefixCls:l,getTheme:c}=y0(),u=i(void 0,S5),d=r||`${u}-modal`,p=l(),f=c();let m=a;!1===m&&(m=void 0),hc(pv.createElement(k5,Object.assign({},s,{getContainer:m,prefixCls:d,rootPrefixCls:u,iconPrefixCls:p,okText:t,locale:e,theme:f,cancelText:n||e.cancelText})),o)}))}function r(){for(var r=arguments.length,o=new Array(r),i=0;i{"function"==typeof e.afterClose&&e.afterClose(),t.apply(this,o)}}),a.visible&&delete a.visible,n(a)}const o=document.createDocumentFragment();let i,a=Object.assign(Object.assign({},e),{close:r,open:!0});return n(a),x5.push(r),{destroy:r,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),n(a)}}}function _u(e){return Object.assign(Object.assign({},e),{type:"warning"})}function wu(e){return Object.assign(Object.assign({},e),{type:"info"})}function ku(e){return Object.assign(Object.assign({},e),{type:"success"})}function xu(e){return Object.assign(Object.assign({},e),{type:"error"})}function Su(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Cu(){const e=pv.useRef(null),[t,n]=pv.useState([]);pv.useEffect((()=>{t.length&&(ka(t).forEach((e=>{e()})),n([]))}),[t]);const r=pv.useCallback((t=>function(r){var o;D5+=1;const i=pv.createRef();let a;const s=pv.createElement(E5,{key:`modal-${D5}`,config:t(r),ref:i,afterClose:()=>{null==a||a()}});return a=null===(o=e.current)||void 0===o?void 0:o.patchElement(s),a&&x5.push(a),{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(ka(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(ka(e),[t])))}}}),[]);return[pv.useMemo((()=>({info:r(wu),success:r(ku),error:r(xu),warning:r(_u),confirm:r(Su)})),[]),pv.createElement(O5,{key:"modal-holder",ref:e})]}function Eu(e,t){return null===t||!1===t?null:t||pv.createElement("span",{className:`${e}-close-x`},pv.createElement(O0,{className:`${e}-close-icon`}))}function Du(e){const t=pv.useRef(null);return[pv.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,hashId:a,notification:s}=t.current,l=`${i}-notice`,{message:c,description:u,icon:d,type:p,btn:f,className:m,style:g,role:h="alert",closeIcon:b}=n,y=LP(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=Eu(l,b);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:I5},y),{content:pv.createElement(T5,{prefixCls:l,icon:d,type:p,message:c,description:u,btn:f,role:h}),className:xZ(p&&`${l}-${p}`,a,m,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),g),closeIcon:v,closable:!!v}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),pv.createElement(A5,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Ou(e){return Du(e)}function ju(e){var t=arguments.length>0&&void 0!==e?e:250,n=pv.useRef(null),r=pv.useRef(null);return pv.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}function $u(e,t){function n(e){f(m,e)}var r,o,i,a,s=e.prefixCls,l=e.invalidate,c=e.item,u=e.renderItem,d=e.responsive,p=e.responsiveDisabled,f=e.registerSize,m=e.itemKey,g=e.className,h=e.style,b=e.children,y=e.display,v=e.order,_=e.component,w=void 0===_?"div":_,k=Ei(e,BP),x=d&&!y;return pv.useEffect((function(){return function(){n(null)}}),[]),r=u&&c!==HP?u(c):b,l||(o={opacity:x?0:1,height:x?0:HP,overflowY:x?"hidden":HP,order:d?v:HP,pointerEvents:x?"none":HP,position:x?"absolute":HP}),i={},x&&(i["aria-hidden"]=!0),a=pv.createElement(w,fa({className:xZ(!l&&s,g),style:Sa(Sa({},o),h)},i,k,{ref:t}),r),d&&(a=pv.createElement(uj,{onResize:function(e){n(e.offsetWidth)},disabled:p},a)),a}function Pu(e,t){var n=Va(pv.useState(t),2),r=n[1];return[n[0],Nl((function(t){e((function(){r(t)}))}))]}function Nu(e){return"+ ".concat(e.length," ...")}function Tu(e,t){function n(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(le(eE,ge=pv.useMemo((function(){var e=b;return pe?e=null===M&&A?b:b.slice(0,Math.min(b.length,z/k)):"number"==typeof E&&(e=b.slice(0,E)),e}),[b,k,M,E,pe]),he=pv.useMemo((function(){return b.slice(pe?ie+1:ge.length)}),[b,ge,pe,ie]),be=pv.useCallback((function(e,t){var n;return"function"==typeof _?_(e):null!==(n=_&&(null==e?void 0:e[_]))&&void 0!==n?n:t}),[_]),ye=pv.useCallback(y||function(e){return e},[y]);return KD((function(){var e,t,r,i,a;if(z&&"number"==typeof ue&&ge){if(e=Q,r=(t=ge.length)-1,!t)return void n(0,null);for(i=0;iz){n(i-1,e-a-Q+X);break}}j&&o(0)+Q>z&&te(null)}}),[z,H,X,Q,be,ge]),a={},null!==ee&&pe&&(a={position:"absolute",left:ee,top:0}),s={prefixCls:ce,responsive:pe,component:N,invalidate:fe},l=v?function(e,t){var n=be(e,t);return pv.createElement(WP.Provider,{key:n,value:Sa(Sa({},s),{},{order:t,item:e,itemKey:n,registerSize:r,display:t<=ie})},v(e,t))}:function(e,t){var n=be(e,t);return pv.createElement(UP,fa({},s,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:r,display:t<=ie}))},u={order:(i=se&&!!he.length)?ie:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){K(t),G(X)},display:i},O?O&&(c=pv.createElement(WP.Provider,{value:Sa(Sa({},s),u)},O(he))):(d=D||Nu,c=pv.createElement(UP,fa({},s,u),"function"==typeof d?d(he):d)),p=pv.createElement(P,fa({className:xZ(!fe&&g,C),style:S,ref:t},I),ge.map(l),me?c:null,j&&pv.createElement(UP,fa({},s,{responsive:de,responsiveDisabled:!pe,order:ie,className:"".concat(ce,"-suffix"),registerSize:function(e,t){J(t)},display:!0,style:a}),j)),de&&(p=pv.createElement(uj,{onResize:function(e,t){L(t.clientWidth)},disabled:!pe},p)),p}function Iu(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Au(e){return["string","number"].includes(xi(e))}function Ru(e){var t=void 0;return e&&(Au(e.title)?t=e.title.toString():Au(e.label)&&(t=e.label.toString())),t}function Fu(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}function Mu(e){return e?Array.isArray(e)?e:[e]:[]}function Lu(e,t,n){var r=arguments.length>0&&void 0!==e?e:[],o=arguments.length>1&&void 0!==t?t:[];return(arguments.length>2?n:void 0)?r[0]===o[0]:r[0]===o[0]&&r[1]===o[1]}function zu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Bu(e){return e.ownerDocument.defaultView}function Hu(e){for(var t,n=[],r=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];r;)[(t=Bu(r).getComputedStyle(r)).overflowX,t.overflowY,t.overflow].some((function(e){return o.includes(e)}))&&n.push(r),r=r.parentElement;return n}function Uu(e,t){var n=arguments.length>1&&void 0!==t?t:1;return Number.isNaN(e)?n:e}function Wu(e){return Uu(parseFloat(e),0)}function Vu(e,t){var n=Sa({},e);return(t||[]).forEach((function(e){var t,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N;e instanceof HTMLBodyElement||(r=(t=Bu(e).getComputedStyle(e)).overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=Wu(i),g=Wu(a),_=(p-f-(h=Wu(s))-(b=Wu(l)))*(y=Uu(Math.round(c.width/p*1e3)/1e3)),w=(u-d-m-g)*(v=Uu(Math.round(c.height/u*1e3)/1e3)),k=m*v,x=g*v,S=h*y,C=b*y,E=0,D=0,"clip"===r&&(E=(O=Wu(o))*y,D=O*v),P=(j=c.x+S-E)+c.width+2*E-S-C-_,N=($=c.y+k-D)+c.height+2*D-k-x-w,n.left=Math.max(n.left,j),n.top=Math.max(n.top,$),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,N))})),n}function Gu(e,t){var n="".concat(arguments.length>1&&void 0!==t?t:0),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function qu(e,t){var n=Va(t||[],2),r=n[1];return[Gu(e.width,n[0]),Gu(e.height,r)]}function Xu(e){var t=arguments.length>0&&void 0!==e?e:"";return[t[0],t[1]]}function Ku(e,t){var n=t[0],r=t[1];return{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:"t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2}}function Yu(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function Qu(e){var t,n,r,o,i,a,s=e.prefixCls,l=e.align,c=e.arrowPos,u=e.arrow||{},d=u.className,p=u.content,f=c.x,m=void 0===f?0:f,g=c.y,h=void 0===g?0:g,b=pv.useRef();return l&&l.points?(t={position:"absolute"},!1!==l.autoArrow&&(i=(n=l.points[0])[1],a=(r=l.points[1])[1],(o=n[0])!==r[0]&&["t","b"].includes(o)?"t"===o?t.top=0:t.bottom=0:t.top=h,i!==a&&["l","r"].includes(i)?"l"===i?t.left=0:t.right=0:t.left=m),pv.createElement("div",{ref:b,className:xZ("".concat(s,"-arrow"),d),style:t},p)):null}function Ju(e){var t=e.prefixCls,n=e.zIndex;return e.mask?pv.createElement(p0,fa({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),(function(e){var r=e.className;return pv.createElement("div",{style:{zIndex:n},className:xZ("".concat(t,"-mask"),r)})})):null}function Zu(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function ed(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function td(e){var t=Sa({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return $a(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function nd(e){return"tags"===e||"multiple"===e}function rd(e,t){var n=arguments.length>1&&void 0!==t&&t;return Ls(e).map((function(e,t){if(!pv.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,s=Ei(i,SN);return n||!r?function(e){var t=e.key,n=e.props,r=n.value;return Sa({key:t,value:void 0!==r?r:t,children:n.children},Ei(n,xN))}(e):Sa(Sa({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},s),{},{options:rd(a)})})).filter((function(e){return e}))}function od(e){var t,n=pv.useRef();return n.current=e,t=pv.useCallback((function(){return n.current.apply(n,arguments)}),[]),t}function id(e){return"touches"in e?e.touches[0].pageY:e.pageY}function ad(e){var t=e.children,n=e.setRef,r=pv.useCallback((function(e){n(e)}),[]);return pv.cloneElement(t,{ref:r})}function sd(e,t){function n(e){X((function(t){var n;return n=function(e){var t=e;return Number.isNaN(m.current)||(t=Math.min(t,m.current)),Math.max(t,0)}("function"==typeof e?e(t):e),ee.current.scrollTop=n,n}))}var r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C=e.prefixCls,E=void 0===C?"rc-virtual-list":C,D=e.className,O=e.height,j=e.itemHeight,$=e.fullHeight,P=void 0===$||$,N=e.style,T=e.data,I=e.children,A=e.itemKey,R=e.virtual,F=e.direction,M=e.component,L=void 0===M?"div":M,z=e.onScroll,B=e.onVisibleChange,H=e.innerProps,U=Ei(e,NN),W=!(!1===R||!O||!j),V=W&&T&&j*T.length>O,G=Va(pv.useState(0),2),q=G[0],X=G[1],K=Va(pv.useState(!1),2),Y=K[0],Q=K[1],J=xZ(E,Ci({},"".concat(E,"-rtl"),"rtl"===F),D),Z=T||TN,ee=pv.useRef(),te=pv.useRef(),ne=pv.useRef(),re=pv.useCallback((function(e){return"function"==typeof A?A(e):null==e?void 0:e[A]}),[A]),oe={getKey:re},ie=pv.useRef({start:0,end:Z.length}),ae=pv.useRef(),se=function(e,t){var n=Va(pv.useState(e),2),r=n[0],o=n[1],i=Va(pv.useState(null),2),a=i[0],s=i[1];return pv.useEffect((function(){var n=function(e,t,n){function r(e){return void 0!==e?n(e):a}var o,i,a,s,l,c,u,d=e.length,p=t.length;if(0===d&&0===p)return null;for(d=q&&void 0===n&&(n=a,r=t),u>q+O&&void 0===o&&(o=a),t=u;return void 0===n&&(n=0,r=0,o=Math.ceil(O/j)),void 0===o&&(o=Z.length-1),{scrollHeight:t,start:n,end:o=Math.min(o+1,Z.length),offset:r}}),[V,W,q,Z,o[3],O])).scrollHeight,d=l.end,p=l.offset,ie.current.start=u=l.start,ie.current.end=d,(m=pv.useRef(f=c-O)).current=f,b=W5(g=q<=0,h=q>=f),y=function(e,t,r){var o=pv.useRef(0),i=pv.useRef(null),a=pv.useRef(null),s=pv.useRef(!1),l=W5(t,r);return[function(t){if(e){gj.cancel(i.current);var r=t.deltaY;o.current+=r,a.current=r,l(r)||($N||t.preventDefault(),i.current=gj((function(){var e;e=o.current*(s.current?10:1),n((function(t){return t+e})),o.current=0})))}},function(t){e&&(s.current=t.detail===a.current)}]}(W,g,h),v=Va(y,2),_=v[0],w=v[1],function(e,t,n){var r=pv.useRef(!1),o=pv.useRef(0),i=pv.useRef(null),a=pv.useRef(null),s=function(e){var t,i;r.current&&(t=Math.ceil(e.touches[0].pageY),i=o.current-t,o.current=t,n(i)&&e.preventDefault(),clearInterval(a.current),a.current=setInterval((function(){(!n(i*=PN,!0)||Math.abs(i)<=.1)&&clearInterval(a.current)}),16))},l=function(){r.current=!1,u()},c=function(e){u(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",l))},u=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",l))};KD((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),u(),clearInterval(a.current)}}),[e])}(W,ee,(function(e,t){return!b(e,t)&&(_({preventDefault:function(){},deltaY:e}),!0)})),KD((function(){function e(e){W&&e.preventDefault()}return ee.current.addEventListener("wheel",_),ee.current.addEventListener("DOMMouseScroll",w),ee.current.addEventListener("MozMousePixelScroll",e),function(){ee.current&&(ee.current.removeEventListener("wheel",_),ee.current.removeEventListener("DOMMouseScroll",w),ee.current.removeEventListener("MozMousePixelScroll",e))}}),[W]),k=function(e,t,n,r,o,i,a){var s=pv.useRef();return function(l){var c,u,d,p,f;null!=l?(gj.cancel(s.current),"number"==typeof l?a(l):l&&"object"===xi(l)&&(u=l.align,c="index"in l?l.index:t.findIndex((function(e){return o(e)===l.key})),p=void 0===(d=l.offset)?0:d,function l(d,f){var m,g,h,b,y,v,_,w,k,x,S,C,E;if(!(d<0)&&e.current){if(g=!1,h=f,m=e.current.clientHeight){for(b=f||u,y=0,v=0,_=0,w=Math.min(t.length,c),k=0;k<=w;k+=1)x=o(t[k]),y=_=(v=y)+(void 0===(S=n.get(x))?r:S),k===c&&void 0===S&&(g=!0);switch(C=null,b){case"top":C=v-p;break;case"bottom":C=_-m+p;break;default:v<(E=e.current.scrollTop)?h="top":_>E+m&&(h="bottom")}null!==C&&C!==e.current.scrollTop&&a(C)}s.current=gj((function(){g&&i(),l(d-1,h)}),2)}}(3))):null===(f=ne.current)||void 0===f||f.delayHidden()}}(ee,Z,s,j,re,a,n),pv.useImperativeHandle(t,(function(){return{scrollTo:k}})),KD((function(){if(B){var e=Z.slice(u,d+1);B(e,Z)}}),[u,d,Z]),x=function(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=o(e,t+n,{}),s=a(e);return pv.createElement(ad,{key:s,setRef:function(t){return r(e,t)}},i)}))}(Z,u,d,i,I,oe),S=null,O&&(S=Sa(Ci({},P?"height":"maxHeight",O),IN),W&&(S.overflowY="hidden",Y&&(S.pointerEvents="none"))),pv.createElement("div",fa({style:Sa(Sa({},N),{},{position:"relative"}),className:J},U),pv.createElement(L,{className:"".concat(E,"-holder"),style:S,ref:ee,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==q&&n(t),null==z||z(e)}},pv.createElement(DN,{prefixCls:E,height:c,offset:p,onInnerResize:a,ref:te,innerProps:H},x)),W&&pv.createElement(ON,{ref:ne,prefixCls:E,scrollTop:q,height:O,scrollHeight:c,count:Z.length,direction:F,onScroll:function(e){n(e)},onStartMove:function(){Q(!0)},onStopMove:function(){Q(!1)}}))}function ld(e){return"string"==typeof e||"number"==typeof e}function cd(e,t,n){return xZ({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}function ud(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=r4(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,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:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,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.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function dd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},JZ(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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 ${r}px`,"&:after":{display:"none"}}}}}}}function pd(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[dd(e),dd(Rl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},dd(Rl(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function fd(){const[,e]=Pl(),t=b4(y4(e));return zJ.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=this.matchHandlers[t[e]];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function md(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return pv.createElement("div",{className:xZ("".concat(n,"-content"),i),style:a},pv.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function gd(e){const t=_4,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function hd(e,t){return e?t:{}}function bd(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=gd({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},YZ(r,o,i,s,a)),{"&:before":{background:s}})]},hd(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),hd(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),hd(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p}})),hd(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p}}))}}function yd(e,t){return arguments.length>1&&void 0!==t&&!t?IZ.includes(e):[].concat(ka(P4),ka(IZ)).includes(e)}function vd(e,t){const n=yd(t),r=xZ({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function _d(e,t){var n,r,o,i,a,s,l,c,u,d=e.arrow,p=void 0!==d&&d,f=e.prefixCls,m=void 0===f?"rc-dropdown":f,g=e.transitionName,h=e.animation,b=e.align,y=e.placement,v=void 0===y?"bottomLeft":y,_=e.placements,w=void 0===_?oT:_,k=e.getPopupContainer,x=e.showAction,S=e.hideAction,C=e.overlayClassName,E=e.overlayStyle,D=e.visible,O=e.trigger,j=void 0===O?["hover"]:O,$=e.autoFocus,P=e.overlay,N=e.children,T=e.onVisibleChange,I=Ei(e,iT),A=Va(zJ.useState(),2),R=A[1],F="visible"in e?D:A[0],M=zJ.useRef(null),L=zJ.useRef(null),z=zJ.useRef(null);return zJ.useImperativeHandle(t,(function(){return M.current})),function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=pv.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=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 ZN:s();break;case eT:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};pv.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&gj(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:F,triggerRef:z,onVisibleChange:r=function(e){R(e),null==T||T(e)},autoFocus:$,overlayRef:L}),o=function(t){var n=e.onOverlayClick;R(!1),n&&n(t)},i=function(){return zJ.createElement(tT,{ref:L,overlay:P,prefixCls:m,arrow:p})},a=function(){return"function"==typeof P?i:i()},s=function(){return"minOverlayWidthMatchTrigger"in e?e.minOverlayWidthMatchTrigger:!e.alignPoint},l=zJ.cloneElement(N,{className:xZ(null===(n=N.props)||void 0===n?void 0:n.className,F&&(u=e.openClassName,void 0!==u?u:"".concat(m,"-open"))),ref:Us(N)?Bs(z,N.ref):void 0}),(c=S)||-1===j.indexOf("contextMenu")||(c=["click"]),zJ.createElement(U5,fa({builtinPlacements:w},I,{prefixCls:m,ref:M,popupClassName:xZ(C,Ci({},"".concat(m,"-show-arrow"),p)),popupStyle:E,action:j,showAction:x,hideAction:c,popupPlacement:v,popupAlign:b,popupTransitionName:g,popupAnimation:h,popupVisible:F,stretch:s()?"minWidth":"",popup:a(),onPopupVisibleChange:r,onPopupClick:o,getPopupContainer:k}),l)}function wd(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function kd(e){return wd(pv.useContext(aT),e)}function xd(e){var t=e.children,n=e.locked,r=Ei(e,sT),o=pv.useContext(lT),i=Ea((function(){return e=r,t=Sa({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Pa(e[1],t[1],!0))}));return pv.createElement(lT.Provider,{value:i},t)}function Sd(){return pv.useContext(uT)}function Cd(e){var t=pv.useContext(dT);return pv.useMemo((function(){return void 0!==e?[].concat(ka(t),[e]):t}),[t,e])}function Ed(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t;return!!Y0(e)&&(n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null,o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||s&&a<0))}function Dd(e,t){var n=function(e,t){var n=arguments.length>1&&void 0!==t&&t,r=ka(e.querySelectorAll("*")).filter((function(e){return Ed(e,n)}));return Ed(e,n)&&r.unshift(e),r}(e,!0);return n.filter((function(e){return t.has(e)}))}function Od(e,t,n,r){var o,i,a,s=arguments.length>3&&void 0!==r?r:1;return e?(i=(o=Dd(e,t)).length,a=o.findIndex((function(e){return n===e})),s<0?-1===a?a=i-1:a-=1:s>0&&(a+=1),o[a=(a+i)%i]):null}function jd(e){var t,n=pv.useRef(e);return n.current=e,t=pv.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o1&&(i.motionAppear=!1),a=i.onVisibleChanged,i.onVisibleChanged=function(e){return y.current||e||r(!0),null==a?void 0:a(e)},n?null:pv.createElement(xd,{mode:d,locked:!y.current},pv.createElement(p0,fa({visible:o},i,{forceRender:m,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){return pv.createElement(FT,{id:s,className:e.className,style:e.style},u)})))}function Ld(e){var t=e.eventKey,n=e.children,r=Cd(t),o=Ad(n,r),i=Sd();return pv.useEffect((function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}}),[r]),pv.createElement(dT.Provider,{value:r},i?o:pv.createElement(WT,e,o))}function zd(e){var t=e.children,n=Ei(e,GT),r=Ad(t,Cd(n.eventKey));return Sd()?r:pv.createElement(qT,Qs(n,["warnKey"]),r)}function Bd(e){var t=e.className,n=e.style,r=pv.useContext(lT).prefixCls;return Sd()?null:pv.createElement("li",{className:xZ("".concat(r,"-item-divider"),t),style:n})}function Hd(e){return(e||[]).map((function(e,t){var n,r,o,i,a,s,l;return e&&"object"===xi(e)?(r=(n=e).label,o=n.children,i=n.key,a=n.type,s=Ei(n,XT),l=null!=i?i:"tmp-".concat(t),o||"group"===a?pv.createElement("group"===a?zd:Ld,fa({key:l},s,{title:r}),Hd(o)):"divider"===a?pv.createElement(Bd,fa({key:l},s)):pv.createElement(F4,fa({key:l},s),r)):null})).filter((function(e){return e}))}function Ud(e,t,n){var r=e;return t&&(r=Hd(t)),Ad(r,n)}function Wd(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,s=ZT(n,["label","children","key","type"]),l=null!=i?i:`tmp-${t}`;return o||"group"===a?pv.createElement("group"===a?zd:H4,Object.assign({key:l},s,{title:r}),Wd(o)):"divider"===a?pv.createElement(L4,Object.assign({key:l},s)):pv.createElement(B4,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function Vd(e){return pv.useMemo((()=>e?Wd(e):e),[e])}function Gd(e){return Rl(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}function qd(e){return e&&"object"==typeof e?e:{}}function Xd(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=pv.useContext(F3),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return pv.createElement("div",{className:xZ("".concat(s,"-content-holder"))},pv.createElement("div",{className:xZ("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Ci({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,a=e.forceRender,s=e.style,l=e.className,d=Ei(e,nI),p=o===n;return pv.createElement(p0,fa({key:o,visible:p,forceRender:a,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return pv.createElement(tI,fa({},d,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Sa(Sa({},s),r),className:xZ(l,i),ref:n}))}))}))))}function Kd(e,t){var n=pv.useRef(e),r=Va(pv.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}function Yd(e){var t=Va(pv.useState(0),2),n=t[0],r=t[1],o=pv.useRef(0),i=pv.useRef();return i.current=e,YD((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function Qd(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Jd(e){return String(e).replace(/"/g,cI)}function Zd(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function ep(e,t){var n=e.editable,r=e.locale,o=e.style;return n&&!1!==n.showAdd?pv.createElement("button",{ref:t,type:"button",className:"".concat(e.prefixCls,"-nav-add"),style:o,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},n.addIcon||"+"):null}function tp(e,t){function n(e){var t,n,r=l.filter((function(e){return!e.disabled})),o=r.findIndex((function(e){return e.key===D}))||0,i=r.length;for(t=0;tze?ze:e}function r(){u(Date.now())}function o(){window.clearTimeout(s.current)}function i(){gj.cancel(D.current)}var a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L=pv.useContext(F3),z=L.prefixCls,B=L.tabs,H=e.className,U=e.style,W=e.id,V=e.animated,G=e.activeKey,q=e.rtl,X=e.extra,K=e.editable,Y=e.locale,Q=e.tabPosition,J=e.tabBarGutter,Z=e.children,ee=e.onTabClick,te=e.onTabScroll,ne=pv.useRef(),re=pv.useRef(),oe=pv.useRef(),ie=pv.useRef(),ae=pv.useRef(),se=pv.useRef(),le=pv.useRef(),ce="top"===Q||"bottom"===Q,ue=Va(Kd(0,(function(e,t){ce&&te&&te({direction:e>t?"left":"right"})})),2),de=ue[0],pe=ue[1],fe=Va(Kd(0,(function(e,t){!ce&&te&&te({direction:e>t?"top":"bottom"})})),2),me=fe[0],ge=fe[1],he=Va(pv.useState([0,0]),2),be=he[0],ye=he[1],ve=Va(pv.useState([0,0]),2),_e=ve[0],we=ve[1],ke=Va(pv.useState([0,0]),2),xe=ke[0],Se=ke[1],Ce=Va(pv.useState([0,0]),2),Ee=Ce[0],De=Ce[1],Oe=(I=new Map,A=pv.useRef([]),R=Va(pv.useState({}),2)[1],F=pv.useRef("function"==typeof I?I():I),M=Yd((function(){var e=F.current;A.current.forEach((function(t){e=t(e)})),A.current=[],F.current=e,R({})})),[F.current,function(e){A.current.push(e),M()}]),je=Va(Oe,2),$e=je[1],Pe=function(e,t,n){return pv.useMemo((function(){var n,r,o,i,a,s,l=new Map,c=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||rI,u=c.left+c.width;for(r=0;ra?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},pv.useEffect((function(){function t(e){h.current.onTouchMove(e)}function n(e){h.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){h.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){h.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(ie,(function(e,t){function i(e,t){e((function(e){return n(e+t)}))}return!!Re&&(ce?i(pe,e):i(ge,t),o(),r(),!0)})),pv.useEffect((function(){return o(),c&&(s.current=window.setTimeout((function(){u(0)}),100)),o}),[c]),d=function(e,t,n,r,o,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(s="width",l=p?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),pv.useMemo((function(){var n,r,o,i,a,d;if(!u.length)return[0,0];for(r=n=u.length,o=0;oc+t){r=o-1;break}for(a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||lI)[l]=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),p])}(Pe,Fe,ce?de:me,Te,Ie,Ae,Sa(Sa({},e),{},{tabs:B})),f=(p=Va(d,2))[0],m=p[1],g=Nl((function(e){var t,r,o=Pe.get(arguments.length>0&&void 0!==e?e:G)||{width:0,height:0,left:0,right:0,top:0};ce?(t=de,q?o.rightde+Fe&&(t=o.right+o.width-Fe):o.left<-de?t=-o.left:o.left+o.width>-de+Fe&&(t=-(o.left+o.width-Fe)),ge(0),pe(n(t))):(r=me,o.top<-me?r=-o.top:o.top+o.height>-me+Fe&&(r=-(o.top+o.height-Fe)),pe(0),ge(n(r)))})),h={},"top"===Q||"bottom"===Q?h[q?"marginRight":"marginLeft"]=J:h.marginTop=J,b=B.map((function(e,t){var n=e.key;return pv.createElement(np,{id:W,prefixCls:z,key:n,tab:e,style:0===t?void 0:h,closable:e.closable,editable:K,active:n===G,renderWrapper:Z,removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,onClick:function(e){ee(n,e)},onFocus:function(){g(n),r(),ie.current&&(q||(ie.current.scrollLeft=0),ie.current.scrollTop=0)}})})),y=function(){return $e((function(){var e=new Map;return B.forEach((function(t){var n,r=t.key,o=null===(n=ae.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(Jd(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},pv.useEffect((function(){y()}),[B.map((function(e){return e.key})).join("_")]),v=Yd((function(){var e,t,n,r=dI(ne),o=dI(re),i=dI(oe);ye([r[0]-o[0]-i[0],r[1]-o[1]-i[1]]),e=dI(le),Se(e),t=dI(se),De(t),n=dI(ae),we([n[0]-e[0],n[1]-e[1]]),y()})),_=B.slice(0,f),w=B.slice(m+1),k=[].concat(ka(_),ka(w)),S=(x=Va(pv.useState(),2))[0],C=x[1],E=Pe.get(G),D=pv.useRef(),pv.useEffect((function(){var e={};return E&&(ce?(q?e.right=E.right:e.left=E.left,e.width=E.width):(e.top=E.top,e.height=E.height)),i(),D.current=gj((function(){C(e)})),i}),[E,ce,q]),pv.useEffect((function(){g()}),[G,Le,ze,Qd(E),Qd(Pe),ce]),pv.useEffect((function(){v()}),[q]),O=!!k.length,j="".concat(z,"-nav-wrap"),ce?q?(P=de>0,$=de!==ze):($=de<0,P=de!==Le):(N=me<0,T=me!==Le),pv.createElement(uj,{onResize:v},pv.createElement("div",{ref:Hs(t,ne),role:"tablist",className:xZ("".concat(z,"-nav"),H),style:U,onKeyDown:function(){r()}},pv.createElement(uI,{ref:re,position:"left",extra:X,prefixCls:z}),pv.createElement("div",{className:xZ(j,(a={},Ci(a,"".concat(j,"-ping-left"),$),Ci(a,"".concat(j,"-ping-right"),P),Ci(a,"".concat(j,"-ping-top"),N),Ci(a,"".concat(j,"-ping-bottom"),T),a)),ref:ie},pv.createElement(uj,{onResize:v},pv.createElement("div",{ref:ae,className:"".concat(z,"-nav-list"),style:{transform:"translate(".concat(de,"px, ").concat(me,"px)"),transition:c?"none":void 0}},b,pv.createElement(M3,{ref:le,prefixCls:z,locale:Y,editable:K,style:Sa(Sa({},0===b.length?void 0:h),{},{visibility:O?"hidden":null})}),pv.createElement("div",{className:xZ("".concat(z,"-ink-bar"),Ci({},"".concat(z,"-ink-bar-animated"),V.inkBar)),style:S})))),pv.createElement(L3,fa({},e,{removeAriaLabel:null==Y?void 0:Y.removeAriaLabel,ref:se,prefixCls:z,tabs:k,className:!O&&Me,tabMoving:!!c})),pv.createElement(uI,{ref:oe,position:"right",extra:X,prefixCls:z})))}function op(e){var t=e.renderTabBar,n=Ei(e,fI),r=pv.useContext(F3).tabs;return t?t(Sa(Sa({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Ei(e,mI);return pv.createElement(tI,fa({tab:t,key:n,tabKey:n},r))}))}),z3):pv.createElement(z3,n)}function ip(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m=e.id,g=e.prefixCls,h=void 0===g?"rc-tabs":g,b=e.className,y=e.items,v=e.direction,_=e.activeKey,w=e.defaultActiveKey,k=e.editable,x=e.animated,S=e.tabPosition,C=void 0===S?"top":S,E=e.tabBarGutter,D=e.tabBarStyle,O=e.tabBarExtraContent,j=e.locale,$=e.moreIcon,P=e.moreTransitionName,N=e.destroyInactiveTabPane,T=e.renderTabBar,I=e.onChange,A=e.onTabClick,R=e.onTabScroll,F=e.getPopupContainer,M=e.popupClassName,L=Ei(e,gI),z=pv.useMemo((function(){return(y||[]).filter((function(e){return e&&"object"===xi(e)&&"key"in e}))}),[y]),B="rtl"===v,H=function(e){var t,n=arguments.length>0&&void 0!==e?e:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!1}:Sa({inkBar:!0},"object"===xi(n)?n:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(x),U=Va(pv.useState(!1),2),W=U[0],V=U[1];return pv.useEffect((function(){V(H5())}),[]),r=Va(Al((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:_,defaultValue:w}),2),o=r[0],i=r[1],a=Va(pv.useState((function(){return z.findIndex((function(e){return e.key===o}))})),2),s=a[0],l=a[1],pv.useEffect((function(){var e,t=z.findIndex((function(e){return e.key===o}));-1===t&&(t=Math.max(0,Math.min(s,z.length-1)),i(null===(e=z[t])||void 0===e?void 0:e.key)),l(t)}),[z.map((function(e){return e.key})).join("_"),o,s]),u=(c=Va(Al(null,{value:m}),2))[0],d=c[1],pv.useEffect((function(){m||(d("rc-tabs-".concat(hI)),hI+=1)}),[]),f=Sa(Sa({},p={id:u,activeKey:o,animated:H,tabPosition:C,rtl:B,mobile:W}),{},{editable:k,locale:j,moreIcon:$,moreTransitionName:P,tabBarGutter:E,onTabClick:function(e,t){null==A||A(e,t);var n=e!==o;i(e),n&&(null==I||I(e))},onTabScroll:R,extra:O,style:D,panes:null,getPopupContainer:F,popupClassName:M}),pv.createElement(F3.Provider,{value:{tabs:z,prefixCls:h}},pv.createElement("div",fa({ref:t,id:m,className:xZ(h,"".concat(h,"-").concat(C),(n={},Ci(n,"".concat(h,"-mobile"),W),Ci(n,"".concat(h,"-editable"),k),Ci(n,"".concat(h,"-rtl"),B),n),b)},L),void 0,pv.createElement(op,fa({},f,{renderTabBar:T})),pv.createElement(Xd,fa({destroyInactiveTabPane:N},p,{animated:H}))))}function ap(e,t){const[n,r]=pv.useState("string"==typeof e?e:"");return pv.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;nNumber.MAX_SAFE_INTEGER)return String(lp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e3&&void 0!==r&&r;return""===e?"":(i=(o=up(e)).negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a),n>=0?(u=Number(s[n]))>=5&&!d?hp(gp(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,d):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n)):".0"===l?c:"".concat(c).concat(l))}function bp(e){return!(!e.addonBefore&&!e.addonAfter)}function yp(e){return!!(e.prefix||e.suffix||e.allowClear)}function vp(e,t,n,r){var o,i;if(n)return o=t,"click"===t.type?(i=e.cloneNode(!0),o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)):void 0!==r?(o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o)):void n(o)}function _p(e,t){var n,r;if(e&&(e.focus(t),n=(t||{}).cursor))switch(r=e.value.length,n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}function wp(e){return null==e?"":String(e)}function kp(e){var t,n,r,o,i,a,s,l=e.prefixCls,c=e.upNode,u=e.downNode,d=e.upDisabled,p=e.downDisabled,f=e.onStep,m=pv.useRef(),g=pv.useRef([]),h=pv.useRef();return h.current=f,t=function(){clearTimeout(m.current)},n=function(e,n){e.preventDefault(),t(),h.current(n),m.current=setTimeout((function e(){h.current(n),m.current=setTimeout(e,AI)}),RI)},pv.useEffect((function(){return function(){t(),g.current.forEach((function(e){return gj.cancel(e)}))}}),[]),II()?null:(r="".concat(l,"-handler"),o=xZ(r,"".concat(r,"-up"),Ci({},"".concat(r,"-up-disabled"),d)),i=xZ(r,"".concat(r,"-down"),Ci({},"".concat(r,"-down-disabled"),p)),s={unselectable:"on",role:"button",onMouseUp:a=function(){return g.current.push(gj(t))},onMouseLeave:a},pv.createElement("div",{className:"".concat(r,"-wrap")},pv.createElement("span",fa({},s,{onMouseDown:function(e){n(e,!0)},"aria-label":"Increase Value","aria-disabled":d,className:o}),c||pv.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-up-inner")})),pv.createElement("span",fa({},s,{onMouseDown:function(e){n(e,!1)},"aria-label":"Decrease Value","aria-disabled":p,className:i}),u||pv.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-down-inner")}))))}function xp(e){var t="number"==typeof e?fp(e):up(e).fullStr;return t.includes(".")?up(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function Sp(e,t){const n=pv.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(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===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return pv.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}function Cp(e,t){return ka(e||"").slice(0,t).join("")}function Ep(e,t,n,r){var o=n;return e?o=Cp(n,r):ka(t||"").lengthr&&(o=t),o}function Dp(e){return"string"==typeof e&&String(Number(e))===e?($a(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Op(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v=e.prefixCls,_=e.open,w=e.placement,k=e.inline,x=e.push,S=e.forceRender,C=e.autoFocus,E=e.keyboard,D=e.rootClassName,O=e.rootStyle,j=e.zIndex,$=e.className,P=e.style,N=e.motion,T=e.width,I=e.height,A=e.children,R=e.contentWrapperStyle,F=e.mask,M=e.maskClosable,L=e.maskMotion,z=e.maskClassName,B=e.maskStyle,H=e.afterOpenChange,U=e.onClose,W=e.onMouseEnter,V=e.onMouseOver,G=e.onMouseLeave,q=e.onClick,X=e.onKeyDown,K=e.onKeyUp,Y=pv.useRef(),Q=pv.useRef(),J=pv.useRef();if(pv.useImperativeHandle(t,(function(){return Y.current})),a=function(e){var t,n,r=e.keyCode,o=e.shiftKey;switch(r){case S$.TAB:r===S$.TAB&&(o||document.activeElement!==J.current?o&&document.activeElement===Q.current&&(null===(n=J.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=Q.current)||void 0===t||t.focus({preventScroll:!0}));break;case S$.ESC:U&&E&&(e.stopPropagation(),U(e))}},pv.useEffect((function(){var e;_&&C&&(null===(e=Y.current)||void 0===e||e.focus({preventScroll:!0}))}),[_]),l=(s=Va(pv.useState(!1),2))[0],c=s[1],u=pv.useContext(tA),d=null!==(n=null!==(r=null===(o=!1===x?{distance:0}:!0===x?{}:x||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==u?void 0:u.pushDistance)&&void 0!==n?n:180,p=pv.useMemo((function(){return{pushDistance:d,push:function(){c(!0)},pull:function(){c(!1)}}}),[d]),pv.useEffect((function(){var e,t;_?null==u||null===(e=u.push)||void 0===e||e.call(u):null==u||null===(t=u.pull)||void 0===t||t.call(u)}),[_]),pv.useEffect((function(){return function(){var e;null==u||null===(e=u.pull)||void 0===e||e.call(u)}}),[]),f=F&&pv.createElement(p0,fa({key:"mask"},L,{visible:_}),(function(e,t){var n=e.className,r=e.style;return pv.createElement("div",{className:xZ("".concat(v,"-mask"),n,z),style:Sa(Sa({},r),B),onClick:M&&_?U:void 0,ref:t})})),m="function"==typeof N?N(w):N,g={},l&&d)switch(w){case"top":g.transform="translateY(".concat(d,"px)");break;case"bottom":g.transform="translateY(".concat(-d,"px)");break;case"left":g.transform="translateX(".concat(d,"px)");break;default:g.transform="translateX(".concat(-d,"px)")}return"left"===w||"right"===w?g.width=Dp(T):g.height=Dp(I),h={onMouseEnter:W,onMouseOver:V,onMouseLeave:G,onClick:q,onKeyDown:X,onKeyUp:K},b=pv.createElement(p0,fa({key:"panel"},m,{visible:_,forceRender:S,onVisibleChanged:function(e){null==H||H(e)},removeOnLeave:!1,leavedClassName:"".concat(v,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return pv.createElement("div",fa({className:xZ("".concat(v,"-content-wrapper"),r),style:Sa(Sa(Sa({},g),o),R)},ic(e,{data:!0})),pv.createElement(nA,fa({containerRef:n,prefixCls:v,className:$,style:P},h),A))})),y=Sa({},O),j&&(y.zIndex=j),pv.createElement(tA.Provider,{value:p},pv.createElement("div",{className:xZ(v,"".concat(v,"-").concat(w),D,(i={},Ci(i,"".concat(v,"-open"),_),Ci(i,"".concat(v,"-inline"),k),i)),style:y,tabIndex:-1,ref:Y,onKeyDown:a},f,pv.createElement("div",{tabIndex:0,ref:Q,style:rA,"aria-hidden":"true","data-sentinel":"start"}),b,pv.createElement("div",{tabIndex:0,ref:J,style:rA,"aria-hidden":"true","data-sentinel":"end"})))}function jp(e){const[t,n]=pv.useState(e);return pv.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}function $p(e,t,n,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==r?r:0}`,error:e,errorStatus:n}}function Pp(e){let{help:t,helpStatus:n,errors:r=l6,warnings:o=l6,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=pv.useContext(C2),c=`${l}-item-explain`,[,u]=s6(l),d=pv.useMemo((()=>X1(l)),[l]),p=jp(r),f=jp(o),m=pv.useMemo((()=>null!=t?[$p(t,"help",n)]:[].concat(ka(p.map(((e,t)=>$p(e,"error","error",t)))),ka(f.map(((e,t)=>$p(e,"warning","warning",t)))))),[t,n,p,f]),g={};return a&&(g.id=`${a}_help`),pv.createElement(p0,{motionDeadline:d.motionDeadline,motionName:`${l}-show-help`,visible:!!m.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return pv.createElement("div",Object.assign({},g,{className:xZ(c,t,i,u),style:n,role:"alert"}),pv.createElement(f0,Object.assign({keys:m},X1(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return pv.createElement("div",{key:t,className:xZ(o,{[`${c}-${r}`]:r}),style:i},n)})))}))}function Np(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Tp(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:c6.includes(n)?`${u6}_${n}`:n}function Ip(e){return Np(e).join("_")}function Ap(e){const[t]=fu(),n=pv.useRef({}),r=pv.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=Ip(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e,t){let n=arguments.length>1&&void 0!==t?t:{};const o=Tp(Np(e),r.__INTERNAL__.name),i=o?document.getElementById(o):null;i&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior(L0(e,t));var n;const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of L0(e,z0(t)))o.scroll({top:i,left:a,behavior:r})}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},n))},getFieldInstance:e=>{const t=Ip(e);return n.current[t]}})),[e,t]);return[r]}function Rp(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:p,fieldId:f,required:m,isRequired:g,onSubItemMetaChange:h}=e,b=uA(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${t}-item`,{requiredMark:v}=pv.useContext(k2),_=pv.useRef(null),w=jp(a),k=jp(s),x=null!=i,S=!!(x||a.length||s.length),C=!!_.current&&Y0(_.current),[E,D]=pv.useState(null);KD((()=>{if(S&&_.current){const e=getComputedStyle(_.current);D(parseInt(e.marginBottom,10))}}),[S,C]);const O=function(e){let t=arguments.length>0&&void 0!==e&&e,n="";return void 0!==l?n=l:c.validating?n="validating":(t?w:c.errors).length?n="error":(t?k:c.warnings).length?n="warning":(c.touched||u&&c.validated)&&(n="success"),n}(),j=pv.useMemo((()=>{let e;if(u){const t=O&&b6[O];e=t?pv.createElement("span",{className:xZ(`${y}-feedback-icon`,`${y}-feedback-icon-${O}`)},pv.createElement(t,null)):null}return{status:O,errors:a,warnings:s,hasFeedback:u,feedbackIcon:e,isFormItemInput:!0}}),[O,u]),$=xZ(y,n,r,{[`${y}-with-help`]:x||w.length||k.length,[`${y}-has-feedback`]:O&&u,[`${y}-has-success`]:"success"===O,[`${y}-has-warning`]:"warning"===O,[`${y}-has-error`]:"error"===O,[`${y}-is-validating`]:"validating"===O,[`${y}-hidden`]:d});return pv.createElement("div",{className:$,style:o,ref:_},pv.createElement(l8,Object.assign({className:`${y}-row`},Qs(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),pv.createElement(h6,Object.assign({htmlFor:f},e,{requiredMark:v,required:null!=m?m:g,prefixCls:t})),pv.createElement(g6,Object.assign({},e,c,{errors:w,warnings:k,prefixCls:t,status:O,help:i,marginBottom:E,onErrorVisibleChanged:e=>{e||D(null)}}),pv.createElement(x2.Provider,{value:h},pv.createElement(E2.Provider,{value:j},p)))),!!E&&pv.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-E}}))}function Fp(){if(!k6){const e=document.createDocumentFragment(),t={fragment:e};return k6=t,void x6((()=>{hc(pv.createElement(E6,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Fp())}))}}),e)}))}k6.instance&&(S6.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":x6((()=>{const t=k6.instance.open(Object.assign(Object.assign({},C6),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":x6((()=>{null==k6||k6.instance.destroy(e.key)}));break;default:x6((()=>{var n;const r=(n=k6.instance)[t].apply(n,ka(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),S6=[])}function Mp(e){return vu(_u(e))}function Lp(){if(!N6){const e=document.createDocumentFragment(),t={fragment:e};return N6=t,void T6((()=>{hc(pv.createElement(R6,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Lp())}))}}),e)}))}N6.instance&&(I6.forEach((e=>{switch(e.type){case"open":T6((()=>{N6.instance.open(Object.assign(Object.assign({},A6),e.config))}));break;case"destroy":T6((()=>{null==N6||N6.instance.destroy(e.key)}))}})),I6=[])}function zp(e){I6.push({type:"open",config:e}),Lp()}function Bp(e){var t,n,r=e.prefixCls,o=e.containerRef,i=e.value,a=e.getValueIndex,s=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,u=e.direction,d=pv.useRef(null),p=Va(pv.useState(i),2),f=p[0],m=p[1],g=function(e){var t,n=a(e),i=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".".concat(r,"-item"))[n];return(null==i?void 0:i.offsetParent)&&i},h=Va(pv.useState(null),2),b=h[0],y=h[1],v=Va(pv.useState(null),2),_=v[0],w=v[1];return KD((function(){var e,t,n,r;f!==i&&(e=g(f),t=g(i),n=fA(e),r=fA(t),m(i),y(n),w(r),e&&t?l():c())}),[i]),t=pv.useMemo((function(){return mA("rtl"===u?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,b]),n=pv.useMemo((function(){return mA("rtl"===u?-(null==_?void 0:_.right):null==_?void 0:_.left)}),[u,_]),b&&_?pv.createElement(p0,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){y(null),w(null),c()}},(function(e,o){var i=e.className,a=Sa(Sa({},e.style),{},{"--thumb-start-left":t,"--thumb-start-width":mA(null==b?void 0:b.width),"--thumb-active-left":n,"--thumb-active-width":mA(null==_?void 0:_.width)}),s={ref:Bs(d,o),style:a,className:xZ("".concat(r,"-thumb"),i)};return pv.createElement("div",s)})):null}function Hp(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Up(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}function Wp(e,t,n){return(e-t)/(n-t)}function Vp(e,t,n,r){var o=Wp(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function Gp(e,t){return Array.isArray(e)?e[t]:e}function qp(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Xp(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=pv.useContext(vA),l=s.direction,c=s.min,u=s.max,d=s.disabled,p=s.range,f="".concat(t,"-track"),m=Wp(r,c,u),g=Wp(o,c,u),h=function(e){!d&&a&&a(e,-1)},b={};switch(l){case"rtl":b.right="".concat(100*m,"%"),b.width="".concat(100*g-100*m,"%");break;case"btt":b.bottom="".concat(100*m,"%"),b.height="".concat(100*g-100*m,"%");break;case"ttb":b.top="".concat(100*m,"%"),b.height="".concat(100*g-100*m,"%");break;default:b.left="".concat(100*m,"%"),b.width="".concat(100*g-100*m,"%")}return pv.createElement("div",{className:xZ(f,p&&"".concat(f,"-").concat(i+1)),style:Sa(Sa({},b),n),onMouseDown:h,onTouchStart:h})}function Kp(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=pv.useContext(vA),s=a.included,l=a.range,c=a.min,u=pv.useMemo((function(){var e,t,n,i;if(!l)return 0===r.length?[]:(e=null!=o?o:c,t=r[0],[{start:Math.min(e,t),end:Math.max(e,t)}]);for(n=[],i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a),r(s+(u=n-i/2),l+u,c+u))}function Rf(e){var t,n,r,o,i,a,s,l,c,u,d;if("string"!=typeof e)throw new EF(3);if(t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return DF[t]?"#"+DF[t]:e}(e),t.match(OF))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(jF))return n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n};if(t.match($F))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(PF))return r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r};if(o=NF.exec(t))return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};if(i=TF.exec(t.substring(0,50)))return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};if(a=IF.exec(t)){if(s="rgb("+Af(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",!(l=NF.exec(s)))throw new EF(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}if(c=AF.exec(t.substring(0,50))){if(u="rgb("+Af(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",!(d=NF.exec(u)))throw new EF(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new EF(5)}function Ff(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Mf(e){return Ff(Math.round(255*e))}function Lf(e,t,n){return RF("#"+Mf(e)+Mf(t)+Mf(n))}function zf(e,t,n){return Af(e,t,n,Lf)}function Bf(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return RF("#"+Ff(e)+Ff(t)+Ff(n));if("object"==typeof e&&void 0===t&&void 0===n)return RF("#"+Ff(e.red)+Ff(e.green)+Ff(e.blue));throw new EF(6)}function Hf(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Rf(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Bf(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Bf(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new EF(7)}function Uf(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Uf(e,t,r)}}function Wf(e){return Uf(e,e.length,[])}function Vf(e,t){if("transparent"===t)return t;var n=function(e){return function(e){var t,n,r,o=e.red/255,i=e.green/255,a=e.blue/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=(s+l)/2;if(s===l)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};switch(n=s-l,r=c>.5?n/(2-s-l):n/(s+l),s){case o:t=(i-a)/n+(i=1?zf(e.hue,e.saturation,e.lightness):"rgba("+Af(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new EF(2)}(e);if(LF(e))return function(e){if("object"==typeof e)return zf(e.hue,e.saturation,e.lightness);throw new EF(1)}(e);throw new EF(8)}(fa({},n,{hue:n.hue+parseFloat(e)}))}function Gf(e){var t,n;return"transparent"===e?0:(t=Rf(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),parseFloat((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3)))}function qf(e,t,n,r){var o,i,a,s,l;return void 0===t&&(t=HF),void 0===n&&(n=UF),void 0===r&&(r=!0),i=(o=Gf(e)>.179)?t:n,!r||(a=i,s=Gf(e),l=Gf(a),parseFloat((s>l?(s+.05)/(l+.05):(l+.05)/(s+.05)).toFixed(2))>=4.5)?i:o?HF:UF}function Xf(e,t){var n,r,o,i,a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;n=a.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(i)throw i.error}}return o}function Kf(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o=48&&e<=57}function xm(e){return`${B7}${e}`}async function Sm(e){const t=[],n=await async function(e){const t=xm(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(VQ){if(r=z7(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function Cm(e){const t=Em(await Sm(e));if(t.include){const n=await Cm(vm(...ym(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function Em(e){const t={name:e.name,type:e.type||"dark",...e,...Dm(e)};var n;return e.include&&(t.include=e.include),e.tokenColors&&(t.settings=e.tokenColors,delete t.tokenColors),(n=t).settings||(n.settings=[]),n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}}),t}function Dm(e){var t,n,r,o;let i,a,s=e.settings?e.settings:e.tokenColors;const l=s?s.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==l?void 0:l.settings)?void 0:t.foreground)&&(i=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(a=l.settings.background),!i&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(i=e.colors["editor.foreground"]),!a&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(a=e.colors["editor.background"]),i||(i="light"===e.type?W7.light:W7.dark),a||(a="light"===e.type?V7.light:V7.dark),{fg:i,bg:a}}function Om(e,t){let n=[];for(let r=0,o=t.length;r=0&&i>=0;)jm(t[o],r[i])&&o--,i--;return-1===o}function Pm(e,t,n){let r=[],o=0;for(let i=0,a=e.settings.length;ie.trim()));else{if(!Array.isArray(s.scope))continue;a=s.scope}for(let e=0,i=a.length;eNumber.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function Im(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)CH[r]&&t.push({type:"setDecoration",value:CH[r]});else if(r<=29){const e=CH[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:SH[r-30]}});else if(38===r){const n=Tm(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:SH[r-40]}});else if(48===r){const n=Tm(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:SH[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:SH[r-100+8]}})}return t}function Am(e,t={}){function n(e="",t={},n){const r=i[e]||q7[e];return r?r({...t,children:(n=n.filter(Boolean)).join("code"===e?"\n":"")}):""}const r=t.bg||"#fff",o=function(e){const t=new Map;for(const n of e){const e=n.line;t.has(e)?t.get(e).push(n):t.set(e,[n])}return t}(t.lineOptions??[]),i=t.elements||{};return n("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`
${t.langId}
`:"",n("code",{},e.map(((r,i)=>n("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(o.get(i+1)??[]).join(" "),lines:e,line:r,index:i},r.map(((e,o)=>{const i=[`color: ${e.color||t.fg}`];return e.fontStyle&yH.Italic&&i.push("font-style: italic"),e.fontStyle&yH.Bold&&i.push("font-weight: bold"),e.fontStyle&yH.Underline&&i.push("text-decoration: underline"),n("token",{style:i.join("; "),tokens:r,token:e,index:o},[(a=e.content,a.replace(/[&<>"']/g,(e=>X7[e])))]);var a}))))))])}function Rm(e){return"string"==typeof e?M7.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function Fm(e){function t(e){const t=e?u.getTheme(e):d;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(u.setTheme(t),p=t);const n=u.getColorMap();return"css"===t.type&&function(e,t){e.bg=f[e.bg]||e.bg,e.fg=f[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=f[n]||n})),t.forEach(((e,n)=>{t[n]=f[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function n(e,n="text",r,o={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(n))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:i}=function(e){const t=u.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(n),{_theme:a,_colorMap:s}=t(r);return function(e,t,n,r,o){let i=n.split(/\r\n|\r|\n/),a=bH.INITIAL,s=[],l=[];for(let c=0,u=i.length;cMath.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return o=e.index,function(){if(r)return r;r=[];for(let n=0;n[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),o=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=Nm(r,i),s=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const r=Im(a.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}i=a.position}while(io.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let o=yH.None;return t.decorations.has("bold")&&(o|=yH.Bold),t.decorations.has("italic")&&(o|=yH.Italic),t.decorations.has("underline")&&(o|=yH.Underline),{content:t.value,color:n,fontStyle:o}}))))}(r,e)}var o,i;const{_languages:a,_themes:s,_wasmPath:l}=function(e){var t;let n=M7,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":H7;return e.langs&&(n=e.langs.map(Rm)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),c=new G7(async function(e){if(!U7){let t;t=gH.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(xm(vm(...ym(e),"onig.wasm")))}),U7=t.then((()=>({createOnigScanner:e=>gH.createOnigScanner(e),createOnigString:e=>gH.createOnigString(e)})))}return U7}(l),"vscode-oniguruma"),u=new K7(c);(null==(o=e.paths)?void 0:o.themes)&&(u.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(i=e.paths)?void 0:i.languages)&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const d=(await u.loadThemes(s))[0];let p;await u.loadLanguages(a);let f=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;tt(e)._theme,loadTheme:async function(e){await u.loadTheme(e)},loadLanguage:async function(e){const t=Rm(e);c.addLanguage(t),await u.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:n}=t(e);return n.bg},getForegroundColor:function(e){const{_theme:n}=t(e);return n.fg},getLoadedThemes:function(){return u.getLoadedThemes()},getLoadedLanguages:function(){return u.getLoadedLanguages()},setColorReplacements:function(e){f=e}}}function Mm(e){var t,n=e.getSnapshot;e=e.value;try{return t=n(),!NH(e,t)}catch(r){return!0}}function Lm(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function zm(e){var t,n;for(t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return o=!0,i=!1,{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){i=!0,a=e},f:function(){try{o||null==s.return||s.return()}finally{if(i)throw a}}}}function kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n52;t=t/52|0)n=AG(t%52)+n;return(AG(t%52)+n).replace(IG,"$1-$2")}function Ng(e){return"string"==typeof e&&!0}function Tg(e){return("type"in(t=e)&&t.type.$$typeof)===zG?WG:"$$typeof"in e?VG[e.$$typeof]:HG;var t}function Ig(e,t,n){var r,o,i,a,s,l,c;if("string"!=typeof t)for(QG&&(r=YG(t))&&r!==QG&&Ig(e,r,n),o=qG(t),XG&&(o=o.concat(XG(t))),i=Tg(e),a=Tg(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}function Ug(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ug(e.children,t)),e}))}function Wg(){return pv.useContext(vq)}function Vg(e){var t,n,r;for(t="",n=0;n>>0)}("6.0.5"+f+Dq[f])),d?"".concat(d,"-").concat(p):p):v;return void 0===t.displayName&&function(e){Ng(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),r=t.displayName&&t.componentId?"".concat($g(t.displayName),"-").concat(t.componentId):t.componentId||_,o=m&&g.attrs?g.attrs.concat(y).filter(Boolean):y,i=t.shouldForwardProp,m&&g.shouldForwardProp&&(a=g.shouldForwardProp,t.shouldForwardProp?(s=t.shouldForwardProp,i=function(e,t){return a(e,t)&&s(e,t)}):i=a),l=new Cq(n,r,m?g.componentStyle:void 0),c=zJ.forwardRef((function(e,t){return function(e,t,n){var r,o,i,a,s,l,c=e.attrs,u=e.componentStyle,d=e.defaultProps,p=e.foldedComponentIds,f=e.styledComponentId,m=e.target,g=zJ.useContext(Eq),h=Wg(),b=e.shouldForwardProp||h.shouldForwardProp,y=function(e,t,n){var r,o,i,a,s;for(o=WF(WF({},t),{className:void 0,theme:n}),i=0;i{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,T9(e,r))}function nh(e,t){function n(){return s.getFixedT(r.lng||null,"fallback"===l.nsMode?d:d[0],u)}let r=arguments.length>1&&void 0!==t?t:{};const{i18n:o}=r,{i18n:i,defaultNS:a}=pv.useContext(z9)||{},s=o||i||F9;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new B9),!s){Zg("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}s.options.react&&void 0!==s.options.react.wait&&Zg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...M9,...s.options.react,...r},{useSuspense:c,keyPrefix:u}=l;let d=e||a||s.options&&s.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);const p=(s.isInitialized||s.initializedStoreOnce)&&d.every((e=>function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(o,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(o,e)||i&&!s(a,e)))}(e,t,r):(Zg("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l))),[f,m]=pv.useState(n);let g=d.join();r.lng&&(g=`${r.lng}${g}`);const h=(e=>{const t=pv.useRef();return pv.useEffect((()=>{t.current=e}),[e,void 0]),t.current})(g),b=pv.useRef(!0);pv.useEffect((()=>{function e(){b.current&&m(n)}const{bindI18n:t,bindI18nStore:o}=l;return b.current=!0,p||c||(r.lng?th(s,r.lng,d,(()=>{b.current&&m(n)})):eh(s,d,(()=>{b.current&&m(n)}))),p&&h&&h!==g&&b.current&&m(n),t&&s&&s.on(t,e),o&&s&&s.store.on(o,e),()=>{b.current=!1,t&&s&&t.split(" ").forEach((t=>s.off(t,e))),o&&s&&o.split(" ").forEach((t=>s.store.off(t,e)))}}),[s,g]);const y=pv.useRef(!0);pv.useEffect((()=>{b.current&&!y.current&&m(n),y.current=!1}),[s,u]);const v=[f,s,p];if(v.t=f,v.i18n=s,v.ready=p,p)return v;if(!p&&!c)return v;throw new Promise((e=>{r.lng?th(s,r.lng,d,(()=>e())):eh(s,d,(()=>e()))}))}function rh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function oh(e){var t,n;for(t=1;t0)for(t=0,n=arguments.length;tthis.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,i=t.get(n);if(i)return i;const m=this.options.loose;e=e.replace(m?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE],E(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[s.CARETTRIM],u),o("caret trim",e);let g=e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));m&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),o("range list",g);const b=new Map,y=g.map((e=>new r(e,this.options)));for(const t of y){if(f(t))return[t];b.set(t.value,t)}b.size>1&&b.has("")&&b.delete("");const v=[...b.values()];return t.set(n,v),v}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(t){return!1}for(let n=0;n"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},h=(e,t)=>(o("comp",e,t),e=_(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=S(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>e.replace(t.loose?a[s.TILDELOOSE]:a[s.TILDE],((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s})),_=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[s.CARETLOOSE]:a[s.CARET],((t,r,i,a,s)=>{let l;return o("caret",e,t,r,i,a,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(a)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`):(o("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),o("caret return",l),l}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>x(e,t))).join(" ")),x=(e,t)=>(e=e.trim()).replace(t.loose?a[s.XRANGELOOSE]:a[s.XRANGE],((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=b(i),u=c||b(a),d=u||b(s);return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n})),S=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),C=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),E=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),D=(e,t,n)=>{for(let r=0;r0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return xX}function uh(){if(EX)return CX;EX=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,a("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new s(n[2],this.options.loose):e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(n){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}CX=t;const n=qq,{safeRe:r,t:o}=Gq,i=bX,a=Vq,s=Kq,l=ch();return CX}function dh(e,t){var n,r,o,i,a;for(n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0&&void 0!==t?t:[],l=arguments.length>1&&void 0!==n?n:{publishSource:!0},c=l.publishSource,u=void 0===c||c,d=l.clientOffset,p=l.getSourceClientOffset,f=e.getMonitor(),m=e.getRegistry();if(e.dispatch(ph(d)),function(e,t,n){dh(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){dh(n.getSource(e),"Expected sourceIds to be registered.")}))}(s,f,m),r=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(s,f),null!==r){if(o=null,d){if(!p)throw new Error("getSourceClientOffset must be defined");!function(e){dh("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(p),o=p(r)}if(e.dispatch(ph(d,o)),null!=(i=m.getSource(r).beginDrag(f,r)))return function(e){dh(mh(e),"Item must be an object.")}(i),m.pinSource(r),a=m.getSourceType(r),{type:UX,payload:{itemType:a,item:i,sourceId:r,clientOffset:d||null,sourceClientOffset:o||null,isSourcePublic:!!u}}}else e.dispatch(XX)}}function hh(e){return function(){if(e.getMonitor().isDragging())return{type:WX}}}function bh(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function yh(e){return function(t,n){var r,o,i,a=(arguments.length>1&&void 0!==n?n:{}).clientOffset;return function(e){dh(Array.isArray(e),"Expected targetIds to be an array.")}(t),function(e,t,n){var r,o;for(dh(t.isDragging(),"Cannot call hover while not dragging."),dh(!t.didDrop(),"Cannot call hover after drop."),r=0;r=0;r--)bh(t.getTargetType(e[r]),n)||e.splice(r,1)}(r,i,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:VX,payload:{targetIds:r,clientOffset:a||null}}}}function vh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function _h(e){var t,n;for(t=1;t0&&void 0!==t?t:{},o=e.getMonitor(),i=e.getRegistry();!function(e){dh(e.isDragging(),"Cannot call drop while not dragging."),dh(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(o),n=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(o),n.forEach((function(t,n){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){dh(void 0===e||mh(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(t,n,i,o),s={type:GX,payload:{dropResult:_h(_h({},r),a)}};e.dispatch(s)}))}}function xh(e){return function(){var t,n=e.getMonitor(),r=e.getRegistry();return function(e){dh(e.isDragging(),"Cannot call endDrag while not dragging.")}(n),null!=(t=n.getSourceId())&&(r.getSource(t,!0).endDrag(n,t),r.unpinSource()),{type:qX}}}function Sh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ch(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}function Eh(e,t,n,r){function o(){p===d&&(p=d.slice())}function i(){if(f)throw new Error(Ch(3));return u}function a(e){if("function"!=typeof e)throw new Error(Ch(4));if(f)throw new Error(Ch(5));var t=!0;return o(),p.push(e),function(){if(t){if(f)throw new Error(Ch(6));t=!1,o();var n=p.indexOf(e);p.splice(n,1),d=null}}}function s(e){var t,n;if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Ch(7));if(void 0===e.type)throw new Error(Ch(8));if(f)throw new Error(Ch(9));try{f=!0,u=c(u,e)}finally{f=!1}for(t=d=p,n=0;n0&&void 0!==e?e:eK,i=arguments.length>1?t:void 0,a=i.payload;switch(i.type){case HX:case UX:return{initialSourceClientOffset:a.sourceClientOffset,initialClientOffset:a.clientOffset,clientOffset:a.clientOffset};case VX:return r=a.clientOffset,!(n=o.clientOffset)&&!r||n&&r&&n.x===r.x&&n.y===r.y?o:Oh(Oh({},o),{},{clientOffset:a.clientOffset});case qX:case GX:return eK;default:return o}}function Ph(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Nh(e){var t,n;for(t=1;t0&&void 0!==e?e:iK,i=arguments.length>1?t:void 0,a=i.payload;switch(i.type){case UX:return Nh(Nh({},o),{},{itemType:a.itemType,item:a.item,sourceId:a.sourceId,isSourcePublic:a.isSourcePublic,dropResult:null,didDrop:!1});case WX:return Nh(Nh({},o),{},{isSourcePublic:!0});case VX:return Nh(Nh({},o),{},{targetIds:a.targetIds});case oK:return-1===o.targetIds.indexOf(a.targetId)?o:Nh(Nh({},o),{},{targetIds:(n=o.targetIds,r=a.targetId,n.filter((function(e){return e!==r})))});case GX:return Nh(Nh({},o),{},{dropResult:a.dropResult,didDrop:!0,targetIds:[]});case qX:return Nh(Nh({},o),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return o}}function Ah(e,t){var n=arguments.length>0&&void 0!==e?e:0;switch((arguments.length>1?t:void 0).type){case tK:case nK:return n+1;case rK:case oK:return n-1;default:return n}}function Rh(e,t){var n,r,o,i,a,s,l,c,u,d=arguments.length>1?t:void 0;switch(d.type){case VX:break;case tK:case nK:case oK:case rK:return aK;default:return sK}return l=(s=function(e,t){var n,r=new Map,o=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};return e.forEach(o),t.forEach(o),n=[],r.forEach((function(e,t){1===e&&n.push(t)})),n}(o=void 0===(r=(n=d.payload).targetIds)?[]:r,a=void 0===(i=n.prevTargetIds)?[]:i)).length>0||!function(e,t,n){var r,o=arguments.length>2&&void 0!==n?n:ZX;if(e.length!==t.length)return!1;for(r=0;r0&&void 0!==e?e:0)+1}function Mh(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Lh(e){var t,n;for(t=1;t0&&void 0!==e?e:{},i=arguments.length>1?t:void 0;return{dirtyHandlerIds:Rh(o.dirtyHandlerIds,{type:i.type,payload:Lh(Lh({},i.payload),{},{prevTargetIds:(n=o,r=[],"dragOperation.targetIds".split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),n))})}),dragOffset:$h(o.dragOffset,i),refCount:Ah(o.refCount,i),dragOperation:Ih(o.dragOperation,i),stateId:Fh(o.stateId)}}function Hh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wh(e){return(Wh="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})(e)}function Vh(e,t){t&&Array.isArray(e)?e.forEach((function(e){return Vh(e,!1)})):dh("string"==typeof e||"symbol"===Wh(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function Gh(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}const n=setTimeout(t,0),r=setInterval(t,50)}}function qh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==t?t:void 0,a=arguments.length>2&&void 0!==n?n:{},s=(o="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,Eh(Bh,arguments.length>3&&void 0!==r&&r&&o&&o({name:"dnd-core",instanceId:"dnd-core"}))),l=new lK(s,new uK(s)),c=new KX(s,l),u=e(c,i,a);return c.receiveBackend(u),c}function Jh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==t?t:null,a=arguments.length>1&&void 0!==n?n:null;return pv.isValidElement(i)?(function(e){if("string"!=typeof e.type)throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e.type.displayName||e.type.name||"the component"," into a
, or turn it into a ")+"drag source or a drop target itself.")}(o=i),function(e,t){var n=e.ref;return dh("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),pv.cloneElement(e,n?{ref:function(e){rb(n,e),rb(t,e)}}:{ref:t})}(o,a?function(t){return e(t,a)}:e)):(e(r=i,a),r)}}(o),t[n]=function(){return r})})),t}function rb(e,t){"function"==typeof e?e(t):e.current=t}function ob(e){return(ob="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})(e)}function ib(e){return null!==e&&"object"===ob(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function ab(e,t,n,r){var o,i,a,s,l,c,u,d=n?n.call(r,e,t):void 0;if(void 0!==d)return!!d;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;if(o=Object.keys(e),i=Object.keys(t),o.length!==i.length)return!1;for(a=Object.prototype.hasOwnProperty.bind(t),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}))}))[0]||null}function sy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ly(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function cy(e){var t,n;for(t=1;tNumber(e)-Number(t))).map((t=>e[t])):e}function Ey(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function Dy(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function Oy(e){const t=(e=Ey(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function jy(e,t){ky((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),r[e=e.replace(/\[]$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),r[e=e.replace(/:list$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&Sy(n,e).includes(e.arrayFormatSeparator);n=i?Sy(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>Sy(t,e))):null===n?n:Sy(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?Sy(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>Sy(t,e)));r[t]=void 0!==r[t]?[...r[t],...i]:i};default:return(e,t,n)=>{n[e]=void 0!==n[e]?[...[n[e]].flat(),t]:t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[i,a]=_y(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:Sy(a,t),n(Sy(i,t),a,r)}for(const[o,i]of Object.entries(r))if("object"==typeof i&&null!==i)for(const[e,n]of Object.entries(i))i[e]=Dy(n,t);else r[o]=Dy(i,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?Cy(n):n,e}),Object.create(null))}function $y(e,t){if(!e)return"";ky((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&Wne(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[xy(t,e),"[",o,"]"].join("")]:[...n,[xy(t,e),"[",xy(o,e),"]=",xy(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[xy(t,e),"[]"].join("")]:[...n,[xy(t,e),"[]=",xy(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[xy(t,e),":list="].join("")]:[...n,[xy(t,e),":list=",xy(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[xy(n,e),t,xy(o,e)].join("")]:[[r,xy(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,xy(t,e)]:[...n,[xy(t,e),"=",xy(r,e)].join("")]}}(t),o={};for(const[a,s]of Object.entries(e))n(a)||(o[a]=s);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?xy(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?xy(n,t)+"[]":o.reduce(r(n),[]).join("&"):xy(n,t)+"="+xy(o,t)})).filter((e=>e.length>0)).join("&")}function Py(e,t){var n;t={decode:!0,...t};let[r,o]=_y(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:jy(Oy(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:Sy(o,t)}:{}}}function Ny(e,t){t={encode:!0,strict:!0,[Gne]:!0,...t};const n=Ey(e.url).split("?")[0]||"";let r=$y({...jy(Oy(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[Gne]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function Ty(e,t,n){n={parseFragmentIdentifier:!0,[Gne]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=Py(e,n);return Ny({url:r,query:wy(o,t),fragmentIdentifier:i},n)}function Iy(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function Ay(e){return null==e?"":""+e}function Ry(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function Fy(e,t,n){const{obj:r,k:o}=Ry(e,t,Object);r[o]=n}function My(e,t){const{obj:n,k:r}=Ry(e,t);if(n)return n[r]}function Ly(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Ly(e[r],t[r],n):e[r]=t[r]);return e}function zy(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function By(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>iQ[e])):e}function Hy(e,t,n){let r=arguments.length>2&&void 0!==n?n:".";if(!e)return;if(e[t])return e[t];const o=t.split(r);let i=e;for(let a=0;aa+e;)e++,n=o.slice(a,a+e).join(r),s=i[n];if(void 0===s)return;if(null===s)return null;if(t.endsWith(n)){if("string"==typeof s)return s;if(n&&"string"==typeof s[n])return s[n]}const l=o.slice(a+e).join(r);return l?Hy(s,l,r):void 0}i=i[o[a]]}return i}function Uy(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}function Wy(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Vy(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:".",a=!(arguments.length>4&&void 0!==o)||o,s=function(e,t,n){const r=My(e,n);return void 0!==r?r:My(t,n)}(e,t,n);return!s&&a&&"string"==typeof n&&(s=Hy(e,n,i),void 0===s&&(s=Hy(t,n,i))),s}function Gy(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(Uy(r),o),t[i]=a),a(n)}}function qy(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Xy(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ky(){}function Yy(e){return(Yy="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})(e)}function Qy(e){return lQ.call(cQ.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Jy(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Yy(XMLHttpRequest))}function Zy(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function ev(e){return(ev="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})(e)}function tv(e){return(tv="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})(e)}function nv(e){var t=function(e){var t,n;if("object"!==tv(e)||null===e)return e;if(void 0!==(t=e[Symbol.toPrimitive])){if("object"!==tv(n=t.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===tv(t)?t:String(t)}var rv,ov,iv,av,sv,lv,cv,uv,dv,pv,fv,mv,gv,hv,bv,yv,vv,_v,wv,kv,xv,Sv,Cv,Ev,Dv,Ov,jv,$v,Pv,Nv,Tv,Iv,Av,Rv,Fv,Mv,Lv,zv,Bv,Hv,Uv,Wv,Vv,Gv,qv,Xv,Kv,Yv,Qv,Jv,Zv,e_,t_,n_,r_,o_,i_,a_,s_,l_,c_,u_,d_,p_,f_,m_,g_,h_,b_,y_,v_,__,w_,k_,x_,S_,C_,E_,D_,O_,j_,$_,P_,N_,T_,I_,A_,R_,F_,M_,L_,z_,B_,H_,U_,W_,V_,G_,q_,X_,K_,Y_,Q_,J_,Z_,ew,tw,nw,rw,ow,iw,aw,sw,lw,cw,uw,dw,pw,fw,mw,gw,hw,bw,yw,vw,_w,ww,kw,xw,Sw,Cw,Ew,Dw,Ow,jw,$w,Pw,Nw,Tw,Iw,Aw,Rw,Fw,Mw,Lw,zw,Bw,Hw,Uw,Ww,Vw,Gw,qw,Xw,Kw,Yw,Qw,Jw,Zw,ek,tk,nk,rk,ok,ik,ak,sk,lk,ck,uk,dk,pk,fk,mk,gk,hk,bk,yk,vk,_k,wk,kk,xk,Sk,Ck,Ek,Dk,Ok,jk,$k,Pk,Nk,Tk,Ik,Ak,Rk,Fk,Mk,Lk,zk,Bk,Hk,Uk,Wk,Vk,Gk,qk,Xk,Kk,Yk,Qk,Jk,Zk,ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,ux,dx,px,fx,mx,gx,hx,bx,yx,vx,_x,wx,kx,xx,Sx,Cx,Ex,Dx,Ox,jx,$x,Px,Nx,Tx,Ix,Ax,Rx,Fx,Mx,Lx,zx,Bx,Hx,Ux,Wx,Vx,Gx,qx,Xx,Kx,Yx,Qx,Jx,Zx,eS,tS,nS,rS,oS,iS,aS,sS,lS,cS,uS,dS,pS,fS,mS,gS,hS,bS,yS,vS,_S,wS,kS,xS,SS,CS,ES,DS,OS,jS,$S,PS,NS,TS,IS,AS,RS,FS,MS,LS,zS,BS,HS,US,WS,VS,GS,qS,XS,KS,YS,QS,JS,ZS,eC,tC,nC,rC,oC,iC,aC,sC,lC,cC,uC,dC,pC,fC,mC,gC,hC,bC,yC,vC,_C,wC,kC,xC,SC,CC,EC,DC,OC,jC,$C,PC,NC,TC,IC,AC,RC,FC,MC,LC,zC,BC,HC,UC,WC,VC,GC,qC,XC,KC,YC,QC,JC,ZC,eE,tE,nE,rE,oE,iE,aE,sE,lE,cE,uE,dE,pE,fE,mE,gE,hE,bE,yE,vE,_E,wE,kE,xE,SE,CE,EE,DE,OE,jE,$E,PE,NE,TE,IE,AE,RE,FE,ME,LE,zE,BE,HE,UE,WE,VE,GE,qE,XE,KE,YE,QE,JE,ZE,eD,tD,nD,rD,oD,iD,aD,sD,lD,cD,uD,dD,pD,fD,mD,gD,hD,bD,yD,vD,_D,wD,kD,xD,SD,CD,ED,DD,OD,jD,$D,PD,ND,TD,ID,AD,RD,FD,MD,LD,zD,BD,HD,UD,WD,VD,GD,qD,XD,KD,YD,QD,JD,ZD,eO,tO,nO,rO,oO,iO,aO,sO,lO,cO,uO,dO,pO,fO,mO,gO,hO,bO,yO,vO,_O,wO,kO,xO,SO,CO,EO,DO,OO,jO,$O,PO,NO,TO,IO,AO,RO,FO,MO,LO,zO,BO,HO,UO,WO,VO,GO,qO,XO,KO,YO,QO,JO,ZO,ej,tj,nj,rj,oj,ij,aj,sj,lj,cj,uj,dj,pj,fj,mj,gj,hj,bj,yj,vj,_j,wj,kj,xj,Sj,Cj,Ej,Dj,Oj,jj,$j,Pj,Nj,Tj,Ij,Aj,Rj,Fj,Mj,Lj,zj,Bj,Hj,Uj,Wj,Vj,Gj,qj,Xj,Kj,Yj,Qj,Jj,Zj,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,d$,p$,f$,m$,g$,h$,b$,y$,v$,_$,w$,k$,x$,S$,C$,E$,D$,O$,j$,$$,P$,N$,T$,I$,A$,R$,F$,M$,L$,z$,B$,H$,U$,W$,V$,G$,q$,X$,K$,Y$,Q$,J$,Z$,eP,tP,nP,rP,oP,iP,aP,sP,lP,cP,uP,dP,pP,fP,mP,gP,hP,bP,yP,vP,_P,wP,kP,xP,SP,CP,EP,DP,OP,jP,$P,PP,NP,TP,IP,AP,RP,FP,MP,LP,zP,BP,HP,UP,WP,VP,GP,qP,XP,KP,YP,QP,JP,ZP,eN,tN,nN,rN,oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,mN,gN,hN,bN,yN,vN,_N,wN,kN,xN,SN,CN,EN,DN,ON,jN,$N,PN,NN,TN,IN,AN,RN,FN,MN,LN,zN,BN,HN,UN,WN,VN,GN,qN,XN,KN,YN,QN,JN,ZN,eT,tT,nT,rT,oT,iT,aT,sT,lT,cT,uT,dT,pT,fT,mT,gT,hT,bT,yT,vT,_T,wT,kT,xT,ST,CT,ET,DT,OT,jT,$T,PT,NT,TT,IT,AT,RT,FT,MT,LT,zT,BT,HT,UT,WT,VT,GT,qT,XT,KT,YT,QT,JT,ZT,eI,tI,nI,rI,oI,iI,aI,sI,lI,cI,uI,dI,pI,fI,mI,gI,hI,bI,yI,vI,_I,wI,kI,xI,SI,CI,EI,DI,OI,jI,$I,PI,NI,TI,II,AI,RI,FI,MI,LI,zI,BI,HI,UI,WI,VI,GI,qI,XI,KI,YI,QI,JI,ZI,eA,tA,nA,rA,oA,iA,aA,sA,lA,cA,uA,dA,pA,fA,mA,gA,hA,bA,yA,vA,_A,wA,kA,xA,SA,CA,EA,DA,OA,jA,$A,PA,NA,TA,IA,AA,RA,FA,MA,LA,zA,BA,HA,UA,WA,VA,GA,qA,XA,KA,YA,QA,JA,ZA,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,uR,dR,pR,fR,mR,gR,hR,bR,yR,vR,_R,wR,kR,xR,SR,CR,ER,DR,OR,jR,$R,PR,NR,TR,IR,AR,RR,FR,MR,LR,zR,BR,HR,UR,WR,VR,GR,qR,XR,KR,YR,QR,JR,ZR,eF,tF,nF,rF,oF,iF,aF,sF,lF,cF,uF,dF,pF,fF,mF,gF,hF,bF,yF,vF,_F,wF,kF,xF,SF,CF,EF,DF,OF,jF,$F,PF,NF,TF,IF,AF,RF,FF,MF,LF,zF,BF,HF,UF,WF,VF,GF,qF,XF,KF,YF,QF,JF,ZF,eM,tM,nM,rM,oM,iM,aM,sM,lM,cM,uM,dM,pM,fM,mM,gM,hM,bM,yM,vM,_M,wM,kM,xM,SM,CM,EM,DM,OM,jM,$M,PM,NM,TM,IM,AM,RM,FM,MM,LM,zM,BM,HM,UM,WM,VM,GM,qM,XM,KM,YM,QM,JM,ZM,eL,tL,nL,rL,oL,iL,aL,sL,lL,cL,uL,dL,pL,fL,mL,gL,hL,bL,yL,vL,_L,wL,kL,xL,SL,CL,EL,DL,OL,jL,$L,PL,NL,TL,IL,AL,RL,FL,ML,LL,zL,BL,HL,UL,WL,VL,GL,qL,XL,KL,YL,QL,JL,ZL,ez,tz,nz,rz,oz,iz,az,sz,lz,cz,uz,dz,pz,fz,mz,gz,hz,bz,yz,vz,_z,wz,kz,xz,Sz,Cz,Ez,Dz,Oz,jz,$z,Pz,Nz,Tz,Iz,Az,Rz,Fz,Mz,Lz,zz,Bz,Hz,Uz,Wz,Vz,Gz,qz,Xz,Kz,Yz,Qz,Jz,Zz,eB,tB,nB,rB,oB,iB,aB,sB,lB,cB,uB,dB,pB,fB,mB,gB,hB,bB,yB,vB,_B,wB,kB,xB,SB,CB,EB,DB,OB,jB,$B,PB,NB,TB,IB,AB,RB,FB,MB,LB,zB,BB,HB,UB,WB,VB,GB,qB,XB,KB,YB,QB,JB,ZB,eH,tH,nH,rH,oH,iH,aH,sH,lH,cH,uH,dH,pH,fH,mH,gH,hH,bH,yH,vH,_H,wH,kH,xH,SH,CH,EH,DH,OH,jH,$H,PH,NH,TH,IH,AH,RH,FH,MH,LH,zH,BH,HH,UH,WH,VH,GH,qH,XH,KH,YH,QH,JH,ZH,eU,tU,nU,rU,oU,iU,aU,sU,lU,cU,uU,dU,pU,fU,mU,gU,hU,bU,yU,vU,_U,wU,kU,xU,SU,CU,EU,DU,OU,jU,$U,PU,NU,TU,IU,AU,RU,FU,MU,LU,zU,BU,HU,UU,WU,VU,GU,qU,XU,KU,YU,QU,JU,ZU,eW,tW,nW,rW,oW,iW,aW,sW,lW,cW,uW,dW,pW,fW,mW,gW,hW,bW,yW,vW,_W,wW,kW,xW,SW,CW,EW,DW,OW,jW,$W,PW,NW,TW,IW,AW,RW,FW,MW,LW,zW,BW,HW,UW,WW,VW,GW,qW,XW,KW,YW,QW,JW,ZW,eV,tV,nV,rV,oV,iV,aV,sV,lV,cV,uV,dV,pV,fV,mV,gV,hV,bV,yV,vV,_V,wV,kV,xV,SV,CV,EV,DV,OV,jV,$V,PV,NV,TV,IV,AV,RV,FV,MV,LV,zV,BV,HV,UV,WV,VV,GV,qV,XV,KV,YV,QV,JV,ZV,eG,tG,nG,rG,oG,iG,aG,sG,lG,cG,uG,dG,pG,fG,mG,gG,hG,bG,yG,vG,_G,wG,kG,xG,SG,CG,EG,DG,OG,jG,$G,PG,NG,TG,IG,AG,RG,FG,MG,LG,zG,BG,HG,UG,WG,VG,GG,qG,XG,KG,YG,QG,JG,ZG,eq,tq,nq,rq,oq,iq,aq,sq,lq,cq,uq,dq,pq,fq,mq,gq,hq,bq,yq,vq,_q,wq,kq,xq,Sq,Cq,Eq,Dq,Oq,jq,$q,Pq,Nq,Tq,Iq,Aq,Rq,Fq,Mq,Lq,zq,Bq,Hq,Uq,Wq,Vq,Gq,qq,Xq,Kq,Yq,Qq,Jq,Zq,eX,tX,nX,rX,oX,iX,aX,sX,lX,cX,uX,dX,pX,fX,mX,gX,hX,bX,yX,vX,_X,wX,kX,xX,SX,CX,EX,DX,OX,jX,$X,PX,NX,TX,IX,AX,RX,FX,MX,LX,zX,BX,HX,UX,WX,VX,GX,qX,XX,KX,YX,QX,JX,ZX,eK,tK,nK,rK,oK,iK,aK,sK,lK,cK,uK,dK,pK,fK,mK,gK,hK,bK,yK,vK,_K,wK,kK,xK,SK,CK,EK,DK,OK,jK,$K,PK,NK,TK,IK,AK,RK,FK,MK,LK,zK,BK,HK,UK,WK,VK,GK,qK,XK,KK,YK,QK,JK,ZK,eY,tY,nY,rY,oY,iY,aY,sY,lY,cY,uY,dY,pY,fY,mY,gY,hY,bY,yY,vY,_Y,wY,kY,xY,SY,CY,EY,DY,OY,jY,$Y,PY,NY,TY,IY,AY,RY,FY,MY,LY,zY,BY,HY,UY,WY,VY,GY,qY,XY,KY,YY,QY,JY,ZY,eQ,tQ,nQ,rQ,oQ,iQ,aQ,sQ,lQ,cQ,uQ,dQ,pQ,fQ,mQ,gQ,hQ,bQ,yQ,vQ,_Q,wQ,kQ,xQ,SQ,CQ,EQ,DQ,OQ,jQ,$Q,PQ,NQ,TQ,IQ,AQ,RQ,FQ,MQ,LQ,zQ,BQ,HQ,UQ,WQ,VQ,GQ,qQ,XQ,KQ,YQ,QQ,JQ,ZQ,eJ,tJ,nJ,rJ,oJ,iJ,aJ,sJ,lJ,cJ,uJ,dJ,pJ,fJ,mJ,gJ,hJ,bJ,yJ,vJ,_J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},wJ={exports:{}},kJ={},xJ={exports:{}},SJ={},CJ=Symbol.for("react.element"),EJ=Symbol.for("react.portal"),DJ=Symbol.for("react.fragment"),OJ=Symbol.for("react.strict_mode"),jJ=Symbol.for("react.profiler"),$J=Symbol.for("react.provider"),PJ=Symbol.for("react.context"),NJ=Symbol.for("react.forward_ref"),TJ=Symbol.for("react.suspense"),IJ=Symbol.for("react.memo"),AJ=Symbol.for("react.lazy"),RJ=Symbol.iterator,FJ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},MJ=Object.assign,LJ={};r.prototype.isReactComponent={},r.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=r.prototype,(rv=i.prototype=new o).constructor=i,MJ(rv,r.prototype),rv.isPureReactComponent=!0,ov=Array.isArray,iv=Object.prototype.hasOwnProperty,sv={key:!0,ref:!0,__self:!0,__source:!0},lv=/\/+/g,dv={ReactCurrentDispatcher:cv={current:null},ReactCurrentBatchConfig:uv={transition:null},ReactCurrentOwner:av={current:null}},SJ.Children={map:u,forEach:function(e,t,n){u(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return u(e,(function(){t++})),t},toArray:function(e){return u(e,(function(e){return e}))||[]},only:function(e){if(!s(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},SJ.Component=r,SJ.Fragment=DJ,SJ.Profiler=jJ,SJ.PureComponent=i,SJ.StrictMode=OJ,SJ.Suspense=TJ,SJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dv,SJ.cloneElement=function(e,t,n){var r,o,i,a,s,l,c;if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");if(r=MJ({},e.props),o=e.key,i=e.ref,a=e._owner,null!=t)for(l in void 0!==t.ref&&(i=t.ref,a=av.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)iv.call(t,l)&&!sv.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l]);if(1==(l=arguments.length-2))r.children=n;else if(1>>1],t);)e[n]=t,e[i]=r,i=n}function n(e){return 0===e.length?null:e[0]}function r(e){var t,n,r,i,a,s,l,c,u;if(0===e.length)return null;if(t=e[0],(n=e.pop())!==t){e[0]=n;e:for(r=0,i=e.length,a=i>>>1;ro(l=e[s],n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function i(e){for(var o=n(h);null!==o;){if(null===o.callback)r(h);else{if(!(o.startTime<=e))break;r(h),o.sortIndex=o.expirationTime,t(g,o)}o=n(h)}}function a(e){if(k=!1,i(e),!w)if(null!==n(g))w=!0,u(s);else{var t=n(h);null!==t&&d(a,t.startTime-e)}}function s(t,o){var s,c,u,p,f;w=!1,k&&(k=!1,S(O),O=-1),_=!0,s=v;try{for(i(o),y=n(g);null!==y&&(!(y.expirationTime>o)||t&&!l());)"function"==typeof(c=y.callback)?(y.callback=null,v=y.priorityLevel,u=c(y.expirationTime<=o),o=e.unstable_now(),"function"==typeof u?y.callback=u:y===n(g)&&r(g),i(o)):r(g),y=n(g);return null!==y?p=!0:(null!==(f=n(h))&&d(a,f.startTime-o),p=!1),p}finally{y=null,v=s,_=!1}}function l(){return!(e.unstable_now()-$e||125c?(r.sortIndex=i,t(h,r),null===n(g)&&r===n(h)&&(k?(S(O),O=-1):k=!0,d(a,i-c))):(r.sortIndex=l,t(g,r),w||_||(w=!0,u(s))),r},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var t=v;return function(){var n=v;v=t;try{return e.apply(this,arguments)}finally{v=n}}}}(xv={}),kv.exports=xv,Sv=pv,Cv=kv.exports,Ev=new Set,Dv={},Ov=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),jv=Object.prototype.hasOwnProperty,$v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Pv={},Nv={},Tv={},"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Tv[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Tv[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Tv[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Tv[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Tv[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Tv[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Tv[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Tv[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Tv[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)})),Iv=/[\-:]([a-z])/g,"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Iv,b);Tv[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Iv,b);Tv[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Iv,b);Tv[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Tv[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),Tv.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Tv[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)})),Av=Sv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Rv=Symbol.for("react.element"),Fv=Symbol.for("react.portal"),Mv=Symbol.for("react.fragment"),Lv=Symbol.for("react.strict_mode"),zv=Symbol.for("react.profiler"),Bv=Symbol.for("react.provider"),Hv=Symbol.for("react.context"),Uv=Symbol.for("react.forward_ref"),Wv=Symbol.for("react.suspense"),Vv=Symbol.for("react.suspense_list"),Gv=Symbol.for("react.memo"),qv=Symbol.for("react.lazy"),Xv=Symbol.for("react.offscreen"),Kv=Symbol.iterator,Yv=Object.assign,Jv=!1,Zv=Array.isArray,CQ=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((e_=e_||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=e_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},t_="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t){MSApp.execUnsafeLocalFunction((function(){return CQ(e,t)}))}:CQ,n_={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},r_=["Webkit","ms","Moz","O"],Object.keys(n_).forEach((function(e){r_.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),n_[t]=n_[e]}))})),o_=Yv({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),i_=null,a_=null,s_=null,l_=null,c_=!1,u_=!1,Ov)try{d_={},Object.defineProperty(d_,"passive",{get:function(){u_=!0}}),window.addEventListener("test",d_,d_),window.removeEventListener("test",d_,d_)}catch(CQ){u_=!1}p_=!1,f_=null,m_=!1,g_=null,h_={onError:function(e){p_=!0,f_=e}},b_=Cv.unstable_scheduleCallback,y_=Cv.unstable_cancelCallback,v_=Cv.unstable_shouldYield,__=Cv.unstable_requestPaint,w_=Cv.unstable_now,k_=Cv.unstable_getCurrentPriorityLevel,x_=Cv.unstable_ImmediatePriority,S_=Cv.unstable_UserBlockingPriority,C_=Cv.unstable_NormalPriority,E_=Cv.unstable_LowPriority,D_=Cv.unstable_IdlePriority,O_=null,j_=null,$_=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(P_(e)/N_|0)|0},P_=Math.log,N_=Math.LN2,T_=64,I_=4194304,A_=0,B_=!1,H_=[],U_=null,W_=null,V_=null,G_=new Map,q_=new Map,X_=[],K_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "),Y_=Av.ReactCurrentBatchConfig,Q_=!0,J_=null,Z_=null,ew=null,tw=null,nw={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rw=Ae(nw),ow=Yv({},nw,{view:0,detail:0}),iw=Ae(ow),cw=Yv({},ow,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fe,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==lw&&(lw&&"mousemove"===e.type?(aw=e.screenX-lw.screenX,sw=e.screenY-lw.screenY):sw=aw=0,lw=e),aw)},movementY:function(e){return"movementY"in e?e.movementY:sw}}),uw=Ae(cw),dw=Yv({},cw,{dataTransfer:0}),pw=Ae(dw),fw=Yv({},ow,{relatedTarget:0}),mw=Ae(fw),gw=Yv({},nw,{animationName:0,elapsedTime:0,pseudoElement:0}),hw=Ae(gw),bw=Yv({},nw,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yw=Ae(bw),vw=Yv({},nw,{data:0}),_w=Ae(vw),ww={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Sw=Yv({},ow,{key:function(e){if(e.key){var t=ww[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ne(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fe,charCode:function(e){return"keypress"===e.type?Ne(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ne(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cw=Ae(Sw),Ew=Yv({},cw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dw=Ae(Ew),Ow=Yv({},ow,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fe}),jw=Ae(Ow),$w=Yv({},nw,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pw=Ae($w),Nw=Yv({},cw,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tw=Ae(Nw),Iw=[9,13,27,32],Aw=Ov&&"CompositionEvent"in window,Rw=null,Ov&&"documentMode"in document&&(Rw=document.documentMode),Fw=Ov&&"TextEvent"in window&&!Rw,Mw=Ov&&(!Aw||Rw&&8=Rw),Lw=String.fromCharCode(32),zw=!1,Bw=!1,Hw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Uw=null,Ww=null,Vw=!1,Ov&&(Ov?((qw="oninput"in document)||((Xw=document.createElement("div")).setAttribute("oninput","return;"),qw="function"==typeof Xw.oninput),Gw=qw):Gw=!1,Vw=Gw&&(!document.documentMode||9=document.documentMode,Qw=null,Jw=null,Zw=null,ek=!1,tk={animationend:it("Animation","AnimationEnd"),animationiteration:it("Animation","AnimationIteration"),animationstart:it("Animation","AnimationStart"),transitionend:it("Transition","TransitionEnd")},nk={},rk={},Ov&&(rk=document.createElement("div").style,"AnimationEvent"in window||(delete tk.animationend.animation,delete tk.animationiteration.animation,delete tk.animationstart.animation),"TransitionEvent"in window||delete tk.transitionend.transition),ok=at("animationend"),ik=at("animationiteration"),ak=at("animationstart"),sk=at("transitionend"),lk=new Map,ck="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");for(uk=0;uk=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},aC=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},sC=function(e,t){return!1===(!(arguments.length>1&&void 0!==t)||t)?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},lC=function(e){var t,n=fC(e,WS.TITLE),r=fC(e,"titleTemplate");return r&&n?r.replace(/%s/g,(function(){return Array.isArray(n)?n.join(""):n})):(t=fC(e,"defaultTitle"),n||t||void 0)},cC=function(e){return fC(e,"onChangeClientState")||function(){}},uC=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return rC({},e,t)}),{})},dC=function(e,t){return t.filter((function(e){return void 0!==e[WS.BASE]})).map((function(e){return e[WS.BASE]})).reverse().reduce((function(t,n){var r,o,i;if(!t.length)for(r=Object.keys(n),o=0;o=0;n--)if((r=e[n]).hasOwnProperty(t))return r[t];return null},mC=function(e){return{baseTag:dC([GS,"target"],e),bodyAttributes:uC(HS,e),defer:fC(e,"defer"),encode:fC(e,"encodeSpecialCharacters"),htmlAttributes:uC(US,e),linkTags:pC(WS.LINK,[KS,GS],e),metaTags:pC(WS.META,["name","charset","http-equiv","property",XS],e),noscriptTags:pC(WS.NOSCRIPT,[qS],e),onChangeClientState:cC(e),scriptTags:pC(WS.SCRIPT,["src",qS],e),styleTags:pC(WS.STYLE,[VS],e),title:lC(e),titleAttributes:uC("titleAttributes",e)}},DQ=Date.now(),gC=function(e){var t=Date.now();t-DQ>16?(DQ=t,e(t)):setTimeout((function(){gC(e)}),0)},hC=function(e){return clearTimeout(e)},bC="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||gC:global.requestAnimationFrame||gC,yC="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||hC:global.cancelAnimationFrame||hC,vC=function(){return console&&"function"==typeof console.warn&&void 0},_C=null,wC=function(e){_C&&yC(_C),e.defer?_C=bC((function(){kC(e,(function(){_C=null}))})):(kC(e),_C=null)},kC=function(e,t){var n,r,o,i=e.baseTag,a=e.htmlAttributes,s=e.linkTags,l=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,d=e.scriptTags,p=e.styleTags,f=e.title,m=e.titleAttributes;CC(WS.BODY,e.bodyAttributes),CC(WS.HTML,a),SC(f,m),n={baseTag:EC(WS.BASE,i),linkTags:EC(WS.LINK,s),metaTags:EC(WS.META,l),noscriptTags:EC(WS.NOSCRIPT,c),scriptTags:EC(WS.SCRIPT,d),styleTags:EC(WS.STYLE,p)},r={},o={},Object.keys(n).forEach((function(e){var t=n[e],i=t.newTags,a=t.oldTags;i.length&&(r[e]=i),a.length&&(o[e]=n[e].oldTags)})),t&&t(),u(e,r,o)},xC=function(e){return Array.isArray(e)?e.join(""):e},SC=function(e,t){void 0!==e&&document.title!==e&&(document.title=xC(e)),CC(WS.TITLE,t)},CC=function(e,t){var n,r,o,i,a,s,l,c,u,d=document.getElementsByTagName(e)[0];if(d){for(r=(n=d.getAttribute(ZS))?n.split(","):[],o=[].concat(r),i=Object.keys(t),a=0;a=0;u--)d.removeAttribute(o[u]);r.length===o.length?d.removeAttribute(ZS):d.getAttribute(ZS)!==i.join(",")&&d.setAttribute(ZS,i.join(","))}},EC=function(e,t){var n=document.head||document.querySelector(WS.HEAD),r=n.querySelectorAll(e+"["+ZS+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n,r=document.createElement(e);for(n in t)t.hasOwnProperty(n)&&(n===qS?r.innerHTML=t.innerHTML:n===VS?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(n,void 0===t[n]?"":t[n]));r.setAttribute(ZS,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},DC=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},OC=function(e,t,n,r){var o=DC(n),i=xC(t);return o?"<"+e+" "+ZS+'="true" '+o+">"+sC(i,r)+"":"<"+e+" "+ZS+'="true">'+sC(i,r)+""},jC=function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===qS||e===VS)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+sC(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===JS.indexOf(e);return t+"<"+e+" "+ZS+'="true" '+o+(a?"/>":">"+i+"")}),"")},$C=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[YS[n]||n]=e[n],t}),n)},PC=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[QS[n]||n]=e[n],t}),n)},NC=function(e,t,n){var r,o=((r={key:t})[ZS]=!0,r),i=$C(n,o);return[zJ.createElement(WS.TITLE,i,t)]},TC=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[ZS]=!0,r);return Object.keys(t).forEach((function(e){var n=YS[e]||e;n===qS||n===VS?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),zJ.createElement(e,o)}))},IC=function(e,t,n){switch(e){case WS.TITLE:return{toComponent:function(){return NC(0,t.title,t.titleAttributes)},toString:function(){return OC(e,t.title,t.titleAttributes,n)}};case HS:case US:return{toComponent:function(){return $C(t)},toString:function(){return DC(t)}};default:return{toComponent:function(){return TC(e,t)},toString:function(){return jC(e,t,n)}}}},RC=function(e){var t,n;return n=t=function(t){function n(){return tC(this,n),aC(this,t.apply(this,arguments))}return oC(n,t),n.prototype.shouldComponentUpdate=function(e){return!GJ(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case WS.SCRIPT:case WS.NOSCRIPT:return{innerHTML:t};case WS.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return rC({},r,((t={})[n.type]=[].concat(r[n.type]||[],[rC({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case WS.TITLE:return rC({},o,((t={})[r.type]=a,t.titleAttributes=rC({},i),t));case WS.BODY:return rC({},o,{bodyAttributes:rC({},i)});case WS.HTML:return rC({},o,{htmlAttributes:rC({},i)})}return rC({},o,((n={})[r.type]=rC({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=rC({},t);return Object.keys(e).forEach((function(t){var r;n=rC({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return zJ.Children.forEach(e,(function(e){var o,i,a,s;if(e&&e.props)switch(i=(o=e.props).children,a=iC(o,["children"]),s=PC(a),n.warnOnInvalidChildren(e,i),e.type){case WS.LINK:case WS.META:case WS.NOSCRIPT:case WS.SCRIPT:case WS.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=iC(t,["children"]),o=rC({},r);return n&&(o=this.mapChildrenToProps(n,o)),zJ.createElement(e,o)},nC(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(zJ.Component),t.propTypes={base:WJ.object,bodyAttributes:WJ.object,children:WJ.oneOfType([WJ.arrayOf(WJ.node),WJ.node]),defaultTitle:WJ.string,defer:WJ.bool,encodeSpecialCharacters:WJ.bool,htmlAttributes:WJ.object,link:WJ.arrayOf(WJ.object),meta:WJ.arrayOf(WJ.object),noscript:WJ.arrayOf(WJ.object),onChangeClientState:WJ.func,script:WJ.arrayOf(WJ.object),style:WJ.arrayOf(WJ.object),title:WJ.string,titleAttributes:WJ.object,titleTemplate:WJ.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=AC({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n},FC=function(){return null},MC=VJ(mC,wC,AC=function(e){var t=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.scriptTags,l=e.styleTags,c=e.title,u=void 0===c?"":c,d=e.titleAttributes;return{base:IC(WS.BASE,e.baseTag,n),bodyAttributes:IC(HS,t,n),htmlAttributes:IC(US,r,n),link:IC(WS.LINK,o,n),meta:IC(WS.META,i,n),noscript:IC(WS.NOSCRIPT,a,n),script:IC(WS.SCRIPT,s,n),style:IC(WS.STYLE,l,n),title:IC(WS.TITLE,{title:u,titleAttributes:d},n)}})(FC),(LC=RC(MC)).renderStatic=LC.rewind,zC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const XJ=(e,t)=>{const n=pv.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:a,...s},l)=>{return pv.createElement("svg",{ref:l,...zC,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>pv.createElement(e,t))),...(Array.isArray(a)?a:[a])||[]]);var c}));return n.displayName=`${e}`,n},KJ=XJ("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),YJ=XJ("Bug",[["rect",{width:"8",height:"14",x:"8",y:"6",rx:"4",key:"hq8nra"}],["path",{d:"m19 7-3 2",key:"fmg8ec"}],["path",{d:"m5 7 3 2",key:"dkxqes"}],["path",{d:"m19 19-3-2",key:"1hbhi4"}],["path",{d:"m5 19 3-2",key:"dvt2ee"}],["path",{d:"M20 13h-4",key:"1agfp2"}],["path",{d:"M4 13h4",key:"1bwh8b"}],["path",{d:"m10 4 1 2",key:"1pot59"}],["path",{d:"m14 4-1 2",key:"m8sn0o"}]]),QJ=XJ("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),JJ=XJ("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),ZJ=XJ("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),eZ=XJ("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),tZ=XJ("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),nZ=XJ("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9",key:"c89w8i"}],["path",{d:"M12 12v3",key:"158kv8"}]]),rZ=XJ("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),oZ=XJ("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),iZ=XJ("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),aZ=XJ("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),sZ=XJ("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),lZ=XJ("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),cZ=XJ("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),uZ=XJ("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),dZ=XJ("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),pZ=XJ("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),fZ=XJ("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),mZ=XJ("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),gZ=XJ("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),hZ=XJ("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),bZ=XJ("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),yZ=XJ("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),vZ=XJ("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);BC=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){var t,n;if(this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this)),t=this.tags[this.tags.length-1],this.isSpeedy){n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case qC:e.return=la(e.value,e.length);break;case KC:return ia([zi(e,{value:Ni(e.value,"@","@"+WC)})],r);case GC:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ia([zi(e,{props:[Ni(t,/:(read-\w+)/,":"+UC+"$1")]})],r);case"::placeholder":return ia([zi(e,{props:[Ni(t,/:(plac\w+)/,":"+WC+"input-$1")]}),zi(e,{props:[Ni(t,/:(plac\w+)/,":"+UC+"$1")]}),zi(e,{props:[Ni(t,/:(plac\w+)/,HC+"input-$1")]})],r)}return""}))}}],mE=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,m,g=e.key;return"css"===g&&(t=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))),n=e.stylisPlugins||fE,r={},i=[],o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+g+' "]'),(function(e){var t,n=e.getAttribute("data-emotion").split(" ");for(t=1;t=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s,{name:c,styles:o,next:xE}},CE=function(e,t,n){var r=e.key+"-"+t.name;!1!==n||void 0!==e.registered[r]||(e.registered[r]=t.styles)},EE=function(e,t,n){var r,o;if(CE(e,t,n),r=e.key+"-"+t.name,void 0===e.inserted[t.name]){o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},DE=function(e){var t,n,r,o,i=mE(e);return i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0,t=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1&&void 0!==n?n:{},m=arguments.length>2&&void 0!==r?r:{root:!0,parentSelectors:[]},g=m.root,h=m.injectHash,b=m.parentSelectors,y=f.hashId,v=f.layer;return i=f.hashPriority,s=void 0===(a=f.transformers)?[]:a,l="",c={},u=function e(t,n){var r=arguments.length>1&&void 0!==n?n:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]),u.forEach((function(t){var n,r="string"!=typeof t||g?t:{};"string"==typeof r?l+="".concat(r,"\n"):r._keyframe?o(r):(n=s.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r),Object.keys(n).forEach((function(t){var r,a,s,u,d,p,m,v,_=n[t];if("object"!==xi(_)||!_||"animationName"===t&&_._keyframe||function(e){return"object"===xi(e)&&e&&("_skip_check_"in e||OO in e)}(_)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;oO[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(o(t),r=t.getName(y)),l+="".concat(n,":").concat(r,";")};v=null!==(m=null==_?void 0:_.value)&&void 0!==m?m:_,"object"===xi(_)&&null!=_&&_[OO]&&Array.isArray(v)?v.forEach((function(n){e(t,n)})):e(t,v)}else r=!1,a=t.trim(),s=!1,(g||h)&&y?a.startsWith("@")?r=!0:a=function(e,t,n){var r,o;return t?(r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(ka(n.slice(1))).join(" ")})).join(",")):e}(t,y,i):!g||y||"&"!==a&&""!==a||(a="",s=!0),d=(u=Va(e(_,f,{root:s,injectHash:r,parentSelectors:[].concat(ka(b),[a])}),2))[0],p=u[1],c=Sa(Sa({},c),p),l+="".concat(a).concat(d)})))})),g?v&&function(){var e,t,n,r,o,i;return void 0===qD&&(e="@layer ".concat(VD," { .").concat(VD,' { content: "').concat(GD,'"!important; } }'),t=function(e){e.className=VD},qD=!!Ta()&&(Ba(e,VD),(o=document.createElement("div")).style.position="fixed",o.style.left="0",o.style.top="0",null==t||t(o),document.body.appendChild(o),i=null===(n=getComputedStyle(o).content)||void 0===n?void 0:n.includes(GD),null===(r=o.parentNode)||void 0===r||r.removeChild(o),za(VD),i)),qD}()&&(p=(d=v.split(","))[d.length-1].trim(),l="@layer ".concat(p," {").concat(l,"}"),d.length>1&&(l="@layer ".concat(v,"{%%%:%}").concat(l))):l="{".concat(l,"}"),[l,c]},$O=function(){function e(t,n){Oi(this,e),Ci(this,"name",void 0),Ci(this,"style",void 0),Ci(this,"_keyframe",!0),this.name=t,this.style=n}return $i(e,[{key:"getName",value:function(e){var t=arguments.length>0&&void 0!==e?e:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e}(),PO=function(){function e(){Oi(this,e),Ci(this,"cache",void 0),Ci(this,"keys",void 0),Ci(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return $i(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t,i={map:this.cache};return e.forEach((function(e){var t,n;i=i?null===(t=i)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(n=i)&&void 0!==n&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),null===(r=i)||void 0===r?void 0:r.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 r,o,i,a=this;this.has(t)||(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET&&(r=this.keys.reduce((function(e,t){var n=Va(e,2)[1];return a.internalGet(t)[1]0},e.prototype.connect_=function(){HO&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),GO?(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(){HO&&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;VO.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),XO=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n0},e}(),tj="undefined"!=typeof WeakMap?new WeakMap:new BO,nj=function e(t){var n,r;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.");n=qO.getInstance(),r=new ej(t,n,this),tj.set(this,r)},["observe","unobserve","disconnect"].forEach((function(e){nj.prototype[e]=function(){var t;return(t=tj.get(this))[e].apply(t,arguments)}})),rj=void 0!==UO.ResizeObserver?UO.ResizeObserver:nj,oj=new Map,ij=new rj((function(e){e.forEach((function(e){var t,n=e.target;null===(t=oj.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),aj=function(){function e(){return Oi(this,e),t.apply(this,arguments)}Is(e,pv.Component);var t=Ms(e);return $i(e,[{key:"render",value:function(){return this.props.children}}]),e}(),sj=pv.createContext(null),lj=pv.forwardRef(Ks),cj="rc-observer-key",(uj=pv.forwardRef(Ys)).Collection=function(e){var t=e.children,n=e.onBatchResize,r=pv.useRef(0),o=pv.useRef([]),i=pv.useContext(sj),a=pv.useCallback((function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return pv.createElement(sj.Provider,{value:a},t)},dj=function(e){return+setTimeout(e,16)},pj=function(e){return clearTimeout(e)},"undefined"!=typeof window&&"requestAnimationFrame"in window&&(dj=function(e){return window.requestAnimationFrame(e)},pj=function(e){return window.cancelAnimationFrame(e)}),fj=0,mj=new Map,(gj=function(e,t){var n;return n=fj+=1,function t(r){if(0===r)Js(n),e();else{var o=dj((function(){t(r-1)}));mj.set(n,o)}}(arguments.length>1&&void 0!==t?t:1),n}).cancel=function(e){var t=mj.get(e);return Js(t),pj(t)};const SZ=pv.createContext({});hj="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const CZ=pv.createContext(void 0),EZ={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},DZ={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"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},EZ)},OZ="${label} is not a valid ${type}",jZ={locale:"en",Pagination:{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"},DatePicker:DZ,TimePicker:EZ,Calendar:DZ,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:OZ,method:OZ,array:OZ,object:OZ,number:OZ,date:OZ,boolean:OZ,integer:OZ,float:OZ,regexp:OZ,email:OZ,url:OZ,hex:OZ},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let $Z=Object.assign({},jZ.Modal);const PZ=pv.createContext(void 0),NZ=(e,t)=>{const n=pv.useContext(PZ);return[pv.useMemo((()=>{var r;const o=t||jZ[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),pv.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?jZ.locale:e}),[n])]},TZ=e=>{const{locale:t={},children:n}=e;pv.useEffect((()=>(il(t&&t.Modal),()=>{il()})),[t]);const r=pv.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return pv.createElement(PZ.Provider,{value:r},n)},IZ=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],AZ="5.7.3";bj={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},yj="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),vj="[\\s|\\(]+(".concat(yj,")[,|\\s]+(").concat(yj,")[,|\\s]+(").concat(yj,")\\s*\\)?"),_j="[\\s|\\(]+(".concat(yj,")[,|\\s]+(").concat(yj,")[,|\\s]+(").concat(yj,")[,|\\s]+(").concat(yj,")\\s*\\)?"),wj={CSS_UNIT:new RegExp(yj),rgb:new RegExp("rgb"+vj),rgba:new RegExp("rgba"+_j),hsl:new RegExp("hsl"+vj),hsla:new RegExp("hsla"+_j),hsv:new RegExp("hsv"+vj),hsva:new RegExp("hsva"+_j),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/},kj=function(){function e(t,n){var r,o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t,o=yl(t),this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=cl(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=ml(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ml(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=pl(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=pl(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),gl(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[dl(Math.round(e).toString(16)),dl(Math.round(t).toString(16)),dl(Math.round(n).toString(16)),dl((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*sl(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*sl(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){var e,t,n,r;if(0===this.a)return"transparent";if(this.a<1)return!1;for(e="#"+gl(this.r,this.g,this.b,!1),t=0,n=Object.entries(bj);t=0)||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ll(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ll(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ll(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ll(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){var r,o,i;return void 0===n&&(n=50),r=this.toRgb(),o=new e(t).toRgb(),new e({r:(o.r-r.r)*(i=n/100)+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){var r,o,i;for(void 0===t&&(t=6),void 0===n&&(n=30),i=[this],(r=this.toHsl()).h=(r.h-((o=360/n)*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){var n,r,o,i,a,s;for(void 0===t&&(t=6),r=(n=this.toHsv()).h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){var n,r=this.toHsl(),o=r.h,i=[this],a=360/t;for(n=1;n{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},FZ={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"},MZ=Object.assign(Object.assign({},FZ),{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}),LZ=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},zZ=(e,t)=>new kj(e).setAlpha(t).toRgbString(),BZ=(e,t)=>new kj(e).darken(t).toHexString(),HZ=e=>{const t=Cl(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]}},UZ=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:zZ(r,.88),colorTextSecondary:zZ(r,.65),colorTextTertiary:zZ(r,.45),colorTextQuaternary:zZ(r,.25),colorFill:zZ(r,.15),colorFillSecondary:zZ(r,.06),colorFillTertiary:zZ(r,.04),colorFillQuaternary:zZ(r,.02),colorBgLayout:BZ(n,4),colorBgContainer:BZ(n,0),colorBgElevated:BZ(n,0),colorBgSpotlight:zZ(r,.85),colorBorder:BZ(n,15),colorBorderSecondary:BZ(n,6)}},WZ=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=e*Math.pow(2.71828,(n-1)/5),o=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},VZ=js(Dl),GZ={token:MZ,hashed:!0},qZ=zJ.createContext(GZ);Aj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rt||(e?`ant-${e}`:"ant"),iconPrefixCls:XZ}),YZ=(e,t,n,r,o)=>{const i=e/2,a=i,s=1*n/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,f=2*i-s,m=l,g=2*i-0,h=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${m} A ${n} ${n} 0 0 0 ${g} ${h} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},QZ={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},JZ=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),ZZ=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),e0=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},t0=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),n0=e=>({"&:focus-visible":Object.assign({},t0(e))}),r0="undefined"!=typeof CSSINJS_STATISTIC;let o0=!0;const i0=`-ant-${Date.now()}-${Math.random()}`,a0=pv.createContext(!1),s0=e=>{let{children:t,disabled:n}=e;const r=pv.useContext(a0);return pv.createElement(a0.Provider,{value:null!=n?n:r},t)},l0=a0,c0=pv.createContext(void 0),u0=e=>{let{children:t,size:n}=e;const r=pv.useContext(c0);return pv.createElement(c0.Provider,{value:n||r},t)},d0=c0;Rj=["children"],Fj=pv.createContext({}),Mj=function(){function e(){return Oi(this,e),t.apply(this,arguments)}Is(e,pv.Component);var t=Ms(e);return $i(e,[{key:"render",value:function(){return this.props.children}}]),e}(),Lj="none",zj="appear",Bj="enter",Hj="leave",Uj="none",Wj="prepare",Vj="start",Gj="active",qj="end",Xj="prepared",jQ=Ta(),$Q="undefined"!=typeof window?window:{},PQ={animationend:Bl("Animation","AnimationEnd"),transitionend:Bl("Transition","TransitionEnd")},jQ&&("AnimationEvent"in $Q||delete PQ.animationend.animation,"TransitionEvent"in $Q||delete PQ.transitionend.transition),Kj=PQ,Yj={},Ta()&&(Qj=document.createElement("div"),Yj=Qj.style),Jj={},Zj=Hl("animationend"),e$=Hl("transitionend"),t$=!(!Zj||!e$),n$=Zj||"animationend",r$=e$||"transitionend",o$=Ta()?pv.useLayoutEffect:pv.useEffect,i$=[Wj,Vj,Gj,qj],a$=[Wj,Xj];const p0=(IQ=NQ=t$,"object"===xi(NQ)&&(IQ=NQ.transitionSupport),(TQ=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.visible,c=void 0===l||l,u=e.removeOnLeave,d=void 0===u||u,p=e.forceRender,f=e.children,m=e.motionName,g=e.leavedClassName,h=e.eventProps,b=function(e,t){return!(!e.motionName||!IQ||!1===t)}(e,pv.useContext(Fj).motion),y=pv.useRef(),v=pv.useRef(),_=function(e,t,n,r){function o(){return n()}function i(){A(Lj,!0),M(null,!0)}function a(e){var t,n,r=o();e&&!e.deadline&&e.target!==r||(t=B.current,I===zj&&t?n=null==E?void 0:E(r,e):I===Bj&&t?n=null==D?void 0:D(r,e):I===Hj&&t&&(n=null==O?void 0:O(r,e)),I!==Lj&&t&&!1!==n&&i())}var s,l,c=r.motionEnter,u=void 0===c||c,d=r.motionAppear,p=void 0===d||d,f=r.motionLeave,m=void 0===f||f,g=r.motionDeadline,h=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,v=r.onLeavePrepare,_=r.onAppearStart,w=r.onEnterStart,k=r.onLeaveStart,x=r.onAppearActive,S=r.onEnterActive,C=r.onLeaveActive,E=r.onAppearEnd,D=r.onEnterEnd,O=r.onLeaveEnd,j=r.onVisibleChanged,$=Va(Tl(),2),P=$[0],N=$[1],T=Va(Tl(Lj),2),I=T[0],A=T[1],R=Va(Tl(null),2),F=R[0],M=R[1],L=pv.useRef(!1),z=pv.useRef(null),B=pv.useRef(!1),H=Va(function(e){function t(e){e&&(e.removeEventListener(r$,n),e.removeEventListener(n$,n))}var n,r=pv.useRef(),o=pv.useRef(e);return o.current=e,n=pv.useCallback((function(e){o.current(e)}),[]),pv.useEffect((function(){return function(){t(r.current)}}),[]),[function(e){r.current&&r.current!==e&&t(r.current),e&&e!==r.current&&(e.addEventListener(r$,n),e.addEventListener(n$,n),r.current=e)},t]}(a),1)[0],U=function(e){var t,n,r;switch(e){case zj:return Ci(t={},Wj,b),Ci(t,Vj,_),Ci(t,Gj,x),t;case Bj:return Ci(n={},Wj,y),Ci(n,Vj,w),Ci(n,Gj,S),n;case Hj:return Ci(r={},Wj,v),Ci(r,Vj,k),Ci(r,Gj,C),r;default:return{}}},W=pv.useMemo((function(){return U(I)}),[I]),V=function(e,t,n){var r=Va(Tl(Uj),2),o=r[0],i=r[1],a=function(){function e(){gj.cancel(t.current)}var t=pv.useRef(null);return pv.useEffect((function(){return function(){e()}}),[]),[function n(r,o){var i,a=arguments.length>1&&void 0!==o?o:2;e(),i=gj((function(){a<=1?r({isCanceled:function(){return i!==t.current}}):n(r,a-1)})),t.current=i},e]}(),s=Va(a,2),l=s[0],c=s[1],u=t?a$:i$;return o$((function(){var e,t,r;o!==Uj&&o!==qj&&(e=u.indexOf(o),t=u[e+1],!1===(r=n(o))?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})))}),[e,o]),pv.useEffect((function(){return function(){c()}}),[]),[function(){i(Wj,!0)},o]}(I,!e,(function(e){var t,n;return e===Wj?!!(t=W[Wj])&&t(o()):(X in W&&M((null===(n=W[X])||void 0===n?void 0:n.call(W,o(),null))||null),X===Gj&&(H(o()),g>0&&(clearTimeout(z.current),z.current=setTimeout((function(){a({deadline:!0})}),g))),X===Xj&&i(),!0)})),G=Va(V,2),q=G[0],X=G[1],K=Wl(X);return B.current=K,o$((function(){var n,r,o;N(t),n=L.current,L.current=!0,!n&&t&&p&&(r=zj),n&&t&&u&&(r=Bj),(n&&!t&&m||!n&&h&&!t&&m)&&(r=Hj),o=U(r),r&&(e||o[Wj])?(A(r),q()):A(Lj)}),[t]),pv.useEffect((function(){(I===zj&&!p||I===Bj&&!u||I===Hj&&!m)&&A(Lj)}),[p,u,m]),pv.useEffect((function(){return function(){L.current=!1,clearTimeout(z.current)}}),[]),s=pv.useRef(!1),pv.useEffect((function(){P&&(s.current=!0),void 0!==P&&I===Lj&&((s.current||P)&&(null==j||j(P)),s.current=!0)}),[P,I]),l=F,W[Wj]&&X===Vj&&(l=Sa({transition:"none"},l)),[I,X,l,null!=P?P:t]}(b,c,(function(){try{return y.current instanceof HTMLElement?y.current:Vs(v.current)}catch(VQ){return null}}),e),w=Va(_,4),k=w[0],x=w[1],S=w[2],C=w[3],E=pv.useRef(C);return C&&(E.current=!0),n=pv.useCallback((function(e){y.current=e,zs(t,e)}),[t]),o=Sa(Sa({},h),{},{visible:c}),f?k===Lj?r=C?f(Sa({},o),n):!d&&E.current&&g?f(Sa(Sa({},o),{},{className:g}),n):p||!d&&!g?f(Sa(Sa({},o),{},{style:{display:"none"}}),n):null:(x===Wj?a="prepare":Wl(x)?a="active":x===Vj&&(a="start"),s=Ul(m,"".concat(k,"-").concat(a)),r=f(Sa(Sa({},o),{},{className:xZ(Ul(m,k),(i={},Ci(i,s,s&&a),Ci(i,m,"string"==typeof m),i)),style:S}),n)):r=null,pv.isValidElement(r)&&Us(r)&&(r.ref||(r=pv.cloneElement(r,{ref:n}))),pv.createElement(Mj,{ref:v},r)}))).displayName="CSSMotion",TQ);s$="add",l$="keep",c$="remove",u$="removed",d$=["component","children","onVisibleChanged","onAllRemoved"],p$=["status"],f$=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const f0=function(e,t){var n=arguments.length>1&&void 0!==t?t:p0,r=function(){function e(){var n,r,o,i;for(Oi(this,e),r=arguments.length,o=new Array(r),i=0;i1&&void 0!==t?t:[],o=[],i=0,a=r.length,s=Gl(arguments.length>0&&void 0!==e?e:[]),l=Gl(r);return s.forEach((function(e){var t,n,r=!1;for(t=i;t1})).forEach((function(e){(o=o.filter((function(t){return t.key!==e||t.status!==c$}))).forEach((function(t){t.key===e&&(t.status=l$)}))})),o}(n,r);return{keyEntities:o.filter((function(e){var t=n.find((function(t){return e.key===t.key}));return!t||t.status!==u$||e.status!==c$}))}}}]),e}();return Ci(r,"defaultProps",{component:"div"}),r}(t$);m$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${Xl()}-${e}`:Xl()),getIconPrefixCls:Kl,getRootPrefixCls:()=>g0||Xl(),getTheme:()=>b0}),v0=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:f,popupOverflow:m,legacyLocale:g,parentContext:h,iconPrefixCls:b,theme:y,componentDisabled:v,segmented:_,statistic:w,spin:k,calendar:x,carousel:S,cascader:C,collapse:E,typography:D,checkbox:O,descriptions:j,divider:$,drawer:P,skeleton:N,steps:T,image:I,layout:A,list:R,mentions:F,modal:M,progress:L,result:z,slider:B,breadcrumb:H,menu:U,pagination:W,input:V,empty:G,badge:q,radio:X,rate:K,switch:Y,transfer:Q,avatar:J,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue}=e,de=pv.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||h.getPrefixCls("");return t?`${o}-${t}`:o}),[h.getPrefixCls,e.prefixCls]),pe=b||h.iconPrefixCls||XZ,fe=pe!==h.iconPrefixCls,me=n||h.csp,ge=((e,t)=>{const[n,r]=Pl();return Os({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${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"}})}]))})(pe,me),he=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:GZ;return Ea((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Pa(e,t[n],!0)))))}(y,h.theme),be={csp:me,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=f?f:p,popupOverflow:m,getPrefixCls:de,iconPrefixCls:pe,theme:he,segmented:_,statistic:w,spin:k,calendar:x,carousel:S,cascader:C,collapse:E,typography:D,checkbox:O,descriptions:j,divider:$,drawer:P,skeleton:N,steps:T,image:I,input:V,layout:A,list:R,mentions:F,modal:M,progress:L,result:z,slider:B,breadcrumb:H,menu:U,pagination:W,empty:G,badge:q,radio:X,rate:K,switch:Y,transfer:Q,avatar:J,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue},ye=Object.assign({},h);Object.keys(be).forEach((e=>{void 0!==be[e]&&(ye[e]=be[e])})),m0.forEach((t=>{const n=e[t];n&&(ye[t]=n)}));const ve=Ea((()=>ye),ye,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),_e=pv.useMemo((()=>({prefixCls:pe,csp:me})),[pe,me]);let we=fe?ge(t):t;const ke=pv.useMemo((()=>{var e,t,n,r;return ol((null===(e=jZ.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ve.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=ve.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[ve,null==a?void 0:a.validateMessages]);Object.keys(ke).length>0&&(we=pv.createElement(CZ.Provider,{value:ke},t)),s&&(we=pv.createElement(TZ,{locale:s,_ANT_MARK__:"internalMark"},we)),(pe||me)&&(we=pv.createElement(SZ.Provider,{value:_e},we)),l&&(we=pv.createElement(u0,{size:l},we)),we=pv.createElement(ql,null,we);const xe=pv.useMemo((()=>{const e=he||{},{algorithm:t,token:n}=e,r=m$(e,["algorithm","token"]),o=t&&(!Array.isArray(t)||t.length>0)?js(t):void 0;return Object.assign(Object.assign({},r),{theme:o,token:Object.assign(Object.assign({},MZ),n)})}),[he]);return y&&(we=pv.createElement(qZ.Provider,{value:xe},we)),void 0!==v&&(we=pv.createElement(s0,{disabled:v},we)),pv.createElement(KZ.Provider,{value:ve},we)},_0=e=>{const t=pv.useContext(KZ),n=pv.useContext(PZ);return pv.createElement(v0,Object.assign({parentContext:t,legacyLocale:n},e))};_0.ConfigContext=KZ,_0.SizeContext=d0,_0.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(g0=t),void 0!==n&&(h0=n),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new kj(e),i=Cl(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new kj(t.primaryColor),i=Cl(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new kj(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Ta()&&Ba(n,`${i0}-dynamic-theme`)}(Xl(),r):b0=r)},_0.useConfig=function(){return{componentDisabled:pv.useContext(l0),componentSize:pv.useContext(d0)}},Object.defineProperty(_0,"SizeContext",{get:()=>d0});const w0={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"};g$=function(e){var t=pv.useContext(SZ),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\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&&(o=o.replace(/anticon/g,r)),pv.useEffect((function(){var t=Ql(e.current);Ba(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},h$=["icon","className","onClick","style","primaryColor","secondaryColor"],b$={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},(y$=function(e){var t,n,r,o=e.icon,i=e.className,a=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=Ei(e,h$),d=pv.useRef(),p=b$;return l&&(p={primaryColor:l,secondaryColor:c||tc(l)}),g$(d),n=Jl(o),r="icon should be icon definiton, but got ".concat(o),$a(n,"[@ant-design/icons] ".concat(r)),Jl(o)?((t=o)&&"function"==typeof t.icon&&(t=Sa(Sa({},t),{},{icon:t.icon(p.primaryColor,p.secondaryColor)})),ec(t.icon,"svg-".concat(t.name),Sa(Sa({className:i,onClick:a,style:s,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))):null}).displayName="IconReact",y$.getTwoToneColors=function(){return Sa({},b$)},y$.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;b$.primaryColor=t,b$.secondaryColor=n||tc(t),b$.calculated=!!n};const k0=y$;v$=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"],rc(Ij.primary),(_$=pv.forwardRef((function(e,t){var n,r,o,i,a,s=e.className,l=e.icon,c=e.spin,u=e.rotate,d=e.tabIndex,p=e.onClick,f=e.twoToneColor,m=Ei(e,v$),g=pv.useContext(SZ),h=g.prefixCls,b=void 0===h?"anticon":h,y=xZ(g.rootClassName,b,(Ci(n={},"".concat(b,"-").concat(l.name),!!l.name),Ci(n,"".concat(b,"-spin"),!!c||"loading"===l.name),n),s),v=d;return void 0===v&&p&&(v=-1),r=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,i=(o=Va(nc(f),2))[0],a=o[1],pv.createElement("span",fa({role:"img","aria-label":l.name},m,{ref:t,tabIndex:v,onClick:p,className:y}),pv.createElement(k0,{icon:l,primaryColor:i,secondaryColor:a,style:r}))}))).displayName="AntdIcon",_$.getTwoToneColor=function(){var e=k0.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},_$.setTwoToneColor=rc;const x0=_$,S0=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:w0}))})),C0={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},E0=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:C0}))})),D0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},O0=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:D0}))})),j0={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"},$0=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:j0}))})),P0={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"},N0=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:P0}))}));w$="".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 spellCheck 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]+/),k$="aria-",x$="data-";const{isValidElement:T0}=BJ,I0=e=>"object"==typeof e&&null!=e&&1===e.nodeType,A0=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,R0=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,M0=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},L0=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!I0(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let m=e;for(;I0(m)&&d(m);){if(m=M0(m),m===p){f.push(m);break}null!=m&&m===document.body&&R0(m)&&!R0(document.documentElement)||null!=m&&R0(m,u)&&f.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:v,width:_,top:w,right:k,bottom:x,left:S}=e.getBoundingClientRect();let C="start"===s||"nearest"===s?w:"end"===s?x:w+v/2,E="center"===l?S+_/2:"end"===l?k:S;const D=[];for(let O=0;O=0&&S>=0&&x<=h&&k<=g&&w>=r&&x<=i&&S>=c&&k<=o)return D;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),j=parseInt(u.borderRightWidth,10),$=parseInt(u.borderBottomWidth,10);let P=0,N=0;const T="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-j:0,I="offsetHeight"in e?e.offsetHeight-e.clientHeight-m-$:0,A="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,R="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)P="start"===s?C:"end"===s?C-h:"nearest"===s?F0(y,y+h,h,m,$,y+C,y+C+v,v):C-h/2,N="start"===l?E:"center"===l?E-g/2:"end"===l?E-g:F0(b,b+g,g,d,j,b+E,b+E+_,_),P=Math.max(0,P+y),N=Math.max(0,N+b);else{P="start"===s?C-r-m:"end"===s?C-i+$+I:"nearest"===s?F0(r,i,t,m,$+I,C,C+v,v):C-(r+t/2)+I/2,N="start"===l?E-c-d:"center"===l?E-(c+n/2)+T/2:"end"===l?E-o+j+T:F0(c,o,n,d,j+T,E,E+_,_);const{scrollLeft:a,scrollTop:u}=e;P=Math.max(0,Math.min(u+P/R,e.scrollHeight-t/R+I)),N=Math.max(0,Math.min(a+N/A,e.scrollWidth-n/A+T)),C+=u-P,E+=a-N}D.push({el:e,top:P,left:N})}return D},z0=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};S$={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>=S$.F1&&t<=S$.F12)return!1;switch(t){case S$.ALT:case S$.CAPS_LOCK:case S$.CONTEXT_MENU:case S$.CTRL:case S$.DOWN:case S$.END:case S$.ESC:case S$.HOME:case S$.INSERT:case S$.LEFT:case S$.MAC_FF_META:case S$.META:case S$.NUMLOCK:case S$.NUM_CENTER:case S$.PAGE_DOWN:case S$.PAGE_UP:case S$.PAUSE:case S$.PRINT_SCREEN:case S$.RIGHT:case S$.SHIFT:case S$.UP:case S$.WIN_KEY:case S$.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=S$.ZERO&&e<=S$.NINE)return!0;if(e>=S$.NUM_ZERO&&e<=S$.NUM_MULTIPLY)return!0;if(e>=S$.A&&e<=S$.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case S$.SPACE:case S$.QUESTION_MARK:case S$.NUM_PLUS:case S$.NUM_MINUS:case S$.NUM_PERIOD:case S$.NUM_DIVISION:case S$.SEMICOLON:case S$.DASH:case S$.EQUALS:case S$.COMMA:case S$.PERIOD:case S$.SLASH:case S$.APOSTROPHE:case S$.SINGLE_QUOTE:case S$.OPEN_SQUARE_BRACKET:case S$.BACKSLASH:case S$.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},C$=pv.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.style,i=e.className,a=e.duration,s=void 0===a?4.5:a,l=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=void 0===d?"x":d,f=e.props,m=e.onClick,g=e.onNoticeClose,h=e.times,b=Va(pv.useState(!1),2),y=b[0],v=b[1],_=function(){g(l)};return pv.useEffect((function(){if(!y&&s>0){var e=setTimeout((function(){_()}),1e3*s);return function(){clearTimeout(e)}}}),[s,y,h]),n="".concat(r,"-notice"),pv.createElement("div",fa({},f,{ref:t,className:xZ(n,i,Ci({},"".concat(n,"-closable"),u)),style:o,onMouseEnter:function(){v(!0)},onMouseLeave:function(){v(!1)},onClick:m}),pv.createElement("div",{className:"".concat(n,"-content")},c),u&&pv.createElement("a",{tabIndex:0,className:"".concat(n,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==S$.ENTER||_()},onClick:function(e){e.preventDefault(),e.stopPropagation(),_()}},p))})),E$=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.prefixCls,c=void 0===l?"rc-notification":l,u=e.container,d=e.motion,p=e.maxCount,f=e.className,m=e.style,g=e.onAllRemoved,h=Va(pv.useState([]),2),b=h[0],y=h[1],v=function(e){var t,n=b.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),y((function(t){return t.filter((function(t){return t.key!==e}))}))};return pv.useImperativeHandle(t,(function(){return{open:function(e){y((function(t){var n,r=ka(t),o=r.findIndex((function(t){return t.key===e.key})),i=Sa({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),p>0&&r.length>p&&(r=r.slice(-p)),r}))},close:function(e){v(e)},destroy:function(){y([])}}})),n=Va(pv.useState({}),2),r=n[0],o=n[1],pv.useEffect((function(){var e={};b.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(r).forEach((function(t){e[t]=e[t]||[]})),o(e)}),[b]),i=function(e){o((function(t){var n=Sa({},t);return(n[e]||[]).length||delete n[e],n}))},a=pv.useRef(!1),pv.useEffect((function(){Object.keys(r).length>0?a.current=!0:a.current&&(null==g||g(),a.current=!1)}),[r]),u?(s=Object.keys(r),ES.createPortal(pv.createElement(pv.Fragment,null,s.map((function(e){var t=r[e].map((function(e){return{config:e,key:e.key}})),n="function"==typeof d?d(e):d;return pv.createElement(f0,fa({key:e,className:xZ(c,"".concat(c,"-").concat(e),null==f?void 0:f(e)),style:null==m?void 0:m(e),keys:t,motionAppear:!0},n,{onAllRemoved:function(){i(e)}}),(function(e,t){var n=e.config,r=e.style,o=n.key,i=n.times,a=n.style;return pv.createElement(C$,fa({},n,{ref:t,prefixCls:c,className:xZ(e.className,n.className),style:Sa(Sa({},r),a),times:i,key:o,eventKey:o,onNoticeClose:v}))}))}))),u)):null})),D$=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],O$=function(){return document.body},j$=0;const B0={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"},H0=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:B0}))})),U0=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:b}=e,y=`${t}-notice`,v=new $O("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),_=new $O("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:f,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:h,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},JZ(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\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:_,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[y]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},W0=Ml("Message",(e=>{const t=Rl(e,{height:150});return[U0(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));$$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,type:n,icon:r,children:o}=e;return pv.createElement("div",{className:xZ(`${t}-custom-content`,`${t}-${n}`)},r||V0[n],pv.createElement("span",null,o))};P$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=q0,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:p}=pv.useContext(KZ),f=r||u("message"),[,m]=W0(f),g=pv.createElement("span",{className:`${f}-close-x`},pv.createElement(O0,{className:`${f}-close-icon`})),[h,b]=lc({prefixCls:f,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>xZ(m,{[`${f}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(f,l),closable:!1,closeIcon:g,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c});return pv.useImperativeHandle(t,(()=>Object.assign(Object.assign({},h),{prefixCls:f,hashId:m,message:p}))),b}));let K0=0;T$=(N$=Sa({},UJ)).version,I$=N$.render,A$=N$.unmountComponentAtNode;try{Number((T$||"").split(".")[0])>=18&&(R$=N$.createRoot)}catch(VQ){}F$="__rc_react_root__";const Y0=function(e){var t,n;if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox&&((t=e.getBBox()).width||t.height))return!0;if(e.getBoundingClientRect&&((n=e.getBoundingClientRect()).width||n.height))return!0}return!1},Q0=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}}}}},J0=Ml("Wave",(e=>[Q0(e)])),Z0=e=>{function t(){const e=getComputedStyle(r);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return kc(t)?t:kc(n)?n:kc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;u(t?r.offsetLeft:xc(-parseFloat(n))),p(t?r.offsetTop:xc(-parseFloat(o))),m(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;l([i,s,d,c].map((e=>xc(parseFloat(e)))))}const{className:n,target:r}=e,o=pv.useRef(null),[i,a]=pv.useState(null),[s,l]=pv.useState([]),[c,u]=pv.useState(0),[d,p]=pv.useState(0),[f,m]=pv.useState(0),[g,h]=pv.useState(0),[b,y]=pv.useState(!1),v={left:c,top:d,width:f,height:g,borderRadius:s.map((e=>`${e}px`)).join(" ")};return i&&(v["--wave-color"]=i),pv.useEffect((()=>{if(r){const e=gj((()=>{t(),y(!0)}));let n;return"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(r)),()=>{gj.cancel(e),null==n||n.disconnect()}}}),[]),b?pv.createElement(p0,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;_c(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:t}=e;return pv.createElement("div",{ref:o,className:xZ(n,t),style:v})})):null},e1=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=pv.useContext(KZ),o=pv.useRef(null),i=r("wave"),[,a]=J0(i),s=(l=o,c=xZ(i,a),function(){!function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),hc(pv.createElement(Z0,{target:e,className:t}),n)}(l.current,c)});var l,c;return zJ.useEffect((()=>{const e=o.current;if(!e||1!==e.nodeType||n)return;const t=t=>{"INPUT"===t.target.tagName||!Y0(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s()};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),zJ.isValidElement(t)?sc(t,{ref:Us(t)?Bs(t.ref,o):o}):null!=t?t:null},t1=e=>{const t=zJ.useContext(d0);return zJ.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},n1=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},r1=e=>{const{componentCls:t}=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"}}}},o1=Ml("Space",(e=>[r1(e),n1(e)]),(()=>({})),{resetStyle:!1});M$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=pv.useContext(i1),r=pv.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return xZ(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${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:r}},s1=e=>{let{children:t}=e;return pv.createElement(i1.Provider,{value:null},t)},l1=e=>{var{children:t}=e,n=M$(e,["children"]);return pv.createElement(i1.Provider,{value:n},t)},c1=pv.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=xZ(`${i}-icon`,n);return zJ.createElement("span",{ref:t,className:a,style:r},o)})),u1=pv.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=xZ(`${n}-loading-icon`,r);return zJ.createElement(c1,{prefixCls:n,className:a,style:o,ref:t},zJ.createElement(H0,{className:i}))})),d1=()=>({width:0,opacity:0,transform:"scale(0)"}),p1=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),f1=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?zJ.createElement(u1,{prefixCls:t,className:o,style:i}):zJ.createElement(p0,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:d1,onAppearActive:p1,onEnterStart:d1,onEnterActive:p1,onLeaveStart:p1,onLeaveActive:d1},((e,n)=>{let{className:r,style:a}=e;return zJ.createElement(u1,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))};L$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),y1=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,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:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},b1(`${t}-primary`,o),b1(`${t}-danger`,i)]}},v1=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},n0(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},_1=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),w1=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),k1=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),x1=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),S1=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},_1(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),C1=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},x1(e))}),E1=e=>Object.assign({},C1(e)),D1=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),O1=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E1(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),_1(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),S1(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},_1(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),S1(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),C1(e))}),j1=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E1(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),_1(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),S1(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},_1(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),S1(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),C1(e))}),$1=e=>Object.assign(Object.assign({},O1(e)),{borderStyle:"dashed"}),P1=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},_1(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),D1(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},_1(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),D1(e))}),N1=e=>Object.assign(Object.assign(Object.assign({},_1(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),D1(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},D1(e)),_1(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),T1=e=>{const{componentCls:t}=e;return{[`${t}-default`]:O1(e),[`${t}-primary`]:j1(e),[`${t}-dashed`]:$1(e),[`${t}-link`]:P1(e),[`${t}-text`]:N1(e),[`${t}-ghost`]:S1(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},I1=function(e,t){let n=arguments.length>1&&void 0!==t?t:"";const{componentCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e;return[{[`${r}${n}`]:{fontSize:i,height:o,padding:`${Math.max(0,(o-i*a)/2-s)}px ${c-s}px`,borderRadius:l,[`&${r}-icon-only`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${n}`]:w1(e)},{[`${r}${r}-round${n}`]:k1(e)}]},A1=e=>I1(e),R1=e=>{const t=Rl(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return I1(t,`${e.componentCls}-sm`)},F1=e=>{const t=Rl(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return I1(t,`${e.componentCls}-lg`)},M1=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},L1=Ml("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Rl(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return[v1(r),R1(r),A1(r),F1(r),M1(r),T1(r),y1(r),Dc(e),jc(e)]}));z$=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:p,rootClassName:f,children:m,icon:g,ghost:h=!1,block:b=!1,htmlType:y="button",classNames:v,style:_={}}=e,w=z$(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:k,autoInsertSpaceInButton:x,direction:S,button:C}=pv.useContext(KZ),E=k("btn",i),[D,O]=L1(E),j=pv.useContext(l0),$=null!=d?d:j,P=pv.useContext(m1),N=pv.useMemo((()=>function(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(o)),[o]),[T,I]=pv.useState(N.loading),[A,R]=pv.useState(!1),F=Bs(t,pv.createRef()),M=1===pv.Children.count(m)&&!g&&!Sc(a);pv.useEffect((()=>{let e=null;return N.delay>0?e=setTimeout((()=>{e=null,I(!0)}),N.delay):I(N.loading),function(){e&&(clearTimeout(e),e=null)}}),[N]),pv.useEffect((()=>{F&&F.current&&!1!==x&&(M&&h1(F.current.textContent)?A||R(!0):A&&R(!1))}),[F]);const L=t=>{const{onClick:n}=e;T||$?t.preventDefault():null==n||n(t)},z=!1!==x,{compactSize:B,compactItemClassnames:H}=a1(E,S),U=t1((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:B)&&void 0!==t?t:P)&&void 0!==n?n:e})),W=U&&{large:"lg",small:"sm",middle:void 0}[U]||"",V=T?"loading":g,G=Qs(w,["navigate"]),q=xZ(E,O,{[`${E}-${l}`]:"default"!==l&&l,[`${E}-${a}`]:a,[`${E}-${W}`]:W,[`${E}-icon-only`]:!m&&0!==m&&!!V,[`${E}-background-ghost`]:h&&!Sc(a),[`${E}-loading`]:T,[`${E}-two-chinese-chars`]:A&&z&&!T,[`${E}-block`]:b,[`${E}-dangerous`]:!!s,[`${E}-rtl`]:"rtl"===S},H,p,f,null==C?void 0:C.className),X=Object.assign(Object.assign({},null==C?void 0:C.style),_),K=xZ(null==v?void 0:v.icon,null===(n=null==C?void 0:C.classNames)||void 0===n?void 0:n.icon),Y=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==C?void 0:C.styles)||void 0===r?void 0:r.icon)||{}),Q=g&&!T?zJ.createElement(c1,{prefixCls:E,className:K,style:Y},g):zJ.createElement(f1,{existIcon:!!g,prefixCls:E,loading:!!T}),J=m||0===m?function(e,t){let n=!1;const r=[];return zJ.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1;r[t]=`${r[t]}${e}`}else r.push(e);n=o})),zJ.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&h1(e.props.children)?sc(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?h1(e)?zJ.createElement("span",null,e.split("").join(n)):zJ.createElement("span",null,e):ac(e)?zJ.createElement("span",null,e):e}(e,t)))}(m,M&&z):null;if(void 0!==G.href)return D(zJ.createElement("a",Object.assign({},G,{className:xZ(q,{[`${E}-disabled`]:$}),style:X,onClick:L,ref:F}),Q,J));let Z=zJ.createElement("button",Object.assign({},w,{type:y,className:q,style:X,onClick:L,disabled:$,ref:F}),Q,J);return Sc(a)||(Z=zJ.createElement(e1,{disabled:!!T},Z)),D(Z)},B1=pv.forwardRef(z1);B1.Group=e=>{const{getPrefixCls:t,direction:n}=pv.useContext(KZ),{prefixCls:r,size:o,className:i}=e,a=L$(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Pl();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=xZ(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return pv.createElement(m1.Provider,{value:o},pv.createElement("div",Object.assign({},a,{className:u})))},B1.__ANT_BUTTON=!0;const H1=B1,U1=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=pv.useRef(!1),d=pv.useRef(null),[p,f]=Tl(!1),m=function(){null==i||i.apply(void 0,arguments)};return pv.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),pv.createElement(H1,Object.assign({},$c(t),{onClick:e=>{if(u.current)return;if(u.current=!0,!c)return void m();let t;if(s){if(t=c(e),l&&!Pc(t))return u.current=!1,void m(e)}else if(c.length)t=c(i),u.current=!1;else if(t=c(),!t)return void m();(e=>{Pc(e)&&(f(!0),e.then((function(){f(!1,!0),m.apply(void 0,arguments),u.current=!1}),(e=>(f(!1,!0),u.current=!1,Promise.reject(e)))))})(t)},loading:p,prefixCls:r},o,{ref:d}),n)},W1=()=>({height:0,opacity:0}),V1=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},G1=e=>({height:e?e.offsetHeight:0}),q1=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,X1=function(e){return{motionName:`${arguments.length>0&&void 0!==e?e:"ant"}-motion-collapse`,onAppearStart:W1,onEnterStart:W1,onAppearActive:V1,onEnterActive:V1,onLeaveStart:G1,onLeaveActive:W1,onAppearEnd:q1,onEnterEnd:q1,onLeaveEnd:q1,motionDeadline:500}},K1=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",Y1=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Q1={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"},J1=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:Q1}))})),Z1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},e2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:Z1}))})),t2={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"},n2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:t2}))})),r2={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"},o2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:r2}))})),i2={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"},a2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:i2}))})),s2={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"},l2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:s2}))})),c2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},u2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:c2}))})),d2={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},p2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:d2}))})),f2={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"},m2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:f2}))})),g2={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"},h2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:g2}))})),b2={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"},y2=pv.forwardRef((function(e,t){return pv.createElement(x0,fa({},e,{ref:t,icon:b2}))}));B$=pv.createContext(null),H$=[],W$="rc-util-locker-".concat(Date.now()),V$=0,G$=function(e){return!1!==e&&(Ta()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},q$=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x=e.open,S=e.autoLock,C=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,i=Va(pv.useState(x),2),a=i[1],s=i[0]||x,pv.useEffect((function(){(r||x)&&a(x)}),[x,r]),c=(l=Va(pv.useState((function(){return G$(C)})),2))[0],u=l[1],pv.useEffect((function(){var e=G$(C);u(null!=e?e:null)})),d=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=Va(pv.useState((function(){return Ta()?document.createElement("div"):null})),1)[0],o=pv.useRef(!1),i=pv.useContext(B$),a=Va(pv.useState(H$),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(ka(t))}))});return KD((function(){return e?i?i(t):t():n(),n}),[e]),KD((function(){s.length&&(s.forEach((function(e){return e()})),l(H$))}),[s]),[r,c]}(s&&!c),f=(p=Va(d,2))[0],m=p[1],g=null!=c?c:f,_=S&&x&&Ta()&&(g===f||g===document.body),w=!!_,k=Va(pv.useState((function(){return V$+=1,"".concat(W$,"_").concat(V$)})),1)[0],KD((function(){var e,t;return w?(e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.height;return{width:Nc(t.width),height:Nc(n)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ba("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),k)):za(k),function(){za(k)}}),[w,k]),h=null,o&&Us(o)&&t&&(h=o.ref),b=Hs(h,t),s&&Ta()&&void 0!==c?(y=!1===g||false,v=o,t&&(v=pv.cloneElement(o,{ref:b})),pv.createElement(B$.Provider,{value:m},y?v:ES.createPortal(v,g))):null})),X$=0;const v2=pv.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));K$={width:0,height:0,overflow:"hidden",outline:"none"},Y$=zJ.forwardRef((function(e,t){var n,r,o,i,a,s=e.prefixCls,l=e.className,c=e.style,u=e.title,d=e.ariaId,p=e.footer,f=e.closable,m=e.closeIcon,g=e.onClose,h=e.children,b=e.bodyStyle,y=e.bodyProps,v=e.modalRender,_=e.onMouseDown,w=e.onMouseUp,k=e.holderRef,x=e.visible,S=e.forceRender,C=e.width,E=e.height,D=pv.useRef(),O=pv.useRef();return zJ.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=D.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?D.current.focus():e||t!==D.current||O.current.focus()}}})),n={},void 0!==C&&(n.width=C),void 0!==E&&(n.height=E),p&&(r=zJ.createElement("div",{className:"".concat(s,"-footer")},p)),u&&(o=zJ.createElement("div",{className:"".concat(s,"-header")},zJ.createElement("div",{className:"".concat(s,"-title"),id:d},u))),f&&(i=zJ.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(s,"-close")},m||zJ.createElement("span",{className:"".concat(s,"-close-x")}))),a=zJ.createElement("div",{className:"".concat(s,"-content")},i,o,zJ.createElement("div",fa({className:"".concat(s,"-body"),style:b},y),h),r),zJ.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?d:null,"aria-modal":"true",ref:k,style:Sa(Sa({},c),n),className:xZ(s,l),onMouseDown:_,onMouseUp:w},zJ.createElement("div",{tabIndex:0,ref:D,style:K$,"aria-hidden":"true"}),zJ.createElement(v2,{shouldUpdate:x||S},v?v(a):a),zJ.createElement("div",{tabIndex:0,ref:O,style:K$,"aria-hidden":"true"}))})),(Q$=pv.forwardRef((function(e,t){function n(){var e,t,n,r,o,i=((n={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top}).left+=Ac(o=(r=e.ownerDocument).defaultView||r.parentWindow),n.top+=Ac(o,!0),n);b(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}var r=e.prefixCls,o=e.title,i=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,m=pv.useRef(),g=Va(pv.useState(),2),h=g[0],b=g[1],y={};return h&&(y.transformOrigin=h),pv.createElement(p0,{visible:s,onVisibleChanged:p,onAppearPrepare:n,onEnterPrepare:n,forceRender:l,motionName:u,removeOnLeave:c,ref:m},(function(n,s){var l=n.className;return pv.createElement(Y$,fa({},e,{ref:t,title:o,ariaId:d,prefixCls:r,holderRef:s,style:Sa(Sa(Sa({},n.style),i),y),className:xZ(a,l)}))}))}))).displayName="Content",(J$=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,s=Va(pv.useState(t),2),l=s[0],c=s[1];return pv.useEffect((function(){t&&c(!0)}),[t]),r||!i||l?pv.createElement(q$,{open:t||r||l,autoDestroy:!1,getContainer:n,autoLock:t||l},pv.createElement(Fc,fa({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),c(!1)}}))):null}).displayName="Dialog";const _2=()=>Ta()&&window.document.documentElement;let w2;Z$="RC_FORM_INTERNAL_HOOKS",tP=pv.createContext({getFieldValue:eP=function(){$a(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},getFieldsValue:eP,getFieldError:eP,getFieldWarning:eP,getFieldsError:eP,isFieldsTouched:eP,isFieldTouched:eP,isFieldValidating:eP,isFieldsValidating:eP,resetFields:eP,setFields:eP,setFieldValue:eP,setFieldsValue:eP,validateFields:eP,submit:eP,getInternalHooks:function(){return eP(),{dispatch:eP,initEntityValue:eP,registerField:eP,useSubscribe:eP,setInitialValues:eP,destroyForm:eP,setCallbacks:eP,registerWatch:eP,getFields:eP,setValidateMessages:eP,setPreserve:eP,getInitialValue:eP}}}),nP=pv.createContext(null),rP=/%[sdj%]/g,oP=function(){},iP=function(e){function t(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,Hc(n,r),t}(Wc(Error)),lP=function(){var e,t,n,r,o,i,a,s,l,c,u;return sP||(e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o=("\n(?:\n(?:"+(r="[a-fA-F\\d]{1,4}")+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+(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}")+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),(l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")}).v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")},c=l.v4().source,u=l.v6().source,sP=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i"))},cP=/^(([^<>()\[\]\\.,;:\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,}))$/,uP=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,dP={integer:function(e){return dP.number(e)&&parseInt(e,10)===e},float:function(e){return dP.number(e)&&!dP.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(VQ){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"==typeof e&&!dP.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(cP)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(lP())},hex:function(e){return"string"==typeof e&&!!e.match(uP)}},pP=function(e,t,n,r,o){var i;e.required&&void 0===t?aP(e,t,n,r,o):["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i=e.type)>-1?dP[i](t)||r.push(Gc(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Gc(o.messages.types[i],e.fullField,e.type))},fP="enum",mP={required:aP=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!qc(t,i||e.type)||r.push(Gc(o.messages.required,e.fullField))},whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Gc(o.messages.whitespace,e.fullField))},type:pP,range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(Gc(o.messages[c].len,e.fullField,e.len)):a&&!s&&le.max?r.push(Gc(o.messages[c].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(Gc(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[fP]=Array.isArray(e[fP])?e[fP]:[],-1===e[fP].indexOf(t)&&r.push(Gc(o.messages[fP],e.fullField,e[fP].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Gc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Gc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},hP={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t,"string")&&!e.required)return n();mP.required(e,t,r,i,o,"string"),qc(t,"string")||(mP.type(e,t,r,i,o),mP.range(e,t,r,i,o),mP.pattern(e,t,r,i,o),!0===e.whitespace&&mP.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t)&&!e.required)return n();mP.required(e,t,r,i,o),void 0!==t&&mP.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),qc(t)&&!e.required)return n();mP.required(e,t,r,i,o),void 0!==t&&(mP.type(e,t,r,i,o),mP.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t)&&!e.required)return n();mP.required(e,t,r,i,o),void 0!==t&&mP.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t)&&!e.required)return n();mP.required(e,t,r,i,o),qc(t)||mP.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t)&&!e.required)return n();mP.required(e,t,r,i,o),void 0!==t&&(mP.type(e,t,r,i,o),mP.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t)&&!e.required)return n();mP.required(e,t,r,i,o),void 0!==t&&(mP.type(e,t,r,i,o),mP.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();mP.required(e,t,r,i,o,"array"),null!=t&&(mP.type(e,t,r,i,o),mP.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t)&&!e.required)return n();mP.required(e,t,r,i,o),void 0!==t&&mP.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t)&&!e.required)return n();mP.required(e,t,r,i,o),void 0!==t&&mP.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t,"string")&&!e.required)return n();mP.required(e,t,r,i,o),qc(t,"string")||mP.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t,"date")&&!e.required)return n();mP.required(e,t,r,a,o),qc(t,"date")||(i=t instanceof Date?t:new Date(t),mP.type(e,i,r,a,o),i&&mP.range(e,i.getTime(),r,a,o))}n(a)},url:gP=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t,i)&&!e.required)return n();mP.required(e,t,r,a,o,i),qc(t,i)||mP.type(e,t,r,a,o)}n(a)},hex:gP,email:gP,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;mP.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(qc(t)&&!e.required)return n();mP.required(e,t,r,i,o)}n(i)}},bP=Qc(),yP=function(){function e(e){this.rules=null,this._messages=bP,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=Yc(Qc(),e)),this._messages},t.validate=function(t,n,r){var o,i,a,s,l,c,u=this;return void 0===n&&(n={}),void 0===r&&(r=function(){}),o=t,a=r,"function"==typeof(i=n)&&(a=i,i={}),this.rules&&0!==Object.keys(this.rules).length?(i.messages?((s=this.messages())===bP&&(s=Qc()),Yc(s,i.messages),i.messages=s):i.messages=this.messages(),l={},(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o[e];u.rules[e].forEach((function(r){var i=r;"function"==typeof i.transform&&(o===t&&(o=zc({},o)),n=o[e]=i.transform(n)),(i="function"==typeof i?{validator:i}:zc({},i)).validator=u.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=u.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:n,source:o,field:e}))}))})),c={},function(e,t,n,r,o){var i,a,s,l,c,u,d;return t.first?(i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Xc(a,n,(function(e){return r(e),e.length?i(new iP(e,Vc(e))):t(o)}))})),i.catch((function(e){return e})),i):(a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new iP(u,Vc(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?Xc(r,n,d):function(e,t,n){function r(e){o.push.apply(o,e||[]),++i===a&&n(o)}var o=[],i=0,a=e.length;e.forEach((function(e){t(e,r)}))}(r,n,d)}))})),d.catch((function(e){return e})),d)}(l,i,(function(t,n){function r(e,t){return zc({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function a(a){var s,d,p,f,m;if(void 0===a&&(a=[]),s=Array.isArray(a)?a:[a],!i.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==l.message&&(s=[].concat(l.message)),d=s.map(Kc(l,o)),i.first&&d.length)return c[l.field]=1,n(d);if(u){if(l.required&&!t.value)return void 0!==l.message?d=[].concat(l.message).map(Kc(l,o)):i.error&&(d=[i.error(l,Gc(i.messages.required,l.field))]),n(d);p={},l.defaultField&&Object.keys(t.value).map((function(e){p[e]=l.defaultField})),p=zc({},p,t.rule.fields),f={},Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(r.bind(null,e))})),(m=new e(f)).messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),m.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}var s,l=t.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!=typeof l.fields&&"object"!=typeof l.defaultField);if(u=u&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)s=l.asyncValidator(l,t.value,a,t.source,i);else if(l.validator){try{s=l.validator(l,t.value,a,t.source,i)}catch(d){console,i.suppressValidatorError||setTimeout((function(){throw d}),0),a(d.message)}!0===s?a():!1===s?a("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):s instanceof Array?a(s):s instanceof Error&&a(s.message)}s&&s.then&&s.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n,r,i=[],s={};for(t=0;t0&&void 0!==e?e:SP;r.validatePromise===l&&(r.validatePromise=null,n=[],o=[],null===(t=i.forEach)||void 0===t||t.call(i,(function(e){var t=e.errors,r=void 0===t?SP:t;e.rule.warningOnly?o.push.apply(o,ka(r)):n.push.apply(n,ka(r))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender())})),d):[]}));return s||(r.validatePromise=l,r.dirty=!0,r.errors=SP,r.warnings=SP,r.triggerMetaEvent(),r.reRender()),l},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(Z$).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}},r.getOnlyChild=function(e){var t,n;return"function"==typeof e?(t=r.getMeta(),Sa(Sa({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})):1===(n=Ls(e)).length&&pv.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return el(e||t(!0),n)},r.getControlled=function(e){var t=arguments.length>0&&void 0!==e?e:{},n=r.props,o=n.trigger,i=n.validateTrigger,a=n.getValueFromEvent,s=n.normalize,l=n.valuePropName,c=n.getValueProps,u=n.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),f=u.getFieldsValue,m=(0,u.getInternalHooks)(Z$).dispatch,g=r.getValue(),h=c||function(e){return Ci({},l,e)},b=t[o],y=Sa(Sa({},t),h(g));return y[o]=function(){var e,t,n,o;for(r.touched=!0,r.dirty=!0,r.triggerMetaEvent(),t=arguments.length,n=new Array(t),o=0;o=0&&t<=n.length?(c.keys=[].concat(ka(c.keys.slice(0,t)),[c.id],ka(c.keys.slice(t))),o([].concat(ka(n.slice(0,t)),[e],ka(n.slice(t))))):(c.keys=[].concat(ka(c.keys),[c.id]),o([].concat(ka(n),[e]))),c.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(c.keys=cu(c.keys,e,t),o(cu(n,e,t)))}}},d=(void 0===n?[]:n)||[];return Array.isArray(d)||(d=[]),r(d.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),l,t)}))))},DP="__@field_split__",OP=function(){function e(){Oi(this,e),this.kvs=new Map}return $i(e,[{key:"set",value:function(e,t){this.kvs.set(pu(e),t)}},{key:"get",value:function(e){return this.kvs.get(pu(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(pu(e))}},{key:"map",value:function(e){return ka(this.kvs.entries()).map((function(t){var n=Va(t,2),r=n[1],o=n[0].split(DP);return e({key:o.map((function(e){var t=Va(e.match(/^([^:]*):(.*)$/),3),n=t[2];return"number"===t[1]?Number(n):n})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.value;return e[t.key.join(".")]=n,null})),e}}]),e}(),jP=["name"],$P=$i((function e(t){var n=this;Oi(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,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,isFieldsValidating: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}},this.getInternalHooks=function(e){return e===Z$?(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}):($a(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){var r,o;n.initialValues=e||{},t&&(o=ol(e,n.store),null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=nl(o,n,el(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o))},this.destroyForm=function(){var e=new OP;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=el(n.initialValues,e);return e.length?ol(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}},this.notifyWatch=function(e){var t,r,o=arguments.length>0&&void 0!==e?e:[];n.watchList.length&&(t=n.getFieldsValue(),r=n.getFieldsValue(!0),n.watchList.forEach((function(e){e(t,r,o)})))},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(e){return arguments.length>0&&void 0!==e&&e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(e){var t=arguments.length>0&&void 0!==e&&e,r=new OP;return n.getFieldEntities(t).forEach((function(e){var t=e.getNamePath();r.set(t,e)})),r},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ou(e);return t.get(n)||{INVALIDATE_NAME_PATH:ou(e)}}))},this.getFieldsValue=function(e,t){var r,o;return n.warningUnhooked(),!0!==e||t?(r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[],r.forEach((function(n){var r,i,a="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();!e&&(null===(r=n.isListField)||void 0===r?void 0:r.call(n))||(t?(i="getMeta"in n?n.getMeta():null,t(i)&&o.push(a)):o.push(a))})),iu(n.store,o.map(ou))):n.store},this.getFieldValue=function(e){n.warningUnhooked();var t=ou(e);return el(n.store,t)},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:ou(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){var t;return n.warningUnhooked(),t=ou(e),n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){var t;return n.warningUnhooked(),t=ou(e),n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){var e,t,r,o,i,a,s,l,c,u,d,p;for(n.warningUnhooked(),e=arguments.length,t=new Array(e),r=0;r0&&void 0!==e?e:{},i=new OP,a=n.getFieldEntities(!0);a.forEach((function(e){var t,n=e.props.initialValue,r=e.getNamePath();void 0!==n&&((t=i.get(r)||new Set).add({entity:e,value:n}),i.set(r,t))})),t=function(e){e.forEach((function(e){var t,r,a;void 0!==e.props.initialValue&&(t=e.getNamePath(),void 0!==n.getInitialValue(t)?$a(!1,"Form already set 'initialValues' with path '".concat(t.join("."),"'. Field can not overwrite it.")):(r=i.get(t))&&r.size>1?$a(!1,"Multiple Field with path '".concat(t.join("."),"' set 'initialValue'. Can not decide which one to pick.")):r&&(a=n.getFieldValue(t),o.skipExist&&void 0!==a||n.updateStore(nl(n.store,t,ka(r)[0].value))))}))},o.entities?r=o.entities:o.namePathList?(r=[],o.namePathList.forEach((function(e){var t,n=i.get(e);n&&(t=r).push.apply(t,ka(ka(n).map((function(e){return e.entity}))))}))):r=a,t(r)},this.resetFields=function(e){var t,r;if(n.warningUnhooked(),t=n.store,!e)return n.updateStore(ol(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();(r=e.map(ou)).forEach((function(e){var t=n.getInitialValue(e);n.updateStore(nl(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){var t,r;n.warningUnhooked(),t=n.store,r=[],e.forEach((function(e){var o=e.name,i=Ei(e,jP),a=ou(o);r.push(a),"value"in i&&n.updateStore(nl(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Sa(Sa({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t,r=e.props.initialValue;void 0!==r&&(t=e.getNamePath(),void 0===el(n.store,t)&&n.updateStore(nl(n.store,t,r)))},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){var t,r;return n.fieldEntities.push(e),t=e.getNamePath(),n.notifyWatch([t]),void 0!==e.props.initialValue&&(r=n.store,n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})),function(r,o,i){var a,s,l=arguments.length>2&&void 0!==i?i:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),n.isMergedPreserve(o)||r&&!(l.length>1)||(a=r?void 0:n.getInitialValue(t),t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!su(e.getNamePath(),t)}))&&(n.updateStore(nl(s=n.store,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t))),n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":n.updateValue(e.namePath,e.value);break;case"validateField":n.validateFields([e.namePath],{triggerName:e.triggerName})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=Sa(Sa({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(ka(r))}),r},this.updateValue=function(e,t){var r,o,i=ou(e),a=n.store;n.updateStore(nl(n.store,i,t)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]),r=n.triggerDependenciesUpdate(a,i),(o=n.callbacks.onValuesChange)&&o(iu(n.store,[i]),n.getFieldsValue()),n.triggerOnFieldsChange([i].concat(ka(r)))},this.setFieldsValue=function(e){var t,r;n.warningUnhooked(),t=n.store,e&&(r=ol(n.store,e),n.updateStore(r)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new OP;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ou(t);o.update(n,(function(t){var n=arguments.length>0&&void 0!==t?t:new Set;return n.add(e),n}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r,o,i,a=n.callbacks.onFieldsChange;a&&(r=n.getFields(),t&&(o=new OP,t.forEach((function(e){o.set(e.name,e.errors)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))),(i=r.filter((function(t){return au(e,t.name)}))).length&&a(i,r))},this.validateFields=function(e,t){var r,o,i,a,s,l,c,u,d,p;return n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e,a=(i=!!r)?r.map(ou):[],s=[],l=String(Date.now()),c=new Set,n.getFieldEntities(!0).forEach((function(e){var t,u,d,p;i||a.push(e.getNamePath()),(null===(t=o)||void 0===t?void 0:t.recursive)&&i&&(u=e.getNamePath()).every((function(e,t){return r[t]===e||void 0===r[t]}))&&a.push(u),e.props.rules&&e.props.rules.length&&(d=e.getNamePath(),c.add(d.join(l)),i&&!au(a,d)||(p=e.validateRules(Sa({validateMessages:Sa(Sa({},_P),n.validateMessages)},o)),s.push(p.then((function(){return{name:d,errors:[],warnings:[]}})).catch((function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.errors;e.rule.warningOnly?r.push.apply(r,ka(t)):n.push.apply(n,ka(t))})),n.length?Promise.reject({name:d,errors:n,warnings:r}):{name:d,errors:n,warnings:r}})))))})),u=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(s),n.lastValidatePromise=u,u.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)})),(d=u.then((function(){return n.lastValidatePromise===u?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!==u})}))).catch((function(e){return e})),p=a.filter((function(e){return c.has(e.join(l))})),n.triggerOnFieldsChange(p),d},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t})),PP=pv.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),NP=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=pv.useContext(PP),a=pv.useRef({});return pv.createElement(PP.Provider,{value:Sa(Sa({},i),{},{validateMessages:Sa(Sa({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Sa(Sa({},a.current),{},Ci({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Sa({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},TP=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],IP=function(e,t){var n,r,o,i,a,s,l=e.name,c=e.initialValues,u=e.fields,d=e.form,p=e.preserve,f=e.children,m=e.component,g=void 0===m?"form":m,h=e.validateMessages,b=e.validateTrigger,y=void 0===b?"onChange":b,v=e.onValuesChange,_=e.onFieldsChange,w=e.onFinish,k=e.onFinishFailed,x=Ei(e,TP),S=pv.useContext(PP),C=Va(fu(d),1)[0],E=C.getInternalHooks(Z$),D=E.useSubscribe,O=E.setInitialValues,j=E.setCallbacks,$=E.setValidateMessages,P=E.setPreserve,N=E.destroyForm;return pv.useImperativeHandle(t,(function(){return C})),pv.useEffect((function(){return S.registerForm(l,C),function(){S.unregisterForm(l)}}),[S,C,l]),$(Sa(Sa({},S.validateMessages),h)),j({onValuesChange:v,onFieldsChange:function(e){if(S.triggerFormChange(l,e),_){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{}}),x2=pv.createContext(null),S2=e=>{const t=Qs(e,["prefixCls"]);return pv.createElement(NP,Object.assign({},t))},C2=pv.createContext({prefixCls:""}),E2=pv.createContext({}),D2=e=>{let{children:t,status:n,override:r}=e;const o=pv.useContext(E2),i=pv.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return pv.createElement(E2.Provider,{value:i},t)},O2=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l}=e,[c]=NZ("Modal",al());return zJ.createElement(zJ.Fragment,null,zJ.createElement(H1,Object.assign({onClick:a},l),r||(null==c?void 0:c.cancelText)),zJ.createElement(H1,Object.assign({},$c(n),{loading:o,onClick:i},s),t||(null==c?void 0:c.okText)))},j2=e=>({animationDuration:e,animationFillMode:"both"}),$2=e=>({animationDuration:e,animationFillMode:"both"}),P2=function(e,t,n,r,o){const i=arguments.length>4&&void 0!==o&&o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},j2(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},$2(r)),{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"}}},N2=new $O("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),T2=new $O("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),I2=function(e,t){let n=arguments.length>1&&void 0!==t&&t;const{antCls:r}=e,o=`${r}-fade`,i=n?"&":"";return[P2(o,N2,T2,e.motionDurationMid,n),{[`\n ${i}${o}-enter,\n ${i}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${o}-leave`]:{animationTimingFunction:"linear"}}]},A2=new $O("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),R2=new $O("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),F2=new $O("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M2=new $O("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),L2=new $O("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z2=new $O("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),B2={"move-up":{inKeyframes:new $O("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 $O("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:A2,outKeyframes:R2},"move-left":{inKeyframes:F2,outKeyframes:M2},"move-right":{inKeyframes:L2,outKeyframes:z2}},H2=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=B2[t];return[P2(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},U2=new $O("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),W2=new $O("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),V2=new $O("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),G2=new $O("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),q2=new $O("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),X2=new $O("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),K2=new $O("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Y2=new $O("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Q2={"slide-up":{inKeyframes:U2,outKeyframes:W2},"slide-down":{inKeyframes:V2,outKeyframes:G2},"slide-left":{inKeyframes:q2,outKeyframes:X2},"slide-right":{inKeyframes:K2,outKeyframes:Y2}},J2=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Q2[t];return[P2(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Z2=new $O("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),e5=new $O("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),t5=new $O("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),n5=new $O("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),r5=new $O("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),o5=new $O("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),i5=new $O("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),a5=new $O("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),s5=new $O("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),l5=new $O("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),c5=new $O("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),u5=new $O("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),d5={zoom:{inKeyframes:Z2,outKeyframes:e5},"zoom-big":{inKeyframes:t5,outKeyframes:n5},"zoom-big-fast":{inKeyframes:t5,outKeyframes:n5},"zoom-left":{inKeyframes:i5,outKeyframes:a5},"zoom-right":{inKeyframes:s5,outKeyframes:l5},"zoom-up":{inKeyframes:r5,outKeyframes:o5},"zoom-down":{inKeyframes:c5,outKeyframes:u5}},p5=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=d5[t];return[P2(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},f5=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`}}}),m5=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({},bu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},bu("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:I2(e)}]},g5=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${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})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},JZ(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,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.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,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:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},n0(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,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"}}}]},h5=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},b5=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},y5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},v5=Ml("Modal",(e=>{const t=e.padding,n=Rl(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:e.lineHeightHeading5*e.fontSizeHeading5+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[g5(n),h5(n),b5(n),m5(n),e.wireframe&&y5(n),p5(n,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})));let _5;RP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{_5={x:e.pageX,y:e.pageY},setTimeout((()=>{_5=null}),100)}),!0);const w5=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=pv.useContext(KZ),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:p,getContainer:f,closeIcon:m,closable:g,focusTriggerAfterClose:h=!0,style:b,visible:y,width:v=520,footer:_}=e,w=RP(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),k=r("modal",s),x=r(),[S,C]=v5(k),E=xZ(d,{[`${k}-centered`]:!!p,[`${k}-wrap-rtl`]:"rtl"===o}),D=void 0===_?pv.createElement(O2,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})):_,[O,j]=Mc(g,m,(e=>hu(k,e)),pv.createElement(O0,{className:`${k}-close-icon`}),!0);return S(pv.createElement(s1,null,pv.createElement(D2,{status:!0,override:!0},pv.createElement(J$,Object.assign({width:v},w,{getContainer:void 0===f?n:f,prefixCls:k,rootClassName:xZ(C,c),wrapClassName:E,footer:D,visible:null!=u?u:y,mousePosition:null!==(t=w.mousePosition)&&void 0!==t?t:_5,onClose:a,closable:O,closeIcon:j,focusTriggerAfterClose:h,transitionName:Y1(x,"zoom",e.transitionName),maskTransitionName:Y1(x,"fade",e.maskTransitionName),className:xZ(C,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),b)})))))},k5=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:p,iconPrefixCls:f,theme:m,bodyStyle:g,closable:h=!1,closeIcon:b,modalRender:y,focusTriggerAfterClose:v}=e,_=`${u}-confirm`,w=e.width||416,k=e.style||{},x=void 0===e.mask||e.mask,S=void 0!==e.maskClosable&&e.maskClosable,C=xZ(_,`${_}-${e.type}`,{[`${_}-rtl`]:"rtl"===c},e.className);return pv.createElement(_0,{prefixCls:p,iconPrefixCls:f,direction:c,theme:m},pv.createElement(w5,{prefixCls:u,className:C,wrapClassName:xZ({[`${_}-centered`]:!!e.centered},d),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:o,title:"",footer:null,transitionName:Y1(p,"zoom",e.transitionName),maskTransitionName:Y1(p,"fade",e.maskTransitionName),mask:x,maskClosable:S,maskStyle:l,style:k,bodyStyle:g,width:w,zIndex:n,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:h,closeIcon:b,modalRender:y,focusTriggerAfterClose:v},pv.createElement(yu,Object.assign({},e,{confirmPrefixCls:_}))))},x5=[];FP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{afterClose:n,config:r}=e;var o;const[i,a]=pv.useState(!0),[s,l]=pv.useState(r),{direction:c,getPrefixCls:u}=pv.useContext(KZ),d=u("modal"),p=u(),f=function(){a(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));s.onCancel&&r&&s.onCancel.apply(s,[()=>{}].concat(ka(t.slice(1))))};pv.useImperativeHandle(t,(()=>({destroy:f,update:e=>{l((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(o=s.okCancel)&&void 0!==o?o:"confirm"===s.type,[g]=NZ("Modal",jZ.Modal);return pv.createElement(k5,Object.assign({prefixCls:d,rootPrefixCls:p},s,{close:f,open:i,afterClose:()=>{var e;n(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(m?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:s.direction||c,cancelText:s.cancelText||(null==g?void 0:g.cancelText)}))},E5=pv.forwardRef(C5);let D5=0;const O5=pv.memo(pv.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=pv.useState([]);return[e,pv.useCallback((e=>(t((t=>[].concat(ka(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return pv.useImperativeHandle(t,(()=>({patchElement:r})),[]),pv.createElement(pv.Fragment,null,n)}))),j5=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new $O("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new $O("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new $O("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},$5=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:m,motionDurationMid:g,motionEaseInOut:h,fontSize:b,lineHeight:y,width:v,notificationIconSize:_,colorText:w}=e,k=`${n}-notice`,x=new $O("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:v},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),S=new $O("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),C={position:"relative",width:v,maxWidth:`calc(100vw - ${2*m}px)`,marginBottom:i,marginInlineStart:"auto",padding:f,overflow:"hidden",lineHeight:y,wordWrap:"break-word",background:p,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${k}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${k}-description`]:{fontSize:b,color:w},[`&${k}-closable ${k}-message`]:{paddingInlineEnd:e.paddingLG},[`${k}-with-icon ${k}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+_,fontSize:o},[`${k}-with-icon ${k}-description`]:{marginInlineStart:e.marginSM+_,fontSize:b},[`${k}-icon`]:{position:"absolute",fontSize:_,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${k}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${k}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},JZ(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:m,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[k]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[k]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:h,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:h,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:x,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:S,animationPlayState:"running"}}),j5(e)),{"&-rtl":{direction:"rtl",[`${k}-btn`]:{float:"left"}}})},{[n]:{[k]:Object.assign({},C)}},{[`${k}-pure-panel`]:Object.assign(Object.assign({},C),{margin:0})}]},P5=Ml("Notification",(e=>{const t=Rl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:e.paddingMD,notificationPaddingHorizontal:e.paddingLG,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[$5(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));MP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=pv.createElement("span",{className:`${t}-icon`},n):r&&(l=pv.createElement(N5[r]||null,{className:xZ(`${t}-icon`,`${t}-icon-${r}`)})),pv.createElement("div",{className:xZ({[`${t}-with-icon`]:l}),role:s},l,pv.createElement("div",{className:`${t}-message`},o),pv.createElement("div",{className:`${t}-description`},i),a&&pv.createElement("div",{className:`${t}-btn`},a))};LP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:u,notification:d}=pv.useContext(KZ),p=o||c("notification"),[,f]=P5(p),[m,g]=lc({prefixCls:p,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>xZ(f,{[`${p}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(p),closable:!0,closeIcon:Eu(p),duration:4.5,getContainer:()=>(null==i?void 0:i())||(null==u?void 0:u())||document.body,maxCount:a,onAllRemoved:l});return pv.useImperativeHandle(t,(()=>Object.assign(Object.assign({},m),{prefixCls:p,hashId:f,notification:d}))),g})),R5=zJ.createContext({}),F5=zJ.createContext({message:{},notification:{},modal:{}}),M5=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},L5=Ml("App",(e=>[M5(e)])),z5=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s}=e,{getPrefixCls:l}=pv.useContext(KZ),c=l("app",t),[u,d]=L5(c),p=xZ(d,c,r,o),f=pv.useContext(R5),m=zJ.useMemo((()=>({message:Object.assign(Object.assign({},f.message),i),notification:Object.assign(Object.assign({},f.notification),a)})),[i,a,f.message,f.notification]),[g,h]=dc(m.message),[b,y]=Ou(m.notification),[v,_]=Cu(),w=zJ.useMemo((()=>({message:g,notification:b,modal:v})),[g,b,v]);return u(zJ.createElement(F5.Provider,{value:w},zJ.createElement(R5.Provider,{value:m},zJ.createElement("div",{className:p,style:s},_,h,y,n))))};z5.useApp=()=>zJ.useContext(F5);const B5=z5,H5=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))};zP=pv.createContext(null),BP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],HP=void 0,(UP=pv.forwardRef($u)).displayName="Item",WP=zJ.createContext(null),VP=["component"],GP=["className"],qP=["className"],XP=function(e,t){var n,r,o,i,a,s,l,c=pv.useContext(WP);return c?(i=c.className,a=Ei(c,GP),s=e.className,l=Ei(e,qP),pv.createElement(WP.Provider,{value:null},pv.createElement(UP,fa({ref:t,className:xZ(i,s)},a,l)))):(r=void 0===(n=e.component)?"div":n,o=Ei(e,VP),pv.createElement(r,fa({},o,{ref:t})))},(KP=pv.forwardRef(XP)).displayName="RawItem",YP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],QP="responsive",JP="invalidate",(ZP=pv.forwardRef(Tu)).displayName="Overflow",ZP.Item=KP,ZP.RESPONSIVE=QP,ZP.INVALIDATE=JP,eN=function(e){var t,n=e.className,r=e.customizeIcon,o=e.onMouseDown,i=e.onClick,a=e.children;return t="function"==typeof r?r(e.customizeIconProps):r,pv.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:pv.createElement("span",{className:xZ(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},(tN=pv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.id,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,p=e.value,f=e.maxLength,m=e.onKeyDown,g=e.onMouseDown,h=e.onChange,b=e.onPaste,y=e.onCompositionStart,v=e.onCompositionEnd,_=e.open,w=e.attrs,k=e.inputElement||pv.createElement("input",null),x=k.ref,S=k.props,C=S.onKeyDown,E=S.onChange,D=S.onMouseDown,O=S.onCompositionStart,j=S.onCompositionEnd,$=S.style;return pv.cloneElement(k,Sa(Sa(Sa({type:"search"},S),{},{id:i,ref:Bs(t,x),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:xZ("".concat(o,"-selection-search-input"),null===(n=k)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":_,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":d},w),{},{value:u?p:"",maxLength:f,readOnly:!u,unselectable:u?null:"on",style:Sa(Sa({},$),{},{opacity:u?null:0}),onKeyDown:function(e){m(e),C&&C(e)},onMouseDown:function(e){g(e),D&&D(e)},onChange:function(e){h(e),E&&E(e)},onCompositionStart:function(e){y(e),O&&O(e)},onCompositionEnd:function(e){v(e),j&&j(e)},onPaste:b}))}))).displayName="Input",nN="undefined"!=typeof window&&window.document&&window.document.documentElement,rN=nN,oN=function(e){e.preventDefault(),e.stopPropagation()},iN=function(e){function t(e,t,n,r,o){return pv.createElement("span",{className:xZ("".concat(H,"-item"),Ci({},"".concat(H,"-item-disabled"),n)),title:Ru(e)},pv.createElement("span",{className:"".concat(H,"-item-content")},t),r&&pv.createElement(eN,{className:"".concat(H,"-item-remove"),onMouseDown:oN,onClick:o,customizeIcon:w},"×"))}var n,r,o,i,a=e.id,s=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,d=e.autoClearSearchValue,p=e.inputRef,f=e.placeholder,m=e.disabled,g=e.mode,h=e.showSearch,b=e.autoFocus,y=e.autoComplete,v=e.activeDescendantId,_=e.tabIndex,w=e.removeIcon,k=e.maxTagCount,x=e.maxTagTextLength,S=e.maxTagPlaceholder,C=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,E=e.tagRender,D=e.onToggleOpen,O=e.onRemove,j=e.onInputChange,$=e.onInputPaste,P=e.onInputKeyDown,N=e.onInputMouseDown,T=e.onInputCompositionStart,I=e.onInputCompositionEnd,A=pv.useRef(null),R=Va(pv.useState(0),2),F=R[0],M=R[1],L=Va(pv.useState(!1),2),z=L[0],B=L[1],H="".concat(s,"-selection"),U=c||"multiple"===g&&!1===d||"tags"===g?u:"",W="tags"===g||"multiple"===g&&!1===d||h&&(c||z);return o=function(){M(A.current.scrollWidth)},i=[U],rN?pv.useLayoutEffect(o,i):pv.useEffect(o,i),n=pv.createElement("div",{className:"".concat(H,"-search"),style:{width:F},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},pv.createElement(tN,{ref:p,open:c,prefixCls:s,id:a,inputElement:null,disabled:m,autoFocus:b,autoComplete:y,editable:W,activeDescendantId:v,value:U,onKeyDown:P,onMouseDown:N,onChange:j,onPaste:$,onCompositionStart:T,onCompositionEnd:I,tabIndex:_,attrs:ic(e,!0)}),pv.createElement("span",{ref:A,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},U," ")),r=pv.createElement(ZP,{prefixCls:"".concat(H,"-overflow"),data:l,renderItem:function(e){var n,r,o=e.disabled,i=e.label,a=e.value,s=!m&&!o,l=i;return"number"==typeof x&&("string"!=typeof i&&"number"!=typeof i||(n=String(l)).length>x&&(l="".concat(n.slice(0,x),"..."))),r=function(t){t&&t.stopPropagation(),O(e)},"function"==typeof E?function(e,t,n,r,o){return pv.createElement("span",{onMouseDown:function(e){oN(e),D(!c)}},E({label:t,value:e,disabled:n,closable:r,onClose:o}))}(a,l,o,s,r):t(e,l,o,s,r)},renderRest:function(e){var n="function"==typeof C?C(e):C;return t({title:n},n,!1)},suffix:n,itemKey:Fu,maxCount:k}),pv.createElement(pv.Fragment,null,r,!l.length&&!U&&pv.createElement("span",{className:"".concat(H,"-placeholder")},f))},aN=function(e){var t,n,r,o=e.inputElement,i=e.prefixCls,a=e.id,s=e.inputRef,l=e.disabled,c=e.autoFocus,u=e.autoComplete,d=e.activeDescendantId,p=e.mode,f=e.open,m=e.values,g=e.placeholder,h=e.tabIndex,b=e.showSearch,y=e.searchValue,v=e.activeValue,_=e.maxLength,w=e.onInputKeyDown,k=e.onInputMouseDown,x=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,E=e.onInputCompositionEnd,D=e.title,O=Va(pv.useState(!1),2),j=O[1],$="combobox"===p,P=$||b,N=m[0],T=y||"";return $&&v&&!O[0]&&(T=v),pv.useEffect((function(){$&&j(!1)}),[$,v]),t=!("combobox"!==p&&!f&&!b||!T),n=void 0===D?Ru(N):D,r=function(){if(N)return null;var e=t?{visibility:"hidden"}:void 0;return pv.createElement("span",{className:"".concat(i,"-selection-placeholder"),style:e},g)},pv.createElement(pv.Fragment,null,pv.createElement("span",{className:"".concat(i,"-selection-search")},pv.createElement(tN,{ref:s,prefixCls:i,id:a,open:f,inputElement:o,disabled:l,autoFocus:c,autoComplete:u,editable:P,activeDescendantId:d,value:T,onKeyDown:w,onMouseDown:k,onChange:function(e){j(!0),x(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:E,tabIndex:h,attrs:ic(e,!0),maxLength:$?_:void 0})),!$&&N?pv.createElement("span",{className:"".concat(i,"-selection-item"),title:n,style:t?{visibility:"hidden"}:void 0},N.label):null,r())},sN=function(e,t){var n,r,o,i,a,s,l,c,u,d,p=pv.useRef(null),f=pv.useRef(!1),m=e.prefixCls,g=e.open,h=e.mode,b=e.showSearch,y=e.tokenWithEnter,v=e.autoClearSearchValue,_=e.onSearch,w=e.onSearchSubmit,k=e.onToggleOpen,x=e.onInputKeyDown,S=e.domRef;return pv.useImperativeHandle(t,(function(){return{focus:function(){p.current.focus()},blur:function(){p.current.blur()}}})),n=Va(ju(0),2),r=n[0],o=n[1],i=function(e){var t=e.which;t!==S$.UP&&t!==S$.DOWN||e.preventDefault(),x&&x(e),t!==S$.ENTER||"tags"!==h||f.current||g||null==w||w(e.target.value),[S$.ESC,S$.SHIFT,S$.BACKSPACE,S$.TAB,S$.WIN_KEY,S$.ALT,S$.META,S$.WIN_KEY_RIGHT,S$.CTRL,S$.SEMICOLON,S$.EQUALS,S$.CAPS_LOCK,S$.CONTEXT_MENU,S$.F1,S$.F2,S$.F3,S$.F4,S$.F5,S$.F6,S$.F7,S$.F8,S$.F9,S$.F10,S$.F11,S$.F12].includes(t)||k(!0)},a=function(){o(!0)},s=pv.useRef(null),l=function(e){!1!==_(e,!0,f.current)&&k(!0)},c=function(e){e.target!==p.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){p.current.focus()})):p.current.focus())},u=function(e){var t=r();e.target===p.current||t||"combobox"===h||e.preventDefault(),("combobox"===h||b&&t)&&g||(g&&!1!==v&&_("",!0,!1),k())},d=pv.createElement("multiple"===h||"tags"===h?iN:aN,fa({},e,{inputRef:p,onInputKeyDown:i,onInputMouseDown:a,onInputChange:function(e){var t,n=e.target.value;y&&s.current&&/[\r\n]/.test(s.current)&&(t=s.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),n=n.replace(t,s.current)),s.current=null,l(n)},onInputPaste:function(e){var t=e.clipboardData.getData("text");s.current=t},onInputCompositionStart:function(){f.current=!0},onInputCompositionEnd:function(e){f.current=!1,"combobox"!==h&&l(e.target.value)}})),pv.createElement("div",{ref:S,className:"".concat(m,"-selector"),onClick:c,onMouseDown:u},d)},(lN=pv.forwardRef(sN)).displayName="Selector",cN=pv.createContext(null),uN=pv.memo((function(e){return e.children}),(function(e,t){return t.cache})),dN=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.popup,u=e.className,d=e.prefixCls,p=e.style,f=e.target,m=e.onVisibleChanged,g=e.open,h=e.keepDom,b=e.onClick,y=e.mask,v=e.arrow,_=e.arrowPos,w=e.align,k=e.motion,x=e.maskMotion,S=e.forceRender,C=e.getPopupContainer,E=e.autoDestroy,D=e.portal,O=e.zIndex,j=e.onMouseEnter,$=e.onMouseLeave,P=e.ready,N=e.offsetX,T=e.offsetY,I=e.offsetR,A=e.offsetB,R=e.onAlign,F=e.onPrepare,M=e.stretch,L=e.targetWidth,z=e.targetHeight,B="function"==typeof c?c():c,H=g||h,U=(null==C?void 0:C.length)>0,W=Va(pv.useState(!C||!U),2),V=W[0],G=W[1];return KD((function(){!V&&U&&f&&G(!0)}),[V,U,f]),V?(r={left:"-1000vw",top:"-1000vh",right:n="auto",bottom:n},!P&&g||(o=w.points,s=(a=null==(i=w._experimental)?void 0:i.dynamicInset)&&"b"===o[0][0],a&&"r"===o[0][1]?(r.right=I,r.left=n):(r.left=N,r.right=n),s?(r.bottom=A,r.top=n):(r.top=T,r.bottom=n)),l={},M&&(M.includes("height")&&z?l.height=z:M.includes("minHeight")&&z&&(l.minHeight=z),M.includes("width")&&L?l.width=L:M.includes("minWidth")&&L&&(l.minWidth=L)),g||(l.pointerEvents="none"),pv.createElement(D,{open:S||H,getContainer:C&&function(){return C(f)},autoDestroy:E},pv.createElement(Ju,{prefixCls:d,open:g,zIndex:O,mask:y,motion:x}),pv.createElement(uj,{onResize:R,disabled:!g},(function(e){return pv.createElement(p0,fa({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(d,"-hidden")},k,{onAppearPrepare:F,onEnterPrepare:F,visible:g,onVisibleChanged:function(e){var t;null==k||null===(t=k.onVisibleChanged)||void 0===t||t.call(k,e),m(e)}}),(function(n,o){var i=n.style,a=xZ(d,n.className,u);return pv.createElement("div",{ref:Bs(e,t,o),className:a,style:Sa(Sa(Sa(Sa({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},r),l),i),{},{boxSizing:"border-box",zIndex:O},p),onMouseEnter:j,onMouseLeave:$,onClick:b},v&&pv.createElement(Qu,{prefixCls:d,arrow:v,arrowPos:_,align:w}),pv.createElement(uN,{cache:!g},B))}))})))):null})),pN=pv.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Us(n),i=Hs(pv.useCallback((function(e){zs(t,r?r(e):e)}),[r]),n.ref);return o?pv.cloneElement(n,{ref:i}):n})),fN=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const U5=function(e){var t=arguments.length>0&&void 0!==e?e:q$,n=pv.forwardRef((function(e,n){var r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B,H,U,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,me,ge,he,be,ye,ve,_e,we,ke,xe,Se,Ce,Ee=e.prefixCls,De=void 0===Ee?"rc-trigger-popup":Ee,Oe=e.children,je=e.action,$e=void 0===je?"hover":je,Pe=e.showAction,Ne=e.hideAction,Te=e.popupVisible,Ie=e.defaultPopupVisible,Ae=e.onPopupVisibleChange,Re=e.afterPopupVisibleChange,Fe=e.mouseEnterDelay,Me=e.mouseLeaveDelay,Le=void 0===Me?.1:Me,ze=e.focusDelay,Be=e.blurDelay,He=e.mask,Ue=e.maskClosable,We=void 0===Ue||Ue,Ve=e.getPopupContainer,Ge=e.forceRender,qe=e.autoDestroy,Xe=e.destroyPopupOnHide,Ke=e.popup,Ye=e.popupClassName,Qe=e.popupStyle,Je=e.popupPlacement,Ze=e.builtinPlacements,et=void 0===Ze?{}:Ze,tt=e.popupAlign,nt=e.zIndex,rt=e.stretch,ot=e.getPopupClassNameFromAlign,it=e.alignPoint,at=e.onPopupClick,st=e.onPopupAlign,lt=e.arrow,ct=e.popupMotion,ut=e.maskMotion,dt=e.popupTransitionName,pt=e.popupAnimation,ft=e.maskTransitionName,mt=e.maskAnimation,gt=e.className,ht=e.getTriggerDOMNode,bt=Ei(e,fN),yt=qe||Xe||!1,vt=Va(pv.useState(!1),2),_t=vt[0],wt=vt[1];return KD((function(){wt(H5())}),[]),r=pv.useRef({}),o=pv.useContext(cN),i=pv.useMemo((function(){return{registerSubPopup:function(e,t){r.current[e]=t,null==o||o.registerSubPopup(e,t)}}}),[o]),a=Tc(),s=Va(pv.useState(null),2),l=s[0],c=s[1],u=Nl((function(e){Ws(e)&&l!==e&&c(e),null==o||o.registerSubPopup(a,e)})),d=Va(pv.useState(null),2),p=d[0],f=d[1],m=Nl((function(e){Ws(e)&&p!==e&&f(e)})),g=pv.Children.only(Oe),h=(null==g?void 0:g.props)||{},b={},y=Nl((function(e){var t,n,o=p;return(null==o?void 0:o.contains(e))||(null===(t=Ql(o))||void 0===t?void 0:t.host)===e||e===o||(null==l?void 0:l.contains(e))||(null===(n=Ql(l))||void 0===n?void 0:n.host)===e||e===l||Object.values(r.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),v=zu(De,ct,pt,dt),_=zu(De,ut,mt,ft),w=Va(pv.useState(Ie||!1),2),k=w[1],x=null!=Te?Te:w[0],S=Nl((function(e){void 0===Te&&k(e)})),KD((function(){k(Te||!1)}),[Te]),(C=pv.useRef(x)).current=x,E=Nl((function(e){x!==e&&(S(e),null==Ae||Ae(e))})),D=pv.useRef(),O=function(){clearTimeout(D.current)},j=function(e,t){var n=arguments.length>1&&void 0!==t?t:0;O(),0===n?E(e):D.current=setTimeout((function(){E(e)}),1e3*n)},pv.useEffect((function(){return O}),[]),$=Va(pv.useState(!1),2),P=$[0],N=$[1],KD((function(e){e&&!x||N(!0)}),[x]),T=Va(pv.useState(null),2),I=T[0],A=T[1],F=(R=Va(pv.useState([0,0]),2))[0],M=R[1],L=function(e){M([e.clientX,e.clientY])},z=function(e,t,n,r,o,i,a){var s,l,c,u=Va(pv.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),d=u[0],p=u[1],f=pv.useRef(0),m=pv.useMemo((function(){return t?Hu(t):[]}),[t]),g=pv.useRef({});return e||(g.current={}),s=Nl((function(){var s,l,c,u,d,f,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B,H,U,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,me,ge,he,be,ye,ve,_e,we,ke,xe,Se,Ce,Ee,De,Oe,je,$e,Pe,Ne,Te,Ie,Ae,Re,Fe,Me,Le,ze,Be,He,Ue,We,Ve,Ge,qe;if(t&&n&&e){let e=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:M,o=_.x+e,i=_.y+t,a=o+O,s=i+D,l=Math.max(o,r.left),c=Math.max(i,r.top),u=Math.min(a,r.right),d=Math.min(s,r.bottom);return Math.max(0,(u-l)*(d-c))},Xe=function(){be=(he=_.y+re)+D,ve=(ye=_.x+ne)+O};if(l=(s=t).style.left,c=s.style.top,u=s.style.right,d=s.style.bottom,f=s.ownerDocument,h=Bu(s),b=Sa(Sa({},o[r]),i),s.style.left="0",s.style.top="0",s.style.right="auto",s.style.bottom="auto",y=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:{x:(v=n.getBoundingClientRect()).x,y:v.y,width:v.width,height:v.height},_=s.getBoundingClientRect(),k=(w=h.getComputedStyle(s)).width,x=w.height,D=_.height,O=_.width,j=y.height,$=y.width,P={left:0,top:0,right:(S=f.documentElement).clientWidth,bottom:S.clientHeight},T="visible",I="visibleFirst","scroll"!==(N=b.htmlRegion)&&N!==I&&(N=T),A=N===I,R=Vu({left:-(E=S.scrollLeft),top:-(C=S.scrollTop),right:S.scrollWidth-E,bottom:S.scrollHeight-C},m),F=Vu(P,m),M=N===T?F:R,L=A?F:M,s.style.left="auto",s.style.top="auto",s.style.right="0",s.style.bottom="0",z=s.getBoundingClientRect(),s.style.left=l,s.style.top=c,s.style.right=u,s.style.bottom=d,B=Uu(Math.round(O/parseFloat(k)*1e3)/1e3),H=Uu(Math.round(D/parseFloat(x)*1e3)/1e3),0===B||0===H||Ws(n)&&!Y0(n))return;U=b.targetOffset,V=(W=Va(qu(_,b.offset),2))[0],G=W[1],X=(q=Va(qu(y,U),2))[1],y.x-=q[0],y.y-=X,Y=(K=Va(b.points||[],2))[0],Q=Xu(K[1]),J=Xu(Y),Z=Ku(y,Q),ee=Ku(_,J),te=Sa({},b),oe=e(ne=Z.x-ee.x+V,re=Z.y-ee.y+G),ie=e(ne,re,F),ae=Ku(y,["t","l"]),se=Ku(_,["t","l"]),le=Ku(y,["b","r"]),ce=Ku(_,["b","r"]),de=(ue=b.overflow||{}).adjustX,pe=ue.adjustY,fe=ue.shiftX,me=ue.shiftY,ge=function(e){return"boolean"==typeof e?e:e>=0},Xe(),_e=ge(pe),we=J[0]===Q[0],_e&&"t"===J[0]&&(be>L.bottom||g.current.bt)&&(ke=re,we?ke-=D-j:ke=ae.y-ce.y-G,xe=e(ne,ke),Se=e(ne,ke,F),xe>oe||xe===oe&&(!A||Se>=ie)?(g.current.bt=!0,re=ke,te.points=[Yu(J,0),Yu(Q,0)]):g.current.bt=!1),_e&&"b"===J[0]&&(heoe||Ee===oe&&(!A||De>=ie)?(g.current.tb=!0,re=Ce,te.points=[Yu(J,0),Yu(Q,0)]):g.current.tb=!1),Oe=ge(de),je=J[1]===Q[1],Oe&&"l"===J[1]&&(ve>L.right||g.current.rl)&&($e=ne,je?$e-=O-$:$e=ae.x-ce.x-V,Pe=e($e,re),Ne=e($e,re,F),Pe>oe||Pe===oe&&(!A||Ne>=ie)?(g.current.rl=!0,ne=$e,te.points=[Yu(J,1),Yu(Q,1)]):g.current.rl=!1),Oe&&"r"===J[1]&&(yeoe||Ie===oe&&(!A||Ae>=ie)?(g.current.lr=!0,ne=Te,te.points=[Yu(J,1),Yu(Q,1)]):g.current.lr=!1),Xe(),"number"==typeof(Re=!0===fe?0:fe)&&(yeF.right&&(ne-=ve-F.right,y.x>F.right-Re&&(ne+=y.x-F.right+Re))),"number"==typeof(Fe=!0===me?0:me)&&(heF.bottom&&(re-=be-F.bottom-G,y.y>F.bottom-Fe&&(re+=y.y-F.bottom+Fe))),Le=(Me=_.x+ne)+O,Be=(ze=_.y+re)+D,Ue=(He=y.x)+$,Ve=(We=y.y)+j,Ge=(Math.max(Me,He)+Math.min(Le,Ue))/2-Me,qe=(Math.max(ze,We)+Math.min(Be,Ve))/2-ze,null==a||a(t,te),p({ready:!0,offsetX:ne/B,offsetY:re/H,offsetR:(z.right-_.x-(ne+_.width))/B,offsetB:(z.bottom-_.y-(re+_.height))/H,arrowX:Ge/B,arrowY:qe/H,scaleX:B,scaleY:H,align:te})}})),l=function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&s()}))},KD(c=function(){p((function(e){return Sa(Sa({},e),{},{ready:!1})}))},[r]),KD((function(){e||c()}),[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,l]}(x,l,it?F:p,Je,et,tt,st),H=(B=Va(z,11))[0],U=B[1],W=B[2],V=B[3],G=B[4],q=B[5],X=B[6],K=B[7],Y=B[8],Q=B[9],J=B[10],Z=Nl((function(){P||J()})),function(e,t,n,r){KD((function(){var o,i,a,s,l;if(e&&t&&n){let e=function(){r()};return o=n,i=Hu(t),a=Hu(o),s=Bu(o),(l=new Set([s].concat(ka(i),ka(a)))).forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(x,p,l,Z),KD((function(){Z()}),[F,Je]),KD((function(){!x||null!=et&&et[Je]||Z()}),[JSON.stringify(tt)]),ee=pv.useMemo((function(){var e=function(e,t,n,r){var o,i,a,s=n.points,l=Object.keys(e);for(o=0;o1?a-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==e?e:10,n=Va(pv.useState(!1),2),r=n[0],o=n[1],i=pv.useRef(null),a=function(){window.clearTimeout(i.current)};return pv.useEffect((function(){return a}),[]),[r,function(e,n){a(),i.current=window.setTimeout((function(){o(e),n&&n()}),t)},a]}(),m=(f=Va(p,3))[0],g=f[1],h=f[2],pv.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=u.current)||void 0===e?void 0:e.focus,blur:null===(t=u.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=d.current)||void 0===t?void 0:t.scrollTo(e)}}})),b=pv.useMemo((function(){var e,t;return"combobox"!==ve?$e:"string"==typeof(t=null===(e=fe[0])||void 0===e?void 0:e.value)||"number"==typeof t?String(t):""}),[$e,ve,fe]),y="combobox"===ve&&"function"==typeof ke&&ke()||null,v="function"==typeof xe&&xe(),_=Hs(l,null==v||null===(n=v.props)||void 0===n?void 0:n.ref),k=(w=Va(pv.useState(!1),2))[0],x=w[1],KD((function(){x(!0)}),[]),S=Va(Al(!1,{defaultValue:Ce,value:Se}),2),C=S[0],D=!!k&&C,O=!be&&ge,(_e||O&&D&&"combobox"===ve)&&(D=!1),j=!O&&D,$=pv.useCallback((function(e){var t=void 0!==e?e:!D;_e||(E(t),D!==t&&(null==Ee||Ee(t)))}),[_e,D,E=S[1],Ee]),P=pv.useMemo((function(){return(Ie||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Ie]),N=function(e,t,n){var r,o,i,a,s=!0,l=e;return null==Oe||Oe(null),r=n?null:(o=Ie)&&o.length?(i=!1,a=function e(t,n){var r,o=Zs(n),a=o[0],s=o.slice(1);return a?(r=t.split(a),i=i||r.length>1,r.reduce((function(t,n){return[].concat(ka(t),ka(e(n,s)))}),[]).filter((function(e){return e}))):[t]}(e,o),i?a:null):null,"combobox"!==ve&&r&&(l="",null==Te||Te(r),$(!1),s=!1),Ne&&b!==l&&Ne(l,{source:t?"typing":"effect"}),s},T=function(e){e&&e.trim()&&Ne(e,{source:"submit"})},pv.useEffect((function(){D||ot||"combobox"===ve||N("",!1,!1)}),[D]),pv.useEffect((function(){C&&_e&&E(!1),_e&&g(!1)}),[_e]),I=Va(ju(),2),A=I[0],R=I[1],F=function(e){var t,n,r,o,i,a,s,l,c=A(),u=e.which;if(u===S$.ENTER&&("combobox"!==ve&&e.preventDefault(),D||$(!0)),R(!!b),u===S$.BACKSPACE&&!c&&ot&&!b&&fe.length){for(n=null,r=(t=ka(fe)).length-1;r>=0;r-=1)if(!(o=t[r]).disabled){t.splice(r,1),n=o;break}n&&me(t,{type:"remove",values:[n]})}for(i=arguments.length,a=new Array(i>1?i-1:0),s=1;s1?t-1:0),r=1;r1?r-1:0),a=1;ae.height},n}Is(e,pv.Component);var t=Ms(e);return $i(e,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){var e,t;this.removeEvents(),null===(e=this.scrollbarRef.current)||void 0===e||e.removeEventListener("touchstart",this.onScrollbarTouchStart),null===(t=this.thumbRef.current)||void 0===t||t.removeEventListener("touchstart",this.onMouseDown),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props,o=r.prefixCls,i=r.direction,a=this.getSpinHeight(),s=this.getTop(),l=this.showScroll(),c=l&&n,u="rtl"===i?{left:0}:{right:0};return pv.createElement("div",{ref:this.scrollbarRef,className:xZ("".concat(o,"-scrollbar"),Ci({},"".concat(o,"-scrollbar-show"),l)),style:Sa(Sa({width:8,top:0,bottom:0},u),{},{position:"absolute",display:c?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},pv.createElement("div",{ref:this.thumbRef,className:xZ("".concat(o,"-scrollbar-thumb"),Ci({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:a,top:s,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),e}(),jN=function(){function e(){Oi(this,e),this.maps=void 0,this.maps=Object.create(null)}return $i(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),$N="object"===("undefined"==typeof navigator?"undefined":xi(navigator))&&/Firefox/i.test(navigator.userAgent);const W5=function(e,t){var n=pv.useRef(!1),r=pv.useRef(null),o=pv.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e,t){var i=e<0&&o.current.top||e>0&&o.current.bottom;return arguments.length>1&&void 0!==t&&t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};PN=14/15,NN=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],TN=[],IN={overflowY:"auto",overflowAnchor:"none"},(AN=pv.forwardRef(sd)).displayName="List",RN=pv.createContext(null),FN=["disabled","title","children","style","className"],MN=function(e,t){function n(e,t){return{role:e.group?"presentation":"option",id:"".concat(d,"_list_").concat(t)}}var r,o,i,a,s,l,c=pv.useContext(zP),u=c.prefixCls,d=c.id,p=c.open,f=c.multiple,m=c.mode,g=c.searchValue,h=c.toggleOpen,b=c.notFoundContent,y=c.onPopupScroll,v=pv.useContext(RN),_=v.flattenOptions,w=v.onActiveValue,k=v.defaultActiveFirstOption,x=v.onSelect,S=v.menuItemSelectedIcon,C=v.rawValues,E=v.fieldNames,D=v.virtual,O=v.direction,j=v.listHeight,$=v.listItemHeight,P="".concat(u,"-item"),N=Ea((function(){return _}),[p,_],(function(e,t){return t[0]&&e[1]!==t[1]})),T=pv.useRef(null),I=function(e){e.preventDefault()},A=function(e){T.current&&T.current.scrollTo("number"==typeof e?{index:e}:e)},R=function(e,t){var n,r,o,i=arguments.length>1&&void 0!==t?t:1,a=N.length;for(n=0;n1&&void 0!==t&&t;L(e),n={source:o?"keyboard":"mouse"},(r=N[e])?w(r.value,e,n):w(null,-1,n)};return pv.useEffect((function(){z(!1!==k?R(0):-1)}),[N.length,g]),r=pv.useCallback((function(e){return C.has(e)&&"combobox"!==m}),[m,ka(C).toString(),C.size]),pv.useEffect((function(){var e,t=setTimeout((function(){var e,t;!f&&p&&1===C.size&&(e=Array.from(C)[0],-1!==(t=N.findIndex((function(t){return t.data.value===e})))&&(z(t),A(t)))}));return p&&(null===(e=T.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[p,g,_.length]),o=function(e){void 0!==e&&x(e,{selected:!C.has(e)}),f||h(!1)},pv.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t,n,r,i=e.which,a=e.ctrlKey;switch(i){case S$.N:case S$.P:case S$.UP:case S$.DOWN:t=0,i===S$.UP?t=-1:i===S$.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&a&&(i===S$.N?t=1:i===S$.P&&(t=-1)),0!==t&&(n=R(M+t,t),A(n),z(n,!0));break;case S$.ENTER:o((r=N[M])&&!r.data.disabled?r.value:void 0),p&&e.preventDefault();break;case S$.ESC:h(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}})),0===N.length?pv.createElement("div",{role:"listbox",id:"".concat(d,"_list"),className:"".concat(P,"-empty"),onMouseDown:I},b):(i=Object.keys(E).map((function(e){return E[e]})),a=function(e){return e.label},s=function(e){var t,o,i,s,l,c=N[e];return c?(o=(t=c.data||{}).value,i=c.group,s=ic(t,!0),l=a(c),c?pv.createElement("div",fa({"aria-label":"string"!=typeof l||i?null:l},s,{key:e},n(c,e),{"aria-selected":r(o)}),o):null):null},l={role:"listbox",id:"".concat(d,"_list")},pv.createElement(pv.Fragment,null,D&&pv.createElement("div",fa({},l,{style:{height:0,width:0,overflow:"hidden"}}),s(M-1),s(M),s(M+1)),pv.createElement(AN,{itemKey:"key",ref:T,data:N,height:j,itemHeight:$,fullHeight:!1,onMouseDown:I,onScroll:y,virtual:D,direction:O,innerProps:D?null:l},(function(e,t){var s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k=e.groupOption,x=e.data,C=e.label,E=e.value,O=x.key;return e.group?(c=null!==(l=x.title)&&void 0!==l?l:ld(C)?C.toString():void 0,pv.createElement("div",{className:xZ(P,"".concat(P,"-group")),title:c},void 0!==C?C:O)):(u=x.disabled,d=x.title,p=x.style,f=x.className,m=Qs(Ei(x,FN),i),g=r(E),h="".concat(P,"-option"),b=xZ(P,h,f,(Ci(s={},"".concat(h,"-grouped"),k),Ci(s,"".concat(h,"-active"),M===t&&!u),Ci(s,"".concat(h,"-disabled"),u),Ci(s,"".concat(h,"-selected"),g),s)),y=a(e),v=!S||"function"==typeof S||g,w=ld(_="number"==typeof y?y:y||E)?_.toString():void 0,void 0!==d&&(w=d),pv.createElement("div",fa({},ic(m),D?{}:n(e,t),{"aria-selected":g,className:b,title:w,onMouseMove:function(){M===t||u||z(t)},onClick:function(){u||o(E)},style:p}),pv.createElement("div",{className:"".concat(h,"-content")},_),pv.isValidElement(S)||g,v&&pv.createElement(eN,{className:"".concat(P,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:g}},g?"✓":null)))}))))},(LN=pv.forwardRef(MN)).displayName="OptionList",zN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],BN=["inputValue"],HN=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x=e.id,S=e.mode,C=e.prefixCls,E=void 0===C?"rc-select":C,D=e.backfill,O=e.fieldNames,j=e.inputValue,$=e.searchValue,P=e.onSearch,N=e.autoClearSearchValue,T=void 0===N||N,I=e.onSelect,A=e.onDeselect,R=e.dropdownMatchSelectWidth,F=void 0===R||R,M=e.filterOption,L=e.filterSort,z=e.optionFilterProp,B=e.optionLabelProp,H=e.options,U=e.children,W=e.defaultActiveFirstOption,V=e.menuItemSelectedIcon,G=e.virtual,q=e.direction,X=e.listHeight,K=void 0===X?200:X,Y=e.listItemHeight,Q=void 0===Y?20:Y,J=e.value,Z=e.defaultValue,ee=e.labelInValue,te=e.onChange,ne=Ei(e,zN),re=function(e){var t=Va(pv.useState(),2),n=t[0],r=t[1];return pv.useEffect((function(){var e;r("rc_select_".concat((kN?(e=wN,wN+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(x),oe=nd(S),ie=!(H||!U),ae=pv.useMemo((function(){return(void 0!==M||"combobox"!==S)&&M}),[M,S]),se=pv.useMemo((function(){return ed(O,ie)}),[JSON.stringify(O),ie]),le=Va(Al("",{value:void 0!==$?$:j,postState:function(e){return e||""}}),2),ce=le[0],ue=le[1],de=function(e,t,n,r,o){return pv.useMemo((function(){var i,a,s,l=e;return!e&&(l=rd(t)),i=new Map,a=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)},function e(t,l){var c,u,d=arguments.length>1&&void 0!==l&&l;for(c=0;c1&&void 0!==t?t:{},r=n.childrenAsData,o=[],i=ed(n.fieldNames,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){t.forEach((function(t){var i,u;n||!(l in t)?(i=t[s],o.push({key:Zu(t,o.length),groupOption:n,data:t,label:t[a],value:i})):(void 0===(u=t[c])&&r&&(u=t.label),o.push({key:Zu(t,o.length),group:!0,data:t,label:u}),e(t[l],!0))}))}(e,!1),o}(a,{fieldNames:se,childrenAsData:ie})}),[a,se,ie]),l=function(e){var t,n,r=ge(e);ye(r),te&&(r.length!==we.length||r.some((function(e,t){var n;return(null===(n=we[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))&&(t=ee?r:r.map((function(e){return e.value})),n=r.map((function(e){return td(ke(e.value))})),te(oe?t:t[0],oe?n:n[0]))},u=(c=Va(pv.useState(null),2))[0],d=c[1],f=(p=Va(pv.useState(0),2))[0],m=p[1],g=void 0!==W?W:"combobox"!==S,h=pv.useCallback((function(e,t,n){var r=(arguments.length>2&&void 0!==n?n:{}).source,o=void 0===r?"keyboard":r;m(t),D&&"combobox"===S&&null!==e&&"keyboard"===o&&d(String(e))}),[D,S]),b=function(e,t,n){var r,o,i=function(){var t,n=ke(e);return[ee?{label:null==n?void 0:n[se.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,td(n)]};t&&I?(r=Va(i(),2),I(r[0],r[1])):!t&&A&&"clear"!==n&&(o=Va(i(),2),A(o[0],o[1]))},y=od((function(e,t){var n,r=!oe||t.selected;n=r?oe?[].concat(ka(we),[e]):[e]:we.filter((function(t){return t.value!==e})),l(n),b(e,r),"combobox"===S?d(""):nd&&!T||(ue(""),d(""))})),v=function(e,t){l(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach((function(e){b(e.value,!1,n)}))},_=function(e,t){var n,r;ue(e),d(null),"submit"!==t.source?"blur"!==t.source&&("combobox"===S&&l(e),null==P||P(e)):(n=(e||"").trim())&&(r=Array.from(new Set([].concat(ka(Se),[n]))),l(r),b(n,!0),ue(""))},w=function(e){var t,n=e;"tags"!==S&&(n=e.map((function(e){var t=fe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e}))),t=Array.from(new Set([].concat(ka(Se),ka(n)))),l(t),t.forEach((function(e){b(e,!0)}))},k=pv.useMemo((function(){var e=!1!==G&&!1!==F;return Sa(Sa({},de),{},{flattenOptions:s,onActiveValue:h,defaultActiveFirstOption:g,onSelect:y,menuItemSelectedIcon:V,rawValues:Se,fieldNames:se,virtual:e,direction:q,listHeight:K,listItemHeight:Q,childrenAsData:ie})}),[de,s,h,g,y,V,Se,se,G,F,K,Q,ie]),pv.createElement(RN.Provider,{value:k},pv.createElement(_N,fa({},ne,{id:re,prefixCls:E,ref:t,omitDomProps:BN,mode:S,displayValues:xe,onDisplayValuesChange:v,direction:q,searchValue:ce,onSearch:_,autoClearSearchValue:T,onSearchSplit:w,dropdownMatchSelectWidth:F,OptionList:LN,emptyOptions:!s.length,activeValue:u,activeDescendantId:"".concat(re,"_list_").concat(f)})))})),(UN=HN).Option=EN,UN.OptGroup=CN;const V5=(e,t)=>t||e,G5=()=>{const[,e]=Pl(),t=new kj(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return pv.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},pv.createElement("g",{fill:"none",fillRule:"evenodd"},pv.createElement("g",{transform:"translate(24 31.67)"},pv.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),pv.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"}),pv.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)"}),pv.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"}),pv.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.515c-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"})),pv.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"}),pv.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},pv.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),pv.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},q5=()=>{const[,e]=Pl(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=pv.useMemo((()=>({borderColor:new kj(t).onBackground(o).toHexShortString(),shadowColor:new kj(n).onBackground(o).toHexShortString(),contentColor:new kj(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return pv.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},pv.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},pv.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),pv.createElement("g",{fillRule:"nonzero",stroke:i},pv.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"}),pv.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}))))},X5=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},K5=Ml("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=Rl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[X5(r)]}));WN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:r,image:o=Y5,description:i,children:a,imageStyle:s,style:l}=e,c=WN(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:p}=pv.useContext(KZ),f=u("empty",r),[m,g]=K5(f),[h]=NZ("Empty"),b=void 0!==i?i:null==h?void 0:h.description;let y=null;return y="string"==typeof o?pv.createElement("img",{alt:"string"==typeof b?b:"empty",src:o}):o,m(pv.createElement("div",Object.assign({className:xZ(g,f,null==p?void 0:p.className,{[`${f}-normal`]:o===Q5,[`${f}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),l)},c),pv.createElement("div",{className:`${f}-image`,style:s},y),b&&pv.createElement("div",{className:`${f}-description`},b),a&&pv.createElement("div",{className:`${f}-footer`},a)))};J5.PRESENTED_IMAGE_DEFAULT=Y5,J5.PRESENTED_IMAGE_SIMPLE=Q5;const Z5=J5,e4=e=>{const{componentName:t}=e,{getPrefixCls:n}=pv.useContext(KZ),r=n("empty");switch(t){case"Table":case"List":return zJ.createElement(Z5,{image:Z5.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return zJ.createElement(Z5,{image:Z5.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return zJ.createElement(Z5,null)}},t4=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},n4=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},JZ(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 &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:U2},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:V2},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:W2},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:G2},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},t4(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"},QZ),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},J2(e,"slide-up"),J2(e,"slide-down"),H2(e,"move-up"),H2(e,"move-down")]},r4=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]},o4=e=>{const{componentCls:t}=e,n=Rl(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Rl(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=r4(e);return[ud(e),ud(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},ud(r,"lg")]},i4=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},a4=function(e,t,n){let r=arguments.length>2&&void 0!==n&&n;const{componentCls:o,borderHoverColor:i,outlineColor:a,antCls:s}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${s}-pagination-size-changer)`]:Object.assign(Object.assign({},r?{[`${o}-selector`]:{borderColor:i}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:i}})}}},s4=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},l4=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},JZ(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},i4(e)),s4(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},QZ),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},QZ),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},c4=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},l4(e),pd(e),o4(e),n4(e),{[`${t}-rtl`]:{direction:"rtl"}},a4(t,Rl(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),a4(`${t}-status-error`,Rl(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),a4(`${t}-status-warning`,Rl(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Dc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},u4=Ml("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=Rl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[c4(r)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));VN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:p=24,size:f,disabled:m,notFoundContent:g,status:h,showArrow:b,builtinPlacements:y,dropdownMatchSelectWidth:v,popupMatchSelectWidth:_,direction:w,style:k}=e,x=VN(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style"]);const{getPopupContainer:S,getPrefixCls:C,renderEmpty:E,direction:D,virtual:O,popupMatchSelectWidth:j,popupOverflow:$,select:P}=pv.useContext(KZ),N=C("select",r),T=C(),I=null!=w?w:D,{compactSize:A,compactItemClassnames:R}=a1(N,I),[F,M]=u4(N),L=pv.useMemo((()=>{const{mode:e}=x;if("combobox"!==e)return e===d4?"combobox":e}),[x.mode]),z="multiple"===L||"tags"===L,B=function(e){return null==e||e}(b),H=null!==(n=null!=_?_:v)&&void 0!==n?n:j,{status:U,hasFeedback:W,isFormItemInput:V,feedbackIcon:G}=pv.useContext(E2),q=V5(U,h);let X;X=void 0!==g?g:"combobox"===L?null:(null==E?void 0:E("Select"))||pv.createElement(e4,{componentName:"Select"});const{suffixIcon:K,itemIcon:Y,removeIcon:Q,clearIcon:J}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const d=null!=n?n:pv.createElement(E0,null),p=e=>pv.createElement(pv.Fragment,null,!1!==c&&e,s&&u);let f=null;if(void 0!==t)f=p(t);else if(i)f=p(pv.createElement(H0,{spin:!0}));else{const e=`${l}-suffix`;f=t=>{let{open:n,showSearch:r}=t;return p(pv.createElement(n&&r?h2:n2,{className:e}))}}let m=null;m=void 0!==r?r:a?pv.createElement(J1,null):null;let g=null;return g=void 0!==o?o:pv.createElement(O0,null),{clearIcon:d,suffixIcon:f,itemIcon:m,removeIcon:g}}(Object.assign(Object.assign({},x),{multiple:z,hasFeedback:W,feedbackIcon:G,showArrow:B,prefixCls:N})),Z=Qs(x,["suffixIcon","itemIcon"]),ee=xZ(l||c,{[`${N}-dropdown-${I}`]:"rtl"===I},a,M),te=t1((e=>{var t;return null!==(t=null!=f?f:A)&&void 0!==t?t:e})),ne=pv.useContext(l0),re=null!=m?m:ne,oe=xZ({[`${N}-lg`]:"large"===te,[`${N}-sm`]:"small"===te,[`${N}-rtl`]:"rtl"===I,[`${N}-borderless`]:!o,[`${N}-in-form-item`]:V},cd(N,q,W),R,null==P?void 0:P.className,i,a,M),ie=pv.useMemo((()=>void 0!==d?d:"rtl"===I?"bottomRight":"bottomLeft"),[d,I]),ae=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{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)}(y,$);return F(pv.createElement(UN,Object.assign({ref:t,virtual:O,showSearch:null==P?void 0:P.showSearch},Z,{style:Object.assign(Object.assign({},null==P?void 0:P.style),k),dropdownMatchSelectWidth:H,builtinPlacements:ae,transitionName:Y1(T,K1(d),x.transitionName),listHeight:u,listItemHeight:p,mode:L,prefixCls:N,placement:ie,direction:I,inputIcon:K,menuItemSelectedIcon:Y,removeIcon:Q,clearIcon:J,notFoundContent:X,className:oe,getPopupContainer:s||S,dropdownClassName:ee,showArrow:W||B,disabled:re})))},f4=pv.forwardRef(p4),m4=(AQ=f4,function(e){const{prefixCls:t,style:n}=e,r=pv.useRef(null),[o,i]=pv.useState(0),[a,s]=pv.useState(0),[l,c]=Al(!1,{value:e.open}),{getPrefixCls:u}=pv.useContext(KZ),d=u("select",t);pv.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=null===(n=r.current)||void 0===n?void 0:n.querySelector(`.${d}-dropdown`);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let p=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return pv.createElement(_0,{theme:{token:{motion:!1}}},pv.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:a}},pv.createElement(AQ,Object.assign({},p))))});f4.SECRET_COMBOBOX_MODE_DO_NOT_USE=d4,f4.Option=EN,f4.OptGroup=CN,f4._InternalPanelDoNotUseOrYouWillBeFired=m4;const g4=f4,h4=["xxl","xl","lg","md","sm","xs"],b4=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)`}),y4=e=>{const t=e,n=[].concat(h4).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(rnew kj(e).setAlpha(t).toRgbString(),C4=(e,t)=>new kj(e).lighten(t).toHexString(),E4=e=>{const t=Cl(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},D4=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:S4(r,.85),colorTextSecondary:S4(r,.65),colorTextTertiary:S4(r,.45),colorTextQuaternary:S4(r,.25),colorFill:S4(r,.18),colorFillSecondary:S4(r,.12),colorFillTertiary:S4(r,.08),colorFillQuaternary:S4(r,.04),colorBgElevated:C4(n,12),colorBgContainer:C4(n,8),colorBgLayout:C4(n,0),colorBgSpotlight:C4(n,26),colorBorder:C4(n,26),colorBorderSecondary:C4(n,19)}},O4={defaultConfig:GZ,defaultSeed:GZ.token,useToken:function(){const[e,t,n]=Pl();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Dl,darkAlgorithm:(e,t)=>{const n=Object.keys(FZ).map((t=>{const n=Cl(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:Dl(e);return Object.assign(Object.assign(Object.assign({},r),n),El(e,{generateColorPalettes:E4,generateNeutralColorPalettes:D4}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:Dl(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),WZ(r)),{controlHeight:o}),RZ(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=js((null==e?void 0:e.algorithm)?e.algorithm:Dl),n=Object.assign(Object.assign({},MZ),null==e?void 0:e.token);return rO(n,{override:null==e?void 0:e.token},t,$l)}},j4=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},JZ(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,_4)}},[`${t}-content`]:{position:"relative"}}),Ll(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},bd(Rl(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$4=(e,t)=>Ml("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=Rl(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[j4(a),p5(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),P4=IZ.map((e=>`${e}-inverse`)),N4=["success","processing","error","default","warning"];JN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:f,arrow:m=!0,title:g,overlay:h,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:v=!0}=e,_=!!m,{token:w}=T4(),{getPopupContainer:k,getPrefixCls:x,direction:S}=pv.useContext(KZ),C=pv.useRef(null),E=()=>{var e;null===(e=C.current)||void 0===e||e.forceAlign()};pv.useImperativeHandle(t,(()=>({forceAlign:E,forcePopupAlign:()=>{E()}})));const[D,O]=Al(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),j=!g&&!h&&0!==g,$=pv.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||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(w4).forEach((e=>{const c=Object.assign(Object.assign({},r&&k4[e]||w4[e]),{offset:[0,0]});switch(l[e]=c,x4.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=s+o}const u=gd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-u.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":c.offset[0]=u.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":c.offset[1]=-u.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":c.offset[1]=u.dropdownArrowOffset+s}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,u,t,n),a&&(c.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:v,arrowWidth:_?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[y,m,b,w]),P=pv.useMemo((()=>0===g?g:h||g||""),[h,g]),N=pv.createElement(s1,null,"function"==typeof P?P():P),{getPopupContainer:T,placement:I="top",mouseEnterDelay:A=.1,mouseLeaveDelay:R=.1,overlayStyle:F,rootClassName:M}=e,L=JN(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),z=x("tooltip",o),B=x(),H=e["data-popover-inject"];let U=D;"open"in e||"visible"in e||!j||(U=!1);const W=function(e,t){const n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){const{picked:n,omitted:r}=(e=>{const t={},n=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach((r=>{e&&r in e&&(t[r]=e[r],delete n[r])})),{picked:t,omitted:n}})(e.props.style),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),i=sc(e,{style:Object.assign(Object.assign({},r),{pointerEvents:"none"}),className:null});return pv.createElement("span",{style:o,className:xZ(e.props.className,`${t}-disabled-compatible-wrapper`)},i)}return e}(T0(u)&&!ac(u)?u:pv.createElement("span",null,u),z),V=W.props,G=V.className&&"string"!=typeof V.className?V.className:xZ(V.className,i||`${z}-open`),[q,X]=$4(z,!H),K=vd(z,l),Y=K.arrowStyle,Q=Object.assign(Object.assign({},c),K.overlayStyle),J=xZ(s,{[`${z}-rtl`]:"rtl"===S},K.className,M,X);return q(pv.createElement(v4,Object.assign({},L,{showArrow:_,placement:I,mouseEnterDelay:A,mouseLeaveDelay:R,prefixCls:z,overlayClassName:J,overlayStyle:Object.assign(Object.assign({},Y),F),getTooltipContainer:T||a||k,ref:C,builtinPlacements:$,overlay:N,visible:U,onVisibleChange:t=>{var n,r;O(!j&&t),j||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:p,overlayInnerStyle:Q,arrowContent:pv.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:Y1(B,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),U?sc(W,{className:G}):W))}));I4._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=pv.useContext(KZ),l=s("tooltip",t),[c,u]=$4(l,!0),d=vd(l,i),p=d.arrowStyle,f=Object.assign(Object.assign({},a),d.overlayStyle),m=xZ(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(pv.createElement("div",{className:m,style:p},pv.createElement("div",{className:`${l}-arrow`}),pv.createElement(md,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),o)))};const A4=I4;ZN=S$.ESC,eT=S$.TAB,tT=pv.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=pv.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=Bs(t,null==i?void 0:i.ref);return zJ.createElement(zJ.Fragment,null,r&&zJ.createElement("div",{className:"".concat(o,"-arrow")}),zJ.cloneElement(i,{ref:Us(i)?a:void 0}))})),oT={topLeft:{points:["bl","tl"],overflow:nT={adjustX:1,adjustY:1},offset:[0,-4],targetOffset:rT=[0,0]},top:{points:["bc","tc"],overflow:nT,offset:[0,-4],targetOffset:rT},topRight:{points:["br","tr"],overflow:nT,offset:[0,-4],targetOffset:rT},bottomLeft:{points:["tl","bl"],overflow:nT,offset:[0,4],targetOffset:rT},bottom:{points:["tc","bc"],overflow:nT,offset:[0,4],targetOffset:rT},bottomRight:{points:["tr","br"],overflow:nT,offset:[0,4],targetOffset:rT}},iT=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const R4=zJ.forwardRef(_d);aT=pv.createContext(null),sT=["children","locked"],lT=pv.createContext(null),cT=[],uT=pv.createContext(null),dT=pv.createContext(cT),pT=pv.createContext(null),fT=pv.createContext({}),yT=S$.ENTER,vT=S$.ESC,_T=S$.HOME,wT=S$.END,kT=[hT=S$.UP,bT=S$.DOWN,mT=S$.LEFT,gT=S$.RIGHT],xT="__RC_UTIL_PATH_SPLIT__",ST=function(e){return e.join(xT)},CT=function(e){return e.split(xT)},ET="rc-menu-more",DT=Math.random().toFixed(5).toString().slice(2),OT=0,jT=["item"],$T=["title","attribute","elementRef"],PT=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],NT=["active"],TT=function(){function e(){return Oi(this,e),t.apply(this,arguments)}Is(e,pv.Component);var t=Ms(e);return $i(e,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Qs(Ei(e,$T),["eventKey","popupClassName","popupOffset","onTitleClick"]);return $a(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),pv.createElement(ZP.Item,fa({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),e}(),IT=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B=e.style,H=e.className,U=e.eventKey;return r=e.disabled,o=e.itemIcon,i=e.children,a=e.role,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onClick,u=e.onKeyDown,d=e.onFocus,p=Ei(e,PT),f=kd(U),g=(m=pv.useContext(lT)).prefixCls,h=m.onItemClick,b=m.disabled,y=m.overflowDisabled,v=m.itemIcon,_=m.selectedKeys,w=m.onActive,k=pv.useContext(fT)._internalRenderMenuItem,x="".concat(g,"-item"),S=pv.useRef(),C=pv.useRef(),E=b||r,D=Hs(t,C),O=Cd(U),j=function(e){return{key:U,keyPath:ka(O).reverse(),item:S.current,domEvent:e}},$=o||v,N=(P=$d(U,E,s,l)).active,T=Ei(P,NT),I=_.includes(U),A=Pd(O.length),R=function(e){if(!E){var t=j(e);null==c||c(Td(t)),h(t)}},F=function(e){if(null==u||u(e),e.which===S$.ENTER){var t=j(e);null==c||c(Td(t)),h(t)}},M=function(e){w(U),null==d||d(e)},L={},"option"===e.role&&(L["aria-selected"]=I),z=pv.createElement(TT,fa({ref:S,elementRef:D,role:null===a?"none":a||"menuitem",tabIndex:r?null:-1,"data-menu-id":y&&f?null:f},p,T,L,{component:"li","aria-disabled":r,style:Sa(Sa({},A),B),className:xZ(x,(n={},Ci(n,"".concat(x,"-active"),N),Ci(n,"".concat(x,"-selected"),I),Ci(n,"".concat(x,"-disabled"),E),n),H),onClick:R,onKeyDown:F,onFocus:M}),i,pv.createElement(Nd,{props:Sa(Sa({},e),{},{isSelected:I}),icon:$})),k&&(z=k(z,e,{selected:I})),z}));const F4=pv.forwardRef(Id);AT=["className","children"],RT=function(e,t){var n=e.className,r=e.children,o=Ei(e,AT),i=pv.useContext(lT),a=i.prefixCls,s=i.mode;return pv.createElement("ul",fa({className:xZ(a,i.rtl&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},(FT=pv.forwardRef(RT)).displayName="SubMenuList",LT={topLeft:{points:["bl","tl"],overflow:MT={adjustX:1,adjustY:1}},topRight:{points:["br","tr"],overflow:MT},bottomLeft:{points:["tl","bl"],overflow:MT},bottomRight:{points:["tr","br"],overflow:MT},leftTop:{points:["tr","tl"],overflow:MT},leftBottom:{points:["br","bl"],overflow:MT},rightTop:{points:["tl","tr"],overflow:MT},rightBottom:{points:["bl","br"],overflow:MT}},zT={topLeft:{points:["bl","tl"],overflow:MT},topRight:{points:["br","tr"],overflow:MT},bottomLeft:{points:["tl","bl"],overflow:MT},bottomRight:{points:["tr","br"],overflow:MT},rightTop:{points:["tr","tl"],overflow:MT},rightBottom:{points:["br","bl"],overflow:MT},leftTop:{points:["tl","tr"],overflow:MT},leftBottom:{points:["bl","br"],overflow:MT}},BT={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},HT=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],UT=["active"],WT=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B,H,U,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce=e.style,ue=e.className,de=e.title,pe=e.eventKey;return n=e.disabled,r=e.internalPopupClose,o=e.children,i=e.itemIcon,a=e.expandIcon,s=e.popupClassName,l=e.popupOffset,c=e.onClick,u=e.onMouseEnter,d=e.onMouseLeave,p=e.onTitleClick,f=e.onTitleMouseEnter,m=e.onTitleMouseLeave,g=Ei(e,HT),h=kd(pe),y=(b=pv.useContext(lT)).prefixCls,v=b.mode,_=b.openKeys,w=b.disabled,k=b.overflowDisabled,x=b.activeKey,S=b.selectedKeys,C=b.itemIcon,E=b.expandIcon,D=b.onItemClick,O=b.onOpenChange,j=b.onActive,$=pv.useContext(fT)._internalRenderSubMenuItem,P=pv.useContext(pT),N=P.isSubPathKey,T=Cd(),I="".concat(y,"-submenu"),A=w||n,R=pv.useRef(),F=pv.useRef(),M=i||C,L=a||E,z=_.includes(pe),B=!k&&z,H=N(S,pe),U=$d(pe,A,f,m),W=U.active,V=Ei(U,UT),G=Va(pv.useState(!1),2),X=G[1],K=function(e){A||X(e)},Y=function(e){K(!0),null==u||u({key:pe,domEvent:e})},Q=function(e){K(!1),null==d||d({key:pe,domEvent:e})},J=pv.useMemo((function(){return W||"inline"!==v&&(q||N([x],pe))}),[v,W,x,q=G[0],pe,N]),Z=Pd(T.length),ee=function(e){A||(null==p||p({key:pe,domEvent:e}),"inline"===v&&O(pe,!z))},te=jd((function(e){null==c||c(Td(e)),D(e)})),ne=function(e){"inline"!==v&&O(pe,e)},re=function(){j(pe)},oe=h&&"".concat(h,"-popup"),ie=pv.createElement("div",fa({role:"menuitem",style:Z,className:"".concat(I,"-title"),tabIndex:A?null:-1,ref:R,title:"string"==typeof de?de:null,"data-menu-id":k&&h?null:h,"aria-expanded":B,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":A,onClick:ee,onFocus:re},V),de,pv.createElement(Nd,{icon:"horizontal"!==v?L:null,props:Sa(Sa({},e),{},{isOpen:B,isSubMenu:!0})},pv.createElement("i",{className:"".concat(I,"-arrow")}))),(ae=pv.useRef(v)).current="inline"!==v&&T.length>1?"vertical":v,k||(ie=pv.createElement(Fd,{mode:se=ae.current,prefixCls:I,visible:!r&&B&&"inline"!==v,popupClassName:s,popupOffset:l,popup:pv.createElement(xd,{mode:"horizontal"===se?"vertical":se},pv.createElement(FT,{id:oe,ref:F},o)),disabled:A,onVisibleChange:ne},ie)),le=pv.createElement(ZP.Item,fa({role:"none"},g,{component:"li",style:ce,className:xZ(I,"".concat(I,"-").concat(v),ue,(t={},Ci(t,"".concat(I,"-open"),B),Ci(t,"".concat(I,"-active"),J),Ci(t,"".concat(I,"-selected"),H),Ci(t,"".concat(I,"-disabled"),A),t)),onMouseEnter:Y,onMouseLeave:Q}),ie,!k&&pv.createElement(Md,{id:oe,open:B,keyPath:T},o)),$&&(le=$(le,e,{selected:H,active:J,open:B,disabled:A})),pv.createElement(xd,{onItemClick:te,mode:"horizontal"===v?"vertical":v,itemIcon:M,expandIcon:L},le)},VT=["className","title","eventKey","children"],GT=["children"],qT=function(e){var t,n,r,o,i=e.className,a=e.title;return t=e.children,n=Ei(e,VT),r=pv.useContext(lT),o="".concat(r.prefixCls,"-item-group"),pv.createElement("li",fa({role:"presentation"},n,{onClick:function(e){return e.stopPropagation()},className:xZ(o,i)}),pv.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:"string"==typeof a?a:void 0},a),pv.createElement("ul",{role:"group",className:"".concat(o,"-list")},t))},XT=["label","children","key","type"],KT=["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"],YT=[],(QT=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I,A,R,F,M,L,z,B,H,U,W,V,G,q,X,K,Y,Q,J,Z,ee,te,ne,re,oe,ie,ae,se=e.prefixCls,le=void 0===se?"rc-menu":se,ce=e.rootClassName,ue=e.style,de=e.className,pe=e.tabIndex,fe=void 0===pe?0:pe,me=e.items,ge=e.children,he=e.direction,be=e.id,ye=e.mode,ve=void 0===ye?"vertical":ye,_e=e.inlineCollapsed,we=e.disabled,ke=e.disabledOverflow,xe=e.subMenuOpenDelay,Se=void 0===xe?.1:xe,Ce=e.subMenuCloseDelay,Ee=void 0===Ce?.1:Ce,De=e.forceSubMenuRender,Oe=e.defaultOpenKeys,je=e.openKeys,$e=e.activeKey,Pe=e.defaultActiveFirst,Ne=e.selectable,Te=void 0===Ne||Ne,Ie=e.multiple,Ae=void 0!==Ie&&Ie,Re=e.defaultSelectedKeys,Fe=e.selectedKeys,Me=e.onSelect,Le=e.onDeselect,ze=e.inlineIndent,Be=void 0===ze?24:ze,He=e.motion,Ue=e.defaultMotions,We=e.triggerSubMenuAction,Ve=void 0===We?"hover":We,Ge=e.builtinPlacements,qe=e.itemIcon,Xe=e.expandIcon,Ke=e.overflowedIndicator,Ye=void 0===Ke?"...":Ke,Qe=e.overflowedIndicatorPopupClassName,Je=e.getPopupContainer,Ze=e.onClick,et=e.onOpenChange,tt=e.onKeyDown;return o=e._internalRenderMenuItem,i=e._internalRenderSubMenuItem,a=Ei(e,KT),s=pv.useMemo((function(){return Ud(ge,me,YT)}),[ge,me]),c=(l=Va(pv.useState(!1),2))[0],u=l[1],d=pv.useRef(),p=function(e){var t=Va(Al(e,{value:e}),2),n=t[0],r=t[1];return pv.useEffect((function(){OT+=1;var e="".concat(DT,"-").concat(OT);r("rc-menu-uuid-".concat(e))}),[]),n}(be),f="rtl"===he,m=Va(Al(Oe,{value:je,postState:function(e){return e||YT}}),2),h=m[1],b=function(e,t){function n(){h(e),null==et||et(e)}arguments.length>1&&void 0!==t&&t?ES.flushSync(n):n()},y=Va(pv.useState(g=m[0]),2),v=y[0],_=y[1],w=pv.useRef(!1),k=Va(pv.useMemo((function(){return"inline"!==ve&&"vertical"!==ve||!_e?[ve,!1]:["vertical",_e]}),[ve,_e]),2),S=k[1],C="inline"===(x=k[0]),E=Va(pv.useState(x),2),D=E[0],O=E[1],$=(j=Va(pv.useState(S),2))[0],P=j[1],pv.useEffect((function(){O(x),P(S),w.current&&(C?h(v):b(YT))}),[x,S]),N=Va(pv.useState(0),2),I=N[1],A=(T=N[0])>=s.length-1||"horizontal"!==D||ke,pv.useEffect((function(){C&&_(g)}),[g]),pv.useEffect((function(){return w.current=!0,function(){w.current=!1}}),[]),R=function(){var e=Va(pv.useState({}),2)[1],t=pv.useRef(new Map),n=pv.useRef(new Map),r=Va(pv.useState([]),2),o=r[0],i=r[1],a=pv.useRef(0),s=pv.useRef(!1),l=pv.useCallback((function(r,o){var i,l,c=ST(o);n.current.set(c,r),t.current.set(r,c),a.current+=1,i=a.current,l=function(){i===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=pv.useCallback((function(e,r){var o=ST(r);n.current.delete(o),t.current.delete(e)}),[]),u=pv.useCallback((function(e){i(e)}),[]),d=pv.useCallback((function(e,n){var r=t.current.get(e)||"",i=CT(r);return n&&o.includes(i[0])&&i.unshift(ET),i}),[o]),p=pv.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),f=pv.useCallback((function(e){var r="".concat(t.current.get(e)).concat(xT),o=new Set;return ka(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return pv.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:d,getKeys:function(){var e=ka(t.current.keys());return o.length&&e.push(ET),e},getSubPathKeys:f}}(),L=R.refreshOverflowKeys,z=R.isSubPathKey,B=R.getKeyPath,H=R.getKeys,U=R.getSubPathKeys,W=pv.useMemo((function(){return{registerPath:F,unregisterPath:M}}),[F=R.registerPath,M=R.unregisterPath]),V=pv.useMemo((function(){return{isSubPathKey:z}}),[z]),pv.useEffect((function(){L(A?YT:s.slice(T+1).map((function(e){return e.key})))}),[T,A]),G=Va(Al($e||Pe&&(null===(n=s[0])||void 0===n?void 0:n.key),{value:$e}),2),q=G[0],X=G[1],K=jd((function(e){X(e)})),Y=jd((function(){X(void 0)})),pv.useImperativeHandle(t,(function(){return{list:d.current,focus:function(e){var t,n,r,o,i=null!=q?q:null===(t=s.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=d.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(wd(p,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}})),Q=Va(Al(Re||[],{value:Fe,postState:function(e){return Array.isArray(e)?e:null==e?YT:[e]}}),2),J=Q[0],Z=Q[1],ee=function(e){var t,n,r,o;Te&&(n=J.includes(t=e.key),r=Ae?n?J.filter((function(e){return e!==t})):[].concat(ka(J),[t]):[t],Z(r),o=Sa(Sa({},e),{},{selectedKeys:r}),n?null==Le||Le(o):null==Me||Me(o)),!Ae&&g.length&&"inline"!==D&&b(YT)},te=jd((function(e){null==Ze||Ze(Td(e)),ee(e)})),ne=jd((function(e,t){var n,r=g.filter((function(t){return t!==e}));t?r.push(e):"inline"!==D&&(n=U(e),r=r.filter((function(e){return!n.has(e)}))),Pa(g,r,!0)||b(r,!0)})),re=function(e,t,n,r,o,i,a,s,l,c){var u,d=pv.useRef(),p=pv.useRef();return p.current=t,u=function(){gj.cancel(d.current)},pv.useEffect((function(){return function(){u()}}),[]),function(f){var m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j=f.which;if([].concat(kT,[yT,vT,_T,wT]).includes(j)){if((b=function(){return m=new Set,g=new Map,h=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(wd(r,e),"']"));t&&(m.add(t),h.set(t,e),g.set(e,t))})),m})(),y=g.get(t),v=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y,m),_=h.get(v),w=function(e,t,n,r){var o,i,a,s,l,c,u,d="prev",p="next",f="children",m="parent";if("inline"===e&&r===yT)return{inlineTrigger:!0};switch(Ci(o={},hT,d),Ci(o,bT,p),l=o,Ci(i={},mT,n?p:d),Ci(i,gT,n?d:p),Ci(i,bT,f),Ci(i,yT,f),c=i,Ci(a={},hT,d),Ci(a,bT,p),Ci(a,yT,f),Ci(a,vT,m),Ci(a,mT,n?f:m),Ci(a,gT,n?m:f),null===(s={inline:l,horizontal:c,vertical:u=a,inlineSub:l,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case d:return{offset:-1,sibling:!0};case p:return{offset:1,sibling:!0};case m:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===a(_,!0).length,n,j),!w&&j!==_T&&j!==wT)return;(kT.includes(j)||[_T,wT].includes(j))&&f.preventDefault(),k=function(e){var t,n,r;e&&(t=e,null!=(n=e.querySelector("a"))&&n.getAttribute("href")&&(t=n),r=h.get(e),s(r),u(),d.current=gj((function(){p.current===r&&t.focus()})))},[_T,wT].includes(j)||w.sibling||!v?(C=Dd(x=v&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(v):o.current,m),S=j===_T?C[0]:j===wT?C[C.length-1]:Od(x,m,v,w.offset),k(S)):w.inlineTrigger?l(_):w.offset>0?(l(_,!0),u(),d.current=gj((function(){var e,t;b(),e=v.getAttribute("aria-controls"),t=Od(document.getElementById(e),m),k(t)}),5)):w.offset<0&&(E=a(_,!0),O=g.get(D=E[E.length-2]),l(D,!1),k(O))}null==c||c(f)}}(D,q,f,p,d,H,B,X,(function(e,t){var n=null!=t?t:!g.includes(e);ne(e,n)}),tt),pv.useEffect((function(){u(!0)}),[]),oe=pv.useMemo((function(){return{_internalRenderMenuItem:o,_internalRenderSubMenuItem:i}}),[o,i]),ie="horizontal"!==D||ke?s:s.map((function(e,t){return pv.createElement(xd,{key:e.key,overflowDisabled:t>T},e)})),ae=pv.createElement(ZP,fa({id:be,ref:d,prefixCls:"".concat(le,"-overflow"),component:"ul",itemComponent:F4,className:xZ(le,"".concat(le,"-root"),"".concat(le,"-").concat(D),de,(r={},Ci(r,"".concat(le,"-inline-collapsed"),$),Ci(r,"".concat(le,"-rtl"),f),r),ce),dir:he,style:ue,role:"menu",tabIndex:fe,data:ie,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?s.slice(-t):null;return pv.createElement(Ld,{eventKey:ET,title:Ye,disabled:A,internalPopupClose:0===t,popupClassName:Qe},n)},maxCount:"horizontal"!==D||ke?ZP.INVALIDATE:ZP.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){I(e)},onKeyDown:re},a)),pv.createElement(fT.Provider,{value:oe},pv.createElement(aT.Provider,{value:p},pv.createElement(xd,{prefixCls:le,rootClassName:ce,mode:D,openKeys:g,rtl:f,disabled:we,motion:c?He:null,defaultMotions:c?Ue:null,activeKey:q,onActive:K,onInactive:Y,selectedKeys:J,inlineIndent:Be,subMenuOpenDelay:Se,subMenuCloseDelay:Ee,forceSubMenuRender:De,builtinPlacements:Ge,triggerSubMenuAction:Ve,getPopupContainer:Je,itemIcon:qe,expandIcon:Xe,onItemClick:te,onOpenChange:ne},pv.createElement(pT.Provider,{value:V},ae),pv.createElement("div",{style:{display:"none"},"aria-hidden":!0},pv.createElement(uT.Provider,{value:W},s)))))}))).Item=F4,QT.SubMenu=Ld,QT.ItemGroup=zd,QT.Divider=Bd,globalThis&&globalThis;const M4=pv.createContext({});JT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:r}=e,o=JT(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=pv.useContext(KZ),a=i("menu",t),s=xZ({[`${a}-item-divider-dashed`]:!!r},n);return pv.createElement(Bd,Object.assign({className:s},o))},z4=pv.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),B4=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=pv.useContext(z4),{siderCollapsed:p}=pv.useContext(M4);let f=i;void 0===i?f=l?r:"":!1===i&&(f="");const m={title:f};p||d||(m.title=null,m.open=!1);const g=Ls(r).length;let h=pv.createElement(F4,Object.assign({},Qs(e,["title","icon","danger"]),{className:xZ({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof i?i:void 0}),sc(o,{className:xZ(T0(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=pv.createElement("span",{className:`${s}-title-content`},r);return(!o||T0(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?pv.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(h=pv.createElement(A4,Object.assign({},m,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),h)),h},H4=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=pv.useContext(z4),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Cd();let d;if(r){const e=T0(o)&&"span"===o.type;d=pv.createElement(pv.Fragment,null,sc(r,{className:xZ(T0(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:pv.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?pv.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):pv.createElement("span",{className:`${s}-title-content`},o);const p=pv.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]);return pv.createElement(z4.Provider,{value:p},pv.createElement(Ld,Object.assign({},Qs(e,["icon"]),{title:d,popupClassName:xZ(s,n,`${s}-${i||c}`)})))};globalThis&&globalThis;const U4=pv.createContext(null);ZT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${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"}}}},V4=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},G4=e=>Object.assign({},t0(e)),q4=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:b,lineType:y,colorSplit:v,itemDisabledColor:_,dangerItemColor:w,dangerItemHoverColor:k,dangerItemSelectedColor:x,dangerItemActiveBg:S,dangerItemSelectedBg:C,itemHoverBg:E,itemActiveBg:D,menuSubMenuBg:O,horizontalItemSelectedColor:j,horizontalItemSelectedBg:$,horizontalItemBorderRadius:P,horizontalItemHoverBg:N,popupBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},G4(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !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:E},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:C}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},G4(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:$,"&:hover":{backgroundColor:$},"&::after":{borderBottomWidth:c,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${v}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${f}`,`opacity ${h} ${f}`].join(",")}}}}}},X4=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}},K4=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},X4(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},X4(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,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 ${s} ${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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${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% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:`${r}px`,"+ 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:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},QZ),{paddingInline:f})}}]},Y4=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Q4=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,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} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},J4=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:h,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:v}=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({},JZ(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${s}px ${l}px`,fontSize:v,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${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:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Y4(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\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},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},Y4(e)),Q4(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Q4(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};eI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const o=pv.useContext(U4),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=pv.useContext(KZ),u=a(),{prefixCls:d,className:p,style:f,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,items:v,children:_,rootClassName:w,mode:k,selectable:x,onClick:S,overflowedIndicatorPopupClassName:C}=e,E=Qs(eI(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),D=Vd(v)||_;null===(n=i.validator)||void 0===n||n.call(i,{mode:k});const O=Nl((function(){var e;null==S||S.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),j=i.mode||k,$=null!=x?x:i.selectable,P=pv.useMemo((()=>void 0!==y?y:b),[b,y]),N={horizontal:{motionName:`${u}-slide-up`},inline:X1(u),other:{motionName:`${u}-zoom-big`}},T=a("menu",d||i.prefixCls),[I,A]=((e,t)=>Ml("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:p,darkDangerItemSelectedBg:f,darkItemHoverBg:m,darkGroupTitleColor:g,darkItemHoverColor:h,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:_}=e,w=a/7*5,k=Rl(e,{menuArrowSize:w,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*w+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),x=Rl(k,{itemColor:s,itemHoverColor:h,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:y,dangerItemSelectedColor:v,dangerItemActiveBg:_,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[J4(k),W4(k),K4(k),q4(k,"light"),q4(x,"dark"),V4(k),f5(k),J2(k,"slide-up"),J2(k,"slide-down"),p5(k,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f,controlHeightLG:m,lineHeight:g,colorBgElevated:h,marginXXS:b,padding:y,fontSize:v,controlHeightSM:_,fontSizeLG:w,colorTextLightSolid:k,colorErrorHover:x}=e,S=new kj(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:g,collapsedWidth:2*m,popupBg:h,itemMarginBlock:b,itemPaddingInline:y,horizontalLineHeight:1.15*m+"px",iconSize:v,iconMarginInlineEnd:_-v,collapsedIconSize:w,groupTitleFontSize:v,darkItemDisabledColor:new kj(k).setAlpha(.25).toRgbString(),darkItemColor:S,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:S,darkItemHoverColor:k,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:n}}),{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"]]})(e))(T,!o),R=xZ(`${T}-${m}`,null==c?void 0:c.className,p);let F;if("function"==typeof g)F=g;else{const e=g||i.expandIcon;F=sc(e,{className:xZ(`${T}-submenu-expand-icon`,null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.className)})}const M=pv.useMemo((()=>({prefixCls:T,inlineCollapsed:P||!1,direction:l,firstLevel:!0,theme:m,mode:j,disableMenuItemTitleTooltip:h})),[T,P,l,h,m]);return I(pv.createElement(U4.Provider,{value:null},pv.createElement(z4.Provider,{value:M},pv.createElement(QT,Object.assign({getPopupContainer:s,overflowedIndicator:pv.createElement(o2,null),overflowedIndicatorPopupClassName:xZ(T,`${T}-${m}`,C),mode:j,selectable:$,onClick:O},E,{inlineCollapsed:P,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:R,prefixCls:T,direction:l,defaultMotions:N,expandIcon:F,ref:t,rootClassName:xZ(w,A)}),D))))})),e3=pv.forwardRef(((e,t)=>{const n=pv.useRef(null),r=pv.useContext(M4);return pv.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),pv.createElement(Z4,Object.assign({ref:n},e,r))}));e3.Item=B4,e3.SubMenu=H4,e3.Divider=L4,e3.ItemGroup=zd;const t3=e3,n3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),r3=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),o3=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),i3=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},r3(Rl(e,{inputBorderHoverColor:e.colorBorder})))}),a3=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},s3=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),l3=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},o3(Rl(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},o3(Rl(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},c3=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},n3(e.colorTextPlaceholder)),{"&:hover":Object.assign({},r3(e)),"&:focus, &-focused":Object.assign({},o3(e)),"&-disabled, &[disabled]":Object.assign({},i3(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},a3(e)),"&-sm":Object.assign({},s3(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),u3=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({},a3(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},s3(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 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${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":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",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.lineWidth,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":{zIndex:1},"&: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.lineWidth,[`${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}}}})}},d3=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},JZ(e)),c3(e)),l3(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},p3=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},f3=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c3(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},r3(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),p3(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),l3(e,`${t}-affix-wrapper`))}},m3=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},JZ(e)),u3(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},i3(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}}}})}},g3=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,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}}}}},h3=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},b3=Ml("Input",(e=>{const t=Gd(e);return[d3(t),h3(t),f3(t),m3(t),g3(t),Dc(t)]})),y3=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=xZ({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=xZ({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=pv.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return pv.createElement("span",{className:xZ(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},v3=new $O("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_3=e=>({height:e,lineHeight:`${e}px`}),w3=e=>Object.assign({width:e},_3(e)),k3=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:v3,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),x3=e=>Object.assign({width:5*e,minWidth:5*e},_3(e)),S3=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},w3(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},w3(o)),[`${t}${t}-sm`]:Object.assign({},w3(i))}},C3=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},x3(t)),[`${r}-lg`]:Object.assign({},x3(o)),[`${r}-sm`]:Object.assign({},x3(i))}},E3=e=>Object.assign({width:e},_3(e)),D3=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},E3(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},E3(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},O3=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},j3=e=>Object.assign({width:2*e,minWidth:2*e},_3(e)),$3=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=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:2*r,minWidth:2*r},j3(r))},O3(e,r,n)),{[`${n}-lg`]:Object.assign({},j3(o))}),O3(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},j3(i))}),O3(e,i,`${n}-sm`))},P3=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:m,titleHeight:g,blockRadius:h,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:v}=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:d},w3(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},w3(c)),[`${n}-sm`]:Object.assign({},w3(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:v}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},$3(e)),S3(e)),C3(e)),D3(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},k3(e))}}},N3=Ml("Skeleton",(e=>{const{componentCls:t}=e,n=Rl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[P3(n)]}),(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"]]}),T3=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:i}=e,a=ka(Array(i)).map(((e,n)=>pv.createElement("li",{key:n,style:{width:t(n)}})));return pv.createElement("ul",{className:xZ(n,r),style:o},a)},I3=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return pv.createElement("h3",{className:xZ(t,n),style:Object.assign({width:r},o)})},A3=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:p,direction:f,skeleton:m}=pv.useContext(KZ),g=p("skeleton",t),[h,b]=N3(g);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let a,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),qd(s));a=pv.createElement("div",{className:`${g}-header`},pv.createElement(y3,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),qd(l));r=pv.createElement(I3,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),qd(c));o=pv.createElement(T3,Object.assign({},n))}p=pv.createElement("div",{className:`${g}-content`},r,o)}const y=xZ(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===f,[`${g}-round`]:d},null==m?void 0:m.className,r,o,b);return h(pv.createElement("div",{className:y,style:Object.assign(Object.assign({},null==m?void 0:m.style),i)},a,p))}return void 0!==a?a:null};A3.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=pv.useContext(KZ),l=s("skeleton",t),[c,u]=N3(l),d=Qs(e,["prefixCls"]),p=xZ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(pv.createElement("div",{className:p},pv.createElement(y3,Object.assign({prefixCls:`${l}-button`,size:a},d))))},A3.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=pv.useContext(KZ),l=s("skeleton",t),[c,u]=N3(l),d=Qs(e,["prefixCls","className"]),p=xZ(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(pv.createElement("div",{className:p},pv.createElement(y3,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},A3.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=pv.useContext(KZ),l=s("skeleton",t),[c,u]=N3(l),d=Qs(e,["prefixCls"]),p=xZ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(pv.createElement("div",{className:p},pv.createElement(y3,Object.assign({prefixCls:`${l}-input`,size:a},d))))},A3.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=pv.useContext(KZ),s=a("skeleton",t),[l,c]=N3(s),u=xZ(s,`${s}-element`,{[`${s}-active`]:i},n,r,c);return l(pv.createElement("div",{className:u},pv.createElement("div",{className:xZ(`${s}-image`,n),style:o},pv.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},pv.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:`${s}-image-path`})))))},A3.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=pv.useContext(KZ),l=s("skeleton",t),[c,u]=N3(l),d=xZ(l,`${l}-element`,{[`${l}-active`]:i},u,n,r),p=null!=a?a:pv.createElement(e2,null);return c(pv.createElement("div",{className:d},pv.createElement("div",{className:xZ(`${l}-image`,n),style:o},p)))};const R3=A3,F3=pv.createContext(null);tI=pv.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return pv.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:xZ(n,a&&"".concat(n,"-active"),r),ref:t},l)})),nI=["key","forceRender","style","className"],rI={width:0,height:0,left:0,top:0},oI=.1,iI=.01,aI=20,sI=Math.pow(.995,aI),lI={width:0,height:0,left:0,top:0,right:0},cI="TABS_DQ";const M3=pv.forwardRef(ep);uI=pv.forwardRef((function(e,t){var n,r,o=e.position,i=e.prefixCls,a=e.extra;return a?(r={},"object"!==xi(a)||pv.isValidElement(a)?r.right=a:r=a,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?pv.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null):null}));const L3=pv.memo(pv.forwardRef(tp),(function(e,t){return t.tabMoving}));dI=function(e){var t=e.current||{},n=t.offsetWidth,r=t.offsetHeight;return[void 0===n?0:n,void 0===r?0:r]},pI=function(e,t){return e[t?0:1]};const z3=pv.forwardRef(rp);fI=["renderTabBar"],mI=["label","key"],gI=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],hI=0,bI=pv.forwardRef(ip);const B3={motionAppear:!1,motionEnter:!0,motionLeave:!0};yI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{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}`}}}}},[J2(e,"slide-up"),J2(e,"slide-down")]]},U3=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},W3=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},JZ(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:`${r}px 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({},QZ),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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.colorTextDescription,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"}}})}})}},V3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,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}px`,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:1.25*e.controlHeight,[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},G3=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},q3=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},n0(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:i}}}},X3=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},K3=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},JZ(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",whiteSpace:"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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 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}},n0(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),q3(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Y3=Ml("Tabs",(e=>{const t=Rl(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[G3(t),X3(t),V3(t),W3(t),U3(t),K3(t),H3(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:e.controlHeightLG,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2})));vI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:p,style:f}=e,m=vI(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:g,moreIcon:h=pv.createElement(o2,null)}=m,{direction:b,tabs:y,getPrefixCls:v,getPopupContainer:_}=pv.useContext(KZ),w=v("tabs",g),[k,x]=Y3(w);let S;"editable-card"===t&&(S={onEdit:(e,t)=>{let{key:n,event:r}=t;null==i||i("add"===e?r:n,e)},removeIcon:pv.createElement(O0,null),addIcon:l||pv.createElement(u2,null),showAdd:!0!==a});const C=v(),E=function(e,t){return e||function(e){return e.filter((e=>e))}(Ls(t).map((e=>{if(pv.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=yI(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(d,u),D=function(e,t){let n,r=arguments.length>1&&void 0!==t?t:{inkBar:!0,tabPane:!1};return n=!1===r?{inkBar:!1,tabPane:!1}:!0===r?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof r?r:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},B3),{motionName:Y1(e,"switch")})),n}(w,p),O=t1(o),j=Object.assign(Object.assign({},null==y?void 0:y.style),f);return k(pv.createElement(bI,Object.assign({direction:b,getPopupContainer:_,moreTransitionName:`${C}-slide-up`},m,{items:E,className:xZ({[`${w}-${O}`]:O,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:"editable-card"===t,[`${w}-centered`]:s},null==y?void 0:y.className,n,r,x),popupClassName:xZ(c,x),style:j,editable:S,moreIcon:h,prefixCls:w,animated:D})))};Q3.TabPane=()=>null;const J3=Q3,Z3=pv.createContext({}),e8=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"}}}},t8=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},n8=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"},o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o})(e,t),r8=Ml("Grid",(e=>[e8(e)])),o8=Ml("Grid",(e=>{const t=Rl(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[t8(t),n8(t,""),n8(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},n8(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));_I=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=pv.useContext(KZ),{gutter:o,wrap:i,supportFlexGap:a}=pv.useContext(Z3),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:p,className:f,children:m,flex:g,style:h}=e,b=_I(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",s),[v,_]=o8(y);let w={};i8.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete b[t],w=Object.assign(Object.assign({},w),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${y}-rtl`]:"rtl"===r})}));const k=xZ(y,{[`${y}-${l}`]:void 0!==l,[`${y}-order-${c}`]:c,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${p}`]:p},f,w,_),x={};if(o&&o[0]>0){const e=o[0]/2;x.paddingLeft=e,x.paddingRight=e}if(o&&o[1]>0&&!a){const e=o[1]/2;x.paddingTop=e,x.paddingBottom=e}return g&&(x.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(g),!1!==i||x.minWidth||(x.minWidth=0)),v(pv.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign({},x),h),className:k,ref:t}),m))})),s8=()=>{const[e,t]=pv.useState(!1);return pv.useEffect((()=>{t((()=>{if(!_2())return!1;if(void 0!==w2)return w2;const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));const t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),w2=1===e.scrollHeight,document.body.removeChild(t),w2})())}),[]),e};wI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=wI(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:p}=pv.useContext(KZ),[f,m]=pv.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,h]=pv.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=ap(o,g),y=ap(r,g),v=s8(),_=pv.useRef(l),w=fd();pv.useEffect((()=>{const e=w.subscribe((e=>{h(e);const t=_.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&m(e)}));return()=>w.unsubscribe(e)}),[]);const k=d("row",n),[x,S]=r8(k),C=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?C[0]/-2:void 0,j=null!=C[1]&&C[1]>0?C[1]/-2:void 0;O&&(D.marginLeft=O,D.marginRight=O),v?[,D.rowGap]=C:j&&(D.marginTop=j,D.marginBottom=j);const[$,P]=C,N=pv.useMemo((()=>({gutter:[$,P],wrap:c,supportFlexGap:v})),[$,P,c,v]);return x(pv.createElement(Z3.Provider,{value:N},pv.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},D),a),ref:t}),s)))}));(kI=zJ.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=Va(zJ.useState(l||o),2),d=u[0],p=u[1];return zJ.useEffect((function(){(o||l)&&p(!0)}),[o,l]),d?zJ.createElement("div",{ref:t,className:xZ("".concat(r,"-content"),(n={},Ci(n,"".concat(r,"-content-active"),l),Ci(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},zJ.createElement("div",{className:"".concat(r,"-content-box")},s)):null}))).displayName="PanelContent",xI=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],SI=zJ.forwardRef((function(e,t){var n,r,o,i,a=e.showArrow,s=void 0===a||a,l=e.headerClass,c=e.isActive,u=e.onItemClick,d=e.forceRender,p=e.className,f=e.prefixCls,m=e.collapsible,g=e.accordion,h=e.panelKey,b=e.extra,y=e.header,v=e.expandIcon,_=e.openMotion,w=e.destroyInactivePanel,k=e.children,x=Ei(e,xI),S="disabled"===m,C="header"===m,E="icon"===m,D=null!=b&&"boolean"!=typeof b,O=function(){null==u||u(h)},j="function"==typeof v?v(e):zJ.createElement("i",{className:"arrow"});return j&&(j=zJ.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(m)?O:void 0},j)),o=xZ((Ci(n={},"".concat(f,"-item"),!0),Ci(n,"".concat(f,"-item-active"),c),Ci(n,"".concat(f,"-item-disabled"),S),n),p),i={className:xZ((Ci(r={},"".concat(f,"-header"),!0),Ci(r,"headerClass",l),Ci(r,"".concat(f,"-header-collapsible-only"),C),Ci(r,"".concat(f,"-icon-collapsible-only"),E),r)),"aria-expanded":c,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==S$.ENTER&&e.which!==S$.ENTER||O()}},C||E||(i.onClick=O,i.role=g?"tab":"button",i.tabIndex=S?-1:0),zJ.createElement("div",fa({},x,{ref:t,className:o}),zJ.createElement("div",i,s&&j,zJ.createElement("span",{className:"".concat(f,"-header-text"),onClick:"header"===m?O:void 0},y),D&&zJ.createElement("div",{className:"".concat(f,"-extra")},b)),zJ.createElement(p0,fa({visible:c,leavedClassName:"".concat(f,"-content-hidden")},_,{forceRender:d,removeOnLeave:w}),(function(e,t){return zJ.createElement(kI,{ref:t,prefixCls:f,className:e.className,style:e.style,isActive:c,forceRender:d,role:g?"tabpanel":void 0},k)})))})),CI=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],EI=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,d=e.children,p=e.label,f=e.key,m=e.collapsible,g=e.onItemClick,h=e.destroyInactivePanel,b=Ei(e,CI),y=String(null!=f?f:t),v=null!=m?m:o,_=null!=h?h:i;return u=r?s[0]===y:s.indexOf(y)>-1,zJ.createElement(SI,fa({},b,{prefixCls:n,key:y,panelKey:y,isActive:u,accordion:r,openMotion:l,expandIcon:c,header:p,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==g||g(e))},destroyInactivePanel:_}),d)}))},DI=function(e,t,n){var r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_;return e?(r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=(p=e.props).header,m=p.headerClass,g=p.destroyInactivePanel,h=p.collapsible,b=p.onItemClick,y=o?l[0]===d:l.indexOf(d)>-1,_={key:d,panelKey:d,header:f,headerClass:m,isActive:y,prefixCls:r,destroyInactivePanel:null!=g?g:a,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==v&&(s(e),null==b||b(e))},expandIcon:u,collapsible:v=null!=h?h:i},"string"==typeof e.type?e:(Object.keys(_).forEach((function(e){void 0===_[e]&&delete _[e]})),zJ.cloneElement(e,_))):null};const c8=Object.assign(zJ.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.children,u=e.collapsible,d=e.openMotion,p=e.expandIcon,f=e.activeKey,m=e.defaultActiveKey,g=e.onChange,h=e.items,b=xZ(o,e.className),y=Va(Al([],{value:f,onChange:function(e){return null==g?void 0:g(e)},defaultValue:m,postState:sp}),2),v=y[0],_=y[1];return $a(!c,"`children` will be removed in next major version. Please use `items` instead."),n=function(e,t,n){return Array.isArray(e)?EI(e,n):Ls(t).map((function(e,t){return DI(e,t,n)}))}(h,c,{prefixCls:o,accordion:l,openMotion:d,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:function(e){return _((function(){return l?v[0]===e?[]:[e]:v.indexOf(e)>-1?v.filter((function(t){return t!==e})):[].concat(ka(v),[e])}))},activeKey:v}),zJ.createElement("div",{ref:t,className:b,style:s,role:l?"tablist":void 0},n)})),{Panel:SI}),u8=pv.forwardRef(((e,t)=>{const{getPrefixCls:n}=pv.useContext(KZ),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=xZ({[`${a}-no-arrow`]:!i},o);return pv.createElement(c8.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))})),d8=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:p,colorText:f,colorTextHeading:m,colorTextDisabled:g,fontSize:h,fontSizeLG:b,lineHeight:y,marginSM:v,paddingSM:_,paddingLG:w,paddingXS:k,motionDurationSlow:x,fontSizeIcon:S}=e,C=`${u}px ${d} ${p}`;return{[t]:Object.assign(Object.assign({},JZ(e)),{backgroundColor:i,border:C,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:C,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:_,color:m,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*y,display:"flex",alignItems:"center",paddingInlineEnd:v,marginInlineStart:r-_},[`${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:S,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:C,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:k,[`> ${t}-expand-icon`]:{marginInlineStart:_-k}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},"&-large":{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:b*y,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},p8=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},f8=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\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:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},m8=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}}}}}},g8=Ml("Collapse",(e=>{const t=Rl(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[d8(t),f8(t),m8(t),p8(t),f5(t)]})),h8=pv.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=pv.useContext(KZ),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:p="start",children:f,expandIcon:m}=e,g=t1((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),h=n("collapse",i),b=n(),[y,v]=g8(h),_=pv.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),w=xZ(`${h}-icon-position-${_}`,{[`${h}-borderless`]:!c,[`${h}-rtl`]:"rtl"===r,[`${h}-ghost`]:!!u,[`${h}-${g}`]:"middle"!==g},null==o?void 0:o.className,a,s,v),k=Object.assign(Object.assign({},X1(b)),{motionAppear:!1,leavedClassName:`${h}-content-hidden`}),x=pv.useMemo((()=>f?Ls(f).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return sc(e,Object.assign(Object.assign({},Qs(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[f]);return y(pv.createElement(c8,Object.assign({ref:t,openMotion:k},Qs(e,["rootClassName"]),{expandIcon:function(e){let t=arguments.length>0&&void 0!==e?e:{};const n=m?m(t):pv.createElement(m2,{rotate:t.isActive?90:void 0});return sc(n,(()=>({className:xZ(n.props.className,`${h}-arrow`)})))},prefixCls:h,className:w,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),x))})),b8=Object.assign(h8,{Panel:u8}),y8=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},JZ(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},v8=Ml("Divider",(e=>{const t=Rl(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[y8(t)]}),{sizePaddingEdgeHorizontal:0});OI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:r}=pv.useContext(KZ),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:p,style:f}=e,m=OI(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[h,b]=v8(g),y=!!u,v="left"===a&&null!=s,_="right"===a&&null!=s,w=xZ(g,null==r?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:y,[`${g}-with-text${a.length>0?`-${a}`:a}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!p,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:v,[`${g}-no-default-orientation-margin-right`]:_},l,c),k=pv.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),x=Object.assign(Object.assign({},v&&{marginLeft:k}),_&&{marginRight:k});return h(pv.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},m,{role:"separator"}),u&&"vertical"!==i&&pv.createElement("span",{className:`${g}-inner-text`,style:x},u)))};jI=function(){function e(t){var n,r,o,i;Oi(this,e),Ci(this,"origin",""),Ci(this,"negative",void 0),Ci(this,"integer",void 0),Ci(this,"decimal",void 0),Ci(this,"decimalLen",void 0),Ci(this,"empty",void 0),Ci(this,"nan",void 0),cp(t)?this.empty=!0:(this.origin=String(t),"-"===t||Number.isNaN(t)?this.nan=!0:(dp(n=t)&&(n=Number(n)),mp(n="string"==typeof n?n:fp(n))?(r=up(n),this.negative=r.negative,o=r.trimStr.split("."),this.integer=BigInt(o[0]),i=o[1]||"0",this.decimal=BigInt(i),this.decimalLen=i.length):this.nan=!0))}return $i(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,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),s=up(i),l=s.trimStr,c="".concat(s.negativeStr).concat(l.padStart(a+1,"0"));return new e("".concat(c.slice(0,-a),".").concat(c.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(e){return arguments.length>0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":up("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),$I=function(){function e(t){Oi(this,e),Ci(this,"origin",""),Ci(this,"number",void 0),Ci(this,"empty",void 0),cp(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return $i(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){var n,r,o;return this.isInvalidate()?new e(t):(n=Number(t),Number.isNaN(n)?this:(r=this.number+n)>Number.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):rNumber.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):n0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":fp(this.number)}}]),e}(),PI=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,m,g=e.inputElement,h=e.prefixCls,b=e.prefix,y=e.suffix,v=e.addonBefore,_=e.addonAfter,w=e.className,k=e.style,x=e.disabled,S=e.readOnly,C=e.focused,E=e.triggerFocus,D=e.allowClear,O=e.value,j=e.handleReset,$=e.hidden,P=e.classes,N=e.classNames,T=e.dataAttrs,I=e.styles,A=e.components,R=(null==A?void 0:A.affixWrapper)||"span",F=(null==A?void 0:A.groupWrapper)||"span",M=(null==A?void 0:A.wrapper)||"span",L=(null==A?void 0:A.groupAddon)||"span",z=pv.useRef(null),B=pv.cloneElement(g,{value:O,hidden:$,className:xZ(null===(t=g.props)||void 0===t?void 0:t.className,!yp(e)&&!bp(e)&&w)||null,style:Sa(Sa({},null===(n=g.props)||void 0===n?void 0:n.style),yp(e)||bp(e)?{}:k)});return yp(e)&&(o="".concat(h,"-affix-wrapper"),i=xZ(o,(Ci(r={},"".concat(o,"-disabled"),x),Ci(r,"".concat(o,"-focused"),C),Ci(r,"".concat(o,"-readonly"),S),Ci(r,"".concat(o,"-input-with-clear-btn"),y&&D&&O),r),!bp(e)&&w,null==P?void 0:P.affixWrapper,null==N?void 0:N.affixWrapper),a=(y||D)&&zJ.createElement("span",{className:xZ("".concat(h,"-suffix"),null==N?void 0:N.suffix),style:null==I?void 0:I.suffix},D?(p=!x&&!S&&O,f="".concat(h,"-clear-icon"),m="object"===xi(D)&&null!=D&&D.clearIcon?D.clearIcon:"✖",zJ.createElement("span",{onClick:j,onMouseDown:function(e){return e.preventDefault()},className:xZ(f,(d={},Ci(d,"".concat(f,"-hidden"),!p),Ci(d,"".concat(f,"-has-suffix"),!!y),d)),role:"button",tabIndex:-1},m)):null,y),B=zJ.createElement(R,fa({className:i,style:bp(e)?void 0:k,hidden:!bp(e)&&$,onClick:function(e){var t;null!==(t=z.current)&&void 0!==t&&t.contains(e.target)&&(null==E||E())}},null==T?void 0:T.affixWrapper,{ref:z}),b&&zJ.createElement("span",{className:xZ("".concat(h,"-prefix"),null==N?void 0:N.prefix),style:null==I?void 0:I.prefix},b),pv.cloneElement(g,{value:O,hidden:null}),a)),bp(e)?(s="".concat(h,"-group"),l="".concat(s,"-addon"),c=xZ("".concat(h,"-wrapper"),s,null==P?void 0:P.wrapper),u=xZ("".concat(h,"-group-wrapper"),w,null==P?void 0:P.group),zJ.createElement(F,{className:u,style:k,hidden:$},zJ.createElement(M,{className:c},v&&zJ.createElement(L,{className:l},v),pv.cloneElement(B,{hidden:null}),_&&zJ.createElement(L,{className:l},_)))):B},NI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],TI=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.autoComplete,u=e.onChange,d=e.onFocus,p=e.onBlur,f=e.onPressEnter,m=e.onKeyDown,g=e.prefixCls,h=void 0===g?"rc-input":g,b=e.disabled,y=e.htmlSize,v=e.className,_=e.maxLength,w=e.suffix,k=e.showCount,x=e.type,S=void 0===x?"text":x,C=e.classes,E=e.classNames,D=e.styles,O=Ei(e,NI),j=Va(Al(e.defaultValue,{value:e.value}),2),$=j[0],P=j[1],N=Va(pv.useState(!1),2),T=N[0],I=N[1],A=pv.useRef(null),R=function(e){A.current&&_p(A.current,e)};return pv.useImperativeHandle(t,(function(){return{focus:R,blur:function(){var e;null===(e=A.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=A.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=A.current)||void 0===e||e.select()},input:A.current}})),pv.useEffect((function(){I((function(e){return(!e||!b)&&e}))}),[b]),n=function(t){void 0===e.value&&P(t.target.value),A.current&&vp(A.current,t,u)},r=function(e){f&&"Enter"===e.key&&f(e),null==m||m(e)},o=function(e){I(!0),null==d||d(e)},i=function(e){I(!1),null==p||p(e)},a=function(e){P(""),R(),A.current&&vp(A.current,e,u)},s=function(){var t=Qs(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return zJ.createElement("input",fa({autoComplete:c},t,{onChange:n,onFocus:o,onBlur:i,onKeyDown:r,className:xZ(h,Ci({},"".concat(h,"-disabled"),b),null==E?void 0:E.input),style:null==D?void 0:D.input,ref:A,size:y,type:S}))},l=function(){var e,t,n,r=Number(_)>0;return w||k?(t=ka(e=wp($)).length,n="object"===xi(k)?k.formatter({value:e,count:t,maxLength:_}):"".concat(t).concat(r?" / ".concat(_):""),zJ.createElement(zJ.Fragment,null,!!k&&zJ.createElement("span",{className:xZ("".concat(h,"-show-count-suffix"),Ci({},"".concat(h,"-show-count-has-suffix"),!!w),null==E?void 0:E.count),style:Sa({},null==D?void 0:D.count)},n),w)):null},zJ.createElement(PI,fa({},O,{prefixCls:h,className:v,inputElement:s(),handleReset:a,value:wp($),focused:T,triggerFocus:R,suffix:l(),disabled:b,classes:C,classNames:E,styles:D}))})),II=function(){var e=Va(pv.useState(!1),2),t=e[0],n=e[1];return KD((function(){n(H5())}),[]),t},AI=200,RI=600,FI=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],MI=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],LI=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},zI=function(e){var t=gp(e);return t.isInvalidate()?null:t},BI=pv.forwardRef((function(e,t){function n(e,t){ke(ve(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P=e.prefixCls,N=void 0===P?"rc-input-number":P,T=e.className,I=e.style,A=e.min,R=e.max,F=e.step,M=void 0===F?1:F,L=e.defaultValue,z=e.value,B=e.disabled,H=e.readOnly,U=e.upHandler,W=e.downHandler,V=e.keyboard,G=e.controls,q=void 0===G||G,X=e.classNames,K=e.stringMode,Y=e.parser,Q=e.formatter,J=e.precision,Z=e.decimalSeparator,ee=e.onChange,te=e.onInput,ne=e.onPressEnter,re=e.onStep,oe=Ei(e,FI),ie="".concat(N,"-input"),ae=pv.useRef(null),se=Va(pv.useState(!1),2),le=se[0],ce=se[1],ue=pv.useRef(!1),de=pv.useRef(!1),pe=pv.useRef(!1),fe=Va(pv.useState((function(){return gp(null!=z?z:L)})),2),me=fe[0],ge=fe[1],he=pv.useCallback((function(e,t){if(!t)return J>=0?J:Math.max(pp(e),pp(M))}),[J,M]),be=pv.useCallback((function(e){var t,n=String(e);return Y?Y(n):(t=n,Z&&(t=t.replace(Z,".")),t.replace(/[^\w.-]+/g,""))}),[Y,Z]),ye=pv.useRef(""),ve=pv.useCallback((function(e,t){var n,r;return Q?Q(e,{userTyping:t,input:String(ye.current)}):(n="number"==typeof e?fp(e):e,t||(r=he(n,t),mp(n)&&(Z||r>=0)&&(n=hp(n,Z||".",r))),n)}),[Q,he,Z]),_e=Va(pv.useState((function(){var e=null!=L?L:z;return me.isInvalidate()&&["string","number"].includes(xi(e))?Number.isNaN(e)?"":e:ve(me.toString(),!1)})),2),we=_e[0],ke=_e[1];return ye.current=we,o=pv.useMemo((function(){return zI(R)}),[R,J]),i=pv.useMemo((function(){return zI(A)}),[A,J]),a=pv.useMemo((function(){return!(!o||!me||me.isInvalidate())&&o.lessEquals(me)}),[o,me]),s=pv.useMemo((function(){return!(!i||!me||me.isInvalidate())&&me.lessEquals(i)}),[i,me]),E=ae.current,D=le,O=pv.useRef(null),l=[function(){var e,t,n,r,o;try{t=E.selectionEnd,r=(n=E.value).substring(0,e=E.selectionStart),o=n.substring(t),O.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(VQ){}},function(){var e,t,n,r,o,i;if(E&&O.current&&D)try{n=(t=O.current).beforeTxt,r=t.start,o=(e=E.value).length,e.endsWith(t.afterTxt)?o=e.length-O.current.afterTxt.length:e.startsWith(n)?o=n.length:-1!==(i=e.indexOf(n[r-1],r-1))&&(o=i+1),E.setSelectionRange(o,o)}catch(VQ){$a(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(VQ.message))}}],c=Va(l,2),u=c[0],d=c[1],p=function(e){return o&&!e.lessEquals(o)?o:i&&!i.lessEquals(e)?i:null},f=function(e){return!p(e)},m=function(e,t){var r,o,i=e,a=f(i)||i.isEmpty();return i.isEmpty()||t||(i=p(i)||i,a=!0),H||B||!a?me:(r=i.toString(),(o=he(r,t))>=0&&(i=gp(hp(r,".",o)),f(i)||(i=gp(hp(r,".",o,!0)))),i.equals(me)||(void 0===z&&ge(i),null==ee||ee(i.isEmpty()?null:LI(K,i)),void 0===z&&n(i,t)),i)},j=pv.useRef(0),$=function(){gj.cancel(j.current)},pv.useEffect((function(){return $}),[]),g=function(e){$(),j.current=gj((function(){e()}))},h=function e(t){var n;u(),ye.current=t,ke(t),de.current||(n=gp(be(t))).isNaN()||m(n,!0),null==te||te(t),g((function(){var n=t;Y||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},b=function(){de.current=!0},y=function(){de.current=!1,h(ae.current.value)},v=function(e){h(e.target.value)},_=function(e){var t,n,r,o;e&&a||!e&&s||(ue.current=!1,n=gp(pe.current?xp(M):M),e||(n=n.negate()),r=(me||gp(0)).add(n.toString()),o=m(r,!1),null==re||re(LI(K,o),{offset:pe.current?xp(M):M,type:e?"up":"down"}),null===(t=ae.current)||void 0===t||t.focus())},w=function(e){var t=gp(be(we)),r=t;r=t.isNaN()?me:m(t,e),void 0!==z?n(me,!1):r.isNaN()||n(r,!1)},k=function(){ue.current=!0},x=function(e){var t=e.key,n=e.shiftKey;ue.current=!0,pe.current=n,"Enter"===t&&(de.current||(ue.current=!1),w(!1),null==ne||ne(e)),!1!==V&&!de.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(_("Up"===t||"ArrowUp"===t),e.preventDefault())},S=function(){ue.current=!1,pe.current=!1},C=function(){w(!1),ce(!1),ue.current=!1},YD((function(){me.isInvalidate()||n(me,!1)}),[J]),YD((function(){var e,t=gp(z);ge(t),e=gp(be(we)),t.equals(e)&&ue.current&&!Q||n(t,ue.current)}),[z]),YD((function(){Q&&d()}),[we]),pv.createElement("div",{className:xZ(N,null==X?void 0:X.input,T,(r={},Ci(r,"".concat(N,"-focused"),le),Ci(r,"".concat(N,"-disabled"),B),Ci(r,"".concat(N,"-readonly"),H),Ci(r,"".concat(N,"-not-a-number"),me.isNaN()),Ci(r,"".concat(N,"-out-of-range"),!me.isInvalidate()&&!f(me)),r)),style:I,onFocus:function(){ce(!0)},onBlur:C,onKeyDown:x,onKeyUp:S,onCompositionStart:b,onCompositionEnd:y,onBeforeInput:k},q&&pv.createElement(kp,{prefixCls:N,upNode:U,downNode:W,upDisabled:a,downDisabled:s,onStep:_}),pv.createElement("div",{className:"".concat(ie,"-wrap")},pv.createElement("input",fa({autoComplete:"off",role:"spinbutton","aria-valuemin":A,"aria-valuemax":R,"aria-valuenow":me.isInvalidate()?null:me.toString(),step:M},oe,{ref:Bs(ae,t),className:ie,value:we,onChange:v,disabled:B,readOnly:H}))))})),(HI=pv.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,p=e.classNames,f=Ei(e,MI),m=pv.useRef(null);return pv.createElement(PI,{inputElement:pv.createElement(BI,fa({prefixCls:o,disabled:n,classNames:p,ref:Bs(m,t)},f)),className:d,triggerFocus:function(e){m.current&&_p(m.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}))).displayName="InputNumber";const w8=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:p,colorPrimary:f,inputPaddingHorizontal:m,inputPaddingVertical:g,colorBgContainer:h,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:v,controlWidth:_,handleVisible:w}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},JZ(e)),c3(e)),l3(e,t)),{display:"inline-block",width:_,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:v,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},r3(e)),"&-focused":Object.assign({},o3(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},JZ(e)),u3(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:v}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},i3(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},JZ(e)),{width:"100%",padding:`${g}px ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),n3(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:h,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===w?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${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:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${p} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-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:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-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:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},k8=e=>{const{componentCls:t,inputPaddingVertical:n,inputPaddingHorizontal:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},c3(e)),l3(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},r3(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},x8=Ml("InputNumber",(e=>{const t=Gd(e);return[w8(t),k8(t),Dc(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"})));UI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=pv.useContext(KZ),o=pv.useRef(null);pv.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:p,bordered:f=!0,readOnly:m,status:g,controls:h}=e,b=UI(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[v,_]=x8(y),{compactSize:w,compactItemClassnames:k}=a1(y,r);let x=pv.createElement(y2,{className:`${y}-handler-up-inner`}),S=pv.createElement(n2,{className:`${y}-handler-down-inner`});const C="boolean"==typeof h?h:void 0;"object"==typeof h&&(x=void 0===h.upIcon?x:pv.createElement("span",{className:`${y}-handler-up-inner`},h.upIcon),S=void 0===h.downIcon?S:pv.createElement("span",{className:`${y}-handler-down-inner`},h.downIcon));const{hasFeedback:E,status:D,isFormItemInput:O,feedbackIcon:j}=pv.useContext(E2),$=V5(D,g),P=t1((e=>{var t;return null!==(t=null!=s?s:w)&&void 0!==t?t:e})),N=pv.useContext(l0),T=null!=l?l:N,I=xZ({[`${y}-lg`]:"large"===P,[`${y}-sm`]:"small"===P,[`${y}-rtl`]:"rtl"===r,[`${y}-borderless`]:!f,[`${y}-in-form-item`]:O},cd(y,$),k,_),A=`${y}-group`;return v(pv.createElement(HI,Object.assign({ref:o,disabled:T,className:xZ(i,a),upHandler:x,downHandler:S,prefixCls:y,readOnly:m,controls:C,prefix:p,suffix:E&&j,addonAfter:d&&pv.createElement(s1,null,pv.createElement(D2,{override:!0,status:!0},d)),addonBefore:u&&pv.createElement(s1,null,pv.createElement(D2,{override:!0,status:!0},u)),classNames:{input:I},classes:{affixWrapper:xZ(cd(`${y}-affix-wrapper`,$,E),{[`${y}-affix-wrapper-sm`]:"small"===P,[`${y}-affix-wrapper-lg`]:"large"===P,[`${y}-affix-wrapper-rtl`]:"rtl"===r,[`${y}-affix-wrapper-borderless`]:!f},_),wrapper:xZ({[`${A}-rtl`]:"rtl"===r,[`${y}-wrapper-disabled`]:T},_),group:xZ({[`${y}-group-wrapper-sm`]:"small"===P,[`${y}-group-wrapper-lg`]:"large"===P,[`${y}-group-wrapper-rtl`]:"rtl"===r},cd(`${y}-group-wrapper`,$,E),_)}},b)))})),C8=S8;C8._InternalPanelDoNotUseOrYouWillBeFired=e=>pv.createElement(_0,{theme:{components:{InputNumber:{handleVisible:!0}}}},pv.createElement(S8,Object.assign({},e)));const E8=C8;WI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:p,addonBefore:f,className:m,style:g,styles:h,rootClassName:b,onChange:y,classNames:v}=e,_=WI(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:w,direction:k,input:x}=zJ.useContext(KZ),S=w("input",r),C=pv.useRef(null),[E,D]=b3(S),{compactSize:O,compactItemClassnames:j}=a1(S,k),$=t1((e=>{var t;return null!==(t=null!=a?a:O)&&void 0!==t?t:e})),P=zJ.useContext(l0),N=null!=s?s:P,{status:T,hasFeedback:I,feedbackIcon:A}=pv.useContext(E2),R=V5(T,i),F=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!I,M=pv.useRef(F);pv.useEffect((()=>{M.current=F}),[F]);const L=Sp(C,!0),z=(I||u)&&zJ.createElement(zJ.Fragment,null,u,I&&A);let B;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?B=d:d&&(B={clearIcon:zJ.createElement(E0,null)}),E(zJ.createElement(TI,Object.assign({ref:Bs(t,C),prefixCls:S,autoComplete:null==x?void 0:x.autoComplete},_,{disabled:N,onBlur:e=>{L(),null==l||l(e)},onFocus:e=>{L(),null==c||c(e)},style:Object.assign(Object.assign({},null==x?void 0:x.style),g),styles:Object.assign(Object.assign({},null==x?void 0:x.styles),h),suffix:z,allowClear:B,className:xZ(m,b,j,null==x?void 0:x.className),onChange:e=>{L(),null==y||y(e)},addonAfter:p&&zJ.createElement(s1,null,zJ.createElement(D2,{override:!0,status:!0},p)),addonBefore:f&&zJ.createElement(s1,null,zJ.createElement(D2,{override:!0,status:!0},f)),classNames:Object.assign(Object.assign(Object.assign({},v),null==x?void 0:x.classNames),{input:xZ({[`${S}-sm`]:"small"===$,[`${S}-lg`]:"large"===$,[`${S}-rtl`]:"rtl"===k,[`${S}-borderless`]:!o},!F&&cd(S,R),null==v?void 0:v.input,null===(n=null==x?void 0:x.classNames)||void 0===n?void 0:n.input,D)}),classes:{affixWrapper:xZ({[`${S}-affix-wrapper-sm`]:"small"===$,[`${S}-affix-wrapper-lg`]:"large"===$,[`${S}-affix-wrapper-rtl`]:"rtl"===k,[`${S}-affix-wrapper-borderless`]:!o},cd(`${S}-affix-wrapper`,R,I),D),wrapper:xZ({[`${S}-group-rtl`]:"rtl"===k},D),group:xZ({[`${S}-group-wrapper-sm`]:"small"===$,[`${S}-group-wrapper-lg`]:"large"===$,[`${S}-group-wrapper-rtl`]:"rtl"===k,[`${S}-group-wrapper-disabled`]:N},cd(`${S}-group-wrapper`,R,I),D)}})))})),O8=D8;VI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);rpv.createElement(e?l2:a2,null),$8={click:"onClick",hover:"onMouseOver"},P8=pv.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=pv.useState((()=>!!r&&n.visible)),a=pv.useRef(null);pv.useEffect((()=>{r&&i(n.visible)}),[r,n]);const s=Sp(a),l=()=>{const{disabled:t}=e;t||(o&&s(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:p}=e,f=VI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=pv.useContext(KZ),g=m("input",d),h=m("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=j8}=e,i=$8[n]||"",a=r(o),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return pv.cloneElement(pv.isValidElement(a)?a:pv.createElement("span",null,a),s)})(h),y=xZ(h,c,{[`${h}-${p}`]:!!p}),v=Object.assign(Object.assign({},Qs(f,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:g,suffix:b});return p&&(v.size=p),pv.createElement(O8,Object.assign({ref:Bs(t,a)},v))})),N8=P8;GI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:p,onCompositionStart:f,onCompositionEnd:m}=e,g=GI(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:b}=pv.useContext(KZ),y=pv.useRef(!1),v=h("input-search",n),_=h("input",r),{compactSize:w}=a1(v,b),k=t1((e=>{var t;return null!==(t=null!=i?i:w)&&void 0!==t?t:e})),x=pv.useRef(null),S=e=>{var t;document.activeElement===(null===(t=x.current)||void 0===t?void 0:t.input)&&e.preventDefault()},C=e=>{var t,n;d&&d(null===(n=null===(t=x.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},E="boolean"==typeof s?pv.createElement(h2,null):null,D=`${v}-button`;let O;const j=s||{},$=j.type&&!0===j.type.__ANT_BUTTON;O=$||"button"===j.type?sc(j,Object.assign({onMouseDown:S,onClick:e=>{var t,n;null===(n=null===(t=null==j?void 0:j.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),C(e)},key:"enterButton"},$?{className:D,size:k}:{})):pv.createElement(H1,{className:D,type:s?"primary":void 0,size:k,disabled:u,key:"enterButton",onMouseDown:S,onClick:C,loading:c,icon:E},s),l&&(O=[O,sc(l,{key:"addonAfter"})]);const P=xZ(v,{[`${v}-rtl`]:"rtl"===b,[`${v}-${k}`]:!!k,[`${v}-with-button`]:!!s},o);return pv.createElement(O8,Object.assign({ref:Bs(x,t),onPressEnter:e=>{y.current||c||C(e)}},g,{size:k,onCompositionStart:e=>{y.current=!0,null==f||f(e)},onCompositionEnd:e=>{y.current=!1,null==m||m(e)},prefixCls:_,addonAfter:O,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e),p&&p(e)},className:P,disabled:u}))})),I8=T8;qI=["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"],XI={},YI=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],QI=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T=e.prefixCls;return n=e.defaultValue,r=e.value,o=e.autoSize,i=e.onResize,a=e.className,s=e.style,l=e.disabled,c=e.onChange,u=Ei(e,YI),p=(d=Va(Al(n,{value:r,postState:function(e){return null!=e?e:""}}),2))[0],f=d[1],m=function(e){f(e.target.value),null==c||c(e)},g=pv.useRef(),pv.useImperativeHandle(t,(function(){return{textArea:g.current}})),h=Va(pv.useMemo((function(){return o&&"object"===xi(o)?[o.minRows,o.maxRows]:[]}),[o]),2),b=h[0],y=h[1],v=!!o,_=function(){try{if(document.activeElement===g.current){var e=g.current,t=e.scrollTop;g.current.setSelectionRange(e.selectionStart,e.selectionEnd),g.current.scrollTop=t}}catch(VQ){}},w=Va(pv.useState(2),2),k=w[0],x=w[1],C=(S=Va(pv.useState(),2))[0],E=S[1],D=function(){x(0)},KD((function(){v&&D()}),[r,b,y,v]),KD((function(){if(0===k)x(1);else if(1===k){var e=function(e,t,n,r){var o,i,a,s,l,c,u,d,p,f,m=arguments.length>1&&void 0!==t&&t,g=arguments.length>2&&void 0!==n?n:null,h=arguments.length>3&&void 0!==r?r:null;return KI||((KI=document.createElement("textarea")).setAttribute("tab-index","-1"),KI.setAttribute("aria-hidden","true"),document.body.appendChild(KI)),e.getAttribute("wrap")?KI.setAttribute("wrap",e.getAttribute("wrap")):KI.removeAttribute("wrap"),o=function(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t,l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");return s&&XI[l]?XI[l]:(r=(n=window.getComputedStyle(e)).getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:qI.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:i,boxSizing:r},s&&l&&(XI[l]=a),a)}(e,m),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,KI.setAttribute("style","".concat(o.sizingStyle,";").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")),KI.value=e.value||e.placeholder||"",l=void 0,c=void 0,d=KI.scrollHeight,"border-box"===s?d+=a:"content-box"===s&&(d-=i),null===g&&null===h||(KI.value=" ",p=KI.scrollHeight-i,null!==g&&(l=p*g,"border-box"===s&&(l=l+i+a),d=Math.max(l,d)),null!==h&&(c=p*h,"border-box"===s&&(c=c+i+a),u=d>c?"":"hidden",d=Math.min(c,d))),f={height:d,overflowY:u,resize:"none"},l&&(f.minHeight=l),c&&(f.maxHeight=c),f}(g.current,!1,b,y);x(2),E(e)}else _()}),[k]),O=pv.useRef(),j=function(){gj.cancel(O.current)},$=function(e){2===k&&(null==i||i(e),o&&(j(),O.current=gj((function(){D()}))))},pv.useEffect((function(){return j}),[]),P=v?C:null,N=Sa(Sa({},s),P),0!==k&&1!==k||(N.overflowY="hidden",N.overflowX="hidden"),pv.createElement(uj,{onResize:$,disabled:!(o||i)},pv.createElement("textarea",fa({},u,{ref:g,style:N,className:xZ(T,a,Ci({},"".concat(T,"-disabled"),l)),disabled:l,value:p,onChange:m})))})),JI=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"],ZI=zJ.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h=e.defaultValue,b=e.value,y=e.onFocus,v=e.onBlur,_=e.onChange,w=e.allowClear,k=e.maxLength,x=e.onCompositionStart,S=e.onCompositionEnd,C=e.suffix,E=e.prefixCls,D=void 0===E?"rc-textarea":E,O=e.classes,j=e.showCount,$=e.className,P=e.style,N=e.disabled,T=e.hidden,I=e.classNames,A=e.styles,R=e.onResize,F=Ei(e,JI),M=Va(Al(h,{value:b,defaultValue:h}),2),L=M[0],z=M[1],B=pv.useRef(null),H=Va(zJ.useState(!1),2),U=H[0],W=H[1],V=Va(zJ.useState(!1),2),G=V[0],q=V[1],X=zJ.useRef(),K=zJ.useRef(0),Y=Va(zJ.useState(null),2),Q=Y[0],J=Y[1],Z=function(){var e;null===(e=B.current)||void 0===e||e.textArea.focus()};return pv.useImperativeHandle(t,(function(){return{resizableTextArea:B.current,focus:Z,blur:function(){var e;null===(e=B.current)||void 0===e||e.textArea.blur()}}})),pv.useEffect((function(){W((function(e){return!N&&e}))}),[N]),r=Number(k)>0,o=function(e){q(!0),X.current=L,K.current=e.currentTarget.selectionStart,null==x||x(e)},i=function(e){var t,n;q(!1),t=e.currentTarget.value,r&&(t=Ep(K.current>=k+1||K.current===(null===(n=X.current)||void 0===n?void 0:n.length),X.current,t,k)),t!==L&&(z(t),vp(e.currentTarget,e,_,t)),null==S||S(e)},a=function(e){var t=e.target.value;!G&&r&&(t=Ep(e.target.selectionStart>=k+1||e.target.selectionStart===t.length||!e.target.selectionStart,L,t,k)),z(t),vp(e.currentTarget,e,_,t)},s=function(e){var t=F.onPressEnter,n=F.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},l=function(e){W(!0),null==y||y(e)},c=function(e){W(!1),null==v||v(e)},u=function(e){var t;z(""),Z(),vp(null===(t=B.current)||void 0===t?void 0:t.textArea,e,_)},d=wp(L),!G&&r&&null==b&&(d=Cp(d,k)),p=C,j&&(m=ka(d).length,f="object"===xi(j)?j.formatter({value:d,count:m,maxLength:k}):"".concat(m).concat(r?" / ".concat(k):""),p=zJ.createElement(zJ.Fragment,null,p,zJ.createElement("span",{className:xZ("".concat(D,"-data-count"),null==I?void 0:I.count),style:null==A?void 0:A.count},f))),g=function(e){var t;null==R||R(e),null!==(t=B.current)&&void 0!==t&&t.textArea.style.height&&J(!0)},zJ.createElement(PI,{value:d,allowClear:w,handleReset:u,suffix:p,prefixCls:D,classes:{affixWrapper:xZ(null==O?void 0:O.affixWrapper,(n={},Ci(n,"".concat(D,"-show-count"),j),Ci(n,"".concat(D,"-textarea-allow-clear"),w),n))},disabled:N,focused:U,className:$,style:Sa(Sa({},P),Q?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof f?f:void 0}},hidden:T,inputElement:zJ.createElement(QI,fa({},F,{onKeyDown:s,onChange:a,onFocus:l,onBlur:c,onCompositionStart:o,onCompositionEnd:i,className:null==I?void 0:I.textarea,style:Sa(Sa({},null==A?void 0:A.textarea),{},{resize:null==P?void 0:P.resize}),disabled:N,prefixCls:D,onResize:g,ref:B}))})})),eA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=eA(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:d,direction:p}=pv.useContext(KZ),f=t1(o),m=pv.useContext(l0),g=null!=i?i:m,{status:h,hasFeedback:b,feedbackIcon:y}=pv.useContext(E2),v=V5(h,a),_=pv.useRef(null);pv.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=_.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=_.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.blur()}}}));const w=d("input",n);let k;"object"==typeof s&&(null==s?void 0:s.clearIcon)?k=s:s&&(k={clearIcon:pv.createElement(E0,null)});const[x,S]=b3(w);return x(pv.createElement(ZI,Object.assign({},u,{disabled:g,allowClear:k,classes:{affixWrapper:xZ(`${w}-textarea-affix-wrapper`,{[`${w}-affix-wrapper-rtl`]:"rtl"===p,[`${w}-affix-wrapper-borderless`]:!r,[`${w}-affix-wrapper-sm`]:"small"===f,[`${w}-affix-wrapper-lg`]:"large"===f,[`${w}-textarea-show-count`]:l},cd(`${w}-affix-wrapper`,v),S)},classNames:Object.assign(Object.assign({},c),{textarea:xZ({[`${w}-borderless`]:!r,[`${w}-sm`]:"small"===f,[`${w}-lg`]:"large"===f},cd(w,v),S,null==c?void 0:c.textarea)}),prefixCls:w,suffix:b&&pv.createElement("span",{className:`${w}-textarea-suffix`},y),showCount:l,ref:_})))})),R8=O8;R8.Group=e=>{const{getPrefixCls:t,direction:n}=pv.useContext(KZ),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=b3(a),c=xZ(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=pv.useContext(E2),d=pv.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(pv.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},pv.createElement(E2.Provider,{value:d},e.children)))},R8.Search=I8,R8.TextArea=A8,R8.Password=N8;const F8=R8;tA=pv.createContext(null),nA=function(e){var t=e.className,n=e.style,r=e.children,o=e.containerRef,i={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp};return pv.createElement(pv.Fragment,null,pv.createElement("div",fa({className:xZ("".concat(e.prefixCls,"-content"),t),style:Sa({},n),"aria-modal":"true",role:"dialog",ref:o},i),r))},rA={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},oA=pv.forwardRef(Op),iA=function(e){var t,n,r,o,i,a,s=e.open,l=void 0!==s&&s,c=e.prefixCls,u=void 0===c?"rc-drawer":c,d=e.placement,p=void 0===d?"right":d,f=e.autoFocus,m=void 0===f||f,g=e.keyboard,h=void 0===g||g,b=e.width,y=void 0===b?378:b,v=e.mask,_=void 0===v||v,w=e.maskClosable,k=void 0===w||w,x=e.getContainer,S=e.forceRender,C=e.afterOpenChange,E=e.destroyOnClose,D=e.onMouseEnter,O=e.onMouseOver,j=e.onMouseLeave,$=e.onClick,P=e.onKeyDown,N=e.onKeyUp,T=Va(pv.useState(!1),2),I=T[0],A=T[1],R=Va(pv.useState(!1),2),F=R[0],M=R[1];return KD((function(){M(!0)}),[]),t=!!F&&l,n=pv.useRef(),r=pv.useRef(),KD((function(){t&&(r.current=document.activeElement)}),[t]),o=function(e){var t,o;A(e),null==C||C(e),e||!r.current||(null===(t=n.current)||void 0===t?void 0:t.contains(r.current))||null===(o=r.current)||void 0===o||o.focus({preventScroll:!0})},S||I||t||!E?(i={onMouseEnter:D,onMouseOver:O,onMouseLeave:j,onClick:$,onKeyDown:P,onKeyUp:N},a=Sa(Sa({},e),{},{open:t,prefixCls:u,placement:p,autoFocus:m,keyboard:h,width:y,mask:_,maskClosable:k,inline:!1===x,afterOpenChange:o,ref:n},i),pv.createElement(q$,{open:t||S||I,autoDestroy:!1,getContainer:x,autoLock:_&&(t||I)},pv.createElement(oA,a))):null};const M8=e=>{const{prefixCls:t,title:n,footer:r,extra:o,closeIcon:i,closable:a,onClose:s,headerStyle:l,drawerStyle:c,bodyStyle:u,footerStyle:d,children:p}=e,f=pv.useCallback((e=>pv.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},e)),[s]),[m,g]=Mc(a,i,f,void 0,!0),h=pv.useMemo((()=>n||m?pv.createElement("div",{style:l,className:xZ(`${t}-header`,{[`${t}-header-close-only`]:m&&!n&&!o})},pv.createElement("div",{className:`${t}-header-title`},g,n&&pv.createElement("div",{className:`${t}-title`},n)),o&&pv.createElement("div",{className:`${t}-extra`},o)):null),[m,g,o,l,t,n]),b=pv.useMemo((()=>r?pv.createElement("div",{className:`${t}-footer`,style:d},r):null),[r,d,t]);return pv.createElement("div",{className:`${t}-wrapper-body`,style:c},h,pv.createElement("div",{className:`${t}-body`,style:u},p),b)},L8=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},z8=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:f,marginSM:m,colorIcon:g,colorIconHover:h,colorText:b,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:_}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${p} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:m,color:g,fontWeight:y,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${v}px ${_}px`,borderTop:`${d}px ${p} ${f}`},"&-rtl":{direction:"rtl"}}}},B8=Ml("Drawer",(e=>{const t=Rl(e,{});return[z8(t),L8(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));aA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=H8,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:p,className:f,visible:m,afterVisibleChange:g}=e,h=aA(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:b,getPrefixCls:y,direction:v,drawer:_}=pv.useContext(KZ),w=y("drawer",u),[k,x]=B8(w),S=void 0===d&&b?()=>b(document.body):d,C=xZ({"no-mask":!i,[`${w}-rtl`]:"rtl"===v},t,x),E=pv.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),D=pv.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),O={motionName:Y1(w,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500};return k(pv.createElement(s1,null,pv.createElement(D2,{status:!0,override:!0},pv.createElement(iA,Object.assign({prefixCls:w,onClose:c,maskMotion:O,motion:e=>({motionName:Y1(w,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},h,{open:null!=s?s:m,mask:i,push:a,width:E,height:D,style:Object.assign(Object.assign({},null==_?void 0:_.style),p),className:xZ(null==_?void 0:_.className,f),rootClassName:C,getContainer:S,afterOpenChange:null!=l?l:g}),pv.createElement(M8,Object.assign({prefixCls:w},h,{onClose:c}))))))};U8._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=aA(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=pv.useContext(KZ),s=a("drawer",t),[l,c]=B8(s),u=xZ(s,`${s}-pure`,`${s}-${o}`,c,r);return l(pv.createElement("div",{className:u,style:n},pv.createElement(M8,Object.assign({prefixCls:s},i))))};const W8=U8,V8=zJ.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),G8=V8.Provider,q8=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:d,supportFlexGap:p}=pv.useContext(V8);let f={};return p||("vertical"===n?r{var n,r;const{getPrefixCls:o,space:i,direction:a}=pv.useContext(KZ),{size:s=(null==i?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:p="horizontal",prefixCls:f,split:m,style:g,wrap:h=!1,classNames:b,styles:y}=e,v=sA(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),_=s8(),[w,k]=pv.useMemo((()=>(Array.isArray(s)?s:[s,s]).map((e=>function(e){return"string"==typeof e?X8[e]:e||0}(e)))),[s]),x=Ls(d,{keepEmpty:!0}),S=void 0===l&&"horizontal"===p?"center":l,C=o("space",f),[E,D]=o1(C),O=xZ(C,null==i?void 0:i.className,D,`${C}-${p}`,{[`${C}-rtl`]:"rtl"===a,[`${C}-align-${S}`]:S},c,u),j=xZ(`${C}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item),$="rtl"===a?"marginLeft":"marginRight";let P=0;const N=x.map(((e,t)=>{var n,r;return null!=e&&(P=t),pv.createElement(q8,{className:j,key:e&&e.key||`${j}-${t}`,direction:p,index:t,marginDirection:$,split:m,wrap:h,style:null!==(n=null==y?void 0:y.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),T=pv.useMemo((()=>({horizontalSize:w,verticalSize:k,latestIndex:P,supportFlexGap:_})),[w,k,P,_]);if(0===x.length)return null;const I={};return h&&(I.flexWrap="wrap",_||(I.marginBottom=-k)),_&&(I.columnGap=w,I.rowGap=k),E(pv.createElement("div",Object.assign({ref:t,className:O,style:Object.assign(Object.assign(Object.assign({},I),null==i?void 0:i.style),g)},v),pv.createElement(G8,{value:T},N)))}));K8.Compact=e=>{const{getPrefixCls:t,direction:n}=pv.useContext(KZ),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=M$(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=t1((e=>null!=r?r:e)),p=t("space-compact",a),[f,m]=o1(p),g=xZ(p,m,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===o},s,l),h=pv.useContext(i1),b=Ls(c),y=pv.useMemo((()=>b.map(((e,t)=>pv.createElement(l1,{key:e&&e.key||`${p}-item-${t}`,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!h||(null==h?void 0:h.isFirstItem)),isLastItem:t===b.length-1&&(!h||(null==h?void 0:h.isLastItem))},e)))),[r,b,h]);return 0===b.length?null:f(pv.createElement("div",Object.assign({className:g},u),y))};const Y8=K8,Q8=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},J8=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Z8=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},e6=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},JZ(e)),J8(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Z8(e,e.controlHeightSM)),"&-large":Object.assign({},Z8(e,e.controlHeightLG))})}},t6=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:Object.assign(Object.assign({},JZ(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Z2,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},n6=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},r6=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},o6=e=>({padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),i6=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:o6(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},a6=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:o6(e),[`@media (max-width: ${e.screenXSMax}px)`]:[i6(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:o6(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:o6(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:o6(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:o6(e)}}}},s6=Ml("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=Rl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[e6(r),t6(r),Q8(r),n6(r),r6(r),a6(r),f5(r),Z2]})),l6=[],c6=["parentNode"],u6="form_item";lA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=pv.useContext(l0),{getPrefixCls:r,direction:o,form:i}=pv.useContext(KZ),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:p,labelAlign:f,labelWrap:m,labelCol:g,wrapperCol:h,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:v,requiredMark:_,onFinishFailed:w,name:k,style:x}=e,S=lA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style"]),C=t1(c),E=pv.useContext(CZ),D=pv.useMemo((()=>void 0!==_?_:i&&void 0!==i.requiredMark?i.requiredMark:!b),[b,_,i]),O=null!=p?p:null==i?void 0:i.colon,j=r("form",a),[$,P]=s6(j),N=xZ(j,`${j}-${y}`,{[`${j}-hide-required-mark`]:!1===D,[`${j}-rtl`]:"rtl"===o,[`${j}-${C}`]:C},P,null==i?void 0:i.className,s,l),[T]=Ap(d),{__INTERNAL__:I}=T;I.name=k;const A=pv.useMemo((()=>({name:k,labelAlign:f,labelCol:g,labelWrap:m,wrapperCol:h,vertical:"vertical"===y,colon:O,requiredMark:D,itemRef:I.itemRef,form:T})),[k,f,g,h,y,O,D,T]);pv.useImperativeHandle(t,(()=>T));const R=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),T.scrollToField(t,n)}};return $(pv.createElement(s0,{disabled:u},pv.createElement(u0,{size:C},pv.createElement(S2,{validateMessages:E},pv.createElement(k2.Provider,{value:A},pv.createElement(AP,Object.assign({id:k},S,{name:k,onFinishFailed:e=>{if(null==w||w(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==v)return void R(v,t);i&&void 0!==i.scrollToFirstError&&R(i.scrollToFirstError,t)}},form:T,style:Object.assign(Object.assign({},null==i?void 0:i.style),x),className:N})))))))},p6=pv.forwardRef(d6),f6=()=>{const{status:e,errors:t=[],warnings:n=[]}=pv.useContext(E2);return{status:e,errors:t,warnings:n}};f6.Context=E2;const m6=f6,g6=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:p}=e,f=`${t}-item`,m=pv.useContext(k2),g=r||m.wrapperCol||{},h=xZ(`${f}-control`,g.className),b=pv.useMemo((()=>Object.assign({},m)),[m]);delete b.labelCol,delete b.wrapperCol;const y=pv.createElement("div",{className:`${f}-control-input`},pv.createElement("div",{className:`${f}-control-input-content`},o)),v=pv.useMemo((()=>({prefixCls:t,status:n})),[t,n]),_=null!==d||i.length||a.length?pv.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},pv.createElement(C2.Provider,{value:v},pv.createElement(Pp,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${f}-explain-connected`,onVisibleChanged:p})),!!d&&pv.createElement("div",{style:{width:0,height:d}})):null,w={};u&&(w.id=`${u}_extra`);const k=l?pv.createElement("div",Object.assign({},w,{className:`${f}-extra`}),l):null,x=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:y,errorList:_,extra:k}):pv.createElement(pv.Fragment,null,y,_,k);return pv.createElement(k2.Provider,{value:b},pv.createElement(a8,Object.assign({},g,{className:h}),x))};cA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c}=e;var u;const[d]=NZ("Form"),{vertical:p,labelAlign:f,labelCol:m,labelWrap:g,colon:h}=pv.useContext(k2);if(!n)return null;const b=o||m||{},y=`${t}-item-label`,v=xZ(y,"left"===(i||f)&&`${y}-left`,b.className,{[`${y}-wrap`]:!!g});let _=n;const w=!0===a||!1!==h&&!1!==a;w&&!p&&"string"==typeof n&&""!==n.trim()&&(_=n.replace(/[:|:]\s*$/,""));const k=function(e){return e?"object"!=typeof e||pv.isValidElement(e)?{title:e}:e:null}(c);if(k){const{icon:e=pv.createElement(p2,null)}=k,n=cA(k,["icon"]),r=pv.createElement(A4,Object.assign({},n),pv.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));_=pv.createElement(pv.Fragment,null,_,r)}"optional"!==l||s||(_=pv.createElement(pv.Fragment,null,_,pv.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=jZ.Form)||void 0===u?void 0:u.optional))));const x=xZ({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:"optional"===l,[`${t}-item-no-colon`]:!w});return pv.createElement(a8,Object.assign({},b,{className:v}),pv.createElement("label",{htmlFor:r,className:x,title:"string"==typeof n?n:""},_))};uA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),v6=function(e){function t(t,n,i){return r&&!g?t:pv.createElement(Rp,Object.assign({key:"row"},e,{className:xZ(o,D),prefixCls:C,fieldId:n,isRequired:i,errors:A,warnings:R,meta:N,onSubItemMetaChange:I}),t)}const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:s,rules:l,children:c,required:u,label:d,messageVariables:p,trigger:f="onChange",validateTrigger:m,hidden:g,help:h}=e,{getPrefixCls:b}=pv.useContext(KZ),{name:y}=pv.useContext(k2),v=function(e){if("function"==typeof e)return e;const t=Ls(e);return t.length<=1?t[0]:t}(c),_="function"==typeof v,w=pv.useContext(x2),{validateTrigger:k}=pv.useContext(tP),x=void 0!==m?m:k,S=function(e){return!(null==e)}(n),C=b("form",a),[E,D]=s6(C),O=pv.useContext(nP),j=pv.useRef(),[$,P]=function(){const[e,t]=pv.useState({}),n=pv.useRef(null),r=pv.useRef([]),o=pv.useRef(!1);return pv.useEffect((()=>(o.current=!1,()=>{o.current=!0,gj.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=gj((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[N,T]=Tl((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{P((n=>{const r=Object.assign({},n),o=[].concat(ka(e.name.slice(0,-1)),ka(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[A,R]=pv.useMemo((()=>{const e=ka(N.errors),t=ka(N.warnings);return Object.values($).forEach((n=>{e.push.apply(e,ka(n.errors||[])),t.push.apply(t,ka(n.warnings||[]))})),[e,t]}),[$,N.errors,N.warnings]),F=function(){const{itemRef:e}=pv.useContext(k2),t=pv.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=Bs(e(n),o)),t.current.ref}}();if(!S&&!_&&!i)return E(t(v));let M={};return"string"==typeof d?M.label=d:n&&(M.label=String(n)),p&&(M=Object.assign(Object.assign({},M),p)),E(pv.createElement(du,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:x,onMetaChange:e=>{const t=null==O?void 0:O.getKey(e.name);if(T(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==h&&w){let n=e.name;if(e.destroy)n=j.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(ka(r)),j.current=n}w(e,n)}}}),((r,o,a)=>{const c=Np(n).length&&o?o.name:[],d=Tp(c,y),p=void 0!==u?u:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return t&&t.required&&!t.warningOnly}return!1}))),m=Object.assign({},r);let g=null;if(Array.isArray(v)&&S)g=v;else if(_&&(!s&&!i||S));else if(!i||_||S)if(T0(v)){const t=Object.assign(Object.assign({},v.props),m);if(t.id||(t.id=d),h||A.length>0||R.length>0||e.extra){const n=[];(h||A.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t["aria-describedby"]=n.join(" ")}A.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),Us(v)&&(t.ref=F(c,v)),new Set([].concat(ka(Np(f)),ka(Np(x)))).forEach((e=>{t[e]=function(){var t,n,r,o,i,a,s,l;for(a=arguments.length,s=new Array(a),l=0;l{var{prefixCls:t,children:n}=e,r=dA(e,["prefixCls","children"]);const{getPrefixCls:o}=pv.useContext(KZ),i=o("form",t),a=pv.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return pv.createElement(EP,Object.assign({},r),((e,t,r)=>pv.createElement(C2.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},_6.ErrorList=Pp,_6.useForm=Ap,_6.useFormInstance=function(){const{form:e}=pv.useContext(k2);return e},_6.useWatch=gu,_6.Provider=S2,_6.create=()=>{};const w6=_6;let k6=null,x6=e=>e(),S6=[],C6={};const E6=pv.forwardRef(((e,t)=>{const n=()=>{const{prefixCls:e,container:t,maxCount:n,duration:r,rtl:o,top:i}=function(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=C6;return{prefixCls:null!=e?e:y0().getPrefixCls("message"),container:(null==t?void 0:t())||document.body,duration:n,rtl:r,maxCount:o,top:i}}();return{prefixCls:e,getContainer:()=>t,maxCount:n,duration:r,rtl:o,top:i}},[r,o]=pv.useState(n),[i,a]=uc(r),s=y0(),l=s.getRootPrefixCls(),c=s.getIconPrefixCls(),u=s.getTheme(),d=()=>{o(n)};return pv.useEffect(d,[]),pv.useImperativeHandle(t,(()=>{const e=Object.assign({},i);return Object.keys(e).forEach((t=>{e[t]=function(){return d(),i[t].apply(i,arguments)}})),{instance:e,sync:d}})),pv.createElement(_0,{prefixCls:l,iconPrefixCls:c,theme:u},a)})),D6={open:function(e){const t=cc((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return S6.push(r),()=>{n?x6((()=>{n()})):r.skipped=!0}}));return Fp(),t},destroy:function(e){S6.push({type:"destroy",key:e}),Fp()},config:function(e){C6=Object.assign(Object.assign({},C6),e),x6((()=>{var e;null===(e=null==k6?void 0:k6.sync)||void 0===e||e.call(k6)}))},useMessage:dc,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=$$(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=pv.useContext(KZ),l=t||s("message"),[,c]=W0(l);return pv.createElement(C$,Object.assign({},a,{prefixCls:l,className:xZ(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:pv.createElement(G0,{prefixCls:l,type:r,icon:o},i)}))}},O6=D6;["success","info","warning","error","loading"].forEach((e=>{O6[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return S6.push(o),()=>{r?x6((()=>{r()})):o.skipped=!0}}));return Fp(),n}(e,n)}}));const j6=O6;pA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s}=e,l=pA(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=pv.useContext(KZ),u=c(),d=t||c("modal"),[,p]=v5(d),f=`${d}-confirm`;let m={};return m=i?{closable:null!=o&&o,title:"",footer:"",children:pv.createElement(yu,Object.assign({},e,{confirmPrefixCls:f,rootPrefixCls:u,content:s}))}:{closable:null==o||o,title:a,footer:void 0===e.footer?pv.createElement(O2,Object.assign({},e)):e.footer,children:s},pv.createElement(Y$,Object.assign({prefixCls:d,className:xZ(p,`${d}-pure-panel`,i&&f,i&&`${f}-${i}`,n)},l,{closeIcon:hu(d,r),closable:o},m))};const P6=$6;let N6=null,T6=e=>e(),I6=[],A6={};const R6=pv.forwardRef(((e,t)=>{const[n,r]=pv.useState(),[o,i]=pv.useState(),[a,s]=pv.useState(),[l,c]=pv.useState(),[u,d]=pv.useState(),[p,f]=pv.useState(),[m,g]=Du({prefixCls:n,getContainer:()=>o,maxCount:a,rtl:l,top:u,bottom:p}),h=y0(),b=h.getRootPrefixCls(),y=h.getIconPrefixCls(),v=h.getTheme(),_=()=>{const{prefixCls:e,container:t,maxCount:n,rtl:o,top:a,bottom:l}=function(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=A6;return{prefixCls:null!=e?e:y0().getPrefixCls("notification"),container:(null==t?void 0:t())||document.body,rtl:n,maxCount:r,top:o,bottom:i}}();r(e),i(t),s(n),c(o),d(a),f(l)};return pv.useEffect(_,[]),pv.useImperativeHandle(t,(()=>{const e=Object.assign({},m);return Object.keys(e).forEach((t=>{e[t]=function(){return _(),m[t].apply(m,arguments)}})),{instance:e,sync:_}})),pv.createElement(_0,{prefixCls:b,iconPrefixCls:y,theme:v},g)})),F6={open:zp,destroy:function(e){I6.push({type:"destroy",key:e}),Lp()},config:function(e){A6=Object.assign(Object.assign({},A6),e),T6((()=>{var e;null===(e=null==N6?void 0:N6.sync)||void 0===e||e.call(N6)}))},useNotification:Ou,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c}=e,u=MP(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=pv.useContext(KZ),p=t||d("notification"),f=`${p}-notice`,[,m]=P5(p);return pv.createElement(C$,Object.assign({},u,{prefixCls:p,className:xZ(n,m,`${f}-pure-panel`),eventKey:"pure",duration:null,closable:l,closeIcon:Eu(p,c),content:pv.createElement(T5,{prefixCls:f,icon:r,type:o,message:i,description:a,btn:s})}))}},M6=F6;["success","info","warning","error"].forEach((e=>{M6[e]=t=>zp(Object.assign(Object.assign({},t),{type:e}))}));const L6=M6;fA=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},mA=function(e){return void 0!==e?"".concat(e,"px"):void 0},gA=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"],hA=function(e){var t=e.prefixCls,n=e.disabled,r=e.checked,o=e.label,i=e.title,a=e.value,s=e.onChange;return pv.createElement("label",{className:xZ(e.className,Ci({},"".concat(t,"-item-disabled"),n))},pv.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:r,onChange:function(e){n||s(e,a)}}),pv.createElement("div",{className:"".concat(t,"-item-label"),title:i},o))},bA=pv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,p=e.className,f=void 0===p?"":p,m=e.motionName,g=void 0===m?"thumb-motion":m,h=Ei(e,gA),b=pv.useRef(null),y=pv.useMemo((function(){return Bs(b,t)}),[b,t]),v=pv.useMemo((function(){return function(e){return e.map((function(e){if("object"===xi(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==xi(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Sa(Sa({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(s)}),[s]),_=Va(Al(null===(n=v[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),w=_[0],k=_[1],x=Va(pv.useState(!1),2),S=x[0],C=x[1],E=function(e,t){l||(k(t),null==d||d(t))},D=Qs(h,["children"]);return pv.createElement("div",fa({},D,{className:xZ(i,(r={},Ci(r,"".concat(i,"-rtl"),"rtl"===a),Ci(r,"".concat(i,"-disabled"),l),r),f),ref:y}),pv.createElement("div",{className:"".concat(i,"-group")},pv.createElement(Bp,{prefixCls:i,value:w,containerRef:b,motionName:"".concat(i,"-").concat(g),direction:a,getValueIndex:function(e){return v.findIndex((function(t){return t.value===e}))},onMotionStart:function(){C(!0)},onMotionEnd:function(){C(!1)}}),v.map((function(e){return pv.createElement(hA,fa({},e,{key:e.value,prefixCls:i,className:xZ(e.className,"".concat(i,"-item"),Ci({},"".concat(i,"-item-selected"),e.value===w&&!S)),checked:e.value===w,onChange:E,disabled:!!l||!!e.disabled}))}))))})),bA.displayName="Segmented",bA.defaultProps={options:[]};const z6=Object.assign({overflow:"hidden"},QZ),B6=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},JZ(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":Object.assign(Object.assign({},Up(e)),{color:e.itemHoverColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},z6),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Up(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Hp(`&-disabled ${t}-item`,e)),Hp(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},H6=Ml("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=Rl(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[B6(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i}}));yA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:s="middle",style:l}=e,c=yA(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:p}=pv.useContext(KZ),f=u("segmented",n),[m,g]=H6(f),h=t1(s),b=pv.useMemo((()=>a.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=yA(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:pv.createElement(pv.Fragment,null,pv.createElement("span",{className:`${f}-item-icon`},t),n&&pv.createElement("span",null,n))})}return e}))),[a,f]),y=xZ(r,o,null==p?void 0:p.className,{[`${f}-block`]:i,[`${f}-sm`]:"small"===h,[`${f}-lg`]:"large"===h},g),v=Object.assign(Object.assign({},null==p?void 0:p.style),l);return m(pv.createElement(bA,Object.assign({},c,{className:y,style:v,options:b,ref:t,prefixCls:f,direction:d})))}));vA=pv.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),_A=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],wA=pv.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,p=Ei(e,_A),f=pv.useContext(vA),m=f.min,g=f.max,h=f.direction,b=f.disabled,y=f.keyboard,v=f.range,_=f.tabIndex,w=f.ariaLabelForHandle,k=f.ariaLabelledByForHandle,x=f.ariaValueTextFormatterForHandle,S="".concat(o,"-handle"),C=function(e){b||s(e,a)},E=Vp(h,i,m,g),D=pv.createElement("div",fa({ref:t,className:xZ(S,(n={},Ci(n,"".concat(S,"-").concat(a+1),v),Ci(n,"".concat(S,"-dragging"),u),n)),style:Sa(Sa({},E),l),onMouseDown:C,onTouchStart:C,onKeyDown:function(e){if(!b&&y){var t=null;switch(e.which||e.keyCode){case S$.LEFT:t="ltr"===h||"btt"===h?-1:1;break;case S$.RIGHT:t="ltr"===h||"btt"===h?1:-1;break;case S$.UP:t="ttb"!==h?1:-1;break;case S$.DOWN:t="ttb"!==h?-1:1;break;case S$.HOME:t="min";break;case S$.END:t="max";break;case S$.PAGE_UP:t=2;break;case S$.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,a))}},tabIndex:b?null:Gp(_,a),role:"slider","aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":Gp(w,a),"aria-labelledby":Gp(k,a),"aria-valuetext":null===(r=Gp(x,a))||void 0===r?void 0:r(i)},p));return c&&(D=c(D,{index:a,prefixCls:o,value:i,dragging:u})),D})),kA=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],xA=pv.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Ei(e,kA),u=pv.useRef({});return pv.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),pv.createElement(pv.Fragment,null,a.map((function(e,t){return pv.createElement(wA,fa({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:Gp(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:s},c))})))})),SA=pv.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C=e.prefixCls,E=void 0===C?"rc-slider":C,D=e.className,O=e.style,j=e.disabled,$=void 0!==j&&j,P=e.keyboard,N=void 0===P||P,T=e.autoFocus,I=e.onFocus,A=e.onBlur,R=e.min,F=void 0===R?0:R,M=e.max,L=void 0===M?100:M,z=e.step,B=void 0===z?1:z,H=e.value,U=e.defaultValue,W=e.range,V=e.count,G=e.onChange,q=e.onBeforeChange,X=e.onAfterChange,K=e.allowCross,Y=void 0===K||K,Q=e.pushable,J=void 0!==Q&&Q,Z=e.draggableTrack,ee=e.reverse,te=e.vertical,ne=e.included,re=void 0===ne||ne,oe=e.startPoint,ie=e.trackStyle,ae=e.handleStyle,se=e.railStyle,le=e.dotStyle,ce=e.activeDotStyle,ue=e.marks,de=e.dots,pe=e.handleRender,fe=e.tabIndex,me=void 0===fe?0:fe,ge=e.ariaLabelForHandle,he=e.ariaLabelledByForHandle,be=e.ariaValueTextFormatterForHandle,ye=pv.useRef(),ve=pv.useRef(),_e=pv.useMemo((function(){return te?ee?"ttb":"btt":ee?"rtl":"ltr"}),[ee,te]),we=pv.useMemo((function(){return isFinite(F)?F:0}),[F]),ke=pv.useMemo((function(){return isFinite(L)?L:100}),[L]),xe=pv.useMemo((function(){return null!==B&&B<=0?1:B}),[B]),Se=pv.useMemo((function(){return!0===J?xe:J>=0&&J}),[J,xe]),Ce=pv.useMemo((function(){return Object.keys(ue||{}).map((function(e){var t=ue[e],n={value:Number(e)};return t&&"object"===xi(t)&&!pv.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[ue]),Ee=function(e,t,n,r,o,i){var a=pv.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=pv.useCallback((function(r){var o,i,s,l;return null!==n?(o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(i(n),i(t),i(e)),l=Number(o.toFixed(s)),e<=l&&l<=t?l:null):null}),[n,e,t,a]),l=pv.useCallback((function(o){var i,l,c=a(o),u=r.map((function(e){return e.value}));return null!==n&&u.push(s(o)),u.push(e,t),i=u[0],l=t-e,u.forEach((function(e){var t=Math.abs(c-e);t<=l&&(i=e,l=t)})),i}),[e,t,r,n,a,s]),c=function o(i,a,l,c){var u,d,p,f,m,g,h,b,y=arguments.length>3&&void 0!==c?c:"unit";return"number"==typeof a?(p=(d=i[l])+a,f=[],r.forEach((function(e){f.push(e.value)})),f.push(e,t),f.push(s(d)),m=a>0?1:-1,f.push(s("unit"===y?d+m*n:p)),f=f.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===y&&(f=f.filter((function(e){return e!==d}))),g="unit"===y?d:p,u=f[0],h=Math.abs(u-g),f.forEach((function(e){var t=Math.abs(e-g);t1?((b=ka(i))[l]=u,o(b,a-m,l,y)):u):"min"===a?e:"max"===a?t:void 0},u=function(e,t,n,r){var o=e[n],i=c(e,t,n,arguments.length>3&&void 0!==r?r:"unit");return{value:i,changed:i!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e3&&void 0!==r?r:"unit",S=e.map(l),C=S[n],E=c(S,t,n,x);if(S[n]=E,!1===o)a=i||0,n>0&&S[n-1]!==C&&(S[n]=Math.max(S[n],S[n-1]+a)),n0;m-=1)for(g=!0;d(S[m]-S[m-1])&&g;)h=u(S,-1,m-1),S[m-1]=h.value,g=h.changed;for(b=S.length-1;b>0;b-=1)for(y=!0;d(S[b]-S[b-1])&&y;)v=u(S,-1,b-1),S[b-1]=v.value,y=v.changed;for(_=0;_=0?V+1:2);o.length=0&&ye.current.focus(e)}c(null)}),[l=s[0]]),d=pv.useMemo((function(){return(!Z||null!==xe)&&Z}),[Z,xe]),p=function(e,t,n,o,i,a,s,l,c){var u,d,p,f,m,g=Va(pv.useState(null),2),h=g[0],b=g[1],y=Va(pv.useState(-1),2),v=y[0],_=y[1],w=Va(pv.useState(n),2),k=w[0],x=w[1],S=Va(pv.useState(n),2),C=S[0],E=S[1],D=pv.useRef(null),O=pv.useRef(null);return pv.useEffect((function(){-1===v&&x(n)}),[n,v]),pv.useEffect((function(){return function(){document.removeEventListener("mousemove",D.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",D.current),document.removeEventListener("touchend",O.current)}}),[]),u=function(e,t){k.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&b(t),x(e),s(e))},(p=pv.useRef(d=function(e,t){var n,r,s,l,d,p,f,m;-1===e?(n=C[0],r=i-C[C.length-1],s=t*(i-o),s=Math.max(s,o-n),s=Math.min(s,r),l=a(n+s),s=l-n,d=C.map((function(e){return e+s})),u(d)):(p=(i-o)*t,(f=ka(k))[e]=C[e],m=c(f,p,e,"dist"),u(m.values,m.value))})).current=d,f=function(o,i){var a,s,l,c,u,d;o.stopPropagation(),a=n[i],_(i),b(a),E(n),s=qp(o),l=s.pageX,c=s.pageY,u=function(n){var r,o,a,s,u,d,f;switch(n.preventDefault(),o=(r=qp(n)).pageX-l,a=r.pageY-c,u=(s=e.current.getBoundingClientRect()).width,d=s.height,t){case"btt":f=-a/d;break;case"ttb":f=a/d;break;case"rtl":f=-o/u;break;default:f=o/u}p.current(i,f)},d=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),D.current=null,O.current=null,_(-1),null==X||X(r(Ie.current))},document.addEventListener("mouseup",d),document.addEventListener("mousemove",u),document.addEventListener("touchend",d),document.addEventListener("touchmove",u),D.current=u,O.current=d},m=pv.useMemo((function(){var e=ka(n).sort((function(e,t){return e-t})),t=ka(k).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?k:n}),[n,k]),[v,h,m,f]}(ve,_e,Te,we,ke,Oe,o,0,je),f=Va(p,4),g=f[1],h=f[2],b=f[3],y=function(e,t){b(e,t),null==q||q(r(Ie.current))},pv.useEffect((function(){if(!v){var e=Te.lastIndexOf(g);ye.current.focus(e)}}),[v=-1!==(m=f[0])]),_=pv.useMemo((function(){return ka(h).sort((function(e,t){return e-t}))}),[h]),w=Va(pv.useMemo((function(){return W?[_[0],_[_.length-1]]:[we,_[0]]}),[_,W,we]),2),k=w[0],x=w[1],pv.useImperativeHandle(t,(function(){return{focus:function(){ye.current.focus(0)},blur:function(){var e=document.activeElement;ve.current.contains(e)&&(null==e||e.blur())}}})),pv.useEffect((function(){T&&ye.current.focus(0)}),[]),S=pv.useMemo((function(){return{min:we,max:ke,direction:_e,disabled:$,keyboard:N,step:xe,included:re,includedStart:k,includedEnd:x,range:W,tabIndex:me,ariaLabelForHandle:ge,ariaLabelledByForHandle:he,ariaValueTextFormatterForHandle:be}}),[we,ke,_e,$,N,xe,re,k,x,W,me,ge,he,be]),pv.createElement(vA.Provider,{value:S},pv.createElement("div",{ref:ve,className:xZ(E,D,(n={},Ci(n,"".concat(E,"-disabled"),$),Ci(n,"".concat(E,"-vertical"),te),Ci(n,"".concat(E,"-horizontal"),!te),Ci(n,"".concat(E,"-with-marks"),Ce.length),n)),style:O,onMouseDown:a},pv.createElement("div",{className:"".concat(E,"-rail"),style:se}),pv.createElement(Kp,{prefixCls:E,style:ie,values:_,startPoint:oe,onStartMove:d?y:null}),pv.createElement(Zp,{prefixCls:E,marks:Ce,dots:de,style:le,activeStyle:ce}),pv.createElement(xA,{ref:ye,prefixCls:E,style:ae,values:h,draggingIndex:m,onStartMove:y,onOffsetChange:u,onFocus:I,onBlur:A,handleRender:pe}),pv.createElement(Qp,{prefixCls:E,marks:Ce,onClick:i})))}));const W6=pv.forwardRef(((e,t)=>{function n(){gj.cancel(i.current),i.current=null}const{open:r}=e,o=pv.useRef(null),i=pv.useRef(null);return pv.useEffect((()=>(r?i.current=gj((()=>{var e;null===(e=o.current)||void 0===e||e.forceAlign(),i.current=null})):n(),n)),[r,e.title]),pv.createElement(A4,Object.assign({ref:Bs(o,t)},e))})),V6=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},JZ(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new kj(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},G6=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[a]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[l]:(3*r-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:o,[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-i)/2}}},q6=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},G6(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},X6=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},G6(e,!1)),{height:"100%"})}},K6=Ml("Slider",(e=>{const t=Rl(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[V6(t),q6(t),X6(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));CA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",Q6=zJ.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:p}=e,f=CA(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:m,slider:g,getPrefixCls:h,getPopupContainer:b}=zJ.useContext(KZ),y=zJ.useContext(l0),v=null!=s?s:y,[_,w]=zJ.useState({}),k=(e,t)=>{w((n=>Object.assign(Object.assign({},n),{[e]:t})))},x=(e,t)=>e||(t?"rtl"===m?"left":"right":"top"),S=h("slider",n),[C,E]=K6(S),D=xZ(o,null==g?void 0:g.className,i,{[`${S}-rtl`]:"rtl"===m},E);"rtl"!==m||f.vertical||(f.reverse=!f.reverse);const[O,j]=zJ.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),$=Object.assign(Object.assign({},null==g?void 0:g.style),a);return C(zJ.createElement(SA,Object.assign({},f,{step:f.step,range:O,draggableTrack:j,className:D,style:$,disabled:v,ref:t,prefixCls:S,handleRender:(t,n)=>{var r;const{index:o,dragging:i}=n,{tooltip:a={},vertical:s}=e,f=Object.assign({},a),{open:m,placement:g,getPopupContainer:y,prefixCls:v,formatter:w}=f;let C;C=w||null===w?w:c||null===c?c:Y6;const E=null!==(r=null!=m?m:u)&&void 0!==r?r:void 0===m&&!!C&&(_[o]||i),D=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>k(o,!0),onMouseLeave:()=>k(o,!1)}),O=h("tooltip",null!=v?v:l);return zJ.createElement(W6,{prefixCls:O,title:C?C(n.value):"",open:E,placement:x(null!=g?g:p,s),key:o,overlayClassName:`${S}-tooltip`,getPopupContainer:y||d||b},zJ.cloneElement(t,D))}})))}));EA=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],DA=pv.forwardRef((function(e,t){function n(e,t){var n=y;return c||(v(n=e),null==m||m(n,t)),n}var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,f=e.onClick,m=e.onChange,g=e.onKeyDown,h=Ei(e,EA),b=Va(Al(!1,{value:s,defaultValue:l}),2),y=b[0],v=b[1],_=xZ(i,a,(Ci(r={},"".concat(i,"-checked"),y),Ci(r,"".concat(i,"-disabled"),c),r));return pv.createElement("button",fa({},h,{type:"button",role:"switch","aria-checked":y,disabled:c,className:_,ref:t,onKeyDown:function(e){e.which===S$.LEFT?n(!1,e):e.which===S$.RIGHT&&n(!0,e),null==g||g(e)},onClick:function(e){var t=n(!y,e);null==f||f(t,e)}}),u,pv.createElement("span",{className:"".concat(i,"-inner")},pv.createElement("span",{className:"".concat(i,"-inner-checked")},d),pv.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))})),DA.displayName="Switch";const J6=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},Z6=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},e7=e=>{const{componentCls:t,motion:n}=e,r=`${t}-handle`;return{[t]:{[r]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${r}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${r}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},t7=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-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"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:2*-e.switchPadding}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:2*-e.switchPadding,marginInlineEnd:2*e.switchPadding}}}}}},n7=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},JZ(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),n0(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"}})}},r7=Ml("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=t-4,o=n-4,i=Rl(e,{switchMinWidth:2*r+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+2+4,switchPadding:2,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:2*o+4,switchHeightSM:n,switchInnerMarginMinSM:o/2,switchInnerMarginMaxSM:o+2+4,switchPinSizeSM:o,switchHandleShadow:`0 2px 4px 0 ${new kj("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[n7(i),t7(i),e7(i),Z6(i),J6(i)]}));OA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=OA(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:p}=pv.useContext(KZ),f=pv.useContext(l0),m=(null!=o?o:f)||i,g=u("switch",n),h=pv.createElement("div",{className:`${g}-handle`},i&&pv.createElement(H0,{className:`${g}-loading-icon`})),[b,y]=r7(g),v=t1(r),_=xZ(null==p?void 0:p.className,{[`${g}-small`]:"small"===v,[`${g}-loading`]:i,[`${g}-rtl`]:"rtl"===d},a,s,y),w=Object.assign(Object.assign({},null==p?void 0:p.style),l);return b(pv.createElement(e1,null,pv.createElement(DA,Object.assign({},c,{prefixCls:g,className:_,style:w,disabled:m,ref:t,loadingIcon:h}))))}));o7.__ANT_SWITCH=!0;const i7=o7,a7=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},s7=e=>Ll(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),l7=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},JZ(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},c7=Ml("Tag",(e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=Rl(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[l7(o),s7(o),a7(o,"success","Success"),a7(o,"processing","Info"),a7(o,"error","Error"),a7(o,"warning","Warning")]}),(e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText})));jA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:p=!0}=e,f=$A(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:m,direction:g,tag:h}=pv.useContext(KZ),[b,y]=pv.useState(!0);pv.useEffect((()=>{"visible"in f&&y(f.visible)}),[f.visible]);const v=yd(l)||function(e){return N4.includes(e)}(l),_=Object.assign(Object.assign({backgroundColor:l&&!v?l:void 0},null==h?void 0:h.style),i),w=m("tag",n),[k,x]=c7(w),S=xZ(w,null==h?void 0:h.className,{[`${w}-${l}`]:v,[`${w}-has-color`]:l&&!v,[`${w}-hidden`]:!b,[`${w}-rtl`]:"rtl"===g,[`${w}-borderless`]:!p},r,o,x),C=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||y(!1)},[,E]=Mc(d,u,(e=>null===e?pv.createElement(O0,{className:`${w}-close-icon`,onClick:C}):pv.createElement("span",{className:`${w}-close-icon`,onClick:C},e)),null,!1),D="function"==typeof f.onClick||a&&"a"===a.type,O=s||null,j=O?pv.createElement(pv.Fragment,null,O,a&&pv.createElement("span",null,a)):a,$=pv.createElement("span",Object.assign({},f,{ref:t,className:S,style:_}),j,E);return k(D?pv.createElement(e1,null,$):$)},d7=pv.forwardRef(u7);d7.CheckableTag=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=jA(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=pv.useContext(KZ),l=s("tag",t),[c,u]=c7(l),d=xZ(l,`${l}-checkable`,{[`${l}-checkable-checked`]:r},n,u);return c(pv.createElement("span",Object.assign({},a,{className:d,onClick:e=>{null==o||o(!r),null==i||i(e)}})))};const p7=d7;PA=function(){return O4.useToken().token},IA=pv.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(TA=(NA=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}})("dark"))&&void 0!==TA&&TA.matches?"dark":"light"}),AA=function(){return pv.useContext(IA)},RA=function(){var e=PA(),t=AA(),n=t.appearance,r=t.isDarkMode;return pv.useMemo((function(){return MO(FO({token:e,css:UE,appearance:n,isDarkMode:r}))}),[e,n,r])},FA=function(){var e=PA(),t=RA();return pv.useMemo((function(){return nf(nf({},e),{},{stylish:t})}),[e,t])},MA=function(e){return of(of({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},LA=function(){var e=function(e){let t=!(arguments.length>0&&void 0!==e)||e;const n=pv.useRef({}),r=function(){const[,e]=pv.useReducer((e=>e+1),0);return e}(),o=fd();return pv.useEffect((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current}();return pv.useMemo((function(){return MA(e)}),[e])},zA=function(){var e=PA(),t={xs:"@media (max-width: ".concat(e.screenXSMax,"px)"),sm:"@media (max-width: ".concat(e.screenSMMax,"px)"),md:"@media (max-width: ".concat(e.screenMDMax,"px)"),lg:"@media (max-width: ".concat(e.screenLGMax,"px)"),xl:"@media (max-width: ".concat(e.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(e.screenXXLMin,"px)")};return pv.useMemo((function(){return MA(t)}),[e])},BA=function(e,t){return Object.entries(e).map((function(e){var n=Va(e,2),r=n[0],o=n[1],i=o;return FE(o)||(i=UE(o)),t[r]?"".concat(t[r]," {").concat(i.styles,"}"):""})).join("")},HA=["stylish","appearance","isDarkMode","prefixCls"],UA=["prefixCls"],WA=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var i=null==o?void 0:o.__BABEL_FILE_NAME__,a=!!i;return function(s){var l=n(),c=pv.useContext(r),u=HE(c.cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),d=u.cx,p=u.css,f=zA(),m=pv.useMemo((function(){var t,n,r,o,c,u,m;return e instanceof Function?(n=l.stylish,r=l.appearance,o=l.isDarkMode,c=l.prefixCls,u=Ei(l,HA),m=function(e){return BA(e,f)},Object.assign(m,f),t=e({token:u,stylish:n,appearance:r,isDarkMode:o,prefixCls:c,cx:d,css:UE,responsive:m},s)):t=e,"object"===xi(t)&&(t=FE(t)?p(t):Object.fromEntries(Object.entries(t).map((function(e){var t=Va(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===xi(r)?a?[n,p(r,"label:".concat(o))]:[n,p(r)]:[n,r]})))),t}),[s,l]);return pv.useMemo((function(){var e=l.prefixCls,t=Ei(l,UA);return{styles:m,cx:d,theme:t,prefixCls:e}}),[m,l])}}},VA=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return vv.jsx(t.Provider,{value:e.theme,children:e.children})}},GA=$D,qA=DD,XA=function(e){if(!e.ThemeContext)throw"ThemeContext is required. Please check your config.";qA=e.ThemeContext,GA=VA(e)};const f7=pv.memo((function(e){var t,n=e.children,r=e.theme,o=e.prefixCls,i=e.getStaticInstance,a=e.staticInstanceConfig,s=AA(),l=s.appearance,c=s.isDarkMode,u=Va(j6.useMessage(null==a?void 0:a.message),2),d=u[0],p=u[1],f=Va(L6.useNotification(null==a?void 0:a.notification),2),m=f[0],g=f[1],h=Va(P6.useModal(),2),b=h[0],y=h[1];return pv.useEffect((function(){null==i||i({message:d,modal:b,notification:m})}),[]),t=pv.useMemo((function(){var e,t=c?O4.darkAlgorithm:O4.defaultAlgorithm,n=r;return"function"==typeof r&&(n=r(l)),n?(e=n.algorithm?n.algorithm instanceof Array?n.algorithm:[n.algorithm]:[],sf(sf({},n),{},{algorithm:n.algorithm?[t].concat(ka(e)):t})):{algorithm:t}}),[r,c]),vv.jsxs(_0,{prefixCls:o,theme:t,children:[p,g,y,n]})}));KA=function(e){"function"==typeof pv.startTransition?pv.startTransition(e):e()},QA=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){NA("dark").matches?n("dark"):n("light")},i=function(){NA("dark").matches?r("dark"):r("light")};return pv.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),YA||(YA=NA("dark")),YA.addEventListener("change",o),function(){YA.removeEventListener("change",o)};KA((function(){n(t)}))}),[t]),pv.useLayoutEffect((function(){return YA||(YA=NA("dark")),YA.addEventListener("change",i),function(){YA.removeEventListener("change",i)}}),[]),null};const m7=pv.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,d=Va(cf("light",{value:a,defaultValue:null!=s?s:c.themeMode,onChange:function(e){return null==l?void 0:l(e)}}),2),p=d[0],f=d[1],m=Va(cf("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==i?void 0:i(e)}}),2),g=m[0],h=m[1],b=Va(pv.useState(null!==(t=NA("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=b[0],v=b[1],_=Va(pv.useState(!1),2),w=_[0],k=_[1];return pv.useEffect((function(){KA((function(){k(!0)}))}),[]),vv.jsxs(IA.Provider,{value:{themeMode:p,setThemeMode:f,appearance:g,setAppearance:h,isDarkMode:"dark"===g,browserPrefers:y},children:[w&&vv.jsx(QA,{themeMode:p,setAppearance:h,setBrowserPrefers:v}),n]})}));JA=["stylish"];const g7=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,a=void 0===i?"ant":i,s=e.StyledThemeProvider,l=AA(),c=l.appearance,u=l.isDarkMode,d=FA(),p=d.stylish,f=Ei(d,JA),m=pv.useMemo((function(){return r?r instanceof Function?r({token:f,appearance:c,isDarkMode:u}):r:{}}),[r,f,c]),g=pv.useMemo((function(){return df(df({},m),n instanceof Function?n({token:f,appearance:c,isDarkMode:u}):n)}),[m,n,f,c]),h=pv.useMemo((function(){return o?o({token:df(df({},f),g),stylish:p,appearance:c,isDarkMode:u,css:UE}):{}}),[o,f,g,p,c]),b=pv.useMemo((function(){return df(df({},h),p)}),[h,p]),y=df(df(df(df({},f),g),{},{stylish:b},l),{},{prefixCls:a});return vv.jsx(s,{theme:y,children:t})};ZA=function(e){var t=e.styledConfig?VA(e.styledConfig):void 0,n=e.StyleEngineContext;return pv.memo((function(r){var o=r.children,i=r.customToken,a=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,d=r.appearance,p=r.defaultAppearance,f=r.onAppearanceChange,m=r.themeMode,g=r.defaultThemeMode,h=r.onThemeModeChange,b=r.styled,y=pv.useContext(n),v=y.prefixCls,_=y.StyledThemeContext,w=y.CustomThemeContext,k=pv.useContext(w),x=b?VA(b):t||GA,S=c||v;return vv.jsx(n.Provider,{value:{prefixCls:S,StyledThemeContext:(null==b?void 0:b.ThemeContext)||_||qA,CustomThemeContext:w},children:vv.jsx(m7,{themeMode:m,defaultThemeMode:g,onThemeModeChange:h,defaultAppearance:p,appearance:d,onAppearanceChange:f,useTheme:e.useTheme,children:vv.jsx(f7,{prefixCls:S,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:vv.jsx(g7,{prefixCls:S,customToken:i,defaultCustomToken:k,customStylish:a,StyledThemeProvider:x,children:o})})})})}))},eR=function(e){return function(){var t=pv.useContext(e.StyleEngineContext),n=t.StyledThemeContext,r=t.CustomThemeContext,o=t.prefixCls,i=FA(),a=AA(),s=pv.useContext(r),l=pv.useContext(null!=n?n:qA)||{},c=pv.useMemo((function(){return ff(ff(ff(ff({},i),a),s),{},{prefixCls:o||"ant"})}),[i,a,o,s]);return l&&0!==Object.keys(l).length?l:c}},tR=new TE,"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=tR),oR=(nJ={key:"acss",speedy:!1},mJ=gf(gf({},nJ),{},{key:null!==(rJ=nJ.key)&&void 0!==rJ?rJ:"zcss",speedy:null!==(oJ=nJ.speedy)&&void 0!==oJ&&oJ}),gJ=DE({key:mJ.key,speedy:mJ.speedy,container:mJ.container}),hJ=WE(gJ),bJ=RO(hJ),gJ.cache=tR.add(gJ.cache),aJ=null===(iJ=mJ.styled)||void 0===iJ?void 0:iJ.ThemeContext,lJ=eR({StyleEngineContext:sJ=pv.createContext({CustomThemeContext:pv.createContext(mJ.customToken?mJ.customToken:{}),StyledThemeContext:aJ,prefixCls:null==mJ?void 0:mJ.prefixCls})}),cJ=WA({hashPriority:mJ.hashPriority,useTheme:lJ,EmotionContext:hJ}),uJ=ND(lJ),dJ=TD(cJ),pJ=ZA({styledConfig:mJ.styled,StyleEngineContext:sJ,useTheme:lJ}),fJ=HE(gJ.cache,{hashPriority:mJ.hashPriority}),nR={createStyles:cJ,createGlobalStyle:uJ,createStylish:dJ,css:UE,cx:fJ.cx,keyframes:gJ.keyframes,injectGlobal:gJ.injectGlobal,styleManager:gJ,useTheme:lJ,StyleProvider:bJ,ThemeProvider:pJ}).createGlobalStyle,iR=nR.css,aR=nR.cx,sR=nR.keyframes,lR=nR.ThemeProvider,cR=nR.StyleProvider,uR=nR.useTheme,fR=(rR=nR.createStyles)((function(e){var t=e.css,n=sR(dR||(dR=Di(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(pR||(pR=Di(["\n animation: "," 1s linear infinite;\n "])),n)}})),mR=["icon","size","color","fill","className","spin"],gR=function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}};const h7=pv.memo((function(e){var t=e.icon,n=e.size,r=e.color,o=e.fill,i=e.className,a=e.spin,s=Ei(e,mR),l=fR(),c=l.styles,u=l.cx,d=t,p=pv.useMemo((function(){return gR(n)}),[n]),f=p.fontSize,m=p.strokeWidth;return vv.jsx("span",bf(bf({className:u("anticon",a&&c.spin,i),role:"img"},s),{},{children:vv.jsx(d,{color:r,fill:null!=o?o:"transparent",focusable:!1,height:f,size:f,strokeWidth:m,width:f})}))}));bR=rR((function(e,t){var n,r,o=e.token,i=e.isDarkMode,a=t.offset,s=(null!==(n=null==a?void 0:a.x)&&void 0!==n?n:0)+"px",l=(null!==(r=null==a?void 0:a.y)&&void 0!==r?r:0)+"px",c=t.outside?"0":".1",u=t.size+"px";return(0,e.css)(hR||(hR=Di(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),c,u,s,l,i?o.colorText:"#fff",i?"transparent":o.colorTextQuaternary)})),yR=["className","size"],vR=function(){var e=Va(pv.useState(),2),t=e[0],n=e[1],r=Va(pv.useState(!0),2),o=r[0],i=r[1],a=pv.useRef();return pv.useEffect((function(){var e,t,r;if(a.current&&a.current.parentElement)return t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),i(!1)},r=function(){i(!0)},(e=a.current.parentElement).addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}),[]),[t,o,a]};const b7=pv.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Ei(e,yR),i=Va(vR(),3),a=i[2],s=bR({offset:i[0],outside:i[1],size:r});return vv.jsx("div",function(e){var t,n;for(t=1;ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,r=Array(i);++o-1},SM=function(e,t){var n=this.__data__,r=_M(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Zf.prototype.clear=function(){this.__data__=[],this.size=0},Zf.prototype.delete=wM,Zf.prototype.get=kM,Zf.prototype.has=xM,Zf.prototype.set=SM,EM=CM=Zf,DM=function(){this.__data__=new EM,this.size=0},OM=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},jM=function(e){return this.__data__.get(e)},$M=function(e){return this.__data__.has(e)},PM=lM,NM=qF,TM=function(e){if(!NM(e))return!1;var t=PM(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},FQ=/[^.]+$/.exec((IM=YF["__core-js_shared__"])&&IM.keys&&IM.keys.IE_PROTO||""),AM=FQ?"Symbol(src)_1."+FQ:"",RM=Function.prototype.toString,MM=TM,LM=function(e){return!!AM&&AM in e},zM=qF,BM=FM=function(e){if(null!=e){try{return RM.call(e)}catch(VQ){}try{return e+""}catch(VQ){}}return""},HM=/[\\^$.*+?()[\]{}|]/g,UM=/^\[object .+?Constructor\]$/,WM=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(HM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),VM=function(e,t){return null==e?void 0:e[t]},GM=function(e){return!(!zM(e)||LM(e))&&(MM(e)?WM:UM).test(BM(e))},qM=VM,XM=function(e,t){var n=qM(e,t);return GM(n)?n:void 0},KM=XM(YF,"Map"),YM=XM(Object,"create"),JM=QM=YM,ZM=QM,eL=Object.prototype.hasOwnProperty,tL=QM,nL=Object.prototype.hasOwnProperty,rL=QM,oL=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},iL=function(e){var t,n=this.__data__;return ZM?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:eL.call(n,e)?n[e]:void 0},aL=function(e){var t=this.__data__;return tL?void 0!==t[e]:nL.call(t,e)},sL=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rL&&void 0===t?"__lodash_hash_undefined__":t,this},em.prototype.clear=function(){this.__data__=JM?JM(null):{},this.size=0},em.prototype.delete=oL,em.prototype.get=iL,em.prototype.has=aL,em.prototype.set=sL,lL=em,cL=CM,uL=KM,dL=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},fL=pL=function(e,t){var n=e.__data__;return dL(t)?n["string"==typeof t?"string":"hash"]:n.map},mL=pL,gL=pL,hL=pL,bL=function(e){var t=fL(this,e).delete(e);return this.size-=t?1:0,t},yL=function(e){return mL(this,e).get(e)},vL=function(e){return gL(this,e).has(e)},_L=function(e,t){var n=hL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},tm.prototype.clear=function(){this.size=0,this.__data__={hash:new lL,map:new(uL||cL),string:new lL}},tm.prototype.delete=bL,tm.prototype.get=yL,tm.prototype.has=vL,tm.prototype.set=_L,kL=CM,xL=KM,SL=wL=tm,CL=CM,EL=OM,DL=jM,OL=$M,jL=function(e,t){var n,r=this.__data__;if(r instanceof kL){if(n=r.__data__,!xL||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new SL(n)}return r.set(e,t),this.size=r.size,this},nm.prototype.clear=DM,nm.prototype.delete=EL,nm.prototype.get=DL,nm.prototype.has=OL,nm.prototype.set=jL,$L=nm,PL=wL,NL=function(e){return this.__data__.has(e)},rm.prototype.add=rm.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},rm.prototype.has=NL,AL=TL=rm,RL=function(e,t){for(var n=-1,r=null==e?0:e.length;++ng))return!1;if(a=i.get(e),s=i.get(t),a&&s)return a==t&&s==e;for(l=-1,c=!0,u=2&n?new AL:void 0,i.set(e,t),i.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},_z=cM,(wz={})["[object Float32Array]"]=wz["[object Float64Array]"]=wz["[object Int8Array]"]=wz["[object Int16Array]"]=wz["[object Int32Array]"]=wz["[object Uint8Array]"]=wz["[object Uint8ClampedArray]"]=wz["[object Uint16Array]"]=wz["[object Uint32Array]"]=!0,wz["[object Arguments]"]=wz["[object Array]"]=wz["[object ArrayBuffer]"]=wz["[object Boolean]"]=wz["[object DataView]"]=wz["[object Date]"]=wz["[object Error]"]=wz["[object Function]"]=wz["[object Map]"]=wz["[object Number]"]=wz["[object Object]"]=wz["[object RegExp]"]=wz["[object Set]"]=wz["[object String]"]=wz["[object WeakMap]"]=!1,kz=function(e){return _z(e)&&vz(e.length)&&!!wz[yz(e)]},xz=function(e){return function(t){return e(t)}},function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&XF.process,i=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(VQ){}}();e.exports=i}(Sz={exports:{}},Sz.exports),Cz=kz,Oz=(Dz=(Ez=Sz.exports)&&Ez.isTypedArray)?xz(Dz):Cz,$z=oz,Pz=pz,Nz=KL,Tz=mz,Iz=hz,Az=jz=Oz,Rz=Object.prototype.hasOwnProperty,Fz=function(e,t){var n,r=Nz(e),o=!r&&Pz(e),i=!r&&!o&&Tz(e),a=!r&&!o&&!i&&Az(e),s=r||o||i||a,l=s?$z(e.length,String):[],c=l.length;for(n in e)!t&&!Rz.call(e,n)||s&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||Iz(n,c))||l.push(n);return l},Mz=Object.prototype,Lz=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Mz)},yJ=Object.keys,vJ=Object,zz=Lz,Bz=function(e){return yJ(vJ(e))},Hz=Object.prototype.hasOwnProperty,Uz=function(e){var t,n;if(!zz(e))return Bz(e);for(n in t=[],Object(e))Hz.call(e,n)&&"constructor"!=n&&t.push(n);return t},Wz=TM,Vz=bz,Gz=Fz,qz=Uz,Xz=function(e){return null!=e&&Vz(e.length)&&!Wz(e)},Kz=function(e){return Xz(e)?Gz(e):qz(e)},Yz=JL,Qz=rz,Jz=Kz,Zz=function(e){return Yz(e,Jz,Qz)},eB=Zz,tB=Object.prototype.hasOwnProperty,nB=function(e,t,n,r,o,i){var a,s,l,c,u,d,p,f,m,g,h,b=1&n,y=eB(e),v=y.length;if(v!=eB(t).length&&!b)return!1;for(a=v;a--;)if(s=y[a],!(b?s in t:tB.call(t,s)))return!1;if(l=i.get(e),c=i.get(t),l&&c)return l==t&&c==e;for(u=!0,i.set(e,t),i.set(t,e),d=b;++a .ant-menu-item-only-child,\n .ant-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .ant-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .ant-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .ant-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .ant-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .ant-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .ant-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),n.colorText,n.colorFill,n.colorText,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFillSecondary,n.colorFillSecondary,n.borderRadius,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),oH=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];const A7=pv.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,i=e.setOpened,a=e.className,s=e.headerHeight,l=void 0===s?64:s,c=Ei(e,oH),u=rH(l),d=u.styles;return vv.jsxs(I7,fm(fm({className:(0,u.cx)(d.container,a),onClick:function(){i(!o)}},c),{},{children:[vv.jsx(v7,{icon:o?bZ:aZ,size:"site"}),vv.jsxs(W8,{bodyStyle:{padding:0},className:d.drawer,closeIcon:void 0,headerStyle:{display:"none"},open:o,placement:"left",rootClassName:d.drawerRoot,width:"100vw",children:[vv.jsx(t3,{className:d.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),vv.jsx("div",{className:d.fillRect})]})]}))}));iH=["icon","children","size"],lH=rR((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(aH||(aH=Di(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(sH||(sH=Di(["\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),r.colorTextSecondary,r.colorFillSecondary,r.borderRadius,r.colorText,r.colorFill))}}));const R7=pv.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,i=Ei(e,iH),a=lH(),s=a.styles;return vv.jsx(p7,gm(gm({bordered:!1,className:(0,a.cx)(s.tag,"small"===o&&s.small)},i),{},{children:vv.jsxs(QB,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}));cH={exports:{}},function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(uH={exports:{}}),dH=uH.exports,function(e){function t(){function r(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function o(e,t,n,r){var o=Object.create((t&&t.prototype instanceof a?t:a).prototype),i=new g(r||[]);return w(o,"_invoke",{value:d(e,n,i)}),o}function i(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function a(){}function s(){}function l(){}function c(e){["next","throw","return"].forEach((function(t){r(e,t,(function(e){return this._invoke(t,e)}))}))}function u(e,t){function r(o,a,s,l){var c,u,d=i(e[o],e,a);if("throw"!==d.type)return(u=(c=d.arg).value)&&"object"==n(u)&&_.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(u).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,l)}));l(d.arg)}var o;w(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function d(e,t,n){var r="suspendedStart";return function(o,a){var s,l,c;if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){if((s=n.delegate)&&(l=p(s,n))){if(l===E)continue;return l}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);if(r="executing","normal"===(c=i(e,t,n)).type){if(r=n.done?"completed":"suspendedYield",c.arg===E)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function p(e,t){var n,r,o=t.method,a=e.iterator[o];return void 0===a?(t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,p(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),E):"throw"===(n=i(a,e.iterator,t.arg)).type?(t.method="throw",t.arg=n.arg,t.delegate=null,E):(r=n.arg)?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,E):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,E)}function f(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 m(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){var t,n,r;if(e){if(t=e[x])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(i=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(a=_.call(o,"catchLoc"),s=_.call(o,"finallyLoc"),a&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),m(n),E},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,m(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),E}},y}var n=dH.default;e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(cH),fH=pH=(0,cH.exports)();try{regeneratorRuntime=pH}catch(koe){"object"==typeof globalThis?globalThis.regeneratorRuntime=pH:Function("r","regeneratorRuntime = r")(pH)}const F7=t(fH);"undefined"!=typeof globalThis?globalThis:void 0!=={}||("undefined"!=typeof global?global:"undefined"!=typeof self&&self),WQ=()=>{return e={770:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const o=r(n(418));let i=null,a=!1;class s{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n=55296&&o<=56319&&n+1=56320&&t<=57343&&(i=65536+(o-55296<<10)|t-56320,a=!0)}t+=i<=127?1:i<=2047?2:i<=65535?3:4,a&&n++}return t}constructor(e){const t=e.length,n=s._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);const i=r?new Uint32Array(n+1):null;r&&(i[n]=t);const a=new Uint8Array(n);let l=0;for(let s=0;s=55296&&n<=56319&&s+1=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?i[l+0]=s:c<=2047?(i[l+0]=s,i[l+1]=s):c<=65535?(i[l+0]=s,i[l+1]=s,i[l+2]=s):(i[l+0]=s,i[l+1]=s,i[l+2]=s,i[l+3]=s)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(1984&c)>>>6,a[l++]=128|(63&c)>>>0):c<=65535?(a[l++]=224|(61440&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0):(a[l++]=240|(1835008&c)>>>18,a[l++]=128|(258048&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!i)throw new Error("Must invoke loadWASM first.");this._onigBinding=i,this.content=e;const t=new s(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=i._omalloc(1e4)),l._sharedPtrInUse=!0,i.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(i)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!i)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let l=0,c=e.length;lWebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}var s;return d=new Promise(((e,t)=>{r=e,a=t})),function(e,t,n,r){(0,o.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{i=e,n()}))}(t,n,r,a),d},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){a=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document,function(e){function t(e,t,n){var r,o,i,a,s,l,c;for(r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&w)return w.decode(e.subarray(t,o));for(i="";t>10,56320|1023&c))):i+=String.fromCharCode((31&a)<<6|s)):i+=String.fromCharCode(a);return i}function n(e){y=e,I.HEAP8=new Int8Array(e),I.HEAP16=new Int16Array(e),I.HEAP32=new Int32Array(e),I.HEAPU8=v=new Uint8Array(e),I.HEAPU16=new Uint16Array(e),I.HEAPU32=_=new Uint32Array(e),I.HEAPF32=new Float32Array(e),I.HEAPF64=new Float64Array(e)}function r(e){I.onAbort&&I.onAbort(e),h(e="Aborted("+e+")"),b=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw u(t),t}function o(e){return e.startsWith(j)}function i(e){for(;e.length>0;)e.shift()(I)}function a(e){try{return m.grow(e-y.byteLength+65535>>>16),n(m.buffer),1}catch(t){}}function s(e,n){var r=$[e];0===n||10===n?((1===e?g:h)(t(r,0)),r.length=0):r.push(n)}function l(){function e(){P||(P=!0,I.calledRun=!0,b||(i(x),c(I),I.onRuntimeInitialized&&I.onRuntimeInitialized(),function(){if(I.postRun)for("function"==typeof I.postRun&&(I.postRun=[I.postRun]);I.postRun.length;)e=I.postRun.shift(),S.unshift(e);var e;i(S)}()))}C>0||(function(){if(I.preRun)for("function"==typeof I.preRun&&(I.preRun=[I.preRun]);I.preRun.length;)e=I.preRun.shift(),k.unshift(e);var e;i(k)}(),C>0||(I.setStatus?(I.setStatus("Running..."),setTimeout((function(){setTimeout((function(){I.setStatus("")}),1),e()}),1)):e()))}var c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D,O,j,$,P,N,T,I=void 0!==(e=e||{})?e:{};if(I.ready=new Promise((function(e,t){c=e,u=t})),p=Object.assign({},I),d=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e){e||r(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print),g=I.print||void 0,h=I.printErr||void 0,Object.assign(I,p),p=null,I.wasmBinary&&(f=I.wasmBinary),"object"!=typeof WebAssembly&&r("no native wasm support detected"),b=!1,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,k=[],x=[],S=[],C=0,E=null,j="data:application/octet-stream;base64,",o(D="onig.wasm")||(T=D,D=I.locateFile?I.locateFile(T,""):""+T),O="undefined"!=typeof dateNow?dateNow:()=>performance.now(),$=[null,[],[]],N={emscripten_get_now:O,emscripten_memcpy_big:function(e,t,n){v.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n,r,o=v.length,i=2147483648;if((e>>>=0)>i)return!1;for(n=1;n<=4;n*=2)if(r=o*(1+.2/n),r=Math.min(r,e+100663296),a(Math.min(i,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0;return!1},fd_write:function(e,t,n,r){var o,i,a,l,c;for(o=0,i=0;i>2],l=_[t+4>>2],t+=8,c=0;c>2]=o,0}},function(){function e(e){I.asm=e.exports,n((m=I.asm.memory).buffer),function(e){x.unshift(e)}(I.asm.__wasm_call_ctors),function(){if(C--,I.monitorRunDependencies&&I.monitorRunDependencies(C),0==C&&E){var e=E;E=null,e()}}()}function t(t){e(t.instance)}function i(e){return Promise.resolve().then((function(){return function(e){try{if(e==D&&f)return new Uint8Array(f);if(d)return d(e);throw"both async and sync fetching of the wasm failed"}catch(t){r(t)}}(D)})).then((function(e){return WebAssembly.instantiate(e,a)})).then((function(e){return e})).then(e,(function(e){h("failed to asynchronously prepare wasm: "+e),r(e)}))}var a={env:N,wasi_snapshot_preview1:N};if(C++,I.monitorRunDependencies&&I.monitorRunDependencies(C),I.instantiateWasm)try{return I.instantiateWasm(a,e)}catch(s){h("Module.instantiateWasm callback failed with error: "+s),u(s)}(f||"function"!=typeof WebAssembly.instantiateStreaming||o(D)||"function"!=typeof fetch?i(t):fetch(D,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,a).then(t,(function(e){return h("wasm streaming compile failed: "+e),h("falling back to ArrayBuffer instantiation"),i(t)}))}))).catch(u)}(),I.___wasm_call_ctors=function(){return(I.___wasm_call_ctors=I.asm.__wasm_call_ctors).apply(null,arguments)},I.___errno_location=function(){return(I.___errno_location=I.asm.__errno_location).apply(null,arguments)},I._omalloc=function(){return(I._omalloc=I.asm.omalloc).apply(null,arguments)},I._ofree=function(){return(I._ofree=I.asm.ofree).apply(null,arguments)},I._getLastOnigError=function(){return(I._getLastOnigError=I.asm.getLastOnigError).apply(null,arguments)},I._createOnigScanner=function(){return(I._createOnigScanner=I.asm.createOnigScanner).apply(null,arguments)},I._freeOnigScanner=function(){return(I._freeOnigScanner=I.asm.freeOnigScanner).apply(null,arguments)},I._findNextOnigScannerMatch=function(){return(I._findNextOnigScannerMatch=I.asm.findNextOnigScannerMatch).apply(null,arguments)},I._findNextOnigScannerMatchDbg=function(){return(I._findNextOnigScannerMatchDbg=I.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},I.stackSave=function(){return(I.stackSave=I.asm.stackSave).apply(null,arguments)},I.stackRestore=function(){return(I.stackRestore=I.asm.stackRestore).apply(null,arguments)},I.stackAlloc=function(){return(I.stackAlloc=I.asm.stackAlloc).apply(null,arguments)},I.dynCall_jiji=function(){return(I.dynCall_jiji=I.asm.dynCall_jiji).apply(null,arguments)},I.UTF8ToString=function(e,n){return e?t(v,e,n):""},E=function e(){P||l(),P||(E=e)},I.preInit)for("function"==typeof I.preInit&&(I.preInit=[I.preInit]);I.preInit.length>0;)I.preInit.pop()();return l(),e.ready});e.exports=t}},t={},function n(r){var o,i=t[r];return void 0!==i?i.exports:(o=t[r]={exports:{}},e[r].call(o.exports,o,o.exports,n),o.exports)}(770);var e,t},(mH={exports:{}}).exports=WQ(),gH=mH.exports,(hH={exports:{}}).exports=(VQ={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!1},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){n.getLanguageId(e),n.getTokenType(e),n.getFontStyle(e),n.getForeground(e),n.getBackground(e)},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,o,i,a,s){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,d=n.getFontStyle(e),p=n.getForeground(e),f=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==i&&(d=i),0!==a&&(p=a),0!==s&&(f=s),(l<<0|c<<8|u<<10|d<<11|p<<15|f<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class i{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new o(t,n)})),this._defaultAttributes=new o(e,8),this._embeddedLanguagesMatcher=new a(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(i.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=i,i._NULL_SCOPE_METADATA=new o(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class a{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{function r(e,t,n,r,i){const a=c.createMatchers(t,o),s=d.RuleFactory.getCompiledRuleId(n,r,i.repository);for(const o of a)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:i,priority:o.priority})}function o(e,t){if(t.length{for(let r=n;rn&&e.substr(0,n)===t&&"."===e[n]}function a(e,t){return(e=f.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=n(350),l=n(36),c=n(736),u=n(44),d=n(792),p=n(583),f=n(878),m=n(996),g=n(47);t.createGrammar=function(e,t,n,r,o,i,a,s){return new h(e,t,n,r,o,i,a,s)};class h{constructor(e,t,n,r,i,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new m.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=a(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const e=c.createMatchers(a,o);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:i[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const o=n.injections;if(o)for(let t in o)r(e,t,o[t],this,n);const i=this._grammarRepository.injections(t);i&&i.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&r(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0))for(const e of this._injections);return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(d.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[d.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=a(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let o;if(-1===this._rootId&&(this._rootId=d.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=l.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),i=this.getRule(this._rootId).getName(null,null);let a;a=i?b.createRootAndLookUpScopeName(i,r,this):b.createRoot("unknown",r),t=new y(null,this._rootId,-1,-1,!1,null,a,a)}const i=this.createOnigString(e+="\n"),a=i.content.length,s=new v(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=g._tokenizeString(this,i,o,0,t,s,!0,r);return u.disposeOnigString(i),{lineLength:a,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}t.Grammar=h;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new p.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new p.ScopeStack(null,e),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(t,r,i);return new b(null,o,a)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,i=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,i=n.backgroundId),l.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,o,i)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const o of n)r=b._pushAttributed(r,o,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),o=e.scopePath.push(t),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(e.tokenAttributes,r,i);return new b(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,n,r,o,i,a,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=s,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,i,a){return new y(this,e,t,n,r,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):c.createMatchers(e,o).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>c.createMatchers(e,o).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class v{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=s.DebugFlags.InDebugMode?t:null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e.tokenAttributes,o=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(r=l.EncodedTokenAttributes.set(r,0,l.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(r=l.EncodedTokenAttributes.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const t=e.getScopeNames();for(let e=0;e0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r{function r(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof c?i({baseGrammar:s,selfGrammar:a},r):o(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const o of l)r.add(new c(o))}function o(e,t,n){t.repository&&t.repository[e]&&a([t.repository[e]],t,n)}function i(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&a(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&a(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function a(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?l.mergeObjects({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&a(r.patterns,{...t,repository:e},n);const d=r.include;if(!d)continue;const p=s(d);switch(p.kind){case 0:i({...t,selfGrammar:t.baseGrammar},n);break;case 1:i(t,n);break;case 2:o(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const a={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===p.kind?o(p.ruleName,a,n):i(a,n)}else n.add(4===p.kind?new u(p.scopeName,p.ruleName):new c(p.scopeName))}}}function s(e){if("$base"===e)return new p;if("$self"===e)return new f;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new m(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new h(n,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const l=n(878);class c{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=c;class u{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=u;class d{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}t.ExternalReferenceCollector=d,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new c(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new d;for(const n of e)r(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof c){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class f{constructor(){this.kind=1}}t.SelfReference=f;class m{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=m;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class h{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}t.TopLevelRepositoryReference=h,t.parseInclude=s},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{function r(e,t,n,r,a,c,f,m){function g(){const i=function(e,t,n,r,i,a){const s=function(e,t,n,r,i,a){const s=i.getRule(e),{ruleScanner:c,findOptions:u}=o(s,e,i.endRule,n,r===a);l.DebugFlags.InDebugMode&&d.performanceNow();const p=c.findNextMatchSync(t,r,u);return l.DebugFlags.InDebugMode&&d.performanceNow(),p?{captureIndices:p.captureIndices,matchedRuleId:p.ruleId}:null}(e,t,n,r,i,a),c=e.getInjections();if(0===c.length)return s;const u=function(e,t,n,r,i,a,s){let l,c=Number.MAX_VALUE,u=null,d=0;const p=a.contentNameScopesList.getScopeNames();for(let f=0,m=e.length;f=c)&&(c=y,u=b.captureIndices,l=b.ruleId,d=a.priority,c===i))break}return u?{priorityMatch:-1===d,captureIndices:u,matchedRuleId:l}:null}(c,e,t,n,r,i,a);if(!u)return s;if(!s)return u;const p=s.captureIndices[0].start,f=u.captureIndices[0].start;return f0)&&p[0].end>r;if(f===u.endRuleId){const o=a.getRule(e);c.produce(a,p[0].start),a=a.withContentNameScopesList(a.nameScopesList),s(e,t,n,a,c,o.endCaptures,p),c.produce(a,p[0].end);const i=a;if(a=a.parent,y=i.getAnchorPos(),!m&&i.getEnterPos()===r)return c.produce(a=i,h),void(b=!0)}else{const o=e.getRule(f);c.produce(a,p[0].start);const i=a,l=o.getName(t.content,p),d=a.contentNameScopesList.pushAttributed(l,e);if(a=a.push(f,r,y,p[0].end===h,null,d,d),o instanceof u.BeginEndRule){const r=o;s(e,t,n,a,c,r.beginCaptures,p),c.produce(a,p[0].end),y=p[0].end;const l=r.getContentName(t.content,p),u=d.pushAttributed(l,e);if(a=a.withContentNameScopesList(u),r.endHasBackReferences&&(a=a.withEndRule(r.getEndWithResolvedBackReferences(t.content,p))),!m&&i.hasSameRuleAs(a))return a=a.pop(),c.produce(a,h),void(b=!0)}else if(o instanceof u.BeginWhileRule){const r=o;s(e,t,n,a,c,r.beginCaptures,p),c.produce(a,p[0].end),y=p[0].end;const l=r.getContentName(t.content,p),u=d.pushAttributed(l,e);if(a=a.withContentNameScopesList(u),r.whileHasBackReferences&&(a=a.withEndRule(r.getWhileWithResolvedBackReferences(t.content,p))),!m&&i.hasSameRuleAs(a))return a=a.pop(),c.produce(a,h),void(b=!0)}else if(s(e,t,n,a,c,o.captures,p),c.produce(a,p[0].end),a=a.pop(),!m)return a=a.safePop(),c.produce(a,h),void(b=!0)}p[0].end>r&&(r=p[0].end,n=!1)}const h=t.content.length;let b=!1,y=-1;if(f){const o=function(e,t,n,r,o,a){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let i=o;i;i=i.pop()){const t=i.getRule(e);t instanceof u.BeginWhileRule&&c.push({rule:t,stack:i})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:c,findOptions:p}=i(d.rule,e,d.stack.endRule,n,r===l),f=c.findNextMatchSync(t,r,p);if(!f){o=d.stack.pop();break}if(f.ruleId!==u.whileRuleId){o=d.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(a.produce(d.stack,f.captureIndices[0].start),s(e,t,n,d.stack,a,d.rule.whileCaptures,f.captureIndices),a.produce(d.stack,f.captureIndices[0].end),l=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}(e,t,n,r,a,c);a=o.stack,r=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const v=Date.now();for(;!b;){if(0!==m&&Date.now()-v>m)return new p(a,!0);g()}return new p(a,!1)}function o(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:a(r,o)}:{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function i(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:a(r,o)}:{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function a(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function s(e,t,n,o,i,a,s){if(0===a.length)return;const l=t.content,u=Math.min(a.length,s.length),d=[],p=s[0].end;for(let m=0;mp)break;for(;d.length>0&&d[d.length-1].endPos<=u.start;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?i.produceFromScopes(d[d.length-1].scopes,u.start):i.produce(o,u.start),t.retokenizeCapturedWithRuleId){const a=t.getName(l,s),d=o.contentNameScopesList.pushAttributed(a,e),p=t.getContentName(l,s),f=d.pushAttributed(p,e),m=o.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,f),g=e.createOnigString(l.substring(0,u.end));r(e,g,n&&0===u.start,u.start,m,i,!1,0),c.disposeOnigString(g);continue}const g=t.getName(l,s);if(null!==g){const t=(d.length>0?d[d.length-1].scopes:o.contentNameScopesList).pushAttributed(g,e);d.push(new f(t,u.end))}}for(;d.length>0;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const l=n(350),c=n(44),u=n(792),d=n(878);class p{constructor(e,t){this.stack=e,this.stoppedEarly=t}}t._tokenizeString=r;class f{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=f},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,o=e.source,i=e.pos,a=e.len,s=e.line,l=e.char;for(;;){if(i>=a)return!1;if(r=o.charCodeAt(i),32!==r&&9!==r&&13!==r){if(10!==r)break;i++,s++,l=0}else i++,l++}if(t.offset=i,t.line=s,t.char=l,34===r){for(t.type=1,i++,l++;;){if(i>=a)return!1;if(r=o.charCodeAt(i),i++,l++,92!==r){if(34===r)break}else i++,l++}t.value=o.substring(t.offset+1,i-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,i++,l++;else if(123===r)t.type=3,i++,l++;else if(93===r)t.type=4,i++,l++;else if(125===r)t.type=5,i++,l++;else if(58===r)t.type=6,i++,l++;else if(44===r)t.type=7,i++,l++;else if(110===r){if(t.type=8,i++,l++,r=o.charCodeAt(i),117!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;i++,l++}else if(116===r){if(t.type=9,i++,l++,r=o.charCodeAt(i),114!==r)return!1;if(i++,l++,r=o.charCodeAt(i),117!==r)return!1;if(i++,l++,r=o.charCodeAt(i),101!==r)return!1;i++,l++}else if(102===r){if(t.type=10,i++,l++,r=o.charCodeAt(i),97!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;if(i++,l++,r=o.charCodeAt(i),115!==r)return!1;if(i++,l++,r=o.charCodeAt(i),101!==r)return!1;i++,l++}else for(t.type=11;;){if(i>=a)return!1;if(r=o.charCodeAt(i),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;i++,l++}return t.len=i-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=i,e.line=s,e.char=l,!0}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,a){function s(){m.push(p),g.push(f)}function l(){p=m.pop(),f=g.pop()}function c(e){n(u,e)}let u=new o(e),d=new i,p=0,f=null,m=[],g=[];for(;r(u,d);){if(0===p){if(null!==f&&c("too many constructs in root"),3===d.type){f={},a&&(f.$vscodeTextmateLocation=d.toLocation(t)),s(),p=1;continue}if(2===d.type){f=[],s(),p=4;continue}c("unexpected token in root")}if(2===p){if(5===d.type){l();continue}if(7===d.type){p=3;continue}c("expected , or }")}if(1===p||3===p){if(1===p&&5===d.type){l();continue}if(1===d.type){let e=d.value;if(r(u,d)&&6===d.type||c("expected colon"),r(u,d)||c("expected value"),p=2,1===d.type){f[e]=d.value;continue}if(8===d.type){f[e]=null;continue}if(9===d.type){f[e]=!0;continue}if(10===d.type){f[e]=!1;continue}if(11===d.type){f[e]=parseFloat(d.value);continue}if(2===d.type){let t=[];f[e]=t,s(),p=4,f=t;continue}if(3===d.type){let n={};a&&(n.$vscodeTextmateLocation=d.toLocation(t)),f[e]=n,s(),p=1,f=n;continue}}c("unexpected token in dict")}if(5===p){if(4===d.type){l();continue}if(7===d.type){p=6;continue}c("expected , or ]")}if(4===p||6===p){if(4===p&&4===d.type){l();continue}if(p=5,1===d.type){f.push(d.value);continue}if(8===d.type){f.push(null);continue}if(9===d.type){f.push(!0);continue}if(10===d.type){f.push(!1);continue}if(11===d.type){f.push(parseFloat(d.value));continue}if(2===d.type){let e=[];f.push(e),s(),p=4,f=e;continue}if(3===d.type){let e={};a&&(e.$vscodeTextmateLocation=d.toLocation(t)),f.push(e),s(),p=1,f=e;continue}c("unexpected token in array")}c("unknown state")}return 0!==g.length&&c("unclosed constructs"),f};class o{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class i{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const i=n(391),a=n(50),s=n(652),l=n(583),c=n(965);o(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new s.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new i.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const i=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;i.Q.length>0;)await Promise.all(i.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),i.processQueue();return this._grammarForScopeName(e,t,n,r,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},t.INITIAL=i.StateStack.NULL,t.parseRawGrammar=a.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){function r(){if("-"===s){s=a.next();const e=r();return t=>!!e&&!e(t)}if("("===s){s=a.next();const e=function(){const e=[];let t=o();for(;t&&(e.push(t),"|"===s||","===s);){do{s=a.next()}while("|"===s||","===s);t=o()}return t=>e.some((e=>e(t)))}();return")"===s&&(s=a.next()),e}if(n(s)){const e=[];do{e.push(s),s=a.next()}while(n(s));return n=>t(e,n)}return null}function o(){const e=[];let t=r();for(;t;)e.push(t),t=r();return t=>e.every((e=>e(t)))}const i=[],a=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let s=a.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1}s=a.next()}let t=o();if(i.push({matcher:t,priority:e}),","!==s)break;s=a.next()}return i}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),i=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o.DebugFlags.InDebugMode?i.parseJSON(a,t,!0):JSON.parse(a)):(n=e,o.DebugFlags.InDebugMode?r.parseWithLocation(n,t,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,a}},69:(e,t)=>{function n(e,t,n){function r(t){if(null===n)x+=t;else for(;t>0;)10===e.charCodeAt(x)?(x++,S++,C=0):(x++,C++),t--}function o(e){null===n?x=e:r(e-x)}function i(){for(;x");u()}function f(){return 1===E||2!==E?d("unexpected "):void u()}function m(e){if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function g(e){if(isNaN(e))return d("cannot parse float");if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function h(e){if(isNaN(e))return d("cannot parse integer");if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function b(e){if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function y(e){if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function v(e){if(1===E){if(null===$)return d("missing ");D[$]=e,$=null}else 2===E?D.push(e):D=e}function _(){let e=l(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function w(e){if(e.isClosed)return"";let t=l(""),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}const k=e.length;let x=0,S=1,C=0;k>0&&65279===e.charCodeAt(0)&&(x=1);let E=0,D=null,O=[],j=[],$=null;const P=function(){if(null===$)return d("missing ");let e={};null!==n&&(e[n]={filename:t,line:S,char:C}),D[$]=e,$=null,c(1,e)},N=function(){if(null===$)return d("missing ");let e=[];D[$]=e,$=null,c(2,e)},T=function(){let e={};null!==n&&(e[n]={filename:t,line:S,char:C}),D.push(e),c(1,e)},I=function(){let e=[];D.push(e),c(2,e)};for(;x=k));){const o=e.charCodeAt(x);if(r(1),60!==o)return d("expected <");if(x>=k)return d("unexpected end of input");const l=e.charCodeAt(x);if(63===l){r(1),s("?>");continue}if(33===l){if(r(1),a("--")){s("--\x3e");continue}s(">");continue}if(47===l){if(r(1),i(),a("plist")){s(">");continue}if(a("dict")){s(">"),p();continue}if(a("array")){s(">"),f();continue}return d("unexpected closed tag")}let u=_();switch(u.name){case"dict":1===E?P():2===E?T():(D={},null!==n&&(D[n]={filename:t,line:S,char:C}),c(1,D)),u.isClosed&&p();continue;case"array":1===E?N():2===E?I():(D=[],c(2,D)),u.isClosed&&f();continue;case"key":A=w(u),1!==E?d("unexpected "):null!==$?d("too many "):$=A;continue;case"string":m(w(u));continue;case"real":g(parseFloat(w(u)));continue;case"integer":h(parseInt(w(u),10));continue;case"date":b(new Date(w(u)));continue;case"data":y(w(u));continue;case"true":w(u),v(!0);continue;case"false":w(u),v(!1);continue}if(!/^plist/.test(u.name))return d("unexpected opened tag "+u.name)}var A;return D}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,o,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,r.createGrammar(e,a,t,n,o,i,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),o=n(965),i=/\\(\d+)/,a=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class s{constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=s;class l extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}t.CaptureRule=l;class c extends s{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new m(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class d extends s{constructor(e,t,n,r,o,i,a,s,l,c){super(e,t,n,r),this._begin=new m(o,this.id),this.beginCaptures=i,this._end=new m(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&this._cachedCompiledPatterns.setSource(this.applyEndPatternLast?this._cachedCompiledPatterns.length()-1:0,t),this._cachedCompiledPatterns}}t.BeginEndRule=d;class p extends s{constructor(e,n,r,o,i,a,s,l,c){super(e,n,r,o),this._begin=new m(i,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new m(s,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class f{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new l(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((o=>{if(e.id=o,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,f._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let o=e.patterns;return void 0===o&&e.include&&(o=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,f._compilePatterns(o,t,n))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,f._compileCaptures(e.whileCaptures||e.captures,t,n),f._compilePatterns(e.patterns,t,n)):new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,f._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,f._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let o=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>o&&(o=e)}for(let e=0;e<=o;e++)r[e]=null;for(const i in e){if("$vscodeTextmateLocation"===i)continue;const o=parseInt(i,10);let a=0;e[i].patterns&&(a=f.getCompiledRuleId(e[i],t,n)),r[o]=f.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,a)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let i=0,a=e.length;ie.substring(t.start,t.end)));return a.lastIndex=0,this.source.replace(a,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],i=[],a=[],s=[];for(e=0,t=this.source.length;ee.source));this._cached=new h(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new h(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class h{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t{function r(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}function o(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,a=t.length;o1&&(d=i.slice(0,i.length-1),d.reverse()),n[r++]=new c(a,d,o,s,l,u)}}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const i=n(878);class a{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new i.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(o(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=i.strcmp(e.scope,t.scope);return 0!==n?n:(n=i.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let s=new u(t),c=new l(n,s.getId(r),s.getId(o)),f=new p(new d(0,null,-1,0,0),[]);for(let i=0,a=e.length;ifunction(e,t){if(null===t)return!0;let n=0,o=t[n];for(;e;){if(r(e.scopeName,o)){if(n++,n===t.length)return!0;o=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return t?new l(t.fontStyle,t.foreground,t.background):null}}t.Theme=a;class s{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;ne||(this.scopeDepth=e),-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=d;class p{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let o=null===n?0:n.length,i=null===r?0:r.length;if(o===i)for(let e=0;e{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;rt?1:0}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let o=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;t.RegexSource=class{static hasCaptures(e){return null!==e&&(o.lastIndex=0,o.test(e))}static replaceCaptures(e,t,n){return e.replace(o,((e,r,o,i)=>{let a=n[parseInt(r||o,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=r,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let o=0;o(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(yH||{});class L7{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){L7.getLanguageId(e),L7.getTokenType(e),L7.getFontStyle(e),L7.getForeground(e),L7.getBackground(e)}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,o,i){let a=L7.getLanguageId(e),s=L7.getTokenType(e),l=L7.getFontStyle(e),c=L7.getForeground(e),u=L7.getBackground(e);return 0!==t&&(a=t),0!==n&&(s=8===n?0:n),-1!==r&&(l=r),0!==o&&(c=o),0!==i&&(u=i),(a<<0|s<<8|l<<11|(L7.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}(qQ=vH||(vH={}))[qQ.lineFeed=10]="lineFeed",qQ[qQ.carriageReturn=13]="carriageReturn",qQ[qQ.space=32]="space",qQ[qQ._0=48]="_0",qQ[qQ._1=49]="_1",qQ[qQ._2=50]="_2",qQ[qQ._3=51]="_3",qQ[qQ._4=52]="_4",qQ[qQ._5=53]="_5",qQ[qQ._6=54]="_6",qQ[qQ._7=55]="_7",qQ[qQ._8=56]="_8",qQ[qQ._9=57]="_9",qQ[qQ.a=97]="a",qQ[qQ.b=98]="b",qQ[qQ.c=99]="c",qQ[qQ.d=100]="d",qQ[qQ.e=101]="e",qQ[qQ.f=102]="f",qQ[qQ.g=103]="g",qQ[qQ.h=104]="h",qQ[qQ.i=105]="i",qQ[qQ.j=106]="j",qQ[qQ.k=107]="k",qQ[qQ.l=108]="l",qQ[qQ.m=109]="m",qQ[qQ.n=110]="n",qQ[qQ.o=111]="o",qQ[qQ.p=112]="p",qQ[qQ.q=113]="q",qQ[qQ.r=114]="r",qQ[qQ.s=115]="s",qQ[qQ.t=116]="t",qQ[qQ.u=117]="u",qQ[qQ.v=118]="v",qQ[qQ.w=119]="w",qQ[qQ.x=120]="x",qQ[qQ.y=121]="y",qQ[qQ.z=122]="z",qQ[qQ.A=65]="A",qQ[qQ.B=66]="B",qQ[qQ.C=67]="C",qQ[qQ.D=68]="D",qQ[qQ.E=69]="E",qQ[qQ.F=70]="F",qQ[qQ.G=71]="G",qQ[qQ.H=72]="H",qQ[qQ.I=73]="I",qQ[qQ.J=74]="J",qQ[qQ.K=75]="K",qQ[qQ.L=76]="L",qQ[qQ.M=77]="M",qQ[qQ.N=78]="N",qQ[qQ.O=79]="O",qQ[qQ.P=80]="P",qQ[qQ.Q=81]="Q",qQ[qQ.R=82]="R",qQ[qQ.S=83]="S",qQ[qQ.T=84]="T",qQ[qQ.U=85]="U",qQ[qQ.V=86]="V",qQ[qQ.W=87]="W",qQ[qQ.X=88]="X",qQ[qQ.Y=89]="Y",qQ[qQ.Z=90]="Z",qQ[qQ.asterisk=42]="asterisk",qQ[qQ.backslash=92]="backslash",qQ[qQ.closeBrace=125]="closeBrace",qQ[qQ.closeBracket=93]="closeBracket",qQ[qQ.colon=58]="colon",qQ[qQ.comma=44]="comma",qQ[qQ.dot=46]="dot",qQ[qQ.doubleQuote=34]="doubleQuote",qQ[qQ.minus=45]="minus",qQ[qQ.openBrace=123]="openBrace",qQ[qQ.openBracket=91]="openBracket",qQ[qQ.plus=43]="plus",qQ[qQ.slash=47]="slash",qQ[qQ.formFeed=12]="formFeed",qQ[qQ.tab=9]="tab",(_H||(_H={})).DEFAULT={allowTrailingComma:!1},(XQ=wH||(wH={}))[XQ.None=0]="None",XQ[XQ.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",XQ[XQ.UnexpectedEndOfString=2]="UnexpectedEndOfString",XQ[XQ.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",XQ[XQ.InvalidUnicode=4]="InvalidUnicode",XQ[XQ.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",XQ[XQ.InvalidCharacter=6]="InvalidCharacter",(KQ=kH||(kH={}))[KQ.OpenBraceToken=1]="OpenBraceToken",KQ[KQ.CloseBraceToken=2]="CloseBraceToken",KQ[KQ.OpenBracketToken=3]="OpenBracketToken",KQ[KQ.CloseBracketToken=4]="CloseBracketToken",KQ[KQ.CommaToken=5]="CommaToken",KQ[KQ.ColonToken=6]="ColonToken",KQ[KQ.NullKeyword=7]="NullKeyword",KQ[KQ.TrueKeyword=8]="TrueKeyword",KQ[KQ.FalseKeyword=9]="FalseKeyword",KQ[KQ.StringLiteral=10]="StringLiteral",KQ[KQ.NumericLiteral=11]="NumericLiteral",KQ[KQ.LineCommentTrivia=12]="LineCommentTrivia",KQ[KQ.BlockCommentTrivia=13]="BlockCommentTrivia",KQ[KQ.LineBreakTrivia=14]="LineBreakTrivia",KQ[KQ.Trivia=15]="Trivia",KQ[KQ.Unknown=16]="Unknown",KQ[KQ.EOF=17]="EOF";const z7=function(e,t=[],n=_H.DEFAULT){function r(e){Array.isArray(i)?i.push(e):null!==o&&(i[o]=e)}let o=null,i=[];const a=[];return function(e,t,n=_H.DEFAULT){function r(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>d.slice())):()=>!0}function i(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function a(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>d.slice())):()=>!0}function s(){for(;;){const e=u.scan();switch(u.getTokenError()){case 4:l(14);break;case 5:l(15);break;case 3:l(13);break;case 1:w||l(11);break;case 2:l(12);break;case 6:l(16)}switch(e){case 12:case 13:w?l(10):v();break;case 16:l(1);break;case 15:case 14:break;default:return e}}}function l(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=u.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){s();break}if(-1!==n.indexOf(e))break;e=s()}}}function c(e){const t=u.getTokenValue();return e?b(t):(f(t),d.push(t)),s(),!0}const u=function(e,t=!1){function n(t,n){let r=0,o=0;for(;r=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}a++,r++}return r=i)return l=i,c=17;let t=e.charCodeAt(a);if(_m(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(_m(t));return c=15}if(wm(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),u++,p=a,c=14;switch(t){case 123:return a++,c=1;case 125:return a++,c=2;case 91:return a++,c=3;case 93:return a++,c=4;case 58:return a++,c=6;case 44:return a++,c=5;case 34:return a++,s=function(){let t="",r=a;for(;;){if(a>=i){t+=e.substring(r,a),m=2;break}const o=e.charCodeAt(a);if(34===o){t+=e.substring(r,a),a++;break}if(92!==o){if(o>=0&&o<=31){if(wm(o)){t+=e.substring(r,a),m=2;break}m=6}a++}else{if(t+=e.substring(r,a),a++,a>=i){m=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=n(4,!0);e>=0?t+=String.fromCharCode(e):m=4;break;default:m=5}r=a}}return t}(),c=10;case 47:const r=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;aa,scan:t?function(){let e;do{e=r()}while(e>=12&&e<=15);return e}:r,getToken:()=>c,getTokenValue:()=>s,getTokenOffset:()=>l,getTokenLength:()=>a-l,getTokenStartLine:()=>d,getTokenStartCharacter:()=>l-f,getTokenError:()=>m}}(e,!1),d=[],p=o(t.onObjectBegin),f=a(t.onObjectProperty),m=r(t.onObjectEnd),g=o(t.onArrayBegin),h=r(t.onArrayEnd),b=a(t.onLiteralValue),y=i(t.onSeparator),v=r(t.onComment),_=i(t.onError),w=n&&n.disallowComments,k=n&&n.allowTrailingComma;s(),17===u.getToken()?n.allowEmptyContent||l(4,[],[]):function e(){switch(u.getToken()){case 3:return function(){g(),s();let t=!0,n=!1;for(;4!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(n||l(4,[],[]),y(","),s(),4===u.getToken()&&k)break}else n&&l(6,[],[]);t?(d.push(0),t=!1):d[d.length-1]++,e()||l(4,[],[4,5]),n=!0}return h(),t||d.pop(),4!==u.getToken()?l(8,[4],[]):s(),!0}();case 1:return function(){p(),s();let t=!1;for(;2!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(t||l(4,[],[]),y(","),s(),2===u.getToken()&&k)break}else t&&l(6,[],[]);(10!==u.getToken()?(l(3,[],[2,5]),!1):(c(!1),6===u.getToken()?(y(":"),s(),e()||l(4,[],[2,5])):l(5,[],[2,5]),d.pop(),!0))||l(4,[],[2,5]),t=!0}return m(),2!==u.getToken()?l(7,[2],[]):s(),!0}();case 10:return c(!0);default:return function(){switch(u.getToken()){case 11:const e=u.getTokenValue();let t=Number(e);isNaN(t)&&(l(2),t=0),b(t);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return s(),!0}()}}()?17!==u.getToken()&&l(9,[],[]):l(4,[],[])}(e,{onObjectBegin:()=>{const e={};r(e),a.push(i),i=e,o=null},onObjectProperty:e=>{o=e},onObjectEnd:()=>{i=a.pop()},onArrayBegin:()=>{const e=[];r(e),a.push(i),i=e,o=null},onArrayEnd:()=>{i=a.pop()},onLiteralValue:r,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]};(YQ=xH||(xH={}))[YQ.InvalidSymbol=1]="InvalidSymbol",YQ[YQ.InvalidNumberFormat=2]="InvalidNumberFormat",YQ[YQ.PropertyNameExpected=3]="PropertyNameExpected",YQ[YQ.ValueExpected=4]="ValueExpected",YQ[YQ.ColonExpected=5]="ColonExpected",YQ[YQ.CommaExpected=6]="CommaExpected",YQ[YQ.CloseBraceExpected=7]="CloseBraceExpected",YQ[YQ.CloseBracketExpected=8]="CloseBracketExpected",YQ[YQ.EndOfFileExpected=9]="EndOfFileExpected",YQ[YQ.InvalidCommentToken=10]="InvalidCommentToken",YQ[YQ.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",YQ[YQ.UnexpectedEndOfString=12]="UnexpectedEndOfString",YQ[YQ.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",YQ[YQ.InvalidUnicode=14]="InvalidUnicode",YQ[YQ.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",YQ[YQ.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process;let B7="";const H7="dist/";let U7=null;const W7={light:"#333333",dark:"#bbbbbb"},V7={light:"#fffffe",dark:"#1e1e1e"};class G7{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await Sm(e)}(M7.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}SH=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],CH={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"},EH={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};const q7={pre:({className:e,style:t,children:n})=>`
${n}
`,code:({children:e})=>`${e}`,line:({className:e,children:t})=>`${t}`,token:({style:e,children:t})=>`${t}`},X7={"&":"&","<":"<",">":">",'"':""","'":"'"};class K7 extends bH.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=M7.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await Cm(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=Em(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){var t;const n={embeddedLanguages:null==(t=e.embeddedLangs)?void 0:t.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=r,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=r}))}async loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.values());for(const n of t)this._resolver.addLanguage(n);for(const n of t)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}!function(e){B7=e.endsWith("/")?e:e+"/"}("https://cdn.jsdelivr.net/npm/shiki-es@0.14.0/dist/assets/"),DH={exports:{}},OH={},jH={exports:{}},$H={},PH=pv,NH="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},TH=PH.useState,IH=PH.useEffect,AH=PH.useLayoutEffect,RH=PH.useDebugValue,FH="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=TH({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return AH((function(){o.value=n,o.getSnapshot=t,Mm(o)&&i({inst:o})}),[e,n,t]),IH((function(){return Mm(o)&&i({inst:o}),e((function(){Mm(o)&&i({inst:o})}))}),[e]),RH(n),n},$H.useSyncExternalStore=void 0!==PH.useSyncExternalStore?PH.useSyncExternalStore:FH,jH.exports=$H,MH=pv,LH="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},zH=jH.exports.useSyncExternalStore,BH=MH.useRef,HH=MH.useEffect,UH=MH.useMemo,WH=MH.useDebugValue,OH.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i,a,s=BH(null);return null===s.current?s.current=i={hasValue:!1,value:null}:i=s.current,s=UH((function(){function e(e){var t,n;return l?(t=s,LH(a,e)?t:(n=r(e),void 0!==o&&o(t,n)?t:(a=e,s=n))):(l=!0,a=e,e=r(e),s=void 0!==o&&i.hasValue&&o(t=i.value,e)?t:e)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]),a=zH(e,s[0],s[1]),HH((function(){i.hasValue=!0,i.value=a}),[a]),WH(a),a},DH.exports=OH;const Y7=t(DH.exports),Q7=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}};return t=e(r,o,i),i},{useSyncExternalStoreWithSelector:J7}=Y7,Z7=(e,t)=>{const n=(e=>e?Q7(e):Q7)(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=J7(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return pv.useDebugValue(r),r}(n,e,r);return Object.assign(r,n),r};VH={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},GH=function(e){var t=e?"dark":"light",n=VH.gray[t][11],r=VH.gray[t][7],o=e?VH.red[t][9]:VH.volcano[t][9],i=e?VH.gold[t][9]:VH.orange[t][9],a=e?VH.lime[t][9]:VH.green[t][9],s=e?VH.blue[t][9]:VH.geekblue[t][9];return{colors:{"editor.foreground":n},name:t,semanticHighlighting:!0,semanticTokenColors:{"annotation:dart":{foreground:a},enumMember:{foreground:s},macro:{foreground:a},"parameter.label:dart":{foreground:r},"property:dart":{foreground:a},tomlArrayKey:{foreground:o},"variable.constant":{foreground:a},"variable.defaultLibrary":{foreground:o},"variable:dart":{foreground:a}},tokenColors:[{scope:"meta.embedded",settings:{foreground:r}},{name:"unison punctuation",scope:"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison",settings:{foreground:n}},{name:"haskell variable generic-type",scope:"variable.other.generic-type.haskell",settings:{foreground:s}},{name:"haskell storage type",scope:"storage.type.haskell",settings:{foreground:a}},{name:"support.variable.magic.python",scope:"support.variable.magic.python",settings:{foreground:n}},{name:"punctuation.separator.parameters.python",scope:"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python",settings:{foreground:r}},{name:"variable.parameter.function.language.special.self.python",scope:"variable.parameter.function.language.special.self.python",settings:{foreground:o}},{name:"variable.parameter.function.language.special.cls.python",scope:"variable.parameter.function.language.special.cls.python",settings:{foreground:o}},{name:"storage.modifier.lifetime.rust",scope:"storage.modifier.lifetime.rust",settings:{foreground:r}},{name:"support.function.std.rust",scope:"support.function.std.rust",settings:{foreground:i}},{name:"entity.name.lifetime.rust",scope:"entity.name.lifetime.rust",settings:{foreground:o}},{name:"variable.language.rust",scope:"variable.language.rust",settings:{foreground:n}},{name:"support.constant.edge",scope:"support.constant.edge",settings:{foreground:s}},{name:"regexp constant character-class",scope:"constant.other.character-class.regexp",settings:{foreground:n}},{name:"keyword.operator",scope:["keyword.operator.word"],settings:{foreground:s}},{name:"regexp operator.quantifier",scope:"keyword.operator.quantifier.regexp",settings:{foreground:a}},{name:"Text",scope:"variable.parameter.function",settings:{foreground:r}},{name:"Comment Markup Link",scope:"comment markup.link",settings:{foreground:r}},{name:"markup diff",scope:"markup.changed.diff",settings:{foreground:o}},{name:"diff",scope:"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff",settings:{foreground:i}},{name:"inserted.diff",scope:"markup.inserted.diff",settings:{foreground:a}},{name:"deleted.diff",scope:"markup.deleted.diff",settings:{foreground:n}},{name:"c++ function",scope:"meta.function.c,meta.function.cpp",settings:{foreground:n}},{name:"c++ block",scope:"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c",settings:{foreground:r}},{name:"js/ts punctuation separator key-value",scope:"punctuation.separator.key-value",settings:{foreground:r}},{name:"js/ts import keyword",scope:"keyword.operator.expression.import",settings:{foreground:i}},{name:"math js/ts",scope:"support.constant.math",settings:{foreground:o}},{name:"math property js/ts",scope:"support.constant.property.math",settings:{foreground:a}},{name:"js/ts variable.other.constant",scope:"variable.other.constant",settings:{foreground:o}},{name:"java type",scope:["storage.type.annotation.java","storage.type.object.array.java"],settings:{foreground:o}},{name:"java source",scope:"source.java",settings:{foreground:n}},{name:"java modifier.import",scope:"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java",settings:{foreground:r}},{name:"java modifier.import",scope:"meta.method.java",settings:{foreground:i}},{name:"java modifier.import",scope:"storage.modifier.import.java,storage.type.java,storage.type.generic.java",settings:{foreground:o}},{name:"java instanceof",scope:"keyword.operator.instanceof.java",settings:{foreground:s}},{name:"java variable.name",scope:"meta.definition.variable.name.java",settings:{foreground:n}},{name:"operator logical",scope:"keyword.operator.logical",settings:{foreground:s}},{name:"operator bitwise",scope:"keyword.operator.bitwise",settings:{foreground:s}},{name:"operator channel",scope:"keyword.operator.channel",settings:{foreground:s}},{name:"support.constant.property-value.scss",scope:"support.constant.property-value.scss,support.constant.property-value.css",settings:{foreground:a}},{name:"CSS/SCSS/LESS Operators",scope:"keyword.operator.css,keyword.operator.scss,keyword.operator.less",settings:{foreground:s}},{name:"css color standard name",scope:"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss",settings:{foreground:a}},{name:"css comma",scope:"punctuation.separator.list.comma.css",settings:{foreground:r}},{name:"css attribute-name.id",scope:"support.constant.color.w3c-standard-color-name.css",settings:{foreground:a}},{name:"css property-name",scope:"support.type.vendored.property-name.css",settings:{foreground:s}},{name:"js/ts module",scope:"support.module.node,support.type.object.module,support.module.node",settings:{foreground:o}},{name:"entity.name.type.module",scope:"entity.name.type.module",settings:{foreground:o}},{name:"js variable readwrite",scope:"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node",settings:{foreground:n}},{name:"js/ts json",scope:"support.constant.json",settings:{foreground:a}},{name:"js/ts Keyword",scope:["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],settings:{foreground:s}},{name:"js/ts console",scope:"support.type.object.console",settings:{foreground:n}},{name:"js/ts support.variable.property.process",scope:"support.variable.property.process",settings:{foreground:a}},{name:"js console function",scope:"entity.name.function,support.function.console",settings:{foreground:i}},{name:"keyword.operator.misc.rust",scope:"keyword.operator.misc.rust",settings:{foreground:r}},{name:"keyword.operator.sigil.rust",scope:"keyword.operator.sigil.rust",settings:{foreground:s}},{name:"operator",scope:"keyword.operator.delete",settings:{foreground:s}},{name:"js dom",scope:"support.type.object.dom",settings:{foreground:s}},{name:"js dom variable",scope:"support.variable.dom,support.variable.property.dom",settings:{foreground:n}},{name:"keyword.operator",scope:"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational",settings:{foreground:s}},{name:"C operator assignment",scope:"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp",settings:{foreground:s}},{name:"Punctuation",scope:"punctuation.separator.delimiter",settings:{foreground:r}},{name:"Other punctuation .c",scope:"punctuation.separator.c,punctuation.separator.cpp",settings:{foreground:s}},{name:"C type posix-reserved",scope:"support.type.posix-reserved.c,support.type.posix-reserved.cpp",settings:{foreground:s}},{name:"keyword.operator.sizeof.c",scope:"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp",settings:{foreground:s}},{name:"python parameter",scope:"variable.parameter.function.language.python",settings:{foreground:a}},{name:"python type",scope:"support.type.python",settings:{foreground:s}},{name:"python logical",scope:"keyword.operator.logical.python",settings:{foreground:s}},{name:"pyCs",scope:"variable.parameter.function.python",settings:{foreground:a}},{name:"python block",scope:"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python",settings:{foreground:r}},{name:"python function-call.generic",scope:"meta.function-call.generic.python",settings:{foreground:i}},{name:"python placeholder reset to normal string",scope:"constant.character.format.placeholder.other.python",settings:{foreground:a}},{name:"Operators",scope:"keyword.operator",settings:{foreground:r}},{name:"Compound Assignment Operators",scope:"keyword.operator.assignment.compound",settings:{foreground:s}},{name:"Compound Assignment Operators js/ts",scope:"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts",settings:{foreground:s}},{name:"Keywords",scope:"keyword",settings:{foreground:s}},{name:"Namespaces",scope:"entity.name.namespace",settings:{foreground:o}},{name:"Variables",scope:"variable",settings:{foreground:n}},{name:"Variables",scope:"variable.c",settings:{foreground:r}},{name:"Language variables",scope:"variable.language",settings:{foreground:o}},{name:"Java Variables",scope:"token.variable.parameter.java",settings:{foreground:r}},{name:"Java Imports",scope:"import.storage.java",settings:{foreground:o}},{name:"Packages",scope:"token.package.keyword",settings:{foreground:s}},{name:"Packages",scope:"token.package",settings:{foreground:r}},{name:"Functions",scope:["entity.name.function","meta.require","support.function.any-method","variable.function"],settings:{foreground:i}},{name:"Classes",scope:"entity.name.type.namespace",settings:{foreground:o}},{name:"Classes",scope:"support.class, entity.name.type.class",settings:{foreground:o}},{name:"Class name",scope:"entity.name.class.identifier.namespace.type",settings:{foreground:o}},{name:"Class name",scope:["entity.name.class","variable.other.class.js","variable.other.class.ts"],settings:{foreground:o}},{name:"Class name php",scope:"variable.other.class.php",settings:{foreground:n}},{name:"Type Name",scope:"entity.name.type",settings:{foreground:o}},{name:"Keyword Control",scope:"keyword.control",settings:{foreground:s}},{name:"Control Elements",scope:"control.elements, keyword.operator.less",settings:{foreground:a}},{name:"Methods",scope:"keyword.other.special-method",settings:{foreground:i}},{name:"Storage",scope:"storage",settings:{foreground:s}},{name:"Storage JS TS",scope:"token.storage",settings:{foreground:s}},{name:"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void",scope:"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void",settings:{foreground:s}},{name:"Java Storage",scope:"token.storage.type.java",settings:{foreground:o}},{name:"Support",scope:"support.function",settings:{foreground:s}},{name:"Support type",scope:"support.type.property-name",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] toml support",scope:"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml",settings:{foreground:n}},{name:"Support type",scope:"support.constant.property-value",settings:{foreground:r}},{name:"Support type",scope:"support.constant.font-name",settings:{foreground:a}},{name:"Meta tag",scope:"meta.tag",settings:{foreground:r}},{name:"Strings",scope:"string",settings:{foreground:a}},{name:"Constant other symbol",scope:"constant.other.symbol",settings:{foreground:s}},{name:"Integers",scope:"constant.numeric",settings:{foreground:a}},{name:"Constants",scope:"constant",settings:{foreground:a}},{name:"Constants",scope:"punctuation.definition.constant",settings:{foreground:a}},{name:"Tags",scope:"entity.name.tag",settings:{foreground:n}},{name:"Attributes",scope:"entity.other.attribute-name",settings:{foreground:a}},{name:"Attribute IDs",scope:"entity.other.attribute-name.id",settings:{foreground:i}},{name:"Attribute class",scope:"entity.other.attribute-name.class.css",settings:{foreground:a}},{name:"Selector",scope:"meta.selector",settings:{foreground:s}},{name:"Headings",scope:"markup.heading",settings:{fontStyle:"bold"}},{name:"FencedCode",scope:"punctuation.definition.markdown, fenced_code.block.language.markdown",settings:{foreground:o}},{name:"Headings",scope:"markup.heading punctuation.definition.heading, entity.name.section",settings:{foreground:i}},{name:"Units",scope:"keyword.other.unit",settings:{foreground:n}},{name:"Bold",scope:"markup.bold,todo.bold",settings:{foreground:a}},{name:"Bold",scope:"punctuation.definition.bold",settings:{foreground:o}},{name:"markup Italic",scope:"markup.italic, punctuation.definition.italic,todo.emphasis",settings:{foreground:s}},{name:"emphasis md",scope:"emphasis md",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Markdown headings",scope:"entity.name.section.markdown",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown heading Punctuation Definition",scope:"punctuation.definition.heading.markdown",settings:{foreground:n}},{name:"punctuation.definition.list.begin.markdown",scope:"punctuation.definition.list.begin.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown heading setext",scope:"markup.heading.setext",settings:{foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold",scope:"punctuation.definition.bold.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw",scope:"markup.inline.raw.string.markdown",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Markdown Inline Raw punctuation",scope:"punctuation.definition.raw.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown List Punctuation Definition",scope:"punctuation.definition.list.markdown",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition String",scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],settings:{foreground:n}},{name:"beginning.punctuation.definition.list.markdown",scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown Punctuation Definition Link",scope:"punctuation.definition.metadata.markdown",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] Markdown Underline Link/Image",scope:"markup.underline.link.markdown,markup.underline.link.image.markdown",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Markdown Link Title/Description",scope:"string.other.link.title.markdown,string.other.link.description.markdown",settings:{foreground:i}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw",scope:"markup.raw.monospace.asciidoc",settings:{foreground:a}},{name:"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition",scope:"punctuation.definition.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition",scope:"markup.list.asciidoc",settings:{foreground:o}},{name:"[VSCODE-CUSTOM] Asciidoc underline link",scope:"markup.link.asciidoc,markup.other.url.asciidoc",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] Asciidoc link name",scope:"string.unquoted.asciidoc,markup.other.url.asciidoc",settings:{foreground:i}},{name:"Regular Expressions",scope:"string.regexp",settings:{foreground:s}},{name:"Embedded",scope:"punctuation.section.embedded, variable.interpolation",settings:{foreground:n}},{name:"Embedded",scope:"punctuation.section.embedded.begin,punctuation.section.embedded.end",settings:{foreground:s}},{name:"illegal",scope:"invalid.illegal",settings:{foreground:n}},{name:"illegal",scope:"invalid.illegal.bad-ampersand.html",settings:{foreground:r}},{scope:"invalid.illegal.unrecognized-tag.html",settings:{foreground:n}},{name:"Broken",scope:"invalid.broken",settings:{foreground:n}},{name:"Deprecated",scope:"invalid.deprecated",settings:{foreground:n}},{name:"html Deprecated",scope:"invalid.deprecated.entity.other.attribute-name.html",settings:{foreground:a}},{name:"Unimplemented",scope:"invalid.unimplemented",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json",scope:"source.json meta.structure.dictionary.json > string.quoted.json",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String",scope:"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string",settings:{foreground:n}},{name:"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation",scope:"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation",settings:{foreground:a}},{name:"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json",scope:"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json",settings:{foreground:s}},{name:"[VSCODE-CUSTOM] JSON Property Name",scope:"support.type.property-name.json",settings:{foreground:n}},{name:"[VSCODE-CUSTOM] JSON Punctuation for Property Name",scope:"support.type.property-name.json punctuation",settings:{foreground:n}},{name:"laravel blade tag",scope:"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade",settings:{foreground:s}},{name:"laravel blade @",scope:"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade",settings:{foreground:s}},{name:"use statement for other classes",scope:"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php",settings:{foreground:o}},{name:"error suppression",scope:"keyword.operator.error-control.php",settings:{foreground:s}},{name:"php instanceof",scope:"keyword.operator.type.php",settings:{foreground:s}},{name:"style double quoted array index normal begin",scope:"punctuation.section.array.begin.php",settings:{foreground:r}},{name:"style double quoted array index normal end",scope:"punctuation.section.array.end.php",settings:{foreground:r}},{name:"php illegal.non-undefined-typehinted",scope:"invalid.illegal.non-undefined-typehinted.php",settings:{foreground:o}},{name:"php types",scope:"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php",settings:{foreground:o}},{name:"php call-function",scope:"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php",settings:{foreground:i}},{name:"php function-resets",scope:"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php",settings:{foreground:r}},{name:"support php constants",scope:"support.constant.core.rust",settings:{foreground:a}},{name:"support php constants",scope:"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php",settings:{foreground:a}},{name:"php goto",scope:"entity.name.goto-label.php,support.other.php",settings:{foreground:i}},{name:"php logical/bitwise operator",scope:"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php",settings:{foreground:s}},{name:"php regexp operator",scope:"keyword.operator.regexp.php",settings:{foreground:s}},{name:"php comparison",scope:"keyword.operator.comparison.php",settings:{foreground:s}},{name:"php heredoc/nowdoc",scope:"keyword.operator.heredoc.php,keyword.operator.nowdoc.php",settings:{foreground:s}},{name:"python function decorator @",scope:"meta.function.decorator.python",settings:{foreground:i}},{name:"python function support",scope:"support.token.decorator.python,meta.function.decorator.identifier.python",settings:{foreground:s}},{name:"parameter function js/ts",scope:"function.parameter",settings:{foreground:r}},{name:"brace function",scope:"function.brace",settings:{foreground:r}},{name:"parameter function ruby cs",scope:"function.parameter.ruby, function.parameter.cs",settings:{foreground:r}},{name:"constant.language.symbol.ruby",scope:"constant.language.symbol.ruby",settings:{foreground:s}},{name:"constant.language.symbol.hashkey.ruby",scope:"constant.language.symbol.hashkey.ruby",settings:{foreground:s}},{name:"rgb-value",scope:"rgb-value",settings:{foreground:s}},{name:"rgb value",scope:"inline-color-decoration rgb-value",settings:{foreground:a}},{name:"rgb value less",scope:"less rgb-value",settings:{foreground:a}},{name:"sass selector",scope:"selector.sass",settings:{foreground:n}},{name:"ts primitive/builtin types",scope:"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx",settings:{foreground:o}},{name:"block scope",scope:"block.scope.end,block.scope.begin",settings:{foreground:r}},{name:"cs storage type",scope:"storage.type.cs",settings:{foreground:o}},{name:"cs local variable",scope:"entity.name.variable.local.cs",settings:{foreground:n}},{scope:"token.info-token",settings:{foreground:i}},{scope:"token.warn-token",settings:{foreground:a}},{scope:"token.error-token",settings:{foreground:o}},{scope:"token.debug-token",settings:{foreground:s}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:s}},{name:"Reset JavaScript string interpolation expression",scope:["meta.template.expression"],settings:{foreground:r}},{name:"Import module JS",scope:["keyword.operator.module"],settings:{foreground:s}},{name:"js Flowtype",scope:["support.type.type.flowtype"],settings:{foreground:i}},{name:"js Flow",scope:["support.type.primitive"],settings:{foreground:o}},{name:"js class prop",scope:["meta.property.object"],settings:{foreground:n}},{name:"js func parameter",scope:["variable.parameter.function.js"],settings:{foreground:n}},{name:"js template literals begin",scope:["keyword.other.template.begin"],settings:{foreground:a}},{name:"js template literals end",scope:["keyword.other.template.end"],settings:{foreground:a}},{name:"js template literals variable braces begin",scope:["keyword.other.substitution.begin"],settings:{foreground:a}},{name:"js template literals variable braces end",scope:["keyword.other.substitution.end"],settings:{foreground:a}},{name:"js operator.assignment",scope:["keyword.operator.assignment"],settings:{foreground:s}},{name:"go operator",scope:["keyword.operator.assignment.go"],settings:{foreground:o}},{name:"go operator",scope:["keyword.operator.arithmetic.go","keyword.operator.address.go"],settings:{foreground:s}},{name:"Go package name",scope:["entity.name.package.go"],settings:{foreground:o}},{name:"elm prelude",scope:["support.type.prelude.elm"],settings:{foreground:s}},{name:"elm constant",scope:["support.constant.elm"],settings:{foreground:a}},{name:"template literal",scope:["punctuation.quasi.element"],settings:{foreground:s}},{name:"html/pug (jade) escaped characters and entities",scope:["constant.character.entity"],settings:{foreground:n}},{name:"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour",scope:["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],settings:{foreground:s}},{name:"Clojure globals",scope:["entity.global.clojure"],settings:{foreground:o}},{name:"Clojure symbols",scope:["meta.symbol.clojure"],settings:{foreground:n}},{name:"Clojure constants",scope:["constant.keyword.clojure"],settings:{foreground:s}},{name:"CoffeeScript Function Argument",scope:["meta.arguments.coffee","variable.parameter.function.coffee"],settings:{foreground:n}},{name:"Ini Default Text",scope:["source.ini"],settings:{foreground:a}},{name:"Makefile prerequisities",scope:["meta.scope.prerequisites.makefile"],settings:{foreground:n}},{name:"Makefile text colour",scope:["source.makefile"],settings:{foreground:o}},{name:"Groovy import names",scope:["storage.modifier.import.groovy"],settings:{foreground:o}},{name:"Groovy Methods",scope:["meta.method.groovy"],settings:{foreground:i}},{name:"Groovy Variables",scope:["meta.definition.variable.name.groovy"],settings:{foreground:n}},{name:"Groovy Inheritance",scope:["meta.definition.class.inherited.classes.groovy"],settings:{foreground:a}},{name:"HLSL Semantic",scope:["support.variable.semantic.hlsl"],settings:{foreground:o}},{name:"HLSL Types",scope:["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],settings:{foreground:s}},{name:"SQL Variables",scope:["text.variable","text.bracketed"],settings:{foreground:n}},{name:"types",scope:["support.type.swift","support.type.vb.asp"],settings:{foreground:o}},{name:"heading 1, keyword",scope:["entity.name.function.xi"],settings:{foreground:o}},{name:"heading 2, callable",scope:["entity.name.class.xi"],settings:{foreground:s}},{name:"heading 3, property",scope:["constant.character.character-class.regexp.xi"],settings:{foreground:n}},{name:"heading 4, type, class, interface",scope:["constant.regexp.xi"],settings:{foreground:s}},{name:"heading 5, enums, preprocessor, constant, decorator",scope:["keyword.control.xi"],settings:{foreground:s}},{name:"heading 6, number",scope:["invalid.xi"],settings:{foreground:r}},{name:"string",scope:["beginning.punctuation.definition.quote.markdown.xi"],settings:{foreground:a}},{name:"comments",scope:["beginning.punctuation.definition.list.markdown.xi"],settings:{foreground:r}},{name:"link",scope:["constant.character.xi"],settings:{foreground:i}},{name:"accent",scope:["accent.xi"],settings:{foreground:i}},{name:"wikiword",scope:["wikiword.xi"],settings:{foreground:a}},{name:"language operators like '+', '-' etc",scope:["constant.other.color.rgb-value.xi"],settings:{foreground:n}},{name:"elements to dim",scope:["punctuation.definition.tag.xi"],settings:{foreground:r}},{name:"C++/C#",scope:["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],settings:{foreground:o}},{name:"Markdown underscore-style headers",scope:["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],settings:{foreground:n}},{name:"meta.brace.square",scope:[" meta.brace.square"],settings:{foreground:r}},{name:"Comments",scope:"comment, punctuation.definition.comment",settings:{fontStyle:"italic",foreground:r}},{name:"[VSCODE-CUSTOM] Markdown Quote",scope:"markup.quote.markdown",settings:{foreground:r}},{name:"punctuation.definition.block.sequence.item.yaml",scope:"punctuation.definition.block.sequence.item.yaml",settings:{foreground:r}},{scope:["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],settings:{foreground:s}},{scope:["entity.name.variable.parameter.cs"],settings:{foreground:o}},{scope:["entity.name.variable.field.cs"],settings:{foreground:n}},{name:"Deleted",scope:"markup.deleted",settings:{foreground:n}},{name:"Inserted",scope:"markup.inserted",settings:{foreground:a}},{name:"Underline",scope:"markup.underline",settings:{fontStyle:"underline"}},{name:"punctuation.section.embedded.begin.php",scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:o}},{name:"support.other.namespace.php",scope:["support.other.namespace.php"],settings:{foreground:r}},{name:"variable.other.object",scope:["variable.other.object"],settings:{foreground:o}},{name:"variable.other.constant.property",scope:["variable.other.constant.property"],settings:{foreground:n}},{name:"entity.other.inherited-class",scope:["entity.other.inherited-class"],settings:{foreground:o}},{name:"c variable readwrite",scope:"variable.other.readwrite.c",settings:{foreground:n}},{name:"php scope",scope:"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php",settings:{foreground:r}},{name:"Assembly",scope:["constant.numeric.decimal.asm.x86_64"],settings:{foreground:s}},{scope:["support.other.parenthesis.regexp"],settings:{foreground:a}},{scope:["constant.character.escape"],settings:{foreground:s}},{scope:["string.regexp"],settings:{foreground:n}},{scope:["log.info"],settings:{foreground:a}},{scope:["log.warning"],settings:{foreground:o}},{scope:["log.error"],settings:{foreground:n}},{name:"js/ts italic",scope:"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super",settings:{fontStyle:"italic"}},{name:"comment",scope:"comment.line.double-slash,comment.block.documentation",settings:{fontStyle:"italic"}},{name:"Python Keyword Control",scope:"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python",settings:{fontStyle:"italic"}},{name:"markup.italic.markdown",scope:"markup.italic.markdown",settings:{fontStyle:"italic"}}],type:t}},qH=["javascript","js","jsx","json","markdown","md","less","css","typescript","ts","tsx","diff","bash"],JQ=function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r div {\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),n.motionEaseOut,n.colorTextTertiary,n.colorFillTertiary,n.colorBorderSecondary,n.motionEaseOut,n.colorTextSecondary,n.colorFillSecondary,n.colorText,n.colorFill),i=iR(xU||(xU=Di(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:aR(i,iR(SU||(SU=Di(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:aR("".concat(HU,"-bottom-handle"),iR(CU||(CU=Di(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:aR(HU,iR(EU||(EU=Di(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,HU)),fixed:iR(DU||(DU=Di(["\n position: relative;\n "]))),fullscreen:iR(OU||(OU=Di(["\n position: absolute;\n inset: ","px 0 0 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),t,t,n.colorBgLayout),handlerIcon:iR(jU||(jU=Di(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:aR(i,iR($U||($U=Di(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:aR(iR(PU||(PU=Di(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(HU,"-left-handle")),panel:aR("".concat(HU,"-fixed"),iR(NU||(NU=Di(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:aR(i,iR(TU||(TU=Di(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:aR(iR(IU||(IU=Di(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(HU,"-right-handle")),toggleBottom:aR("".concat(HU,"-toggle"),"".concat(HU,"-toggle-bottom"),o,iR(AU||(AU=Di(["\n bottom: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: 16px;\n margin-left: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,BU,40)),toggleLeft:aR("".concat(HU,"-toggle"),"".concat(HU,"-toggle-left"),o,iR(RU||(RU=Di(["\n left: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,BU,BU,40)),toggleRight:aR("".concat(HU,"-toggle"),"".concat(HU,"-toggle-right"),o,iR(FU||(FU=Di(["\n right: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,BU,BU,40)),toggleTop:aR("".concat(HU,"-toggle"),"".concat(HU,"-toggle-top"),o,iR(MU||(MU=Di(["\n top: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: ","px;\n margin-left: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,BU,40,BU)),topFloat:aR(i,iR(LU||(LU=Di(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:aR("".concat(HU,"-top-handle"),iR(zU||(zU=Di(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),WU=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};const t9=pv.memo((function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,m,g,h,b,y,v,_,w,k,x,S,C,E,D=e.headerHeight,O=void 0===D?0:D,j=e.fullscreen,$=e.maxHeight,P=e.pin,N=void 0===P||P,T=e.mode,I=void 0===T?"fixed":T,A=e.children,R=e.placement,F=void 0===R?"right":R,M=e.resize,L=e.style,z=e.size,B=e.defaultSize,H=e.minWidth,U=e.minHeight,W=e.maxWidth,V=e.onSizeChange,G=e.onSizeDragging,q=e.expandable,X=void 0===q||q,K=e.expand,Y=e.defaultExpand,Q=void 0===Y||Y,J=e.onExpandChange,Z=e.className,ee=e.showHandlerWhenUnexpand,te=e.destroyOnClose,ne=e.hanlderStyle,re=e.classNames,oe=void 0===re?{}:re,ie=pv.useRef(),ae=(b=ie,v=(y={}).onEnter,_=y.onLeave,w=y.onChange,k=Xf(function(e){var t,n,r,o;return void 0===e&&(e=!1),t=Xf(function(e){var t,n;return void 0===e&&(e=!1),t=Xf(pv.useState(e),2),n=t[1],[t[0],pv.useMemo((function(){var t=!e;return{toggle:function(){return n((function(n){return n===e?t:e}))},set:function(e){return n(e)},setLeft:function(){return n(e)},setRight:function(){return n(t)}}}),[])]}(!!e),2),r=(n=t[1]).toggle,o=n.set,[t[0],pv.useMemo((function(){return{toggle:r,set:function(e){return o(!!e)},setTrue:function(){return o(!0)},setFalse:function(){return o(!1)}}}),[])]}(!1),2),x=k[0],C=(S=k[1]).setTrue,E=S.setFalse,om("mouseenter",(function(){null==v||v(),C(),null==w||w(!0)}),{target:b}),om("mouseleave",(function(){null==_||_(),E(),null==w||w(!1)}),{target:b}),x),se="top"===F||"bottom"===F,le=UU(O),ce=le.styles,ue=le.cx,de=Va(cf(Q,{onChange:J,value:K}),2),pe=de[0],fe=de[1];return pv.useEffect((function(){N||(ae&&!pe?fe(!0):!ae&&pe&&fe(!1))}),[N,ae,pe]),n=(t=Va(pv.useState(!0),2))[0],r=t[1],i=(o=Va(pv.useState(!1),2))[0],a=o[1],l=pv.useMemo((function(){return s?Ci({},WU(F),ce["".concat(WU(F),"Handle")]):{}}),[s=!1!==M&&pe,F]),c=zm(Ci({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},WU(F),!0),M),u=pv.useMemo((function(){return zm(se?{height:180,width:"100%"}:{height:"100%",width:280},B)}),[se]),d=pe?{defaultSize:u,maxHeight:"number"==typeof $?Math.max($,0):$,maxWidth:"number"==typeof W?Math.max(W,0):W,minHeight:"number"==typeof U?Math.max(U,0):U,minWidth:"number"==typeof H?Math.max(H,0):H,size:z}:se?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},f=(p=pv.useMemo((function(){switch(F){case"top":return{Arrow:QJ,className:"Bottom"};case"bottom":return{Arrow:eZ,className:"Top"};case"right":return{Arrow:JJ,className:"Left"};case"left":return{Arrow:ZJ,className:"Right"}}}),[ce,F])).Arrow,g=vv.jsx(I7,{className:ue(ce["toggle".concat(m=p.className)],oe.handle),style:{opacity:pe?N?void 0:0:ee?1:0},children:vv.jsx(I7,{onClick:function(){fe(!pe)},style:ne,children:vv.jsx("div",{className:ce.handlerIcon,style:{transform:"rotate(".concat(pe?180:0,"deg)")},children:vv.jsx(f,{size:16,strokeWidth:1.5})})})}),h=vv.jsx(_U,zm(zm({},d),{},{className:ue(ce.panel,oe.content),enable:s?c:void 0,handleClasses:l,onResize:function(e,t,n,r){null==G||G(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){a(!0),r(!1)},onResizeStop:function(e,t,n,o){a(!1),r(!0),null==V||V(o,{height:n.style.height,width:n.style.width})},style:zm({transition:i?"unset":void 0},L),children:A})),j?vv.jsx("div",{className:ue(ce.fullscreen,Z),children:A}):vv.jsxs("aside",{className:ue(ce.container,ce["fixed"===I?"fixed":"".concat(F,"Float")],Z),ref:ie,style:pe?Ci({},"border".concat(m,"Width"),1):{},children:[X&&n&&g,te?pe&&h:h]})}));KU=rR((function(e){var t=e.css,n=e.token;return{body:t(VU||(VU=Di(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(GU||(GU=Di(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(qU||(qU=Di(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n\n padding: 8px 16px;\n\n border-top: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(XU||(XU=Di(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 16px;\n\n font-weight: 500;\n\n border-bottom: 1px solid ",";\n "])),n.colorBorderSecondary)}})),YU=["className","children"];const n9=pv.memo((function(e){var t=e.className,n=e.children,r=Ei(e,YU),o=KU();return vv.jsx("div",Hm(Hm({className:(0,o.cx)(o.styles.body,t)},r),{},{children:n}))}));QU=["className","children"];const r9=pv.memo((function(e){var t=e.className,n=e.children,r=Ei(e,QU),o=KU();return vv.jsx("div",Wm(Wm({className:(0,o.cx)(o.styles.container,t)},r),{},{children:n}))}));JU=["className","children"];const o9=pv.memo((function(e){var t=e.className,n=e.children,r=Ei(e,JU),o=KU();return vv.jsx("div",Gm(Gm({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));ZU=["pin","setPin","className","setExpand","title","position"];const i9=pv.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,i=e.title,a=e.position,s=void 0===a?"left":a,l=Ei(e,ZU),c=KU(),u=c.cx,d=c.styles,p=vv.jsx(v7,{icon:uZ,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),f=vv.jsx(v7,{active:t,icon:t?fZ:pZ,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return vv.jsxs("div",Xm(Xm({className:u(d.header,r)},l),{},{children:["left"===s?p:f,i,"left"===s?f:p]}))}));eW=function e(t,n){var r,o,i,a;if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;)if(!e(t[a=i[o]],n[a]))return!1;return!0}return t!=t&&n!=n};const a9=t(eW);tW=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t};const s9=pv.memo((function(e){var t=e.url;return pv.useEffect((function(){var e=tW(t);document.head.append(e)}),[]),!1}));nW=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,i=void 0===o?[]:o,a=e.style,s=e.className;return zJ.createElement("div",{className:xZ("".concat(t,"-column"),s),style:a},(r||n)&&zJ.createElement("h2",null,n&&zJ.createElement("span",{className:"".concat(t,"-column-icon")},n),r),i.map((function(e,n){var r=e.LinkComponent||"a";return zJ.createElement("div",{className:xZ("".concat(t,"-item"),e.className),style:e.style,key:n},zJ.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&zJ.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&zJ.createElement(zJ.Fragment,null,zJ.createElement("span",{className:"".concat(t,"-item-separator")},"-"),zJ.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},rW=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],oW=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,i=e.bottom,a=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,d=void 0===u?"dark":u,p=Ei(e,rW),f=xZ("".concat(n),r,Ci({},"".concat(n,"-").concat(d),!!d)),m="number"==typeof s&&s>0;return zJ.createElement("footer",Sa(Sa({},p),{},{className:f,style:Sa(Sa({},o),{},{backgroundColor:l})}),zJ.createElement("section",{className:"".concat(n,"-container")},a&&a.length>0&&zJ.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:m?"wrap":void 0}},a.map((function(e,t){var r=e.title,o=e.icon,i=e.className,a=e.items,l=void 0===a?[]:a,c=Sa({},e.style);return m&&(c.flex="0 0 ".concat(100/(s+1)+.1,"%")),zJ.createElement(nW,{key:t,prefixCls:n,title:r,icon:o,items:l,style:c,className:i})})))),i&&zJ.createElement("section",{className:"".concat(n,"-bottom")},zJ.createElement("div",{className:"".concat(n,"-bottom-container")},i)))},sW=rR((function(e,t){var n=e.css,r=e.responsive,o=e.token,i=t.isEmpty,a=t.contentMaxWidth,s="rc-footer";return{container:n(iW||(iW=Di(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-top: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(aW||(aW=Di(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: left;\n\n h2 {\n position: relative;\n\n margin: 0 auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin: 12px 0;\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin: 0 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin: 0 auto;\n padding: 16px 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-top-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding: 40px 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-bottom: 40px;\n text-align: center;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,s,o.colorTextTertiary,o.colorLinkHover,s,a,i?"0":"60px 0 20px",o.colorText,o.colorTextDescription,a,r.mobile,s)}}));const l9=pv.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,i=sW({contentMaxWidth:void 0===o?960:o,isEmpty:!t||0===(null==t?void 0:t.length)}).styles;return vv.jsx("section",{className:i.container,children:vv.jsx(oW,{bottom:n,className:i.footer,columns:t,theme:r})})}));hW=rR((function(e,t){var n,r=e.css,o=e.cx,i=e.token,a=e.isDarkMode,s=e.responsive;return{footer:r(lW||(lW=Di(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(cW||(cW=Di(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 6px;\n\n text-align: left;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .ant-tag {\n font-family: ",";\n }\n "])),i.colorTextDescription,i.fontFamilyCode),group:o(a&&r(uW||(uW=Di(["\n .ant-collapse-content {\n background: transparent;\n }\n\n .ant-collapse-header {\n background: ",";\n }\n "])),i.colorFillTertiary),r(dW||(dW=Di(["\n .ant-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .ant-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n .ant-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])))),icon:r(pW||(pW=Di(["\n transition: all 100ms ",";\n "])),i.motionEaseOut),item:r(fW||(fW=Di(["\n padding: 8px 0;\n\n .ant-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n\n ","\n\n "," {\n padding: 16px 0;\n\n .ant-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .ant-form-item-control {\n flex: 1;\n width: 100%;\n }\n }\n "])),t&&r(mW||(mW=Di(["\n .ant-form-item-control {\n width: ",";\n }\n "])),(n=t,"number"==typeof n||xf(n)&&"[object Number]"==kf(n)?"".concat(t,"px"):t)),s.mobile),title:r(gW||(gW=Di(["\n display: flex;\n gap: 8px;\n align-items: center;\n\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n "])),i.colorPrimary)}})),bW=["className","children"];const c9=pv.memo((function(e){var t=e.className,n=e.children,r=Ei(e,bW),o=hW();return vv.jsx("div",Ym(Ym({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));yW=["className","icon","title","children","extra"];const u9=pv.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,i=e.extra,a=Ei(e,yW),s=hW(),l=s.styles;return vv.jsx(b8,function(e){var t,n;for(t=1;t label {\n height: unset;\n }\n\n .ant-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .ant-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .ant-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .ant-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),n.borderRadius)}})),CW=["className","itemMinWidth","footer","items","children"];const m9=pv.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,i=e.items,a=e.children,s=Ei(e,CW),l=SW();return vv.jsxs(w6,rg(rg({className:(0,l.cx)(l.styles.form,n),colon:!1,layout:"horizontal",ref:t},s),{},{children:[null==i?void 0:i.map((function(e,t){return vv.jsx(u9,{extra:null==e?void 0:e.extra,icon:null==e?void 0:e.icon,title:e.title,children:e.children.filter((function(e){return!e.hidden})).map((function(e,t){return vv.jsx(f9,rg({divider:0!==t,minWidth:r},e),t)}))},t)})),a,o&&vv.jsx(c9,{children:o})]}))}));EW={};const g9=vv,h9=pv;OW=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:i,mapping:a,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:d,theme:p,lang:f,loading:m}){const[g,h]=h9.useState(!1);return h9.useEffect((()=>{g||(Promise.resolve().then((()=>(DW||(DW=1,function(t){function n(e,t,r=e,o){var i,a,s,l;if(t===Y)return t;let c=void 0!==o?null===(i=r._$Co)||void 0===i?void 0:i[o]:r._$Cl;const u=L(t)?void 0:t._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,r,o)),void 0!==o?(null!==(s=(l=r)._$Co)&&void 0!==s?s:l._$Co=[])[o]=c:r._$Cl=c),void 0!==c&&(t=n(e,c._$AS(e,t.values),c,o)),t}function r(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):de(e,t)}function i(e){void 0!==this._$AN?(me(this),this._$AM=e,ge(this)):this._$AM=e}function a(e,t=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let i=n;ie:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new v("string"==typeof e?e:e+"",void 0,b))(t)})(e):e,w=window,k=w.trustedTypes,x=k?k.emptyScript:"",S=w.reactiveElementPolyfillSupport,C={toAttribute(e,t){switch(t){case Boolean:e=e?x:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},E=(e,t)=>t!==e&&(t==t||e==e),D={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:E},O="finalized";let j=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=D){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||D}static finalize(){if(this.hasOwnProperty(O))return!1;this[O]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(_(e))}else void 0!==e&&t.push(_(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{h?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=m.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=D){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:C).toAttribute(t,n.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:C;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||E)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(g){Promise.reject(g)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};j[O]=!0,j.elementProperties=new Map,j.elementStyles=[],j.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:j}),(null!==(s=w.reactiveElementVersions)&&void 0!==s?s:w.reactiveElementVersions=[]).push("1.6.2");const $=window,P=$.trustedTypes,N=P?P.createPolicy("lit-html",{createHTML:e=>e}):void 0,T="$lit$",I=`lit$${(Math.random()+"").slice(9)}$`,A="?"+I,R=`<${A}>`,F=document,M=()=>F.createComment(""),L=e=>null===e||"object"!=typeof e&&"function"!=typeof e,z=Array.isArray,B="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,W=/>/g,V=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,q=/"/g,X=/^(?:script|style|textarea|title)$/i,K=(e,...t)=>({_$litType$:1,strings:e,values:t}),Y=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),J=new WeakMap,Z=F.createTreeWalker(F,129,null,!1);class ee{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"":"",a=H;for(let l=0;l"===s[0]?(a=o??H,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?V:'"'===s[3]?q:G):a===q||a===G?a=V:a===U||a===W?a=H:(a=V,o=void 0);const d=a===V&&e[l+1].startsWith("/>")?" ":"";i+=a===H?t+R:c>=0?(r.push(n),t.slice(0,c)+T+t.slice(c)+I+d):t+I+(-2===c?(r.push(void 0),l):d)}const s=i+(e[n]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(s):s,r]})(e,t);if(this.el=ee.createElement(l,n),Z.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Z.nextNode())&&s.length0){r.textContent=P?P.emptyScript:"";for(let n=0;nz(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Q&&L(this._$AH)?this._$AA.nextSibling.data=e:this.$(F.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=ee.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{const e=new class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:F).importNode(n,!0);Z.currentNode=o;let i=Z.nextNode(),a=0,s=0,l=r[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new te(i,i.nextSibling,this,e):1===l.type?t=new l.ctor(i,l.name,l.strings,this,e):6===l.type&&(t=new se(i,this,e)),this._$AV.push(t),l=r[++s]}a!==(null==l?void 0:l.index)&&(i=Z.nextNode(),a++)}return Z.currentNode=F,o}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}(o,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=J.get(e.strings);return void 0===t&&J.set(e.strings,t=new ee(e)),t}T(e){z(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new te(this.k(M()),this.k(M()),this,this.options)):n=t[r],n._$AI(o),r++;r2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const i=this.strings;let a=!1;if(void 0===i)e=n(this,e,t,0),a=!L(e)||e!==this._$AH&&e!==Y,a&&(this._$AH=e);else{const o=e;let s,l;for(e=i[0],s=0;s{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let a=i._$litPart$;if(void 0===a){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new te(t.insertBefore(M(),e),e,void 0,n??{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Y}};ce.finalized=!0,ce._$litElement$=!0,null===(c=globalThis.litElementHydrateSupport)||void 0===c||c.call(globalThis,{LitElement:ce});const ue=globalThis.litElementPolyfillSupport;null==ue||ue({LitElement:ce}),(null!==(u=globalThis.litElementVersions)&&void 0!==u?u:globalThis.litElementVersions=[]).push("3.3.2");const de=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};window;let pe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const fe=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const i of o)null===(r=(n=i)._$AO)||void 0===r||r.call(n,t,!1),fe(i,t);return!0},me=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},ge=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),he(t)}},he=e=>{var t,n,r,o;2==e.type&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=a),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=i))};class be extends pe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),ge(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(fe(this,e),me(this))}setValue(e){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class ye{}const ve=new WeakMap,_e=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends be{render(e){return Q}update(e,[t]){var n;const r=t!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),Q}ot(e){var t;if("function"==typeof this.G){const n=null!==(t=this.ct)&&void 0!==t?t:globalThis;let r=ve.get(n);void 0===r&&(r=new WeakMap,ve.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,n;return"function"==typeof this.G?null===(t=ve.get(null!==(e=this.ct)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?p(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&d(t,n,i),i},t.GiscusWidget=class extends ce{constructor(){super(),this.GISCUS_SESSION_KEY="giscus-session",this.GISCUS_DEFAULT_HOST="https://giscus.app",this.ERROR_SUGGESTION="Please consider reporting this error at https://github.com/giscus/giscus/issues/new.",this.__session="",this._iframeRef=new ye,this.messageEventHandler=this.handleMessageEvent.bind(this),this.hasLoaded=!1,this.host=this.GISCUS_DEFAULT_HOST,this.strict="0",this.reactionsEnabled="1",this.emitMetadata="0",this.inputPosition="bottom",this.theme="light",this.lang="en",this.loading="eager",this.setupSession(),window.addEventListener("message",this.messageEventHandler)}get iframeRef(){var e;return null==(e=this._iframeRef)?void 0:e.value}get _host(){try{return new URL(this.host),this.host}catch{return this.GISCUS_DEFAULT_HOST}}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const t=location.href,n=new URL(t),r=localStorage.getItem(this.GISCUS_SESSION_KEY),o=n.searchParams.get("giscus")||"";if(this.__session="",o)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(o)),this.__session=o,n.searchParams.delete("giscus"),n.hash="",void history.replaceState(void 0,document.title,n.toString());if(r)try{this.__session=JSON.parse(r)}catch(e){localStorage.removeItem(this.GISCUS_SESSION_KEY)}}signOut(){localStorage.removeItem(this.GISCUS_SESSION_KEY),this.__session="",this.update(new Map)}handleMessageEvent(e){if(e.origin!==this._host)return;const{data:t}=e;if("object"!=typeof t||!t.giscus)return;if(this.iframeRef&&t.giscus.resizeHeight&&(this.iframeRef.style.height=`${t.giscus.resizeHeight}px`),t.giscus.signOut)return void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired"))&&null!==localStorage.getItem(this.GISCUS_SESSION_KEY)?this.signOut():n.includes("Discussion not found")}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||this.iframeRef.contentWindow.postMessage({giscus:e},this._host)}updateConfig(){const e={setConfig:{repo:this.repo,repoId:this.repoId,category:this.category,categoryId:this.categoryId,term:this.getTerm(),number:+this.getNumber(),strict:"1"===this.strict,reactionsEnabled:"1"===this.reactionsEnabled,emitMetadata:"1"===this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,lang:this.lang}};this.sendMessage(e)}firstUpdated(){var e;null==(e=this.iframeRef)||e.addEventListener("load",(()=>{var e;null==(e=this.iframeRef)||e.classList.remove("loading"),this.hasLoaded=!0,this.updateConfig()}))}requestUpdate(e,t,n){this.hasUpdated&&"host"!==e?this.updateConfig():super.requestUpdate(e,t,n)}getMetaContent(e,t=!1){const n=document.querySelector((t?`meta[property='og:${e}'],`:"")+`meta[name='${e}']`);return n?n.content:""}_getCleanedUrl(){const e=new URL(location.href);return e.searchParams.delete("giscus"),e.hash="",e}getTerm(){switch(this.mapping){case"url":return`${this._getCleanedUrl()}`;case"title":return document.title;case"og:title":return this.getMetaContent("title",!0);case"specific":return this.term||"";case"number":return"";default:return location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}}getNumber(){return"number"===this.mapping&&this.term||""}getIframeSrc(){const e=this._getCleanedUrl().toString(),t=`${e}${this.id?"#"+this.id:""}`,n=this.getMetaContent("description",!0),r=this.getMetaContent("giscus:backlink")||e,o={origin:t,session:this.__session,repo:this.repo,repoId:this.repoId||"",category:this.category||"",categoryId:this.categoryId||"",term:this.getTerm(),number:this.getNumber(),strict:this.strict,reactionsEnabled:this.reactionsEnabled,emitMetadata:this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,description:n,backLink:r};return`${this._host}${this.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return K`